/* ==============================================
   ROW 1 — Top bar (light, league + socials)
   ============================================== */
.ch-top-bar {
  background: var(--soft);
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.ch-top-bar-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.ch-top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-top-bar-league-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ch-top-bar-league-link:hover {
  color: var(--ink);
}

.ch-top-bar-league-img {
  display: block;
  height: 18px;
  width: auto;
  opacity: 0.85;
}

.ch-top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.ch-top-bar-right a {
  display: flex;
  align-items: center;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.ch-top-bar-right a:hover {
  color: var(--ink);
}

.ch-top-bar-divider {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--line-strong);
  margin: 0 4px;
}

/* ==============================================
   ROW 2 — Brand bar (jet black, logo + wordmark)
   ============================================== */
.ch-brand-bar {
  background: #000;
  color: #fff;
  position: relative;
  transition: box-shadow 0.25s ease;
}

.ch-brand-bar-stuck {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Bright-red jersey trim at the bottom of the brand bar — bleeds into the nav */
.ch-brand-bar::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary);
}

.ch-brand-bar-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 96px;
}

.ch-logo-block {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}

.ch-logo-img {
  display: block;
  height: 72px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
}

.ch-logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.ch-primary-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  display: block;
  line-height: 0.92;
}

.ch-primary-name-accent {
  color: var(--primary);
}

.ch-brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

/* ==============================================
   ROW 3 — Nav bar (red, sticky)
   ============================================== */
.ch-header {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 80;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: background 0.25s ease;
}

/* Diagonal hatch overlay for a subtle jersey-fabric texture */
.ch-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    135deg,
    transparent 0,
    transparent 6px,
    rgba(255, 255, 255, 0.025) 6px,
    rgba(255, 255, 255, 0.025) 7px
  );
  pointer-events: none;
}

.ch-header-inner {
  position: relative;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: stretch;
  height: 56px;
  gap: 24px;
}

/* ==============================================
   Nav (left-aligned, full-height links)
   ============================================== */
.ch-nav {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.ch-nav-list {
  list-style: none;
  display: flex;
  align-items: stretch;
  height: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
}

.ch-nav-list > li {
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

.ch-nav-list > li > a {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color 0.18s ease, background 0.18s ease;
  height: 100%;
}

/* Bottom white underline — draws in from the left on hover */
.ch-nav-list > li > a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ch-nav-list > li > a:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
}

.ch-nav-list > li > a:hover::before {
  transform: scaleX(1);
}

.ch-nav-list > li.current-menu-item > a,
.ch-nav-list > li.current_page_item > a,
.ch-nav-list > li.current-menu-parent > a,
.ch-nav-list > li.current-menu-ancestor > a {
  color: #fff;
}

.ch-nav-list > li.current-menu-item > a::before,
.ch-nav-list > li.current_page_item > a::before,
.ch-nav-list > li.current-menu-parent > a::before,
.ch-nav-list > li.current-menu-ancestor > a::before {
  transform: scaleX(1);
  background: #fff;
}

/* External-link arrow */
.ch-nav-list > li > a[target="_blank"]::after {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 6px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='7' y1='17' x2='17' y2='7'/><polyline points='7 7 17 7 17 17'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='7' y1='17' x2='17' y2='7'/><polyline points='7 7 17 7 17 17'/></svg>") no-repeat center / contain;
  flex-shrink: 0;
}

/* Chevron for parent items */
.ch-nav-list > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  opacity: 0.7;
  background: none;
  -webkit-mask: none;
          mask: none;
}

.ch-nav-list > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
  opacity: 1;
}

/* ==============================================
   Dropdown (sub-menu) — black panel, red top accent
   ============================================== */
.ch-nav-list > li > ul.sub-menu {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: #000;
  border-top: 3px solid var(--primary);
  box-shadow: 0 18px 36px -10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 300;
}

.ch-nav-list > li:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ch-nav-list > li > ul.sub-menu > li {
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ch-nav-list > li:hover > ul.sub-menu > li {
  opacity: 1;
  transform: translateY(0);
}

.ch-nav-list > li:hover > ul.sub-menu > li:nth-child(2) { transition-delay: 0.04s; }
.ch-nav-list > li:hover > ul.sub-menu > li:nth-child(3) { transition-delay: 0.08s; }
.ch-nav-list > li:hover > ul.sub-menu > li:nth-child(4) { transition-delay: 0.12s; }
.ch-nav-list > li:hover > ul.sub-menu > li:nth-child(5) { transition-delay: 0.16s; }
.ch-nav-list > li:hover > ul.sub-menu > li:nth-child(6) { transition-delay: 0.20s; }

.ch-nav-list > li > ul.sub-menu > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, padding 0.18s ease;
}

.ch-nav-list > li > ul.sub-menu > li > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--primary);
  padding-left: 24px;
}

.ch-nav-list > li > ul.sub-menu > li > a::before {
  display: none;
}

/* ==============================================
   Header actions (CTA)
   ============================================== */
.ch-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ch-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 18px;
  background: #fff;
  color: var(--primary-dark);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ch-header-cta:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

/* ==============================================
   Hamburger toggle
   ============================================== */
.ch-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.ch-hamburger,
.ch-hamburger::before,
.ch-hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.ch-hamburger::before,
.ch-hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.ch-hamburger::before { top: -7px; }
.ch-hamburger::after  { top: 7px; }

.ch-menu-toggle[aria-expanded="true"] .ch-hamburger {
  background: transparent;
}

.ch-menu-toggle[aria-expanded="true"] .ch-hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.ch-menu-toggle[aria-expanded="true"] .ch-hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}
