/* librabet — Editorial Rummy Almanac
   Author: Hermes (librabet Row 62)
   Light-dominant warm Sandstone Matchday palette
*/

:root {
  --primary: #B64B28;
  --primary-dark: #8E371B;
  --accent: #0B6E69;
  --bg: #FFF8F2;
  --surface: #FFFFFF;
  --surface-2: #FCE8D7;
  --surface-3: #F4DDC7;
  --ink: #312019;
  --ink-2: #5C4A40;
  --muted: #745D50;
  --border: #EBCDBA;
  --border-2: #D9B797;
  --rule: #C9A682;
  --shadow-1: 0 1px 2px rgba(49, 32, 25, 0.06), 0 4px 14px rgba(49, 32, 25, 0.04);
  --shadow-2: 0 2px 6px rgba(49, 32, 25, 0.08), 0 14px 40px rgba(49, 32, 25, 0.06);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Noto Sans Devanagari', system-ui, sans-serif;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.18;
  letter-spacing: -0.012em;
  font-weight: 700;
}
h1 { font-size: clamp(32px, 5.2vw, 60px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.6vw, 36px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h4 { font-size: clamp(18px, 1.8vw, 22px); }
p { margin: 0 0 1.1em; }
small { font-size: 14px; color: var(--muted); }

/* Page rhythm */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 9999;
}
.skip-link:focus { left: 8px; }

/* ===========================
   Utility bar header
   =========================== */
.utility-bar {
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.utility-bar .page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  gap: 12px;
  flex-wrap: wrap;
}
.utility-bar a {
  color: var(--bg);
  text-decoration: none;
  padding: 10px 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  opacity: 0.85;
}
.utility-bar a:hover { opacity: 1; }
.utility-bar .ub-left { display: flex; gap: 6px; align-items: center; }
.utility-bar .ub-right { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.utility-bar .ub-divider { color: var(--rule); opacity: 0.4; padding: 0 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(6px);
}
.site-header .page {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 72px;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Inter', serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0;
}
.brand-name {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.brand-tag {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav { display: none; }
.primary-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
}
.primary-nav a:hover { border-bottom-color: var(--primary); color: var(--primary); }
.primary-nav a.active { color: var(--primary); border-bottom-color: var(--primary); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.header-cta:hover { background: var(--primary-dark); color: #fff; }

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  gap: 5px;
  position: relative;
  z-index: 300;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 92vw);
  max-width: 100vw;
  background: var(--surface);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.25s ease, visibility 0.25s ease;
  z-index: 280;
  overflow-y: auto;
  padding: 84px 22px 28px;
  visibility: hidden;
}
.mobile-drawer[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
}
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(49, 32, 25, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 270;
  visibility: hidden;
}
.drawer-scrim[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}
.mobile-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-drawer li a {
  display: block;
  padding: 12px 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
}
.mobile-drawer li a:hover { background: var(--surface-2); color: var(--primary); }
.mobile-drawer .drawer-cta {
  margin-top: 18px;
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

@media (min-width: 880px) {
  .primary-nav { display: block; }
  .hamburger { display: none; }
  .mobile-drawer, .drawer-scrim { display: none; }
}

/* ===========================
   Asymmetric-split hero
   =========================== */
.hero {
  background: var(--bg);
  padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: stretch;
}
.hero-figure {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
}
.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.hero-figure .fig-eyebrow {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 248, 242, 0.92);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-figure .fig-rule {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: rgba(49, 32, 25, 0.82);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  margin-right: 8px;
  transform: translateY(-2px);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 18px;
}
.hero-lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: 26px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.hero-meta span strong { color: var(--ink); font-weight: 600; }
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: 0.005em;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-2);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: clamp(32px, 4vw, 56px);
  }
  .hero-figure img { aspect-ratio: 4/3; }
}

/* ===========================
   Trust strip (four pillars)
   =========================== */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
}
.trust-strip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.trust-tile {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
}
.trust-tile:last-child { border-bottom: none; }
.trust-tile .num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1;
  font-feature-settings: 'lnum';
}
.trust-tile h4 {
  font-size: 15px;
  margin: 0 0 4px;
  color: var(--ink);
}
.trust-tile p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
@media (min-width: 720px) {
  .trust-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-tile { border-bottom: 1px solid var(--border); }
  .trust-tile:nth-child(2n) { border-left: 1px solid var(--border); }
  .trust-tile:nth-last-child(-n+2) { border-bottom: none; }
}
@media (min-width: 1024px) {
  .trust-strip-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-tile { border-bottom: none; border-left: 1px solid var(--border); }
  .trust-tile:first-child { border-left: none; }
}

