/* Sleeper Cricket — editorial broadsheet (light mint + deep teal + warm orange)
   Visual contract: editorial-lead / linear-guide / soft-modular / framed /
   minimal / paper-and-ink / humanist-guide.  Design taste: VARIANCE 5,
   MOTION 3, DENSITY 4 — calm editorial, restrained motion, dense but breathable. */

:root {
  --primary: #087A5B;
  --primary-ink: #053F30;
  --accent: #A04E04;
  --accent-ink: #7A3B00;
  --accent-on-dark: #FFC893;
  --background: #F2FAF6;
  --background-deep: #E6F4ED;
  --surface: #FFFFFF;
  --surface-2: #DCF3E8;
  --surface-3: #F7FCF9;
  --text: #12322B;
  --text-soft: #2C4A42;
  --muted: #55716A;
  --muted-soft: #6E847D;
  --border: #BFE2D4;
  --border-soft: #DAEEE3;
  --ink-rule: #12322B;
  --ink-rule-soft: rgba(18,50,43,0.12);
  --frame-shadow: 0 1px 0 rgba(18,50,43,0.06), 0 8px 24px -16px rgba(8,122,91,0.18);
  --live: #D04A2A;
  --live-bg: #FBE9E1;
  --rule: rgba(18,50,43,0.14);
  --max-w: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --space-section: clamp(56px, 7vw, 92px);
  --space-tight: clamp(28px, 4vw, 48px);
  --radius: 6px;
  --radius-card: 4px;
  --serif-stack: "Nunito Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--serif-stack);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--background);
  background-image:
    radial-gradient(1200px 600px at 90% -100px, rgba(8,122,91,0.05), transparent 70%),
    radial-gradient(900px 500px at -100px 90%, rgba(226,130,34,0.04), transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--primary);
  text-decoration: none;
  text-underline-offset: 2px;
}
a:hover { color: var(--accent-ink); }

/* Body text links: underline + bold so color is not the sole cue */
.lead-article a:not(.btn):not(.bs-cta):not(.md-cta):not(.sticky-cta) {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.lead-article a:hover:not(.btn):not(.bs-cta):not(.md-cta):not(.sticky-cta) {
  color: var(--accent-ink);
}

main p a,
main li a,
.method-grid ol a,
.rules-card a,
.state-matrix a,
.corrections-col a,
.letter-card a,
.callout-box a,
.credits a,
.prose a,
.faq-grid a,
.section a:not(.hub-card):not(.bs-cta):not(.md-cta):not(.sticky-cta):not(.btn) {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 600;
}
main p a:hover,
main li a:hover,
.method-grid ol a:hover,
.rules-card a:hover,
.state-matrix a:hover,
.corrections-col a:hover,
.letter-card a:hover,
.callout-box a:hover,
.credits a:hover,
.prose a:hover,
.faq-grid a:hover,
.section a:hover:not(.hub-card):not(.bs-cta):not(.md-cta):not(.sticky-cta):not(.btn) {
  color: var(--accent-ink);
}

h1, h2, h3, h4, h5 {
  font-family: var(--serif-stack);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }
h4 { font-size: 18px; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 4px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============================================
   MASTHEAD + TOP STRIP
   ============================================ */
.site-topstrip {
  background: var(--primary-ink);
  color: #E6F4ED;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-topstrip .container {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center;
}
.site-topstrip .ed-stamp {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700;
}
.site-topstrip .ed-stamp::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(226,130,34,0.22);
}
.site-topstrip .ed-meta { opacity: 0.85; }
.site-topstrip .ed-meta strong { color: #fff; font-weight: 700; }
.site-topstrip a { color: inherit; border-bottom: 1px dotted rgba(230,244,237,0.4); }

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; gap: 18px; min-height: 70px;
}
.brand-mark {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--text); font-weight: 800;
}
.brand-mark .bm-glyph {
  width: 38px; height: 38px;
  background: var(--primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18);
}
.brand-mark .bm-name {
  display: flex; flex-direction: column; line-height: 1.05;
}
.brand-mark .bm-name span:first-child {
  font-size: 22px; letter-spacing: -0.02em; font-weight: 800;
}
.brand-mark .bm-name span:last-child {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted); font-weight: 700;
}

