/* Fantafeat — Global Stylesheet
 * Slate utility palette, paper-and-ink surface treatment.
 * No external CSS framework. Plain CSS with variables.
 */

:root {
  /* Color tokens */
  --primary: #2457A7;
  --primary-strong: #1B4380;
  --primary-soft: #DCE6F4;
  --accent: #A044C5;
  --accent-soft: #EFDDF8;

  --background: #F6F8FC;
  --surface: #FFFFFF;
  --surface-2: #E9EEF7;
  --surface-3: #DDE5F1;

  --text: #1B2638;
  --text-strong: #0E1623;
  --muted: #5A6B80;
  --muted-soft: #8595A8;

  --border: #CDD8E8;
  --border-strong: #9DAEC4;

  --success: #1F7A4D;
  --warning: #B1741F;
  --danger: #B03333;

  /* Shape */
  --radius-card: 12px;
  --radius-button: 999px;
  --radius-input: 8px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Typography */
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "DM Sans Mono", "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --font-devanagari: "Noto Sans Devanagari", "Mangal", sans-serif;

  /* Header */
  --header-h-desktop: 64px;
  --header-h-mobile: 56px;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
}

/* ===== Reset / base ===== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-strong);
  margin: 0 0 var(--space-4);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(32px, 4vw, 56px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.14; }
h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 var(--space-4); }
ul, ol { padding-left: 22px; margin: 0 0 var(--space-4); }
li { margin-bottom: 6px; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ===== Layout helpers ===== */

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 32px, var(--container-narrow)); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.section-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; margin-bottom: var(--space-2); }
.section-lede { color: var(--muted); font-size: 16px; max-width: 64ch; margin-bottom: var(--space-5); }
.section-head { margin-bottom: var(--space-5); }

.skip-link {
  position: absolute; top: -100px; left: 8px;
  background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 6px;
  z-index: 999; font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* ===== Buttons ===== */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn:hover { background: var(--primary-strong); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: var(--primary-soft); }
.btn-ghost {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }

/* ===== Header / nav ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h-desktop);
}
.site-header-inner {
  display: flex; align-items: center; gap: 16px;
  height: 100%;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-strong); font-weight: 700; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 17px;
  letter-spacing: -0.02em;
}
.brand-name { letter-spacing: -0.02em; }
.brand-tag { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; margin-top: -2px; }

.main-nav {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto; margin-right: auto;
}
.main-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--surface-2); text-decoration: none; }
.main-nav a.cta {
  background: var(--primary); color: #fff; padding: 10px 18px;
}
.main-nav a.cta:hover { background: var(--primary-strong); }
.header-right { display: inline-flex; align-items: center; gap: 10px; }

.hamburger {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 44px; height: 44px;
  position: relative;
  z-index: 300;
}
.hamburger span {
  display: block;
  position: absolute; left: 10px;
  width: 22px; height: 2px;
  background: var(--text-strong);
  transition: transform 200ms ease, opacity 200ms ease, top 200ms ease;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--surface);
  padding: calc(var(--header-h-mobile) + 24px) 24px 100px;
  z-index: 220;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  overflow-y: auto;
}
.mobile-drawer[data-open="true"] { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-drawer ul { list-style: none; padding: 0; margin: 0 0 24px; }
.mobile-drawer li { margin: 0; border-bottom: 1px solid var(--border); }
.mobile-drawer a {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-strong);
}
.mobile-drawer .btn { margin-top: 8px; }

@media (max-width: 900px) {
  .site-header { height: var(--header-h-mobile); }
  .main-nav { display: none; }
  .header-right .btn:not(.hamburger) { display: none; }
  .hamburger { display: inline-block; }
}

/* ===== Hero typographic poster ===== */

.hero {
  position: relative;
  padding: var(--space-7) 0 var(--space-8);
  background:
    linear-gradient(180deg, rgba(36, 87, 167, 0.04) 0%, rgba(160, 68, 197, 0.04) 100%),
    var(--background);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; }
.hero-copy { max-width: 720px; }
.hero h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.hero-lede { font-size: 18px; color: var(--muted); max-width: 56ch; margin-bottom: var(--space-5); line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-poster {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}
.hero-poster::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.hero-poster-eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hero-poster-title { font-size: 22px; font-weight: 700; color: var(--text-strong); margin-bottom: var(--space-4); }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-4); align-items: center; }
.score-team { display: flex; flex-direction: column; gap: 4px; }
.score-team .abbr { font-weight: 700; font-size: 22px; color: var(--text-strong); letter-spacing: -0.01em; }
.score-team .name { font-size: 13px; color: var(--muted); }
.score-mid { text-align: center; }
.score-num { font-family: var(--font-mono); font-weight: 700; font-size: clamp(40px, 5vw, 56px); color: var(--text-strong); line-height: 1; letter-spacing: -0.04em; }
.score-mid .vs { display: block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.score-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px dashed var(--border); }
.score-stat { font-family: var(--font-mono); }
.score-stat .lbl { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.score-stat .val { font-size: 18px; font-weight: 700; color: var(--text-strong); }

@media (max-width: 900px) {
  .hero { padding: var(--space-6) 0 var(--space-7); }
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero-poster { padding: var(--space-4); }
  .hero h1 { font-size: clamp(30px, 7vw, 40px); }
}

/* ===== Compliance strip ===== */

.compliance-strip {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 13px;
}
.compliance-strip-inner {
  display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
.compliance-strip strong { color: var(--text-strong); font-weight: 600; }

/* ===== Trust strip ===== */

.trust-strip {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}
.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5);
}
.trust-item { display: flex; align-items: flex-start; gap: 12px; }
.trust-item .num { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1; }
.trust-item .lbl { font-size: 13px; color: var(--muted); margin-top: 4px; display: block; line-height: 1.4; }
@media (max-width: 700px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}
@media (max-width: 420px) {
  .trust-row { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ===== Chapter navigator (hub grid) ===== */

.chapter-navigator { padding: var(--space-8) 0; border-bottom: 1px solid var(--border); }
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.chapter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  position: relative;
  transition: border-color 160ms ease, transform 160ms ease;
  display: flex; flex-direction: column;
  min-height: 220px;
}
.chapter-card:hover { border-color: var(--primary); transform: translateY(-2px); text-decoration: none; }
.chapter-card .num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.chapter-card .ch-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}
.chapter-card .ch-blurb { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: var(--space-4); flex-grow: 1; }
.chapter-card .ch-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px; color: var(--primary);
}
@media (max-width: 1000px) { .chapter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .chapter-grid { grid-template-columns: 1fr; } .chapter-card { min-height: 0; } }

