/* ==========================================================================
   KEYS EDITORIAL SYSTEM — Keys Casinos
   Independent information / comparison / affiliate publisher (Argentina)
   Display: DM Serif Display · UI & text: IBM Plex Sans
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License 1.1, see /assets/fonts/) — latin subset covers Spanish */
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Paper & ink */
  --paper: #F2EEE3;
  --paper-deep: #E9E3D4;
  --card: #FAF8F2;
  --ink: #1D211F;
  --ink-2: #3A403C;
  --muted: #5B615C;
  --rule: #D5CCB8;
  --rule-strong: #B9AD92;

  /* Greens & brass */
  --forest: #173A2B;
  --forest-deep: #10291F;
  --emerald: #2F6A51;
  --emerald-soft: #DCE7DE;
  --brass: #A57F3E;          /* decorative lines, large numerals */
  --brass-ink: #75582A;      /* brass for text on paper (AA) */
  --brass-soft: #EADFC6;
  --on-dark: #F1EBDD;
  --on-dark-muted: #BFC9BF;
  --alert: #8C3B22;

  /* Type */
  --serif: "DM Serif Display", "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Scale (modular, ~1.25) */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.625rem;
  --fs-xl: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
  --fs-2xl: clamp(2.2rem, 1.5rem + 2.6vw, 3.5rem);
  --fs-hero: clamp(2.6rem, 1.4rem + 4.4vw, 5rem);

  /* Layout */
  --maxw: 1360px;
  --gutter: clamp(16px, 4vw, 44px);
  --header-h: 76px;
  --radius-s: 2px;
  --radius-m: 6px;
  --shadow-lift: 0 18px 40px -24px rgba(16, 41, 31, .45), 0 2px 6px -2px rgba(16, 41, 31, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--forest); text-decoration-thickness: 2px; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.12; color: var(--ink); }