/* ===========================
   Hub grid (4 cards) — used
   in trust strip + hub links
   =========================== */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .hub-grid { grid-template-columns: repeat(4, 1fr); } }

.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-1);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.hub-card:hover { transform: translateY(-2px); border-color: var(--border-2); }
.hub-card .eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.hub-card h3 {
  font-size: 19px;
  margin: 0;
  color: var(--ink);
}
.hub-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.hub-card .arrow {
  margin-top: auto;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

/* ===========================
   Section spacing + header
   =========================== */
.section {
  padding: clamp(36px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
@media (min-width: 880px) {
  .section-head {
    grid-template-columns: 5fr 7fr;
    gap: 32px;
    align-items: end;
  }
}
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}
.section-num {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
}
.section-title {
  font-size: clamp(24px, 3.4vw, 34px);
  margin: 6px 0 0;
}
.section-lede {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 64ch;
  margin: 0;
}

/* ===========================
   Rules chapter (asymmetric)
   =========================== */
.rules-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.rules-figure {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
}
.rules-figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.rules-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.meld-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.meld-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}
.meld-list .marker {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.meld-list h3 { margin: 0 0 4px; font-size: 15px; }
.meld-list p { margin: 0; font-size: 14px; color: var(--muted); }

.reading-checklist {
  background: var(--surface-2);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  padding: 18px 20px;
  font-size: 14px;
  color: var(--ink-2);
}
.reading-checklist h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8E371B;
  margin: 0 0 8px;
}
.reading-checklist ol {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reading-checklist li { padding-left: 4px; }

@media (min-width: 880px) {
  .rules-chapter { grid-template-columns: 5fr 7fr; gap: 36px; align-items: start; }
}

/* ===========================
   Points ledger
   =========================== */
.points-ledger {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-1);
  overflow-x: auto;
}
.points-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  table-layout: fixed;
  word-break: break-word;
}
.points-table thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.points-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.points-table tbody tr:last-child td { border-bottom: none; }
.points-table .row-label {
  font-weight: 600;
  color: var(--ink);
}
.points-table .swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  vertical-align: middle;
  margin-right: 6px;
}
.swatch.pure { background: #C7E5DA; border: 1px solid #84C7B4; }
.swatch.impure { background: #F3C5A6; border: 1px solid #D89870; }
.swatch.joker { background: #E5C9DC; border: 1px solid #B68BAC; }
.verdict-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--ink);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.verdict-chip.win { background: #DDEAE3; color: #0B6E69; }
.verdict-chip.warn { background: #FCE8D7; color: #8E371B; }
.verdict-chip.note { background: #EDE5DA; color: #5C4A40; }

.points-figure {
  margin-top: 24px;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface-2);
}
.points-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

/* ===========================
   Format gallery (mosaic)
   =========================== */
.format-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.format-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1);
}
.format-tile .ft-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
}
.format-tile .ft-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.format-tile .ft-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.format-tile .ft-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.format-tile h3 { font-size: 19px; margin: 0; }
.format-tile p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.format-tile .ft-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-2);
  border-top: 1px dashed var(--border-2);
  padding-top: 10px;
  margin-top: 4px;
}
.format-tile .ft-meta strong { color: var(--ink); font-weight: 600; }

@media (min-width: 720px) {
  .format-gallery { grid-template-columns: 7fr 5fr; }
  .format-gallery .ft-large .ft-img { aspect-ratio: 4/3; }
  .format-gallery .ft-large { grid-row: span 1; }
}
@media (min-width: 1024px) {
  .format-gallery { grid-template-columns: 7fr 5fr 5fr; }
}

