/* ==========================================================================
   MAMBA EDITORIAL COMPARISON SYSTEM — MambaCasino
   Static stylesheet. No frameworks.
   ========================================================================== */

/* ---------- 0. Self-hosted fonts (SIL Open Font License, see /assets/fonts) ---------- */
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-400.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-400.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-500.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-600.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-700.woff2") format("woff2"); }

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #F3F1E7;
  --paper-2: #FAF9F3;
  --paper-3: #E9E6D9;
  --graphite: #25292A;
  --charcoal: #161A19;
  --muted: #565C57;
  --rule: #D5D2C6;
  --rule-strong: #B9B5A6;
  --green: #12382C;
  --green-2: #1B4A3B;
  --emerald: #3D7A61;
  --emerald-ink: #2C5E49;
  --bronze: #9C773D;
  --bronze-ink: #7A5A28;
  --bronze-soft: #EFE6D3;
  --pending-ink: #6B5320;
  --danger: #8A2F25;

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

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.35vw, 1.33rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.8rem);
  --step-3: clamp(1.85rem, 1.55rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.6vw, 3.9rem);

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --maxw: 1240px;
  --measure: 68ch;
  --header-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--emerald-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--green); text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
table { border-collapse: collapse; width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--bronze-soft); color: var(--charcoal); }

:focus-visible {
  outline: 3px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 3px;
}

.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--charcoal); color: var(--paper-2); padding: 0.75rem 1rem;
  border-radius: var(--radius-s); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--paper-2); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { color: var(--charcoal); margin: 0 0 0.5em; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-family: var(--font-ui); font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
h4 { font-family: var(--font-ui); font-size: var(--step-0); font-weight: 600; line-height: 1.35; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--graphite); max-width: 60ch; }
.small, small { font-size: var(--step--1); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.kicker { font-family: var(--font-display); font-size: var(--step-1); color: var(--bronze-ink); margin: 0 0 0.6rem; }

.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul li, .prose ol li { padding-left: 0.2em; }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section--tint { background: var(--paper-2); }
.section--tight { padding: clamp(2rem, 1.5rem + 2vw, 3rem) 0; }
.section-head { display: grid; gap: 0.75rem; max-width: 760px; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 62ch; }
.split { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 4rem); }
.split > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--aside { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}
.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-2 { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stack > * + * { margin-top: 1rem; }
.sticky-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }

/* ---------- 5. Compliance strip + header ---------- */
.topstrip {
  background: var(--charcoal); color: #E6E3D7; font-size: var(--step--1);
}
.topstrip .container { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; justify-content: space-between; align-items: center; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.topstrip a { color: #F3EBD9; }
.topstrip__claims { margin: 0; font-weight: 500; letter-spacing: 0.01em; }
.topstrip__help { margin: 0; }
.age-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.2em; height: 1.55em; padding: 0 0.4em; margin-right: 0.35em;
  border: 1.5px solid currentColor; border-radius: 999px; font-weight: 700; font-size: 0.85em;
}

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--charcoal); text-decoration: none; }
.brand:hover { color: var(--charcoal); }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__word { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; letter-spacing: 0.02em; white-space: nowrap; }
.brand__word span { color: var(--emerald-ink); }
.brand__sub { display: block; font-family: var(--font-ui); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.02em; margin-top: 3px; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.lang-switch { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 999px; overflow: hidden; }
.lang-switch a, .lang-switch span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 40px; padding: 0 0.7rem; font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--graphite);
}
.lang-switch [aria-current="true"] { background: var(--green); color: var(--paper-2); }
.lang-switch a:hover { background: var(--paper-3); }

.primary-nav { border-top: 1px solid var(--rule); }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.1rem; }
.primary-nav li { margin: 0; flex: none; }
.primary-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.55rem;
  font-size: 0.89rem; font-weight: 500; color: var(--graphite); text-decoration: none; border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--green); border-bottom-color: var(--rule-strong); }
