/* =====================================================
   Leaguesx — Sunlit League styles
   Light-dominant sports editorial authority desk.
   Cream paper, white surfaces, deep blue chrome, amber accent.
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'ss03', 'cv11';
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--chrome); text-decoration: none; }
a:hover { color: var(--chrome-deep); text-decoration: underline; text-underline-offset: 2px; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--amber-soft); color: var(--ink); }

/* Focus ring — accessible amber outline against cream */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ----- Layout primitives ----- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--sp-5); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--sp-5); }
.container-prose { max-width: var(--container-prose); margin: 0 auto; padding: 0 var(--sp-5); }
.section { padding: var(--sp-8) 0; }
.section-tight { padding: var(--sp-6) 0; }
.section-loose { padding: var(--sp-9) 0; }
@media (max-width: 720px) {
  .section { padding: var(--sp-6) 0; }
  .section-loose { padding: var(--sp-7) 0; }
  .container { padding: 0 var(--sp-4); }
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.012em;
  margin: 0 0 var(--sp-4);
  line-height: var(--lh-tight);
  font-weight: 700;
}
h1 { font-size: clamp(38px, 5.4vw, var(--fs-4xl)); letter-spacing: -0.022em; line-height: 1.06; }
h2 { font-size: clamp(28px, 3.4vw, var(--fs-2xl)); letter-spacing: -0.016em; line-height: 1.12; }
h3 { font-size: clamp(22px, 2.4vw, var(--fs-xl)); letter-spacing: -0.012em; line-height: 1.2; }
h4 { font-size: var(--fs-lg); line-height: 1.3; }
h5 { font-size: var(--fs-md); line-height: 1.35; }
p { margin: 0 0 var(--sp-4); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: var(--sp-3);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
}
.lede { font-size: var(--fs-md); color: var(--ink-soft); line-height: var(--lh-loose); max-width: 56ch; }
.muted { color: var(--ink-muted); }
.prose { font-size: var(--fs-base); line-height: var(--lh-loose); color: var(--ink-soft); }
.prose p { margin: 0 0 var(--sp-4); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 var(--sp-4); padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* ----- Soft editorial panel (chapter wrapper) ----- */
.panel {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
}
.panel-soft {
  background: var(--paper-soft);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.panel-warm {
  background: linear-gradient(180deg, var(--paper-soft) 0%, var(--paper-warm) 100%);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

/* ----- Chapter rail (numbered device) ----- */
.chapter-rail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 8px;
  background: var(--chrome);
  color: var(--paper);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.chapter-rail .num {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper);
  color: var(--chrome);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

/* ----- Edition banner — live fixture ticker (signature device) ----- */
.edition-banner {
  background: var(--chrome);
  color: var(--paper);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.edition-banner .container {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: var(--ticker-h);
  font-size: 13px;
}
.edition-banner .label {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.edition-banner .label .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(199, 52, 26, 0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(199, 52, 26, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(199, 52, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(199, 52, 26, 0); }
}
.edition-banner .ticker-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.edition-banner .ticker-list {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  padding-left: 100%;
  height: 100%;
  animation: ticker-slide 60s linear infinite;
  font-weight: 500;
}
.edition-banner .ticker-list:hover { animation-play-state: paused; }
.edition-banner .ticker-item { display: inline-flex; align-items: center; gap: 8px; }
.edition-banner .ticker-item .fmt {
  font-size: 10px; font-weight: 700; padding: 2px 6px;
  background: var(--amber); color: var(--paper); border-radius: 4px;
  letter-spacing: 0.06em;
}
.edition-banner .ticker-item .time { font-family: var(--font-mono); font-size: 12px; opacity: 0.85; }
.edition-banner .stamp {
  font-size: 11px;
  font-weight: 500;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 251, 239, 0.88);
  white-space: nowrap;
}
@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (max-width: 720px) {
  .edition-banner .label { display: none; }
  .edition-banner .stamp { display: none; }
  .edition-banner .container { height: 32px; }
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  width: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.014em;
}
.brand:hover { text-decoration: none; color: var(--chrome); }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--chrome) 0%, var(--chrome-deep) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.04em;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}
.brand-mark::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--amber);
  position: absolute;
  margin-left: 22px; margin-top: -18px;
  box-shadow: 0 0 0 3px var(--paper);
}
.brand-name { line-height: 1; }
.brand-tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Category rail nav (desktop) */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 12px;
  border-radius: 10px;
  position: relative;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--chrome); background: var(--chrome-tint); text-decoration: none; }
