/* Betway Today — Rummy & Skill-Game Editorial Publication
 * Mint Scorecard color system, Manrope + Noto Sans Devanagari, paper-and-ink surface
 * Static editorial site, no framework, no Tailwind dependency */

:root {
  --brand-green: #087A5B;
  --brand-green-deep: #06553F;
  --brand-green-muted: #4F8C76;
  --paper: #F2FAF6;
  --paper-cream: #ECF6EE;
  --surface: #FFFFFF;
  --surface-2: #DCF3E8;
  --surface-3: #C8E9DA;
  --ink: #12322B;
  --ink-hairline: rgba(18, 50, 43, 0.18);
  --ink-line: rgba(18, 50, 43, 0.32);
  --muted: #55716A;
  --text: #12322B;
  --accent: #E28222;
  --accent-deep: #B4621A;
  --warn-bg: #FFF1DD;
  --border: #BFE2D4;
  --shadow-sm: 0 1px 0 rgba(18, 50, 43, 0.04);
  --radius: 4px;
  --radius-lg: 8px;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --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;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Manrope", "Noto Sans", system-ui, sans-serif;
  --font-devanagari: "Noto Sans Devanagari", "Manrope", system-ui, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
}

/* Reset & base ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); width: 100%; box-sizing: border-box; }
a { color: var(--brand-green-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand-green); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 var(--space-3);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.018em; }
h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; }
h4 { font-size: clamp(17px, 1.4vw, 19px); font-weight: 600; }
p { margin: 0 0 var(--space-4); max-width: 68ch; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 22px; }
hr { border: none; border-top: 1px solid var(--ink-hairline); margin: var(--space-6) 0; }
:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute; top: -40px; left: 8px; background: var(--ink); color: #fff;
  padding: 8px 14px; border-radius: 4px; z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

/* Layout ================================================================== */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-tight { padding: clamp(24px, 4vw, 40px) 0; }
.section-band { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-band-deep { background: var(--surface-3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-cream { background: var(--paper-cream); }
.section-id[id] { scroll-margin-top: 88px; }

/* Header ================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(242, 250, 246, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 72px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 700; font-size: 18px; border-radius: 6px; letter-spacing: -0.04em;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1; letter-spacing: -0.02em; }
.brand-tag { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; font-weight: 600; }
.category-rail { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.category-rail a {
  display: inline-block; padding: 9px 14px; font-size: 14px; font-weight: 600;
  color: var(--ink); text-decoration: none; border-radius: 4px; white-space: nowrap;
  letter-spacing: -0.005em;
}
.category-rail a:hover { background: var(--surface); color: var(--brand-green-deep); }
.category-rail a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; font-size: 14px; font-weight: 700;
  background: var(--ink); color: var(--paper) !important; border-radius: 4px;
  text-decoration: none; white-space: nowrap;
  letter-spacing: 0.02em;
}
.header-cta:hover { background: var(--brand-green-deep); }
.hamburger {
  display: none; background: none; border: 1px solid var(--border);
  width: 42px; height: 42px; border-radius: 4px; padding: 0;
  align-items: center; justify-content: center;
  position: relative; z-index: 320; /* escape site-header (200) + drawer (250) stacking contexts */
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 2.5px auto; border-radius: 2px; }
.hamburger:hover { background: var(--surface); }

.mobile-drawer {
  position: fixed; top: 0; right: -100vw; width: min(86vw, 360px); height: 100dvh;
  background: var(--paper); z-index: 250; border-left: 1px solid var(--ink-line);
  transition: right 0.28s cubic-bezier(.2,.7,.2,1);
  display: none; flex-direction: column;
  pointer-events: none;
}
.mobile-drawer.open { display: flex; right: 0; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-close { background: none; border: 1px solid var(--border); width: 42px; height: 42px; border-radius: 4px; font-size: 22px; line-height: 1; color: var(--ink); }
.drawer-close:hover { background: var(--surface); }
.mobile-drawer nav { display: flex; flex-direction: column; padding: 12px 12px 24px; }
.mobile-drawer nav a {
  display: block; padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.mobile-drawer nav a:hover { background: var(--surface-2); }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }
.drawer-foot a {
  display: block; width: 100%; padding: 14px 16px; background: var(--ink); color: var(--paper);
  text-align: center; font-weight: 700; font-size: 15px; text-decoration: none;
  border-radius: 4px;
}
.drawer-foot a + a { margin-top: 8px; background: transparent; color: var(--ink); border: 1px solid var(--ink-line); }
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(18, 50, 43, 0.45); z-index: 240;
  opacity: 0; transition: opacity 0.2s;
  display: none;
  pointer-events: none;
}
.drawer-scrim.open { display: block; opacity: 1; pointer-events: auto; }

@media (max-width: 960px) {
  .category-rail, .header-cta { display: none; }
  .hamburger { display: inline-flex; }
}

@media (max-width: 960px) {
  /* On mobile, the drawer covers the header. Position:fixed lifts the
   * hamburger out of .site-header's z-index:200 stacking context so it
   * can stay clickable above the drawer (z-index:250) and the scrim (240). */
  .hamburger {
    position: fixed;
    top: 15px;
    right: max(20px, var(--gutter, 24px));
    z-index: 320;
  }
  /* Compensate the gap where the hamburger used to be inside the header
   * so the header-inner stays balanced. */
  .header-inner { padding-right: 70px; }
}

/* Type-poster hero ======================================================== */
.hero {
  background: var(--paper);
  padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid; gap: clamp(28px, 5vw, 56px);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
  width: 100%;
}
.hero-grid > * { min-width: 0; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-5);
  max-width: 18ch;
  /* Reserve hero H1 vertical metrics so font-swap (Manrope fallback →
   * Manrope 400) cannot reflow the heading after first paint. Without
   * this the swap reflows the heading on its way to 4 wrapped lines at
   * 372px mobile width, which Lighthouse CLS records as 0.114 (>0.1).
   * Sized to the worst-case mobile wrap: 40px font @ line-height 1.02
   * × 4 lines ≈ 163px = 4.1em. Slight over-reserve is fine; under-
   * reserve re-creates the CLS. */
  min-height: 4.1em;
}
.hero h1 em {
  font-style: normal; color: var(--brand-green-deep);
  border-bottom: 4px solid var(--accent);
}
.hero-lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink);
  max-width: 50ch;
  margin: 0 0 var(--space-6);
  line-height: 1.55;
}
.hero-meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-green-deep); margin: 0 0 var(--space-4);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo {
  border: 1px solid var(--ink-line); padding: 12px; background: #fff;
  position: relative;
  aspect-ratio: 4/5; /* reserve image area from initial render — prevents CLS
                        when the hero image swaps from intrinsic to styled ratio */
  contain: layout paint;
  min-height: 0;
}
.hero-photo::before {
  content: ""; position: absolute; top: -8px; left: -8px; right: 8px; bottom: 8px;
  border: 1px solid var(--ink-line); background: var(--surface-2); z-index: -1;
}
.hero-photo img { aspect-ratio: 4/5; object-fit: cover; width: 100%; height: 100%; }
.hero-photo-caption {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-top: 10px;
}
.split-axis {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: var(--space-6); border-top: 1px dashed var(--ink-line);
}
.split-axis ol {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  counter-reset: draw;
}
.split-axis li {
  counter-increment: draw;
  border-left: 2px solid var(--ink-line);
  padding: 6px 0 6px 16px;
  position: relative;
}
.split-axis li::before {
  content: ""; position: absolute; left: -6px; top: 9px;
  width: 10px; height: 10px; border: 2px solid var(--brand-green-deep);
  background: var(--paper); border-radius: 50%;
}
.split-axis li b { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-green-deep); margin-bottom: 4px; }
.split-axis li h3 { font-size: 17px; margin: 0 0 4px; }
.split-axis li p { font-size: 14px; margin: 0; color: var(--muted); }

