:root {
  --ink: #1b2c30;
  --muted: #526469;
  --navy: #12615e;
  --navy-2: #0b4644;
  --coral: #9b3e2e;
  --coral-dark: #792f24;
  --canvas: #f6f3eb;
  --panel: #fffdf8;
  --line: #bdc9c5;
  --line-cool: #cbd6d2;
  --control-border: #758b88;
  --quiet: #e9f0ec;
  --mint: #dceee5;
  --amber: #f8e9c5;
  --rose: #f7ded8;
  --good: #14583e;
  --warn: #765100;
  --bad: #883328;
  --focus: #a44831;
  --rail: #e8ede8;
  --on-action: #ffffff;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --font-mono: Consolas, "Courier New", monospace;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { min-width: 320px; margin: 0; line-height: 1.55; }
h1, h2, h3 { font-family: var(--font-display); overflow-wrap: anywhere; }
p { margin-block: .5rem 1rem; }
a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--coral-dark); }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.75rem; padding: .62rem .95rem; border: 1px solid transparent;
  border-radius: .2rem; font-weight: 650; line-height: 1.2; cursor: pointer;
  text-decoration: none;
}
.primary { background: var(--navy); color: var(--on-action); }
.primary:hover { background: var(--navy-2); color: var(--on-action); }
.secondary { background: var(--ink); color: var(--on-action); }
.secondary:hover { background: var(--navy-2); color: var(--on-action); }
.quiet { background: var(--quiet); color: var(--navy); border-color: var(--control-border); }
.quiet:hover { background: var(--line-cool); }
button:disabled { opacity: .55; cursor: not-allowed; }
input, select, textarea {
  width: 100%; min-height: 2.75rem; padding: .6rem .7rem;
  color: var(--ink); background: var(--panel); border: 1px solid var(--control-border);
  border-radius: .2rem;
}
textarea { resize: vertical; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: .7rem; font-weight: 700; }
.shell { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: .5rem; z-index: 30;
  padding: .6rem .8rem; background: var(--panel);
}
.skip-link:focus { left: .5rem; }

