/* Sorare Row 100065 — Sunlit League editorial almanac
   Layout: LAYOUT_139 editorial longform hub
   Color: LIGHT_COLOR_008 Sunlit League
   Typography: TYPOGRAPHY_027 DM Sans + Noto Sans Devanagari
   No icon library, no framework. Vanilla HTML/CSS/JS.
*/

/* Size-adjusted fallback matches DM Sans metrics — eliminates CLS during font swap */
@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Segoe UI'), local('Roboto'), local('Helvetica Neue'), local(Arial);
  size-adjust: 107%;
  ascent-ratio: 95%;
  descent-ratio: 33%;
  line-gap-override: 0%;
}

:root {
  --primary: #176A9E;
  --primary-ink: #0F4A6E;
  --accent: #9F5A00;
  --accent-on-dark: #E69533;
  --accent-ink: #6F3F00;
  --background: #FFFBEF;
  --surface: #FFFFFF;
  --surface-2: #FFF0C8;
  --text: #1D2A36;
  --muted: #5E6871;
  --border: #ECD9A7;
  --rule: #1D2A36;
  --rule-soft: #B89C58;
  --footer-fg: #D9D2BB;
  --shadow-soft: 0 4px 24px rgba(29,42,54,0.06);
  --shadow-elev: 0 10px 40px rgba(29,42,54,0.12);
  --container: 1280px;
  --gutter: clamp(20px, 3vw, 40px);
  --section-gap: clamp(48px, 7vw, 96px);
  --type-display: clamp(2.4rem, 5.5vw, 4rem);
  --type-h2: clamp(1.75rem, 3.4vw, 2.5rem);
  --type-h3: clamp(1.25rem, 2.2vw, 1.6rem);
  --type-body: 1.0625rem;
  --type-small: 0.875rem;
  --radius-card: 4px;
  --radius-pill: 999px;
  --rail-w: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--background);
  color: var(--text);
  font-family: 'DM Sans', 'DM Sans Fallback', 'Noto Sans Devanagari', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: var(--type-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
.calendar > div { max-width: 100%; }
.calendar > div > img,
.calendar > img { max-width: 100% !important; height: auto !important; }

a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4, h5, h6 { font-family: inherit; font-weight: 700; color: var(--text); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: var(--type-display); letter-spacing: -0.02em; }
h2 { font-size: var(--type-h2); }
h3 { font-size: var(--type-h3); }
p { margin: 0 0 1em; }

/* === Layout shell === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.page-shell {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  gap: 0;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
.page-shell > .main { min-width: 0; }
@media (max-width: 899px) {
  .page-shell { grid-template-columns: 1fr; padding: 0 var(--gutter); }
  .page-shell > .rail { display: none; }
}

/* === Site header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: rgba(255, 251, 239, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--rule);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.site-header__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.site-header__brand:hover { color: var(--primary); }
.site-header__mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #FFFBEF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 2px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.site-header__sub {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  margin-left: 6px;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.site-header__nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s, color .2s;
}
.site-header__nav a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #FFFBEF !important;
  padding: 9px 16px;
  border-radius: 2px;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: none !important;
  white-space: nowrap;
}
.site-header__cta:hover { background: var(--primary-ink); color: #FFFBEF !important; }

.site-header__hamburger {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 300;
}
.site-header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform .2s, opacity .2s;
}
.site-header__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--background);
  z-index: 200;
  padding: 96px 28px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: none;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer li { margin: 0; padding: 0; }
.mobile-drawer a {
  display: block;
  padding: 14px 0;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.mobile-drawer a:hover { color: var(--primary); }

@media (max-width: 899px) {
  .site-header__nav { display: none; }
  .site-header__cta { display: none; }
  .site-header__hamburger { display: block; }
  .mobile-drawer { display: block; }
}

/* === Site footer === */
.site-footer {
  background: var(--text);
  color: #FFFBEF;
  padding: 64px 0 32px;
  margin-top: var(--section-gap);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.site-footer h4,
.site-footer__heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-on-dark);
  margin-bottom: 16px;
  font-weight: 600;
  display: block;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a {
  color: #FFFBEF;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity .2s;
}
.site-footer a:hover { opacity: 1; color: #FFFBEF; }
.site-footer__brand-block { font-size: 0.95rem; opacity: 0.85; line-height: 1.7; }
.site-footer__brand-block strong { color: var(--accent-on-dark); font-size: 1.1rem; display: block; margin-bottom: 8px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 251, 239, 0.15);
  padding-top: 24px;
  margin-top: 48px;
  font-size: 0.85rem;
  text-align: center;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  color: var(--footer-fg);
}
.site-footer__bottom-links { margin-bottom: 12px; }
.site-footer__bottom-links a {
  color: var(--footer-fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 0 12px;
}
@media (max-width: 768px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* === Cover / split-screen hero === */
.cover {
  padding: 64px 0 48px;
  border-bottom: 1.5px solid var(--rule);
  position: relative;
  background: var(--background);
}
.cover__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.cover__lead { max-width: 560px; }
.cover__eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}
.cover h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 20px;
  height: 9.3em;
  overflow: hidden;
}
.cover__lede {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 48ch;
  height: 13.5em;
  overflow: hidden;
}
.cover__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cover__meta {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}
.cover__lineup {
  position: relative;
  background: var(--surface);
  padding: 18px;
  border: 1.5px solid var(--rule);
  aspect-ratio: 4 / 3;
  min-height: clamp(240px, 36vw, 460px);
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.cover__lineup::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: 40px;
  bottom: 60px;
  border: 1.5px solid var(--rule);
  z-index: -1;
}
.cover__lineup img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}
.cover__lineup-cap {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: right;
}
@media (max-width: 899px) {
  .cover { padding: 40px 0 32px; }
  .cover__inner { grid-template-columns: 1fr; }
  .cover__lineup::before { display: none; }
  .cover__lineup { padding: 12px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 2px;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
  letter-spacing: 0.02em;
}
.btn--primary {
  background: var(--primary);
  color: #FFFBEF !important;
  border-color: var(--primary);
}
.btn--primary:hover { background: var(--primary-ink); border-color: var(--primary-ink); transform: translateY(-1px); }
.btn--accent {
  background: var(--accent);
  color: #FFFBEF !important;
  border-color: var(--accent);
}
.btn--accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--text);
}
.btn--ghost:hover { background: var(--text); color: #FFFBEF !important; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }

/* === Trust strip === */
.trust-strip {
  border-bottom: 1.5px solid var(--rule);
  padding: 24px 0;
}
.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  align-items: center;
}
.trust-strip__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
  border-left: 1.5px solid var(--rule);
}
.trust-strip__item:first-child { border-left: 0; padding-left: 0; }
.trust-strip__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 600;
}
.trust-strip__value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
@media (max-width: 768px) {
  .trust-strip__inner { grid-template-columns: 1fr 1fr; }
  .trust-strip__item:nth-child(2) { border-left: 0; padding-left: 0; }
  .trust-strip__item:nth-child(3), .trust-strip__item:nth-child(4) { border-top: 1px solid var(--rule); padding-top: 16px; }
}