.main-nav a[aria-current="page"] {
  color: var(--chrome);
  background: var(--chrome-tint);
}
.main-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
  box-shadow: 0 6px 16px rgba(209, 122, 0, 0.32);
}
.btn-primary:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--chrome);
  border-color: var(--chrome-edge);
}
.btn-ghost:hover { background: var(--chrome-tint); color: var(--chrome-deep); }
.btn-secondary {
  background: var(--chrome);
  color: var(--paper);
  border-color: var(--chrome);
}
.btn-secondary:hover { background: var(--chrome-deep); color: var(--paper); }
.btn-large { padding: 14px 28px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--hair-strong);
  border-radius: 12px;
  padding: 12px;
  position: relative;
  z-index: 300;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  margin: 3px 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1040px) {
  .main-nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .hamburger { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
  .header-cta .btn-primary { padding: 9px 14px; font-size: 13px; }
}
@media (max-width: 480px) {
  .site-header .container { gap: 10px; }
  .header-cta .btn-primary { padding: 7px 10px; font-size: 12px; letter-spacing: 0; }
  .header-cta .btn-primary .btn-eyebrow { display: none; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 50;
  display: none;
  flex-direction: column;
  padding: calc(var(--header-h) + 16px) var(--sp-5) var(--sp-5);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-drawer.open,
.mobile-drawer.is-open { display: flex; visibility: visible; }
.mobile-drawer .nav-group {
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--hair);
}
.mobile-drawer .nav-group:last-child { border-bottom: 0; }
.mobile-drawer .nav-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}
.mobile-drawer a {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--hair-soft);
}
.mobile-drawer a:hover { color: var(--chrome); text-decoration: none; }
.mobile-drawer .drawer-cta { margin-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }

/* ----- HERO — editorial-led ----- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
  padding: var(--sp-8) 0 var(--sp-7);
  overflow: hidden;
  border-bottom: 1px solid var(--paper-edge);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-7);
  align-items: center;
}
@media (max-width: 920px) {
  .hero { padding: var(--sp-6) 0 var(--sp-6); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
}
.hero h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  letter-spacing: -0.024em;
  line-height: 1.04;
  margin-bottom: var(--sp-4);
  color: var(--ink);
}
.hero h1 .accent {
  display: inline-block;
  background: linear-gradient(135deg, var(--chrome) 0%, var(--chrome-deep) 100%);
  color: var(--paper);
  padding: 2px 14px 4px;
  border-radius: 12px;
  letter-spacing: -0.024em;
}
.hero .lede { font-size: clamp(17px, 1.4vw, 19px); margin-bottom: var(--sp-5); max-width: 56ch; }
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.hero-trust {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--hair-strong);
  font-size: 13px;
  color: var(--ink-muted);
}
.hero-trust .pill { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); }
.hero-trust .pill.amber .dot { background: var(--amber); }
.hero-trust .pill.blue .dot { background: var(--chrome); }

/* Hero image — cinematic-wide with editorial overlay */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elev);
  border: 1px solid var(--paper-edge);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual .badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--amber);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.hero-visual .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-4);
  background: linear-gradient(0deg, rgba(15, 33, 48, 0.85) 0%, rgba(15, 33, 48, 0.0) 100%);
  color: var(--paper);
}
.hero-visual .caption .meta {
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}
.hero-visual .caption .title { font-size: 17px; font-weight: 700; line-height: 1.25; }

/* Tonight's three captain picks (post-hero evidence rail) */
.captain-rail {
  margin-top: var(--sp-6);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}