.primary-nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 4px;
}
@media (min-width: 1024px) {
  .primary-nav { display: inline-flex; }
}
.primary-nav a {
  display: inline-flex; align-items: center;
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  border-radius: 4px;
  letter-spacing: -0.005em;
}
.primary-nav a:hover { background: var(--surface-2); color: var(--primary-ink); }
.primary-nav a.is-cta {
  background: var(--accent);
  color: #fff;
  margin-left: 6px;
}
.primary-nav a.is-cta:hover { background: var(--accent-ink); }
.primary-nav a.is-ghost {
  border: 1px solid var(--border);
  margin-left: 6px;
}

.hamburger {
  display: inline-flex;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  color: var(--text);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  position: relative;
}
.hamburger span::before,
.hamburger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor;
}
.hamburger span::before { top: -7px; }
.hamburger span::after  { top:  7px; }
@media (min-width: 1024px) {
  .hamburger { display: none; }
}

/* ============================================
   MOBILE DRAWER
   ============================================ */
.mobile-drawer {
  position: fixed; top: 0; right: 0;
  width: min(86vw, 360px); height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -16px 0 40px rgba(8,122,91,0.10);
  transform: translateX(100%);
  visibility: hidden;
  contain: layout paint;
  transition: transform 240ms ease-out, visibility 0s linear 240ms;
  z-index: 240;
  display: flex; flex-direction: column;
  padding: 20px 24px 32px;
  max-width: 100vw;
}
.mobile-drawer[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
  transition: transform 240ms ease-out, visibility 0s linear 0s;
}
.mobile-drawer h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted); margin: 8px 0 12px;
}
.mobile-drawer ul { list-style: none; padding: 0; margin: 0 0 16px; }
.mobile-drawer li { border-bottom: 1px solid var(--border-soft); }
.mobile-drawer a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 2px;
  color: var(--text); font-weight: 600; font-size: 16px;
}
.mobile-drawer a::after {
  content: "→"; color: var(--muted); font-weight: 400;
}
.mobile-drawer .md-cta {
  margin-top: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  padding: 14px 18px;
  border-radius: 4px; font-weight: 800; letter-spacing: 0.02em;
  font-size: 15px; text-transform: uppercase;
}
.mobile-drawer .md-close {
  align-self: flex-end;
  width: 36px; height: 36px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
}
.mobile-drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(18,50,43,0.42);
  opacity: 0; pointer-events: none;
  visibility: hidden;
  contain: layout paint;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
  z-index: 230;
}
.mobile-drawer-scrim[data-open="true"] {
  opacity: 1; pointer-events: auto;
  visibility: visible;
  transition: opacity 200ms ease, visibility 0s linear 0s;
}

@media (min-width: 1024px) {
  .mobile-drawer, .mobile-drawer-scrim { display: none !important; }
}

/* ============================================
   CONTAINER + LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding-block: var(--space-section); }
.section-tight { padding-block: var(--space-tight); }

.surface-paper {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--frame-shadow);
}

.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 14px;
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  margin-right: 8px; vertical-align: middle;
}

.rule {
  display: block;
  height: 1px; width: 100%;
  background: var(--ink-rule-soft);
  border: 0; margin: 0;
}
.rule-strong { background: var(--ink-rule); height: 2px; }

/* ============================================
   HOMEPAGE BLUEPRINT — 11 ordered blocks
   ============================================ */

/* Block 1: MASTHEAD (already rendered above) */

/* Block 2: EDITORIAL LEAD */
.lead-band {
  padding-block: clamp(40px, 6vw, 84px);
  background: linear-gradient(180deg, var(--background) 0%, var(--surface-3) 100%);
  border-bottom: 1px solid var(--border-soft);
}
.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 1023px) {
  .lead-grid { grid-template-columns: minmax(0, 1fr); }
}
.lead-article .lede-head {
  font-size: clamp(13px, 1.4vw, 14px); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-ink); font-weight: 800;
  margin-bottom: 14px;
}
.lead-article h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.lead-article h1 em {
  font-style: italic;
  color: var(--primary);
}
.lead-article .deck {
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 22px;
  font-weight: 500;
}
.lead-article .byline-row {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 0 16px;
  border-top: 1px solid var(--ink-rule-soft);
  border-bottom: 1px solid var(--ink-rule-soft);
  margin-bottom: 22px;
}
.lead-article .byline-row strong { color: var(--text); }
.lead-article p { font-size: 17px; line-height: 1.78; color: var(--text); }