/* Desktop workspace rail */
.site-header.workspace-rail {
  position: fixed; inset: 0 auto 0 0; z-index: 20; width: 244px;
  background: var(--rail); border-right: 1px solid var(--line);
}
.workspace-rail .header-inner {
  width: 100%; height: 100%; margin: 0; padding: 1.5rem .9rem;
  display: flex; flex-direction: column; align-items: stretch; gap: 2.25rem;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  color: var(--ink); font-size: 1.15rem; font-weight: 750;
  letter-spacing: -.025em; line-height: 1.2; text-decoration: none;
}
.brand-mark {
  display: grid; place-items: center; flex: none;
  width: 2.25rem; height: 2.25rem; color: var(--on-action);
  background: var(--navy); border-radius: .2rem; font-weight: 700;
}
.workspace-rail .brand { padding: .2rem .7rem; }
.brand small { display: block; margin-top: .2rem; color: var(--muted); font-size: .65rem; font-weight: 600; letter-spacing: .02em; }
.site-header nav { display: flex; gap: .15rem; }
.workspace-rail nav { flex-direction: column; align-items: stretch; width: 100%; }
.nav-group { display: grid; gap: .12rem; }
.nav-group + .nav-group { margin-top: 1.5rem; }
.nav-caption { padding: .4rem .7rem; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.site-header nav a {
  display: block; padding: .65rem .7rem; border-radius: .15rem;
  color: var(--ink); font-size: .9rem; font-weight: 600;
  text-decoration: none;
}
.site-header nav a:hover { color: var(--navy); background: var(--canvas); }
.site-header nav a[aria-current="page"] {
  color: var(--on-action); background: var(--navy); font-weight: 750;
}
.header-actions { display: flex; align-items: center; gap: .55rem; font-size: .84rem; }
.workspace-rail .header-actions {
  margin-top: auto; padding: 1rem .7rem 0; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.data-menu { width: 100%; }
.data-menu summary { cursor: pointer; font-weight: 700; }
.data-menu > div { display: grid; gap: .6rem; margin-top: .8rem; }
.data-menu a { font-size: .84rem; }
.mobile-nav { display: none; }
.header-actions form { margin: 0; }
.link-button {
  min-height: 0; padding: 0; color: var(--coral-dark);
  background: none; text-decoration: underline;
}
.quiet-link { font-weight: 650; }
.workspace-main { width: min(1320px, calc(100% - 308px)); margin-left: max(276px, calc(244px + (100% - 1564px) / 2)); margin-right: 32px; }
.workspace-footer { margin-left: 244px; }
main { min-height: calc(100vh - 6rem); padding-block: 2.5rem 4rem; }
footer {
  padding: 1.5rem 0; color: var(--muted);
  background: var(--panel); border-top: 1px solid var(--line-cool);
  font-size: .86rem;
}

/* Home: current task, next action, then reference material */
.home-lead {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(17rem, .65fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start; padding: 1rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.home-copy h1 { max-width: 17ch; margin: .2rem 0 1rem; font-size: clamp(2.6rem, 4.5vw, 4.2rem); line-height: 1.08; letter-spacing: -.035em; }
.home-copy .lead { max-width: 39rem; font-size: 1.08rem; line-height: 1.65; }
.home-copy .hero-actions { margin-top: 1.7rem; }
.text-action { align-self: center; font-weight: 700; }
.current-state { padding: 1.3rem; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--navy); }
.current-state .state-label { display: block; margin-bottom: .65rem; color: var(--muted); font-size: .74rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.current-state > strong { display: block; font-size: 1.2rem; }
.current-state > p { color: var(--muted); font-size: .9rem; }
.current-state dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 1.2rem 0; }
.current-state dl div { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem 0; border-top: 1px solid var(--line-cool); }
.current-state dt, .current-state dd { margin: 0; font-size: .84rem; }
.current-state dd { color: var(--ink); font-weight: 700; }
.current-state > a { font-size: .88rem; font-weight: 700; }
.journey-section { margin: 2.2rem 0 3rem; }
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.journey li { min-width: 0; border-top: 3px solid var(--line); }
.journey li.current { border-color: var(--navy); }
.journey li.visited { border-color: var(--good); }
.journey a { display: grid; grid-template-columns: auto 1fr auto; gap: .65rem; padding: .75rem .25rem; color: var(--ink); text-decoration: none; }
.journey a:hover { color: var(--navy); }
.step-number { font-family: var(--font-mono); color: var(--navy); font-size: .8rem; }
.journey strong, .journey small { display: block; }
.journey small { margin-top: .35rem; color: var(--muted); line-height: 1.45; }
.step-arrow { color: var(--navy); }
.home-tools { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, .65fr); gap: 2rem; margin-bottom: 3rem; }
.home-search { padding: 1.3rem 0; border-block: 2px solid var(--ink); }
.home-search h2, .tool-list h2 { margin: 0; font-size: 1.25rem; }
.home-search p { max-width: 35rem; color: var(--muted); font-size: .9rem; }
.home-search .search-form { margin-top: 1rem; }
.tool-list { display: grid; align-content: start; gap: 0; padding-top: 1.3rem; border-top: 2px solid var(--navy); }
.tool-list h2 { margin-bottom: .6rem; }
.tool-list a { display: flex; justify-content: space-between; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid var(--line-cool); font-size: .9rem; font-weight: 650; text-decoration: none; }
.tool-list a:hover { text-decoration: underline; }
.hint { max-width: 60rem; margin: .55rem 0 1.4rem; color: var(--muted); font-size: .88rem; }
.country-browser { min-width: 0; margin-top: 1rem; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: .4rem 1rem; padding-bottom: .65rem;
  border-bottom: 2px solid var(--navy);
}
.section-head h2 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.section-head p { margin: 0; color: var(--muted); font-size: .85rem; }
.country-index {
  width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed;
  font-variant-numeric: tabular-nums;
}
.country-index th, .country-index td { padding: .72rem .5rem; }
.country-index th:first-child, .country-index td:first-child { padding-left: 0; }
.country-index th:last-child, .country-index td:last-child { padding-right: 0; }
.country-index thead th {
  color: var(--muted); background: transparent; text-transform: none;
  letter-spacing: 0; font-size: .78rem; font-weight: 650;
}
.country-index tbody tr:hover { background: var(--canvas); }
.country-index tbody th { font-size: .94rem; font-weight: 700; }
.country-index td { color: var(--muted); font-size: .87rem; }
.country-index th:nth-child(n+2), .country-index td:nth-child(n+2) { text-align: right; }
.index-country { color: var(--navy); font-weight: 700; text-decoration: none; }
.index-country:hover { text-decoration: underline; }
.index-metric { color: var(--ink); font-weight: 650; white-space: nowrap; }
.catalog-notes { margin-top: 1.5rem; color: var(--muted); font-size: .84rem; }

/* Shared page headings, lists, forms and feedback */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, .35fr); gap: 2rem; align-items: start; padding: .5rem 0 2rem; }
.hero h1, .page-heading h1, .route-detail h1, .error-page h1 {
  margin: 0 0 .7rem; font-size: clamp(1.75rem, 3vw, 2.15rem);
  line-height: 1.18; letter-spacing: -.03em; font-weight: 750;
}
.eyebrow { margin: 0 0 .6rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.lead { max-width: 49rem; color: var(--muted); font-size: 1rem; }
.hero-actions, .detail-actions, .form-actions, .card-actions, .remove-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: 1.2rem;
}
.hero-facts { border-top: 2px solid var(--navy); }
.hero-facts div { display: flex; align-items: baseline; gap: .7rem; padding: .65rem 0; border-bottom: 1px solid var(--line-cool); }
.hero-facts strong { color: var(--navy); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.hero-facts span, .hero-facts p { font-size: .82rem; color: var(--muted); }
.search-panel { display: grid; grid-template-columns: minmax(12rem, .6fr) minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-block: 1px solid var(--line-cool); }
.search-panel h2 { margin: 0; font-size: 1.2rem; }
.search-panel p { margin: .25rem 0; color: var(--muted); }
.search-form { display: flex; align-items: end; gap: .5rem; }
.search-form input { flex: 1; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; margin-top: 2rem; }
.steps article { padding-top: .7rem; border-top: 2px solid var(--navy); }
.steps article > span { color: var(--coral-dark); font-weight: 750; }
.steps h2 { margin: .4rem 0; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); font-size: .9rem; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-heading { padding-bottom: 1.35rem; border-bottom: 1px solid var(--line); }
.page-heading > div { min-width: 0; }
.page-heading p:last-child { margin-bottom: 0; max-width: 50rem; color: var(--muted); }
.notice, .privacy-note { margin: 0 0 1rem; padding: .8rem 1rem; border-left: 3px solid var(--navy); background: var(--quiet); }
.notice ul { margin: .4rem 0 0; }
.notice-error { background: var(--rose); border-color: var(--bad); }
.notice-ok { background: var(--mint); border-color: var(--good); }
.notice-warn { background: var(--amber); border-color: var(--warn); }
.privacy-note p { margin: .25rem 0 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.profile-jump { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.4rem 0 .8rem; }
.profile-jump a { padding: .45rem .65rem; color: var(--navy); background: var(--quiet); font-size: .82rem; font-weight: 700; text-decoration: none; }
.profile-jump a:hover { text-decoration: underline; }
.profile-form { display: grid; gap: 1rem; }
.form-section, .detail-section, .import-box {
  padding: 1.2rem 0; background: transparent; border-top: 1px solid var(--line-cool);
}
.form-section { display: grid; grid-template-columns: minmax(11rem, .32fr) minmax(0, 1fr); gap: 1.5rem; }
.form-section:target, .detail-section:target { outline: 2px solid var(--navy); outline-offset: .35rem; }
.section-title h2, .detail-section h2 { margin: 0 0 .35rem; font-size: 1.25rem; }
.section-title p { margin: 0; color: var(--muted); font-size: .88rem; }
.field-grid, .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field-grid label, .fields label, .answer-form label, .filter-bar label, .import-box label {
  display: grid; gap: .3rem; font-size: .87rem; font-weight: 650;
}
.fields label small { color: var(--muted); font-weight: 400; }
.wide { grid-column: 1 / -1; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.check-card, .check { display: flex !important; align-items: flex-start !important; gap: .55rem !important; font-weight: 500 !important; }
.check-card { padding: .55rem; background: var(--panel); border: 1px solid var(--line-cool); border-radius: .2rem; }
.check-card:has(input:checked) { border-color: var(--good); background: var(--mint); }
.check-card input, .check input { width: auto; min-height: 0; margin-top: .2rem; }
.form-actions { justify-content: flex-end; }
.import-box { margin-top: 1rem; }
.import-box summary { cursor: pointer; font-weight: 700; }
.import-box form { display: grid; gap: .7rem; margin-top: 1rem; }

.filter-bar {
  display: grid; grid-template-columns: minmax(13rem, 1fr) minmax(10rem, .4fr) auto;
  align-items: end; gap: .8rem; padding: .9rem 0;
  border-block: 1px solid var(--line-cool);
}
.filter-bar button, main > form[action="/points"] > button, .card form button { color: var(--panel); background: var(--navy); }
.filter-bar button:hover, main > form[action="/points"] > button:hover, .card form button:hover { background: var(--navy-2); }
.result-summary { margin: 1rem 0; color: var(--muted); }
.result-summary strong { color: var(--ink); font-size: 1.1rem; }
.result-summary span { display: block; margin-top: .2rem; font-size: .82rem; }
.country-group { margin-top: 1.6rem; }
.country-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--navy); margin-bottom: .2rem; }
.country-group-head h2 { margin: 0 0 .4rem; font-size: 1.25rem; }
.country-group-head span { color: var(--muted); font-size: .84rem; }
.country-more { display: inline-block; margin: .4rem 0 1rem; font-weight: 700; }
.route-card { margin: 0; padding: 1.2rem 0 1.2rem 1.1rem; border-bottom: 1px solid var(--line-cool); border-left: 3px solid var(--line); }
.route-card:has(.badge.good) { border-left-color: var(--good); }
.route-card:has(.badge.bad) { border-left-color: var(--bad); }
.route-top { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.route-country { margin: 0 0 .25rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.route-card h2 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.route-card h2 a { text-decoration: none; }
.route-card h2 a:hover { text-decoration: underline; }
.route-card > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.route-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .65rem; color: var(--muted); font-size: .82rem; }
.route-meta span::before { content: "·"; margin-right: .4rem; color: var(--line); }
.card-actions { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line-cool); }
.card-actions form, .detail-actions form, .remove-actions form { margin: 0; }
.badge { display: inline-flex; padding: .25rem .5rem; border-radius: .2rem; font-size: .73rem; font-weight: 750; line-height: 1.2; }
.badge.good { background: var(--mint); color: var(--good); }
.badge.warn { background: var(--amber); color: var(--warn); }
.badge.bad { background: var(--rose); color: var(--bad); }
.badge.neutral { background: var(--quiet); color: var(--muted); }
.badge-stack { display: grid; justify-items: end; gap: .35rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.pagination a { font-weight: 700; }
.empty { padding: 2rem 0; border-top: 1px solid var(--line-cool); }
.empty h2 { margin-top: 0; font-size: 1.35rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-cool); background: var(--panel); }
.countries-table { max-width: 100%; }
table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .87rem; }
caption { padding: .8rem; color: var(--muted); text-align: left; }
th, td { padding: .75rem .85rem; border-top: 1px solid var(--line-cool); text-align: left; vertical-align: top; }
thead th { border-top: 0; color: var(--muted); background: var(--canvas); font-size: .76rem; font-weight: 700; }
tbody th { font-size: .9rem; }
.meta { display: block; margin-top: .25rem; color: var(--muted); font-size: .76rem; font-weight: 400; }
.source-cell { white-space: nowrap; }
.source-cell > * { display: block; }
.compare-table th:first-child { position: sticky; left: 0; z-index: 1; background: var(--canvas); }
.compare-table td, .compare-table th { min-width: 14rem; }
.compare-mobile { display: none; }

