/* Open USA — observatorio de datos abiertos.
   Identidad v3: documento institucional "federal" — serif solemne para titulares
   (Merriweather/Georgia), sans limpia para el cuerpo, azul marino profundo con
   franja roja como acento, banner superior de aviso (independiente, no oficial).
   Monoespaciada para todo lo que es "registro" (dominios, códigos, cifras).
   Paleta de plataformas = la validada del sistema dataviz (misma que el dashboard). */

:root {
  --paper: #ffffff;
  --paper-2: #f7f8fa;
  --rule: #dfe1e2;
  --rule-strong: #a9aeb1;
  --ink: #1b1b1b;
  --ink-2: #3d4551;
  --ink-3: #6f777f;
  --accent: #005ea2;
  --accent-deep: #1a4480;
  --accent-soft: #e2eef9;
  --head: #162e51;

  /* bandas institucionales (header, hero, footer) */
  --band: #162e51;
  --band-ink: #ffffff;
  --band-ink-2: #cfd8e4;
  --band-rule: #2c4a75;
  --red: #b31942;
  --gold: #ffbe2e;

  /* plataformas (paleta dataviz validada, modo claro) */
  --p-socrata: #2a78d6;
  --p-ckan: #1baf7a;
  --p-arcgis: #eda100;
  --p-ods: #008300;
  --p-custom: #4a3aa7;
  --p-none: #9b9992;

  /* estado del portal */
  --dead: #d03b3b;
  --stale: #ec835a;
  --live: #0ca30c;

  /* semáforo de estado (paleta de status dataviz) — usado por licencias y decadencia */
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --good-text: #006300;

  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --serif: "Merriweather", Georgia, "Cambria", "Times New Roman", serif;
  --sans: "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SF Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12161b; --paper-2: #1a1f26;
    --rule: #2c333c; --rule-strong: #465061;
    --ink: #f1f3f6; --ink-2: #b6bec9; --ink-3: #7e8794;
    --accent: #73b3e7; --accent-deep: #9bc7f0; --accent-soft: #132639;
    --head: #dbe5f3;
    --band: #0d1b31; --band-ink: #f1f3f6; --band-ink-2: #a9b6c9; --band-rule: #22385c;
    --red: #e4657f; --gold: #ffbe2e;
    --p-socrata: #3987e5; --p-ckan: #199e70; --p-arcgis: #c98500;
    --p-ods: #008300; --p-custom: #9085e9; --p-none: #6e6c66;
    --dead: #e66767; --stale: #ec835a; --live: #0ca30c;
    --good: #0ca30c; --warning: #fab219; --serious: #ec835a; --good-text: #0ca30c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --paper: #12161b; --paper-2: #1a1f26;
  --rule: #2c333c; --rule-strong: #465061;
  --ink: #f1f3f6; --ink-2: #b6bec9; --ink-3: #7e8794;
  --accent: #73b3e7; --accent-deep: #9bc7f0; --accent-soft: #132639;
  --head: #dbe5f3;
  --band: #0d1b31; --band-ink: #f1f3f6; --band-ink-2: #a9b6c9; --band-rule: #22385c;
  --red: #e4657f; --gold: #ffbe2e;
  --p-socrata: #3987e5; --p-ckan: #199e70; --p-arcgis: #c98500;
  --p-ods: #008300; --p-custom: #9085e9; --p-none: #6e6c66;
  --dead: #e66767; --stale: #ec835a; --live: #0ca30c;
  --good: #0ca30c; --warning: #fab219; --serious: #ec835a; --good-text: #0ca30c;
}
:root[data-theme="light"] {
  --paper: #ffffff; --paper-2: #f7f8fa;
  --rule: #dfe1e2; --rule-strong: #a9aeb1;
  --ink: #1b1b1b; --ink-2: #3d4551; --ink-3: #6f777f;
  --accent: #005ea2; --accent-deep: #1a4480; --accent-soft: #e2eef9;
  --head: #162e51;
  --band: #162e51; --band-ink: #ffffff; --band-ink-2: #cfd8e4; --band-rule: #2c4a75;
  --red: #b31942; --gold: #ffbe2e;
  --p-socrata: #2a78d6; --p-ckan: #1baf7a; --p-arcgis: #eda100;
  --p-ods: #008300; --p-custom: #4a3aa7; --p-none: #9b9992;
  --dead: #d03b3b; --stale: #ec835a; --live: #0ca30c;
  --good: #0ca30c; --warning: #fab219; --serious: #ec835a; --good-text: #006300;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }

/* ---------------- aviso superior (independiente, no oficial) ---------------- */
.usa-banner { background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.banner-in {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-2); padding-top: 6px; padding-bottom: 6px;
}
.banner-dot {
  width: 10px; height: 10px; border-radius: 2px; flex: none;
  background: linear-gradient(180deg, var(--red) 0 50%, var(--accent-deep) 50%);
}

/* ---------------- topbar ---------------- */
.top {
  position: sticky; top: 0; z-index: 40; background: var(--band);
  border-bottom: 3px solid var(--red);
}
.top-in { display: flex; align-items: center; gap: 18px; height: 58px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 16px; margin-right: auto; color: var(--band-ink); }
.brand span { color: var(--band-ink-2); font-weight: 400; font-family: var(--sans); font-size: 13px; }
.nav { display: flex; gap: 2px; }
.nav a {
  font-family: var(--sans); font-size: 13.5px; color: var(--band-ink-2); text-decoration: none;
  padding: 6px 10px; border-radius: 4px;
}
.nav a:hover { background: rgba(255,255,255,.10); color: var(--band-ink); }
.switch { display: flex; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; overflow: hidden; }
.switch button {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  border: none; background: none; color: var(--band-ink-2); padding: 5px 11px; cursor: pointer;
}
.switch button[aria-pressed="true"] { background: var(--band-ink); color: var(--band); }
.icon-btn {
  border: 1px solid rgba(255,255,255,.4); background: none; color: var(--band-ink-2);
  width: 30px; height: 30px; border-radius: 4px; cursor: pointer; font-size: 13px; line-height: 1;
}
.icon-btn:hover { background: rgba(255,255,255,.10); color: var(--band-ink); }
@media (max-width: 720px) { .nav { display: none; } }

/* ---------------- hero (banda azul marino con franja roja) ---------------- */
.hero-band { background: var(--band); color: var(--band-ink); border-bottom: 4px solid var(--red); }
/* Only touch the vertical padding: .hero shares an element with .wrap and has equal
   specificity, so a `padding` shorthand here silently zeroes .wrap's 24px gutter. */
.hero { padding-top: 64px; padding-bottom: 52px; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(28px, 4.6vw, 46px); line-height: 1.18;
  letter-spacing: -.01em; font-weight: 700; margin: 0 0 22px; text-wrap: balance; max-width: 22ch;
  color: var(--band-ink);
}
.hero .lede { font-size: 18px; line-height: 1.65; color: var(--band-ink-2); max-width: 62ch; }
.hero .lede strong { color: var(--band-ink); font-weight: 600; }

/* ---------------- stat band ---------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--band-rule); border: 1px solid var(--band-rule); margin: 44px 0 0; }
.stat { background: var(--paper); padding: 18px 16px; color: var(--ink); }
.stat .v { font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; color: var(--head); }
.stat .vs { font-family: var(--sans); font-size: 12px; color: var(--ink-2); margin-top: 2px; font-weight: 600; }
.stat .l { font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); margin-top: 5px; line-height: 1.4; }
.stat .n {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-top: 7px; line-height: 1.45;
  /* Notes vary wildly in length; cap them so the band's cells stay the same height. */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------------- sections ---------------- */
section { padding: 64px 0; border-bottom: 1px solid var(--rule); }
.sec-head { margin-bottom: 28px; }
.sec-num { font-family: var(--mono); font-size: 11px; color: var(--red); letter-spacing: .12em; font-weight: 700; }
.sec-head h2 {
  font-family: var(--serif); font-size: clamp(22px, 2.8vw, 31px); letter-spacing: -.01em;
  font-weight: 700; margin: 8px 0 0; text-wrap: balance; max-width: 26ch; color: var(--head);
}
.prose { font-family: var(--serif); font-size: 16.5px; line-height: 1.75; }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 700; }

