/* h3lp styles. Mobile first. One accent for action (teal), one for warmth (the live sky).
   No blur, no glass, no glow, no grain. Hairlines and soft depth. Fonts are self-hosted. */

@font-face { font-family: "Atkinson Next"; src: url("assets/fonts/atkinson-next-v1.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #f6f2ea; --surface: #fcf9f3; --well: #eee8dc; --ink: #1a211d; --ink-2: #4b5650; --ink-3: #56605a;
  --line: rgba(26, 33, 29, .12); --line-2: rgba(26, 33, 29, .26); --field: #7d8680;
  --teal: #0b5e6e; --teal-hover: #084b58; --on-teal: #fff; --teal-ink: #0a5a69; --teal-tint: #e0ecec;
  --ember: #9c3f26; --ember-tint: #fbece4; --ember-line: rgba(156, 63, 38, .3);
  --ok: #2b6541; --ok-tint: #e2efe5;
  --cold-tint: #e5edf5; --hot-tint: #f9ebd9;
  --strip: #141b22; --strip-ink: #f4efe6; --strip-line: rgba(244, 239, 230, .5); --exit: #f0b07a; --on-exit: #141b22;
  --focus: #0b5e6e;
  --shadow: 0 1px 0 rgba(26, 33, 29, .03), 0 12px 28px -20px rgba(26, 33, 29, .32);
  --sky: linear-gradient(90deg, #273064, #5a4f7e 20%, #d7917c 45%, #5a4f7e 70%, #273064);
  --sky-top: #273064; --sky-mid: #5a4f7e; --sky-glow: #d7917c; --sun: #efa77f;
  --sky-dim: 1;
  --wash: var(--wash-l, none);
  --strip-h: 56px;
  --logo-ground: transparent; --logo-pad: 0px; --logo-nudge: -4px;
  --font: "Atkinson Next", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --gut: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141a; --surface: #161d25; --well: #1d252e; --ink: #ece7de; --ink-2: #aeb5b9; --ink-3: #9aa2a8;
    --line: rgba(236, 231, 222, .1); --line-2: rgba(236, 231, 222, .22); --field: #707a83;
    --teal: #7cc6d2; --teal-hover: #9ad4dd; --on-teal: #0a2328; --teal-ink: #8ccfda; --teal-tint: #15303a;
    --ember: #f0a487; --ember-tint: #2a1c18; --ember-line: rgba(240, 164, 135, .32);
    --ok: #93d3a9; --ok-tint: #16281d;
    --cold-tint: #142230; --hot-tint: #2a2117;
    --strip: #0a0e13; --strip-ink: #f4efe6;
    --focus: #8ccfda;
    --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 14px 30px -22px rgba(0, 0, 0, .7);
    --sky-dim: .82;
    --logo-ground: #f3eee4; --logo-pad: 4px; --logo-nudge: 0px;
    --wash: var(--wash-d, none);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--strip-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--font); font-kerning: normal; font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-ink); text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: calc(1120px + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.note { font-size: 15px; color: var(--ink-3); margin: 8px 0 0; }
.h-sm { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 650 18px/1.3 var(--font); color: var(--ink); }
.label { margin: 0 0 10px; font-size: 15px; font-weight: 650; color: var(--ink-2); }
.print-only { display: none; }

.skip {
  position: absolute; left: var(--gut); top: -200px; z-index: 100; padding: 12px 16px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-weight: 650; text-decoration: none;
}
.skip:focus { top: calc(var(--strip-h) + 8px); }

/* ---------- Emergency strip ---------- */
.strip { position: sticky; top: 0; z-index: 50; background: var(--strip); color: var(--strip-ink); padding-top: env(safe-area-inset-top); }
.horizon { height: 4px; background: var(--sky); opacity: var(--sky-dim); }
.strip-row {
  display: flex; align-items: center; gap: 6px; min-height: 52px; max-width: calc(1120px + 2 * var(--gut));
  margin-inline: auto; padding: 4px max(10px, env(safe-area-inset-right)) 4px max(10px, env(safe-area-inset-left));
}
@media (min-width: 560px) { .strip-row { padding-inline: var(--gut); }
}
.strip-note { display: none; margin: 0 auto 0 0; font-size: 15px; font-weight: 600; }
.sbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px;
  padding: 0 11px; border-radius: 12px; font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sbtn .i { width: 18px; height: 18px; }
.sbtn-solid { background: var(--strip-ink); color: var(--strip); }
.sbtn-line { color: var(--strip-ink); box-shadow: inset 0 0 0 1.5px var(--strip-line); }
.sbtn-exit { margin-left: auto; background: var(--exit); color: var(--on-exit); position: relative; }
.strip .sbtn:focus-visible { outline-color: var(--strip-ink); }
.sbtn .lg { display: none; }
.dots { display: none; gap: 3px; margin-left: 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--on-exit); }
.sbtn-exit.armed .dots { display: inline-flex; }
.sbtn-exit[data-n="1"] .dots i:nth-child(-n+1), .sbtn-exit[data-n="2"] .dots i:nth-child(-n+2), .sbtn-exit[data-n="3"] .dots i { background: var(--on-exit); }
.shift-hint { display: none; font-size: 14px; color: rgba(244, 239, 230, .8); white-space: nowrap; }
@media (min-width: 560px) {
  .sbtn .lg { display: inline; } .sbtn .sm { display: none; }
  .sbtn { padding: 0 14px; }
}
@media (min-width: 1040px) {
  .strip-note { display: block; }
  .sbtn-exit { margin-left: 10px; }
  .shift-hint { display: inline; margin-left: 4px; }
}
.veil { position: fixed; inset: 0; z-index: 1000; background: #ececec; }

/* ---------- Header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 12px 4px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; color: var(--ink); text-decoration: none; border-radius: 12px; }
/* h3lp's own logo, the tiger and the people under the sun, exactly as drawn */
.brand-logo { flex: none; box-sizing: border-box; width: 56px; height: 56px; margin-left: var(--logo-nudge); padding: var(--logo-pad); border-radius: 14px; background: var(--logo-ground); }
.brand-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wordmark { font: 500 30px/1 var(--display); letter-spacing: -.015em; }
.brand-sub { font-size: 14px; line-height: 1.25; color: var(--ink-2); text-wrap: balance; }
@media (min-width: 1040px) {
  .brand { gap: 12px; }
  .brand-logo { width: 80px; height: 80px; margin-left: calc(var(--logo-nudge) * 1.5); border-radius: 18px; padding: calc(var(--logo-pad) * 1.4); }
  .wordmark { font-size: 34px; }
  .brand-sub { font-size: 15px; }
}
.lang {
  min-width: 48px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: .02em;
}

/* ---------- The sky as light: the colours of the line at the top, carried down as a faint
   wash behind the header and hero. Real state from sky.js (night is cool, sunrise is warm),
   static, tinted without changing the paper's lightness, so it never adds glare. ---------- */
.sky-wash {
  position: absolute; top: 0; left: 0; right: 0; height: 640px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0, transparent 28%, var(--bg) 100%), var(--wash, none);
}
@media (min-width: 1040px) { .sky-wash { height: 760px; } }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 26px; padding-block: 6px 30px; }
.sos {
  margin: -8px 0 24px; padding-left: 12px; border-left: 2px solid var(--ember);
  max-width: 44ch; font-size: 15px; line-height: 1.45; color: var(--ink-2);
}
.sos b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 1040px) { .sos { display: none; } }
h1 {
  margin: 10px 0 12px; font: 500 clamp(2.05rem, 1.35rem + 3.1vw, 3.75rem)/1.06 var(--display);
  letter-spacing: -.022em; text-wrap: balance; max-width: 15ch;
}
.lede { margin: 0 0 24px; max-width: 44ch; color: var(--ink-2); }
.search-label { display: block; margin: 0 0 10px; font: 500 23px/1.2 var(--display); letter-spacing: -.01em; }
.field {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 6px 0 16px;
  background: var(--surface); border: 1.5px solid var(--field); border-radius: 16px; box-shadow: var(--shadow);
}
.field > .i { color: var(--ink-2); }
.field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 28%, transparent); }
.field input { flex: 1; min-width: 0; height: 54px; border: 0; padding: 0; background: transparent; font-size: 18px; outline: none; }
.field input::placeholder { color: var(--ink-3); opacity: 1; }
.field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.clear { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); }
.search-help { margin: 8px 2px 0; font-size: 15px; color: var(--ink-3); }
.facts { display: none; }
@media (min-width: 1040px) {
  .facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 15px; color: var(--ink-2); }
  .facts li { display: inline-flex; align-items: center; gap: 8px; }
  .facts .i { color: var(--teal-ink); }
}

