:root {
  --bg: #0f1410;
  --bg2: #171d18;
  --ink: #e8efe6;
  /* ~5.2:1 on --bg: secondary copy stays ≥4.5:1 */
  --muted: #b5c4af;
  --line: #2a332b;
  --accent: #c4a35a;
  --accent2: #7d9b76;
  --rank-ink: #1a1408;
  --card: #1a221c;
  --prose-body: #d3ddd0;
  --max: 44rem;
  --wide: 58rem;
  --touch: 44px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site {
  margin: 0;
  font-family: Figtree, system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, #243028 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #2a2418 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #e0c57a; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus-visible {
  left: 1rem;
  top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  min-width: var(--touch);
  background: var(--accent);
  color: #111;
  padding: .65rem 1rem;
  z-index: 9;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
}

.site-chrome {
  /* Lock chrome to marketing brand tokens (survives /app theme overrides). */
  --bg: #0f1410;
  --bg2: #171d18;
  --ink: #e8efe6;
  --muted: #b5c4af;
  --line: #2a332b;
  --accent: #c4a35a;
  color: var(--ink);
}
.site-bar.site-chrome {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg2) 85%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header {
  display: contents;
}
.site-bar > .brand { order: 1; }
.site-bar > .site-nav {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
}
.site-bar > .header-actions {
  order: 3;
  margin-left: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-family: Newsreader, Georgia, serif;
  font-weight: 650;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-nav {
  --bg2: #171d18;
  --ink: #e8efe6;
  --muted: #b5c4af;
  --line: #2a332b;
  --accent: #c4a35a;
  display: flex; flex-wrap: wrap; gap: .35rem .55rem;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  min-height: var(--touch);
  padding: .55rem .65rem;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  box-sizing: border-box;
}
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--ink); }
.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.site-nav__sheet,
.site-nav__links { display: contents; }
.site-nav__sheet-title { display: none; }

.site-mobile-dock,
.site-nav-backdrop { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: auto;
}

.nav-countries-quick,
.nav-menu-toggle { display: none; }

.nav-countries-quick .nav-countries-short { display: none; }

.nav-countries-quick {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: var(--touch);
  padding: .45rem .55rem;
  display: none;
  align-items: center;
  border-radius: 4px;
  box-sizing: border-box;
  white-space: nowrap;
}
.nav-countries-quick:hover { color: var(--accent); }
.nav-countries-quick[aria-current="page"] { color: var(--accent); }
.nav-countries-quick:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-menu-toggle {
  padding: 0;
  color: var(--muted);
}
.nav-menu-toggle[aria-expanded="true"] {
  color: var(--ink);
  border-color: var(--accent);
}

.site-mobile-dock {
  --bg: #0f1410;
  --bg2: #171d18;
  --ink: #e8efe6;
  --muted: #b5c4af;
  --line: #2a332b;
  --accent: #c4a35a;
  --rank-ink: #1a1408;
}
.site-dock__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  min-height: var(--touch);
  padding: .35rem .25rem .45rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-sizing: border-box;
}
.site-dock__item:hover,
.site-dock__item.is-active,
.site-dock__item[aria-current="page"] { color: var(--ink); }
.site-dock__item--rank.is-active,
.site-dock__item--rank[aria-current="page"] { color: var(--accent); }
.site-dock__item--menu[aria-expanded="true"] { color: var(--accent); }
.site-dock__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.site-dock__label {
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-dock__item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 6px;
}

