/* ==========================================================================
   24betting.app — single stylesheet
   Tokens derived from screenshots of the 24betting platform (15 Oct 2026).
   Gold = brand marks, sequence numerals, pending tags. Yellow = actions only.
   Back/lay colours are reserved for exchange visuals.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: dark;
  --c-black: #000000;
  --c-surface: #161618;
  --c-raised: #222225;
  --c-line: #36363c;
  --c-line-soft: #26262a;
  --c-text: #f4f4f1;
  --c-muted: #a6a6ab;
  --c-gold: #e0b03c;
  --c-signal: #f9d84a;
  --c-signal-ink: #1b1600;
  --c-back: #8ec9f2;
  --c-lay: #f3aac2;
  --c-exchange-ink: #0d1116;
  --c-danger: #f08a7a;

  --f-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-md: 1.3125rem;
  --t-lg: 1.65rem;
  --t-xl: 2.0625rem;
  --t-2xl: clamp(2.5rem, 7vw, 4rem);
  --t-numeral: clamp(3rem, 9vw, 4.75rem);

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;    --s-8: 4.5rem;

  --r-control: 6px;
  --r-card: 10px;
  --r-panel: 14px;

  --wrap: 1040px;
  --measure: 66ch;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-black);
  color: var(--c-text);
  font: 400 var(--t-base) / 1.6 var(--f-body);
  font-kerning: normal;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; margin: 0 0 var(--s-4); text-wrap: balance; }
h1 { font-size: var(--t-2xl); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: var(--t-xl); font-weight: 800; margin-top: var(--s-7); }
h3 { font-size: var(--t-md); font-weight: 600; margin-top: var(--s-5); }
p, ul, ol, dl, table { margin: 0 0 var(--s-4); }
p, li { max-width: var(--measure); }
a { color: var(--c-text); text-decoration-color: var(--c-gold); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--c-gold); }
:focus-visible { outline: 3px solid var(--c-signal); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.wrap { width: min(100% - 2 * var(--s-4), var(--wrap)); margin-inline: auto; }
.lede { font-size: var(--t-md); color: var(--c-muted); line-height: 1.5; max-width: 56ch; }
.muted { color: var(--c-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-5);
  font: 600 var(--t-sm) / 1 var(--f-body);
  border-radius: var(--r-control); text-decoration: none;
  border: 1.5px solid var(--c-signal);
}
.btn--primary { background: var(--c-signal); color: var(--c-signal-ink); }
.btn--primary:hover { background: #ffe470; color: var(--c-signal-ink); }
.btn--outline { color: var(--c-text); }
.btn--outline:hover { color: var(--c-signal); }

/* ---------- 4. Draft banner ---------- */
.draft { background: repeating-linear-gradient(-45deg, #2a2208 0 12px, #1f1a06 12px 24px); color: var(--c-signal); font-size: var(--t-xs); font-weight: 600; padding: var(--s-2) 0; }

/* ---------- 5. Header ---------- */
.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 10; background: var(--c-signal); color: var(--c-signal-ink); padding: var(--s-2) var(--s-4); border-radius: var(--r-control); font-weight: 600; }
.skip:focus { top: var(--s-2); }
.hdr { background: #121214; border-bottom: 1px solid var(--c-line-soft); }
.hdr__in { display: flex; align-items: center; gap: var(--s-6); min-height: 64px; }
.hdr__home { text-decoration: none; flex: none; }
.hdr__nav { overflow-x: auto; scrollbar-width: none; }
.hdr__nav ul { display: flex; gap: var(--s-5); list-style: none; margin: 0; padding: var(--s-2) 0; }
.hdr__nav li { max-width: none; white-space: nowrap; }
.hdr__nav a, .hdr__soon { font: 600 1.15rem/1 var(--f-display); text-decoration: none; }
.hdr__nav a[aria-current='page'] { color: var(--c-gold); box-shadow: inset 0 -2px 0 var(--c-gold); padding-bottom: 4px; }
.hdr__soon { color: #5f5f66; cursor: default; }
@media (max-width: 640px) {
  .hdr__in { flex-wrap: wrap; gap: 0; padding-top: var(--s-3); }
  .hdr__nav { width: 100%; }
}

/* Wordmark — PROVISIONAL until the approved logo SVG is supplied */
.wm { font: 800 1.45rem/1 var(--f-display); color: var(--c-gold); letter-spacing: 0.04em; white-space: nowrap; }
.wm__num { font-style: italic; margin-right: 0.08em; }

/* ---------- 6. Footer ---------- */
.ftr { margin-top: var(--s-8); border-top: 1px solid var(--c-line-soft); background: #0a0a0b; padding: var(--s-6) 0; font-size: var(--t-sm); }
.ftr__in { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 760px) { .ftr__in { grid-template-columns: 1fr 1.4fr; } }
.ftr__age strong { display: inline-block; border: 1.5px solid var(--c-text); border-radius: 50%; width: 2.2em; height: 2.2em; line-height: 2.05em; text-align: center; margin-right: var(--s-2); font-size: var(--t-xs); }
.ftr__legal { list-style: none; padding: 0; display: flex; gap: var(--s-5); flex-wrap: wrap; }

/* ---------- 7. Pending marker ---------- */
/* Marks unverified content. tools/check_launch.py fails while any remain. */
.pending { display: inline; color: var(--c-muted); }
.pending__tag { display: inline-block; font-size: var(--t-xs); font-weight: 600; color: var(--c-gold); border: 1px dashed var(--c-gold); border-radius: var(--r-control); padding: 0 var(--s-2); margin-right: var(--s-1); }

/* ---------- 8. Breadcrumbs ---------- */
.bc ol { list-style: none; padding: 0; margin: var(--s-5) 0; display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--t-sm); color: var(--c-muted); }
.bc li + li::before { content: '/'; margin-right: var(--s-2); color: var(--c-line); }
.bc a { color: var(--c-muted); }

/* ---------- 9. Notices ---------- */
.notice { border-left: 4px solid var(--c-muted); background: var(--c-surface); border-radius: 0 var(--r-card) var(--r-card) 0; padding: var(--s-4) var(--s-5); margin: var(--s-5) 0; }
.notice--safety { border-left-color: var(--c-signal); }
.notice--legal { border-left-color: var(--c-danger); }
.notice__title { font: 600 var(--t-md)/1.2 var(--f-display); margin-bottom: var(--s-2); }
.notice__body p:last-child { margin-bottom: 0; }

/* ---------- 10. Task board (homepage hero) ---------- */
.board { list-style: none; padding: 0; margin: var(--s-6) 0; border-top: 1px solid var(--c-line); }
.board li { max-width: none; border-bottom: 1px solid var(--c-line); }
.board__row { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr auto; gap: var(--s-2) var(--s-5); align-items: baseline; padding: var(--s-4) var(--s-2); text-decoration: none; }
a.board__row:hover { background: var(--c-surface); color: var(--c-text); }
a.board__row:hover .board__name { color: var(--c-gold); }
.board__name { font: 800 var(--t-lg)/1 var(--f-display); }
.board__sum { color: var(--c-muted); }
.board__row--off .board__name { color: #8a8a90; }
.status { font-size: var(--t-xs); font-weight: 600; white-space: nowrap; }
.status--ok { color: var(--c-text); }
.status--ok::before { content: ''; display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--c-gold); margin-right: var(--s-2); }
.status--wait { color: var(--c-gold); border: 1px dashed var(--c-gold); border-radius: var(--r-control); padding: 0 var(--s-2); }
@media (max-width: 700px) {
  .board__row { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 0; }
  .board__sum { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- 11. Steps (true sequences only) ---------- */
/* Large outlined numerals echo the brand's ranked "Top Indian Games" tiles. */
.steps { list-style: none; counter-reset: step; padding: 0; margin: var(--s-5) 0; display: grid; gap: var(--s-4); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 4.5rem 1fr; column-gap: var(--s-4); align-items: start; max-width: none; }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font: italic 800 var(--t-numeral)/0.8 var(--f-display);
  color: transparent;
  -webkit-text-stroke: 2px var(--c-gold);
  text-align: right;
}
.steps h3 { margin: 0 0 var(--s-1); }
.steps p { margin: 0; color: var(--c-muted); }

/* ---------- 12. FAQ (native details, no JS) ---------- */
.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s-4) var(--s-6) var(--s-4) 0; position: relative; font: 600 var(--t-md)/1.25 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: var(--s-2); top: var(--s-3); font-size: var(--t-lg); color: var(--c-gold); }
.faq details[open] summary::after { content: '\2212'; }
.faq__a { padding-bottom: var(--s-4); color: var(--c-muted); }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- 13. Data table ---------- */
.tbl { overflow-x: auto; margin: var(--s-5) 0; }
.tbl table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 32rem; }
.tbl caption { text-align: left; color: var(--c-muted); font-size: var(--t-xs); padding-bottom: var(--s-2); }
.tbl th, .tbl td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-line-soft); vertical-align: top; }
.tbl thead th { font: 600 var(--t-base)/1.2 var(--f-display); border-bottom: 2px solid var(--c-gold); }
.tbl tbody th { font-weight: 600; }