/* ===========================
   Portrait card-hand probability
   =========================== */
.card-hand-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.card-hand-figure {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
}
.card-hand-figure img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.card-hand-figure .evidence-caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(255, 248, 242, 0.94);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}
.card-hand-figure:hover .evidence-caption,
.card-hand-figure:focus-within .evidence-caption {
  opacity: 1;
  transform: translateY(0);
}
.probability-overlay {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: clamp(18px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.probability-overlay h3 { margin: 0; font-size: 19px; }
.probability-overlay .prob-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.probability-overlay .prob-list li {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.probability-overlay .prob-list li:first-child { border-top: none; padding-top: 0; }
.probability-overlay .prob-list b { color: var(--ink); font-weight: 600; }

@media (min-width: 880px) {
  .card-hand-section { grid-template-columns: 5fr 7fr; gap: 36px; }
}

/* ===========================
   Tabbed evidence desk
   =========================== */
.desk-tabs {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 24px;
}
.desk-tab {
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}
.desk-tab:hover { color: var(--ink); }
.desk-tab[aria-selected="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.desk-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.desk-panel[data-active="true"] { display: grid; }
.desk-figure {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface-2);
}
.desk-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.desk-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.desk-body .verdict-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.desk-body .verdict-line strong { color: var(--ink); font-weight: 700; }
.desk-body p { font-size: 15px; color: var(--ink-2); margin: 0; }
.desk-body .footnotes {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px dashed var(--border-2);
  padding-top: 12px;
}
.desk-body .footnotes li { padding-left: 18px; position: relative; }
.desk-body .footnotes li::before { content: '—'; position: absolute; left: 0; color: var(--rule); }

@media (min-width: 880px) {
  .desk-panel { grid-template-columns: 5fr 7fr; gap: 32px; }
}

/* ===========================
   Platform usability
   =========================== */
.usability-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.usability-figure {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
}
.usability-figure img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.usability-figure .perf-marks {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.usability-figure .perf-marks span {
  background: rgba(255, 248, 242, 0.95);
  border-left: 3px solid var(--accent);
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--ink);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.usability-figure:hover .perf-marks span,
.usability-figure:focus-within .perf-marks span {
  opacity: 1;
  transform: translateX(0);
}
.usability-figure:hover .perf-marks span:nth-child(2),
.usability-figure:focus-within .perf-marks span:nth-child(2) { transition-delay: 0.05s; }
.usability-figure:hover .perf-marks span:nth-child(3),
.usability-figure:focus-within .perf-marks span:nth-child(3) { transition-delay: 0.1s; }

.usability-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.usability-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.usability-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink-2);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}
.usability-list .marker {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}

@media (min-width: 880px) {
  .usability-section { grid-template-columns: 6fr 6fr; gap: 36px; }
}

/* ===========================
   Payment / verification
   =========================== */
.payment-tonal {
  background: var(--surface-2);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border-2);
}
.payment-tonal-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.payment-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.payment-ledger li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-2);
  font-size: 14px;
}
.payment-ledger li:last-child { border-bottom: none; }
.payment-ledger .row-num {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-feature-settings: 'lnum';
}
.payment-ledger .row-text strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}
.payment-ledger .row-text span {
  color: var(--muted);
  font-size: 13px;
}
.payment-figure {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.payment-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

@media (min-width: 880px) {
  .payment-tonal-inner { grid-template-columns: 7fr 5fr; gap: 36px; align-items: start; }
}

/* ===========================
   Helpline card
   =========================== */
.helpline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: clamp(28px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.helpline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 110, 105, 0.06), rgba(182, 75, 40, 0.02));
  pointer-events: none;
}
.helpline-numeral {
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary);
  font-feature-settings: 'lnum';
}
.helpline-body h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 0 0 8px;
}
.helpline-body p {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.helpline-resources {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.helpline-resources li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
}
.helpline-resources li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 999px;
  margin-left: 6px;
}
.helpline-figure {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface-2);
}
.helpline-figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

@media (min-width: 880px) {
  .helpline-card { grid-template-columns: 6fr 6fr; }
}