.answer { margin-top: 22px; }
.answer-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; }
.answer-count { margin: 0; font-size: 15px; color: var(--ink-3); }
.crisis-line {
  margin: 0 0 14px; padding: 2px 0 2px 14px; border-left: 3px solid var(--ember);
  font: 500 21px/1.3 var(--display); color: var(--ink); letter-spacing: -.005em;
}
.panel .crisis-line { margin-top: 18px; }
.seeall { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.nomatch { margin: 0 0 12px; }

.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
.chip, .path, .tile, .tool {
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-align: left;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.chip { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border-radius: 14px; font-weight: 650; font-size: 16px; line-height: 1.25; }
.chip .i { width: 22px; height: 22px; color: var(--teal-ink); }
.chip[aria-pressed="true"], .tile[aria-pressed="true"], .path[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-tint); box-shadow: inset 0 0 0 1px var(--teal); }
.paths { display: grid; gap: 8px; }
.path {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; align-items: center; gap: 12px;
  min-height: 66px; padding: 12px 14px; border-radius: 16px;
}
.path-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-tint); color: var(--teal-ink); }
.path-t { display: block; font-weight: 700; font-size: 17px; line-height: 1.25; }
.path-s { display: block; font-size: 15px; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.path > .i { color: var(--ink-3); }
.path.hot { border-color: var(--ember-line); }
.path.hot::before, .card.hot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--sky); opacity: var(--sky-dim); }
.path.hot .path-ic { background: var(--ember-tint); color: var(--ember); }
@media (hover: hover) {
  .chip:hover, .path:hover, .tile:hover, .tool:hover { border-color: var(--teal); }
  .card .btn-primary:hover, .btn-primary:hover { background: var(--teal-hover); }
  .btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--teal); }
}

