/* Proverb Court — "friendly case file" design system.
   White paper, warm ink, verdict colors as ink stamps. Court identity lives in
   docket numbers, fieldset panels, the ruling line and the stamp — never in
   decoration. Layout uses CSS logical properties only. */

:root {
  color-scheme: light;
  --bg: #FFFBF2;
  --surface: #FFFFFF;
  --tint: #FFF6E9;
  --tint-dark: #F3E9D7;
  --ink: #1F2A2E;
  --ink-2: #52635E;
  --line: #EDDFC9;
  --brand: #0A6B5C;
  --brand-tint: #E2F3EE;
  --no-tint: #FFE9DF;
  --ok-ink: #177245;
  --ok-tint: #E2F4E6;
  --no-ink: #B23A1D;
  --warn-ink: #8A5A00;
  --warn-tint: #FFF0C4;
  --focus: #0A6B5C;
  --shadow-color: 31, 42, 46; /* --ink */
  --shadow: 0 1px 2px rgb(var(--shadow-color) / 0.06), 0 4px 12px rgb(var(--shadow-color) / 0.06);
  --shadow-deep: 0 2px 4px rgb(var(--shadow-color) / 0.08), 0 8px 20px rgb(var(--shadow-color) / 0.10);
  --radius-card: 18px;
  --radius-btn: 14px;
  --font-display-en: "Fraunces", "Georgia", serif;
  --font-display-ar: "El Messiri", "Amiri", serif;
  --font-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

html[lang="ar"] body { font-family: var(--font-ui-ar); line-height: 1.9; }

.bg-ornament { display: none; }

.app-main {
  position: relative;
  max-width: 1152px;
  margin-inline: auto;
  padding: 0 20px 64px;
}
@media (min-width: 720px) { .app-main { padding-inline: 32px; } }

/* ---------- Header (64px) ---------- */

.site-header {
  max-width: 1152px;
  margin-inline: auto;
  height: 64px;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 720px) { .site-header { padding-inline: 32px; } }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.brand-mark { display: flex; align-items: center; color: var(--brand); }
.brand-mark svg { width: 28px; height: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-en {
  font-family: var(--font-display-en);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
}
.brand-ar { display: none; }
html[lang="ar"] .brand-en { display: none; }
html[lang="ar"] .brand-ar {
  display: block;
  font-family: var(--font-display-ar);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
}

/* Language toggle — segmented pill */
#lang-toggle.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand);
  background: var(--brand-tint);
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: 999px;
  padding: 6px 16px;
}

/* ---------- Buttons ---------- */

.btn {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--tint); color: var(--ink); }

.btn-gold {
  border: none;
  background: transparent;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-gold::after {
  content: "→";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 700;
}
html[lang="ar"] .btn-gold::after { content: "→"; transform: scaleX(-1); }

/* ---------- Hero (start-aligned, no image) ---------- */

.hero { margin-top: 40px; text-align: start; }
.hero-seal { display: none; }
.hero-title {
  font-family: var(--font-display-en);
  font-weight: 700;
  font-size: clamp(2.375rem, 9vw, 4rem);
  line-height: 1.08;
  margin: 0 0 12px;
  max-width: 20ch;
}
html[lang="ar"] .hero-title {
  font-family: var(--font-display-ar);
  line-height: 1.35;
}
.hero-sub {
  color: var(--ink-2);
  font-size: 1.0625rem;
  max-width: 36ch;
  margin: 0 0 20px;
}
.hero-evidence {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin: 0 0 32px;
  flex-wrap: wrap;
}
.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-inline-end: 20px;
  border-inline-end: 1px solid var(--line);
}
.mini-stat:last-child { border-inline-end: none; padding-inline-end: 0; }
.mini-num {
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.mini-label { font-size: 12px; color: var(--ink-2); }
html[lang="en"] .mini-label { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }

.how-card {
  background: var(--tint);
  box-shadow: none;
  cursor: default;
}
.how-card::before { background: var(--tint-dark) !important; }
@media (hover: hover) and (pointer: fine) {
  .how-card:hover { transform: none; box-shadow: none; }
}
.how-title {
  font-family: var(--font-display-en);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0;
}
html[lang="ar"] .how-title { font-family: var(--font-display-ar); }
.how-text { color: var(--ink-2); font-size: 0.9375rem; margin: 0; }

/* ---------- Place picker — segmented pills ---------- */

.place-picker { margin: 0 0 32px; }
.place-picker.compact { margin: 16px 0; }
.place-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
}
html[lang="en"] .place-label { text-transform: uppercase; letter-spacing: 0.12em; }
.place-row { display: flex; flex-wrap: wrap; gap: 8px; }
.place-chip {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.place-chip.active {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand);
}
.place-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Section headings + the ruling line ---------- */