/* ===== Generic sections ===== */

.section { padding: var(--space-8) 0; border-bottom: 1px solid var(--border); }
.section.tone-paper { background: var(--surface); }
.section.tone-stone { background: var(--surface-2); }
.section.tone-ink {
  background: var(--text-strong);
  color: #DCE2EC;
}
.section.tone-ink h2,
.section.tone-ink h3,
.section.tone-ink h4 { color: #fff; }
.section.tone-ink a { color: #B8C8E5; }
.section.tone-ink a:hover { color: #fff; }

/* ===== Explainer band ===== */

.explainer {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start;
}
.explainer-copy h2 { margin-bottom: var(--space-4); }
.explainer-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--space-3);
}
.explainer-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin: 0;
}
.explainer-list .pill {
  font-family: var(--font-mono);
  background: var(--primary-soft); color: var(--primary-strong);
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}
.explainer-list strong { display: block; color: var(--text-strong); margin-bottom: 2px; font-weight: 600; }
.explainer-list p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .explainer { grid-template-columns: 1fr; gap: var(--space-5); } }

/* ===== Steps band ===== */

.steps-band { display: grid; gap: var(--space-4); }
.steps-band .step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  position: relative;
}
.step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }
@media (max-width: 900px) { .steps-band .step-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-band .step-grid { grid-template-columns: 1fr; } }

/* ===== Data card band (points system) ===== */