.primary-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--bronze); font-weight: 600; }
.primary-nav .nav-op a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rule-strong); margin-right: 0.45rem; }
.primary-nav .nav-sep { width: 1px; background: var(--rule); margin: 0.65rem 0.3rem; align-self: stretch; }

@media (max-width: 959.98px) {
  .site-header .header-cta { display: none; }
  .brand__sub { display: none; }
  .primary-nav ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-right: 2rem; }
  .primary-nav ul::-webkit-scrollbar { display: none; }
  .primary-nav .container { position: relative; padding-right: 0; }
  .primary-nav .container::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 2.5rem; pointer-events: none; background: linear-gradient(90deg, rgba(243, 241, 231, 0), var(--paper)); }
  .primary-nav a { white-space: nowrap; }
}

/* ---------- 6. Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 0.98rem; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--green); color: var(--paper-2); }
.btn--primary:hover { background: var(--charcoal); color: var(--paper-2); }
.btn--secondary { background: transparent; color: var(--green); border-color: var(--green); }
.btn--secondary:hover { background: var(--green); color: var(--paper-2); }
.btn--light { background: var(--paper-2); color: var(--green); }
.btn--light:hover { background: #fff; color: var(--charcoal); }
.btn--outline-light { background: transparent; color: var(--paper-2); border-color: rgba(250, 249, 243, 0.65); }
.btn--outline-light:hover { background: rgba(250, 249, 243, 0.1); color: #fff; border-color: #fff; }
.btn--external { background: var(--paper-2); color: var(--charcoal); border-color: var(--charcoal); }
.btn--external:hover { background: var(--charcoal); color: var(--paper-2); }
.btn--small { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn svg { width: 1em; height: 1em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.ext-note { display: block; font-size: var(--step--1); color: var(--muted); margin-top: 0.5rem; }

/* ---------- 7. Badges & status ---------- */
.labels { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.labels li { margin: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.55rem;
  border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.4;
  border: 1px solid var(--rule-strong); background: var(--paper-2); color: var(--graphite); text-transform: uppercase;
}
.badge--operator { border-color: var(--charcoal); color: var(--charcoal); }
.badge--external { border-style: dashed; }
.badge--affiliate { background: var(--bronze-soft); border-color: var(--bronze); color: var(--bronze-ink); }

.status {
  display: inline-flex; align-items: flex-start; gap: 0.45rem; font-size: 0.9rem; line-height: 1.35; font-weight: 500;
}
.status__icon { width: 1.15em; height: 1.15em; flex: none; margin-top: 0.08em; }
.status--verified { color: var(--emerald-ink); }
.status--pending { color: var(--pending-ink); }
.status--na { color: var(--muted); }
.status__text { color: var(--graphite); font-weight: 400; }
.status-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0.85rem 1rem; margin: 0 0 1.25rem; list-style: none; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--paper-2); font-size: 0.9rem; }
.status-legend li { margin: 0; display: flex; align-items: flex-start; gap: 0.45rem; }