/* === Sections === */
.section {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  scroll-margin-top: 88px;
}
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 36px;
  max-width: 720px;
}
.section__chapter {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.section__intro {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.65;
  margin-top: 4px;
  max-width: 60ch;
}

/* === Ruled primer table === */
.rarity-table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
  background: var(--surface);
}
.rarity-cell {
  padding: 28px 24px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rarity-cell:first-child { border-left: 0; }
.rarity-cell__name {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  font-weight: 700;
}
.rarity-cell__supply {
  font-size: 0.85rem;
  color: var(--muted);
}
.rarity-cell__body {
  font-size: 0.95rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .rarity-table { grid-template-columns: 1fr; }
  .rarity-cell { border-left: 0; border-top: 1px solid var(--border); }
  .rarity-cell:first-child { border-top: 0; }
}

/* === Chapter rail (signature device) === */
.chapter-rail {
  background: var(--text);
  color: #FFFBEF;
  padding: 40px 0;
  overflow: hidden;
  border-bottom: 1.5px solid var(--rule);
}
.chapter-rail__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.chapter-rail__title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-on-dark);
  font-weight: 600;
  flex-shrink: 0;
  margin-right: 16px;
}
.chapter-rail__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.chapter-rail__list a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: rgba(255, 251, 239, 0.08);
  color: #FFFBEF;
  border: 1px solid rgba(255, 251, 239, 0.18);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.chapter-rail__list a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFBEF;
}