.back-link { display: inline-block; margin-bottom: 1.2rem; font-weight: 700; }
.route-detail-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 1rem; }
.route-detail-head { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.detail-status { display: grid; justify-items: end; gap: .5rem; color: var(--muted); font-size: .83rem; }
.detail-actions { margin-bottom: 1.2rem; }
.evidence-note { margin: 1.2rem 0; padding: .8rem 1rem; border-left: 3px solid var(--navy); background: var(--quiet); }
.evidence-note p { margin: .3rem 0 0; }
.conditions { display: grid; gap: 0; }
.condition {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .33fr);
  gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line-cool);
  border-left: 3px solid var(--warn);
}
.condition.pass { border-left-color: var(--good); }
.condition.fail { border-left-color: var(--bad); }
.condition:target { background: var(--quiet); outline: 2px solid var(--navy); outline-offset: .15rem; }
.condition-copy { min-width: 0; padding-left: .8rem; }
.section-intro { max-width: 42rem; color: var(--muted); font-size: .9rem; }
.condition h3 { margin: .6rem 0; font-size: 1rem; }
.condition .badge + .badge { margin-left: .35rem; }
.answer-form { display: grid; align-content: start; gap: .6rem; }
.source-list { display: grid; gap: .3rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.source-list li { font-size: .82rem; }
.source-list .meta { display: inline; margin-left: .35rem; }
.source-disclosure { margin-top: .65rem; }
.source-disclosure > summary { color: var(--navy); cursor: pointer; font-size: .86rem; font-weight: 650; }
.detail-section { margin-top: 1.2rem; }
.detail-section h3 { margin: 1rem 0 .3rem; font-size: 1rem; }
.detail-section p { white-space: pre-line; }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.amount-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.amount-grid article { padding: .7rem 0; border-top: 1px solid var(--line-cool); }
.amount-grid strong, .amount-grid span { display: block; }
.amount-grid strong { font-size: 1.1rem; }
.amount-grid span { color: var(--coral-dark); font-weight: 700; }
.amount-grid p { font-size: .85rem; }
.amount-grid small { color: var(--muted); }
.known-blockers { margin-top: 1rem; padding: .7rem 1rem; background: var(--rose); }
.known-blockers ul { margin: .35rem 0 0; }
.blocker-section { border-left: 3px solid var(--bad); padding-left: 1rem; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.evidence-item { padding: .7rem 0; border-top: 1px solid var(--line-cool); }
.evidence-item.profile-match { border-color: var(--good); }
.evidence-item h3 { margin: 0 0 .35rem; }
.applicability { color: var(--muted); font-size: .85rem; }

main > .actions { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1.2rem; }
main > .actions a { padding: .45rem .65rem; color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 650; }
main > .actions a[aria-current="page"] { color: var(--navy); background: var(--quiet); }
main > form[action="/points"], main > .card { margin-top: 1rem; padding: 1rem 0; border-top: 1px solid var(--line-cool); }
main > form[action="/points"] fieldset { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line-cool); }
main > form[action="/points"] legend { padding-right: .8rem; font-size: 1.1rem; }
main > form[action="/points"] > .check { margin: 1.2rem 0; }
.card .score strong { color: var(--coral-dark); font-size: 2rem; font-variant-numeric: tabular-nums; }
.card table { min-width: 0; }
.card form { margin-top: 1rem; }
.plan-list { display: grid; gap: 0; margin: 1rem 0; padding: 0; list-style: none; }
.plan-list > li { padding: .9rem 0; border-top: 1px solid var(--line-cool); border-left: 3px solid var(--navy); }
.plan-list > li.barrier { border-left-color: var(--bad); }
.plan-list > li.confirm { border-left-color: var(--warn); }
.plan-list label { display: flex; align-items: start; gap: .7rem; padding-left: .8rem; }
.plan-list input { width: auto; min-height: 0; margin-top: .25rem; }
.plan-list label span { display: grid; min-width: 0; gap: .25rem; }
.plan-list label strong { color: var(--muted); font-size: .78rem; }
.plan-list input:checked + span { color: var(--muted); text-decoration: line-through; }
.confirmation { max-width: 43rem; margin: 3rem auto; padding: 2rem; background: var(--panel); border: 1px solid var(--line); border-top: 5px solid var(--coral); }
.confirmation h1 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.12; }
.confirmation > p:not(.eyebrow) { font-size: 1.03rem; }
.confirmation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.2rem; }
.confirmation-actions form { margin: 0; }
.destructive { background: var(--coral); color: var(--on-action); }
.destructive:hover { background: var(--coral-dark); }
.error-page { max-width: 40rem; margin: 2rem auto; }
.error-code { margin: 0; color: var(--coral); font-size: 3.5rem; font-weight: 750; }
dl { display: grid; grid-template-columns: minmax(8rem, .3fr) minmax(0, 1fr); gap: .45rem 1rem; margin: 1rem 0; }
dt { min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--muted); }
.card dl, .card > article + article { padding-top: 1rem; border-top: 1px solid var(--line-cool); }
.card > article + article { margin-top: 1rem; }