.lead-aside {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 22px 22px 26px;
  border-radius: var(--radius-card);
  position: sticky; top: 100px;
}
.lead-aside h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--primary); margin-bottom: 14px;
}
.lead-aside .frame {
  border: 1px solid var(--ink-rule);
  padding: 6px;
  background: var(--background);
}
.lead-aside .frame img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  filter: contrast(0.96) saturate(0.92);
}
.lead-aside .caption {
  font-size: 12.5px; color: var(--muted);
  margin-top: 10px; line-height: 1.5;
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
}
.lead-aside .caption strong { color: var(--text); display: block; }

/* Editorial index rail — signature device */
.index-rail {
  margin-top: 22px;
  border-top: 2px solid var(--ink-rule);
  padding-top: 14px;
}
.index-rail h3 {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; font-weight: 700;
}
.index-rail ol {
  list-style: none; padding: 0; margin: 0;
  counter-reset: ir;
}
.index-rail li {
  counter-increment: ir;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dotted var(--border);
  font-size: 14px;
}
.index-rail li::before {
  content: counter(ir, decimal-leading-zero);
  color: var(--accent-ink); font-weight: 800; font-size: 13px;
  letter-spacing: 0.04em;
}
.index-rail li a { color: var(--text); font-weight: 600; }
.index-rail li a:hover { color: var(--primary); }
.index-rail li .rail-meta {
  display: block; font-size: 11.5px; color: var(--muted); font-weight: 500;
  margin-top: 1px;
}

/* Lead CTA pair */
.cta-pair {
  display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px;
  max-width: 100%;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  font-size: 15px; font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
}
.cta-pair > .btn { flex: 1 1 auto; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-primary::after { content: "→"; font-size: 16px; }
.btn-secondary {
  background: var(--surface); color: var(--primary-ink);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-2); }

/* Block 3: EDITORIAL STANDARDS STRIP */
.standards-strip {
  background: var(--primary-ink);
  color: #E6F4ED;
  padding-block: 22px;
}
.standards-strip a {
  color: #FFC893;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.standards-strip a:hover { color: #fff; }
.standards-strip .container {
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center;
}
.standards-strip .st-label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-on-dark); font-weight: 800;
}
.standards-strip .st-row {
  display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center;
  font-size: 13.5px;
}
.standards-strip .st-row strong { color: #fff; }
.standards-strip .st-pill {
  background: rgba(255,255,255,0.08);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px; color: #C8E4D9;
}

/* Block 4: HUB GRID */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1023px) { .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px)  { .hub-grid { grid-template-columns: minmax(0, 1fr); } }

.hub-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 22px 22px 24px;
  display: flex; flex-direction: column;
  min-height: 200px;
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, transform 200ms ease;
}
.hub-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.hub-card .hc-num {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 800; margin-bottom: 6px;
}
.hub-card h3 {
  font-size: 19px; line-height: 1.2; margin-bottom: 8px;
  color: var(--text);
}
.hub-card p {
  font-size: 14px; color: var(--text-soft); line-height: 1.55; margin-bottom: 14px;
  flex: 1;
}
.hub-card .hc-link {
  font-size: 13px; font-weight: 700; color: var(--primary);
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 6px;
}
.hub-card .hc-link::after { content: "→"; }

/* Block 5: CRICKET INTELLIGENCE LEDGER */
.ledger-band {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.ledger-band .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.ledger-head {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline;
  justify-content: space-between;
}
.ledger-head h2 {
  margin: 0; font-size: clamp(22px, 2.4vw, 30px);
}
.ledger-head .led-meta { font-size: 13px; color: var(--muted); }

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink-rule);
  border-left: 1px solid var(--ink-rule-soft);
}
@media (max-width: 880px) { .ledger-grid { grid-template-columns: minmax(0,1fr); } }