/* === Calendar === */
.calendar {
  position: relative;
  background: var(--surface);
  padding: 32px;
  border: 1.5px solid var(--rule);
  margin-bottom: 32px;
  overflow: hidden;
}
.calendar::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 60px;
  right: 60px;
  bottom: 60px;
  border: 1.5px solid var(--rule);
  z-index: -1;
}
.calendar > div > img,
.calendar > img {
  max-width: 100%;
  height: auto;
  width: auto;
  display: block;
}
.calendar__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.calendar__title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  font-weight: 700;
}
.calendar__week {
  font-size: 0.78rem;
  color: var(--muted);
}
.fixture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.fixture {
  padding: 18px 16px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fixture:nth-child(3n+1) { border-left: 0; }
.fixture__day {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
}
.fixture__match {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.fixture__comp {
  font-size: 0.85rem;
  color: var(--muted);
}
.fixture__meta {
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}
@media (max-width: 768px) {
  .calendar { padding: 20px; }
  .calendar::before { display: none; }
  .fixture-grid { grid-template-columns: 1fr; }
  .fixture { border-left: 0; border-top: 1px solid var(--border); }
  .fixture:first-child { border-top: 0; }
}

/* === Bid ladder === */
.bid-ladder {
  background: var(--surface);
  padding: 32px;
  border: 1.5px solid var(--rule);
}
.bid-step {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.bid-step:last-child { border-bottom: 0; }
.bid-step__num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  font-feature-settings: "tnum" 1;
}
.bid-step__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.bid-step__copy {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}
.bid-step__bid {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  font-feature-settings: "tnum" 1;
  text-align: right;
}
@media (max-width: 600px) {
  .bid-step { grid-template-columns: 48px 1fr; }
  .bid-step__bid { grid-column: 1 / -1; text-align: left; padding-top: 4px; }
}

/* === Formation split === */
.formation-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: 32px 0;
  border-top: 1.5px solid var(--rule);
}
.formation-block:first-of-type { border-top: 0; padding-top: 0; }
.formation-block__copy h3 {
  margin-bottom: 8px;
}
.formation-block__copy p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}
.formation-block__img {
  border: 1.5px solid var(--rule);
  background: var(--surface);
  padding: 12px;
}
.formation-block__img img { width: 100%; height: auto; }
@media (max-width: 768px) {
  .formation-block { grid-template-columns: 1fr; }
}

/* === Scoring === */
.scoring-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1.5px solid var(--rule);
}
.scoring-cell {
  padding: 24px 22px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scoring-cell:first-child { border-left: 0; }
.scoring-cell__cat {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  font-weight: 700;
}
.scoring-cell__pts {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
}
.scoring-cell__body {
  font-size: 0.95rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .scoring-grid { grid-template-columns: 1fr; }
  .scoring-cell { border-left: 0; border-top: 1px solid var(--border); }
  .scoring-cell:first-child { border-top: 0; }
}

/* === Provenance ledger === */
.ledger-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1.5px solid var(--rule);
  background: var(--surface);
}
.ledger-row {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: baseline;
}
.ledger-row:nth-child(2n+1) { border-left: 0; }
.ledger-row:nth-last-child(-n+2) { border-bottom: 0; }
.ledger-row__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 600;
}
.ledger-row__value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  text-align: right;
  font-feature-settings: "tnum" 1;
}
@media (max-width: 600px) {
  .ledger-grid { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: 1fr; border-left: 0; }
  .ledger-row__value { text-align: left; }
}