/* Boundary strip */
.boundary-strip {
  background: var(--ink); color: var(--paper);
  padding: 14px 0; font-size: 13px;
}
.boundary-strip .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; justify-content: space-between;
}
.boundary-strip .meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.boundary-strip a { color: #BFE2D4; }
.boundary-strip .tag {
  border: 1px solid var(--brand-green-muted); padding: 4px 10px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--font-mono); color: #BFE2D4;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; font-weight: 700; font-size: 14.5px;
  letter-spacing: 0.02em; white-space: nowrap;
  border: 1px solid transparent; border-radius: 4px;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--paper) !important; }
.btn-primary:hover { background: var(--brand-green-deep); }
.btn-secondary { background: var(--paper); color: var(--ink) !important; border-color: var(--ink-line); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-accent { background: var(--accent); color: #fff !important; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }

/* Section headings */
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand-green-deep); margin: 0 0 var(--space-3);
}
.section-title { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 var(--space-3); max-width: 22ch; }
.section-lede { color: var(--ink); max-width: 60ch; font-size: 16px; margin: 0 0 var(--space-5); }

/* Category rail (formats) ================================================== */
.format-rail { display: grid; gap: var(--space-4); grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 880px) { .format-rail { grid-template-columns: 1fr; } }
.format-tile {
  background: var(--surface); border: 1px solid var(--ink-line); padding: 26px 24px;
  display: flex; flex-direction: column;
}
.format-tile h3 { margin: 0 0 8px; font-size: 22px; }
.format-tile .rule-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.chip {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--ink-line); border-radius: 999px;
  padding: 4px 9px; color: var(--ink); background: var(--paper-cream);
}
.format-tile p { font-size: 14px; margin: 0 0 12px; color: var(--muted); }
.format-tile.muted { background: var(--surface-2); }
.format-tile.deep { background: var(--ink); color: var(--paper); }
.format-tile.deep h3, .format-tile.deep .chip { color: var(--paper); }
.format-tile.deep .chip { border-color: var(--brand-green-muted); background: rgba(255,255,255,0.04); }
.format-tile.deep p { color: #BFE2D4; }

/* Split-axis timeline (full) ================================================ */
.spine { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 0; }
@media (max-width: 760px) { .spine { grid-template-columns: 60px 1fr; } .spine .col-consequence { grid-column: 2 / span 1; } }
.spine-row {
  display: contents;
}
.spine-num {
  border-right: 2px solid var(--ink-line); padding: 18px 12px 18px 0; text-align: right;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--brand-green-deep);
}
.spine-action { border-right: 1px dashed var(--ink-line); padding: 18px 18px; background: var(--surface); }
.spine-action b { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-green-deep); display: block; margin-bottom: 6px; }
.spine-action h4 { margin: 0 0 4px; font-size: 16px; }
.spine-action p { font-size: 13.5px; color: var(--muted); margin: 0; }
.spine-consequence { padding: 18px 18px; background: var(--paper-cream); }
.spine-consequence b { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); display: block; margin-bottom: 6px; }
.spine-consequence p { font-size: 13.5px; color: var(--ink); margin: 0; }