@media (max-width: 820px) { .captain-rail { grid-template-columns: 1fr; } }
.captain-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.captain-card:hover { border-color: var(--amber-edge); background: var(--paper-soft); text-decoration: none; }
.captain-card .avatar {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: var(--paper-soft);
  overflow: hidden;
  border: 1px solid var(--paper-edge);
}
.captain-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.captain-card .name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.captain-card .meta { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.captain-card .arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}

/* ----- Format primer rail (T20/ODI/Test/T10) ----- */
.format-rail {
  background: var(--paper-soft);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.format-rail .format-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}
.format-tab {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--hair);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}
.format-tab[aria-pressed="true"] {
  background: var(--chrome);
  color: var(--paper);
  border-color: var(--chrome);
}
.format-tab:hover { border-color: var(--chrome); color: var(--chrome); }
.format-tab[aria-pressed="true"]:hover { color: var(--paper); }
.format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
}
@media (max-width: 820px) { .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .format-grid { grid-template-columns: 1fr; } }
.format-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: var(--sp-4);
}
.format-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--chrome);
  background: var(--chrome-tint);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: var(--sp-2);
  display: inline-block;
}
.format-card h3, .format-card h4 { font-size: 17px; margin-bottom: 4px; }
.format-card p { font-size: 13px; color: var(--ink-muted); margin: 0; line-height: 1.45; }

/* ----- Form laboratory (ledger) ----- */
.form-lab {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-6);
}
@media (max-width: 900px) { .form-lab { grid-template-columns: 1fr; } }
.form-lab > * { min-width: 0; }
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.ledger-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  padding: 10px 8px;
  border-bottom: 1px solid var(--hair);
}
.ledger-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--hair-soft);
  font-size: 14px;
  color: var(--ink-soft);
  vertical-align: middle;
}
.ledger-table tr:last-child td { border-bottom: 0; }
.ledger-table .player { font-weight: 700; color: var(--ink); }
.ledger-table .role {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--chrome-tint);
  color: var(--chrome);
  font-family: var(--font-mono);
}
.ledger-table .arrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  width: 22px; text-align: center;
}
.ledger-table .arrow.up { color: var(--leaf); }
.ledger-table .arrow.flat { color: var(--ink-muted); }
.ledger-table .arrow.down { color: var(--live); }

.form-summary {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-top: var(--sp-4);
}
.form-summary h3, .form-summary h4 { font-size: 15px; margin-bottom: var(--sp-3); }
.form-summary ul { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--ink-muted); line-height: 1.55; }
.form-summary li { padding: 6px 0; border-bottom: 1px dashed var(--hair-soft); }
.form-summary li:last-child { border-bottom: 0; }

/* ----- Pitch & weather dossier ----- */
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}
@media (max-width: 820px) { .dossier-grid { grid-template-columns: 1fr; } }
.dossier-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: var(--sp-4);
  position: relative;
}
.dossier-card .dossier-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: var(--sp-2);
}
.dossier-card .dossier-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.dossier-card .dossier-note {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 6px;
  line-height: 1.5;
}
.dossier-card .dossier-source {
  font-size: 11px;
  color: var(--ink-quiet);
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px dashed var(--hair-soft);
}