.ledger-col {
  border-right: 1px solid var(--ink-rule-soft);
  border-bottom: 1px solid var(--ink-rule-soft);
  padding: 18px 18px 22px;
}
.ledger-col h3 {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 4px; font-weight: 800;
}
.ledger-col .led-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.ledger-col table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.ledger-col th, .ledger-col td {
  text-align: left; padding: 8px 0; border-bottom: 1px dotted var(--border);
  font-weight: 500;
}
.ledger-col th {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); font-weight: 700;
}
.ledger-col td.t-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700; color: var(--text);
}
.ledger-col td.t-form {
  font-size: 12.5px; color: var(--muted);
}
.ledger-col .form-w { color: #0E7C50; font-weight: 800; }
.ledger-col .form-l { color: #B83A2C; font-weight: 800; }

/* Block 6: SLEEPER CONTENDERS DESK */
.contenders-band { background: var(--background); }
.contenders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 880px) { .contenders-grid { grid-template-columns: minmax(0,1fr); } }

.contender-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.contender-card .cc-frame {
  border-bottom: 1px solid var(--ink-rule);
  background: var(--surface-2);
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.contender-card .cc-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(0.98) saturate(0.94);
}
.contender-card .cc-frame .cc-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(8,122,91,0.92); color: #fff;
  padding: 4px 10px; border-radius: 2px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
}
.contender-card .cc-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.contender-card h3 {
  font-size: 18px; line-height: 1.2; margin-bottom: 4px;
}
.contender-card .cc-role {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 12px;
}
.contender-card .cc-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  border-top: 1px solid var(--border-soft);
  padding-top: 12px; margin-top: auto;
}
.contender-card .cc-stats div span:first-child {
  display: block; font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.contender-card .cc-stats div span:last-child {
  display: block; font-size: 16px; font-weight: 800; color: var(--text);
  margin-top: 2px;
}

/* Block 7: APPLICATION-GRADE DECISION PANEL */
.decision-band {
  background: linear-gradient(180deg, var(--surface-3) 0%, var(--surface-2) 100%);
  border-block: 1px solid var(--border);
}
.decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
@media (max-width: 880px) { .decision-grid { grid-template-columns: minmax(0, 1fr); } }

.decision-card {
  background: var(--surface);
  border: 1px solid var(--ink-rule);
  border-radius: var(--radius-card);
  padding: 26px;
}
.decision-card h3 {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 6px; font-weight: 800;
}
.decision-card h2 {
  font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 14px;
}
.decision-card ul { padding-left: 18px; margin: 0 0 18px; font-size: 15px; line-height: 1.6; }
.decision-card li { margin-bottom: 6px; }
.decision-card .verif {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px dashed var(--primary);
  padding: 6px 10px; border-radius: 3px;
  font-size: 12.5px; color: var(--primary-ink); font-weight: 700;
}
.decision-card .verif::before {
  content: "✓"; display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; background: var(--primary); color: #fff;
  border-radius: 50%; font-size: 11px; font-weight: 800;
}

.decision-visual {
  border: 2px solid var(--ink-rule);
  background: var(--surface);
  padding: 8px;
}
.decision-visual .dv-frame {
  aspect-ratio: 4/5;
  background: var(--surface-2);
  overflow: hidden;
}
.decision-visual .dv-frame img { width: 100%; height: 100%; object-fit: cover; }
.decision-visual .dv-cap {
  padding: 10px 4px 0;
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
}
.decision-visual .dv-cap strong { color: var(--text); display: block; }

/* Block 8: BONUS CODE STRIP */
.bonus-strip {
  background: var(--primary-ink);
  color: #E6F4ED;
  padding-block: 28px;
}
.bonus-strip .container {
  display: flex; flex-wrap: wrap; gap: 22px;
  align-items: center; justify-content: space-between;
}
.bonus-strip .bs-label {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-on-dark); font-weight: 800;
}
.bonus-strip .bs-headline {
  font-size: clamp(18px, 2vw, 24px); font-weight: 800; color: #fff;
  line-height: 1.25;
}
.bonus-strip .bs-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 13px; color: #C8E4D9;
}
.bonus-strip .bs-meta strong { color: #fff; }
.bonus-strip .bs-cta {
  background: var(--accent);
  color: #fff;
  padding: 14px 22px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
}
.bonus-strip .bs-cta:hover { background: var(--accent-ink); color: #fff; }

/* Block 9: QUIET RULES + STATE ELIGIBILITY */
.rules-band { background: var(--background); }
.rules-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 36px;
}
@media (max-width: 880px) { .rules-grid { grid-template-columns: minmax(0, 1fr); } }

.rules-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 24px 26px;
}
.rules-card h2 {
  font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 6px;
}
.rules-card .led {
  font-size: 15px; color: var(--text-soft); margin-bottom: 18px;
  border-bottom: 1px solid var(--border-soft); padding-bottom: 16px;
}
.rules-card ul {
  list-style: none; padding: 0; margin: 0;
}
.rules-card li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px dotted var(--border-soft);
}
.rules-card li::before {
  content: "§";
  color: var(--accent-ink); font-weight: 800;
  font-family: "Nunito Sans", serif;
}