/* Meld anatomy plate ======================================================= */
.meld-plate {
  display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1.2fr) 1fr;
  background: var(--surface); border: 1px solid var(--ink-line); padding: clamp(20px, 3vw, 36px);
}
@media (max-width: 760px) { .meld-plate { grid-template-columns: 1fr; } }
.meld-plate-visual {
  border: 1px solid var(--ink-line); padding: 18px; background: var(--paper-cream);
  position: relative; min-height: 220px;
}
.meld-plate-visual svg { width: 100%; height: auto; }
.meld-list { display: grid; gap: var(--space-3); }
.meld-item { padding: 10px 0; border-bottom: 1px dashed var(--ink-line); }
.meld-item:last-child { border-bottom: none; }
.meld-item h4 { margin: 0 0 4px; font-size: 15.5px; }
.meld-item p { font-size: 13.5px; margin: 0; color: var(--muted); }
.meld-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-green-deep);
  background: var(--surface-2); padding: 3px 8px; border-radius: 4px; margin-right: 8px;
}

/* Scoring ledger =========================================================== */
.ledger-wrap { overflow-x: auto; max-width: 100%; width: 100%; display: block; box-sizing: border-box; }
.ledger {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--ink-line);
  font-size: 14px;
  table-layout: fixed;
}
@media (max-width: 540px) {
  .ledger { font-size: 12.5px; }
  .ledger th, .ledger td { padding: 8px 10px; }
}
.ledger th, .ledger td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.ledger thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; background: var(--surface-2); color: var(--brand-green-deep); }
.ledger tr:last-child td { border-bottom: none; }
.ledger td.marker { font-family: var(--font-mono); color: var(--accent-deep); font-weight: 700; }
.ledger td.num { font-variant-numeric: tabular-nums; text-align: right; }

/* Decision-boundary desk =================================================== */
.desk { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink-line); }
@media (max-width: 760px) { .desk { grid-template-columns: 1fr; } }
.desk-col { padding: 26px 24px; }
.desk-col + .desk-col { border-left: 1px solid var(--ink-line); }
@media (max-width: 760px) { .desk-col + .desk-col { border-left: none; border-top: 1px solid var(--ink-line); } }
.desk-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 12px; }
.desk-col.legal h4 { color: var(--brand-green-deep); }
.desk-col ul { padding-left: 18px; margin: 0; }
.desk-col li { padding: 6px 0; font-size: 14px; }