/* ---------------- resumen + análisis colapsable ---------------- */
.sec-summary { font-family: var(--serif); font-size: 17px; line-height: 1.75; max-width: 680px; }
.sec-summary p { margin: 0 0 16px; }
.sec-summary p:last-child { margin-bottom: 0; }
details.readmore { margin-top: 20px; border: 1px solid var(--rule); background: var(--paper-2); max-width: 760px; }
.readmore > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--accent-deep);
}
.readmore > summary::-webkit-details-marker { display: none; }
.readmore > summary::after { content: "+"; font-size: 19px; line-height: 1; color: var(--ink-3); flex: none; }
.readmore[open] > summary { border-bottom: 1px solid var(--rule); }
.readmore[open] > summary::after { content: "−"; }
.readmore > summary:hover { background: var(--accent-soft); }
.readmore-body { padding: 18px 20px 22px; max-width: 720px; }
.readmore.mini .map-note { padding: 0 16px 16px; margin: 0; max-width: none; }

/* ---------------- tile map ---------------- */
.mapwrap { margin: 0 0 26px; }
.tilegrid { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 5px; max-width: 780px; }
.tile {
  aspect-ratio: 1; border: none; border-radius: 2px; cursor: pointer; position: relative;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .1s ease, outline-color .1s ease;
  outline: 2px solid transparent; outline-offset: 1px;
}
.tile:hover, .tile:focus-visible { transform: scale(1.14); outline-color: var(--ink); z-index: 5; }
.tile.dim { opacity: .28; }
.tile .dot {
  position: absolute; right: 2px; top: 2px; width: 5px; height: 5px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35);
}
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-family: var(--sans); font-size: 12.5px; }
.legend button {
  display: inline-flex; align-items: center; gap: 6px; border: none; background: none;
  color: var(--ink-2); cursor: pointer; font: inherit; padding: 3px 6px; border-radius: 4px;
}
.legend button:hover { background: var(--accent-soft); color: var(--ink); }
.legend button[aria-pressed="true"] { background: var(--head); color: var(--paper); }
.legend .sw { width: 11px; height: 11px; border-radius: 2px; flex: none; }
.legend .ct { font-family: var(--mono); font-size: 11px; opacity: .75; }
.legend-status { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--rule); }
/* The status dot must stay legible against every platform fill it can sit on. */
.tile .dot { box-shadow: 0 0 0 1.5px var(--paper); }
.map-note { font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); margin-top: 16px; max-width: 60ch; }