/* ----- Captain evidence desk (3 dossier cards) ----- */
.captain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}
@media (max-width: 900px) { .captain-grid { grid-template-columns: 1fr; } }
.captain-dossier {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.captain-dossier .dossier-head {
  display: flex; align-items: center; gap: var(--sp-3);
}
.captain-dossier .avatar {
  width: 56px; height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--paper-edge);
}
.captain-dossier .avatar img { width: 100%; height: 100%; object-fit: cover; }
.captain-dossier .who { flex: 1; min-width: 0; }
.captain-dossier .who .name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.captain-dossier .who .role { font-size: 12px; color: var(--ink-muted); }
.captain-dossier .pick-chip {
  background: var(--amber);
  color: #2e230b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.captain-dossier .dossier-rows {
  list-style: none; padding: 0; margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex; flex-direction: column; gap: 6px;
}
.captain-dossier .dossier-rows li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--hair-soft);
}
.captain-dossier .dossier-rows li:last-child { border-bottom: 0; }
.captain-dossier .dossier-rows .k { color: var(--ink-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.captain-dossier .arrow {
  font-weight: 700; font-size: 14px;
}
.captain-dossier .arrow.up { color: var(--leaf); }
.captain-dossier .arrow.flat { color: var(--ink-muted); }
.captain-dossier .arrow.down { color: var(--live); }

/* ----- Academy chapter prose ----- */
.academy-chapter {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-6);
  align-items: start;
}
@media (max-width: 920px) { .academy-chapter { grid-template-columns: 1fr; } }
.academy-chapter .chapter-side {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: var(--sp-4);
}
@media (max-width: 920px) { .academy-chapter .chapter-side { position: static; } }
.academy-chapter .chapter-side h3 { margin-bottom: var(--sp-2); }
.academy-chapter .chapter-side .toc {
  list-style: none; padding: 0; margin: var(--sp-3) 0 0;
  font-size: 14px;
}
.academy-chapter .chapter-side .toc li { padding: 6px 0; border-bottom: 1px dashed var(--hair-soft); }
.academy-chapter .chapter-side .toc li:last-child { border-bottom: 0; }
.academy-chapter .chapter-side .toc a { color: var(--ink-soft); font-weight: 500; }
.academy-chapter .chapter-side .toc a:hover { color: var(--chrome); }

.academy-prose h2 { font-size: clamp(26px, 3vw, 34px); }
.academy-prose h3 { font-size: 20px; margin-top: var(--sp-5); }
.academy-prose p, .academy-prose li { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.academy-prose ul, .academy-prose ol { padding-left: 22px; margin-bottom: var(--sp-4); }
.academy-prose blockquote {
  margin: var(--sp-4) 0;
  padding: var(--sp-4);
  background: var(--paper-soft);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink);
}

/* ----- Weekly fixture ladder ----- */
.fixture-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--hair);
}
.fixture-row {
  display: grid;
  grid-template-columns: 70px 1fr auto 110px;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--hair);
  align-items: center;
  font-size: 14px;
}
@media (max-width: 720px) {
  .fixture-row { grid-template-columns: 60px 1fr; grid-template-rows: auto auto; row-gap: 4px; }
  .fixture-row .time-cell { display: none; }
  .fixture-row .venue-cell { grid-column: 1 / -1; font-size: 12px; }
}
.fixture-row .date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--chrome);
  letter-spacing: 0.04em;
}
.fixture-row .match .teams { font-weight: 700; font-size: 15px; color: var(--ink); }
.fixture-row .match .vs-meta { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.fixture-row .fmt {
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  background: var(--chrome-tint); color: var(--chrome);
  border-radius: 4px; letter-spacing: 0.06em;
  font-family: var(--font-mono);
}
.fixture-row .time-cell { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); text-align: right; }
.fixture-row .time-cell .ist { font-size: 11px; color: var(--ink-muted); display: block; }
.fixture-row .venue-cell { font-size: 12px; color: var(--ink-muted); }

/* ----- App access checkpoint ----- */
.app-access {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-6);
  align-items: center;
  background: linear-gradient(135deg, var(--chrome) 0%, var(--chrome-deep) 100%);
  color: var(--paper);
  border-radius: var(--radius-xl);
  padding: var(--sp-7);
  position: relative;
  overflow: hidden;
}
@media (max-width: 820px) { .app-access { grid-template-columns: 1fr; padding: var(--sp-6); } }
.app-access::after {
  content: '';
  position: absolute;
  inset: -50% -10% auto auto;
  width: 480px; height: 480px;
  background: radial-gradient(closest-side, rgba(209, 122, 0, 0.32), transparent 70%);
  pointer-events: none;
}
.app-access h2 { color: var(--paper); font-size: clamp(28px, 3.2vw, 38px); }
.app-access p { color: rgba(255, 251, 239, 0.86); font-size: 16px; line-height: 1.6; }
.app-access .store-row {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.store-badge:hover { background: rgba(255, 255, 255, 0.18); color: var(--paper); text-decoration: none; }
.store-badge .icon { font-size: 22px; }
.store-badge .badge-stack { line-height: 1.1; }
.store-badge .badge-stack .top { font-size: 10px; opacity: 0.78; text-transform: uppercase; letter-spacing: 0.08em; }
.store-badge .badge-stack .bot { font-size: 14px; font-weight: 700; }
.app-access .verification {
  margin-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  font-size: 12px;
  color: rgba(255, 251, 239, 0.78);
}
.app-access .verification .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.app-access .verification .pill::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px rgba(209, 122, 0, 0.32);
}
.app-access .visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.app-access .visual img { width: 100%; height: 100%; object-fit: cover; }