/* ---------- 14. Exchange ladder (illustrative only) ---------- */
.ladder { margin: var(--s-5) 0; background: var(--c-surface); border-radius: var(--r-panel); padding: var(--s-4); max-width: 34rem; }
.ladder table { width: 100%; border-collapse: separate; border-spacing: 6px; margin: 0; }
.ladder th { text-align: left; font: 600 var(--t-sm)/1.2 var(--f-body); }
.ladder td { text-align: center; font: 800 var(--t-md)/1 var(--f-display); color: var(--c-exchange-ink); padding: var(--s-3); border-radius: var(--r-control); }
.ladder td.ladder__b { background: var(--c-back); }
.ladder td.ladder__l { background: var(--c-lay); }
.ladder thead .ladder__b { color: var(--c-back); text-align: center; }
.ladder thead .ladder__l { color: var(--c-lay); text-align: center; }
.ladder figcaption { font-size: var(--t-xs); color: var(--c-muted); margin-top: var(--s-2); }

/* ---------- 15. Login schematic (diagram, not a form) ---------- */
.schem { margin: var(--s-5) 0; display: grid; gap: var(--s-4); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 720px) { .schem { grid-template-columns: 20rem 1fr; } }
.schem__win { background: #1c1c1e; border: 1px solid var(--c-line); border-radius: var(--r-panel); padding: var(--s-4); display: grid; gap: var(--s-3); }
.schem__tabs { display: flex; gap: var(--s-4); font-weight: 600; color: var(--c-muted); border-bottom: 1px solid var(--c-line); }
.schem__tabs .on { color: var(--c-text); box-shadow: inset 0 -2px 0 var(--c-signal); padding-bottom: var(--s-2); }
.schem__field { display: grid; gap: var(--s-1); }
.schem__lbl { font-size: var(--t-xs); font-weight: 600; }
.schem__box { height: 2.4rem; border: 1px solid var(--c-line); border-radius: var(--r-control); background: #252528; }
.schem__forgot { font-size: var(--t-xs); text-decoration: underline; justify-self: center; }
.schem__cta { background: var(--c-signal); color: var(--c-signal-ink); text-align: center; font-weight: 800; padding: var(--s-3); border-radius: var(--r-control); }
.schem figcaption { color: var(--c-muted); font-size: var(--t-sm); }

/* ---------- 16. Game list ---------- */
.games { list-style: none; padding: 0; display: grid; column-gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.games li { border-top: 1px solid var(--c-line); padding: var(--s-3) 0 var(--s-4); max-width: none; }
.games__t { display: block; font: 800 var(--t-md)/1.1 var(--f-display); }
.games__m { font-size: var(--t-xs); color: var(--c-muted); }

/* ---------- 17. Related links ---------- */
.rel ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.rel li a, .rel li span { display: inline-block; padding: var(--s-2) var(--s-4); border: 1px solid var(--c-line); border-radius: 999px; text-decoration: none; }
.rel li a:hover { border-color: var(--c-gold); }

/* ---------- 18. Page-level ---------- */
.hero { padding-top: var(--s-7); }
.hero h1 { max-width: 16ch; }
.guide-head { padding-bottom: var(--s-5); border-bottom: 1px solid var(--c-line); margin-bottom: var(--s-5); }
.nf { padding: var(--s-8) 0; }
.sg { padding-bottom: var(--s-6); }
.sg__sw { list-style: none; padding: 0; display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.sg__sw li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: var(--s-3); align-items: center; max-width: none; }
.sg__chip { grid-row: span 2; width: 2.5rem; height: 2.5rem; border-radius: var(--r-control); border: 1px solid var(--c-line); }
.sg__row { display: flex; gap: var(--s-3); flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 19. Top games (homepage) ---------- */
.topg { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: var(--s-5) var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .topg { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.topg li { max-width: none; }
.topg__tile { margin: 0; }
.topg__tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-card); background: var(--c-surface); }
.topg__tile figcaption { padding-top: var(--s-2); }
.topg__name { display: block; font: 800 var(--t-md)/1.1 var(--f-display); }
.topg__meta { font-size: var(--t-xs); color: var(--c-muted); }
.art { width: min(20rem, 80vw); aspect-ratio: 1; object-fit: cover; border-radius: var(--r-card); background: var(--c-surface); margin: 0 0 var(--s-4); }
.topg__link { display: block; text-decoration: none; }
.topg__link:hover .topg__name { color: var(--c-gold); }

/* ---------- 20. Hub sections (homepage semantic silos) ---------- */
/* One H2 entity per silo, H3 sub-entities as cards, one hub link per section. */
.hub { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--c-line); }
.hub > h2 { margin-top: 0; }
.hub__kicker { font: 600 var(--t-xs)/1 var(--f-body); color: var(--c-gold); margin: 0 0 var(--s-3); }
.hub__more { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; margin: 0 0 var(--s-4); }
.hub__more::after { content: '\2192'; color: var(--c-gold); text-decoration: none; }
.ents { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .ents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ents > li { max-width: none; }
.ent { height: 100%; background: var(--c-surface); border: 1px solid var(--c-line-soft); border-radius: var(--r-card); padding: var(--s-4) var(--s-5); }
.ent h3, .ent h4 { margin: 0 0 var(--s-2); }
.ent h4 { font: 600 var(--t-md)/1.05 var(--f-display); }
.ent h3 a { text-decoration: none; }
.ent h3 a::after { content: ' \2192'; color: var(--c-gold); }
.ent h3 a:hover { color: var(--c-gold); }
.ent p { font-size: var(--t-sm); color: var(--c-muted); margin-bottom: var(--s-2); }
.ent p:last-child { margin-bottom: 0; }
.ent--lead { border-left: 4px solid var(--c-gold); }

/* ---------- 21. iGaming layer ---------- */
/* Sportsbook/casino-style chrome on the same tokens: sticky header, glow hero, fact panel,
   category pills, tile badges, lifted cards. Gold = brand, yellow = act, red dot = live only. */
html, body { overflow-x: clip; }
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(12, 12, 14, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hdr::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--c-gold), transparent); opacity: 0.5; }
.hdr__in { position: relative; }
.hdr__cta { margin-left: auto; flex: none; min-height: 38px; padding: 0 var(--s-4); }
@media (max-width: 640px) {
  .hdr__nav { order: 3; }
  .hdr__cta { order: 2; }
}

.hero--ig { position: relative; display: grid; gap: var(--s-6); padding: var(--s-7) 0 var(--s-5); }
@media (min-width: 900px) { .hero--ig { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; } }
.hero--ig::before { content: ''; position: absolute; z-index: -1; inset: -2rem -40vw 0; pointer-events: none;
  background: radial-gradient(38rem 20rem at 18% 15%, rgba(224, 176, 60, 0.20), transparent 70%),
              radial-gradient(30rem 18rem at 85% 35%, rgba(249, 216, 74, 0.08), transparent 70%); }
.hero--ig h1 { max-width: 18ch; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); font: 600 var(--t-xs)/1 var(--f-body); color: var(--c-gold); background: rgba(224, 176, 60, 0.1); border: 1px solid rgba(224, 176, 60, 0.35); border-radius: 999px; padding: var(--s-2) var(--s-3); margin-bottom: var(--s-4); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-5) 0 0; }