.verified-stamp {
  display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: var(--emerald-ink); font-weight: 600;
}
.verified-stamp svg { width: 16px; height: 16px; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--paper-2);
  background-color: var(--green);
  background-image:
    linear-gradient(rgba(250, 249, 243, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 249, 243, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero .container { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
@media (min-width: 1020px) { .hero .container { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; } }
.hero h1 { color: var(--paper-2); max-width: 18ch; margin-bottom: 1.2rem; }
.hero .kicker { color: #D8BF8F; }
.hero__lede { font-size: var(--step-1); line-height: 1.5; max-width: 52ch; color: #EDEBE1; margin-bottom: 0.9rem; }
.hero__note { max-width: 56ch; color: #CFD8D1; font-size: 0.98rem; margin-bottom: 1.6rem; padding-left: 0.9rem; border-left: 2px solid #D8BF8F; }
.hero__claims { margin: 1.5rem 0 0; font-size: 0.92rem; font-weight: 500; color: #E8E4D6; }
.hero--page .container { grid-template-columns: 1fr; padding-top: clamp(2.2rem, 1.5rem + 3vw, 4rem); padding-bottom: clamp(2.2rem, 1.5rem + 3vw, 3.5rem); }
.hero--page h1 { max-width: 22ch; font-size: var(--step-4); }
.hero--page .hero__lede { max-width: 62ch; }

.breadcrumb { font-size: 0.85rem; margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; color: #CFD8D1; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; opacity: 0.6; }
.breadcrumb a { color: #F3EBD9; }

/* The comparison ledger (hero instrument) */
.ledger {
  margin: 0; position: relative; background: var(--paper-2); color: var(--graphite);
  border-radius: var(--radius-l); padding: 1.25rem 1.1rem 1rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}
.ledger__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.9rem; }
.ledger__title { font-family: var(--font-display); font-size: 1.35rem; color: var(--charcoal); margin: 0; }
.ledger__date { font-size: 0.8rem; color: var(--muted); margin: 0; }
.ledger__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.ledger__col { position: relative; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--paper-2); padding: 0.75rem 0.6rem 0.6rem; }
.ledger__name { font-weight: 700; font-size: 0.98rem; color: var(--charcoal); margin: 0 0 0.15rem; }
.ledger__domain { font-size: 0.72rem; color: var(--muted); margin: 0; word-break: break-all; min-height: 2.2em; }
.ledger__rows { list-style: none; margin: 0; padding: 0; }
.ledger__rows li { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.45rem 0; border-top: 1px dashed var(--rule); margin: 0; }
.ledger__rows li:first-child { border-top: 0; }
.ledger__k { font-size: 0.7rem; color: var(--muted); }
.ledger__v { display: flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; font-weight: 600; line-height: 1.25; }
.ledger__v svg { width: 14px; height: 14px; flex: none; }
.ledger__v--verified { color: var(--emerald-ink); }
.ledger__v--pending { color: var(--pending-ink); }
.ledger__lane { position: relative; height: 38px; margin: 0.15rem calc(-0.6rem - 1px) 0.1rem; }
.ledger__lane svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ledger__lane path { fill: none; stroke: var(--bronze); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ledger__node { position: absolute; left: 50%; width: 13px; height: 13px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--paper-2); border: 2.5px solid var(--bronze); }
.ledger__node--up { top: 17%; }
.ledger__node--down { top: 83%; }
.ledger__node--verified { background: var(--emerald); border-color: var(--emerald); }
.ledger__foot { margin: 0.85rem 0 0; font-size: 0.78rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .ledger__lane path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 0.6s linear forwards; }
  .ledger__col:nth-child(1) .ledger__lane path { animation-delay: 0.35s; }
  .ledger__col:nth-child(2) .ledger__lane path { animation-delay: 0.95s; }
  .ledger__col:nth-child(3) .ledger__lane path { animation-delay: 1.55s; }
  .ledger__node { opacity: 0; animation: node-in 0.25s ease-out forwards; }
  .ledger__col:nth-child(1) .ledger__node { animation-delay: 0.6s; }
  .ledger__col:nth-child(2) .ledger__node { animation-delay: 1.2s; }
  .ledger__col:nth-child(3) .ledger__node { animation-delay: 1.8s; }
  @keyframes draw-line { to { stroke-dashoffset: 0; } }
  @keyframes node-in { to { opacity: 1; } }
}
@media (max-width: 420px) {
  .ledger { padding: 1rem 0.7rem 0.8rem; }
  .ledger__col { padding: 0.6rem 0.4rem 0.5rem; }
  .ledger__name { font-size: 0.88rem; }
  .ledger__v { font-size: 0.74rem; }
}

/* Serpentine divider */
.mamba-rule { display: block; width: 100%; height: 28px; color: var(--bronze); opacity: 0.7; }
.mamba-rule path { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* ---------- 9. Disclosure strip & callouts ---------- */
.disclosure-strip { background: var(--bronze-soft); border-bottom: 1px solid #DCCDAE; color: #3E3420; font-size: 0.92rem; }
.disclosure-strip .container { display: grid; gap: 0.35rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
@media (min-width: 900px) { .disclosure-strip .container { grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; } }
.disclosure-strip p { margin: 0; }
.disclosure-strip__label { font-weight: 700; color: var(--bronze-ink); white-space: nowrap; }
.disclosure-strip a { color: #4A3B17; }

.callout { border: 1px solid var(--rule); border-left: 4px solid var(--emerald); border-radius: var(--radius-m); background: var(--paper-2); padding: 1rem 1.15rem; }
.callout > :last-child { margin-bottom: 0; }
.callout h3, .callout h4 { margin-bottom: 0.35rem; }
.callout--warning { border-left-color: var(--bronze); background: #FBF6EA; }
.callout--operator { border-left-color: var(--charcoal); }
.callout--strong { font-weight: 600; }
.callout--plain { border-left-width: 1px; }

.roles { display: grid; gap: 0; border: 1px solid var(--rule); border-radius: var(--radius-l); overflow: hidden; background: var(--paper-2); }
@media (min-width: 820px) { .roles { grid-template-columns: repeat(3, 1fr); } }
.roles__item { padding: 1.4rem 1.3rem; }
.roles__item + .roles__item { border-top: 1px solid var(--rule); }
@media (min-width: 820px) { .roles__item + .roles__item { border-top: 0; border-left: 1px solid var(--rule); } }
.roles__q { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.35rem; }
.roles__a { font-family: var(--font-display); font-size: 1.45rem; color: var(--charcoal); margin: 0 0 0.4rem; line-height: 1.15; }
.roles__item p:last-child { margin: 0; font-size: 0.95rem; }

/* ---------- 10. Operator cards ---------- */
.op-cards { display: grid; gap: 1.25rem; }
@media (min-width: 980px) { .op-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.op-card {
  display: flex; flex-direction: column; background: var(--paper-2);
  border: 1px solid var(--rule); border-radius: var(--radius-l); overflow: hidden;
}
.op-card__head { padding: 1.2rem 1.25rem 1rem; border-bottom: 1px solid var(--rule); display: grid; gap: 0.7rem; }
.op-card__name { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; margin: 0; color: var(--charcoal); }
.op-card__domain { font-size: 0.85rem; color: var(--muted); margin: 0; }
.op-card__domain strong { color: var(--graphite); font-weight: 600; }
.op-card__body { padding: 0.4rem 1.25rem 1rem; flex: 1; }
.op-facts { margin: 0; }
.op-facts > div { display: grid; grid-template-columns: minmax(7.5rem, 38%) 1fr; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--rule); }
.op-facts > div:last-child { border-bottom: 0; }
.op-facts dt { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.op-facts dd { margin: 0; font-size: 0.92rem; }
.op-card__bonus { background: var(--paper); border-radius: var(--radius-m); padding: 0.8rem 0.9rem; margin: 0.6rem 0 0.2rem; font-size: 0.9rem; }
.op-card__bonus p { margin: 0 0 0.35rem; }
.op-card__bonus p:last-child { margin: 0; }
.op-card__foot { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--rule); display: grid; gap: 0.75rem; background: var(--paper-2); }
.op-card__foot .btn-row { gap: 0.5rem; }
.op-card__coverage { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--muted); }
.meter { flex: 1; height: 6px; border-radius: 999px; background: var(--paper-3); overflow: hidden; max-width: 160px; }
.meter span { display: block; height: 100%; background: var(--emerald); border-radius: inherit; }

/* ---------- 11. Matrices ---------- */
.matrix-wrap { border: 1px solid var(--rule); border-radius: var(--radius-l); background: var(--paper-2); overflow: hidden; }
.matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix { min-width: 760px; font-size: 0.92rem; }
.matrix caption { text-align: left; padding: 1rem 1.15rem 0.25rem; font-size: 0.9rem; color: var(--muted); caption-side: top; }
.matrix th, .matrix td { text-align: left; vertical-align: top; padding: 0.85rem 1rem; border-bottom: 1px solid var(--rule); }
.matrix thead th { background: var(--paper); font-size: 0.85rem; font-weight: 600; color: var(--charcoal); position: sticky; top: 0; }
.matrix thead .op-col { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; }
.matrix thead .op-col small { display: block; font-family: var(--font-ui); font-size: 0.75rem; color: var(--muted); }
.matrix tbody th { font-weight: 600; color: var(--charcoal); width: 22%; background: var(--paper-2); }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix .group-row th { background: var(--paper-3); font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.matrix td .detail { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.25rem; }
.matrix .span-note { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(156, 119, 61, 0.07) 8px 16px); }
.jump-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; margin: 0 0 1rem; font-size: 0.9rem; }
.jump-links span { color: var(--muted); }
.jump-links ul { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; list-style: none; margin: 0; padding: 0; }
.jump-links li { margin: 0; }
.jump-links a { display: inline-flex; align-items: center; min-height: 36px; }
@media (max-width: 899.98px) { .jump-links { display: none; } }
.group-row { scroll-margin-top: 1rem; }

/* Bonus matrix → cards on small screens */
@media (max-width: 899.98px) {
  .matrix--cards { min-width: 0; }
  .matrix--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .matrix--cards, .matrix--cards tbody, .matrix--cards tr, .matrix--cards th, .matrix--cards td { display: block; width: 100%; }
  .matrix--cards caption { display: block; }
  .matrix--cards tbody tr { border-bottom: 8px solid var(--paper); padding: 0.4rem 0; }
  .matrix--cards tbody tr:last-child { border-bottom: 0; }
  .matrix--cards tbody th { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; border-bottom: 1px solid var(--rule); width: 100%; }
  .matrix--cards td { display: grid; grid-template-columns: 42% 1fr; gap: 0.75rem; border-bottom: 1px dashed var(--rule); padding: 0.65rem 1rem; }
  .matrix--cards td::before { content: attr(data-label); font-size: 0.82rem; font-weight: 600; color: var(--muted); grid-row: span 2; }
  .matrix--cards td > .detail { grid-column: 2; margin-top: 0; }
  .matrix--cards td.span-note { grid-template-columns: 1fr; }
  .matrix--cards td.span-note::before { content: none; }
  .matrix-scroll--cards { overflow: visible; }
}

/* Large comparison matrix: desktop table vs mobile accordion */
.matrix-desktop { display: none; }
.matrix-mobile { display: block; }
@media (min-width: 900px) {
  .matrix-desktop { display: block; }
  .matrix-mobile { display: none; }
}
.mcard { border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--paper-2); margin-bottom: 0.75rem; }
.mcard summary {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; min-height: 56px; padding: 0.75rem 1rem;
  cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 1.35rem; color: var(--charcoal);
}
.mcard summary::-webkit-details-marker { display: none; }
.mcard summary::after { content: "+"; font-family: var(--font-ui); font-size: 1.4rem; color: var(--emerald-ink); }
.mcard[open] summary::after { content: "–"; }
.mcard summary small { font-family: var(--font-ui); font-size: 0.78rem; color: var(--muted); display: block; }
.mcard dl { margin: 0; padding: 0 1rem 0.75rem; }
.mcard dl > div { display: grid; grid-template-columns: 40% 1fr; gap: 0.75rem; padding: 0.6rem 0; border-top: 1px dashed var(--rule); font-size: 0.9rem; }
.mcard dt { color: var(--muted); font-weight: 600; font-size: 0.84rem; }
.mcard dd { margin: 0; }
.mcard .mcard__group { grid-template-columns: 1fr; font-family: var(--font-display); font-size: 1.05rem; color: var(--charcoal); padding-top: 0.9rem; }
.mcard > .btn-row { padding: 0 1rem 1rem; }

/* ---------- 12. Steps, cards, misc ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; margin: 0; padding: 1.3rem 1.25rem 1.25rem; border-top: 2px solid var(--charcoal); background: var(--paper-2); border-radius: 0 0 var(--radius-m) var(--radius-m); counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--bronze); margin-bottom: 0.6rem; }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; font-size: 0.95rem; }
.steps--vertical { grid-template-columns: 1fr !important; }

.panel { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: clamp(1.2rem, 1rem + 1vw, 1.75rem); }
.panel > :last-child { margin-bottom: 0; }
.panel h3 { margin-bottom: 0.5rem; }
.panel--dark { background: var(--charcoal); color: #E6E3D7; border-color: var(--charcoal); }
.panel--dark h2, .panel--dark h3 { color: var(--paper-2); }
.panel--dark a { color: #E7D2A7; }

.jurisdiction { display: grid; gap: 1.25rem; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
@media (min-width: 900px) { .jurisdiction { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2.5rem; } }
.jurisdiction__map { display: grid; align-content: start; gap: 0.75rem; }
.jurisdiction__map svg { width: 100%; max-width: 280px; height: auto; }
.jur-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; font-size: 0.92rem; }
.jur-list li { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; }
.jur-swatch { width: 14px; height: 14px; border-radius: 3px; flex: none; margin-top: 0.3em; border: 1px solid var(--charcoal); }
.jur-swatch--pba { background: var(--emerald); }
.jur-swatch--caba { background: var(--paper-2); background-image: repeating-linear-gradient(45deg, var(--charcoal) 0 2px, transparent 2px 5px); }
.jur-swatch--other { background: var(--paper-3); }

.fact-list { margin: 0; display: grid; gap: 0; }
.fact-list > div { display: grid; grid-template-columns: minmax(8rem, 34%) 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.fact-list > div:first-child { border-top: 1px solid var(--rule); }
.fact-list dt { font-weight: 600; color: var(--charcoal); font-size: 0.93rem; }
.fact-list dd { margin: 0; }
@media (max-width: 560px) { .fact-list > div { grid-template-columns: 1fr; gap: 0.25rem; } }

.data-table { font-size: 0.93rem; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius-m); overflow: hidden; }
.data-table th, .data-table td { padding: 0.7rem 0.85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.data-table thead th { background: var(--paper-3); font-weight: 600; }
.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

.calc { border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--paper); padding: 1rem 1.15rem; font-variant-numeric: tabular-nums; }
.calc ol { margin-bottom: 0; }

.complexity { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.complexity__bars { display: inline-flex; gap: 3px; }
.complexity__bars i { width: 7px; height: 14px; border-radius: 2px; border: 1px solid var(--charcoal); background: transparent; display: block; }
.complexity__bars i.on { background: var(--charcoal); }

.score-table td:last-child, .score-table th:last-child { text-align: right; }

/* RG panel */
.rg-panel { display: grid; gap: 1.5rem; background: var(--charcoal); color: #E6E3D7; border-radius: var(--radius-l); padding: clamp(1.4rem, 1rem + 2vw, 2.5rem); }
@media (min-width: 900px) { .rg-panel { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; } }
.rg-panel h2 { color: var(--paper-2); font-size: var(--step-3); }
.rg-panel p { color: #D9D6CA; }
.rg-panel a { color: #E7D2A7; }
.rg-panel ul { margin: 0; padding-left: 1.1em; }
.rg-line { border: 1px solid rgba(231, 210, 167, 0.5); border-radius: var(--radius-m); padding: 1.1rem 1.2rem; }
.rg-line__num { font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); color: var(--paper-2); display: block; line-height: 1.1; text-decoration: none; }
.rg-line__num:hover { color: #fff; }
.rg-line p { margin: 0.35rem 0 0; font-size: 0.9rem; }

/* ---------- 13. FAQ accordion ---------- */
.faq { border-top: 1px solid var(--rule); max-width: 880px; }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 60px; padding: 1rem 0.25rem;
  cursor: pointer; list-style: none; color: var(--charcoal);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q h3 { margin: 0; font-family: var(--font-ui); font-size: var(--step-1); font-weight: 600; line-height: 1.35; color: inherit; }
.faq__q:hover { color: var(--green); }
.faq__icon { width: 28px; height: 28px; flex: none; border: 1px solid var(--rule-strong); border-radius: 50%; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__panel { padding: 0 0.25rem 1.25rem; max-width: 72ch; }
.faq__panel > :last-child { margin-bottom: 0; }

/* ---------- 15. Footer ---------- */
.site-footer { background: var(--charcoal); color: #CFCBBE; font-size: 0.92rem; margin-top: 0; }
.site-footer a { color: #EDE3CC; }
.site-footer a:hover { color: #fff; }
.footer-disclosure { border-bottom: 1px solid #2E3432; }
.footer-disclosure .container { display: grid; gap: 1rem; padding-top: 2.25rem; padding-bottom: 2rem; }
@media (min-width: 900px) { .footer-disclosure .container { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.footer-disclosure p { margin: 0 0 0.75rem; }
.footer-disclosure strong { color: var(--paper-2); }
.footer-statement { border: 1px solid #3C4441; border-radius: var(--radius-m); padding: 0.9rem 1rem; color: #E6E3D7; }
.footer-main .container { display: grid; gap: 2rem; padding-top: 2.25rem; padding-bottom: 2.25rem; }
@media (min-width: 760px) { .footer-main .container { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-main h2 { font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600; color: var(--paper-2); margin-bottom: 0.75rem; }
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main li { margin: 0; }
.footer-main li a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-brand p { margin: 0.75rem 0 0; }
.footer-brand .brand { color: var(--paper-2); }
.footer-brand .brand__word span { color: #9FC7B3; }
.footer-bottom { border-top: 1px solid #2E3432; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding-top: 1.1rem; padding-bottom: 1.4rem; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }

/* ---------- 17. 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-items: center; }
.notfound svg { width: min(100%, 420px); height: auto; color: var(--bronze); }

/* ---------- 18. Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.2rem; font-size: 0.93rem; }
.toc li { margin: 0; }
.toc a { display: inline-block; padding: 0.3rem 0; }

@media print {
  .topstrip, .site-header, .jump-links { display: none !important; }
  .hero { background: none; color: #000; }
  .hero h1 { color: #000; }
  body { background: #fff; }
}

.hero .badge { background: var(--paper-2); }
.rg-panel--stack { grid-template-columns: 1fr !important; }
.aside-title { font-family: var(--font-ui); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.6rem; }
.source-line { display: block; margin-top: 0.3rem; font-size: var(--step--1); color: var(--muted); }
.labels--stack { display: grid; gap: 0.5rem; }

/* Compact header + strip on small screens */
.topstrip__short { display: none; }
@media (max-width: 600px) {
  .topstrip__long { display: none; }
  .topstrip__short { display: inline; }
  .topstrip .container { gap: 0.15rem 1rem; }
}
@media (max-width: 440px) {
  .brand__mark { width: 34px; height: 34px; }
  .brand__word { font-size: 1.12rem; }
  .brand { gap: 0.45rem; }
  .lang-switch a, .lang-switch span { min-width: 40px; padding: 0 0.45rem; }
  .header-actions { gap: 0.4rem; }
}
@media (min-width: 900px) {
  .matrix--bonus { min-width: 1080px; font-size: 0.88rem; }
  .matrix--bonus th, .matrix--bonus td { padding: 0.8rem 0.6rem; }
  .matrix--bonus tbody th { width: auto; }
}
.fact-list .status, .op-facts .status { font-size: 0.95rem; }