.nav-rank {
  --rank-ink: #1a1408;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: var(--touch);
  min-width: var(--touch);
  padding: .65rem 1rem .65rem .85rem;
  border-radius: 7px;
  background: var(--accent);
  color: var(--rank-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  box-shadow: 0 1px 0 color-mix(in oklab, #fff 22%, transparent) inset;
  transition: background .18s ease, transform .18s ease, color .18s ease;
}
.nav-rank:hover {
  color: var(--rank-ink);
  background: #d4b36a;
  transform: translateY(-1px);
}
.nav-rank:focus-visible {
  outline: 2px solid #e8efe6;
  outline-offset: 3px;
}
.nav-rank.is-active {
  background: #e0c57a;
}
.nav-rank-signal {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #2f5d3a;
  animation: rank-signal 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
.nav-rank-label { line-height: 1; }
.nav-rank-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: .85rem;
  margin-left: .1rem;
}
.nav-rank-bars i {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: var(--rank-ink);
  opacity: .78;
  transform-origin: bottom center;
  animation: rank-bar 1.6s ease-in-out infinite;
}
.nav-rank-bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.nav-rank-bars i:nth-child(2) { height: 70%; animation-delay: .2s; }
.nav-rank-bars i:nth-child(3) { height: 100%; animation-delay: .4s; }

@keyframes rank-signal {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
@keyframes rank-bar {
  0%, 100% { transform: scaleY(.55); opacity: .55; }
  50% { transform: scaleY(1); opacity: .9; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-rank-signal,
  .nav-rank-bars i { animation: none; }
  .nav-rank:hover { transform: none; }
}

.header-tool-short { display: none; }
.header-tool {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: var(--touch);
  min-height: var(--touch);
  padding: .55rem .85rem;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.header-tool:hover {
  color: var(--ink);
  border-color: var(--accent);
}
.header-tool:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.theme-toggle,
.lang-toggle {
  background: color-mix(in oklab, var(--bg2) 70%, transparent);
  padding: 0;
  text-decoration: none;
  color: var(--muted);
}
.theme-toggle:hover,
.lang-toggle:hover { color: var(--ink); }
.theme-icon { display: none; line-height: 0; }
.theme-icon--to-light { display: inline-flex; }
html[data-theme="light"] .theme-icon--to-light { display: none; }
html[data-theme="light"] .theme-icon--to-dark { display: inline-flex; }
.chrome-icon { display: block; }
.flag-icon {
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 22%, transparent);
}
.lang-toggle:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-main { max-width: var(--wide); margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.hero { max-width: 40rem; padding: 2rem 0 2.5rem; }

/* Hub: night jurisdictional ledger — brand + thesis + depth stack + CTA */
.hero-ledger {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(14rem, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: none;
  min-height: min(72vh, 36rem);
  margin: 0 -1.25rem;
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-ledger::before {
  content: "";
  position: absolute;
  inset: -10% -5% auto -5%;
  height: 120%;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 78% 42%, color-mix(in oklab, #c4a35a 14%, transparent) 0%, transparent 62%),
    radial-gradient(ellipse 55% 50% at 12% 18%, #243028 0%, transparent 58%),
    radial-gradient(ellipse 80% 60% at 50% 100%, #2a2418 0%, transparent 55%);
  pointer-events: none;
}
.hero-ledger__copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}
.hero-ledger h1.brand-hero {
  font-family: Newsreader, Georgia, serif;
  font-weight: 650;
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 .7rem;
  text-wrap: balance;
  color: var(--ink);
}
.hero-slogan {
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 .85rem;
  color: color-mix(in srgb, var(--ink) 88%, var(--accent));
  text-wrap: balance;
  max-width: 28rem;
}
.hero-support {
  margin: 0 0 1.65rem;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--muted);
}
.hero-support em { color: color-mix(in oklab, var(--ink) 82%, var(--accent)); font-style: italic; }
.hero-ledger .cta-row {
  margin: 0;
}
.hero-ledger .btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: var(--touch);
  padding: .85rem 1.35rem;
  border-radius: 6px;
  font-size: 1rem;
  box-shadow:
    0 1px 0 color-mix(in oklab, var(--rank-ink) 18%, transparent),
    0 10px 28px color-mix(in oklab, #000 28%, transparent);
}
.hero-ledger .btn::after {
  content: "→";
  font-weight: 700;
  transition: transform .18s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-ledger .btn:hover::after {
  transform: translateX(3px);
}

/* Depth ledger sheets — diagram only; never solid gold CTA fill */
.stack-visual {
  position: relative;
  z-index: 0;
  width: min(100%, 22rem);
  height: clamp(15rem, 36vw, 19rem);
  margin: 0 auto;
  pointer-events: none;
  user-select: none;
  perspective: 900px;
}
.stack-blotter {
  position: absolute;
  inset: 12% 4% 4% 8%;
  border-radius: 2px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 22px,
      color-mix(in oklab, var(--accent) 7%, transparent) 22px 23px
    ),
    linear-gradient(160deg, color-mix(in oklab, var(--card) 55%, transparent), transparent 70%);
  border: 1px solid color-mix(in oklab, var(--line) 80%, transparent);
  transform: rotate(-2deg);
  opacity: .55;
}
.stack-depth {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: stack-breathe 7s ease-in-out 1.2s infinite;
}
.stack-sheet {
  position: absolute;
  left: 8%;
  right: 6%;
  height: 5.1rem;
  padding: .85rem 1rem .75rem 1.15rem;
  border-radius: 3px;
  border: 1px solid color-mix(in oklab, var(--accent) 34%, var(--line));
  background:
    linear-gradient(115deg, color-mix(in oklab, var(--accent) 8%, transparent), transparent 42%),
    color-mix(in oklab, var(--card) 82%, #0a0d0a);
  box-shadow:
    0 14px 28px color-mix(in oklab, #000 42%, transparent),
    inset 0 1px 0 color-mix(in oklab, var(--ink) 8%, transparent);
  transform-origin: 50% 100%;
  transform:
    translateY(calc(var(--i) * 2.55rem))
    translateZ(calc((2 - var(--i)) * 28px))
    rotateX(58deg)
    rotateZ(-8deg)
    scale(calc(1 - var(--i) * 0.04));
  opacity: 0;
  animation: stack-settle .85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 110ms + 60ms);
}
.stack-sheet__edge {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--accent) 75%, transparent),
    color-mix(in oklab, var(--accent) 25%, transparent)
  );
  border-radius: 3px 0 0 3px;
}
.stack-sheet__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d8e2d4;
}
.stack-sheet__note {
  display: block;
  margin-top: .2rem;
  font-family: Newsreader, Georgia, serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: color-mix(in oklab, var(--ink) 90%, var(--accent));
}
.stack-sheet__lines {
  display: block;
  margin-top: .55rem;
  height: 1.1rem;
  background:
    repeating-linear-gradient(
      90deg,
      color-mix(in oklab, var(--line) 90%, transparent) 0 28%,
      transparent 28% 34%
    );
  opacity: .55;
  mask-image: linear-gradient(90deg, #000 0%, transparent 92%);
}
.stack-sheet--life { z-index: 3; }
.stack-sheet--business { z-index: 2; }
.stack-sheet--capital { z-index: 1; }
@keyframes stack-settle {
  from {
    opacity: 0;
    filter: blur(4px);
    transform:
      translateY(calc(var(--i) * 2.55rem + 1.4rem))
      translateZ(calc((2 - var(--i)) * 28px))
      rotateX(58deg)
      rotateZ(-8deg)
      scale(calc(1 - var(--i) * 0.04));
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform:
      translateY(calc(var(--i) * 2.55rem))
      translateZ(calc((2 - var(--i)) * 28px))
      rotateX(58deg)
      rotateZ(-8deg)
      scale(calc(1 - var(--i) * 0.04));
  }
}
@keyframes stack-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@media (max-width: 820px) {
  .hero-ledger {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1.75rem;
    padding-top: 1.75rem;
  }
  .stack-visual {
    width: min(100%, 20rem);
    height: 15.5rem;
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ledger .btn::after { transition: none; }
  .stack-sheet {
    animation: none;
    opacity: 1;
    filter: none;
  }
  .stack-depth { animation: none; }
}
.plain-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
}
.plain-list li {
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}
.plain-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  text-decoration: none;
  color: var(--ink);
  box-sizing: border-box;
}
.plain-list a:hover { color: var(--accent); }
.plain-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.plain-list--cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0 .75rem;
}
.plain-list--cols li { border-bottom: none; padding: .15rem 0; }
.hub-list .hub-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding: .85rem 0;
}
.hub-row-text {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 12rem;
  flex: 1 1 14rem;
}
.hub-row-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.hub-row-meta { font-size: 0.85rem; }
.hub-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
}
.btn-compact {
  padding: .65rem 1.15rem;
  font-size: 0.85rem;
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  box-sizing: border-box;
}
/* Hub list CTAs — primary gold fill vs quiet outline secondary.
   Beat `.prose a { padding }` so compact CTAs keep real horizontal room. */
.prose .hub-row-actions .btn,
.hub-row-actions .btn {
  padding: .65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background .16s ease,
    border-color .16s ease,
    color .16s ease,
    box-shadow .16s ease,
    transform .16s cubic-bezier(0.16, 1, 0.3, 1);
}
.hub-row-actions .btn:not(.btn-ghost) {
  background: var(--accent);
  color: var(--rank-ink);
  box-shadow: 0 1px 0 color-mix(in oklab, var(--rank-ink) 16%, transparent);
}
.hub-row-actions .btn:not(.btn-ghost)::after {
  content: "→";
  font-weight: 700;
  transition: transform .16s cubic-bezier(0.16, 1, 0.3, 1);
}
.hub-row-actions .btn:not(.btn-ghost):hover {
  background: #d4b36a;
  color: var(--rank-ink);
  filter: none;
}
.hub-row-actions .btn:not(.btn-ghost):hover::after {
  transform: translateX(2px);
}
.hub-row-actions .btn-ghost,
.prose .hub-row-actions .btn-ghost {
  background: transparent;
  color: var(--ink);
  /* Beat `.prose .hub-row-actions .btn { border: transparent }` */
  border: 1px solid color-mix(in oklab, var(--accent) 70%, var(--ink) 15%);
  box-shadow: none;
}
.hub-row-actions .btn-ghost:hover,
.prose .hub-row-actions .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
}
.hub-row-actions .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.country-actions { margin: 1rem 0 1.75rem; }
.country-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: var(--touch);
  padding: .7rem 1.2rem;
}
@media (max-width: 640px) {
  .hub-row-actions { width: 100%; }
  .hub-row-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-row-actions .btn,
  .hub-row-actions .btn:not(.btn-ghost)::after { transition: none; }
}