.catalog-head { margin: 0 0 20px; }
.section-title, .box-title {
  font-family: var(--font-display-en);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  padding-bottom: 10px;
  position: relative;
}
html[lang="ar"] .section-title, html[lang="ar"] .box-title { font-family: var(--font-display-ar); }
.section-title { font-size: 1.375rem; }
.box-title { font-size: 1.125rem; }
.section-title::after, .box-title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 24px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
}
.section-sub { color: var(--ink-2); font-size: 0.9375rem; margin: 8px 0 0; }

/* ---------- Claim card grid ---------- */

.claim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) { .claim-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1024px) { .claim-grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; } }

.claim-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.claim-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: var(--brand-tint);
}
.claim-grid > .claim-card:nth-child(3n+2)::before { background: #FFF3D6; }
.claim-grid > .claim-card:nth-child(3n)::before { background: var(--no-tint); }
@media (hover: hover) and (pointer: fine) {
  .claim-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-deep); }
}
.claim-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Docket chip */
.claim-no {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 999px;
  padding: 3px 10px;
}
html[lang="ar"] .claim-no { font-family: var(--font-ui-ar); }
html[lang="en"] .claim-no { text-transform: uppercase; letter-spacing: 0.08em; }

.proverb-en {
  font-family: var(--font-display-en);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
  min-height: 2.5em;
}
.proverb-ar {
  font-family: var(--font-display-ar);
  font-weight: 600;
  font-size: 1.625rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
  min-height: 3.4em;
}
.claim-card .card-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* ---------- Claim screen ---------- */

.screen { display: block; }
.back-btn { margin: 16px 0 8px; padding-inline: 0; }

.claim-head { margin: 8px 0 4px; }
.claim-head .claim-no { margin-bottom: 12px; }
.proverb-lg.proverb-en { font-size: 2rem; font-weight: 700; line-height: 1.2; min-height: 0; }
.proverb-lg.proverb-ar { font-size: 2rem; font-weight: 700; line-height: 1.5; min-height: 0; }
.source-short { color: var(--ink-2); font-size: 0.8125rem; margin: 10px 0 0; }

/* ---------- Fieldset panels ---------- */

.definition-box, .source-box {
  position: relative;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-top: 28px;
}
.definition-box .box-title, .source-label {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 12px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-2);
}
.definition-box .box-title {
  position: absolute;
  top: -0.85em;
  inset-inline-start: 16px;
}
html[lang="ar"] .definition-box .box-title, html[lang="ar"] .source-label { font-family: var(--font-ui-ar); }
html[lang="en"] .definition-box .box-title, html[lang="en"] .source-label {
  text-transform: uppercase; letter-spacing: 0.12em;
}
/* fieldset label chips carry their own chip border — no ruling line on them */
.definition-box .box-title::after { display: none; }
.definition-box .box-title { padding-bottom: 2px; }
.definition-box { padding-top: 26px; }
.source-box { padding: 12px 20px; margin-top: 24px; }
.source-box summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.source-box summary::-webkit-details-marker { display: none; }
.source-box summary::after {
  content: "▾";
  margin-inline-start: auto;
  color: var(--ink-2);
  font-size: 0.875rem;
  transition: transform 120ms ease;
}
.source-box[open] summary::after { transform: rotate(180deg); }
.source-box[open] summary { margin-bottom: 10px; }
.source-hint { font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); }
.source-box summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.definition-text, .source-box p {
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 6px 0;
}
html[lang="ar"] .definition-text, html[lang="ar"] .source-box p { line-height: 1.9; }
.source-orig { color: var(--ink-2); }
.proverb-translit { color: var(--ink-2); font-style: italic; }

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  margin-top: 8px;
}
.badge-proxy { background: var(--warn-tint); color: var(--warn-ink); }
.proxy-note { color: var(--ink-2); font-size: 0.8125rem; }

/* Interpretation tabs */
.interp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.interp-tab {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 8px 14px;
  cursor: pointer;
}
.interp-tab.active { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); }
.interp-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Bet gate ---------- */