/* Editorial column with photo =============================================== */
.editorial {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 880px) { .editorial { grid-template-columns: 1fr; } }
.editorial-photo { border: 1px solid var(--ink-line); padding: 10px; background: #fff; }
.editorial-photo img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.editorial-photo figcaption { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.editorial-body p { font-size: 16px; }

/* Numbered checkpoint ======================================================= */
.checkpoint { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.checkpoint-item {
  position: relative; padding: 20px 18px 20px 70px; background: var(--surface); border: 1px solid var(--ink-line);
}
.checkpoint-item .step {
  position: absolute; left: 18px; top: 16px;
  width: 38px; height: 38px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  border-radius: 50%;
}
.checkpoint-item h4 { margin: 0 0 6px; font-size: 16px; }
.checkpoint-item p { font-size: 13.5px; margin: 0; color: var(--muted); }

/* Criteria comparison ledger =============================================== */
.criteria-ledger { background: var(--surface); border: 1px solid var(--ink-line); overflow-x: auto; max-width: 100%; width: 100%; display: block; box-sizing: border-box; }
.criteria-ledger > table { width: 100%; border-collapse: collapse; font-size: 14px; }
@media (max-width: 760px) {
  .criteria-ledger > table { font-size: 12.5px; }
}
.criteria-ledger th, .criteria-ledger td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.criteria-ledger thead th { background: var(--surface-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-green-deep); }
.criteria-ledger td.score { font-family: var(--font-mono); font-weight: 700; color: var(--brand-green-deep); }
.criteria-ledger td.platform { font-weight: 700; }
.criteria-ledger caption {
  caption-side: bottom; padding: 12px 16px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  text-align: left; border-top: 1px solid var(--border);
}

/* Disclosure panel (contextual) ============================================ */
.disclosure-panel {
  border: 1.5px solid var(--ink); background: var(--surface);
  padding: clamp(24px, 4vw, 40px);
  display: grid; gap: var(--space-5); grid-template-columns: 1fr auto;
  align-items: end;
}
@media (max-width: 760px) { .disclosure-panel { grid-template-columns: 1fr; } }
.disclosure-panel .disclosure {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-green-deep); display: block; margin-bottom: 10px;
}
.disclosure-panel h3 { font-size: 22px; margin: 0 0 8px; }
.disclosure-panel p { font-size: 14px; margin: 0; color: var(--muted); }
.disclosure-panel .btn { font-size: 14px; padding: 14px 22px; }

/* Responsible play control map ============================================= */
.control-map { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.control-band {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 18px 16px;
}
.control-band h4 { font-size: 16px; margin: 0 0 8px; }
.control-band p { font-size: 13.5px; margin: 0; color: var(--ink); }
.support-list {
  list-style: none; padding: 0; margin: 24px 0 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
}
.support-list li { padding: 14px 16px; background: var(--surface); border: 1px solid var(--ink-line); }
.support-list li b { font-size: 14.5px; display: block; margin-bottom: 4px; }
.support-list li span { font-size: 13px; color: var(--muted); }

/* Dated news register ====================================================== */
.news-register { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink-line); }
.news-register li {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--ink-line);
}
@media (max-width: 600px) { .news-register li { grid-template-columns: 90px 1fr; } .news-register li .news-src { grid-column: 1 / span 2; } }
.news-register .news-date {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--brand-green-deep); padding-top: 3px;
}
.news-register h4 { font-size: 16px; margin: 0 0 4px; }
.news-register .news-src { font-size: 12px; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.06em; }

/* FAQ split ================================================================ */
.faq-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(20px, 3vw, 48px); }
@media (max-width: 880px) { .faq-split { grid-template-columns: 1fr; } }
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-list li { border-bottom: 1px solid var(--ink-line); }
.faq-list details summary {
  list-style: none; cursor: pointer; padding: 14px 32px 14px 0; position: relative;
  font-weight: 600; font-size: 15.5px;
}
.faq-list details summary::-webkit-details-marker { display: none; }
.faq-list details summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px;
  font-family: var(--font-mono); font-size: 18px; color: var(--brand-green-deep);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { font-size: 14.5px; padding: 0 0 14px; margin: 0; color: var(--muted); }

