/* Open Labs — styles.css */
:root {
  --bg: #FAF7F2;
  --text: #1E2233;
  --accent: #E8956B;
  --primary: #3A3F8F;
  --surface: #EFEBF3;
  --urgent: #A3341F;           /* reserved: safety rail and urgent actions only */
  --muted: #474B60;
  --wash: #F8E2D3;             /* soft apricot wash */
  --paper: #FFFFFF;
  --line: #DCD5E4;
  --outline: #6B6F86;
  --primary-soft: #E2E2F3;
  --radius: 14px;
  --radius-ctl: 10px;
  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;        /* 18px */
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font: inherit; color: inherit; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 1.3rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
small, .small { font-size: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: calc(74rem + 64px); margin-inline: auto; padding-inline: clamp(16px, 5vw, 32px); }
.narrow { max-width: calc(42rem + 64px); }
.measure { max-width: 40rem; }

/* ---------- Safety rail ---------- */
.rail {
  position: sticky; top: 0; z-index: 60;
  background: var(--urgent); color: #fff;
  min-height: 44px; display: flex; align-items: center;
}
.rail .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rail a, .rail span.rail-current { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.rail a:hover { text-decoration: underline; }
.rail a:focus-visible { outline-color: #fff; }
.rail .rail-note { font-size: .95rem; opacity: .95; }
@media (max-width: 419px) { .rail .rail-note { display: none; } }
.rail-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: linear-gradient(90deg, #fff 50%, transparent 50%); flex: none; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--paper); color: var(--primary); padding: 10px 14px; z-index: 70; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 52px; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; min-height: 48px; }
.brand img { height: 36px; width: auto; }
.nav-desktop { display: none; }
.nav-desktop ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-desktop a, .nav-mobile a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; color: var(--text); border-radius: 8px; font-weight: 500; font-size: 1rem; }
.nav-desktop a:hover, .nav-mobile a:hover { background: var(--surface); }
.nav-desktop a[aria-current="page"], .nav-mobile a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -3px 0 var(--primary); border-radius: 0; }
.nav-desktop a.nav-urgent, .nav-mobile a.nav-urgent { color: var(--urgent); font-weight: 600; }
.nav-mobile { position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--outline); border-radius: var(--radius-ctl); font-weight: 600; background: var(--paper); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary .bars { width: 18px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.nav-mobile summary .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.nav-mobile[open] summary { background: var(--surface); }
.nav-mobile ul { list-style: none; margin: 8px 0 0; padding: 8px; position: absolute; right: 0; z-index: 40; width: min(300px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(30,34,51,.12); }
.nav-mobile li { margin: 0; }
.nav-mobile a { width: 100%; min-height: 52px; font-size: 1.1rem; }
@media (min-width: 1040px) {
  .nav-desktop { display: block; }
  .nav-mobile { display: none; }
}

/* ---------- Non-clinical band ---------- */
.band { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.5; }
.band p { margin: 0; padding: 10px 0; }
.band a { color: var(--urgent); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: var(--radius-ctl); font-weight: 600; font-size: 1.05rem; line-height: 1.25; text-decoration: none; cursor: pointer; border: 2px solid transparent; text-align: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #2E3275; }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-soft); }
.btn-urgent { background: var(--urgent); color: #fff; }
.btn-urgent:hover { background: #87291A; }
.btn-text { background: none; border: 0; color: var(--primary); text-decoration: underline; padding: 8px 4px; min-height: 44px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.arrow { font-family: var(--font-body); }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.section-surface { background: var(--surface); }
.section-wash { background: var(--wash); }
.eyebrow { display: inline-block; font-size: .95rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.lead { font-size: 1.25rem; color: var(--muted); }
.muted { color: var(--muted); }
.grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Arch frame (motif) ---------- */
.arch { --ar: 4 / 5; --vr: 40%; aspect-ratio: var(--ar); border-radius: 50% 50% 6px 6px / var(--vr) var(--vr) 6px 6px; overflow: hidden; background: var(--wash); border: 3px solid var(--primary); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-wide { --ar: 5 / 4; --vr: 62.5%; }
.arch-square { --ar: 1 / 1; --vr: 50%; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 80px); background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 60%, var(--surface) 100%); }
.hero-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.4rem); }
.hero-media { max-width: 440px; width: 100%; margin-inline: auto; }
.hero-media .arch { --ar: 5 / 4; --vr: 62.5%; }
.hero-media .arch img { object-position: 62% 50%; }
.hero .small-line { font-size: 1rem; color: var(--muted); margin-top: 18px; }
.hero .small-line a { color: var(--urgent); font-weight: 600; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
  .hero-media { order: 2; }
  .hero-media .arch { --ar: 4 / 5; --vr: 40%; }
}

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.card-surface { background: var(--surface); border-color: transparent; }
.card h3 { margin-bottom: .4em; }
.tool-card { display: flex; flex-direction: column; gap: 10px; border-top: 6px solid var(--primary); border-radius: 60px 60px var(--radius) var(--radius); padding-top: 32px; }
.tool-card .tag { align-self: flex-start; font-size: .9rem; font-weight: 600; background: var(--wash); color: var(--text); padding: 4px 12px; border-radius: 999px; }
.tool-card dl { margin: 0; }
.tool-card dt { font-weight: 600; margin-top: 8px; }
.tool-card dd { margin: 0; color: var(--muted); }
.tool-card .btn { margin-top: auto; align-self: flex-start; }
.note { border-left: 6px solid var(--accent); background: var(--wash); padding: 16px 20px; border-radius: 6px; }
.note-urgent { border: 2px solid var(--urgent); border-left-width: 6px; background: var(--paper); }
.note-urgent a { color: var(--urgent); font-weight: 600; }

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding: 22px 22px 22px 84px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); margin: 0; min-width: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 20px; top: 20px; width: 46px; height: 54px; display: grid; place-items: center; border-radius: 23px 23px 4px 4px; background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; }
@media (min-width: 900px) { .steps.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Audience list */
.dots { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.dots li { position: relative; padding-left: 32px; margin: 0; }
.dots li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }

/* Plans */
.plans { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); max-width: 820px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan.is-free { border-color: var(--primary); }
.chip { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.chip-free { background: var(--primary); color: #fff; }
.chip-coming { border: 2px solid var(--outline); color: var(--text); }

/* Roadmap */
.roadmap { list-style: none; margin: 0; padding: 0 0 0 40px; position: relative; display: grid; gap: 24px; max-width: 46rem; }
.roadmap::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.roadmap li { position: relative; margin: 0; }
.roadmap li::before { content: ""; position: absolute; left: -40px; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--primary); background: var(--bg); box-sizing: border-box; }
.roadmap li.now::before { background: var(--primary); }
.roadmap .when { display: block; font-weight: 700; font-family: var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }

/* Early access */
.ea { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.ea > * { min-width: 0; }
.ea-panel { position: relative; border-radius: 120px 120px 6px 6px / 90px 90px 6px 6px; overflow: hidden; padding: 24px; display: flex; align-items: flex-end; min-height: 360px; }
.ea-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ea-form { position: relative; background: var(--paper); border-radius: var(--radius); padding: 22px; width: 100%; box-shadow: 0 10px 30px rgba(30,34,51,.12); }
@media (min-width: 900px) {
  .ea { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
  .ea-panel { min-height: 440px; padding: 40px; align-items: center; }
}

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { display: block; font-size: 1rem; color: var(--muted); margin-bottom: 8px; }
.input, textarea.input, select.input { width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--outline); border-radius: var(--radius-ctl); background: var(--paper); }
textarea.input { min-height: 160px; resize: vertical; }
.input:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-color: var(--primary); }
.input[aria-invalid="true"] { border-color: var(--urgent); }
.error-msg { color: var(--urgent); font-weight: 600; margin: 6px 0 0; font-size: 1rem; }
.error-msg::before { content: "⚠ "; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.status-ok { background: var(--primary-soft); border-left: 6px solid var(--primary); padding: 16px 18px; border-radius: 6px; font-weight: 600; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; }
.inline-form .input { flex: 1 1 220px; min-width: 0; }

/* ---------- Tool layout ---------- */
.page-head { padding-block: clamp(24px, 5vw, 56px) clamp(16px, 3vw, 32px); }
.tool-intro { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) clamp(92px, 26vw, 240px); align-items: start; }
.tool-intro > * { min-width: 0; }
.tool-intro .lead { font-size: 1.15rem; }
@media (min-width: 768px) {
  .tool-intro { gap: 48px; align-items: center; }
}
.tool { max-width: 44rem; margin-inline: auto; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 32px); }
.panel[hidden] { display: none; }
.step-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; color: var(--muted); font-size: 1rem; margin-bottom: 12px; }
.panel h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem); }
.panel h2:focus { outline: none; }
.panel h2:focus-visible { outline: 3px solid var(--primary); }
.safety-card { border: 2px solid var(--urgent); }
.safety-card .question { font-size: 1.3rem; font-weight: 600; font-family: var(--font-head); line-height: 1.35; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.choices { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--radius-ctl); background: var(--paper); cursor: pointer; font-weight: 500; }
.choice:hover { border-color: var(--outline); }
.choice input { width: 22px; height: 22px; accent-color: var(--primary); flex: none; margin: 0; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice { min-width: 0; padding-right: 40px; }
.choice:has(input:checked)::after { content: "✓"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--primary); font-weight: 700; }
.choice:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.choice-text { flex: 1 1 auto; min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: manual; line-height: 1.3; }
.choice-text.nowrap { white-space: nowrap; }
.choices.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); }
/* Theme cards wrap to as many columns as fit; never narrower than 14rem, so labels never split mid-word */
.choices.compact.themes { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
/* Group size: 2 × 2 by default; 4 in a row only when the form spans the full page width */
.choices.compact.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Choice cards inside a .field must keep the card layout: `.field label` (display:block) would otherwise
   win on specificity and push the radio above the label text with no gap. Same layout as the Navigator cards. */
.field .choice, .choices .choice { display: flex; flex-direction: row; align-items: center; gap: .75rem; margin: 0; font-weight: 500; line-height: 1.3; }
.field .choice input, .choices .choice input { align-self: center; margin: 0; position: static; }
.choices.compact.four .choice { padding-left: 14px; padding-right: 34px; gap: .75rem; }
.choices.compact.four .choice:has(input:checked)::after { right: 12px; }
@media (min-width: 760px) and (max-width: 1099px) { .choices.compact.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.actionbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 24px; }
.actionbar .btn { flex: 1 1 140px; }
@media (max-width: 767px) {
  .actionbar.sticky { position: sticky; bottom: 0; z-index: 30; background: var(--bg); border-top: 1px solid var(--line); margin-inline: calc(-1 * clamp(18px, 4vw, 32px)); margin-bottom: calc(-1 * clamp(18px, 4vw, 32px)); padding: 12px clamp(18px, 4vw, 32px) calc(12px + env(safe-area-inset-bottom)); border-radius: 0 0 var(--radius) var(--radius); }
}
.lock { display: inline-block; font-size: .85rem; font-weight: 700; background: var(--surface); padding: 2px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }

/* Results */
.result { border-radius: 140px 140px var(--radius) var(--radius) / 70px 70px var(--radius) var(--radius); background: var(--surface); border: 0; padding-top: 48px; }
.result .kind { font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.qlist { list-style: none; padding: 0; margin: 0 0 12px; counter-reset: q; }
.qlist li { counter-increment: q; position: relative; padding: 8px 0 8px 48px; font-size: 1.2rem; margin: 0; }
.qlist li::before { content: counter(q); position: absolute; left: 0; top: 6px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1rem; }
.exercise { background: var(--wash); border-radius: var(--radius); padding: clamp(18px, 4vw, 28px); margin-top: 20px; }
.exercise h3 { margin-bottom: .2em; }
.exercise .ex-name { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; margin-bottom: 8px; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border: 2px solid var(--outline); border-radius: 4px; }
.blank { display: inline-block; min-width: 5.5em; border-bottom: 2px dotted var(--text); color: var(--muted); }
.unsafe-strip { border: 2px solid var(--urgent); border-radius: var(--radius-ctl); padding: 14px 16px; margin-top: 20px; background: var(--paper); font-weight: 600; }
.unsafe-strip a { color: var(--urgent); }
.toast { margin-top: 16px; }
.toast:empty { display: none; }
.trail { font-size: 1rem; color: var(--muted); margin-bottom: 10px; }

/* Breathing timer */
.breath { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: center; margin: 16px 0; }
.breath-stage { width: 168px; height: 168px; border: 3px dashed var(--primary); border-radius: 10px; display: grid; place-items: center; margin-inline: auto; background: var(--paper); }
.breath-box { width: 140px; height: 140px; background: var(--primary); border-radius: 8px; transform: scale(.4); transition: transform 4s linear; opacity: .85; }
.breath-box.grow { transform: scale(1); }
.breath-text { text-align: center; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; }
.breath-count { font-size: 2.2rem; display: block; font-variant-numeric: tabular-nums; }
@media (min-width: 560px) { .breath { grid-template-columns: 180px minmax(0, 1fr); } .breath-text { text-align: left; } }
@media (prefers-reduced-motion: reduce) {
  .breath-stage { display: none; }
  .breath { grid-template-columns: minmax(0, 1fr); }
  .breath-text { text-align: center; }
}

/* Session builder */
.sb-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.sb-layout > * { min-width: 0; }
@media (min-width: 1100px) { .sb-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; } }
.sb-head { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.sb-head > * { min-width: 0; }
.sb-head .sb-intro-img { max-width: 440px; }
@media (min-width: 860px) { .sb-head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; } }
.placeholder { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; color: var(--muted); background: var(--paper); }
.sb-intro-img { border-radius: 90px 90px 6px 6px / 70px 70px 6px 6px; overflow: hidden; border: 3px solid var(--primary); aspect-ratio: 3 / 2; }
.sb-intro-img img { width: 100%; height: 100%; object-fit: cover; }
.sheet { background: var(--paper); border: 1px solid var(--outline); border-radius: 6px; padding: clamp(18px, 4vw, 36px); box-shadow: 0 8px 24px rgba(30,34,51,.08); }
.sheet-head { border-bottom: 2px solid var(--text); padding-bottom: 12px; margin-bottom: 16px; }
.sheet-head h2 { margin-bottom: .2em; }
.sheet-meta { color: var(--muted); font-size: 1rem; margin: 0; }
.bar-wrap { margin: 8px 0 18px; }
.bar-wrap svg { width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .95rem; list-style: none; padding: 0; margin: 8px 0 0; }
.legend li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.legend .sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; border: 1px solid var(--text); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.timeline .t { font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline .t span { display: block; font-family: var(--font-body); font-weight: 400; font-size: .95rem; color: var(--muted); }
.timeline details summary { cursor: pointer; font-weight: 600; font-family: var(--font-head); font-size: 1.15rem; min-height: 32px; }
.timeline details > *:not(summary) { margin-top: 8px; }
.timeline ol, .timeline ul { margin: 6px 0; }
.signpost { border-left: 4px solid var(--urgent); padding-left: 12px; }
.sheet-total { border-top: 2px solid var(--text); padding-top: 10px; font-weight: 700; display: flex; justify-content: space-between; }
.sheet-foot { font-size: .95rem; color: var(--muted); margin-top: 14px; }
.basics { list-style: none; padding: 0; margin: 0; counter-reset: b; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.basics li { counter-increment: b; position: relative; padding: 18px 18px 18px 72px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; min-width: 0; }
.basics li::before { content: counter(b); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
.basics li.warn { border-left: 6px solid var(--urgent); }
@media (min-width: 900px) { .basics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .basics li:last-child { grid-column: 1 / -1; } }
.basics-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.basics-head .thumb { width: 132px; flex: none; border-radius: 66px 66px 6px 6px / 50px 50px 6px 6px; overflow: hidden; border: 3px solid var(--primary); aspect-ratio: 4 / 3; }
.basics-head .thumb img { width: 100%; height: 100%; object-fit: cover; }
.basics-head > div { flex: 1 1 260px; min-width: 0; }

/* ---------- Urgent help ---------- */
.danger { background: var(--urgent); color: #fff; font-weight: 700; font-size: 1.25rem; padding: 20px 22px; border-radius: var(--radius); line-height: 1.45; }
.numbers { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.numbers li { padding: 18px 20px; border-top: 1px solid var(--line); margin: 0; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.numbers li:first-child { border-top: 0; }
.numbers .region { font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.numbers .num { display: block; font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.line-card { background: var(--surface); border-left: 6px solid var(--primary); border-radius: 6px; padding: 18px 20px; margin-bottom: 16px; }
.line-card h3 { margin-bottom: .3em; }
.call-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.call { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px; border-radius: var(--radius-ctl); background: var(--urgent); color: #fff; font-weight: 700; text-decoration: none; }
.call.alt { background: var(--paper); color: var(--urgent); border: 2px solid var(--urgent); }
.call:hover { text-decoration: underline; }
.stamp { border: 2px solid var(--outline); border-radius: var(--radius); padding: 18px 20px; background: var(--paper); }
.big-list li { font-size: 1.2rem; margin-bottom: 12px; }
@media (min-width: 768px) {
  .numbers li { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
}

/* ---------- Spanish band ---------- */
.es-band { background: var(--primary); color: #fff; }
.es-band a { color: #fff; font-weight: 600; }
.es-band h2 { color: #fff; }
.es-band ul { margin: 0 0 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: #F1EEF5; padding-block: 48px 28px; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.footer-grid > * { min-width: 0; }
.footer-logo { display: inline-block; background: var(--bg); padding: 10px 14px; border-radius: 40px 40px 6px 6px; }
.footer-logo img { height: 34px; width: auto; }
.site-footer h2 { font-size: 1.05rem; color: #fff; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; min-height: 40px; align-items: center; }
.site-footer .btn-urgent { margin-top: 6px; }
.site-footer .btn-urgent:focus-visible, .site-footer a:focus-visible { outline-color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); margin-top: 32px; padding-top: 18px; font-size: 1rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-bottom nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }

/* ---------- Prose (legal, about) ---------- */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.2em; }
.toc { background: var(--surface); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px; }
.toc ol { margin: 0; }
.values { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.about-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.about-grid > * { min-width: 0; }
.about-grid .arch { max-width: 340px; }
@media (min-width: 860px) { .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; } }
.section-gap { margin-top: 16px; }
.link-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 30rem; }
.link-rows a { width: 100%; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
.print-only { display: none; }
@media print {
  @page { margin: 18mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .rail, .skip, .site-header, .band, .site-footer, .no-print, .tool-intro .arch, .actionbar, .btn, .btn-text, .sb-form, .page-head, .after-tool { display: none !important; }
  .print-only { display: block !important; }
  .sheet, .panel, .result { box-shadow: none; border: 0; padding: 0; background: #fff; border-radius: 0; }
  .timeline > li, .basics li, .steps > li { break-inside: avoid; }
  h1, h2 { font-size: 14pt; }
  a { color: #000; }
  .bar-wrap { display: none; }
  .sb-layout { display: block; }
  .placeholder, .toast { display: none !important; }
  .result { padding-top: 0; }
}
