/* Andarbaharin.com — Light-dominant mint-paper card-game editorial authority
   Stack: vanilla HTML + CSS + ~3 KB JS. No external dependencies. */

/* Self-hosted Inter (latin + latin-ext). Optional size-adjust reduces FOIT/FOUT CLS. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  size-adjust: 100%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  size-adjust: 100%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  /* Mint paper background + crisp white info cards */
  --paper:        #EAF4EE;   /* mint paper background */
  --paper-2:      #DCE9DF;   /* deeper mint band */
  --card:         #FFFFFF;   /* info card surface */
  --card-tint:    #F4F9F5;   /* sub-card tint */
  --ink:          #10281F;   /* primary ink */
  --ink-2:        #4B5E58;   /* secondary ink */
  --ink-3:        #4B5E58;   /* tertiary ink — AA on white/paper-2 */
  --rule:         #D6E2DA;   /* hairline border */
  --rule-2:       #BFD2C5;   /* stronger rule */
  --accent:       #C44728;   /* CTA orange — white text ≥4.5:1 */
  --accent-ink:   #B23A1B;   /* deep orange ink on accent */
  --live:         #C92A2A;   /* live red dot */
  --shadow:       0 1px 0 rgba(16,40,31,0.04);
  --shadow-md:    0 4px 14px rgba(16,40,31,0.06);

  /* Type — system stack first for instant metrics; Inter when cached */
  --display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
  --body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;

  /* Spacing */
  --maxw: 1240px;
  --gut:  24px;
  --rad:  14px;
  --rad-s: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(circle at 8% 0%, rgba(214,226,218,0.6), transparent 40%),
    radial-gradient(circle at 100% 30%, rgba(214,226,218,0.4), transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-ink); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Inline prose links: underline so color is not the only cue */
p a, .callout a, .section-lede a, .longread-text a, li a.inline-link {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  font-weight: 700;
}

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0 0 .4em; line-height: 1.18; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: 16px; }
p  { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: rgba(196,71,40,0.12);
  padding: 4px 10px;
  border-radius: 999px;
}

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

/* ============ MASTHEAD ============ */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: var(--card);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(160%);
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink);
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background:
    conic-gradient(from 215deg at 50% 50%, #FFFFFF 0 25%, #C44728 0 50%, #FFFFFF 0 75%, #10281F 0);
  border: 1px solid var(--rule-2);
  position: relative;
}
.brand-mark::after {
  content: "A"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font: 700 14px/1 var(--display); color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.06em; }

.nav {
  display: flex; align-items: center; gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
}
.nav a {
  padding: 8px 10px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }

/* Desktop: keep primary nav on one row without wrapping under the brand */
@media (min-width: 900px) and (max-width: 1100px) {
  .brand small { display: none; }
  .nav a { padding: 8px 8px; font-size: 13px; }
}
@media (min-width: 900px) {
  .masthead-inner { flex-wrap: nowrap; }
  .nav { flex: 1 1 auto; justify-content: flex-end; overflow: visible; }
}

.hamburger {
  display: none;
  width: 40px; height: 40px; padding: 8px;
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 10px; cursor: pointer; z-index: 300;
  position: relative;
}
.hamburger span {
  display: block; height: 2px; background: var(--ink);
  margin: 4px 0; border-radius: 2px; transition: transform .25s, opacity .25s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  display: none;
  position: fixed; inset: 64px 0 0 0;
  background: var(--card);
  padding: 20px;
  z-index: 200;
  border-top: 1px solid var(--rule);
  overflow-y: auto;
}
.drawer.is-open { display: block; }
.drawer a {
  display: block; padding: 14px 12px; border-bottom: 1px solid var(--rule);
  font-size: 16px; font-weight: 500;
}
.drawer .drawer-cta {
  margin-top: 18px;
  display: block; text-align: center;
  padding: 14px; border-radius: 12px;
  background: var(--accent); color: #fff; font-weight: 700;
}