/* === Prize tier dossier === */
.prize-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1.5px solid var(--rule);
}
.prize-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  padding: 24px 28px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.prize-row:last-child { border-bottom: 0; }
.prize-row__tier {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  font-feature-settings: "tnum" 1;
}
.prize-row__name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.prize-row__copy {
  font-size: 0.9rem;
  color: var(--muted);
}
.prize-row__reward {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .prize-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 20px; }
  .prize-row__reward { text-align: left; }
}

/* === Editor pick cutout === */
.editor-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--surface-2);
  padding: 36px;
  border: 1.5px solid var(--rule);
}
.editor-pick__img {
  border: 1.5px solid var(--rule);
  background: var(--surface);
  padding: 12px;
}
.editor-pick__img img { width: 100%; height: auto; }
.editor-pick__copy h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}
.editor-pick__lede {
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.65;
}
.editor-pick__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  margin-top: 16px;
}
.editor-pick__stat {
  padding: 12px 8px;
  border-left: 1px solid var(--border);
}
.editor-pick__stat:first-child { border-left: 0; }
.editor-pick__stat-val {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  font-feature-settings: "tnum" 1;
}
.editor-pick__stat-lbl {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}
@media (max-width: 768px) {
  .editor-pick { grid-template-columns: 1fr; padding: 24px; }
  .editor-pick__stats { grid-template-columns: 1fr; }
  .editor-pick__stat { border-left: 0; border-top: 1px solid var(--border); }
  .editor-pick__stat:first-child { border-top: 0; }
}

/* === Hall of champions === */
.hall-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
}
.hall-row {
  padding: 18px 20px;
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hall-row:nth-child(3n+1) { border-left: 0; }
.hall-row:nth-last-child(-n+3) { border-bottom: 0; }
.hall-row__name {
  font-size: 1rem;
  font-weight: 600;
}
.hall-row__deck {
  font-size: 0.85rem;
  color: var(--muted);
}
.hall-row__week {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-top: 4px;
}
@media (max-width: 768px) {
  .hall-list { grid-template-columns: 1fr; }
  .hall-row { border-left: 0; }
  .hall-row:nth-child(3n+1) { border-left: 0; }
}

/* === Trust panel === */
.trust-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.trust-panel__copy { padding-right: 16px; }
.trust-panel__img {
  border: 1.5px solid var(--rule);
  background: var(--surface);
  padding: 12px;
}
.trust-panel__img img { width: 100%; height: auto; }
@media (max-width: 768px) {
  .trust-panel { grid-template-columns: 1fr; }
  .trust-panel__copy { padding-right: 0; }
}

/* === Compliance block === */
.compliance {
  background: var(--surface-2);
  padding: 32px;
  border: 1.5px solid var(--rule);
}
.compliance h3 { margin-bottom: 12px; }
.compliance p { font-size: 0.95rem; line-height: 1.65; color: var(--text); }
.compliance ul { padding-left: 18px; margin: 12px 0; }
.compliance li { font-size: 0.95rem; margin-bottom: 6px; }

/* === Methodology colophon === */
.colophon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.colophon__copy h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}
.colophon__copy p { font-size: 0.95rem; line-height: 1.65; }
.colophon__img {
  border: 1.5px solid var(--rule);
  background: var(--surface);
  padding: 12px;
}
.colophon__img img { width: 100%; height: auto; }
@media (max-width: 768px) {
  .colophon { grid-template-columns: 1fr; }
}

/* === Final CTA === */
.final-cta {
  background: var(--primary);
  color: #FFFBEF;
  padding: 56px 32px;
  text-align: center;
  border: 1.5px solid var(--primary);
}
.final-cta h2 {
  color: #FFFBEF;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.final-cta p {
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}
.final-cta .btn--accent {
  background: var(--accent);
  color: #FFFBEF !important;
  border-color: var(--accent);
}

/* === Article hero (child pages) === */
.article-cover {
  padding: 56px 0 32px;
  border-bottom: 1.5px solid var(--rule);
}
.article-cover__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.article-cover__copy h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.article-cover__lede {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text);
}
.article-cover__meta {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 16px;
}
.article-cover__img {
  border: 1.5px solid var(--rule);
  background: var(--surface);
  padding: 12px;
}
.article-cover__img img { width: 100%; height: auto; }
@media (max-width: 768px) {
  .article-cover__inner { grid-template-columns: 1fr; }
}

