/* Single source of truth for the shared logo and primary navigation.
   All icons are inline in _site_header.html, never dependent on JavaScript. */
.site-header { position: relative !important; height: 165px !important; }
.site-header .header-inner { height: 82px !important; padding: 0 25px !important; align-items: center !important; }
.site-header .logo-container {
  display: flex !important; align-items: center !important; justify-content: flex-start !important;
  gap: 12px !important; width: auto !important; max-width: calc(100% - 20px) !important;
  height: 82px !important; text-decoration: none !important; overflow: visible !important;
}
.site-header .logo-container::before, .site-header .logo-container::after { display: none !important; content: none !important; }
.site-header .logo-container .logo-ball {
  display: grid !important; place-items: center !important;
  width: 52px !important; height: 52px !important; min-width: 52px !important; min-height: 52px !important; flex: 0 0 52px !important; aspect-ratio: 1 / 1 !important; border-radius: 50% !important; box-sizing: border-box !important;
  border: 3px solid var(--theme-yellow, #ffc400) !important; border-radius: 50% !important;
  background: #f8faf9 !important; color: #183c4d !important;
  font-size: 27px !important; line-height: 1 !important;
}
.site-header .logo-container .logo-word {
  display: inline-flex !important; align-items: baseline !important; flex-wrap: nowrap !important;
  color: #fff !important; font-size: clamp(20px, 4vw, 32px) !important;
  font-weight: 900 !important; line-height: 1.1 !important; letter-spacing: -1px !important;
  white-space: nowrap !important;
}
.site-header .logo-container .logo-word > span { color: #fff !important; }
.site-header .logo-container .logo-word > b { color: var(--theme-yellow, #ffc400) !important; font-weight: 900 !important; white-space: pre !important; }
.site-header .main-nav {
  display: grid !important; position: absolute !important; top: 82px !important; left: 0 !important;
  width: 100% !important; height: 83px !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-template-rows: 1fr !important; grid-auto-flow: row !important; gap: 0 !important;
  align-items: stretch !important; background: #fff !important;
}
.site-header .main-nav > .nav-home { grid-column: 1 !important; grid-row: 1 !important; }
.site-header .main-nav > .nav-super-tips { grid-column: 2 !important; grid-row: 1 !important; }
.site-header .main-nav > .prediction-menu { grid-column: 3 !important; grid-row: 1 !important; }
.site-header .main-nav > .nav-telegram { grid-column: 4 !important; grid-row: 1 !important; }
.site-header .main-nav > .country-menu { grid-column: 5 !important; grid-row: 1 !important; }
.site-header .main-nav > .favorites-button { grid-column: 6 !important; grid-row: 1 !important; }
.site-header .main-nav > .nav-about, .site-header .main-nav > .nav-contact { display: none !important; }
.site-header .main-nav > .prediction-menu, .site-header .main-nav > .country-menu {
  display: flex !important; align-items: stretch !important; min-width: 0 !important;
}
.site-header .main-nav .nav-link,
.site-header .main-nav .country-menu-toggle,
.site-header .main-nav .favorites-button {
  display: flex !important; flex-direction: column !important; justify-content: center !important;
  align-items: center !important; text-align: center !important; gap: 5px !important;
  width: 100% !important; height: 83px !important; min-height: 83px !important;
  min-width: 0 !important; padding: 6px 2px !important;
  color: #294e6f !important; background: transparent !important;
  font-size: 10px !important; line-height: 1.2 !important; font-weight: 800 !important;
  white-space: normal !important;
}
.site-header .main-nav .nav-icon {
  display: block !important; width: 25px !important; height: 25px !important;
  flex: 0 0 25px !important; fill: none !important;
  stroke: var(--theme-green, #087560) !important; stroke-width: 2 !important;
  visibility: visible !important; opacity: 1 !important;
}
.site-header .main-nav .super-tips-icon {
  display: block !important; height: 25px !important; font-size: 23px !important; line-height: 25px !important;
}
.site-header .main-nav .super-tips-label { display: block !important; font-size: inherit !important; color: inherit !important; }
.site-header .main-nav .nav-link:hover, .site-header .main-nav .country-menu-toggle:hover,
.site-header .main-nav .favorites-button:hover { background: #f5fbfa !important; color: var(--theme-green, #087560) !important; }
.site-header .main-nav .nav-link.active, .site-header .main-nav .nav-link.active .super-tips-label {
  color: var(--theme-green, #087560) !important;
}
.site-header .main-nav .nav-link.active::after {
  content: "" !important; position: absolute !important; bottom: 0 !important;
  left: 22% !important; right: 22% !important; height: 4px !important;
  background: var(--theme-green, #087560) !important;
}
@media (max-width: 560px) {
  .site-header { height: 149px !important; }
  .site-header .header-inner { height: 74px !important; padding: 0 12px !important; }
  .site-header .logo-container { height: 74px !important; gap: 8px !important; }
  .site-header .logo-container .logo-ball { width: 42px !important; height: 42px !important; min-width: 42px !important; min-height: 42px !important; flex-basis: 42px !important; aspect-ratio: 1 / 1 !important; font-size: 22px !important; }
  .site-header .logo-container .logo-word { font-size: clamp(14px, 4.5vw, 25px) !important; letter-spacing: -0.7px !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
  .site-header .logo-container .logo-word > span, .site-header .logo-container .logo-word > b { white-space: nowrap !important; }
  .site-header .main-nav { top: 74px !important; height: 75px !important; }
  .site-header .main-nav .nav-link, .site-header .main-nav .country-menu-toggle,
  .site-header .main-nav .favorites-button { height: 75px !important; min-height: 75px !important; font-size: 8px !important; gap: 4px !important; }
  .site-header .main-nav .nav-icon { width: 20px !important; height: 20px !important; flex-basis: 20px !important; }
  .site-header .main-nav .super-tips-icon { height: 20px !important; line-height: 20px !important; font-size: 18px !important; }
}

/* Mobile: keep the desktop brand lockup on one row; wrap only tab labels. */
@media (max-width: 560px) {
  .site-header .header-inner .logo-container {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
  }
  .site-header .logo-container .logo-ball { flex-shrink: 0 !important; aspect-ratio: 1 / 1 !important; border-radius: 50% !important; }
  .site-header .logo-container .logo-word {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: baseline !important;
    white-space: nowrap !important;
    min-width: 0 !important;
  }
  .site-header .main-nav { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; align-items: stretch !important; }
  .site-header .main-nav .nav-link,
  .site-header .main-nav .country-menu-toggle,
  .site-header .main-nav .favorites-button {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 8px 1px 4px !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    white-space: normal !important;
  }
  .site-header .main-nav .nav-icon,
  .site-header .main-nav .super-tips-icon {
    flex-shrink: 0 !important;
    align-self: center !important;
  }
  .site-header .main-nav .nav-link > span:not(.super-tips-icon),
  .site-header .main-nav .country-menu-toggle > span,
  .site-header .main-nav .favorites-button > span,
  .site-header .main-nav .super-tips-label {
    display: block !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    line-height: 1.15 !important;
  }
}

/* Match the footer FreeSureBets wordmark: same font weight, gradient and clipping. */
.site-header .logo-container .logo-word {
  display: inline-block !important;
  flex: 0 1 auto !important;
  font-size: clamp(20px, 4vw, 32px) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: normal !important;
  white-space: nowrap !important;
  background: linear-gradient(90deg, #fff 0 67%, var(--theme-yellow, #ffc400) 67% 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.site-header .logo-container .logo-word > span,
.site-header .logo-container .logo-word > b {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  -webkit-text-fill-color: transparent !important;
}
@media (max-width: 560px) {
  .site-header .logo-container .logo-word {
    font-size: clamp(14px, 4.5vw, 25px) !important;
    white-space: nowrap !important;
  }
}

/* Match footer wordmark font size exactly on all viewport widths. */
.site-header .logo-container .logo-word {
  font-size: 25px !important;
}
@media (max-width: 560px) {
  .site-header .logo-container .logo-word {
    font-size: 25px !important;
    letter-spacing: normal !important;
  }
}

/* Use the exact 25px footer wordmark size at every viewport width. */
.site-header .logo-container .logo-word {
  font-size: 25px !important;
}
@media (max-width: 560px) {
  .site-header .logo-container .logo-word {
    font-size: 25px !important;
  }
}

/* Mobile Telegram tab: show only the uppercase label, not the smaller duplicate. */
@media (max-width: 560px) {
  .site-header .main-nav .nav-telegram .telegram-desktop-label {
    display: none !important;
  }
  .site-header .main-nav .nav-telegram .telegram-mobile-label {
    display: block !important;
  }
}

/* Android download stays at the right edge of the green brand row. */
.site-header .header-inner { gap: 8px !important; }
.site-header .header-actions {
  display: flex !important;
  margin-left: auto !important;
  width: auto !important;
  flex-shrink: 0;
}
.site-header .app-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--theme-yellow, #ffc400);
  color: #004f45;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .app-download:hover { background: #ffdb59; }
.site-header .app-download:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.site-header .app-download svg { width: 20px; height: 20px; flex-shrink: 0; }
.site-header .app-download-mobile-label { display: none; }
@media (max-width: 560px) {
  .site-header .app-download { flex-direction: column; gap: 1px; min-width: 44px; padding: 3px 5px; font-size: 10px; }
  .site-header .app-download-label { display: none; }
  .site-header .app-download-mobile-label { display: inline; }
}
@media (max-width: 360px) {
  .site-header .logo-container .logo-word { font-size: 21px !important; }
}