/* ----- Editorial standards strip ----- */
.standards-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}
@media (max-width: 820px) { .standards-strip { grid-template-columns: 1fr; } }
.standard-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.standard-card .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--chrome-tint);
  color: var(--chrome);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-3);
  font-weight: 700;
  font-size: 18px;
}
.standard-card h3, .standard-card h4 { font-size: 16px; margin-bottom: 4px; }
.standard-card p { font-size: 13px; color: var(--ink-muted); margin: 0; line-height: 1.55; }

/* ----- FAQ ----- */
.faq {
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--chrome-edge); background: var(--paper-soft); }
.faq details summary {
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
}
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--chrome);
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--chrome-tint);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '−'; }
.faq details .answer {
  margin-top: var(--sp-3);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ----- Responsible participation ----- */
.responsible {
  background: var(--paper-warm);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-5);
  align-items: start;
}
@media (max-width: 720px) { .responsible { grid-template-columns: 1fr; } }
.responsible .badge {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--paper-edge);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.responsible h3 { margin-bottom: var(--sp-2); font-size: 22px; }
.responsible p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; margin: 0; }
.responsible .legal-grid {
  margin-top: var(--sp-3);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-2);
  font-size: 12px;
  color: var(--ink-muted);
}
.responsible .legal-grid strong { color: var(--ink); font-weight: 700; }
.responsible .legal-grid a { color: var(--chrome-deep); text-decoration: underline; text-underline-offset: 2px; }
.responsible .legal-grid a:hover { color: var(--chrome); }
.responsible .legal-grid span > a { text-decoration: underline; text-underline-offset: 2px; }

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 251, 239, 0.78);
  padding: var(--sp-8) 0 var(--sp-5);
  margin-top: var(--sp-8);
}
.site-footer .container { display: flex; flex-direction: column; gap: var(--sp-6); }
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-6);
}
@media (max-width: 820px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-cols h5 {
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 var(--sp-3);
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 8px; font-size: 14px; }
.footer-cols a { color: rgba(255, 251, 239, 0.72); }
.footer-cols a:hover { color: var(--amber); text-decoration: none; }
.footer-brand p { font-size: 13px; color: rgba(255, 251, 239, 0.68); max-width: 38ch; line-height: 1.6; margin-top: var(--sp-3); }
.footer-meta {
  border-top: 1px solid rgba(255, 251, 239, 0.12);
  padding-top: var(--sp-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 251, 239, 0.55);
}
.footer-meta .disclaimer {
  font-size: 11px;
  line-height: 1.6;
  max-width: 64ch;
}
.footer-meta .legal-links { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.footer-meta .legal-links a { color: rgba(255, 251, 239, 0.85); text-decoration: underline; text-underline-offset: 2px; }
.footer-meta .legal-links a:hover { color: var(--amber); }

/* ----- Hub navigation grid (cross-link) ----- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
}
.hub-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: var(--sp-4);
  text-decoration: none;
  color: var(--ink);
  display: flex; flex-direction: column; gap: var(--sp-2);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.hub-card:hover { border-color: var(--chrome); transform: translateY(-2px); text-decoration: none; }
.hub-card .arrow { font-size: 18px; color: var(--chrome); }
.hub-card h3, .hub-card h4 { font-size: 16px; margin: 0; }
.hub-card p { font-size: 13px; color: var(--ink-muted); margin: 0; line-height: 1.5; }

/* ----- News card ----- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex; flex-direction: column;
}
.news-card:hover { text-decoration: none; border-color: var(--chrome); }
.news-card .news-thumb {
  aspect-ratio: 16/10;
  background: var(--paper-soft);
  position: relative;
  overflow: hidden;
}
.news-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-body { padding: var(--sp-4); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card .news-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--chrome);
}
.news-card h3, .news-card h4 { font-size: 17px; line-height: 1.3; margin: 0; }
.news-card .news-meta { font-size: 12px; color: var(--ink-muted); }
.news-card .news-excerpt { font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* ----- Sticky mobile CTA ----- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 12px; right: 12px;
  bottom: 12px;
  z-index: 220;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 18px;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
  box-shadow: 0 14px 32px rgba(15, 33, 48, 0.22);
}
@media (max-width: 720px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
}
.sticky-cta .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.sticky-cta .label small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: 2px;
}
.sticky-cta .btn { padding: 11px 18px; font-size: 13px; }
.sticky-cta--hidden { display: none !important; }

/* ----- Internal inline image row ----- */
.inline-image-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-5);
  align-items: center;
  margin: var(--sp-5) 0;
}
@media (max-width: 720px) { .inline-image-row { grid-template-columns: 1fr; } }
.inline-image-row .visual {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--paper-edge);
  background: var(--paper-soft);
  min-width: 0;
}
.inline-image-row .visual img { width: 100%; height: 100%; object-fit: cover; }
.inline-image-row .body { min-width: 0; }
.inline-image-row .body h3, .inline-image-row .body h4 { margin-bottom: var(--sp-2); }
.inline-image-row .body p { font-size: 14px; color: var(--ink-muted); margin: 0; line-height: 1.6; }