/* Colophon strip =========================================================== */
.colophon { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; border-top: 1px solid var(--ink-line); padding-top: 28px; }
.colophon h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-green-deep); margin: 0 0 10px; }
.colophon ul { list-style: none; padding: 0; margin: 0; }
.colophon li { padding: 4px 0; }
.colophon li a { font-size: 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.colophon li a:hover { border-bottom-color: var(--ink); }

/* Site footer ============================================================== */
.site-footer {
  background: var(--ink); color: #BFE2D4; padding: clamp(40px, 5vw, 64px) 0 24px;
  margin-top: var(--space-8);
}
.site-footer .wrap { display: grid; gap: 40px; grid-template-columns: 1.2fr 1fr 1fr 1fr; }
@media (max-width: 880px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.footer-brand .brand-name { color: var(--paper); }
.footer-brand .brand-tag { color: #BFE2D4; }
.site-footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; font-size: 14px; }
.site-footer li a { color: #BFE2D4; text-decoration: none; }
.site-footer li a:hover { color: var(--paper); border-bottom: 1px solid var(--paper); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; margin-top: 8px;
  font-size: 12px; color: rgba(191, 226, 212, 0.7); line-height: 1.55;
}
.footer-legal .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.footer-legal a { color: #BFE2D4; }

/* Mobile sticky CTA ======================================================== */
.mobile-sticky {
  position: fixed; bottom: 12px; left: 12px; right: 12px; z-index: 230;
  background: var(--ink); color: var(--paper);
  padding: 12px 14px; border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  display: none;
  align-items: center; gap: 12px;
}
@media (max-width: 540px) {
  .mobile-sticky.show { display: flex; }
  body.has-sticky { padding-bottom: 84px; }
}
.mobile-sticky .label { flex: 1 1 auto; font-size: 12.5px; line-height: 1.35; }
.mobile-sticky .label b { display: block; font-size: 13px; letter-spacing: 0.02em; }
.mobile-sticky .label span { color: rgba(191,226,212,0.85); font-size: 11.5px; }
.mobile-sticky .sticky-cta {
  flex: 0 0 auto;
  padding: 12px 18px; background: var(--accent); color: #fff; font-weight: 700;
  font-size: 14px; border-radius: 4px; text-decoration: none;
  letter-spacing: 0.04em;
}
.mobile-sticky .sticky-cta:hover { background: var(--accent-deep); }
.mobile-sticky .sticky-dismiss {
  flex: 0 0 auto;
  background: transparent; border: 1px solid var(--brand-green-muted); color: var(--paper);
  padding: 10px 12px; border-radius: 4px; font-size: 13px;
}
.mobile-sticky .sticky-dismiss:hover { background: rgba(255,255,255,0.06); }

/* Inline / utility ========================================================= */
.hairline { border-top: 1px solid var(--ink-line); margin: var(--space-6) 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.text-mute { color: var(--muted); }
.max-prose { max-width: 70ch; }
.grid-2 { display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
.note-box {
  border-left: 3px solid var(--accent); background: var(--warn-bg);
  padding: 14px 18px; font-size: 14.5px;
}
.callout {
  border: 1px dashed var(--ink-line); padding: 16px 18px;
  background: var(--paper-cream); font-size: 14.5px;
}

/* Long-form page helpers ================================================== */
.page-hero {
  background: var(--paper-cream); border-bottom: 1px solid var(--border);
  padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 48px);
}
.page-hero .wrap { max-width: 880px; }
.page-hero h1 { margin: 0 0 var(--space-4); }
.page-hero .lede { font-size: 18px; max-width: 60ch; margin: 0 0 var(--space-5); color: var(--ink); }
.breadcrumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--brand-green-deep); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.toc {
  background: var(--surface); border: 1px solid var(--ink-line); padding: 18px 22px;
  margin: var(--space-5) 0; font-size: 14.5px;
}
.toc h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-green-deep); margin: 0 0 10px; }
.toc ol { padding-left: 22px; margin: 0; }
.toc li { padding: 3px 0; }

img { max-width: 100%; height: auto; }
picture { display: block; }
figure { margin: 0 0 var(--space-5); }
figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }

/* Print-style article rules */
article h2 { margin-top: var(--space-7); margin-bottom: var(--space-4); position: relative; padding-top: var(--space-3); border-top: 1px solid var(--ink-line); }
article h2:first-of-type { border-top: none; padding-top: 0; margin-top: var(--space-6); }
article h3 { margin-top: var(--space-6); font-size: 20px; }
article p, article li { font-size: 16.5px; line-height: 1.7; }
article ul, article ol { padding-left: 22px; margin-bottom: var(--space-4); }
article li { padding: 3px 0; }
@media (max-width: 540px) { article p, article li { font-size: 16px; } }

/* Ensure no horizontal overflow on mobile */
html, body { max-width: 100vw; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
p, li, td, th, h1, h2, h3, h4 { overflow-wrap: anywhere; word-wrap: break-word; }

/* ===== A11Y / contrast hardener (PAGESPEED-MOBILE-001) =====
 * Single-source-of-truth color overrides that lift failing fg/bg pairs
 * to WCAG AA (>= 4.5:1 normal text, >= 3:1 large/bold). Each rule
 * declares specificity above the original so site-wide theme is preserved.
 * The site already passes most checks; these patches fix the remaining
 * PageSpeed mobile deltas reported on the live Google audit.
 */
/* Footer brand-tag was #4F8C76 on ink (ratio 3.52). Pin it to a passing
 * tone so it survives future variable changes. Do NOT touch the header
 * .brand-tag — it sits on the light paper background and stays at
 * var(--muted), which already passes (5.0:1). */
.site-footer .brand-tag,
.footer-brand .brand-tag {
  color: #BFE2D4 !important;
}
.boundary-strip .tag {
  color: #BFE2D4 !important; /* was #4F8C76 on ink, ratio 3.52 */
}
.desk-col h4,
.spine-consequence b,
.desk-col h4:not(.legal),
td.marker,
.meld-tag {
  color: #8C4A0E !important; /* was #B4621A / var(--accent-deep) on paper-cream, ratio 4.04 */
}
.section-band-deep p,
.section-band-deep .section-lede,
.section-band-deep .colophon li a {
  color: #44615B; /* was #55716A on #C8E9DA, ratio 4.08 — bump on deepest mint band */
}

/* Orange accent buttons (.btn-accent, .sticky-cta) — white text on
 * the previous #E28222 orange measured 2.81:1 (FAIL). Darken the
 * button background to #A04F12 so white foreground hits 5.80:1. The
 * accent variable is kept untouched because the desktop hero uses it
 * for the orange underline bar on <em>, which is non-text and exempt
 * from contrast rules. */
.btn-accent,
.btn-accent:hover {
  background: #A04F12;
  color: #fff !important;
}
/* Match specificity of '.mobile-sticky .sticky-cta' (0,2,0) so the override
 * wins over the original rule at site.css:562 which uses var(--accent)
 * (#E28222, ratio 2.81:1 vs white). The selector list keeps .btn-accent
 * independent — the desktop hero band has no .mobile-sticky wrapper. */
.mobile-sticky .sticky-cta,
.mobile-sticky .sticky-cta:hover {
  background: #A04F12;
  color: #fff !important;
}
.sticky-cta:hover { background: #8C4A0E; }

/* Reserve mobile-sticky height + isolate its layout so its display swap
 * cannot register as a layout shift on mobile-emulated audits.
 * The sticky sits at viewport bottom on <=540px screens. Reserve the
 * space from initial render (don't wait for JS to add the class), so
 * even when the sticky slides in after 600ms there is no reflow.
 * Pages with .no-sticky (responsible-play, safety) suppress the sticky
 * entirely; they must NOT carry the bottom padding. */
.mobile-sticky { contain: layout paint; }
@media (max-width: 540px) {
  body:not(.no-sticky) { padding-bottom: 84px; }
}
@media (min-width: 541px) {
  body:not(.no-sticky) { padding-bottom: 0; }
}

/* Tighten hero CTA + allow buttons to wrap on narrow viewports (320/347)
 * so .btn-secondary.btn-lg text "See the Betway usability review" no
 * longer exceeds its grid cell. */
@media (max-width: 540px) {
  .hero-cta .btn {
    white-space: normal;
    line-height: 1.3;
    padding: 12px 18px;
    font-size: 14px;
    min-width: 0;
    flex: 1 1 100%;
    text-align: center;
  }
  .hero-cta { gap: 10px; }
  /* Inline <p> wrapping multiple .btn buttons — same nowrap overflow root
   * cause at 320/347px. Allow them to stack full-width and wrap text. */
  p > .btn,
  p .btn {
    white-space: normal;
    line-height: 1.3;
    padding: 12px 18px;
    font-size: 14px;
    min-width: 0;
    display: inline-flex;
    max-width: 100%;
    vertical-align: top;
  }
  p .btn + .btn { margin-left: 0; margin-top: 10px; }
}