.state-matrix {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 24px 24px;
}
.state-matrix h3 {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px; font-weight: 800;
}
.state-matrix table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.state-matrix th, .state-matrix td {
  text-align: left; padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
}
.state-matrix th {
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.state-matrix .sm-tag {
  display: inline-block; padding: 3px 8px; border-radius: 2px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em;
}
.sm-tag-ok { background: #DCEFE2; color: #115E45; }
.sm-tag-rstr { background: #FCE4D3; color: #A83F12; }
.sm-tag-na { background: #ECEDEC; color: #555; }

/* Block 10: READER LETTERS + CORRECTIONS */
.letters-band { background: var(--surface); border-block: 1px solid var(--border); }
.letters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 880px) { .letters-grid { grid-template-columns: minmax(0, 1fr); } }

.letter-card {
  background: var(--surface-3);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 22px 24px 24px;
  position: relative;
}
.letter-card::before {
  content: """;
  position: absolute; top: 8px; left: 14px;
  font-family: "Nunito Sans", serif;
  font-size: 60px; line-height: 1;
  color: var(--accent);
  opacity: 0.5;
}
.letter-card h3 {
  font-size: 16px; margin-bottom: 4px; padding-left: 28px;
}
.letter-card .lc-by {
  font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px; padding-left: 28px;
}
.letter-card p { font-size: 14.5px; line-height: 1.65; color: var(--text-soft); margin: 0; }

.corrections-col {
  background: var(--primary-ink);
  color: #E6F4ED;
  border-radius: var(--radius-card);
  padding: 22px 24px 24px;
  margin-top: 22px;
}
.corrections-col h3 {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-on-dark); margin-bottom: 12px; font-weight: 800;
}
.corrections-col dl { margin: 0; }
.corrections-col dt { font-size: 14px; font-weight: 700; color: #fff; margin-top: 12px; }
.corrections-col dt:first-child { margin-top: 0; }
.corrections-col dd { margin: 4px 0 0; font-size: 13.5px; color: #C8E4D9; line-height: 1.55; }

/* Block 11: METHODOLOGY COLOPHON */
.method-band { background: var(--background-deep); }
.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
}
@media (max-width: 880px) { .method-grid { grid-template-columns: minmax(0, 1fr); } }

.method-grid p { font-size: 15px; line-height: 1.7; color: var(--text-soft); }
.method-grid h2 {
  font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 14px;
}
.method-grid ol { padding-left: 20px; font-size: 15px; line-height: 1.7; }
.method-grid ol li { margin-bottom: 10px; }

.method-aside {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 22px 24px;
  border-radius: var(--radius-card);
}
.method-aside h3 {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px; font-weight: 800;
}
.method-aside dl { margin: 0; font-size: 14px; }
.method-aside dt { font-weight: 700; color: var(--text); margin-top: 10px; }
.method-aside dt:first-child { margin-top: 0; }
.method-aside dd { margin: 4px 0 0; color: var(--text-soft); }

/* ============================================
   CONTENT IMAGE CARDS (framed)
   ============================================ */
.img-frame {
  border: 1px solid var(--ink-rule);
  background: var(--surface);
  padding: 8px;
}
.img-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(0.97) saturate(0.94);
}
.img-frame-caption {
  font-size: 12.5px;
  color: var(--muted);
  padding: 8px 4px 0;
  line-height: 1.5;
}
.img-frame-caption strong { color: var(--text); display: block; }

.inline-image-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
  margin: 28px 0;
}
@media (max-width: 768px) {
  .inline-image-row { grid-template-columns: minmax(0, 1fr); }
}
.inline-image-row .img-frame { aspect-ratio: 4/3; }
.inline-image-row h3 { margin-top: 0; }
.inline-image-row p { font-size: 16px; }

/* ============================================
   CHILD PAGE SHELL
   ============================================ */
.page-shell {
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(48px, 7vw, 92px);
}
.page-shell .ps-container {
  max-width: 880px;
  margin: 0 auto;
}
.page-shell h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08; margin-bottom: 14px;
}
.page-shell .ps-deck {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-soft);
  margin-bottom: 22px;
  line-height: 1.5;
  border-bottom: 1px solid var(--ink-rule-soft);
  padding-bottom: 22px;
}
.page-shell .ps-byline {
  font-size: 13px;
  color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 22px;
}
.page-shell .ps-byline strong { color: var(--text); }
.page-shell .ps-banner {
  margin: 0 0 32px;
}
.page-shell .ps-banner .img-frame { aspect-ratio: 16/9; }

.page-shell h2 { margin-top: 32px; font-size: clamp(22px, 2.4vw, 28px); }
.page-shell h3 { margin-top: 22px; font-size: clamp(18px, 1.8vw, 22px); }
.page-shell p { font-size: 17px; line-height: 1.78; }
.page-shell ul, .page-shell ol { font-size: 16.5px; line-height: 1.7; }
.page-shell li { margin-bottom: 8px; }

.faq-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 26px 26px;
  margin: 32px 0;
}
.faq-block h2 {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); margin-top: 0;
}
.faq-block details {
  border-bottom: 1px dotted var(--border);
  padding: 12px 0;
}
.faq-block details:last-child { border-bottom: 0; }
.faq-block summary {
  font-weight: 700; cursor: pointer;
  font-size: 16px; color: var(--text);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: "+"; font-weight: 600; color: var(--muted); margin-left: 12px; }
.faq-block details[open] summary::after { content: "−"; }
.faq-block details p {
  margin-top: 10px; font-size: 15.5px; color: var(--text-soft); line-height: 1.7;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  margin: 24px 0;
}
.toc h2 {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); margin-top: 0; margin-bottom: 10px;
}
.toc ol { margin: 0; padding-left: 18px; font-size: 14.5px; }
.toc li { margin-bottom: 4px; }

.callout-box {
  border-left: 3px solid var(--accent);
  background: var(--surface-3);
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}
.callout-box h3 {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 8px;
}
.callout-box p { margin: 0; font-size: 15.5px; }

.related-row {
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--ink-rule);
}
.related-row h3 {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 800;
}
.related-row ul {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (max-width: 640px) { .related-row ul { grid-template-columns: 1fr; } }
.related-row li {
  border-bottom: 1px dotted var(--border);
  padding: 8px 0;
}
.related-row a {
  display: block;
  color: var(--text); font-weight: 600; font-size: 14.5px;
}
.related-row a:hover { color: var(--primary); }

/* ============================================
   HUB PAGES — TOC + SECTIONS
   ============================================ */
.hub-grid-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  gap: 36px;
}
@media (max-width: 980px) { .hub-grid-wide { grid-template-columns: minmax(0, 1fr); } }

.aside-rail {
  position: sticky; top: 100px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 18px 20px 22px;
}
.aside-rail h3 {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
.aside-rail ol {
  list-style: none; padding: 0; margin: 0; counter-reset: ar;
}
.aside-rail li {
  counter-increment: ar;
  display: grid; grid-template-columns: 22px 1fr;
  font-size: 13.5px; padding: 6px 0;
  border-bottom: 1px dotted var(--border);
}
.aside-rail li::before {
  content: counter(ar); color: var(--accent-ink); font-weight: 800;
}
.aside-rail a { color: var(--text); }
.aside-rail a:hover { color: var(--primary); }

.subtopic-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 880px) { .subtopic-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .subtopic-card-grid { grid-template-columns: minmax(0, 1fr); } }

.subtopic-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.subtopic-card:hover { border-color: var(--primary); }
.subtopic-card h4 { font-size: 15px; margin: 0 0 4px; }
.subtopic-card p { font-size: 13.5px; color: var(--text-soft); margin: 0; line-height: 1.55; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--primary-ink);
  color: #C8E4D9;
  padding-block: 48px 28px;
  border-top: 4px solid var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-on-dark); margin: 0 0 12px; font-weight: 800;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; font-size: 14px; }
.footer-grid a { color: #C8E4D9; }
.footer-grid a:hover { color: #fff; }
.footer-grid .ft-brand { font-size: 13.5px; line-height: 1.55; }
.footer-grid .ft-brand strong { color: #fff; }

.compliance-strip {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 18px;
  font-size: 12.5px;
  color: #C8E4D9;
  line-height: 1.6;
  display: flex; flex-wrap: wrap; gap: 14px 24px;
  justify-content: space-between; align-items: flex-start;
}
.compliance-strip p { margin: 0; max-width: 720px; }
.compliance-strip a {
  color: #FFC893;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.compliance-strip a:hover { color: #fff; }

/* ============================================
   MOBILE STICKY AFFILIATE CTA
   ============================================ */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 14px;
  z-index: 220;
  display: none;
  align-items: center; justify-content: center; gap: 10px;
  padding: 14px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 800; letter-spacing: 0.04em; font-size: 15px;
  text-transform: uppercase;
  border-radius: 6px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.35), 0 0 0 2px rgba(255,255,255,0.6) inset;
  text-decoration: none;
  white-space: nowrap;
}
.sticky-cta[data-show="true"] { display: inline-flex; }
.sticky-cta::after { content: "→"; }
@media (min-width: 1024px) { .sticky-cta { display: none !important; } }
@media (max-width: 1023px) {
  body { padding-bottom: 80px; }
}

/* ============================================
   AFFILIATE LINK CONTRACT
   ============================================ */
a[data-affiliate-route] {
  position: relative;
}

/* ============================================
   UTILITY
   ============================================ */
.tag-pill {
  display: inline-block; padding: 3px 8px; border-radius: 2px;
  background: var(--surface-2); color: var(--primary-ink);
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
}
.tag-pill.tag-live { background: var(--live-bg); color: var(--live); }
.tag-pill.tag-ok { background: #DCEFE2; color: #115E45; }

.kicker-line {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: 12px; color: var(--muted); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 12px; font-weight: 700;
}
.kicker-line .k-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.list-clean { list-style: none; padding: 0; margin: 0; }

/* ============================================
   TABLE — editorial scoring
   ============================================ */
.table-editorial {
  width: 100%; max-width: 100%; border-collapse: collapse; margin: 18px 0;
  font-size: 14.5px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  table-layout: fixed;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.table-editorial th, .table-editorial td {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border-soft);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.table-editorial th {
  background: var(--surface-2); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary-ink); font-weight: 800;
}
.table-editorial tr:last-child td { border-bottom: 0; }

/* ============================================
   SECTION HEAD SHARED
   ============================================ */
.sh-head {
  display: grid; gap: 4px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink-rule);
}
.sh-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.18;
}
.sh-head .sh-deck {
  font-size: 15.5px; color: var(--text-soft); margin-top: 6px; max-width: 760px;
}
.sh-head .sh-meta {
  font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700; margin-top: 4px;
}

/* ============================================
   DENSITY BAND — keep broadsheet breathable
   ============================================ */
.brand-strap {
  background: var(--accent);
  color: #fff;
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.brand-strap a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Mobile truncation safe */
.truncate-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}