@media (min-width: 1040px) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; padding-block: 30px 56px; align-items: start; }
  .hero-side { padding-top: 14px; }
  .lede { font-size: 19px; }
}

/* ---------- Panel and cards ---------- */
.panel { padding-block: 8px 44px; outline: none; }
.panel-head { border-top: 1px solid var(--line-2); padding-top: 28px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--teal-ink); }
.panel h2 { margin: 0; font: 500 clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem)/1.1 var(--display); letter-spacing: -.016em; text-wrap: balance; outline: none; }
.panel-note { margin: 6px 0 0; color: var(--ink-2); }
.lead { max-width: 65ch; margin: 14px 0 0; }
.panel-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 16px; }
.panel-bar .select { flex: 0 1 280px; }
.panel-bar .count { margin: 0; font-size: 15px; color: var(--ink-3); flex: 1 1 260px; }
.exit-note { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--well); font-size: 15px; color: var(--ink); max-width: 70ch; }
.exit-note .i { color: var(--ink-2); margin-top: 2px; }
.steps { counter-reset: s; list-style: none; margin: 18px 0 8px; padding: 0; display: grid; gap: 12px; max-width: 70ch; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-ink); font-weight: 700; font-size: 15px; }
.wait { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 18px 0 0; }
.wait p { margin: 0; color: var(--ink-2); font-size: 15px; }

