/* Hayat Clinics public site.
   Look: an ophthalmic instrument console. Night-blue surfaces with a corneal topography map as the
   signature graphic, calm paper-white reading areas, and a refined type pairing: Instrument Serif for
   headlines, Geist for text, Geist Mono for measured values. Red/green are reserved for data
   (red dashed = without treatment, green solid = with treatment) and are always paired with line
   style and a text label. All fonts are SIL OFL. */

@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --night: #06121c;
  --night-2: #0c1f31;
  --night-3: #16314a;
  --paper: #f3f6f8;
  --surface: #ffffff;
  --ink: #0b1a2a;
  --ink-soft: #4b5c6f;
  --mist: #d7e0e7;
  --scan: #7fe3d6;
  --scan-deep: #0f766e;
  --red: #b42318;
  --red-soft: #fbeae8;
  --green: #1b6b46;
  --green-soft: #e3f1ea;
  --focus: #3b5bdb;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --s-0: 0.82rem;
  --s-1: 1rem;
  --s-2: 1.25rem;
  --s-3: 1.6rem;
  --s-4: 2.1rem;
  --s-5: 2.8rem;
  --s-6: 3.8rem;

  --measure: 66ch;
  --wide: 1180px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.site-header :focus-visible, .subnav :focus-visible, .hero :focus-visible, .page-head :focus-visible, .site-footer :focus-visible { outline-color: var(--scan); }
::selection { background: #cfeee9; }

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

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); }

h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.012em; margin: 0 0 0.5em; }
h3, h4 { font-family: var(--sans); font-weight: 600; line-height: 1.25; letter-spacing: -0.005em; margin: 0 0 0.45em; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.22rem; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }
.small { font-size: var(--s-0); color: var(--ink-soft); }