/* ---------------- ledger (dead portals) ---------------- */
.ledger { border-top: 3px solid var(--red); margin-top: 8px; }
.lrow { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.lrow .who { font-family: var(--sans); font-weight: 700; font-size: 15px; }
.lrow .kind { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dead); }
.lrow .url { font-family: var(--mono); font-size: 12px; color: var(--ink-2); word-break: break-all; }
.lrow .quote { font-size: 13.5px; color: var(--ink-3); font-style: italic; margin-top: 3px; font-family: var(--serif); }
.tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs button {
  font-family: var(--sans); font-size: 13px; font-weight: 600; border: 1px solid var(--rule-strong);
  background: none; color: var(--ink-2); padding: 6px 12px; border-radius: 4px; cursor: pointer;
}
.tabs button[aria-pressed="true"] { background: var(--head); color: var(--paper); border-color: var(--head); }
.tabs button:hover:not([aria-pressed="true"]) { background: var(--accent-soft); }

/* ---------------- ranking table ---------------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--paper-2); }
table.rank { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 13.5px; }
.rank th {
  text-align: left; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3);
  font-weight: 700; padding: 11px 12px; border-bottom: 2px solid var(--head); white-space: nowrap;
  position: sticky; top: 0; background: var(--paper-2); cursor: pointer; user-select: none;
}
.rank th:hover { color: var(--ink); }
.rank td { padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.rank tr:hover td { background: var(--accent-soft); }
.rank tr { cursor: pointer; }
.rank .st { font-weight: 700; }
.rank .num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.pill .sw { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.bar { height: 5px; background: var(--rule); border-radius: 3px; overflow: hidden; min-width: 54px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.yes { color: var(--live); font-weight: 600; }
.no { color: var(--ink-3); }

/* ---------------- detail panel ---------------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .16s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--paper);
  border-left: 4px solid var(--band); z-index: 61; overflow-y: auto;
  transform: translateX(100%); transition: transform .2s ease; box-shadow: var(--shadow);
}
.panel.on { transform: none; }
.panel-in { padding: 26px 28px 60px; }
.panel h3 { font-family: var(--serif); font-size: 25px; letter-spacing: -.01em; margin: 0 0 4px; color: var(--head); }
.panel .sub { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-bottom: 22px; }
.panel .icon-btn { border-color: var(--rule-strong); color: var(--ink-2); }
.panel .icon-btn:hover { background: var(--accent-soft); color: var(--ink); }
.close { position: sticky; top: 0; float: right; }
.kv { border-top: 1px solid var(--rule); padding: 11px 0; }
.kv .k { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.kv .v { font-family: var(--sans); font-size: 14px; margin-top: 3px; word-break: break-word; }
.kv .v a { color: var(--accent); text-decoration: none; font-family: var(--mono); font-size: 12.5px; }
.kv .v a:hover { text-decoration: underline; }
.kv .note { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }
.citylist { font-family: var(--sans); font-size: 13px; }
.cityrow { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.cityrow .cn { flex: 1; }
.cityrow .cd { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.badge { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 5px; border-radius: 3px; }
.badge.dead { background: var(--dead); color: #fff; }
.badge.stale { background: var(--stale); color: #12120f; }
.badge.migrated { background: var(--rule-strong); color: var(--ink); }
.srcs { font-family: var(--mono); font-size: 11px; }
.srcs a { color: var(--accent); display: block; margin: 3px 0; word-break: break-all; text-decoration: none; }

/* ---------------- method ---------------- */
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.mcard { border: 1px solid var(--rule); border-top: 3px solid var(--band); padding: 18px; background: var(--paper-2); }
.mcard h4 { font-family: var(--serif); font-size: 14.5px; margin: 0 0 7px; color: var(--head); }
.mcard p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }
.callout { border-left: 4px solid var(--red); padding: 2px 0 2px 18px; margin: 26px 0; font-style: italic; color: var(--ink-2); font-family: var(--serif); }