.cards { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .panel .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  padding: 18px 18px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.card-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.card-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--well); color: var(--ink-2); }
.kicker { flex: 1; margin: 0; padding-top: 7px; font-size: 15px; font-weight: 650; line-height: 1.3; color: var(--ink-2); }
.status {
  flex: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 4px 10px; border-radius: 999px;
  font-size: 14px; font-weight: 700; line-height: 1.3; background: var(--well); color: var(--ink-2); max-width: 100%; margin-left: auto;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.s-open, .status.s-always { background: var(--ok-tint); color: var(--ok); }
.card h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.005em; }
.card-body { margin: 0; color: var(--ink-2); }
.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; margin-top: 2px; }
.acts2 { display: flex; flex-wrap: wrap; gap: 6px; }
.card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 2px 0 0; padding-top: 10px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3);
}
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta .i { width: 16px; height: 16px; }
.card.hot { border-color: var(--ember-line); }
.card.hot .kicker { color: var(--ember); }
.card.hot .card-ic { background: var(--ember-tint); color: var(--ember); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 16px;
  border: 0; border-radius: 12px; font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center; text-decoration: none;
  font-variant-numeric: tabular-nums; transition: background-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-quiet { min-height: 44px; padding: 8px 14px; font-size: 15px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-quiet.done { box-shadow: inset 0 0 0 1.5px var(--ok); color: var(--ok); }
.btn-danger { color: var(--ember); }

.sayit { margin: 16px 0 0; max-width: 70ch; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.sayit summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; font-weight: 650; cursor: pointer; list-style: none; }
.sayit summary::-webkit-details-marker { display: none; }
.sayit summary .i { color: var(--teal-ink); }
.sayit summary .i:last-child { margin-left: auto; transition: transform .15s ease; }
.sayit[open] summary .i:last-child { transform: rotate(90deg); }
.sayit div { padding: 0 16px 14px; }
.sayit .line { margin: 0 0 10px; font: 500 19px/1.4 var(--display); }
.sayit .reassure { margin: 0; font-size: 15px; color: var(--ink-2); }
.tips { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 760px) { .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tip { padding: 16px; border-radius: 16px; background: var(--well); }
.tip h4 { margin: 0 0 4px; font-size: 17px; }
.tip p { margin: 0; color: var(--ink-2); }
.panel-foot { margin-top: 22px; }

.wx { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; margin: 16px 0 0; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--cold-tint); max-width: 70ch; }
.wx.hot { background: var(--hot-tint); }
.wx > .i { width: 26px; height: 26px; margin-top: 2px; color: var(--ink-2); }
.wx p { margin: 0; }
.wx .wx-t { font-weight: 650; }
.wx .row { grid-column: 2; margin: 8px 0 0; }
.wx .note { grid-column: 2; margin: 2px 0 0; }

/* ---------- Where and browse ---------- */
.where { display: grid; gap: 30px; padding-block: 30px; border-top: 1px solid var(--line-2); }
.select { position: relative; }
.select select {
  -webkit-appearance: none; appearance: none; width: 100%; min-height: 52px; padding: 0 44px 0 14px; border-radius: 14px;
  border: 1.5px solid var(--field); background: var(--surface); font-weight: 650; font-size: 17px;
}
.select .i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) rotate(90deg); pointer-events: none; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 16px; min-height: 100px; padding: 14px; border-radius: 16px; font-weight: 700; font-size: 16px; line-height: 1.25; }
.tile .i { width: 26px; height: 26px; color: var(--teal-ink); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .where { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; padding-block: 44px; } }