/* ============ HERO (image-first cover) ============ */
.hero {
  position: relative;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  overflow: hidden;
}
.hero-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 200px;
  object-fit: cover; object-position: center;
  display: block;
  background:
    radial-gradient(ellipse at 30% 50%, #2C6E5C 0%, transparent 60%),
    radial-gradient(ellipse at 70% 40%, #1F4D40 0%, transparent 60%),
    linear-gradient(180deg, #143E33, #0E2A23);
}
.hero-overlay {
  position: absolute; inset: 0;
  /* Solid-enough gradient so overlay text never samples as white/paper */
  background: linear-gradient(180deg, rgba(16,40,31,0.35) 0%, rgba(16,40,31,0.82) 100%);
  display: grid; align-items: end;
  z-index: 1;
}
.hero-content {
  width: min(100% - 32px, var(--maxw));
  margin: 0 auto;
  padding: 28px 0 32px;
  color: #fff;
}
.hero-content .eyebrow { background: rgba(196,71,40,0.92); color: #fff; }
.hero-content h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  max-width: 720px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.hero-lede {
  max-width: 620px; color: #F5FAF7;
  font-size: 17px; line-height: 1.55;
}
.hero-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 10px;
  font-size: 13px; color: #F5FAF7;
}
.hero-meta b { color: #fff; font-weight: 700; }
.hero-content .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.hero-content .btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Live round ticker strip — signature device */
/* Clip marquee; absolute track so max-content cannot expand ancestors */
.ticker {
  background: #10281F;
  color: #EAF4EE;
  border-top: 1px solid #1F4D40;
  border-bottom: 1px solid #1F4D40;
  overflow: hidden;
  overflow-x: clip;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 44px;
  contain: strict;
  isolation: isolate;
  /* hard-stop any descendant from expanding the strip box */
  clip-path: inset(0);
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, #10281F, transparent); }
.ticker::after  { right: 0; background: linear-gradient(270deg, #10281F, transparent); }
.ticker-track {
  display: flex; gap: 40px; padding: 12px 16px;
  white-space: nowrap;
  width: max-content;
  max-width: none;
  box-sizing: border-box;
  animation: tickerScroll 45s linear infinite;
  will-change: transform;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  align-items: center;
  /* remove from scrollable overflow contribution where supported */
  contain: layout style;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px;
  flex: 0 0 auto;
}
.ticker-item .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 0 4px rgba(201,42,42,0.25);
  animation: livePulse 1.6s ease-in-out infinite;
}
.ticker-item strong { color: #fff; font-weight: 700; }
.ticker-item .sep { color: #4B5E58; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes livePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(0.85); }
}

/* ============ MAIN GRID — sticky rules index + content ============ */
.layout-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  margin-top: 36px;
  min-width: 0;
  max-width: 100%;
}
.layout-grid > * {
  min-width: 0;
  max-width: 100%;
}
main.content,
main,
.content {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}
section.chapter {
  min-width: 0;
  max-width: 100%;
}

.rules-rail {
  position: sticky; top: 88px;
  align-self: start;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: 18px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.rules-rail .rail-label, .rules-rail h3 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 12px;
}
.rules-rail ol {
  list-style: none; padding: 0; margin: 0;
  counter-reset: chapter;
}
.rules-rail li {
  counter-increment: chapter;
  margin-bottom: 2px;
}
.rules-rail a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; color: var(--ink-2);
}
.rules-rail a::before {
  content: counter(chapter, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  font-weight: 700; color: var(--accent-ink);
  font-size: 11px; letter-spacing: 0.06em;
  min-width: 22px;
}
.rules-rail a:hover { background: var(--paper-2); color: var(--ink); }

main.content { min-width: 0; }

/* ============ SECTIONS ============ */
section.chapter {
  padding: 28px 0;
  scroll-margin-top: 80px;
}
section.chapter + section.chapter { border-top: 1px solid var(--rule); }

.section-head {
  display: flex; gap: 14px; align-items: baseline;
  margin-bottom: 16px;
}
.section-num {
  font-family: var(--display);
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent-ink);
  background: rgba(196,71,40,0.12);
  padding: 4px 8px; border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.section-head h2 { margin: 0; }

.section-lede { color: var(--ink-2); font-size: 16px; max-width: 760px; margin-bottom: 18px; }

/* Card-position anatomy (two-column with diagram) */
.anatomy {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: start;
}
.anatomy-diagram {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--rad);
  padding: 20px;
  aspect-ratio: 4/3;
  position: relative;
  background-image:
    radial-gradient(ellipse at 25% 50%, rgba(214,226,218,0.7) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 50%, rgba(214,226,218,0.7) 0%, transparent 50%);
}
.anatomy-diagram svg { width: 100%; height: 100%; }
.anatomy-text h3 { margin-top: 8px; }
.anatomy-text p { color: var(--ink-2); }

/* Round lifecycle strip — 5 horizontal diagram cards */
.lifecycle {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.lifecycle-step {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--rad);
  padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.lifecycle-step .step-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent-ink); font-variant-numeric: tabular-nums;
}
.lifecycle-step h3 { margin: 0; font-size: 14px; }
.lifecycle-step p { font-size: 12px; color: var(--ink-2); margin: 0; line-height: 1.45; }

/* Format comparison ledger */
.ledger {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--rad);
  overflow: hidden;
  min-width: 0;
  table-layout: fixed;
}
.ledger th, .ledger td {
  text-align: left; padding: 12px 14px; font-size: 14px;
  border-bottom: 1px solid var(--rule);
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  vertical-align: top;
}
.ledger th {
  background: var(--card-tint); color: var(--ink); font-weight: 700;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.ledger tr:last-child td { border-bottom: 0; }
.ledger td.tag {
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent-ink);
  white-space: normal;
}
.ledger-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  contain: paint;
  overscroll-behavior-x: contain;
  display: block;
  position: relative;
}

/* Betting windows chip panel */
.chips {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  min-width: 0;
  max-width: 100%;
}
.chips > * { min-width: 0; max-width: 100%; }
.chip-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--rad);
  padding: 18px;
}
.chip-card .chip-odds {
  display: inline-block;
  font-family: var(--display); font-weight: 700; font-size: 22px;
  color: var(--accent-ink);
  background: rgba(196,71,40,0.12);
  padding: 4px 12px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.chip-card h3 { margin: 0 0 4px; }
.chip-card p { font-size: 13px; color: var(--ink-2); margin: 0; }

/* Platform usability shelf */
.shelf {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.shelf-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--rad);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.shelf-card .verdict {
  font-family: var(--display); font-weight: 700; font-size: 32px;
  color: var(--ink); font-variant-numeric: tabular-nums;
  line-height: 1;
}
.shelf-card .verdict small { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.shelf-card .crop {
  aspect-ratio: 16/9; border-radius: 8px; background: var(--paper-2);
  border: 1px solid var(--rule);
  display: grid; place-items: center; color: var(--ink-3); font-size: 11px;
  overflow: hidden;
}
.shelf-card h3 { margin: 0; }
.shelf-card p { font-size: 13px; color: var(--ink-2); margin: 0; }

/* KYC + withdrawal numbered ledger */
.steps {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--rad);
  padding: 18px;
  counter-reset: kycstep;
}
.steps ol { list-style: none; padding: 0; margin: 0; counter-reset: kycstep; }
.steps li {
  counter-increment: kycstep;
  display: grid; grid-template-columns: 36px 1fr; gap: 14px;
  padding: 12px 0; border-bottom: 1px dashed var(--rule);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(kycstep, decimal-leading-zero);
  font-family: var(--display); font-weight: 700;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  align-self: start;
}
.steps li strong { display: block; font-size: 14px; }
.steps li span { font-size: 13px; color: var(--ink-2); }

/* Strategy boundaries long-read */
.longread {
  display: grid; grid-template-columns: 2fr 1fr; gap: 28px;
  align-items: start;
}
.longread-text {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--rad);
  padding: 22px;
  font-size: 16px; color: var(--ink);
}
.longread-text p { margin-bottom: 14px; }
.longread-text p:last-child { margin-bottom: 0; }
.longread-aside {
  background: var(--card-tint); border: 1px solid var(--rule); border-radius: var(--rad);
  padding: 18px;
  position: sticky; top: 88px;
}
.longread-aside h3 { font-size: 13px; color: var(--accent-ink); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 10px; }
.longread-aside ul { padding-left: 18px; margin: 0; font-size: 13px; color: var(--ink-2); }
.longread-aside li { margin-bottom: 6px; }