/* ===========================
   Newsroom ticker
   =========================== */
.newsroom-ticker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface);
}
.newsroom-figure {
  background: var(--surface-2);
}
.newsroom-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.newsroom-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.newsroom-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.newsroom-list li:last-child { border-bottom: none; }
.newsroom-list .date {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  font-feature-settings: 'lnum';
}
.newsroom-list .brief h3 {
  font-size: 15px;
  margin: 0 0 4px;
}
.newsroom-list .brief h3 a {
  color: var(--ink);
  text-decoration: none;
}
.newsroom-list .brief h3 a:hover { color: var(--primary); text-decoration: underline; }
.newsroom-list .brief p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

@media (min-width: 880px) {
  .newsroom-ticker { grid-template-columns: 5fr 7fr; }
}

/* ===========================
   Reader questions desk
   =========================== */
.qa-desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.qa-figure {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface-2);
}
.qa-figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.qa-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.qa-list .qa-q {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}
.qa-list .qa-a {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 8px;
  line-height: 1.6;
}
.qa-list .qa-fn {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-style: italic;
  border-left: 2px solid var(--border-2);
  padding-left: 10px;
}
.qa-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 18px 22px;
}

@media (min-width: 880px) {
  .qa-desk { grid-template-columns: 4fr 8fr; gap: 32px; align-items: start; }
}

/* ===========================
   Colophon
   =========================== */