.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.data-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  position: relative;
}
.data-card .num {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-3);
}
.data-card .lbl {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.data-card h3 { font-size: 17px; margin-bottom: 6px; }
.data-card p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
@media (max-width: 900px) { .data-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .data-grid { grid-template-columns: 1fr; } }

/* ===== Trio card grid (contest types) ===== */

.trio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.trio {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  display: flex; flex-direction: column;
}
.trio .badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); font-weight: 700;
  margin-bottom: var(--space-3);
}
.trio h3 { font-size: 20px; margin-bottom: var(--space-3); }
.trio p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 var(--space-4); flex-grow: 1; }
.trio ul { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.trio ul li { font-size: 13px; color: var(--muted); padding: 4px 0; margin: 0; border-bottom: 1px dashed var(--border); }
.trio ul li:last-child { border-bottom: 0; }
@media (max-width: 900px) { .trio-grid { grid-template-columns: 1fr; } }

/* ===== Visual field guide (cutout image row) ===== */

.field-guide {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: var(--space-4);
}
.field-guide-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.field-guide-item.lead { grid-row: span 2; }
.field-guide-item .frame {
  aspect-ratio: 4/3;
  background: var(--surface-2);
  overflow: hidden;
}
.field-guide-item .frame img { width: 100%; height: 100%; object-fit: cover; }
.field-guide-item .body { padding: var(--space-4) var(--space-5); flex-grow: 1; }
.field-guide-item .body .num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); font-weight: 700;
  display: block; margin-bottom: 6px;
}
.field-guide-item .body h3 { font-size: 17px; margin-bottom: 6px; }
.field-guide-item .body p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
@media (max-width: 900px) { .field-guide { grid-template-columns: 1fr 1fr; } .field-guide-item.lead { grid-column: span 2; grid-row: auto; } }
@media (max-width: 560px) { .field-guide { grid-template-columns: 1fr; } .field-guide-item.lead { grid-column: auto; } }

/* ===== Editorial leaderboard ===== */

.leaderboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.leaderboard-head {
  display: grid; grid-template-columns: 60px 1.4fr 1fr 1fr 1fr 1fr;
  padding: 14px 18px;
  background: var(--surface-2);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.leaderboard-row {
  display: grid; grid-template-columns: 60px 1.4fr 1fr 1fr 1fr 1fr;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 15px; align-items: center;
}
.leaderboard-row .rank { font-family: var(--font-mono); font-weight: 700; color: var(--text-strong); }
.leaderboard-row .player { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-strong); }
.leaderboard-row .player .badge-mini {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700;
}
.leaderboard-row .stat { font-family: var(--font-mono); color: var(--muted); }
.leaderboard-row .stat.pos { color: var(--success); }
.leaderboard-row .stat.neg { color: var(--danger); }
.leaderboard-row.featured { background: var(--primary-soft); }
@media (max-width: 900px) {
  .leaderboard-head, .leaderboard-row { grid-template-columns: 40px 1.6fr 1fr 1fr; }
  .leaderboard-head .hide-md, .leaderboard-row .hide-md { display: none; }
}

/* ===== Split axis (team vs team) ===== */

.split-axis { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.split-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
}
.split-side h3 { font-size: 18px; margin-bottom: var(--space-3); }
.split-side p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: var(--space-3); }
.split-side .verdict {
  border-top: 1px dashed var(--border);
  padding-top: var(--space-3);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-strong);
}
@media (max-width: 900px) { .split-axis { grid-template-columns: 1fr; } }

/* ===== Reference ledger table ===== */