/* Ticker-led story strip */
.story-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.story-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--rad);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.story-card .story-date {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: #fff; background: #10281F;
  padding: 4px 10px; border-radius: 999px;
  width: fit-content;
}
.story-card h3 { margin: 0; font-size: 16px; }
.story-card p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.story-card a.more {
  font-size: 13px; color: var(--accent-ink); font-weight: 700;
  margin-top: auto;
}
.story-card a.more::after { content: " →"; }

/* Responsible-play helpline card */
.helpline {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--rad);
  padding: 22px;
  display: grid; grid-template-columns: auto 1fr; gap: 22px;
  align-items: start;
}
.helpline .helpline-num {
  font-family: var(--display); font-weight: 700; font-size: 56px;
  color: var(--ink-2); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.helpline h3 { margin: 0 0 8px; }
.helpline ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.helpline li { font-size: 13px; color: var(--ink-2); }
.helpline li b { color: var(--ink); font-weight: 700; display: block; }

/* FAQ desk */
.faq {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
.faq details {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--rad);
  padding: 14px 18px;
}
.faq details[open] { background: var(--card-tint); }
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 700; font-size: 15px;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 18px; color: var(--accent-ink); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.faq details p small { display: block; margin-top: 6px; color: var(--ink-3); font-style: normal; }

.colophon {
  font-size: 12px; color: var(--ink-3);
  border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 20px;
}
.colophon a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* ============ MOBILE STICKY CTA BAR ============ */
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--card);
  border-top: 1px solid var(--rule);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0));
  z-index: 50;
  box-shadow: 0 -4px 14px rgba(16,40,31,0.08);
}
.mobile-cta a {
  display: block; text-align: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px;
  padding: 14px 16px; border-radius: 12px;
  white-space: nowrap;
}
.mobile-cta small {
  display: block; text-align: center; font-size: 10px; color: var(--ink-3);
  margin-top: 6px; letter-spacing: 0.06em;
}