.predict-gate {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 28px;
}
.predict-gate .box-title { font-size: 1.25rem; margin-bottom: 6px; }
.gate-text { color: var(--ink-2); font-size: 0.8125rem; margin: 4px 0 16px; }
.bet-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) { .bet-row { grid-template-columns: 1fr 1fr; } }
.btn-bet {
  min-height: 64px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-bet::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
}
.bet-true { border: 2px solid var(--ok-ink); color: var(--ok-ink); }
.bet-true::before { content: "✓"; background: var(--ok-tint); color: var(--ok-ink); }
.bet-true:hover { background: var(--ok-tint); }
.bet-false { border: 2px solid var(--no-ink); color: var(--no-ink); }
.bet-false::before { content: "✕"; background: var(--no-tint); color: var(--no-ink); }
.bet-false:hover { background: var(--no-tint); }
.btn-bet:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn-bet:disabled { cursor: default; opacity: 0.85; }
.bet-true.chosen { background: var(--ok-tint); }
.bet-false.chosen { background: var(--no-tint); }
.gate-note { color: var(--ink-2); font-size: 0.75rem; margin: 12px 0 0; }

/* ---------- Verdict panel + the stamp ---------- */

.verdict-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 48px 20px 20px;
  margin-top: 56px;
}
.verdict-panel .box-title { margin-bottom: 12px; padding-inline-end: 150px; }

.stamp {
  position: absolute;
  inset-inline-end: 20px;
  top: -34px;
  width: 132px;
  height: 132px;
  rotate: -8deg;
  animation: stamp-slam 320ms cubic-bezier(0.2, 1.2, 0.3, 1) both;
}
@media (min-width: 720px) { .stamp { width: 156px; height: 156px; } }
html[dir="rtl"] .stamp { rotate: 8deg; }

.stamp-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid currentColor;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
}
/* misregistration ghost ring — the print feel */
.stamp-ring::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 3px solid currentColor;
  opacity: 0.35;
  transform: translate(1.5px, 1px);
}
.stamp-ring::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}
.stamp-word {
  position: relative;
  font-family: var(--font-display-en);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
  opacity: 0.92;
  mix-blend-mode: multiply;
}
html[lang="en"] .stamp-word { text-transform: uppercase; }
html[lang="ar"] .stamp-word { font-family: var(--font-display-ar); font-size: 1.35rem; line-height: 1.25; }
@media (min-width: 720px) {
  .stamp-word { font-size: 1.5rem; }
  html[lang="ar"] .stamp-word { font-size: 1.55rem; }
}
.stamp-sub {
  position: relative;
  font-family: var(--font-ui);
  font-size: 0.5rem;
  font-weight: 700;
  opacity: 0.92;
  mix-blend-mode: multiply;
  margin-top: 6px;
}
html[lang="ar"] .stamp-sub { font-family: var(--font-ui-ar); }
html[lang="en"] .stamp-sub { text-transform: uppercase; letter-spacing: 0.12em; }

.stamp.v-supported, .range-bar.v-supported { color: var(--ok-ink); }
.stamp.v-partially_supported { color: var(--warn-ink); }
.stamp.v-not_supported, .range-bar.v-not_supported { color: var(--no-ink); }
.stamp.v-inconclusive, .range-bar.v-inconclusive { color: var(--warn-ink); }
.stamp.v-not_testable, .stamp.v-insufficient_data { color: var(--ink-2); }
.range-bar.v-partially_supported { color: var(--warn-ink); }
.stamp.v-not_testable { position: static; rotate: none; margin: 8px auto; }

@keyframes stamp-slam {
  0% { transform: scale(2.4) rotate(-24deg); opacity: 0; }
  60% { transform: scale(0.96) rotate(0deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.verdict-word {
  font-family: var(--font-display-en);
  font-weight: 700;
  font-size: 2rem;
  margin: 4px 0 8px;
  padding-inline-end: 140px;
}
html[lang="ar"] .verdict-word { font-family: var(--font-display-ar); }
.verdict-panel:has(.v-supported) .verdict-word { color: var(--ok-ink); }
.verdict-panel:has(.v-partially_supported) .verdict-word { color: var(--warn-ink); }
.verdict-panel:has(.v-not_supported) .verdict-word { color: var(--no-ink); }
.verdict-panel:has(.v-inconclusive) .verdict-word { color: var(--warn-ink); }
.verdict-panel:has(.v-not_testable) .verdict-word,
.verdict-panel:has(.v-insufficient_data) .verdict-word { color: var(--ink-2); }
.nt-reason { color: var(--ink-2); font-size: 0.9375rem; }

/* Bet banner */
.bet-banner {
  font-size: 0.8125rem;
  border-radius: 999px;
  padding: 6px 14px;
  margin: 4px 0 16px;
  display: inline-block;
  background: var(--tint);
  color: var(--ink-2);
}
.bet-banner.agree { background: var(--ok-tint); color: var(--ok-ink); }
.bet-banner.disagree { background: var(--no-tint); color: var(--no-ink); }
.bet-banner.partialNeutral { background: var(--warn-tint); color: var(--warn-ink); }
.bet-banner strong { color: inherit; }
.called-it-chip {
  display: inline-block;
  background: var(--ok-tint);
  color: var(--ok-ink);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  margin: 0 0 8px;
}
.stamp::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 3px solid currentColor;
  opacity: 0;
  pointer-events: none;
  animation: stamp-pulse 120ms 260ms ease-out;
}
@keyframes stamp-pulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.25); }
}
.banner-outcome { margin-inline-start: 6px; font-weight: 700; }