/* === Prose blocks === */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.prose h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-top: 40px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.prose h3 {
  font-size: 1.25rem;
  margin-top: 28px;
  margin-bottom: 10px;
}
.prose p { margin-bottom: 1.1em; }
.prose ul { padding-left: 22px; margin-bottom: 1.1em; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  background: var(--surface-2);
  font-style: normal;
  color: var(--text);
}
.prose figure {
  margin: 28px 0;
  padding: 0;
}
.prose figure img {
  width: 100%;
  height: auto;
  border: 1.5px solid var(--rule);
}
.prose figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: right;
  border-top: 1px solid var(--border);
  padding-top: 6px;
}

/* === Inline card / data card === */
.data-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px 22px;
  border-left: 4px solid var(--primary);
}
.data-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.data-card__copy {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* === Two-column card grid === */
.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
}

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1.5px solid var(--rule); border-bottom: 1.5px solid var(--rule); }
.faq-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.faq-item p { font-size: 0.95rem; color: var(--text); line-height: 1.7; margin: 0; }

/* === Related hubs === */
.related-hubs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.related-hubs a {
  display: block;
  padding: 20px;
  background: var(--surface);
  border: 1.5px solid var(--rule);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.related-hubs a:hover { background: var(--primary); color: #FFFBEF; border-color: var(--primary); }
@media (max-width: 768px) { .related-hubs { grid-template-columns: 1fr; } }

/* === Sticky mobile CTA === */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 240;
  background: var(--primary);
  padding: 12px var(--gutter);
  display: none;
  border-top: 1.5px solid var(--primary-ink);
  box-shadow: 0 -4px 24px rgba(29,42,54,0.18);
}
.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--container);
  margin: 0 auto;
}
.sticky-cta__copy {
  font-size: 0.85rem;
  color: #FFFBEF;
  flex: 1;
  line-height: 1.3;
}
.sticky-cta__copy strong { color: #FFFFFF; }
.sticky-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #FFFBEF !important;
  text-decoration: none !important;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 2px;
  white-space: nowrap;
  border: 0;
  width: 50%;
  max-width: 240px;
  letter-spacing: 0.04em;
}
@media (max-width: 899px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 80px; }
}

/* === Inline image row === */
.inline-image-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: center;
  margin: 32px 0;
}
.inline-image-row img { width: 100%; height: auto; border: 1.5px solid var(--rule); }
@media (max-width: 768px) {
  .inline-image-row { grid-template-columns: 1fr; }
}

/* === TOC === */
.toc {
  background: var(--surface);
  border: 1.5px solid var(--rule);
  padding: 24px 28px;
  margin: 32px 0;
}
.toc h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 12px;
  border-bottom: 0;
  padding-bottom: 0;
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  padding: 6px 0;
  border-bottom: 1px dotted var(--border);
  font-size: 0.95rem;
}
.toc li:last-child { border-bottom: 0; }
.toc a {
  color: var(--text);
  text-decoration: none;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero) " · ";
  color: var(--muted);
  font-feature-settings: "tnum" 1;
}
.toc a:hover { color: var(--primary); }

/* === Notes === */
.note {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 24px;
}

/* === Skipping contrast check === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #FFFBEF;
  padding: 8px 16px;
  z-index: 9999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* === Print baseline (no actual print styles required, but keep readable) === */
@media print {
  .site-header, .site-footer, .sticky-cta, .mobile-drawer { display: none; }
  body { background: white; color: black; }
}

/* === Scroll snap (interaction signature) === */
@media (prefers-reduced-motion: no-preference) {
  body { scroll-snap-type: y proximity; }
  .section, .article-cover { scroll-snap-align: start; scroll-snap-stop: normal; }
}
@media (prefers-reduced-motion: reduce) {
  body { scroll-snap-type: none; }
  * { animation: none !important; transition: none !important; }
}