/* Immigration help & facts — one family, large type, high contrast.
   Atkinson Hyperlegible Next is designed for low-vision readers. */

:root {
  --paper: #ffffff;
  --ink: #1f2a37;
  --ink-soft: #4b5563;
  --rule: #d9dee5;
  --red: #b42318;
  --red-deep: #8f1a12;
  --blue: #1d4ed8;
  --blue-tint: #eaf2ff;
  --amber: #b54708;
  --amber-tint: #fff4e5;
  --max: 42rem;
  --step-0: 1.125rem;   /* body: 18px */
  --step-1: 1.35rem;
  --step-2: 1.7rem;
  --step-3: 2.25rem;
  --step-4: 2.9rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 0.5rem; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.topbar-row {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-top: 0.6rem; padding-bottom: 0.6rem;
}
.brand { font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1rem; }
.topnav { display: none; gap: 1rem; font-size: 0.95rem; }
.topnav a { color: var(--ink-soft); text-decoration: none; }
.topnav a:hover { color: var(--ink); text-decoration: underline; }
.lang { margin-left: auto; display: flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lang button {
  font: inherit; font-size: 0.95rem; font-weight: 700;
  background: transparent; color: var(--ink); border: 0; padding: 0.35rem 0.85rem; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (min-width: 720px) { .topnav { display: flex; } .topbar-row { flex-wrap: nowrap; } .brand { margin-right: 0.5rem; white-space: nowrap; } .topnav a { white-space: nowrap; } .topbar .wrap { max-width: 60rem; } }

/* ---------- emergency band ---------- */
.band {
  margin: 1.25rem -1rem 0;
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: 0;
}
@media (min-width: 720px) { .band { margin-left: 0; margin-right: 0; border-radius: 12px; padding: 2rem 2rem 1.5rem; } }
.band-red { background: var(--red); color: #fff; }
.band-red a { color: #fff; }
.band-kicker { margin: 0 0 0.25rem; font-weight: 700; font-size: 1rem; opacity: 0.95; }
.band-red .band-h {
  margin: 0 0 1rem;
  font-size: clamp(var(--step-3), 7vw, var(--step-4));
  line-height: 1.08; font-weight: 800; letter-spacing: -0.01em;
}
.big-rules {
  margin: 0; padding: 0; list-style: none; counter-reset: rule;
  border-top: 1px solid rgba(255,255,255,0.35);
}
.big-rules li {
  counter-increment: rule;
  display: grid; grid-template-columns: 2rem 1fr; gap: 0.5rem;
  padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.35);
  font-size: var(--step-1); line-height: 1.35; font-weight: 500;
}
.big-rules li::before { content: counter(rule); font-weight: 800; font-size: var(--step-2); line-height: 1; }
.band-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.band-foot { margin: 0.9rem 0 0; font-size: 0.95rem; opacity: 0.95; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; text-decoration: none;
  padding: 0.65rem 1rem; border-radius: 8px;
  background: var(--blue); color: #fff; border: 2px solid var(--blue);
}
.btn:hover { background: #1e40af; border-color: #1e40af; color: #fff; }
.btn-secondary { background: transparent; color: var(--blue); }
.btn-secondary:hover { background: var(--blue-tint); color: var(--blue); }
.band-red a.btn-light { background: #fff; color: var(--red-deep); border-color: #fff; }
.band-red a.btn-light:hover { background: #fde8e6; border-color: #fde8e6; color: var(--red-deep); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.8); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- sections ---------- */
.section { padding: 2.25rem 0 0.5rem; border-top: 1px solid var(--rule); margin-top: 2rem; }
.section:first-of-type { border-top: 0; }
h2 { font-size: var(--step-2); line-height: 1.2; margin: 0 0 0.5rem; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); line-height: 1.3; margin: 1.5rem 0 0.4rem; font-weight: 700; }
.lede { margin: 0 0 1.25rem; color: var(--ink-soft); }
.small { font-size: 0.95rem; color: var(--ink-soft); }
ul, ol { padding-left: 1.3rem; }
li { margin: 0.35rem 0; }

details.sit { border-top: 1px solid var(--rule); }
details.sit:last-of-type { border-bottom: 1px solid var(--rule); }
details.sit summary {
  cursor: pointer; font-weight: 700; font-size: var(--step-1); padding: 0.8rem 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
details.sit summary::-webkit-details-marker { display: none; }
details.sit summary::after { content: "+"; font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--ink-soft); }
details.sit[open] summary::after { content: "–"; }
details.sit ul { margin: 0 0 1rem; }

/* ---------- phones ---------- */
.phones { list-style: none; padding: 0; margin: 0; }
.phones li {
  display: grid; gap: 0.15rem;
  padding: 1rem 0 1rem 1rem; border-left: 5px solid var(--red); margin: 0 0 1rem;
}
.tel { font-size: var(--step-2); font-weight: 800; text-decoration: none; color: var(--ink); letter-spacing: 0.01em; line-height: 1.1; }
a.tel { color: var(--blue); text-decoration: underline; }
.tel-static { color: var(--ink); }
.phones strong { font-size: 1.05rem; }
.phones span:last-child { color: var(--ink-soft); font-size: 1rem; }

.note { padding: 0.9rem 1rem; border-radius: 8px; margin: 1.25rem 0 0; }
.note-warn { background: var(--amber-tint); border-left: 5px solid var(--amber); }
.note strong { display: block; margin-bottom: 0.15rem; }

/* ---------- steps (a real sequence) ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 1.25rem 3.25rem; margin: 0;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue); font-weight: 800;
  display: grid; place-items: center; font-size: 1.1rem;
}
.steps h3 { margin: 0.2rem 0 0.3rem; }
.steps p { margin: 0 0 0.6rem; }
.steps .btn { margin: 0.2rem 0 0.5rem; }

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 2rem; position: relative; margin: 0.6rem 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 1.1rem; height: 1.1rem; border: 2px solid var(--ink); border-radius: 4px;
}

.twocol { display: grid; gap: 1rem; }
@media (min-width: 720px) { .twocol { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.twocol h3 { margin-top: 0.75rem; }

/* ---------- data ---------- */
.chart { margin: 0.75rem 0 1.5rem; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: var(--rule); stroke-width: 1; }
.chart .axis text { font-size: 13px; fill: var(--ink-soft); text-anchor: end; }
.chart .bars rect { fill: var(--red); }
.chart .bars rect:first-child { fill: #9aa3b2; }
.chart .vals text { font-size: 15px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.chart .labels text { font-size: 14px; fill: var(--ink-soft); text-anchor: middle; }
.chart figcaption { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.5rem; }

.facts { margin: 0.5rem 0 0; padding: 0; }
.facts > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; padding: 0.8rem 0; border-top: 1px solid var(--rule); }
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-size: var(--step-1); font-weight: 800; line-height: 1.15; }
.facts dd { margin: 0; }
.facts dd a { white-space: nowrap; }
.facts-unverified dt { color: var(--amber); }
.facts-unverified > div { background: var(--amber-tint); padding-left: 0.6rem; padding-right: 0.6rem; }
@media (max-width: 480px) { .facts > div { grid-template-columns: 1fr; gap: 0.2rem; } }

.live { border: 1px dashed var(--rule); border-radius: 8px; padding: 0.75rem 1rem; }
.live ul { list-style: none; padding: 0; margin: 0; }
.live li { padding: 0.35rem 0; border-top: 1px solid var(--rule); }
.live li:first-child { border-top: 0; }
.live .when { display: block; font-size: 0.9rem; color: var(--ink-soft); }
.sources li { margin: 0.5rem 0; }

.foot { padding: 2rem 1rem 3rem; border-top: 1px solid var(--rule); margin-top: 2rem; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- print: the red band becomes a wallet card ---------- */
@media print {
  .topbar, .band-actions, .section, .foot, .skip { display: none !important; }
  body { font-size: 12pt; }
  .band-red { color: #000; background: #fff; border: 3px solid #000; border-radius: 0; margin: 0; padding: 1rem; }
  .band-red .band-h { font-size: 20pt; }
  .big-rules li { font-size: 12pt; border-color: #000; }
  .big-rules { border-color: #000; }
}

/* ===================== data.html ===================== */
.wrap-wide { max-width: 52rem; }
.page-data .topbar .wrap { max-width: 60rem; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.95rem; border-radius: 999px; }
.help-link { margin-left: auto; background: var(--red); color: #fff; border-color: var(--red); white-space: nowrap; }
.help-link:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.page-data .lang-links { display: flex; margin-left: auto; }
.lang-links a { font-size: 0.95rem; font-weight: 700; color: var(--ink); text-decoration: none; padding: 0.35rem 0.85rem; }
.lang-links a[aria-current="page"] { background: var(--ink); color: #fff; }
.page-data .help-link { margin-left: 0; }
.help-strip { display: grid; gap: 0.6rem; border: 2px solid var(--red); border-radius: 10px; padding: 0.9rem 1rem; margin: 1rem 0 0; }
.help-strip strong { display: block; font-size: 1.15rem; }
.help-strip span { color: var(--ink-soft); font-size: 1rem; }
@media (min-width: 720px) { .help-strip { grid-template-columns: 1fr auto auto; align-items: center; } }
.page-data .topbar-row { flex-wrap: nowrap; gap: 0.75rem; }
.page-data .topnav { display: flex; flex: 1; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.page-data .topnav::-webkit-scrollbar { display: none; }
.page-data .topnav a { white-space: nowrap; }
@media (max-width: 719px) { .page-data .brand { display: none; } }

.intro { padding-top: 1.5rem; }
.intro h1 { font-size: clamp(var(--step-3), 6vw, var(--step-4)); line-height: 1.08; margin: 0 0 0.5rem; font-weight: 800; letter-spacing: -0.01em; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem 1.5rem; margin: 0.5rem 0 0; padding: 0; }
.tiles > div { border-top: 3px solid var(--ink); padding-top: 0.5rem; }
.tiles dt { font-size: var(--step-2); font-weight: 800; line-height: 1.1; }
.tiles dd { margin: 0.2rem 0 0; font-size: 1rem; color: var(--ink-soft); }
.tiles-unverified > div { border-top-color: var(--amber); background: var(--amber-tint); padding: 0.5rem 0.6rem 0.6rem; }
.tiles-unverified dt { color: var(--amber); }

/* charts */
.chart figcaption { font-weight: 700; color: var(--ink); font-size: var(--step-1); margin: 0 0 0.25rem; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .axis { font-size: 16px; fill: var(--ink-soft); text-anchor: end; }
.chart .xlabel { font-size: 16px; fill: var(--ink-soft); text-anchor: middle; }
.chart .val { font-size: 17px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.chart .val.end { text-anchor: end; }
.chart .val.left { text-anchor: start; }
.chart .line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.primary { stroke: var(--red); }
.chart .line.secondary { stroke: var(--blue); stroke-dasharray: 6 5; }
.chart .dot { stroke-width: 2; }
.chart .dot.primary { fill: var(--red); stroke: #fff; }
.chart .dot.secondary { fill: var(--blue); stroke: #fff; }
.chart .dot.approx { fill: #fff; }
.chart .dot.approx.primary { stroke: var(--red); }
.chart .dot.approx.secondary { stroke: var(--blue); }
.chart .bar.primary { fill: var(--red); }
.chart .bar.cbp { fill: #9aa3b2; }
.chart .bar.approx { fill: #e4a39d; }
.chart .bars rect:first-child { fill: var(--red); }
.chart-note { font-size: 0.95rem; color: var(--ink-soft); margin: 0.4rem 0 0.3rem; }
.legend { font-size: 0.95rem; color: var(--ink-soft); margin: 0.4rem 0 0; }
.swatch { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 2px; vertical-align: -0.1em; background: var(--red); }
.swatch.secondary { background: var(--blue); }
.swatch.cbp { background: #9aa3b2; }
.swatch.approx { background: #e4a39d; }
.chart-sources, .chart-table { font-size: 0.95rem; margin: 0.2rem 0; }
.chart-sources summary, .chart-table summary { cursor: pointer; color: var(--blue); }
.chart-sources ul { margin: 0.3rem 0 0.6rem; padding-left: 1.2rem; }
.chart-sources li { margin: 0.15rem 0; word-break: break-all; }
.chart-table table { border-collapse: collapse; margin: 0.4rem 0 0.6rem; }
.chart-table th, .chart-table td { text-align: left; padding: 0.2rem 0.8rem 0.2rem 0; border-bottom: 1px solid var(--rule); }

/* policy */
.policy-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .policy-grid { grid-template-columns: 1fr 1fr; } }
.policy { border-left: 5px solid var(--ink); padding: 0.2rem 0 0.6rem 1rem; }
.policy.restrictive { border-left-color: var(--red); }
.policy.facilitative { border-left-color: #0f766e; }
.policy.mixed { border-left-color: var(--amber); }
.policy h3 { margin: 0.1rem 0 0.4rem; font-size: 1.15rem; }
.policy p { margin: 0 0 0.5rem; font-size: 1rem; }
.pol-meta { font-size: 0.9rem; color: var(--ink-soft); }
.pol-dir { font-weight: 700; }
.policy.restrictive .pol-dir { color: var(--red); }
.policy.facilitative .pol-dir { color: #0f766e; }
.policy.mixed .pol-dir { color: var(--amber); }
.pol-affects { color: var(--ink-soft); font-size: 0.95rem; }

/* news */
.newslist { padding-left: 1.4rem; }
.newslist li { margin: 0 0 1rem; }
.newslist a { font-weight: 700; }
.news-meta { display: block; font-size: 0.9rem; color: var(--ink-soft); margin: 0.1rem 0 0.2rem; }
.newslist p { margin: 0; font-size: 1rem; }

/* sides */
.side { padding: 0 0 0 1rem; border-left: 5px solid var(--rule); }
.side-a { border-left-color: #0f766e; }
.side-b { border-left-color: var(--red); }
.side ol { padding-left: 1.3rem; }
.side li { margin: 0 0 0.75rem; font-size: 1rem; }

/* georgia */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0.5rem 0 1rem; }
table.plain { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
table.plain th, table.plain td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem 0.5rem 0; border-bottom: 1px solid var(--rule); }
table.plain th { font-weight: 700; }
.courts li, .orgs li { margin: 0.5rem 0; }
.jur { margin: 0.5rem 0; padding: 0; }
.jur > div { padding: 0.5rem 0; border-top: 1px solid var(--rule); }
.jur dt { font-weight: 700; }
.jur dd { margin: 0.15rem 0 0; color: var(--ink-soft); }
code { font-size: 0.95em; background: #f3f4f6; padding: 0.05em 0.3em; border-radius: 3px; }

/* ===================== hub, panels, collapsibles ===================== */
.hub { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 1.5rem 0 0.5rem; }
@media (min-width: 760px) { .hub { grid-template-columns: repeat(3, 1fr); } }
.hub a {
  display: grid; gap: 0.2rem; text-decoration: none; color: var(--ink);
  border: 2px solid var(--rule); border-radius: 10px; padding: 0.8rem 0.9rem; min-height: 5.2rem;
}
.hub a strong { font-size: 1.1rem; }
.hub a span { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.3; }
.hub a:hover { border-color: var(--ink); }
.hub a.active { border-color: var(--red); background: #fdf2f1; }
.hub a.active strong { color: var(--red-deep); }
.topnav a.active { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 0.35em; }
.panel[hidden] { display: none; }
.panel { scroll-margin-top: 4.5rem; }

.chart-switch { display: flex; gap: 0.4rem; margin: 0.5rem 0 0.75rem; }
.chart-switch button {
  font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  border: 2px solid var(--rule); background: #fff; color: var(--ink); border-radius: 999px; padding: 0.4rem 0.9rem;
}
.chart-switch button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

details.policy summary, details.sub summary, .newslist details summary { cursor: pointer; list-style: none; }
details.policy summary::-webkit-details-marker, details.sub summary::-webkit-details-marker, .newslist details summary::-webkit-details-marker { display: none; }
details.policy summary { display: grid; gap: 0.15rem; padding: 0.3rem 1.6rem 0.4rem 0; position: relative; }
details.policy summary::after, details.sub summary::after { content: "+"; position: absolute; right: 0; top: 0.15rem; font-size: 1.5rem; line-height: 1; color: var(--ink-soft); }
details.policy[open] summary::after, details.sub[open] summary::after { content: "–"; }
.pol-title { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.pol-body { padding: 0.2rem 0 0.4rem; }
.policy-grid details.policy { padding-bottom: 0.3rem; }

.newslist details summary { padding-right: 1.4rem; position: relative; }
.newslist details summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--ink-soft); font-size: 1.3rem; line-height: 1; }
.newslist details[open] summary::after { content: "–"; }
.newslist details p { margin: 0.3rem 0 0; }

details.sub { border-top: 1px solid var(--rule); }
details.sub:last-of-type { border-bottom: 1px solid var(--rule); }
details.sub summary { font-weight: 700; font-size: var(--step-1); padding: 0.8rem 1.6rem 0.8rem 0; position: relative; }
details.sub summary::after { top: 0.75rem; }
.sub-body { padding: 0 0 0.75rem; }
.sub-body h3 { display: none; }

/* help page: collapsible secondary sections */
details.fold { border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 0.5rem; }
details.fold summary { cursor: pointer; list-style: none; position: relative; padding: 0.6rem 2rem 0.6rem 0; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary h2 { margin: 0; }
details.fold summary::after { content: "+"; position: absolute; right: 0; top: 0.5rem; font-size: 1.8rem; line-height: 1; color: var(--ink-soft); }
details.fold[open] summary::after { content: "–"; }
details.fold .section { border-top: 0; margin-top: 0; padding-top: 0.5rem; }

.help-strip .btn:first-of-type { background: var(--red); border-color: var(--red); }
.help-strip .btn:first-of-type:hover { background: var(--red-deep); border-color: var(--red-deep); }
.help-strip .btn-secondary { color: var(--red-deep); border-color: var(--red); background: #fff; }
.help-strip .btn-secondary:hover { background: #fdf2f1; color: var(--red-deep); }

.site-kicker { margin: 0 0 0.2rem; font-weight: 700; color: var(--ink-soft); font-size: 0.95rem; letter-spacing: 0.01em; }
.band-red .site-kicker { color: #fff; opacity: 0.85; margin-bottom: 0.6rem; }
.back-link { margin-left: auto; background: #fff; color: var(--ink); border-color: var(--ink); white-space: nowrap; }
.back-link:hover { background: var(--ink); color: #fff; }
.topbar-row .lang { margin-left: 0; }
.page-data .site-kicker { margin-top: 0.25rem; }

.site-title { margin: 0; font-size: clamp(2.4rem, 9vw, 3.6rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.site-sub { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 1.05rem; font-weight: 500; }
.page-title { margin: 1.75rem 0 0.5rem; font-size: var(--step-2); }
.intro-help { padding: 1.25rem 0 0.25rem; }

.mission {
  margin: 1rem 0 0; padding: 1rem 1.1rem;
  background: var(--ink); color: #fff; border-radius: 10px;
  font-size: 1.05rem; line-height: 1.5;
}
@media (max-width: 719px) {
  .page-data .topbar-row { flex-wrap: wrap; row-gap: 0.35rem; }
  .page-data .topnav { order: 3; flex-basis: 100%; }
  .page-data .lang-links { order: 1; margin-left: 0; }
  .page-data .help-link { order: 2; margin-left: auto; }
  .lang-links a { padding: 0.3rem 0.7rem; }
}

/* ===================== sticky masthead ===================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.topbar { box-shadow: 0 1px 0 var(--rule); }
.masthead { display: flex; align-items: center; gap: 0.75rem; padding-top: 0.55rem; padding-bottom: 0.45rem; }
.masthead .brand { display: grid; gap: 0.05rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-name { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; }
.brand-sub { font-size: 0.78rem; color: var(--ink-soft); font-weight: 500; line-height: 1.25; }
.masthead-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.masthead-actions .lang, .masthead-actions .lang-links { margin-left: 0; display: flex; }
.masthead-actions .help-link, .masthead-actions .back-link { margin-left: 0; }
.navrow { border-top: 1px solid var(--rule); }
.navrow .topnav { display: flex; gap: 1.1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0.45rem 0; }
.navrow .topnav::-webkit-scrollbar { display: none; }
.navrow .topnav a { white-space: nowrap; color: var(--ink-soft); text-decoration: none; font-size: 0.98rem; }
.navrow .topnav a:hover { color: var(--ink); }
.navrow .topnav a.active { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 0.35em; }
.page-data .topbar-row, .topbar-row { display: none; }
.topbar .wrap { max-width: 60rem; }
.panel { scroll-margin-top: 7.5rem; }
@media (max-width: 600px) {
  .brand-name { font-size: 1.35rem; }
  .brand-sub { display: none; }
  .masthead-actions .lang button, .lang-links a { padding: 0.3rem 0.6rem; font-size: 0.88rem; }
  .masthead-actions .btn-sm { padding: 0.3rem 0.6rem; font-size: 0.88rem; }
  .masthead { gap: 0.5rem; }
}
@media (max-width: 719px) {
  .page-data .brand { display: grid; }
}
.brand-name { white-space: nowrap; }
@media (max-width: 600px) {
  .brand-name { font-size: 1.25rem; }
  .masthead-actions { gap: 0.35rem; }
  .masthead-actions .lang button, .lang-links a { padding: 0.28rem 0.5rem; font-size: 0.82rem; }
  .masthead-actions .btn-sm { padding: 0.28rem 0.55rem; font-size: 0.82rem; }
}

.masthead .brand { flex: 1 1 auto; min-width: 0; }
.brand-name { font-size: clamp(1.05rem, 5.2vw, 1.55rem); }
.masthead-actions { flex: 0 0 auto; }

p.brand-sub { display: block; margin: 0; padding: 0 0 0.4rem; font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; line-height: 1.25; }
.masthead { padding-bottom: 0.15rem; }
.panel { scroll-margin-top: 8.5rem; }
@media (max-width: 600px) { p.brand-sub { display: block; font-size: 0.8rem; } }

/* ---------- state picker & form ---------- */
.state-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin: 0.25rem 0 1rem; }
.state-pick label { font-weight: 700; }
.state-pick select { font: inherit; font-size: 1.05rem; font-weight: 700; padding: 0.45rem 0.7rem; border: 2px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); }
.state-pick .small { flex-basis: 100%; margin: 0; }
.facts-state dt { font-size: 1.35rem; }
a.src { font-size: 0.85em; color: var(--ink-soft); }
.form { display: grid; gap: 0.9rem; max-width: 36rem; }
.form label { display: grid; gap: 0.3rem; font-weight: 700; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 0.55rem 0.7rem; border: 2px solid var(--rule); border-radius: 8px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: none; }
.form .hidden { display: none; }
.form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }

.lineage li { margin: 0.5rem 0; font-size: 1rem; }

.sit-h { font-size: 1.02rem; margin: 0.6rem 0 0.2rem; color: var(--ink-soft); }