.colophon {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0 28px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.colophon-figure {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto 16px;
  background: var(--surface-2);
  box-shadow: var(--shadow-1);
}
.colophon-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.colophon h2 {
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 6px;
  font-weight: 600;
}
.colophon p { margin: 0 0 8px; line-height: 1.5; }
.colophon .colophon-rule {
  width: 40px;
  height: 1px;
  background: var(--rule);
  margin: 14px auto;
}

/* ===========================
   Hub grid on hub pages
   =========================== */
.hub-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.hub-cards .hub-card {
  background: var(--surface);
}
@media (min-width: 720px) { .hub-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .hub-cards { grid-template-columns: repeat(3, 1fr); } }

/* ===========================
   Article hero (child pages)
   =========================== */
.article-hero {
  background: var(--bg);
  padding: clamp(28px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--border);
}
.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.article-hero-figure {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
}
.article-hero-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.article-hero-text { display: flex; flex-direction: column; gap: 14px; }
.article-hero-text .crumb {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.article-hero-text h1 { font-size: clamp(30px, 4.4vw, 50px); margin: 0; }
.article-hero-text .lede {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-2);
  max-width: 64ch;
  margin: 0;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin-top: 6px;
}
.article-meta strong { color: var(--ink); font-weight: 600; }
@media (min-width: 880px) {
  .article-hero-grid { grid-template-columns: 6fr 6fr; gap: 40px; }
}

/* ===========================
   Article body (TOC, content)
   =========================== */
.article-body {
  padding: clamp(32px, 5vw, 56px) 0;
}
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.article-content {
  max-width: 68ch;
  font-size: 18px;
  color: var(--ink);
}
.article-content h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  margin: 1.8em 0 0.6em;
  scroll-margin-top: 90px;
}
.article-content h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  margin: 1.4em 0 0.5em;
  scroll-margin-top: 90px;
}
.article-content p { margin-bottom: 1.1em; line-height: 1.75; }
.article-content ul, .article-content ol { padding-left: 22px; margin: 0 0 1.2em; }
.article-content li { margin-bottom: 6px; }
.article-content figure {
  margin: 1.6em 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-1);
}
.article-content figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.article-content figcaption {
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}
.article-content blockquote {
  border-left: 3px solid var(--primary);
  background: var(--surface-2);
  margin: 1.4em 0;
  padding: 16px 22px;
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  font-style: normal;
}
.article-content blockquote p { margin: 0; }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 15px;
  table-layout: fixed;
  word-break: break-word;
}
.article-content table th, .article-content table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.article-content table thead th {
  background: var(--surface-2);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 18px 20px;
  font-size: 14px;
}
.toc-label {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc a {
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  padding: 6px 4px;
  min-height: 24px;
  line-height: 1.4;
}
.toc a:hover { color: var(--primary); text-decoration: underline; }
@media (min-width: 1024px) {
  .article-wrap { grid-template-columns: 4fr 8fr; gap: 40px; }
  .toc { position: sticky; top: 90px; max-height: calc(100vh - 120px); overflow-y: auto; }
}

/* ===========================
   FAQ + related hubs (child)
   =========================== */
.related-hubs {
  background: var(--surface);
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--border);
}
.related-hubs h3 { font-size: 20px; margin: 0 0 16px; }

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 16px 18px;
}
.faq-list .faq-q {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  font-size: 15px;
}
.faq-list .faq-a { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* ===========================
   Inline call-to-action strip
   =========================== */
.cta-strip {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--ink);
}
.cta-strip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.cta-strip h3 { color: var(--bg); margin: 0 0 4px; font-size: clamp(20px, 2.6vw, 26px); }
.cta-strip p { color: rgba(255, 248, 242, 0.78); margin: 0; max-width: 60ch; font-size: 15px; }
.cta-strip .btn { background: var(--primary); color: #fff; }
.cta-strip .btn:hover { background: #D45C36; }
.cta-strip .btn-ghost { background: transparent; color: var(--bg); border-color: rgba(255, 248, 242, 0.4); }
.cta-strip .btn-ghost:hover { background: rgba(255, 248, 242, 0.08); border-color: var(--bg); }
@media (min-width: 880px) {
  .cta-strip-grid { grid-template-columns: 8fr 4fr; gap: 28px; }
}

/* ===========================
   Final CTA + Footer
   =========================== */
.final-cta {
  background: var(--surface-2);
  padding: clamp(36px, 5vw, 60px) 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.final-cta h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 0 0 12px;
}
.final-cta p { color: var(--ink-2); max-width: 56ch; margin: 0 auto 22px; }
.final-cta .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.site-footer {
  background: var(--ink);
  color: rgba(255, 248, 242, 0.78);
  padding: 48px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-col h3 {
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-col a {
  color: rgba(255, 248, 242, 0.78);
  text-decoration: none;
}
.footer-col a:hover { color: var(--bg); text-decoration: underline; }
.footer-col p { color: rgba(255, 248, 242, 0.7); line-height: 1.5; margin: 0 0 10px; }
.footer-brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand-line .brand-mark { background: var(--primary); }
.footer-brand-line .brand-name { color: var(--bg); font-size: 16px; }
.footer-brand-line .brand-tag { color: rgba(255, 248, 242, 0.6); }
.footer-rule {
  border: none;
  border-top: 1px solid rgba(255, 248, 242, 0.16);
  margin: 0 0 16px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 248, 242, 0.55);
}
.footer-bottom a { color: rgba(255, 248, 242, 0.65); text-decoration: none; }
.footer-bottom a:hover { color: var(--bg); }
.age-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 248, 242, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 3fr 2fr 2fr 2fr; gap: 36px; } }

/* ===========================
   Sticky mobile CTA
   =========================== */
.mobile-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 220;
  background: var(--ink);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 248, 242, 0.12);
  transform: translateY(110%);
  transition: transform 0.25s ease;
  display: flex;
  justify-content: stretch;
}
.mobile-sticky[data-show="true"] { transform: translateY(0); }
.mobile-sticky a {
  display: block;
  width: 100%;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 14px 16px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 15px;
}
.mobile-sticky a:hover { background: var(--primary-dark); color: #fff; }
@media (min-width: 880px) {
  .mobile-sticky { display: none; }
}

/* page bottom padding so footer doesn't sit under sticky */
.has-sticky main { padding-bottom: 88px; }
@media (min-width: 880px) { .has-sticky main { padding-bottom: 0; } }

/* ===========================
   Helpers
   =========================== */
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.divider-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.eyebrow-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}
.note-card {
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  font-size: 14px;
  color: var(--ink-2);
}
.callout-warn {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  padding: 18px 22px;
  border-radius: var(--radius-m);
  font-size: 14px;
  color: var(--ink-2);
}
.callout-warn strong { color: var(--ink); font-weight: 700; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