/* ============ FOOTER ============ */
footer.site {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  margin-top: 60px;
  padding: 40px 0 80px;
  color: var(--ink-2);
  font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 28px;
  margin-bottom: 24px;
}
.footer-grid .footer-heading, .footer-grid h3 {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 12px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--ink-2); font-size: 13px; }
.footer-grid a:hover { color: var(--accent-ink); }
.footer-brand p { font-size: 13px; color: var(--ink-2); margin: 8px 0 0; max-width: 320px; }
.footer-social { display: flex; gap: 8px; margin-top: 10px; }
.footer-social a {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--card);
  color: var(--ink-2);
}
.footer-social a:hover { background: var(--paper); color: var(--accent-ink); }
.footer-meta {
  border-top: 1px solid var(--rule); padding-top: 16px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 12px; color: var(--ink-3);
}
.footer-meta a { color: var(--ink-3); }

/* ============ CTA buttons (non-mobile) ============ */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  text-align: center; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost   { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { background: var(--paper-2); }

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ============ TRUST STRIP ============ */
.trust-strip {
  background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
.trust-strip-inner {
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink-2);
}
.trust-strip-inner b { color: var(--ink); font-weight: 700; }
.trust-strip-inner .pip { display: inline-flex; align-items: center; gap: 6px; }
.trust-strip-inner .pip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1023px) {
  .layout-grid { grid-template-columns: 1fr; gap: 20px; }
  .rules-rail { position: static; max-height: none; overflow: visible; min-width: 0; max-width: 100%; }
  .rules-rail ol { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; max-width: 100%; }
  .rules-rail ol li { flex: 1 1 140px; min-width: 0; max-width: 100%; }
  .rules-rail a {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
  }
  .rules-rail a::before { min-width: 0; }
  .anatomy { grid-template-columns: 1fr; }
  .longread { grid-template-columns: 1fr; }
  .longread-aside { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 899px) {
  .nav { display: none; }
  .hamburger { display: block; }
  .lifecycle { grid-template-columns: repeat(2, 1fr); }
  .chips { grid-template-columns: 1fr; }
  .shelf  { grid-template-columns: 1fr; }
  .story-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-cta { display: block; }
  body { padding-bottom: 78px; }
}

@media (max-width: 430px) {
  body { font-size: 15px; }
  .hero-content { padding: 18px 0 22px; }
  .hero-content h1 { font-size: 26px; }
  .hero-lede { font-size: 14px; }
  .lifecycle { grid-template-columns: 1fr; }
  .helpline { grid-template-columns: 1fr; }
  .helpline .helpline-num { font-size: 40px; }
  .helpline ul { grid-template-columns: 1fr; }
  section.chapter { padding: 22px 0; }
  .ledger th, .ledger td { padding: 9px 10px; font-size: 12px; }
  .footer-meta { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .live-dot { animation: none; }
  * { transition: none !important; }
}

/* ============ SECTION IMAGES (inline within prose) ============ */
.inline-image,
main.content img,
main img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--rad);
  border: 1px solid var(--rule);
  background: var(--paper-2);
  display: block;
  margin: 0 0 16px;
}
.inline-image-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: 16px 0;
}
@media (max-width: 700px) { .inline-image-row { grid-template-columns: 1fr; } }

.callout {
  background: var(--card-tint); border-left: 3px solid var(--accent);
  padding: 14px 18px; border-radius: 8px;
  margin: 16px 0; font-size: 14px; color: var(--ink-2);
}
.callout b { color: var(--ink); }

/* utility */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }


/* Former h4 labels demoted for sequential heading order */
.rules-rail .rail-label,
.footer-heading {
  font-family: var(--display);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 12px;
}
.lifecycle-step h3,
.chip-card h3,
.shelf-card h3,
.story-card h3,
.longread-aside h3 {
  font-size: 16px;
  margin: 0 0 .4em;
}
.lifecycle-step h3 { font-size: 14px; margin: 0; }
.story-card h3 { font-size: 16px; margin: 0; }
.longread-aside h3 {
  font-size: 13px; color: var(--accent-ink); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 10px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