/* ---------- header ---------- */
.site-header { background: var(--night); color: #e8f0f6; border-bottom: 1px solid #1c3347; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; letter-spacing: 0; line-height: 1; }
.brand span { font-size: 0.86rem; color: #9db2c4; border-left: 1px solid #2b465c; padding-left: 12px; line-height: 1.2; }
.nav { display: flex; gap: 4px 26px; flex-wrap: wrap; margin-right: auto; }
.nav a { text-decoration: none; padding: 6px 0; color: #c3d2de; font-weight: 500; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--scan); }
.header-actions { display: flex; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 500; font-size: 1rem;
  padding: 11px 20px; border-radius: 10px; border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: #1c3550; border-color: #1c3550; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(11,26,42,.06); }
.btn.go { background: var(--scan-deep); border-color: var(--scan-deep); color: #fff; }
.btn.go:hover { background: #0b5d57; border-color: #0b5d57; }
.site-header .btn.ghost, .hero .btn.ghost, .page-head .btn.ghost { color: #e8f0f6; border-color: #4a6a84; }
.site-header .btn.ghost:hover, .hero .btn.ghost:hover, .page-head .btn.ghost:hover { background: rgba(255,255,255,.08); border-color: #8fb0c9; }
.hero .btn.go { background: var(--scan); border-color: var(--scan); color: var(--night); font-weight: 600; }
.hero .btn.go:hover { background: #a3efe6; border-color: #a3efe6; }

/* ---------- hero: the topography console ---------- */
.hero { background: var(--night); color: #e8f0f6; position: relative; overflow: hidden; padding: clamp(44px, 7vw, 96px) 0 clamp(52px, 7vw, 104px); }
.hero::before { content: ""; position: absolute; inset: 0; background:
    radial-gradient(60% 80% at 78% 45%, rgba(47,207,154,.10), transparent 70%),
    linear-gradient(rgba(127,227,214,.045) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(127,227,214,.045) 1px, transparent 1px) 0 0 / 56px 100%; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(3rem, 6.8vw, 5.4rem); line-height: 1; }
.hero h1 em { font-style: italic; color: var(--scan); }
.hero .lede { color: #b4c6d5; font-size: 1.25rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-map { margin: 0; position: relative; }
.hero-map img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 60px rgba(47,207,154,.18)); }
.hero-map figcaption { font-family: var(--mono); font-weight: 500; font-size: 0.78rem; color: #7da0b9; letter-spacing: 0.04em; margin-top: 8px; text-align: right; }

.legend-ramp { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 500; font-size: 0.75rem; color: #7da0b9; }
.legend-ramp i { flex: 1; max-width: 220px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #2c5fd0, #27b8d8, #7bd957, #f3b53a, #dc3a30); }

/* ---------- panels, forms ---------- */
.panel { background: var(--surface); border: 1px solid var(--mist); border-radius: 16px; padding: clamp(20px, 3vw, 28px); box-shadow: 0 1px 0 rgba(11,26,42,.04), 0 18px 40px -28px rgba(11,26,42,.35); }
.panel h2 { font-size: 1.9rem; margin-bottom: 14px; }
.panel .hint { color: var(--ink-soft); margin-bottom: 18px; }
.field { margin-bottom: 15px; }
.field > label, .field > .legend { display: block; font-weight: 500; margin-bottom: 6px; }
.field .help { display: block; font-size: 0.88rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.45; }
select, input[type="number"], input[type="text"], input[type="email"], input[type="date"], textarea {
  font: inherit; color: var(--ink); width: 100%;
  padding: 10px 12px; border: 1.5px solid #b8c6d1; border-radius: 10px; background: #fff;
}
input[type="number"] { font-family: var(--mono); font-weight: 500; }
select:focus, input:focus, textarea:focus { border-color: var(--focus); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid #b8c6d1; border-radius: 999px; cursor: pointer; font-weight: 400; background: #fff; }
.choice input { accent-color: var(--scan-deep); }
.choice label:has(input:checked) { border-color: var(--ink); background: #eaf0f4; font-weight: 500; }

.outcome { margin-top: 18px; border-top: 1px solid var(--mist); padding-top: 14px; }
.outcome .line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 7px 0; }
.outcome .line .k { color: var(--ink-soft); }
.outcome .line .v { font-family: var(--mono); font-weight: 500; font-size: 1.25rem; white-space: nowrap; }
.outcome .line.untreated .v { color: var(--red); }
.outcome .line.treated .v { color: var(--green); }
.outcome .note { font-size: 0.9rem; color: var(--ink-soft); margin: 10px 0 0; }
.chart-svg { display: block; width: 100%; height: auto; margin-top: 14px; background: #fff; border: 1px solid var(--mist); border-radius: 14px; padding: 6px; }
.chart-svg text { font-family: var(--sans); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--mist); }
.section.alt { background: var(--surface); }
.section.dark { background: var(--night-2); color: #e8f0f6; border-top: 0; }
.section.dark .lede, .section.dark p { color: #b4c6d5; }
.section-head { max-width: 62ch; margin-bottom: 36px; }

.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.path { padding: 24px 28px 28px 0; }
.path + .path { padding-left: 28px; border-left: 1px solid var(--mist); }
.path h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.path p { color: var(--ink-soft); }

/* evidence table */
.evidence { width: 100%; border-collapse: collapse; font-size: 1rem; }
.evidence caption { text-align: left; color: var(--ink-soft); padding-bottom: 12px; font-size: 0.95rem; }
.evidence th, .evidence td { text-align: left; padding: 14px 14px 14px 0; border-bottom: 1px solid var(--mist); vertical-align: top; font-weight: 400; }
.evidence tbody th { font-weight: 500; }
.evidence thead th { font-size: 0.88rem; color: var(--ink-soft); font-weight: 500; border-bottom: 1px solid var(--ink); }
.evidence td.num { white-space: nowrap; font-family: var(--mono); font-weight: 500; }
.evidence thead th.num { font-family: var(--sans); }
.bar { display: block; height: 8px; border-radius: 4px; background: var(--green-soft); margin-top: 6px; min-width: 120px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--green); }
.evidence .src { color: var(--ink-soft); font-size: 0.9rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.evidence tr[aria-current="true"] td { background: #eef6f4; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 52px; margin: 0; padding: 0; list-style: none; }
.features li { border-top: 1px solid var(--mist); padding-top: 16px; }
.features li h3 { font-size: 1.15rem; margin-bottom: 4px; }
.features li p { color: var(--ink-soft); margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }

.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.facts dt { font-weight: 500; }
.facts dd { margin: 0; color: var(--ink-soft); }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: 16px 0; border-bottom: 1px solid var(--mist); }
.news-list time { display: block; color: var(--ink-soft); font-family: var(--mono); font-weight: 500; font-size: 0.8rem; margin-bottom: 3px; letter-spacing: 0.02em; }
.news-list a { font-weight: 500; font-size: 1.1rem; text-decoration: none; }
.news-list a:hover { text-decoration: underline; }
.news-list p { margin: 6px 0 0; color: var(--ink-soft); }

.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote { margin: 1.4em 0; padding: 6px 0 6px 22px; border-left: 2px solid var(--scan-deep); }
.prose blockquote p { margin-bottom: 0.6em; font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; }
.prose blockquote footer { color: var(--ink-soft); font-size: 0.95rem; font-family: var(--sans); }

/* page header: night band with the faint topography map */
.page-head { background: var(--night); color: #e8f0f6; padding: clamp(44px, 6vw, 84px) 0 clamp(36px, 5vw, 60px);
  box-shadow: 0 0 0 100vmax var(--night); clip-path: inset(0 -100vmax);
  background-image: url("img/cornea-map.svg"); background-repeat: no-repeat; background-position: right -60px center; background-size: auto 190%; }
.page-head::after { content: ""; position: absolute; }
.page-head h1 { max-width: 20ch; color: #fff; margin-bottom: 0.3em; }
.page-head .lede { color: #b4c6d5; margin-bottom: 0; }
.page-head > * { position: relative; }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 40%, rgba(6,18,28,.7) 70%, rgba(6,18,28,.45)); }
.page-head { position: relative; }
.page-head .mode-switch { margin: 22px 0 0; }

.callout { background: var(--green-soft); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.callout.warn { background: var(--red-soft); }
.callout p:last-child { margin-bottom: 0; }

.refs { font-size: 0.95rem; color: var(--ink-soft); padding-left: 1.3em; }
.refs li { margin-bottom: 0.55em; }

/* calculator page */
.calc { display: grid; grid-template-columns: minmax(0, 390px) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; padding-top: 40px; }
.mode-switch { display: inline-flex; border: 1.5px solid #4a6a84; border-radius: 10px; padding: 3px; }
.mode-switch button { font: inherit; font-weight: 500; border: 0; background: transparent; color: #c3d2de; padding: 8px 18px; border-radius: 8px; cursor: pointer; }
.mode-switch button[aria-pressed="true"] { background: var(--scan); color: var(--night); }
.doctor-only[hidden] { display: none; }
.result-block h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.summary-text { font-family: var(--serif); font-size: 1.65rem; line-height: 1.3; max-width: 34ch; }
.summary-text strong { font-weight: 400; font-family: var(--mono); font-size: 0.82em; white-space: nowrap; }
.summary-text strong.r { color: var(--red); }
.summary-text strong.g { color: var(--green); }
.risks { list-style: none; padding: 0; margin: 16px 0; }
.risks li { padding: 11px 14px; border-radius: 10px; background: var(--red-soft); margin-bottom: 8px; }
.risks li.lower { background: var(--green-soft); }
.legend-row { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 0.92rem; color: var(--ink-soft); margin-top: 10px; }
.legend-row span::before { content: ""; display: inline-block; width: 26px; height: 0; vertical-align: middle; margin-right: 8px; border-top: 3px solid currentColor; }
.legend-row .lr { color: var(--red); }
.legend-row .lr::before { border-top-style: dashed; }
.legend-row .lg { color: var(--green); }
.legend-row .lh { color: var(--ink-soft); }
.legend-row .lh::before { border-top: 1px dotted var(--ink-soft); }
.error-text { color: var(--red); font-weight: 500; }

/* myopia section sub-navigation, news cards, pathway */
.subnav { background: var(--night-2); border-bottom: 1px solid #1c3347; }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; }
.subnav a { color: #b4c6d5; text-decoration: none; padding: 12px 14px; font-weight: 500; font-size: 0.95rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: #fff; }
.subnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--scan); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding-top: 32px; }
.chips a { padding: 7px 15px; border: 1.5px solid #b8c6d1; border-radius: 999px; text-decoration: none; background: #fff; font-size: 0.95rem; }
.chips a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cards { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--mist); border-radius: 14px; padding: 24px; box-shadow: 0 18px 40px -32px rgba(11,26,42,.4); }
.card h2 { font-family: var(--serif); font-size: 1.65rem; line-height: 1.12; margin: 10px 0 10px; }
.card .meta { margin: 0; font-size: 0.85rem; color: var(--ink-soft); font-family: var(--mono); font-weight: 500; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 6px; background: #e4f3f1; color: #0b5d57; font-family: var(--sans); font-weight: 500; font-size: 0.8rem; margin-right: 8px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; padding: 22px 22px 26px 0; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--mist); }
.steps h3::before { content: counter(s); display: block; font-family: var(--serif); font-style: italic; font-size: 2.6rem; font-weight: 400; color: var(--scan-deep); line-height: 1; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); }
.checklist { border: 1px solid var(--ink); border-radius: 14px; padding: 10px 26px 18px; background: var(--surface); }

/* planner */
.plan h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.plan h3 { margin-top: 1.8em; font-size: 1.25rem; }
.panel h2.sub { font-size: 1.4rem; margin-top: 1.4em; padding-top: 1em; border-top: 1px solid var(--mist); }
.panel details.opt { margin: 4px 0 8px; }
.panel details.opt summary { cursor: pointer; font-weight: 500; padding: 6px 0; }
.checks { display: grid; gap: 8px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0; }
.checks input { margin-top: 5px; accent-color: var(--scan-deep); }
.plan-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.plan-chip { background: #fff; border: 1px solid var(--mist); border-radius: 999px; padding: 6px 14px; font-size: 0.95rem; }
.plan-chip b { font-weight: 600; }
.mono { font-family: var(--mono); font-weight: 500; }
.plan-cards { display: grid; gap: 14px; }
.plan-card { background: #fff; border: 1px solid var(--mist); border-left: 5px solid var(--scan-deep); border-radius: 12px; padding: 18px 20px; }
.plan-card.ok { border-left-color: #6b8f3a; }
.plan-card.caution { border-left-color: #c2780c; }
.plan-card h4 { font-size: 1.15rem; margin-bottom: 4px; }
.plan-card ul { margin: 8px 0; padding-left: 1.2em; }
.plan-fit { font-size: 0.82rem; color: var(--ink-soft); font-weight: 500; margin-bottom: 4px; }
.plan-combos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan-combos li { background: #fff; border: 1px solid var(--mist); border-radius: 12px; padding: 16px 20px; }
.plan-combos li.good { border-left: 5px solid var(--scan-deep); }
.plan-combos li.ok { border-left: 5px solid #6b8f3a; }
.plan-combos li.caution { border-left: 5px solid #c2780c; }
.plan-combos p { margin: 4px 0; color: var(--ink-soft); }
.plan-avoid { padding-left: 1.2em; color: var(--ink-soft); }
ul.tick { list-style: none; padding: 0; margin: 0 0 16px; }
ul.tick li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--mist); }
ul.tick li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 12px; height: 7px; border-left: 2px solid var(--scan-deep); border-bottom: 2px solid var(--scan-deep); transform: rotate(-45deg); }

/* doctor photo */
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; height: auto; border-radius: 16px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; box-shadow: 0 24px 50px -30px rgba(6,18,28,.6); }
.portrait figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 10px; }
.portrait.round img { width: 120px; aspect-ratio: 1; border-radius: 50%; }

/* footer */
.site-footer { background: var(--night); color: #b4c6d5; padding: 52px 0 60px; font-size: 0.98rem; }
.site-footer a { text-decoration-color: rgba(180,198,213,.4); }
.site-footer a:hover { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 10px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer .disclaimer { max-width: 62ch; margin-top: 36px; padding-top: 24px; border-top: 1px solid #1c3347; color: #8da3b6; }
.site-footer .small { color: #8da3b6; }

.admin-wrap { max-width: 860px; margin: 32px auto; padding: 0 var(--gutter); }
.admin-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--mist); }
.flash { padding: 12px 14px; border-radius: 8px; background: var(--green-soft); margin: 12px 0; }
.flash.error { background: var(--red-soft); }

@media (max-width: 960px) {
  .hero .wrap, .split, .calc { grid-template-columns: 1fr; }
  .hero-map { max-width: 520px; margin: 0 auto; }
  .paths { grid-template-columns: 1fr; }
  .path, .path + .path { padding: 22px 0; border-left: 0; }
  .path + .path { border-top: 1px solid var(--mist); }
  .features { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 18px 0; border-left: 0; border-top: 1px solid var(--mist); }
  .page-head { background-position: right -200px center; }
}
@media (max-width: 640px) {
  .two { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .site-header .wrap { gap: 12px 18px; padding-top: 10px; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero-cta { animation: rise 800ms cubic-bezier(.2,.7,.2,1) both; }
  .hero .lede { animation-delay: 120ms; } .hero-cta { animation-delay: 220ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media print {
  .site-header, .site-footer, .subnav, .hero-cta, .mode-switch { display: none; }
  body { background: #fff; }
  .page-head { background: none; color: #000; box-shadow: none; clip-path: none; }
  .page-head::before { display: none; }
  .page-head h1, .page-head .lede { color: #000; }
}

/* research digest */
.research{list-style:none;margin:24px 0 32px;padding:0;display:grid;gap:16px;counter-reset:r}
.research>li{counter-increment:r}
.research h2{font-size:1.25rem;line-height:1.3;margin:6px 0}
.research .card p{max-width:70ch}

/* newsletter sign-up */
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup .consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 10px; font-size: .95rem; }
.signup .consent input { margin-top: 4px; }
.signup .small { margin-bottom: 14px; }