@media (max-width: 900px) {
  .site-header.workspace-rail { position: static; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-rail .header-inner { width: min(1120px, calc(100% - 3rem)); height: auto; margin-inline: auto; padding: .8rem 0; flex-direction: row; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
  .workspace-rail .brand { padding: 0; }
  .workspace-rail .desktop-nav { display: none; }
  .mobile-nav { display: block; order: 3; flex: 0 0 100%; }
  .mobile-nav summary { display: block; padding: .6rem .75rem; color: var(--on-action); background: var(--navy); font-weight: 700; cursor: pointer; }
  .mobile-nav summary::after { content: " +"; float: right; }
  .mobile-nav[open] summary::after { content: " −"; }
  .mobile-nav nav { display: grid; gap: .6rem; padding: .7rem; background: var(--panel); border: 1px solid var(--line); }
  .mobile-nav .nav-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .2rem; margin: 0; }
  .mobile-nav .nav-caption { grid-column: 1 / -1; }
  .site-header nav a { padding: .55rem .6rem; }
  .workspace-rail .header-actions { margin: 0 0 0 auto; padding: 0; border: 0; }
  .data-menu { width: auto; }
  .data-menu > div { position: absolute; right: 1.5rem; z-index: 10; min-width: 12rem; padding: .8rem; background: var(--panel); border: 1px solid var(--line); }
  .workspace-main { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
  .workspace-footer { margin-left: 0; }
  .home-lead { grid-template-columns: minmax(0,1fr) minmax(15rem,.65fr); gap: 1.5rem; }
  .home-tools { grid-template-columns: 1fr; gap: 1.2rem; }
  .journey { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-section { grid-template-columns: 1fr; gap: .8rem; }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .condition { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .shell, .workspace-rail .header-inner { width: min(100% - 1.4rem, 1120px); }
  main { padding-block: 1.5rem 3rem; }
  .workspace-rail .header-actions { flex: 0 0 auto; justify-content: flex-end; }
  .brand { font-size: 1rem; }
  .brand small { display: none; }
  .home-lead, .hero, .search-panel, .steps, .field-grid, .fields, .detail-columns, .amount-grid, .evidence-grid { grid-template-columns: 1fr; }
  .home-copy h1 { font-size: clamp(2.45rem, 10vw, 3.25rem); }
  .home-lead { gap: 1.4rem; padding-top: .6rem; }
  .journey { grid-template-columns: 1fr; gap: .1rem; }
  .journey li { border-top-width: 1px; }
  .journey li.current { border-left: 3px solid var(--navy); }
  .journey a { padding: .7rem .45rem; }
  .journey small { margin-top: .1rem; }
  .home-search .search-form { flex-direction: column; align-items: stretch; }
  .country-index { display: block; }
  .country-index thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .country-index tbody { display: block; }
  .country-index tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .1rem .5rem; padding: .75rem 0; border-bottom: 1px solid var(--line-cool); }
  .country-index th, .country-index td { display: block; padding: 0; border: 0; text-align: left !important; }
  .country-index tbody th { grid-column: 1 / -1; }
  .country-index td { min-width: 0; font-size: .8rem; }
  .country-index td::before { display: block; margin-top: .3rem; color: var(--muted); font-size: .71rem; font-weight: 500; }
  .country-index td:nth-child(2)::before { content: "Зима"; }
  .country-index td:nth-child(3)::before { content: "Аренда в месяц"; }
  .country-index td:nth-child(4)::before { content: "Программы"; }
  .index-metric { white-space: normal; }
  .search-form { flex-direction: column; align-items: stretch; }
  .page-heading, .route-top, .route-detail-head { display: block; }
  .page-heading > .button { margin-top: .8rem; }
  .filter-bar { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .badge-stack, .detail-status { justify-items: start; margin-top: .6rem; }
  .compare-table { display: none; }
  .compare-mobile { display: grid; gap: .8rem; }
  .compare-item { min-width: 0; padding: 1rem; background: var(--panel); border: 1px solid var(--line); }
  .compare-item h2 { margin: 0; font-size: 1.15rem; }
  .compare-item dl { display: block; margin: 1rem 0; }
  .compare-item dl div { padding: .65rem 0; border-top: 1px solid var(--line-cool); }
  .compare-item dt { color: var(--muted); font-size: .78rem; }
  .compare-item dd { margin: .2rem 0 0; color: var(--ink); }
  .remove-actions { display: none; }
  .countries-table { overflow: visible; border: 0; background: transparent; }
  .countries-table table, .countries-table tbody, .countries-table tr, .countries-table th, .countries-table td { display: block; width: 100%; min-width: 0; }
  .countries-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .countries-table caption { display: block; width: 100%; padding: .6rem 0; }
  .countries-table tbody tr { margin: .8rem 0; padding: .8rem 1rem; background: var(--panel); border: 1px solid var(--line); }
  .countries-table th, .countries-table td { padding: .5rem 0; border: 0; }
  .countries-table th { font-size: 1.08rem; }
  .countries-table td { border-top: 1px solid var(--line-cool); }
  .countries-table td::before { display: block; margin-bottom: .12rem; color: var(--muted); font-size: .72rem; font-weight: 700; }
  .countries-table td:nth-child(2)::before { content: "Город и климат"; }
  .countries-table td:nth-child(3)::before { content: "Море"; }
  .countries-table td:nth-child(4)::before { content: "Бюджет в месяц"; }
  .countries-table td:nth-child(5)::before { content: "Школа"; }
  .countries-table td:nth-child(6)::before { content: "Медицина"; }
  .countries-table td:nth-child(7)::before { content: "Полнота"; }
  .countries-table td:nth-child(8)::before { content: "Источники"; }
  .source-cell { white-space: normal; }
  .pagination { justify-content: space-between; }
  .pagination span { font-size: .8rem; }
  dl { grid-template-columns: minmax(0,1fr); gap: .15rem; }
  dd { margin-bottom: .65rem; }
  .confirmation { margin: 1rem auto; padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