/* ---------------- footer (banda institucional) ---------------- */
footer { background: var(--band); border-top: 4px solid var(--red); padding: 44px 0 64px; font-family: var(--sans); font-size: 13px; color: var(--band-ink-2); margin-top: -1px; }
footer strong { color: var(--band-ink); font-family: var(--serif); font-size: 14px; }
footer a { color: var(--gold); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }
footer .fgrid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }

.tip {
  position: fixed; z-index: 70; pointer-events: none; background: var(--head); color: #fff;
  font-family: var(--sans); font-size: 12px; padding: 7px 10px; border-radius: 4px; max-width: 230px;
  box-shadow: var(--shadow); line-height: 1.45;
}
.tip .tt { font-weight: 700; margin-bottom: 2px; }
.tip .tm { font-family: var(--mono); font-size: 10.5px; opacity: .8; }
[hidden] { display: none !important; }

/* ============================================================
   v2 — buscador, visualizaciones, descarga, quiénes somos
   ============================================================ */

/* ---- finder (buscá tu gobierno) ---- */
.finder { position: relative; max-width: 460px; margin: 26px 0 8px; }
.finder-box {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--rule-strong); border-radius: 4px;
  background: var(--paper); padding: 0 14px; height: 48px;
  transition: border-color .12s, box-shadow .12s;
}
.finder-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,190,46,.28); }
.finder-ico { color: var(--ink-3); flex: none; }
#finder-input {
  flex: 1; border: none; background: none; outline: none;
  font-family: var(--sans); font-size: 16px; color: var(--ink); height: 100%;
}
#finder-input::placeholder { color: var(--ink-3); }
.finder-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 4px;
  box-shadow: var(--shadow); max-height: 340px; overflow-y: auto; padding: 6px;
}
.fr-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: none; background: none; cursor: pointer;
  border-radius: 4px; text-align: left; font-family: var(--sans);
}
.fr-item:hover, .fr-item.active { background: var(--accent-soft); }
.fr-sw { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.fr-name { flex: 1; font-size: 14px; color: var(--ink); font-weight: 600; }
.fr-name b { color: var(--accent-deep); font-weight: 700; }
.fr-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.fr-none { padding: 12px 10px; color: var(--ink-3); font-family: var(--sans); font-size: 13.5px; }

/* ---- decay summary (calm stat row) ---- */
.viz-lead { font-family: var(--sans); font-size: 13.5px; color: var(--ink-2); margin: 0 0 14px; max-width: 62ch; }
.decay-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: 26px; }
.ds-cell { background: var(--paper); padding: 15px 15px 15px 17px; position: relative; }
.ds-cell::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--stripe, var(--rule-strong)); }
.ds-num { font-family: var(--serif); font-size: 25px; font-weight: 700; letter-spacing: -.01em; line-height: 1; color: var(--head); }
.ds-lbl { font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.4; }