/* ---------- Tools ---------- */
.tools { padding-block: 32px 44px; border-top: 1px solid var(--line-2); }
.tools h2 { margin: 0; font: 500 clamp(1.65rem, 1.25rem + 1.6vw, 2.3rem)/1.1 var(--display); letter-spacing: -.015em; }
.tool-grid { display: grid; gap: 10px; margin-top: 18px; }
.tool { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-content: start; min-height: 88px; padding: 16px; border-radius: 18px; }
.tool-ic { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-tint); color: var(--teal-ink); }
.tool-ic .i { width: 22px; height: 22px; }
.tool-t { font-weight: 700; font-size: 17px; line-height: 1.3; }
.tool-s { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) {
  .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .tool { grid-template-columns: minmax(0, 1fr); row-gap: 6px; min-height: 196px; padding: 20px; }
  .tool-ic { grid-row: auto; margin-bottom: 14px; }
}

/* ---------- No JavaScript ---------- */
.ns { padding-block: 24px; }
.ns h2 { font: 500 24px/1.2 var(--display); margin: 0 0 8px; }
.ns ul { padding-left: 20px; }
.ns li { margin: 6px 0; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line-2); background: var(--well); color: var(--ink-2); font-size: 16px; padding-block: 36px calc(40px + env(safe-area-inset-bottom)); }
.foot p { margin: 0 0 12px; }
.foot-grid { display: grid; gap: 30px; }
.lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.lockup img { flex: none; box-sizing: border-box; width: 80px; height: 80px; padding: calc(var(--logo-pad) * 1.4); border-radius: 18px; background: var(--logo-ground); }
.lockup .h-sm { margin: 0; }
.danger { font-weight: 700; color: var(--ink); }
.foot .btn-quiet { margin-top: 2px; }
.sky-line { color: var(--ink-2); }
.sky-chip { display: inline-block; width: 32px; height: 4px; margin-right: 8px; border-radius: 2px; vertical-align: middle; background: var(--sky); opacity: var(--sky-dim); }
.cred { font-size: 15px; }
@media (min-width: 1040px) { .foot-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 56px; } }

/* ---------- Sheets ---------- */
html.sheet-open { overflow: hidden; }
.sheet { position: fixed; inset: var(--strip-h) 0 0 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); }
.sheet-inner { max-width: 760px; margin: 0 auto; padding: 0 var(--gut) calc(48px + env(safe-area-inset-bottom)); }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 8px; background: var(--bg); }
.sheet-head h2 { margin: 0; font: 500 clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem)/1.15 var(--display); letter-spacing: -.012em; }
.x { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.sheet-note { margin: 4px 0 16px; color: var(--ink-2); max-width: 60ch; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 18px; border-radius: 14px; background: var(--well); }
.seg button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 15px; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }

.scene { position: relative; height: clamp(210px, 38vh, 340px); border-radius: 22px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 58%, var(--sky-glow) 76%); }
.scene-sun {
  position: absolute; left: 50%; top: 76%; width: 30%; max-width: 170px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0 64%, color-mix(in srgb, var(--sun) 0%, transparent) 71%);
  transform: translate(-50%, -50%) translateY(var(--rise, 18%)) scale(var(--grow, .78)); will-change: transform;
}
.scene-line { position: absolute; left: 0; right: 0; top: 76%; bottom: 0; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .55); background: linear-gradient(180deg, rgba(12, 16, 22, .62), rgba(12, 16, 22, .86)); }
.bcount { min-height: 2.6em; margin: 18px 0 10px; text-align: center; font: 500 27px/1.25 var(--display); letter-spacing: -.01em; }
.bprog { height: 4px; border-radius: 2px; overflow: hidden; background: var(--well); }
.bprog i { display: block; height: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; }
.bleft { text-align: center; min-height: 1.5em; }
.breath .row { justify-content: center; }
.caution { margin: 0; text-align: center; font-size: 15px; color: var(--ink-2); }
.gsteps { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.gsteps li { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font: 500 22px/1.3 var(--display); color: var(--ink-3); }
.gsteps li.now { color: var(--ink); border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.gsteps li.past { color: var(--ink-2); }
.after-t { font: 500 22px/1.35 var(--display); margin: 22px 0 6px; }

.mode { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); }
.mode legend { padding: 0 6px; font-weight: 700; }
.radio { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.radio input, .check input { width: 22px; height: 22px; margin: 0; accent-color: var(--teal); flex: none; }
.warn { margin: 8px 0 0; padding: 10px 12px; border-left: 3px solid var(--ember); border-radius: 8px; background: var(--ember-tint); font-size: 15px; color: var(--ink); }
.plan fieldset { margin: 0 0 14px; padding: 0; border: 0; }
.plan legend { display: flex; gap: 10px; align-items: baseline; padding: 0; font-weight: 700; font-size: 18px; }
.plan legend b { color: var(--teal-ink); font-variant-numeric: tabular-nums; }
.plan .help { margin: 4px 0 8px; font-size: 15px; color: var(--ink-2); }
.plan textarea {
  display: block; width: 100%; min-height: 96px; padding: 12px 14px; border: 1.5px solid var(--field); border-radius: 14px;
  background: var(--surface); font-size: 17px; line-height: 1.5; resize: vertical;
}
.plan textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 28%, transparent); }
.checks { display: grid; gap: 2px; margin: 0 0 10px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.check span b { font-variant-numeric: tabular-nums; }
.numlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.numlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.numlist .n { font-weight: 700; font-variant-numeric: tabular-nums; }
.numlist .d { grid-column: 1 / -1; font-size: 15px; color: var(--ink-2); }

/* ---------- Motion ---------- */
@keyframes rise { from { transform: translateY(8px); } to { transform: none; } }
.panel:not([hidden]) .panel-in, .answer .cards { animation: rise .28s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .scene-sun { transform: translate(-50%, -50%) scale(.9); }
}

/* ---------- Print: the wallet card and the safety plan ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  body > * { display: none !important; }
  body.print-card #pocket, body.print-plan #printplan { display: block !important; }
  .pc { width: 171.2mm; display: grid; grid-template-columns: 1fr 1fr; border: .4mm solid #000; border-radius: 3mm; }
  .pc-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 3mm; padding: 2.5mm 4mm; border-bottom: .3mm solid #000; }
  .pc-head b { font: 500 15pt/1 var(--display); }
  .pc-head span { font-size: 9pt; }
  .pc table { border-collapse: collapse; width: 100%; grid-column: 1 / -1; }
  .pc tbody { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; }
  .pc tr { display: grid; grid-template-columns: 29mm 1fr; gap: 2mm; padding: 1.6mm 3.5mm; border-bottom: .2mm solid #999; }
  .pc td { font-size: 9pt; line-height: 1.25; }
  .pc td:first-child { font-weight: 700; font-size: 9.5pt; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .pc-foot { grid-column: 1 / -1; margin: 0; padding: 2mm 4mm; font-size: 9pt; }
  #printplan h1 { font: 500 22pt/1.1 var(--display); margin: 0 0 4mm; max-width: none; }
  #printplan h2 { font-size: 12pt; margin: 5mm 0 1mm; }
  #printplan p { margin: 0 0 2mm; white-space: pre-wrap; font-size: 11pt; }
  #printplan .blank { height: 14mm; border-bottom: .2mm solid #999; }
  #printplan .pp-foot { margin-top: 6mm; padding-top: 2mm; border-top: .3mm solid #000; font-size: 10pt; }
  body.print-wallet #printplan { width: 85.6mm; }
  body.print-wallet #printplan h1 { font-size: 13pt; }
  body.print-wallet #printplan h2 { font-size: 9.5pt; margin: 2mm 0 .5mm; }
  body.print-wallet #printplan p, body.print-wallet #printplan .pp-foot { font-size: 9pt; }
  body.print-wallet #printplan .blank { height: 6mm; }
}

/* ---------- 404 ---------- */
.nf-main { padding-block: 40px 64px; }
.nf-main h1 { max-width: 18ch; }
.nf-main .eyebrow { color: var(--ink-3); }
