/* Site header: one style for every page (home, today, match, player, ...). Everything is scoped to .site-h
   so it does not depend on (or fight with) each page's own stylesheet. */
.site-h {
  /* fixed colours (the home page's), so the header looks the same on every page */
  --h-bg: #f7f8f5; --h-text: #121812; --h-muted: #5b665c; --h-line: #dfe4da;
  --h-surface: #fff; --h-hover: #eef1ea; --h-accent: #c6f04a; --h-accent-ink: #1d2a00;
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--h-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--h-line);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--h-text);
}
.site-h .wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.site-h .nav { display: flex; align-items: center; gap: 24px; height: 64px; min-height: 0; flex-wrap: nowrap; }
.site-h .logo { display: flex; align-items: center; gap: 10px; font: 800 19px/1 Inter, system-ui, sans-serif;
  letter-spacing: -.02em; text-transform: none; text-decoration: none; color: var(--h-text); white-space: nowrap; }
.site-h .logo small { font-weight: 600; color: var(--h-muted); font-size: 13px; margin-left: -4px; text-transform: none; }
.site-h .ball { width: 26px; height: 26px; border-radius: 50%; background: var(--h-accent); position: relative; flex: none; }
.site-h .ball::before, .site-h .ball::after { content: ""; position: absolute; inset: 3px; border: 2px solid var(--h-accent-ink);
  border-radius: 50%; clip-path: inset(0 60% 0 0); }
.site-h .ball::after { clip-path: inset(0 0 0 60%); }
.site-h .nav ul { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; font: 400 15px/1.55 Inter, system-ui, sans-serif; color: var(--h-muted); }
.site-h .nav ul a { text-decoration: none; color: inherit; }
.site-h .nav ul a:hover { color: var(--h-text); }
.site-h .join { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 8px 14px;
  font: 700 14px/1.2 Inter, system-ui, sans-serif; text-decoration: none; white-space: nowrap; border: 0;
  background: var(--h-accent); color: var(--h-accent-ink); }
.site-h .join:hover { filter: brightness(.96); }
.site-h .tg { width: 18px; height: 18px; flex: none; }

/* hamburger (phones / tablets) */
.site-h .menu { display: none; position: relative; background: none; border: 0; padding: 0; margin: 0; border-radius: 0; }
.site-h .menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--h-line); border-radius: 10px; background: var(--h-surface); }
.site-h .menu summary::-webkit-details-marker { display: none; }
.site-h .menu summary::after { content: none; }
.site-h .burger, .site-h .burger::before, .site-h .burger::after { display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--h-text); position: relative; transition: transform .15s; }
.site-h .burger::before, .site-h .burger::after { content: ""; position: absolute; left: 0; }
.site-h .burger::before { top: -6px; }
.site-h .burger::after { top: 6px; }
.site-h .menu[open] .burger { background: transparent; }
.site-h .menu[open] .burger::before { top: 0; transform: rotate(45deg); }
.site-h .menu[open] .burger::after { top: 0; transform: rotate(-45deg); }
.site-h .menu-panel { position: absolute; right: 0; top: 48px; min-width: 220px; display: flex; flex-direction: column; padding: 6px;
  background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16,24,16,.06), 0 8px 24px rgba(16,24,16,.12); z-index: 30; }
.site-h .menu-panel a { padding: 11px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--h-text); }
.site-h .menu-panel a:hover, .site-h .menu-panel a:focus-visible { background: var(--h-hover); }

/* grouped menu panel: Odds | Learn side by side, TennisOdds below, Pro button */
.site-h .menu-panel.grouped { flex-direction: row; width: min(380px, calc(100vw - 32px)); padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; max-height: calc(100vh - 80px); overflow-y: auto; }
.site-h .menu-panel .mg { display: flex; flex-direction: column; }
.site-h .menu-panel .mg.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px;
  border-top: 1px solid var(--h-line); padding-top: 6px; margin-top: 4px; }
.site-h .menu-panel .mg.wide .mh { grid-column: 1 / -1; }
.site-h .menu-panel .mh { margin: 6px 10px 2px; font: 600 11px/1.4 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .08em; text-transform: uppercase; color: var(--h-muted); }
.site-h .menu-panel.grouped a { padding: 8px 10px; }
.site-h .menu-panel a.pro { grid-column: 1 / -1; margin-top: 6px; text-align: center; background: var(--h-text); color: var(--h-bg); }
.site-h .menu-panel a.pro:hover, .site-h .menu-panel a.pro:focus-visible { background: var(--h-text); filter: brightness(1.2); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-h { --h-bg: #0b100c; --h-text: #eef3ea; --h-muted: #9aa89b; --h-line: #243026;
    --h-surface: #121a14; --h-hover: #18221a; --h-accent-ink: #152000; }
}
:root[data-theme="dark"] .site-h { --h-bg: #0b100c; --h-text: #eef3ea; --h-muted: #9aa89b; --h-line: #243026;
  --h-surface: #121a14; --h-hover: #18221a; --h-accent-ink: #152000; }

@media (max-width: 900px) {
  .site-h .nav ul { display: none; }
  .site-h .menu { display: block; }
  .site-h .join { margin-left: auto; }
  .site-h .nav { gap: 12px; }
}
@media (max-width: 560px) { .site-h .wrap { padding: 0 16px; } }
@media (max-width: 420px) {
  .site-h .logo { font-size: 17px; gap: 8px; }
  .site-h .logo small { display: none; }
  .site-h .join .tg { display: none; }
  .site-h .join { padding: 8px 12px; }
}