/* ---- license stacked bar ---- */
.licbar { display: flex; width: 100%; height: 46px; border-radius: 4px; overflow: hidden; gap: 2px; background: var(--paper); }
.licseg { position: relative; min-width: 3px; display: flex; align-items: center; justify-content: center; cursor: default; transition: filter .1s; }
.licseg:hover { filter: brightness(1.08); }
.licseg .segn { font-family: var(--sans); font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.licseg[data-light="1"] .segn { color: #12120f; text-shadow: none; }
.lic-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; }
.lic-legend .li { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); }
.lic-legend .sw { width: 11px; height: 11px; border-radius: 2px; flex: none; }
.lic-legend .ct { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.lic-conflict {
  font-family: var(--sans); font-size: 13px; color: var(--ink-2);
  border-left: 3px solid var(--warning); padding: 8px 0 8px 14px; margin: 18px 0 0;
}

/* ---- download block ---- */
.download {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 26px; padding: 20px 22px; border: 1px solid var(--rule); border-left: 4px solid var(--accent-deep);
  border-radius: 4px; background: var(--paper-2);
}
.dl-title { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--head); }
.dl-note { font-family: var(--sans); font-size: 13px; color: var(--ink-2); margin-top: 3px; max-width: 52ch; }
.dl-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 700; cursor: pointer;
  border: 2px solid var(--accent); background: none; color: var(--accent);
  padding: 8px 15px; border-radius: 4px; transition: background .12s, color .12s;
}
.dl-btn:hover { background: var(--accent); color: var(--paper); }

/* ---- about ---- */
.about p { font-size: 17px; }
.about-links { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; align-items: flex-start; }
.about-link {
  display: inline-block; font-family: var(--sans); font-size: 14.5px; font-weight: 700;
  color: var(--accent-deep); text-decoration: none; border-bottom: 2px solid var(--accent-soft); padding-bottom: 1px;
}
.about-link:hover { border-bottom-color: var(--accent); }

/* ---- panel: source-forward + city highlight ---- */
.cityrow.hl { background: var(--accent-soft); border-radius: 4px; box-shadow: 0 0 0 6px var(--accent-soft); }
.verify-pill {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--good-text); background: color-mix(in srgb, var(--good) 12%, transparent);
  padding: 3px 9px; border-radius: 999px; margin-bottom: 10px;
}

@media (max-width: 620px) {
  .download { flex-direction: column; align-items: flex-start; }
  .about p { font-size: 16px; }
}