ul, ol { padding: 0; margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.num, table, .tabular { font-variant-numeric: tabular-nums lining-nums; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 1px; }
.on-dark :focus-visible, .site-footer :focus-visible, .topbar :focus-visible { outline-color: #E4C98E; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--forest); color: var(--on-dark); padding: 12px 18px; font-weight: 600;
  text-decoration: none; border-radius: var(--radius-s); transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--on-dark); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
main:focus { outline: none; }

/* ---------- Top disclosure bar ---------- */
.topbar { background: var(--forest-deep); color: var(--on-dark); font-size: var(--fs-xs); letter-spacing: .02em; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding-block: 5px; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar .lang-switch { border-color: rgba(241,235,221,.4); padding: 2px; }
.topbar .lang-switch a { color: var(--on-dark); min-height: 30px; min-width: 40px; }
.topbar .lang-switch a[aria-current="true"] { background: var(--on-dark); color: var(--forest-deep); }
.topbar .lang-switch a:not([aria-current="true"]):hover { background: rgba(241,235,221,.14); color: #fff; }
.topbar-flags { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; list-style: none; }
.topbar-flags li { display: inline-flex; align-items: center; gap: 7px; }
.topbar-flags .age { font-weight: 700; border: 1px solid rgba(241,235,221,.55); border-radius: 999px; padding: 0 7px; line-height: 1.5; }
.topbar a { color: var(--on-dark); }
.topbar-note { margin: 0; color: var(--on-dark-muted); }
@media (max-width: 1020px) { .topbar-note { display: none; } }
@media (max-width: 560px) { .topbar-flags li:not(:first-child) { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(242, 238, 227, .94);
  -webkit-backdrop-filter: saturate(1.1) blur(10px); backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand-word { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .07em; }
.brand-tag { margin-top: 5px; font-size: .625rem; font-weight: 600; letter-spacing: .2em; color: var(--muted); }

.primary-nav { justify-self: center; }
.nav-list { display: flex; flex-wrap: nowrap; gap: clamp(12px, 1.3vw, 22px); list-style: none; margin: 0; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; position: relative;
  font-size: .875rem; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { white-space: nowrap; }
.lang-switch { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 3px; margin: 0; list-style: none; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 34px;
  padding: 0 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  color: var(--ink-2); text-decoration: none;
}
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.lang-switch a:not([aria-current="true"]):hover { background: var(--paper-deep); color: var(--ink); }

.menu-toggle {
  display: none; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  background: transparent; border: 1px solid var(--rule-strong); border-radius: var(--radius-s); cursor: pointer;
  font-size: .85rem; font-weight: 600;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-extra { display: none; }

@media (max-width: 1300px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    grid-column: 1 / -1; justify-self: stretch;
    border-top: 1px solid var(--rule); padding: 8px 0 20px;
  }
  .js .primary-nav { display: none; }
  .js .primary-nav.is-open { display: block; animation: navIn .22s var(--ease); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { width: 100%; min-height: 52px; font-size: 1.05rem; border-bottom: 1px solid var(--rule); }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--emerald); }
  .nav-extra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; }
  .header-actions { justify-self: end; }
  .no-js .menu-toggle { display: none; }
}
@media (max-width: 520px) {
  .header-actions .btn-header { display: none; }
  .brand-tag { display: none; }
  .brand-word { font-size: 1.22rem; }
  .brand-mark { width: 30px; height: 30px; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons & tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius-s);
  font-size: .95rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-primary { background: var(--forest); color: var(--on-dark); }
.btn-primary:hover { background: var(--emerald); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn-light { background: var(--on-dark); color: var(--forest-deep); }
.btn-light:hover { background: #fff; color: var(--forest-deep); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--card);
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-2);
}
.tag svg { width: 12px; height: 12px; }
.tag-ext { border-color: var(--brass); color: var(--brass-ink); background: var(--brass-soft); }
.tag-age { border-color: var(--ink); color: var(--ink); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding: clamp(28px, 4.5vw, 60px) 0 clamp(40px, 6vw, 76px); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero-edition { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 clamp(16px, 2.4vw, 26px); padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--muted); }
.hero-edition li + li { padding-left: 22px; border-left: 1px solid var(--rule-strong); }
.hero-title { font-family: var(--serif); font-size: var(--fs-hero); line-height: .95; letter-spacing: -.02em; margin-bottom: clamp(18px, 2.4vw, 28px); max-width: 15ch; text-wrap: balance; }
.hero-lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.hero-note { font-size: var(--fs-sm); color: var(--muted); max-width: 40em; padding-left: 16px; border-left: 2px solid var(--brass); }
.hero-actions { margin-top: 28px; }
.hero-flags { margin-top: 20px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.hero-flags span { display: inline-block; }

.hero-figure { margin: 0; position: relative; }
.hero-figure svg { width: 100%; height: auto; }
.hero-figure figcaption { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: var(--fs-xs); color: var(--muted); }
.hero-figure figcaption b { color: var(--ink); font-weight: 600; }
@media (min-width: 1100px) { .hero-figure { margin-right: calc(var(--gutter) * -0.5); } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: 14ch; }
  .hero-figure { max-width: 540px; }
}
@media (max-width: 520px) {
  .hero-edition li + li { padding-left: 0; border-left: 0; }
  .hero-edition { gap: 4px 16px; }
  .hero-actions .btn { width: 100%; }
}

/* map load sequence — single orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .map-dots circle { animation: dotIn .9s var(--ease) both; animation-delay: calc(var(--r, 0) * 22ms); }
  .map-key { animation: keyIn 1.4s .5s var(--ease) both; }
  .map-line { stroke-dasharray: 900; animation: lineIn 2s .9s var(--ease) both; }
}
@keyframes dotIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes keyIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lineIn { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }

/* ---------- Section frame with marginalia rail ---------- */
.section { padding-block: clamp(52px, 7vw, 96px); }
.section + .section { border-top: 1px solid var(--rule); }
.section-tint { background: var(--paper-deep); }
.frame { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 4vw, 64px); }
.rail { position: relative; }
.rail-mark {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: flex; align-items: flex-start; gap: 10px; padding-top: 12px; border-top: 1px solid var(--ink);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink); line-height: 1.35;
}
.rail-mark svg { width: 14px; height: 18px; flex: none; margin-top: 2px; color: var(--brass); }
.rail-mark small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
.section-title { font-family: var(--serif); font-size: var(--fs-2xl); letter-spacing: -.01em; margin-bottom: 18px; max-width: 22ch; text-wrap: balance; }
.section-intro { font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); max-width: 38em; margin-bottom: clamp(28px, 4vw, 48px); }
@media (max-width: 900px) {
  .frame { grid-template-columns: 1fr; gap: 18px; }
  .rail-mark { position: static; border-top: 0; padding-top: 0; }
}

/* ---------- Role answers (who publishes / operates / where) ---------- */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.role { padding: 24px clamp(16px, 2.4vw, 32px) 28px 0; }
.role + .role { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--rule); }
.role-q { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 8px; }
.role-a { font-family: var(--serif); font-size: clamp(1.4rem, 1.15rem + .7vw, 1.75rem); line-height: 1.1; margin-bottom: 10px; }
.role p:last-child { margin-bottom: 0; color: var(--ink-2); font-size: var(--fs-sm); }
@media (max-width: 760px) {
  .roles { grid-template-columns: 1fr; }
  .role { padding: 20px 0; }
  .role + .role { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* ---------- Principles (01–04) ---------- */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.principle { padding: 0 clamp(14px, 2vw, 28px) 8px; border-left: 1px solid var(--rule); }
.principle:first-child { padding-left: 0; border-left: 0; }
.principle-num { display: block; font-family: var(--serif); font-size: clamp(3.6rem, 2.6rem + 3vw, 6rem); line-height: .9; color: #86672F; margin-bottom: 18px; }
.principle h3 { font-family: var(--serif); font-size: var(--fs-lg); margin-bottom: 10px; }
.principle p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
@media (max-width: 980px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .principle { padding: 0; border-left: 0; }
  .principle + .principle { padding-top: 28px; border-top: 1px solid var(--rule); }
}

/* ---------- Operator dossier ---------- */
.dossier { background: var(--card); border: 1px solid var(--rule-strong); box-shadow: var(--shadow-lift); }
.dossier-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px;
  padding: 12px clamp(18px, 3vw, 32px); background: var(--brass-soft); border-bottom: 1px solid var(--rule-strong);
  font-size: var(--fs-xs); color: var(--ink-2);
}
.dossier-bar strong { letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); font-size: .75rem; display: inline-flex; gap: 8px; align-items: center; }
.dossier-bar svg { width: 14px; height: 14px; }
.dossier-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); padding: clamp(22px, 4vw, 48px) clamp(18px, 3vw, 40px); }
.dossier-name { font-family: var(--serif); font-size: var(--fs-2xl); line-height: 1; margin-bottom: 14px; }
.dossier-lede { color: var(--ink-2); }
.dossier .tags + p { margin-top: 16px; }
.dossier-statement { font-weight: 600; padding: 12px 14px; border-left: 3px solid var(--forest); background: var(--emerald-soft); font-size: var(--fs-sm); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin: 0; border-top: 1px solid var(--ink); align-content: start; }
.fact { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.fact dt { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.fact dd { margin: 0; font-size: var(--fs-sm); color: var(--ink); }
.fact-wide { grid-column: 1 / -1; }
.fact dd .domain { display: inline-block; margin: 2px 10px 2px 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.dossier-foot { padding: 14px clamp(18px, 3vw, 40px); border-top: 1px solid var(--rule); font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 900px) { .dossier-body { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
}

/* ---------- Timeline (sequence) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--ink); }
.step { position: relative; padding-right: 24px; }
.step-num {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink);
  font-family: var(--serif); font-size: 1.15rem; margin-bottom: 20px;
}
.section-tint .step-num { background: var(--paper-deep); }
.step:last-child .step-num { background: var(--forest); color: var(--on-dark); border-color: var(--forest); }
.step h3 { font-size: var(--fs-md); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-family: var(--sans); margin-bottom: 8px; }
.step p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.timeline-note { margin-top: clamp(28px, 4vw, 44px); padding: 18px 20px; border: 1px solid var(--ink); display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.timeline-note svg { width: 22px; height: 22px; flex: none; color: var(--brass); margin-top: 2px; }
.timeline-note p { margin: 0; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; padding-right: 0; }
  .step-num { grid-row: span 2; margin: 0; }
}

/* ---------- Jurisdiction cards ---------- */
.juris-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); list-style: none; margin: 0; padding: 0; }
.juris { background: var(--card); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.section-tint .juris { background: var(--paper); }
.juris-code { font-size: .75rem; font-weight: 700; letter-spacing: .14em; color: var(--brass-ink); }
.juris h3 { font-family: var(--serif); font-size: 1.4rem; line-height: 1.15; }
.juris-reg { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.juris-status { margin: auto 0 0; padding-top: 12px; border-top: 1px dashed var(--rule-strong); display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-xs); font-weight: 600; line-height: 1.45; }
.juris-status svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.juris-status.is-listed { color: var(--forest); }
.juris-status.is-not { color: var(--muted); }
.juris-foot { margin-top: 18px; font-size: var(--fs-sm); color: var(--muted); max-width: 60em; }
@media (max-width: 980px) { .juris-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .juris-grid { grid-template-columns: 1fr; } }

/* ---------- Guide index (article cards) ---------- */
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); list-style: none; margin: 0; padding: 0; }
.guide { border-bottom: 1px solid var(--rule); }
.guide:nth-child(odd) { border-right: 1px solid var(--rule); }
.guide a { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 24px 26px 0; color: var(--ink); text-decoration: none; height: 100%; }
.guide:nth-child(even) a { padding-left: 24px; }
.guide-glyph { width: 64px; height: 64px; color: var(--emerald); }
.guide-kicker { font-size: var(--fs-xs); font-weight: 600; color: var(--brass-ink); margin-bottom: 6px; display: block; }
.guide h3 { font-family: var(--serif); font-size: 1.55rem; margin-bottom: 8px; transition: color .2s var(--ease); }
.guide p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.guide a:hover h3 { color: var(--emerald); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
@media (max-width: 760px) {
  .guides { grid-template-columns: 1fr; }
  .guide:nth-child(odd) { border-right: 0; }
  .guide:nth-child(even) a { padding-left: 0; }
  .guide a { grid-template-columns: 48px 1fr; gap: 16px; padding-right: 0; }
  .guide-glyph { width: 48px; height: 48px; }
}

/* ---------- Responsible gambling panel ---------- */
.rg-panel { background: var(--forest); color: var(--on-dark); position: relative; overflow: hidden; }
.rg-panel::before {
  content: ""; position: absolute; right: -80px; top: -60px; width: 380px; height: 380px; border-radius: 50%;
  border: 1px solid rgba(233, 214, 170, .22); box-shadow: 0 0 0 40px rgba(233,214,170,.04), 0 0 0 80px rgba(233,214,170,.03);
  pointer-events: none;
}
.rg-inner { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(52px, 7vw, 96px); }
.rg-age { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; border: 2px solid #E4C98E; font-family: var(--serif); font-size: 1.9rem; color: #F4E6C5; margin-bottom: 22px; }
.rg-panel h2 { font-family: var(--serif); font-size: var(--fs-2xl); color: var(--on-dark); margin-bottom: 16px; max-width: 16ch; }
.rg-panel p { color: var(--on-dark-muted); }
.rg-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.rg-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(241, 235, 221, .16); color: var(--on-dark); font-size: var(--fs-sm); }
.rg-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: #E4C98E; }
.help-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.help-line { border: 1px solid rgba(241, 235, 221, .28); padding: 14px 16px; border-radius: var(--radius-s); }
.help-line b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; color: #F4E6C5; line-height: 1.1; font-variant-numeric: tabular-nums; }
.help-line b a { color: inherit; text-decoration: none; }
.help-line b a:hover { text-decoration: underline; }
.help-line span { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--on-dark-muted); }
.rg-panel .small { font-size: var(--fs-xs); }
.rg-panel a:not(.btn) { color: #F4E6C5; }
@media (max-width: 980px) { .rg-inner { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .rg-list, .help-lines { grid-template-columns: 1fr; } }

/* ---------- Disclosure strip ---------- */
.disclosure {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 16px 18px; background: var(--card); border: 1px solid var(--rule-strong); border-left: 4px solid var(--brass);
  font-size: var(--fs-sm); color: var(--ink-2);
}
.disclosure svg { width: 22px; height: 22px; color: var(--brass-ink); margin-top: 2px; }
.disclosure p { margin: 0; }
.disclosure p + p { margin-top: 6px; }
.disclosure strong { color: var(--ink); }
.disclosure-band { padding-block: 22px; border-bottom: 1px solid var(--rule); }

/* ---------- Stat figures ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.stat { padding: 20px 20px 20px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--rule); }
.stat-figure { display: block; font-family: var(--serif); font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: .95; color: var(--forest); font-variant-numeric: lining-nums; }
.stat-label { display: block; margin-top: 10px; font-size: var(--fs-sm); color: var(--ink-2); max-width: 22em; }
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* ---------- FAQ accordion ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item h3 { margin: 0; font-family: var(--sans); font-size: 1rem; }
.faq-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 60px; padding: 16px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); font-weight: 600; color: var(--ink); line-height: 1.35;
}
.faq-trigger:hover { color: var(--emerald); }
.faq-icon { position: relative; width: 22px; height: 22px; flex: none; border: 1px solid currentColor; border-radius: 50%; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-trigger[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-panel { padding: 0 48px 22px 0; color: var(--ink-2); max-width: 52em; }
.faq-panel p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) { .js .faq-panel:not([hidden]) { animation: panelIn .25s var(--ease); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Inner page head ---------- */
.page-head { padding: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0 0 clamp(22px, 3vw, 36px); padding: 0; font-size: var(--fs-xs); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--rule-strong); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.page-kicker { font-size: var(--fs-sm); font-weight: 600; color: var(--brass-ink); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.page-kicker svg { width: 12px; height: 16px; color: var(--brass); }
.page-title { font-family: var(--serif); font-size: var(--fs-2xl); line-height: 1.02; letter-spacing: -.015em; margin-bottom: 18px; max-width: 20ch; text-wrap: balance; }
.page-dek { font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); max-width: 38em; margin-bottom: 18px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; font-size: var(--fs-xs); color: var(--muted); }
.meta-row li { display: inline-flex; align-items: center; gap: 6px; }
.meta-row svg { width: 13px; height: 13px; }
.head-aside { border-top: 2px solid var(--ink); padding-top: 14px; }
.head-aside .stat-figure { font-size: clamp(3.4rem, 2.4rem + 3vw, 5.6rem); }
.head-aside p { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 860px) { .page-head-grid { grid-template-columns: 1fr; } .head-aside { max-width: 420px; } }

/* ---------- Article layout ---------- */
.article-wrap { padding-block: clamp(40px, 6vw, 80px); }
.article-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 5vw, 72px); }
.toc { position: relative; }
.toc-inner { position: sticky; top: calc(var(--header-h) + 24px); border-top: 1px solid var(--ink); padding-top: 12px; }
.toc-title { font-size: var(--fs-sm); font-weight: 700; margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 7px 0; font-size: var(--fs-sm); line-height: 1.4; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
.toc a::before { content: counter(toc, decimal-leading-zero); font-size: .75rem; color: var(--brass-ink); padding-top: 2px; font-variant-numeric: tabular-nums; }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active { font-weight: 600; }
@media (max-width: 960px) {
  .article-grid { grid-template-columns: 1fr; }
  .toc-inner { position: static; }
  .toc ol { columns: 2; column-gap: 24px; }
  .toc li { break-inside: avoid; }
}
@media (max-width: 560px) { .toc ol { columns: 1; } }

.prose { max-width: 60rem; }
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3, .prose > dl, .prose > .callout, .prose > .keyfacts, .prose > .do-dont, .prose > .legal-summary, .prose > .disclosure, .prose > .help-lines { max-width: 44rem; }
.prose > .calc { max-width: 44rem; }
.prose > * + h2 { margin-top: clamp(48px, 6vw, 72px); }
.prose h2 { font-family: var(--serif); font-size: var(--fs-xl); line-height: 1.1; margin-bottom: 18px; scroll-margin-top: calc(var(--header-h) + 20px); padding-top: 18px; border-top: 1px solid var(--rule); }
.prose h3 { font-family: var(--sans); font-size: var(--fs-md); font-weight: 700; margin: 34px 0 10px; line-height: 1.3; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 12px; height: 1px; background: var(--brass); }
.prose ol { counter-reset: li; }
.prose ol li { position: relative; padding-left: 36px; margin-bottom: 10px; counter-increment: li; }
.prose ol li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: 0; font-size: .85rem; font-weight: 700; color: var(--brass-ink); font-variant-numeric: tabular-nums; }
.prose strong { color: var(--ink); }
.prose .lead { font-size: var(--fs-md); line-height: 1.6; color: var(--ink); }
.prose .disclosure, .prose .callout, .prose .table-wrap, .prose .keyfacts, .prose .calc, .prose .jx, .prose .dossier { margin: 28px 0; }

.callout { padding: 18px 20px; border: 1px solid var(--rule-strong); background: var(--card); }
.callout-title { font-weight: 700; color: var(--ink); margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.callout-title svg { width: 18px; height: 18px; color: var(--brass-ink); flex: none; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-green { background: var(--emerald-soft); border-color: #B7CDBE; }
.callout-ink { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.callout-ink p, .callout-ink li, .callout-ink .callout-title { color: var(--on-dark); }
.callout-ink svg { color: #E4C98E; }

.keyfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.keyfacts li { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); }
.keyfacts li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
.keyfacts .kf-num { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--forest); font-variant-numeric: lining-nums tabular-nums; }
.prose .keyfacts li { padding-left: 0; margin: 0; }
.prose .keyfacts li:nth-child(even) { padding-left: 16px; }
.prose .keyfacts li::before { display: none; }
.keyfacts .kf-label { display: block; font-size: var(--fs-sm); color: var(--ink-2); margin-top: 6px; }
@media (max-width: 520px) { .keyfacts { grid-template-columns: 1fr; } .keyfacts li:nth-child(even), .prose .keyfacts li:nth-child(even) { padding-left: 0; border-left: 0; } }

.do-dont { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.do-dont > div { padding: 18px 20px; border: 1px solid var(--rule-strong); background: var(--card); }
.do-dont h3 { margin: 0 0 10px !important; display: flex; gap: 10px; align-items: center; font-size: 1.05rem !important; }
.do-dont h3 svg { width: 18px; height: 18px; flex: none; }
.do-dont .is-yes h3 { color: var(--forest); }
.do-dont .is-no h3 { color: var(--alert); }
.do-dont ul { margin: 0; }
@media (max-width: 640px) { .do-dont { grid-template-columns: 1fr; } }

/* ---------- Comparison matrix ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule-strong); background: var(--card); }
.matrix { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 640px; }
.matrix caption { text-align: left; padding: 14px 18px; font-weight: 700; border-bottom: 1px solid var(--rule-strong); caption-side: top; }
.matrix caption span { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.matrix th, .matrix td { padding: 14px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.matrix thead th { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; color: var(--muted); background: var(--paper-deep); white-space: nowrap; }
.matrix tbody th { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--ink); }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.matrix td .tag { margin-top: 6px; }
.matrix .cell-action { min-width: 190px; }
.matrix td.wrap-anywhere { overflow-wrap: normal; white-space: nowrap; }
@media (max-width: 760px) { .matrix td.wrap-anywhere { white-space: normal; overflow-wrap: anywhere; } }
.matrix-cards { min-width: 0; }
@media (max-width: 760px) {
  .table-wrap.stack { overflow: visible; border: 0; background: transparent; }
  .matrix-cards, .matrix-cards tbody, .matrix-cards tr, .matrix-cards th, .matrix-cards td { display: block; width: 100%; }
  .matrix-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .matrix-cards caption { display: block; border: 1px solid var(--rule-strong); border-bottom: 0; background: var(--card); }
  .matrix-cards tr { border: 1px solid var(--rule-strong); background: var(--card); margin-bottom: 16px; }
  .matrix-cards tbody th { padding: 16px 16px 8px; border-bottom: 1px solid var(--rule); }
  .matrix-cards td { display: grid; grid-template-columns: 38% 1fr; gap: 12px; padding: 12px 16px; }
  .matrix-cards td::before { content: attr(data-label); font-size: var(--fs-xs); font-weight: 700; color: var(--muted); letter-spacing: .04em; }
  .matrix-cards td.cell-action { grid-template-columns: 1fr; }
  .matrix-cards td.cell-action::before { display: none; }
}

/* ---------- Jurisdiction selector ---------- */
.jx { border: 1px solid var(--rule-strong); background: var(--card); }
.jx fieldset { border: 0; margin: 0; padding: 18px 20px 6px; }
.jx legend { font-weight: 700; padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.jx-options { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.jx-opt { position: relative; }
.jx-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.jx-opt span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule-strong);
  border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); background: var(--paper); transition: all .15s var(--ease);
}
.jx-opt input:hover + span { border-color: var(--ink); }
.jx-opt input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.jx-opt input:checked + span::before { content: "✓"; margin-right: 8px; }
.jx-opt input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.jx-results { padding: 14px 20px 20px; }
.jx-panel { padding: 16px 0 0; border-top: 1px dashed var(--rule-strong); }
.jx-panel + .jx-panel { margin-top: 16px; }
.js .jx-panel + .jx-panel { margin-top: 0; }
.jx-panel h3 { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 6px !important; }
.jx-panel p { font-size: var(--fs-sm); margin-bottom: 12px; }
.jx-panel dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: var(--fs-sm); margin: 0 0 14px; }
.jx-panel dt { color: var(--muted); }
.jx-panel dd { margin: 0; font-weight: 600; }

/* ---------- Odds calculator ---------- */
.calc { border: 1px solid var(--ink); background: var(--card); }
.calc-head { padding: 14px 20px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.calc-head strong { font-size: 1.05rem; }
.calc-head span { font-size: var(--fs-xs); color: var(--muted); }
.calc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.calc-inputs { padding: 18px 20px; display: grid; gap: 14px; border-right: 1px solid var(--rule); }
.calc-out { padding: 18px 20px; display: grid; gap: 12px; align-content: start; }
.calc-out div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.calc-out dt { color: var(--ink-2); font-size: var(--fs-sm); }
.calc-out dd { margin: 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--forest); font-variant-numeric: tabular-nums lining-nums; }
.calc-note { padding: 12px 20px; border-top: 1px solid var(--rule); font-size: var(--fs-xs); color: var(--muted); margin: 0; }
@media (max-width: 640px) { .calc-body { grid-template-columns: 1fr; } .calc-inputs { border-right: 0; border-bottom: 1px solid var(--rule); } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.input, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: #fff; border: 1px solid var(--rule-strong); border-radius: var(--radius-s);
  font-size: 1rem; line-height: 1.4; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.textarea { min-height: 160px; resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(47, 106, 81, .18); outline: none; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--alert); }
.field-error { font-size: var(--fs-xs); color: var(--alert); font-weight: 600; min-height: 1em; margin: 0; }
.form-grid { display: grid; gap: 18px; }
.form-status { margin: 0; padding: 14px 16px; border-left: 4px solid var(--forest); background: var(--emerald-soft); font-weight: 600; }
.form-status[data-state="error"] { border-left-color: var(--alert); background: #F5E3DB; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--forest); flex: none; }

/* ---------- Contact layout ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); }
.contact-card { border-top: 2px solid var(--ink); padding-top: 18px; }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); letter-spacing: .05em; margin-top: 18px; }
.contact-card dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; word-break: break-word; }
.form-card { background: var(--card); border: 1px solid var(--rule-strong); padding: clamp(20px, 3vw, 34px); }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal-summary { border: 1px solid var(--ink); padding: 18px 22px; margin-bottom: 36px; background: var(--card); }
.legal-summary h2 { border: 0 !important; padding: 0 !important; margin: 0 0 10px !important; font-size: 1.35rem !important; }
.legal-summary ul { margin: 0; }

/* ---------- 404 ---------- */
.nf { padding-block: clamp(56px, 10vw, 140px); }
.nf-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.nf-code { font-family: var(--serif); font-size: clamp(5rem, 3rem + 10vw, 12rem); line-height: .85; color: var(--brass); display: block; margin-bottom: 18px; font-variant-numeric: lining-nums; }
.nf h1 { font-family: var(--serif); font-size: var(--fs-2xl); margin-bottom: 14px; }
.nf-links { margin-top: 36px; border-top: 1px solid var(--rule); padding-top: 18px; }
.nf-links ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.nf-art { color: var(--forest); }
@media (max-width: 820px) { .nf-grid { grid-template-columns: 1fr; } .nf-art { max-width: 240px; } }

/* ---------- CTA band ---------- */
.cta-band { border: 1px solid var(--ink); padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--card); }
.cta-band h2 { font-family: var(--serif); font-size: var(--fs-xl); margin-bottom: 8px; }
.cta-band p { margin: 0; color: var(--ink-2); }
.cta-band .cta-side { display: grid; justify-items: start; gap: 4px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--on-dark-muted); font-size: var(--fs-sm); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-disclosure { padding-block: 34px; border-bottom: 1px solid rgba(241, 235, 221, .14); display: grid; grid-template-columns: auto 1fr; gap: 18px; }
.footer-disclosure svg { width: 34px; height: 44px; color: #E4C98E; }
.footer-disclosure p { margin: 0; max-width: 64em; color: var(--on-dark); }
.footer-disclosure p + p { margin-top: 8px; color: var(--on-dark-muted); }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 44px; }
.footer-brand .brand { color: var(--on-dark); }
.footer-brand .brand-tag { color: var(--on-dark-muted); }
.footer-brand p { margin-top: 16px; max-width: 26em; }
.footer-col h2 { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #E4C98E; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 4px; }
.footer-col a, .linklike { display: inline-flex; align-items: center; min-height: 36px; }
.linklike { background: none; border: 0; padding: 0; color: var(--on-dark); cursor: pointer; font-size: inherit; text-align: left; }
.linklike:hover { text-decoration: underline; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(241, 235, 221, .14); padding-block: 24px 30px; display: grid; gap: 14px; }
.footer-flags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.footer-flags li { border: 1px solid rgba(241, 235, 221, .4); border-radius: 999px; padding: 3px 12px; color: var(--on-dark); font-size: var(--fs-xs); font-weight: 600; }
.footer-flags li:first-child { background: var(--on-dark); color: var(--forest-deep); border-color: var(--on-dark); }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: var(--fs-xs); }
.footer-meta p { margin: 0; }
.footer-meta strong { color: var(--on-dark); font-weight: 600; }
.footer-warning { margin: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark); }
@media (max-width: 900px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } .footer-disclosure { grid-template-columns: 1fr; } }

/* ---------- Cookie consent ---------- */
.cookie {
  position: fixed; z-index: 150; right: 16px; bottom: 16px; width: min(440px, calc(100% - 32px));
  background: var(--card); border: 1px solid var(--rule-strong); border-top: 3px solid var(--forest);
  border-radius: var(--radius-m); box-shadow: var(--shadow-lift); padding: 20px 20px 18px; font-size: var(--fs-sm);
}
.cookie[hidden] { display: none; }
.cookie h2 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 8px; }
.cookie p { color: var(--ink-2); margin-bottom: 14px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-actions .btn { min-height: 44px; padding: 0 12px; font-size: .875rem; }
.cookie-actions .cookie-config { grid-column: 1 / -1; }
.cookie-prefs { margin: 4px 0 14px; border-top: 1px solid var(--rule); }
.cookie-prefs[hidden] { display: none; }
.pref { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.pref label { font-weight: 700; color: var(--ink); cursor: pointer; }
.pref p { grid-column: 1 / 2; margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.switch { position: relative; width: 46px; height: 26px; grid-row: 1 / span 2; grid-column: 2; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--rule-strong); transition: background .2s var(--ease); }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--forest); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .6; }
.switch input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.cookie-link { display: inline-block; margin-top: 12px; font-size: var(--fs-xs); }
@media (max-width: 520px) { .cookie { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 14px 16px; font-size: .875rem; } .cookie p { margin-bottom: 10px; line-height: 1.5; } .cookie h2 { font-size: 1.15rem; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-xs); }
.stack > * + * { margin-top: 18px; }
.center { text-align: center; }
.wrap-anywhere { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .site-header, .cookie, .toc, .btn, .rg-panel::before { display: none !important; }
  body { background: #fff; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a { color: #000; }
}

/* ---------- Points & glossary ---------- */
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; list-style: none; margin: 0 0 36px; padding: 0; }
.points li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.points svg { width: 16px; height: 16px; flex: none; margin-top: 5px; color: var(--emerald); }
@media (max-width: 640px) { .points { grid-template-columns: 1fr; } }
.glossary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); margin: 0 0 1.4em; border-top: 1px solid var(--ink); }
.glossary dt, .glossary dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.glossary dt { font-weight: 700; color: var(--ink); padding-right: 18px; }
.glossary dd { color: var(--ink-2); }
@media (max-width: 560px) { .glossary { grid-template-columns: 1fr; } .glossary dt { border-bottom: 0; padding-bottom: 0; } }
.frame-main > .btn-row, .frame-main .mt-cta { margin-top: 22px; }

/* ---------- Prose resets for embedded components ---------- */
.prose .faq-item h3 { margin: 0; font-size: 1rem; }
.prose .tags { margin: 12px 0 0; }
.prose .tags li { padding-left: 10px; margin: 0; }
.prose .tags li::before, .prose .help-lines li::before, .prose .points li::before { display: none; }
.prose .help-lines li { padding: 14px 16px; margin: 0; }
.prose .help-line { background: var(--card); border-color: var(--rule-strong); }
.prose .help-line b { color: var(--forest); }
.prose .help-line span { color: var(--ink-2); }
.prose .help-lines { margin: 18px 0 24px; }
.cta-band .tags { margin-top: 10px; }
.calc-msg { margin: 0; padding: 0 20px 10px; }
.calc-msg:empty { display: none; }