/* ── Country residency paths ─────────────────────────────────────────────── */
.residency-page .residency-disclaimer {
  margin: 0 0 1.25rem;
  padding: .75rem .9rem;
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line));
  border-radius: 4px;
  background: color-mix(in oklab, var(--bg2) 70%, transparent);
  color: var(--muted);
  font-size: 0.92rem;
}
.residency-taxonomy {
  margin: 1.5rem 0 1.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in oklab, var(--bg2) 55%, transparent);
}
.residency-taxonomy__title {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.residency-taxonomy__list {
  margin: .75rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.residency-taxonomy__list li { margin: 0 0 .45rem; }
.residency-taxonomy__list strong { color: var(--ink); }
.residency-category { margin: 1.75rem 0 0; }
.residency-category__title {
  margin: 0 0 .75rem;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.residency-paths {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 1rem;
}
.residency-path {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1rem 1.1rem 1.15rem;
  background: color-mix(in oklab, var(--card) 55%, transparent);
}
.residency-path__head {
  display: grid;
  gap: .55rem;
  margin-bottom: .75rem;
}
.residency-path__title {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.residency-path__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.residency-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: .15rem .55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--muted);
}
.residency-chip--cat { color: var(--ink); background: color-mix(in oklab, var(--bg2) 80%, transparent); }
.residency-chip--cat-rbi,
.residency-chip--cat-cbi { border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); }
.residency-chip--cat-cbi {
  color: #1a1408;
  background: color-mix(in oklab, var(--accent) 75%, transparent);
}
.residency-chip--outcome {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 0.8rem;
  color: color-mix(in oklab, var(--ink) 80%, var(--accent2));
  border-color: color-mix(in oklab, var(--accent2) 40%, var(--line));
}
.residency-chip--temporary {
  color: color-mix(in oklab, var(--ink) 75%, var(--accent2));
  border-color: color-mix(in oklab, var(--accent2) 45%, var(--line));
}
.residency-chip--permanent {
  color: #1a1408;
  background: color-mix(in oklab, var(--accent) 88%, transparent);
  border-color: var(--accent);
}
.residency-chip--transitional { color: var(--muted); }
.residency-status-note {
  margin: 0 0 .75rem;
  padding: .55rem .7rem;
  border-radius: 4px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line));
  color: color-mix(in oklab, var(--ink) 85%, var(--accent));
  font-size: 0.88rem;
}
.residency-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: .65rem .9rem;
  margin: 0 0 .85rem;
}
.residency-meta > div { margin: 0; }
.residency-meta dt {
  margin: 0 0 .15rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.residency-meta dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.residency-note,
.residency-includes-label {
  margin: 0 0 .35rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.residency-path h4 {
  margin: 1rem 0 .45rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.residency-steps {
  margin: 0 0 .75rem;
  padding-left: 1.2rem;
}
.residency-steps li {
  margin: 0 0 .45rem;
  padding-left: .15rem;
}
.residency-sources { margin: .5rem 0 0; }

.hero h1, .prose h1 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 650;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: .4rem 0 1rem;
}
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 0.75rem; color: var(--accent2); margin: 0; }

.breadcrumbs {
  list-style: none;
  margin: 0 0 .85rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.breadcrumbs li:not(:last-child)::after {
  content: "›";
  color: color-mix(in oklab, var(--muted) 70%, var(--line));
  margin-left: .15rem;
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  min-height: var(--touch);
  padding: .35rem .2rem;
  display: inline-flex;
  align-items: center;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--rank-ink);
  text-decoration: none;
  font-weight: 700;
  padding: .7rem 1.2rem;
  border-radius: 6px;
  border: 1px solid transparent;
  box-sizing: border-box;
  min-height: var(--touch);
}
.btn:hover { color: var(--rank-ink); background: #d4b36a; filter: none; }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--line));
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
}

.cite-box {
  margin: 1.5rem 0 2rem;
  padding: 1.1rem 1.25rem;
  background: color-mix(in srgb, var(--accent) 7%, var(--bg, #f7f4ec));
  border-radius: 8px;
}
.cite-box h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.prose { max-width: var(--max); }
.prose.guide, .prose.country {
  max-width: min(var(--wide), 72ch);
}
.prose h2 {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.55rem;
  margin-top: 2.2rem;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
}
.prose p, .prose li {
  color: color-mix(in srgb, var(--ink) 88%, var(--muted));
  max-width: 70ch;
}
.prose li p { max-width: none; }
.prose .fine, .fine { color: var(--muted); font-size: .9rem; }
.ranking-cite {
  margin: 1.25rem 0 1.75rem;
  padding: .9rem 0 0;
  border-top: 1px solid var(--line, color-mix(in srgb, var(--ink) 12%, transparent));
  max-width: 70ch;
}
.ranking-cite p { margin: 0 0 .45rem; }
.guide-faq { margin-top: 2rem; }
.guide-index li,
.plain-list.guide-index li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
  padding: .7rem 0;
}
.guide-index .list-desc,
.list-desc {
  display: block;
  font-size: .92rem;
  line-height: 1.45;
  max-width: 62ch;
}
.site-footer a,
.fine a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: .25rem .2rem;
  box-sizing: border-box;
}
.prose a:not(.btn) {
  padding: .15rem 0;
  text-underline-offset: 3px;
}
.prose a:focus-visible,
.site-footer a:focus-visible,
.fine a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: .95rem;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: .55rem .65rem;
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--card); }
.prose blockquote {
  margin: 1rem 0;
  padding: .85rem 1rem;
  background: var(--card);
  border-radius: 6px;
  color: var(--muted);
}
.prose code {
  font-size: .9em;
  background: var(--card);
  padding: .1rem .35rem;
  border-radius: 3px;
}
.card-list { list-style: none; padding: 0; margin: 1rem 0 2rem; }
.card-list li {
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: .85rem 0;
  margin: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.card-list a { text-decoration: none; color: var(--ink); }
.card-list a:hover { color: var(--accent); }
.muted { color: var(--muted); font-size: .92rem; }

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .85rem;
  margin: 1rem 0 1.5rem;
}
.city-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  padding: .9rem 1rem;
}
.city-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem .75rem;
  margin-bottom: .65rem;
}
.city-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.city-chips li {
  margin: 0;
  padding: .28rem .6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: .85rem;
  color: var(--ink);
  background: color-mix(in oklab, var(--bg2) 80%, transparent);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  line-height: 1.3;
}
.city-chip-icon {
  flex: 0 0 auto;
  font-size: .95em;
  line-height: 1;
  opacity: .95;
}
.city-chips li.is-ok {
  background: color-mix(in oklab, var(--accent2) 18%, var(--card));
  border-color: color-mix(in oklab, var(--accent2) 45%, var(--line));
}
.city-chips li.is-off {
  color: var(--muted);
  background: transparent;
}