.facts { background: linear-gradient(180deg, #1d1d21, #121214); border: 1px solid var(--c-line); border-radius: var(--r-panel); padding: var(--s-5); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.facts__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--c-line); }
.facts__logo { flex: none; width: 3rem; height: 3rem; border-radius: var(--r-card); display: grid; place-items: center; background: #000; border: 1px solid var(--c-gold); font: italic 800 1.35rem/1 var(--f-display); color: var(--c-gold); }
.facts__title { font: 800 var(--t-lg)/1 var(--f-display); margin: 0; }
.facts__sub { color: var(--c-muted); font-size: var(--t-xs); margin: var(--s-1) 0 0; }
.facts dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3) var(--s-4); margin: 0; font-size: var(--t-sm); }
.facts dt { color: var(--c-muted); }
.facts dd { margin: 0; font-weight: 600; }

.chips { list-style: none; display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding: var(--s-1) 0 var(--s-2); margin: var(--s-5) 0 0; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chips li { flex: none; max-width: none; }
.chip { display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-4); border-radius: 999px; background: var(--c-raised); border: 1px solid var(--c-line); font: 600 var(--t-sm)/1.2 var(--f-body); white-space: nowrap; text-decoration: none; }
a.chip:hover { border-color: var(--c-gold); color: var(--c-gold); }
.chip svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--c-gold); }