/* Stats */
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-big {
  grid-column: span 2;
  background: var(--brand-tint);
  border-color: var(--brand);
}
@media (min-width: 720px) { .stat-big { grid-column: span 1; } }
.stat-value {
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
}
.stat:not(.stat-big) .stat-value { font-size: 1.25rem; color: var(--ink); }
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
}
html[lang="en"] .stat-label { text-transform: uppercase; letter-spacing: 0.12em; }

/* Range bar */
.range-wrap { margin: 20px 0 8px; }
.range-bar {
  position: relative;
  height: 12px;
  background: var(--tint-dark);
  border-radius: 999px;
  margin: 14px 0 26px;
}
.rb-band {
  position: absolute;
  top: 0;
  height: 100%;
  background: currentColor;
  opacity: 0.55;
  border: 2px solid currentColor;
  border-radius: 999px;
  box-sizing: border-box;
}
.rb-point {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.rb-mark {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 20px;
  background: var(--ink-2);
  transform: translate(-50%, -50%);
}
.range-caption { color: var(--ink-2); font-size: 0.8125rem; margin: 0; }

/* Verdict explanation + caveat */
.interval-check { font-size: 0.9375rem; line-height: 1.6; margin: 12px 0; }
.interval-check.ok { color: var(--ok-ink); }
.interval-check.bad { color: var(--no-ink); }
.interval-check.warn { color: var(--warn-ink); }
.caveat { color: var(--ink-2); font-size: 0.8125rem; margin-top: 16px; }

/* Period blocks (R9) */
.blocks { margin-top: 20px; }
.blocks-title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-2);
  margin: 0 0 10px;
}
html[lang="ar"] .blocks-title { font-family: var(--font-ui-ar); }
html[lang="en"] .blocks-title { text-transform: uppercase; letter-spacing: 0.12em; }
.block-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.block-card {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.block-label { font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.block-rate { font-size: 1.125rem; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.block-ci { font-size: 0.75rem; color: var(--ink-2); }
.blocks-note { color: var(--ink-2); font-size: 0.75rem; margin-top: 8px; }

/* ---------- Exploratory playground ---------- */

.explore-box {
  background: var(--surface);
  border: 1px dashed var(--warn-ink);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-top: 28px;
}
.explore-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.explore-head .box-title { font-size: 1.125rem; }
.explore-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--warn-tint);
  color: var(--warn-ink);
  border-radius: 999px;
  padding: 2px 10px;
}
.explore-note { color: var(--ink-2); font-size: 0.8125rem; }
.explore-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0; }
.explore-row label { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.explore-row input, .explore-row select {
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
}
.explore-row input:focus-visible, .explore-row select:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 1px;
}
.explore-unit { color: var(--ink-2); font-weight: 400; }
.explore-results { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; }
.explore-stat {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
}
.explore-value { font-weight: 700; font-size: 1.125rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.explore-stat span:last-child { font-size: 0.75rem; color: var(--ink-2); }
.explore-status { font-size: 0.8125rem; color: var(--ink-2); }
.explore-reset {
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid var(--brand);
  border-radius: var(--radius-btn);
  padding: 8px 14px;
  cursor: pointer;
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: 1152px;
  margin: 40px auto 0;
  padding: 20px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  border-top: 1px solid var(--line);
}
.site-footer a { color: var(--brand); }

/* ---------- Motion preferences + capture mode ---------- */

@media (prefers-reduced-motion: reduce) {
  .stamp { animation: stamp-fade 150ms ease both; }
  html { scroll-behavior: auto; }
}
@keyframes stamp-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.noanim .stamp, .noanim .stamp-ring, .noanim .stamp-ring::before, .noanim .stamp-ring::after {
  animation: none !important;
  transition: none !important;
}
.noanim * { animation: none !important; transition: none !important; }

/* ── Geographic comparison (Muse P1 spec §1) ─────────────────────────── */
.compare-section { margin-block: 28px; }
.bet-summary {
  display: inline-block;
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 600;
  font-size: .875rem;
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  margin: 0 0 14px;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.city-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.city-card.current { border-color: var(--brand); }
.city-name { margin: 0; font: 700 .9375rem var(--font-ui); color: var(--ink); }
.stamp-mini { position: static; rotate: -6deg; width: 76px; height: 76px; margin: 2px auto 6px; }
.stamp-mini .stamp-ring { padding: 5px; }
.stamp-mini .stamp-word { font-size: .56rem; letter-spacing: 0; line-height: 1.05; }
html[lang="ar"] .stamp-mini .stamp-word { font-size: .58rem; line-height: 1.15; }
.stamp-mini .stamp-sub { font-size: .34rem; margin-top: 2px; }
html[lang="en"] .stamp-mini .stamp-sub { letter-spacing: .06em; }
.city-rate { margin: 0; font: 700 1.625rem var(--font-ui); }
.ink-ok { color: var(--ok-ink); }
.ink-no { color: var(--no-ink); }
.ink-warn { color: var(--warn-ink); }
.cmp-bar {
  position: relative;
  width: 100%;
  height: 8px;
  background: var(--tint-dark);
  border-radius: 4px;
}
.cmp-band {
  position: absolute;
  top: 0; bottom: 0;
  border-radius: 4px;
}
.bg-ok { background: var(--ok-ink); }
.bg-no { background: var(--no-ink); }
.bg-warn { background: #E9A820; }
.cmp-tick {
  position: absolute;
  top: -3px; bottom: -3px;
  width: 2px;
  background: var(--ink-2);
}
.city-n { margin: 0; font-size: 12px; color: var(--ink-2); }
.sealed-circle {
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 1.5px dashed var(--line);
  background: var(--tint);
}
.sealed-label { margin: 0; font-size: .8125rem; color: var(--ink-2); }
.sealed-blocks { width: 100%; display: grid; gap: 6px; }
.sealed-block { height: 12px; border-radius: 6px; background: var(--tint); }
.sealed-block.short { width: 60%; margin-inline: auto; }
.v-nodata { opacity: .65; }
.takeaway {
  margin: 16px 0 0;
  background: var(--tint);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  border-inline-start: 4px solid var(--warn-ink);
  font: 600 1rem var(--font-ui);
  color: var(--ink);
}
.takeaway-ok { border-inline-start-color: var(--ok-ink); }
.takeaway-bad { border-inline-start-color: var(--no-ink); }
.takeaway-warn { border-inline-start-color: var(--warn-ink); }
.slam-in { animation: stamp-slam .5s cubic-bezier(.2, 1.4, .4, 1) both; }

@media (max-width: 719px) {
  .compare-grid { grid-template-columns: 1fr; gap: 12px; }
  .city-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-areas: "stamp name" "stamp rate" "bar bar" "n n";
    align-items: center;
    text-align: start;
    column-gap: 12px;
  }
  .city-card .stamp-mini { grid-area: stamp; width: 56px; height: 56px; }
  .city-card .city-name { grid-area: name; }
  .city-card .city-rate { grid-area: rate; font-size: 1.25rem; }
  .city-card .cmp-bar { grid-area: bar; }
  .city-card .city-n { grid-area: n; }
  .city-card .sealed-circle { grid-area: stamp; width: 56px; height: 56px; }
  .city-card .sealed-label { grid-area: rate; }
  .city-card .sealed-blocks { grid-area: bar; }
}

/* ── Evidence Explorer (Muse P1 §2) ─────────────────────────────── */
.explorer-section { margin-top: 28px; }
.exhibit {
  border: 1.5px dashed var(--line);
  border-radius: 18px;
  padding: 18px 18px 14px;
  margin: 18px 0 0;
  background: var(--surface);
}
.exhibit-legend {
  font-family: var(--font-display-en);
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink-2);
  padding: 0 8px;
}
html[lang="ar"] .exhibit-legend { font-family: var(--font-display-ar); }
.exhibit-skeleton { height: 46px; background: var(--tint); border-radius: 12px; }
.tick-strip { width: 100%; height: auto; display: block; }
.tick-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.tick-baseline { stroke: var(--line); stroke-width: 1; }
.tick-label { font-size: 11px; fill: var(--ink-2); font-family: var(--font-ui); }
html[lang="ar"] .tick-label { font-family: var(--font-ui-ar); }
.tick { cursor: pointer; rx: 1px; }
.tick-miss { fill: var(--tint-dark); stroke: var(--line); stroke-width: 1; }
.tick-hit.v-supported, .tick-hit.v-partially_supported { fill: var(--ok-ink); }
.tick-hit.v-not_supported { fill: var(--no-ink); }
.tick-hit.v-inconclusive { fill: var(--warn-ink); }
.tick-hit.v-insufficient_data, .tick-hit.v-not_testable { fill: var(--ink-2); }
.tick-sel { stroke: var(--ink); stroke-width: 1.5; }
.exhibit-readout {
  margin: 10px 0 0;
  display: inline-block;
  background: var(--tint);
  border-radius: 14px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: .875rem;
  color: var(--ink);
}
.xband { position: relative; padding-top: 20px; margin-bottom: 30px; }
.xband-track {
  position: relative; height: 16px; background: var(--tint-dark);
  border-radius: 999px;
}
.xband-fill {
  position: absolute; top: 0; height: 100%;
  background: currentColor; opacity: .55;
  border: 2px solid currentColor; border-radius: 999px; box-sizing: border-box;
}
.xband-est {
  position: absolute; top: 50%; width: 14px; height: 14px;
  background: currentColor; transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 3px;
}
html[dir="rtl"] .xband-est { transform: translate(50%, -50%) rotate(45deg); }
.xband.v-supported, .xband.v-partially_supported, .xblock-row.v-supported, .xblock-row.v-partially_supported { color: var(--ok-ink); }
.xband.v-not_supported, .xblock-row.v-not_supported { color: var(--no-ink); }
.xband.v-inconclusive, .xblock-row.v-inconclusive { color: var(--warn-ink); }
.xband.v-insufficient_data, .xblock-row.v-insufficient_data { color: var(--ink-2); }
.xband-tick {
  position: absolute; top: -5px; height: 26px; width: 2px; background: var(--ink-2);
}
.xband-tick-label {
  position: absolute; top: 0; transform: translateX(-50%);
  font-size: .75rem; color: var(--ink-2); white-space: nowrap;
}
html[dir="rtl"] .xband-tick-label { transform: translateX(50%); }
.xband-end, .xband-est-label {
  position: absolute; top: 26px; transform: translateX(-50%);
  font-size: .8125rem; font-weight: 600; color: var(--ink); white-space: nowrap;
}
html[dir="rtl"] .xband-end, html[dir="rtl"] .xband-est-label { transform: translateX(50%); }
.xband-est-label { top: -20px; color: currentColor; }
.xblocks { display: flex; flex-direction: column; gap: 10px; }
.xblock-row {
  display: grid; grid-template-columns: 92px 1fr auto;
  align-items: center; gap: 12px;
}
.xblock-label { font-weight: 600; font-size: .875rem; color: var(--ink); }
.xblock-track {
  position: relative; height: 14px; background: var(--tint-dark); border-radius: 999px;
}
.xblock-fill {
  position: absolute; top: 0; height: 100%;
  background: currentColor; opacity: .55;
  border: 2px solid currentColor; border-radius: 999px; box-sizing: border-box;
}
.xblock-est {
  position: absolute; top: 50%; width: 10px; height: 10px;
  background: currentColor; transform: translate(-50%, -50%) rotate(45deg); border-radius: 2px;
}
html[dir="rtl"] .xblock-est { transform: translate(50%, -50%) rotate(45deg); }
.xblock-chance {
  position: absolute; top: -4px; height: 22px; width: 0;
  border-inline-start: 2px dashed var(--ink-2);
}
.xblock-val { font-weight: 700; font-size: .9375rem; color: currentColor; }
.xblocks-caption { margin: 12px 0 0; font-size: .8125rem; color: var(--ink-2); }
@media (max-width: 719px) {
  .xblock-row { grid-template-columns: 76px 1fr auto; gap: 8px; }
}
.xband-end.xband-low2 { top: 44px; }
.xband-staggered { margin-bottom: 52px; }

/* Shareable verdict cards: moved to share.css (cards branch). */

/* ── Sanad Android review fixes (Dec 1) ─────────────────────────── */
.banner-outcome { display: block; margin-inline-start: 0; margin-top: 6px; }
.stat-row[data-v="inconclusive"] .stat-big { background: var(--warn-tint); border-color: var(--warn-ink); }
.stat-row[data-v="inconclusive"] .stat-big .stat-value { color: var(--warn-ink); }
.stat-row[data-v="not_supported"] .stat-big { background: var(--no-tint); border-color: var(--no-ink); }
.stat-row[data-v="not_supported"] .stat-big .stat-value { color: var(--no-ink); }
html[lang="en"] .stamp:not(.stamp-mini).v-inconclusive .stamp-word { font-size: .95rem; letter-spacing: 0; }
html[lang="en"] .stamp:not(.stamp-mini).v-not_supported .stamp-word,
html[lang="en"] .stamp:not(.stamp-mini).v-not_testable .stamp-word { font-size: 1.05rem; letter-spacing: 0; }
@media (min-width: 720px) {
  html[lang="en"] .stamp:not(.stamp-mini).v-inconclusive .stamp-word { font-size: 1.1rem; }
  html[lang="en"] .stamp:not(.stamp-mini).v-not_supported .stamp-word,
  html[lang="en"] .stamp:not(.stamp-mini).v-not_testable .stamp-word { font-size: 1.2rem; }
}

/* The hidden attribute must always win over component display rules: a
   hidden home screen was rendering above an open claim (Sanad P1 #2). */
[hidden] { display: none !important; }

/* Static no-JS fallback summary (replaced by main.js on boot) */
.static-summary { max-width: 60rem; margin: 0 auto; padding: 2rem 1rem; }
.static-summary table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.9rem; }
.static-summary th, .static-summary td { border: 1px solid #d8cfc0; padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; }
.static-summary caption { text-align: left; font-weight: 600; margin-bottom: 0.4rem; }

/* How to read this verdict (spec 1.5) */
.reading-box { margin-top: 1.25rem; padding: 1rem 1.1rem; border: 1px solid var(--line, #e7dccb); border-radius: 14px; background: #fffdf8; }
.reading-row { margin-top: .75rem; }
.reading-row h4 { margin: 0 0 .2rem; font-size: .95rem; }
.reading-row p, .reading-inc { margin: 0; line-height: 1.55; }
.reading-inc { margin-top: .75rem; font-weight: 600; }

/* ---------- Science Lab + header nav ---------- */
.site-nav { display: flex; gap: 4px; margin-inline-start: auto; margin-inline-end: 8px; }
.nav-link { font: inherit; font-weight: 600; font-size: 14px; background: transparent; color: var(--ink-2); border: 0; border-bottom: 2px solid transparent; padding: 8px 10px; min-block-size: 44px; cursor: pointer; border-radius: 8px 8px 0 0; }
.nav-link:hover { color: var(--ink); background: var(--tint); }
.nav-link[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.nav-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#screen-lab { padding-block: 24px 48px; }
.lab-title { font-family: var(--font-display-en); font-size: clamp(28px, 6vw, 40px); line-height: 1.15; margin: 8px 0; }
html[lang="ar"] .lab-title, html[lang="ar"] .lab-h { font-family: var(--font-display-ar); }
.lab-intro, .lab-small { color: var(--ink-2); font-size: 14px; margin: 6px 0; }
.lab-h { font-size: 22px; margin: 12px 0 6px; } .lab-h3 { font-size: 16px; margin: 18px 0 6px; }
.lab-warn { background: var(--warn-tint); color: var(--warn-ink); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.lab-examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 12px 0; }
.lab-chip { min-block-size: 44px; border: 1px solid var(--line); font-size: 14px; }
.lab-chip[aria-pressed="true"] { background: var(--brand-tint); color: var(--brand); border-color: var(--brand); }
.lab-set { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px; margin: 14px 0; box-shadow: var(--shadow); min-inline-size: 0; }
.lab-legend { font-weight: 700; color: var(--brand); padding-inline: 6px; font-size: 14px; letter-spacing: .02em; }
.lab-sub { border: 1px dashed var(--line); border-radius: 12px; margin: 10px 0; padding: 10px; min-inline-size: 0; }
.lab-sublegend { font-weight: 600; font-size: 13px; color: var(--ink-2); padding-inline: 4px; }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.lab-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.lab-field { display: flex; flex-direction: column; gap: 4px; min-inline-size: 0; }
.lab-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lab-input { font: inherit; min-block-size: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); color: var(--ink); inline-size: 100%; }
.lab-input:focus-visible, .lab-radio input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lab-statement { background: var(--tint); border-radius: 14px; padding: 12px 14px; margin-top: 14px; border: 1px solid var(--line); }
.lab-stmt-text { font-size: 17px; margin: 6px 0; }
.lab-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.lab-radio { display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--tint); }
.lab-radio input { inline-size: 24px; block-size: 24px; accent-color: var(--brand); }
.lab-btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.lab-btn-secondary { background: var(--surface); border: 1.5px solid var(--brand); color: var(--brand); min-block-size: 44px; }
.lab-btn-secondary:disabled { opacity: .5; cursor: not-allowed; }
.lab-run { min-block-size: 48px; }
.lab-lockinfo { background: var(--brand-tint); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.lab-result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px; margin: 18px 0; box-shadow: var(--shadow-deep); }
.lab-result:focus { outline: none; }
.lab-result-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.lab-tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.lab-tag-exploratory { background: var(--warn-tint); color: var(--warn-ink); }
.lab-tag-confirmatory { background: var(--ok-tint); color: var(--ok-ink); }
.lab-tag-unlocked { background: var(--tint-dark); color: var(--ink-2); }
.lab-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.lab-kpi { background: var(--tint); border-radius: 14px; padding: 10px; text-align: center; }
.lab-kpi.is-main { background: var(--ok-tint); }
.lab-kpi-v { font-size: clamp(20px, 5vw, 28px); font-weight: 700; }
.lab-kpi-l { font-size: 12px; color: var(--ink-2); }
.lab-bar { margin: 8px 0 4px; } .lab-bar-track { position: relative; block-size: 14px; background: var(--tint-dark); border-radius: 8px; }
.lab-bar-iv { position: absolute; inset-block: 2px; background: #2f9e5c; border-radius: 6px; opacity: .85; }
.lab-bar-dot { position: absolute; inset-block: -2px; inline-size: 8px; margin-inline-start: -4px; background: #115c3a; border-radius: 3px; }
.lab-bar-ref { position: absolute; inset-block: -4px; inline-size: 2px; background: var(--ink); }
.lab-bar-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); gap: 8px; }
.lab-list { padding-inline-start: 20px; margin: 6px 0; } .lab-list li { margin: 4px 0; }
.lab-concl { background: var(--brand-tint); border-radius: 12px; padding: 10px 12px; }
.lab-strip { display: flex; flex-wrap: wrap; gap: 3px; margin: 6px 0; }
.lab-cell { display: inline-block; inline-size: 12px; block-size: 18px; border-radius: 3px; }
.lab-cell-hit { background: #2f9e5c; } .lab-cell-miss { background: var(--tint-dark); } .lab-cell-excl { background: repeating-linear-gradient(45deg, var(--line), var(--line) 2px, #fff 2px, #fff 4px); border: 1px solid var(--line); }
.lab-legend-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); } .lab-legend-i .lab-cell { vertical-align: middle; }
.lab-era-row { display: grid; grid-template-columns: 90px 1fr 48px; gap: 8px; align-items: center; }
.lab-era-v { font-weight: 700; text-align: end; }
.lab-table-scroll { overflow-x: auto; max-block-size: 360px; border: 1px solid var(--line); border-radius: 12px; }
.lab-table { border-collapse: collapse; inline-size: 100%; font-size: 14px; } .lab-table th, .lab-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.lab-table thead th { position: sticky; inset-block-start: 0; background: var(--tint); }
.lab-saved-i { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .lab-saved-i span { flex: 1 1 260px; font-size: 14px; }
@media (max-width: 520px) { .site-header { flex-wrap: wrap; height: auto; min-height: 64px; padding-block: 8px; row-gap: 4px; } .site-nav { order: 3; inline-size: 100%; margin: 0; } .lab-era-row { grid-template-columns: 70px 1fr 40px; } }
.lab-hint { color: var(--ink-2); font-size: 14px; margin: 0 0 10px; }

.tick-dim { opacity: .22; }
.drill { margin-top: 12px; }
.drill-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.drill-lab { font-size: 13px; color: var(--ink-2); }
.drill-chip { min-block-size: 44px; border: 1px solid var(--line); font-size: 14px; }
.drill-chip[aria-pressed="true"] { background: var(--brand-tint); color: var(--brand); border-color: var(--brand); }
.drill-detail { background: var(--tint); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.drill-h { margin: 0 0 6px; font-size: 16px; } .drill-h5 { margin: 12px 0 4px; font-size: 14px; color: var(--ink-2); }
.drill-why { margin: 4px 0; }
.drill-table { border-collapse: collapse; inline-size: 100%; font-size: 14px; }
.drill-table th, .drill-table td { text-align: start; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.drill-table tr.is-target { background: var(--brand-tint); font-weight: 700; } .drill-table tr.is-winner { background: var(--warn-tint); }
.drill-tablewrap { overflow: auto; max-block-size: 320px; border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
.drill-year { font: inherit; min-block-size: 44px; min-inline-size: 44px; background: transparent; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; }
h1.proverb-lg { margin: 0.25em 0 0.4em; font-family: inherit; }

/* Phase 6 geographic comparison */
.city-stats { width: 100%; margin: 4px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 12px; text-align: start; }
.city-stats dt { color: var(--ink-2); }
.city-stats dd { margin: 0; font-weight: 600; color: var(--ink); }
.compare-scale, .compare-caveat { margin: 12px 0 0; font-size: .8125rem; color: var(--ink-2); line-height: 1.5; }
.geo-map { margin: 14px 0 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); max-width: 420px; }
.geo-svg { width: 100%; height: auto; display: block; }
.geo-cap { margin-top: 4px; font-size: 12px; color: var(--ink-2); }
.compare-nav { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 719px) { .city-card { grid-template-areas: "stamp name" "stamp rate" "bar bar" "stats stats" "n n"; } .city-card .city-stats { grid-area: stats; } }