.related { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.glossary {
  display: grid;
  gap: 0;
  margin: 1.25rem 0 2rem;
}
.glossary dt {
  font-weight: 700;
  margin-top: 0;
  padding-top: 1rem;
  color: var(--accent);
  border-top: 1px solid var(--line);
}
.glossary dt:first-child {
  border-top: none;
  padding-top: 0;
}
.glossary dd {
  margin: .35rem 0 1rem;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.5;
}

.contact-cta {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact-cta p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}
.contact-cta a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .15em;
  box-sizing: border-box;
}
.contact-cta a:hover { filter: brightness(1.08); }
.contact-cta a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-footer {
  border-top: none;
  padding: .5rem 1.25rem 3rem;
  max-width: var(--wide);
  margin: 0 auto;
  color: var(--muted);
  font-size: .92rem;
}

.radar-wrap {
  position: relative;
  margin: 1.25rem 0 2rem;
  max-width: 32rem;
}
.radar-chart {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
}
.radar-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.radar-grid-layer { pointer-events: none; }
.radar-grid {
  fill: none;
  stroke: color-mix(in oklab, var(--ink) 32%, transparent);
  stroke-width: 0.85;
}
.radar-grid--outer {
  stroke: color-mix(in oklab, var(--accent) 55%, var(--line));
  stroke-width: 1.1;
}
.radar-axis {
  stroke: color-mix(in oklab, var(--ink) 22%, transparent);
  stroke-width: 0.85;
}
.radar-scale {
  fill: var(--muted);
  font-size: 10px;
  font-family: Figtree, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.radar-label {
  fill: var(--ink);
  font-size: 11px;
  font-family: Figtree, system-ui, sans-serif;
  font-weight: 650;
  letter-spacing: 0.01em;
  paint-order: stroke fill;
  stroke: var(--bg);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.radar-series-layer .radar-series {
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.radar-hit {
  cursor: pointer;
  outline: none;
}
.radar-hit-area {
  fill: none;
  pointer-events: all;
}
.radar-dot {
  stroke: var(--bg);
  stroke-width: 1.25;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .18s cubic-bezier(0.16, 1, 0.3, 1);
}
.radar-hit.is-active .radar-dot,
.radar-hit:focus-visible .radar-dot {
  transform: scale(1.55);
  stroke: var(--ink);
  stroke-width: 1.5;
}
.radar-series-layer {
  transform-origin: 50% 50%;
  animation: radar-settle .7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes radar-settle {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .radar-series-layer { animation: none; }
  .radar-dot { transition: none; }
}
.radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  align-items: center;
  margin-top: .75rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.radar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--ink);
  font-weight: 600;
}
.radar-legend-item i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.radar-hint { font-size: 0.85rem; color: var(--muted); }
.radar-overall { margin: 0 0 .75rem; color: var(--muted); }
.radar-tip {
  position: absolute;
  z-index: 4;
  min-width: 11rem;
  max-width: 16rem;
  padding: .65rem .8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  font-size: 0.85rem;
  line-height: 1.4;
  pointer-events: none;
}
.radar-tip strong { display: block; margin-bottom: .2rem; color: var(--ink); }
.radar-tip-score { display: block; font-weight: 700; margin-bottom: .45rem; }
.radar-tip-why { display: block; color: #d3ddd0; margin-bottom: .4rem; }
.radar-tip-verdict {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .25rem;
}
.radar-tip-detail {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.radar-fallback { margin-top: .85rem; font-size: 0.9rem; }
.radar-fallback summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: .35rem 0;
  box-sizing: border-box;
}
.radar-fallback summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.radar-fallback table { margin-top: .75rem; }
.radar-side-table { max-width: 36rem; margin: 1rem 0; }

@media (max-width: 700px) {
  :root { --dock-h: 3.65rem; }

  body.site,
  body.app {
    padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  }

  .site-bar.site-chrome {
    position: static;
    display: block;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: auto;
  }
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
    padding: .65rem .85rem;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: color-mix(in oklab, var(--bg2) 85%, transparent);
  }
  .brand {
    grid-column: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.15rem;
    padding-right: 0;
  }
  .header-tool--desktop,
  .nav-countries-quick { display: none !important; }

  .site-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
    top: auto;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 12px 12px 0 0;
    background: var(--bg2);
    box-shadow: 0 -10px 36px color-mix(in oklab, #000 40%, transparent);
    z-index: 1000;
    max-height: min(58vh, 22rem);
    overflow: auto;
    opacity: 0;
    transform: translateY(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease, visibility .22s;
  }
  .site-bar.is-menu-open .site-nav,
  body.is-menu-open .site-nav {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav__sheet,
  .site-nav__links {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .site-nav__sheet { padding: .85rem .85rem .35rem; }
  .site-nav__sheet-title {
    display: block;
    margin: 0 0 .35rem;
    padding: 0 .15rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .site-nav__links { padding: 0 .35rem .65rem; }
  .site-nav a {
    width: 100%;
    padding: .75rem .85rem;
    font-size: 1rem;
    border-radius: 8px;
  }
  .site-nav a[data-nav="home"],
  .site-nav a[data-nav="countries"] { display: none; }
  .site-nav a[data-nav="guides"] { order: 1; }
  .site-nav a[data-nav="news"] { order: 2; }
  .site-nav a[data-nav="methodology"] { order: 3; }

  .site-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 999;
    border: 0;
    padding: 0;
    background: color-mix(in oklab, #000 52%, transparent);
    backdrop-filter: blur(2px);
    cursor: pointer;
  }
  .site-nav-backdrop[hidden] { display: none; }

  body.is-menu-open { overflow: hidden; }

  .site-mobile-dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    align-items: stretch;
    min-height: var(--dock-h);
    padding: 0 .15rem env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--line);
    background: color-mix(in oklab, var(--bg2) 94%, transparent);
    backdrop-filter: blur(12px);
    box-shadow: 0 -4px 24px color-mix(in oklab, #000 28%, transparent);
  }

  .header-actions {
    grid-column: 2;
    flex: 0 0 auto;
    margin-left: 0;
    justify-self: end;
    gap: .3rem;
    min-width: 0;
  }
  .header-actions__bar {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-width: 0;
  }
  .nav-rank {
    padding: .5rem .7rem .5rem .6rem;
    gap: .4rem;
    font-size: 0.88rem;
  }
  .hero { padding-top: 1rem; }
  .hero-ledger { min-height: 0; padding-bottom: 2rem; }
  .hero-ledger + .prose h2 { margin-top: 1.5rem; }
  .radar-wrap { max-width: none; }
}

@media (max-width: 400px) {
  .nav-rank-bars { display: none; }
  .nav-rank { padding: .5rem .65rem; }
  .nav-countries-quick .nav-countries-full { display: none; }
  .nav-countries-quick .nav-countries-short { display: inline; }
}

/* ── Jurisdictional news timeline ───────────────────────────────────────── */
.news-page { max-width: var(--max); }
.hero-ledger + .prose { padding-top: .25rem; }
.news-note { margin: 0 0 1.25rem; }
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.news-filters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  min-width: var(--touch);
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  box-sizing: border-box;
}
.news-filters a:hover { color: var(--ink); border-color: var(--accent); }
.news-filters a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.news-filters a[aria-current="page"] {
  color: #1a1408;
  background: #c4a35a;
  border-color: #c4a35a;
}
.news-empty {
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.news-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.1rem;
  border-left: 1px solid color-mix(in oklab, var(--accent) 45%, var(--line));
}
.news-item {
  position: relative;
  padding: 0 0 2rem 1.25rem;
  opacity: 0;
  transform: translateY(10px);
  animation: news-rise .65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.news-item:nth-child(1) { animation-delay: 40ms; }
.news-item:nth-child(2) { animation-delay: 90ms; }
.news-item:nth-child(3) { animation-delay: 140ms; }
.news-item:nth-child(n+4) { animation-delay: 180ms; }
.news-item-rail {
  position: absolute;
  left: -1.1rem;
  top: .35rem;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
  transform: translateX(-50%);
}
.news-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .55rem;
  align-items: center;
  margin: 0 0 .45rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.news-item-head time { color: color-mix(in oklab, var(--ink) 70%, var(--muted)); }
.news-meta-country {
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent2);
}
.news-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: .15rem .45rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  background: color-mix(in oklab, var(--bg2) 70%, transparent);
}
.news-chip--easing {
  color: var(--accent2);
  border-color: color-mix(in oklab, var(--accent2) 50%, var(--line));
}
.news-chip--tightening {
  color: #d98a8a;
  border-color: color-mix(in oklab, #9a2f2f 45%, var(--line));
}
.news-chip--mixed { color: var(--muted); }
.news-chip--topic { color: color-mix(in oklab, var(--ink) 75%, var(--muted)); }
.news-item-title {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 .55rem;
}
.news-item-title a {
  color: var(--ink);
  text-decoration: none;
}
.news-item-title a:hover { color: var(--accent); }
.news-item-summary {
  margin: 0 0 .45rem;
  color: var(--prose-body);
  max-width: 65ch;
}
.news-item-source { margin: 0; font-size: 0.85rem; }
@keyframes news-rise {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .news-item { animation: none; opacity: 1; transform: none; }
}

/* ── Light theme (site pages; shares localStorage key with Ranking) ───────── */
html[data-theme="light"] body.site {
  --bg: #f3f7f5;
  --bg2: #eef1f5;
  --ink: #14201c;
  --muted: #5c7268;
  --line: #d5e2dc;
  --accent: #6b5220;
  --accent2: #7d9b76;
  --rank-ink: #1a1408;
  --card: #ffffff;
  --prose-body: #14201c;
  background:
    radial-gradient(1200px 600px at 10% -10%, #e4ebe4 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #f7f4ec 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
}
html[data-theme="light"] body.site .site-bar.site-chrome,
html[data-theme="light"] body.site .site-chrome,
html[data-theme="light"] body.site .site-header {
  --bg: #f3f7f5;
  --bg2: #ffffff;
  --ink: #14201c;
  --muted: #5c7268;
  --line: #d5e2dc;
  --accent: #6b5220;
  background: color-mix(in oklab, #ffffff 88%, transparent);
}
html[data-theme="light"] body.site a:hover { color: #8a6a28; }
/* Filled chrome = capital gold + dark ink (never link-brown #6b5220). */
html[data-theme="light"] body.site .nav-rank {
  --rank-ink: #1a1408;
  color: #1a1408;
  background: #c4a35a;
}
html[data-theme="light"] body.site .nav-rank:hover { background: #d4b36a; color: #1a1408; }
html[data-theme="light"] body.site .nav-rank.is-active { background: #e0c57a; color: #1a1408; }
html[data-theme="light"] body.site .nav-rank:focus-visible { outline-color: #14201c; }
html[data-theme="light"] body.site .nav-rank-signal { background: #2f5d3a; }
html[data-theme="light"] body.site .news-filters a[aria-current="page"] {
  background: #c4a35a;
  color: #1a1408;
  border-color: #c4a35a;
}
html[data-theme="light"] body.site .site-footer {
  border-top-color: var(--line);
  color: var(--muted);
}
/* Filled buttons keep capital gold + dark ink — never the link-brown accent. */
html[data-theme="light"] body.site .btn:not(.btn-ghost) {
  background: #c4a35a;
  color: #1a1408;
}
html[data-theme="light"] body.site .btn:not(.btn-ghost):hover {
  background: #d4b36a;
  color: #1a1408;
  filter: none;
}
html[data-theme="light"] body.site .btn-ghost {
  color: #14201c;
  border-color: color-mix(in oklab, #c4a35a 48%, #d5e2dc);
  background: transparent;
}
html[data-theme="light"] body.site .btn-ghost:hover {
  color: #6b5220;
  border-color: #c4a35a;
  background: color-mix(in oklab, #c4a35a 12%, #ffffff);
}
html[data-theme="light"] body.site .hub-row-actions .btn:not(.btn-ghost) {
  box-shadow: 0 1px 0 rgba(26, 20, 8, 0.12);
}
html[data-theme="light"] body.site .card,
html[data-theme="light"] body.site .guide-card,
html[data-theme="light"] body.site .country-card {
  background: var(--card);
  border-color: var(--line);
}
html[data-theme="light"] body.site .news-item-title a { color: var(--ink); }
html[data-theme="light"] body.site .news-item-summary { color: var(--prose-body); }
html[data-theme="light"] body.site .radar-label { fill: #14201c; stroke: #f3f7f5; }
html[data-theme="light"] body.site .radar-scale { fill: #14201c; opacity: 0.78; }
html[data-theme="light"] body.site .radar-hint,
html[data-theme="light"] body.site .radar-overall,
html[data-theme="light"] body.site .radar-legend,
html[data-theme="light"] body.site .radar-tip-why,
html[data-theme="light"] body.site .lead,
html[data-theme="light"] body.site .muted,
html[data-theme="light"] body.site .fine,
html[data-theme="light"] body.site .prose .fine,
html[data-theme="light"] body.site .glossary dd {
  color: #5c7268;
}
html[data-theme="light"] body.site .radar-grid {
  stroke: color-mix(in oklab, #14201c 28%, transparent);
}
html[data-theme="light"] body.site .radar-grid--outer {
  stroke: color-mix(in oklab, #6b5220 50%, #d5e2dc);
}
html[data-theme="light"] body.site .radar-axis {
  stroke: color-mix(in oklab, #14201c 20%, transparent);
}
html[data-theme="light"] body.site .radar-dot { stroke: #f3f7f5; }
html[data-theme="light"] body.site .skip:focus-visible { color: #111111; }
html[data-theme="light"] body.site .contact-cta,
html[data-theme="light"] body.site .site-footer {
  background: #f7f4ec;
}
html[data-theme="light"] body.site .hero-ledger::before {
  background:
    radial-gradient(ellipse 70% 55% at 78% 42%, color-mix(in oklab, #c4a35a 16%, transparent) 0%, transparent 62%),
    radial-gradient(ellipse 55% 50% at 12% 18%, #e4ebe4 0%, transparent 58%),
    radial-gradient(ellipse 80% 60% at 50% 100%, #f7f4ec 0%, transparent 55%);
}
html[data-theme="light"] body.site .city-chips li {
  color: #14201c;
  background: #eef1f5;
  border-color: #d5e2dc;
}
html[data-theme="light"] body.site .city-chips li.is-ok {
  background: #dcf3e6;
  border-color: #9bd8b8;
  color: #0b6b50;
}
html[data-theme="light"] body.site .city-chips li.is-off {
  color: #5c7268;
  background: transparent;
}
html[data-theme="light"] body.site .stack-sheet {
  background:
    linear-gradient(115deg, color-mix(in oklab, #c4a35a 10%, transparent), transparent 42%),
    color-mix(in oklab, #ffffff 92%, #eef1f5);
  border-color: color-mix(in oklab, #c4a35a 40%, #d5e2dc);
  box-shadow:
    0 14px 28px color-mix(in oklab, #14201c 12%, transparent),
    inset 0 1px 0 color-mix(in oklab, #ffffff 80%, transparent);
}
html[data-theme="light"] body.site .stack-sheet__label { color: #14201c; }
html[data-theme="light"] body.site .stack-sheet__note { color: #5c7268; }
html[data-theme="light"] body.site .stack-blotter {
  border-color: #d5e2dc;
  opacity: .7;
}
html[data-theme="light"] body.site .hero-support { color: #5c7268; }

@media (max-width: 640px) {
  .header-tool-full { display: none; }
  .header-tool-short { display: inline; }
  .header-tool { padding: .55rem .65rem; }
}