.badge { display: inline-flex; align-items: center; gap: 0.4em; font: 700 0.7rem/1 var(--f-body); letter-spacing: 0.03em; padding: 0.35em 0.6em; border-radius: var(--r-control); background: rgba(0, 0, 0, 0.75); color: var(--c-text); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.badge--live::before { content: ''; width: 0.5em; height: 0.5em; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.25); }
.badge--beta { background: var(--c-gold); color: var(--c-signal-ink); }
.topg__tile { position: relative; }
.topg__badges { position: absolute; top: var(--s-2); left: var(--s-2); right: var(--s-2); display: flex; flex-wrap: wrap; gap: var(--s-1); }
.topg__tile img { transition: transform 0.2s, box-shadow 0.2s; }
.topg__link:hover img { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 0 2px var(--c-gold); }

.ent { background: linear-gradient(160deg, #1d1d21 0%, var(--c-surface) 65%); transition: border-color 0.15s, transform 0.15s; }
.ent:has(h3 a:hover) { border-color: var(--c-gold); transform: translateY(-2px); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font-size: var(--t-xs); color: var(--c-muted); margin: var(--s-4) 0 0; }
.meta strong { color: var(--c-text); font-weight: 600; }
.meta > * + *::before { content: ''; display: inline-block; width: 0.35em; height: 0.35em; border-radius: 50%; background: var(--c-gold); margin-right: var(--s-3); vertical-align: middle; }

.toc { background: var(--c-surface); border: 1px solid var(--c-line-soft); border-radius: var(--r-card); padding: var(--s-4) var(--s-5); margin: var(--s-5) 0 0; }
.toc__title { font: 600 var(--t-md)/1 var(--f-display); margin: 0 0 var(--s-3); }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 15rem; column-gap: var(--s-6); font-size: var(--t-sm); }
.toc li { break-inside: avoid; margin-bottom: var(--s-2); }
.toc li::marker { color: var(--c-gold); font-weight: 600; }
.toc a { color: var(--c-muted); text-decoration: none; }
.toc a:hover { color: var(--c-gold); }
:target { scroll-margin-top: 6rem; }
section[id] { scroll-margin-top: 6rem; }

.ftr { padding: var(--s-7) 0 var(--s-5); background: linear-gradient(180deg, #0c0c0d, #050506); }
.ftr__cols { display: grid; gap: var(--s-6) var(--s-5); grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin-bottom: var(--s-6); }
.ftr__brand { grid-column: 1 / -1; max-width: 26rem; }
@media (min-width: 900px) { .ftr__cols { grid-template-columns: 1.6fr repeat(3, 1fr); } .ftr__brand { grid-column: auto; } }
.ftr__h { font: 600 var(--t-base)/1 var(--f-display); color: var(--c-gold); margin: 0 0 var(--s-3); }
.ftr__cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.ftr__cols a { color: var(--c-muted); text-decoration: none; }
.ftr__cols a:hover { color: var(--c-gold); }
.ftr__rg { border-top: 1px solid var(--c-line-soft); padding-top: var(--s-5); }
@media (min-width: 760px) { .ents > li:has(.ent--lead) { grid-column: 1 / -1; } }
