/**
 * Sitewide BRL chrome — hide Hostinger/theme header & footer, keep ours.
 */

body.csb-unified-chrome {
  --brl-header-h: 76px;
}

/* Hide theme / FSE header & footer shells (Hostinger AI + block theme). */
body.csb-unified-chrome header.site-header,
body.csb-unified-chrome header.wp-block-template-part,
body.csb-unified-chrome .wp-block-template-part[class*="header"],
body.csb-unified-chrome .wp-site-blocks > header,
body.csb-unified-chrome .hostinger-ai-menu,
body.csb-unified-chrome .hostinger-ai-menu-wrapper,
body.csb-unified-chrome footer.wp-block-template-part,
body.csb-unified-chrome footer.site-footer,
body.csb-unified-chrome .wp-block-template-part[class*="footer"],
body.csb-unified-chrome .wp-site-blocks > footer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

/* Our sticky header sits above theme content — same look on home + inner pages */
body.csb-unified-chrome .brl-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  height: var(--brl-header-h, 76px) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  background: rgba(5, 7, 10, 0.88) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

body.csb-unified-chrome .brl-header.is-scrolled {
  background: rgba(5, 7, 10, 0.94) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35) !important;
}

body.csb-unified-chrome .brl-header__inner {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  gap: 1.5rem !important;
  height: 100% !important;
  max-width: none !important;
  width: min(100% - 2rem, 1240px) !important;
  margin-inline: auto !important;
}

body.csb-unified-chrome .brl-logo img,
body.csb-unified-chrome .brl-logo .custom-logo {
  height: 44px !important;
  width: auto !important;
  max-height: 44px !important;
  max-width: 160px !important;
  object-fit: contain !important;
}

body.csb-unified-chrome .brl-nav__list {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1.5rem !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.csb-unified-chrome .brl-nav a {
  color: rgba(244, 247, 251, 0.78) !important;
  font-family: var(--brl-display, "Oxanium", "Sora", sans-serif) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.csb-unified-chrome .brl-nav a:hover,
body.csb-unified-chrome .brl-nav .current-menu-item > a,
body.csb-unified-chrome .brl-nav .current_page_item > a {
  color: #fff !important;
}

body.csb-unified-chrome .brl-header__actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
}

body.csb-unified-chrome .brl-header__actions .brl-btn {
  font-family: var(--brl-display, "Oxanium", "Sora", sans-serif) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

/* Give inner pages breathing room under sticky header */
body.csb-unified-chrome:not(.csb-editable-home) .wp-site-blocks,
body.csb-unified-chrome:not(.csb-editable-home) main,
body.csb-unified-chrome:not(.csb-editable-home) .site-main,
body.csb-unified-chrome:not(.csb-editable-home) .entry-content {
  position: relative;
}

body.csb-unified-chrome .brl-footer {
  margin-top: 3rem;
}

body.csb-unified-chrome .brl-footer__grid {
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
}

body.csb-unified-chrome .brl-footer__bar-inner {
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
}

/* Keep site logo compact in footer (theme .custom-logo often forces huge sizes). */
body.csb-unified-chrome .brl-footer__logo img,
body.csb-unified-chrome .brl-footer__logo .custom-logo {
  width: auto !important;
  height: 40px !important;
  max-height: 40px !important;
  max-width: 120px !important;
  object-fit: contain !important;
}

/* Same entrance rise as homepage — heroes + main content panels on inner pages. */
@keyframes brl-rise {
  from {
    transform: translateY(16px);
  }
  to {
    transform: translateY(0);
  }
}

body.csb-unified-chrome:not(.csb-editable-home) .brl-page-hero,
body.csb-unified-chrome:not(.csb-editable-home) .brl-tournaments-hero,
body.csb-unified-chrome:not(.csb-editable-home) .brl-leaderboard-hero,
body.csb-unified-chrome:not(.csb-editable-home) .brl-teams-page-hero,
body.csb-unified-chrome:not(.csb-editable-home) .brl-news-hero,
body.csb-unified-chrome:not(.csb-editable-home) .brl-about-hero,
body.csb-unified-chrome:not(.csb-editable-home) .brl-page > .brl-eyebrow,
body.csb-unified-chrome:not(.csb-editable-home) .brl-auth,
body.csb-unified-chrome:not(.csb-editable-home) .brl-account,
body.csb-unified-chrome:not(.csb-editable-home) .brl-profile {
  animation: brl-rise 0.8s ease both;
}

body.csb-unified-chrome:not(.csb-editable-home) .brl-tournaments-feature,
body.csb-unified-chrome:not(.csb-editable-home) .brl-tournaments-actions,
body.csb-unified-chrome:not(.csb-editable-home) .brl-leaderboard-empty,
body.csb-unified-chrome:not(.csb-editable-home) .brl-teams-shell,
body.csb-unified-chrome:not(.csb-editable-home) .brl-news-shell,
body.csb-unified-chrome:not(.csb-editable-home) .brl-about-shell,
body.csb-unified-chrome:not(.csb-editable-home) .brl-page-section,
body.csb-unified-chrome:not(.csb-editable-home) .brl-tn-grid,
body.csb-unified-chrome:not(.csb-editable-home) .brl-about-intro,
body.csb-unified-chrome:not(.csb-editable-home) .brl-page {
  animation: brl-rise 0.75s ease both;
  animation-delay: 0.06s;
}

@media (prefers-reduced-motion: reduce) {
  body.csb-unified-chrome:not(.csb-editable-home) .brl-page-hero,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-tournaments-hero,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-leaderboard-hero,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-teams-page-hero,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-news-hero,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-about-hero,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-tournaments-feature,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-tournaments-actions,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-leaderboard-empty,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-teams-shell,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-news-shell,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-about-shell,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-page-section,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-tn-grid,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-about-intro,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-page,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-auth,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-account,
  body.csb-unified-chrome:not(.csb-editable-home) .brl-profile {
    animation: none !important;
  }
}


/* Sitewide age notice lives in the global footer (.brl-footer__age). */
.brl-age-foot {
  display: none;
}

/* Red/brand "BOHEMIA RIFT LEAGUE" eyebrow stays on homepage only. */
body:not(.home):not(.csb-editable-home) .brl-hero__eyebrow,
body:not(.home):not(.csb-editable-home) .brl-page-hero__eyebrow,
body:not(.home):not(.csb-editable-home) .brl-tournaments-hero__eyebrow,
body:not(.home):not(.csb-editable-home) .brl-about-hero__eyebrow,
body:not(.home):not(.csb-editable-home) .brl-teamreg-hero__eyebrow,
body:not(.home):not(.csb-editable-home) .brl-news-hero__eyebrow,
body:not(.home):not(.csb-editable-home) .brl-teams-page-hero__eyebrow,
body:not(.home):not(.csb-editable-home) .brl-legal__eyebrow,
body:not(.home):not(.csb-editable-home) .brl-eyebrow {
  display: none !important;
}

.brl-test-banner {
  margin: 0 auto 1.25rem;
  padding: 0.75rem 1rem;
  max-width: 56rem;
  border: 1px solid rgba(154, 166, 184, 0.35);
  border-radius: 8px;
  background: rgba(15, 22, 36, 0.65);
  color: #c5cedb;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}
.brl-test-banner strong {
  color: #f4f7fb;
}