/* ----- Misc ----- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }
.callout {
  background: linear-gradient(135deg, var(--paper-soft) 0%, var(--paper-warm) 100%);
  border: 1px solid var(--paper-edge);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: var(--sp-4);
  font-size: 14px;
  color: var(--ink-soft);
}
.callout strong { color: var(--ink); }

.divider {
  height: 1px;
  background: var(--hair);
  margin: var(--sp-6) 0;
  border: 0;
}

.page-hero {
  padding: var(--sp-7) 0 var(--sp-6);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
  border-bottom: 1px solid var(--paper-edge);
}
.page-hero h1 { font-size: clamp(36px, 4.6vw, 52px); }
.page-hero .lede { font-size: clamp(16px, 1.4vw, 19px); }
.page-hero .breadcrumb {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: var(--sp-3);
  letter-spacing: 0.06em;
}
.page-hero .breadcrumb a { color: var(--chrome); }

.banner-img {
  width: 100%;
  aspect-ratio: 24/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-5);
  border: 1px solid var(--paper-edge);
  background: var(--paper-soft);
}
.banner-img img { width: 100%; height: 100%; object-fit: cover; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}
table th { background: var(--paper-soft); text-align: left; padding: 10px 12px; font-weight: 700; font-size: 13px; color: var(--ink-soft); border-bottom: 1px solid var(--hair); }
table td { padding: 12px; border-bottom: 1px solid var(--hair-soft); color: var(--ink-soft); }
table tr:last-child td { border-bottom: 0; }

.tag-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--chrome-tint);
  color: var(--chrome);
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.tag-pill.amber { background: var(--amber-soft); color: var(--amber-deep); }
.tag-pill.leaf  { background: var(--leaf-soft); color: var(--leaf); }

.last-updated {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}
.last-updated strong { color: var(--ink); }

.skiplink {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  font-size: 13px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skiplink:focus { top: 0; color: var(--paper); text-decoration: none; }

section[id] { scroll-margin-top: calc(var(--header-h) + var(--ticker-h) + 16px); }

@media (max-width: 720px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 721px) {
  .show-mobile-only { display: none !important; }
}