.ledger {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--danger);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  overflow: hidden;
}
.ledger-head {
  padding: 18px 20px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.ledger-head h3 { font-size: 18px; margin: 0; }
.ledger-head .meta { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th, .ledger td { padding: 12px 18px; text-align: left; border-top: 1px solid var(--border); }
.ledger th { background: var(--surface); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ledger td:first-child { font-weight: 600; color: var(--text-strong); }
.ledger td.num { font-family: var(--font-mono); color: var(--text-strong); font-weight: 600; text-align: right; }
.ledger tr:hover { background: var(--surface-2); }
@media (max-width: 700px) { .ledger table, .ledger thead, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; } .ledger thead { display: none; } .ledger tr { border-top: 1px solid var(--border); padding: 12px 16px; } .ledger td { padding: 4px 0; border: 0; } }

/* ===== Questions desk (FAQ) ===== */

.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.qa-item {
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}
.qa-item h3 { font-size: 17px; margin-bottom: var(--space-2); color: var(--text-strong); }
.qa-item p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
@media (max-width: 900px) { .qa-grid { grid-template-columns: 1fr; gap: var(--space-4); } }

/* ===== Next step CTA panel ===== */

.cta-panel {
  background: linear-gradient(135deg, var(--text-strong) 0%, #243049 100%);
  color: #fff;
  border-radius: var(--radius-card);
  padding: var(--space-7) var(--space-6);
  display: grid; grid-template-columns: 1.4fr auto; gap: var(--space-5); align-items: center;
}
.cta-panel h2 { color: #fff; margin-bottom: var(--space-3); }
.cta-panel p { color: #B8C8E5; max-width: 56ch; margin: 0; }
.cta-panel .btn { font-size: 16px; padding: 14px 28px; }
@media (max-width: 700px) { .cta-panel { grid-template-columns: 1fr; text-align: left; } }

/* ===== Responsible play band ===== */

.responsible-play {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-7) 0;
}
.responsible-play h2 { font-size: 24px; margin-bottom: var(--space-3); }
.responsible-play p { color: var(--muted); max-width: 70ch; margin-bottom: var(--space-3); }
.responsible-play .responsible-tags {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-3);
}
.responsible-play .responsible-tags span {
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px; font-size: 12px; color: var(--muted); font-weight: 500;
}

/* ===== Footer ===== */

.site-footer {
  background: var(--text-strong);
  color: #B8C8E5;
  padding: var(--space-7) 0 var(--space-5);
  font-size: 14px;
}
.site-footer a { color: #B8C8E5; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: var(--space-6);
}
.footer-grid h4 {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 8px; font-size: 14px; }
.footer-brand .brand-name { color: #fff; font-size: 22px; }
.footer-brand p { color: #B8C8E5; margin-top: 12px; max-width: 38ch; }
.footer-bottom {
  margin-top: var(--space-6); padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: #8FA0BA;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== Article / page content ===== */

.article {
  padding: var(--space-7) 0 var(--space-8);
}
.article .container { max-width: 880px; }
.article-banner {
  aspect-ratio: 16/7;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: var(--space-6);
  background: var(--surface-2);
}
.article-banner img { width: 100%; height: 100%; object-fit: cover; }
.article h1 { margin-bottom: var(--space-3); }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: var(--space-5); }
.article .lead { font-size: 19px; line-height: 1.6; color: var(--text); border-left: 3px solid var(--primary); padding-left: var(--space-4); margin-bottom: var(--space-6); }
.article h2 { margin-top: var(--space-7); margin-bottom: var(--space-3); }
.article h3 { margin-top: var(--space-5); margin-bottom: var(--space-3); }
.article p { font-size: 17px; line-height: 1.75; }
.article ul, .article ol { font-size: 17px; line-height: 1.7; }
.article figure { margin: var(--space-5) 0; }
.article figure img { border-radius: var(--radius-card); }
.article figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; text-align: center; }
.article .toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
}
.article .toc h2 { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.article .toc ul { list-style: none; padding: 0; margin: 0; }
.article .toc li { margin: 0; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.article .toc li:last-child { border-bottom: 0; }

.inline-image-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5);
  align-items: center; margin: var(--space-6) 0;
}
.inline-image-row .img-frame {
  aspect-ratio: 4/3;
  background: var(--surface-2);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.inline-image-row .img-frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .inline-image-row { grid-template-columns: 1fr; } }

/* ===== Forms ===== */

.form-row { margin-bottom: var(--space-4); }
.form-row label {
  display: block; font-size: 13px; font-weight: 600; color: var(--text-strong);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea,
.form-row select {
  display: block; width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  font-family: inherit;
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { outline: 3px solid var(--primary-soft); border-color: var(--primary); }
.form-row .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ===== Tables generic ===== */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ===== Mobile sticky CTA ===== */

.mobile-sticky-cta {
  display: none;
}
@media (max-width: 900px) {
  .mobile-sticky-cta {
    display: block;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 230;
  }
  .mobile-sticky-cta .btn {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    box-shadow: 0 6px 20px rgba(11, 22, 35, 0.25);
  }
  body { padding-bottom: 88px; }
}

/* ===== Utilities ===== */

.hide-mobile { }
@media (max-width: 700px) { .hide-mobile { display: none !important; } }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }
.flex-row { display: flex; gap: 12px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

/* ===== Critical word count enforcement: at least 1500 visible words on body pages =====
   This is a reminder; pages must write substantive prose. */

/* ===== Print ===== */
@media print {
  .site-header, .site-footer, .mobile-sticky-cta, .hamburger, .mobile-drawer { display: none; }
  body { background: #fff; color: #000; }
}