/* Qilyx — site styles
   Identity: Ink + Bone, filter green only for "safe" (the dot, confirmations, primary emphasis).
   Type: Outfit (headings, UI) + Newsreader (reading).
   Motif: the dot below the line. */

@font-face { font-family: "Outfit"; src: url("/assets/fonts/Outfit-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader-normal.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader-italic.woff2") format("woff2"); font-weight: 300 600; font-style: italic; font-display: swap; }

:root {
  --ink: #15181c;
  --ink-2: #2a2f35;
  --text-2: #565d59;
  --stone: #8a918c;
  --line: #e2e0d9;
  --line-2: #d3d1c9;
  --bone: #eceae4;
  --bone-2: #f5f4f0;
  --white: #ffffff;
  --green: #2e8a6c;
  --green-ink: #1f6b53;
  --green-dk: #3fa883;
  --green-wash: #e3f0ea;
  --warn: #a34a2e;
  --warn-wash: #f6e6df;

  --ui: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --read: "Newsreader", Georgia, "Times New Roman", serif;

  --fs-sm: 0.875rem;
  --fs-0: 1.0625rem;
  --fs-1: 1.25rem;
  --fs-2: 1.5rem;
  --fs-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-4: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --r: 16px;
  --r-sm: 10px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--read); font-size: var(--fs-0); line-height: 1.6; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--ui); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: var(--fs-4); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: var(--fs-3); }
h3 { font-size: var(--fs-1); letter-spacing: -0.01em; line-height: 1.25; }
h4 { font-size: var(--fs-0); letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 66ch; }
ul, ol { padding-left: 1.2em; max-width: 66ch; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; font-family: var(--ui); border-radius: 99px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ui { font-family: var(--ui); }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-sm); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }

/* ---------- Brand motif: the dot below the line ---------- */
.mark { display: inline-grid; justify-items: center; gap: 5px; margin-bottom: 18px; }
.mark::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.on-ink .mark::after { background: var(--green-dk); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.logo svg { width: 92px; height: auto; }
#qx-wm .dot { fill: var(--dot, #2e8a6c); }
.logo { --dot: var(--green); }
.on-ink .logo, .site-footer .logo { color: var(--bone); }
.site-footer .logo { --dot: var(--green-dk); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px; padding: 0.7em 1.4em; border-radius: 99px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--white); font-family: var(--ui); font-weight: 500; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease; }
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--bone); border-color: var(--ink); }
.btn-light { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn-light:hover { background: var(--white); border-color: var(--white); }
.btn-sm { min-height: 40px; padding: 0.5em 1.1em; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.link-arrow { font-family: var(--ui); font-weight: 500; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.18s ease; }
.link-arrow:hover::after { transform: translateX(3px) rotate(45deg); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { font-family: var(--ui); font-size: 0.98rem; color: var(--text-2); text-decoration: none; padding: 8px 14px; border-radius: 99px; }
.site-nav a:hover { color: var(--ink); background: var(--bone-2); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--bone); }
.site-nav .nav-cta { margin-left: 12px; color: var(--white); background: var(--ink); padding: 10px 18px; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { color: var(--white); background: var(--ink-2); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--ink); padding: 0; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative; transition: transform 0.2s ease, background-color 0.2s ease; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; } .nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 28px; background: var(--white); border-bottom: 1px solid var(--line); max-height: calc(100vh - var(--header-h)); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s; }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.2s ease; }
  .site-nav a { font-size: 1.15rem; padding: 14px 12px; border-radius: 12px; }
  .site-nav .nav-cta { margin: 14px 0 0; text-align: center; padding: 15px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(44px, 6vw, 72px) 0; }
.bg-bone { background: var(--bone-2); }
.bg-bone-2 { background: var(--bone); }
.on-ink { background: var(--ink); color: var(--bone); }
.on-ink .muted { color: #a9b0ac; }
.on-ink a { color: var(--bone); }
.head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.head p { font-size: var(--fs-1); color: var(--text-2); line-height: 1.5; }
.on-ink .head p, .on-ink .lede { color: #c3c9c5; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center p { margin-left: auto; margin-right: auto; }
.lede { font-size: var(--fs-1); line-height: 1.5; color: var(--text-2); max-width: 54ch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-2, .grid-3, .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Home hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lede { margin-top: 8px; }
.hero-art { margin: 0; background: var(--bone-2); border-radius: 24px; overflow: hidden; padding-top: clamp(12px, 2vw, 24px); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Section illustration (line drawing) */
.xs { width: 100%; height: auto; }
.xs .ln { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.xs .ln-2 { fill: none; stroke: var(--stone); stroke-width: 1; }
.xs .earth { fill: #e2ded3; }
.xs .earth-2 { fill: #d7d2c4; }
.xs .conc { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
.xs .room { fill: var(--bone-2); }
.xs .air { fill: none; stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 3 5; }
.xs .dot { fill: var(--green); }
.xs .fall { fill: var(--stone); }
.xs text { font-family: var(--ui); font-size: 12.5px; fill: var(--ink-2); }
.xs .lead-ln { stroke: var(--stone); stroke-width: 0.8; fill: none; }
.xs .grit { fill: var(--stone); }
.xs .far { fill: #e7e4dc; stroke: var(--stone); stroke-width: 1; stroke-linejoin: round; }
.xs .snow { fill: var(--white); }
.xs .flat { fill: #e9e5da; }
.xs .water { fill: #dbe7ec; }
.xs .ray { fill: none; stroke: var(--warn); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 5 4; }
.xs .ray-2 { opacity: 0.45; } .xs .ray-3 { opacity: 0.2; }
.xs .stop { fill: var(--warn); }
.xs .alert { fill: none; stroke: var(--warn); stroke-width: 1.5; stroke-linecap: round; }
.xs .route { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 7; }
.xs .tick { fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xs .warn-t { fill: var(--warn); }
.xs .lbl { font-weight: 500; fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .xs .draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
  .xs .draw.d2 { animation-delay: 0.35s; }
  .xs .fade { opacity: 0; animation: fade-in 0.6s ease forwards; animation-delay: 1.3s; }
  .xs .pop { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) forwards; animation-delay: 1.7s; }
  .xs .air { animation: flow 1.8s linear infinite; }
  .xs .route { animation: flow 1.2s linear infinite; }
  .xs .fall circle { animation: settle 5s linear infinite; opacity: 0; }
  .xs .fall .f2 { animation-delay: 1.2s; } .xs .fall .f3 { animation-delay: 2.4s; } .xs .fall .f4 { animation-delay: 3.3s; } .xs .fall .f5 { animation-delay: 0.6s; } .xs .fall .f6 { animation-delay: 4.1s; }
  .hero-copy > * { opacity: 0; transform: translateY(8px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; } .hero-copy > *:nth-child(3) { animation-delay: 0.16s; } .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
}
@media (prefers-reduced-motion: reduce) { .xs .fall { display: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: none; } }
@keyframes flow { to { stroke-dashoffset: -16; } }
@keyframes settle { 0% { transform: translateY(-30px); opacity: 0; } 15% { opacity: 0.8; } 75% { opacity: 0.8; } 100% { transform: translateY(46px); opacity: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Page hero with an illustration */
.page-hero.has-art .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(28px, 5vw, 72px); align-items: center; }
.page-hero.has-art .crumb { grid-column: 1 / -1; margin-bottom: 0; }
.page-art { margin: 0; background: var(--bone-2); border-radius: 20px; overflow: hidden; }
.page-art .xs text, .split-art .xs text { font-size: 15px; }
@media (max-width: 860px) { .page-hero.has-art .wrap { grid-template-columns: minmax(0, 1fr); } .page-art { max-width: 560px; } }

/* Card illustrations (decorative) */
.cls-art { background: var(--bone-2); border-radius: var(--r-sm); margin: 0 0 16px; }
.cls-art .xs { max-width: 280px; margin: 0 auto; }
.post-art { background: var(--bone-2); margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 14px; border-radius: var(--r) var(--r) 0 0; }
.bg-bone .post-art { background: var(--bone); }
.split-art { margin: 28px 0 0; max-width: 460px; background: var(--bone-2); border-radius: 20px; overflow: hidden; }
@media (max-width: 860px) { .split-art { margin-bottom: 8px; } }

/* ---------- Interactive diagrams ---------- */
.xs .cap { fill: var(--green); }

/* Hero explorer */
.xs .hl { fill: rgba(46, 138, 108, 0.16); stroke: var(--green); stroke-width: 2; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.xs .hl.on { opacity: 1; }
.xs .hs { display: none; cursor: pointer; }
.xs.live .hs { display: inline; }
.xs .hs circle { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; transition: fill 0.15s ease; }
.xs .hs .ring { fill: none; stroke: var(--green); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.xs .hs text { font-size: 11px; font-weight: 600; fill: var(--ink); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.xs .hs:hover circle { fill: var(--bone); }
.xs .hs.on circle { fill: var(--ink); }
.xs .hs.on text { fill: var(--white); }
.xs .fade { transition: opacity 0.25s ease; }
.xs.exploring .fade { opacity: 0.18 !important; }
@media (prefers-reduced-motion: no-preference) { .xs.live:not(.touched) .hs .ring { animation: ping 2.4s ease-out infinite; } }
@keyframes ping { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }
.xp { background: var(--white); border-top: 1px solid var(--line); padding: 16px clamp(16px, 2vw, 24px) 20px; }
.xp-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding-bottom: 2px; }
.xp-chips::-webkit-scrollbar { display: none; }
.xp-chips button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 5px 13px 5px 6px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--ink); font-family: var(--ui); font-size: 0.9rem; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.xp-chips button:hover { border-color: var(--ink); }
.xp-chips i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 0.75rem; font-weight: 600; }
.xp-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.xp-card { min-height: 128px; }
.xp-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.xp-card p { font-size: 0.98rem; color: var(--text-2); margin-bottom: 0.5em; }
@media (prefers-reduced-motion: no-preference) { .xp-card > div:not([hidden]) { animation: rise-in 0.25s ease; } }

/* Class explorer */
.cfg-wrap { margin-bottom: 40px; }
.cfg { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); background: var(--white); border-radius: var(--r); overflow: hidden; }
.cfg-fig { background: var(--bone-2); padding: 12px 0 0; display: flex; flex-direction: column; justify-content: center; }
.cfg-svg { width: 100%; height: auto; }
.cfg-svg .cfg-room { font-size: 11.5px; fill: var(--text-2); }
.cfg-svg .cfg-key { font-size: 12px; fill: var(--text-2); }
.cfg-side { padding: clamp(20px, 2.6vw, 32px); }
.cfg-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cfg-nums b { display: block; font-family: var(--ui); font-weight: 500; font-size: 2rem; letter-spacing: -0.03em; line-height: 1.05; }
.cfg-nums span { font-family: var(--ui); font-size: 0.88rem; color: var(--text-2); }
.cfg-desc { font-size: 0.98rem; color: var(--text-2); margin: 14px 0 10px; }
.cfg-dl { margin: 0 0 16px; font-family: var(--ui); font-size: 0.92rem; }
.cfg-dl div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.cfg-dl dt { color: var(--text-2); }
.cfg-dl dd { margin: 0; }
@media (prefers-reduced-motion: no-preference) { .cfg-in { animation: rise-in 0.35s ease; } }
@media (max-width: 960px) { .cfg { grid-template-columns: minmax(0, 1fr); } }

/* Shielding calculator section */
.calc-viz { margin: calc(-1 * clamp(22px, 3vw, 36px)) calc(-1 * clamp(22px, 3vw, 36px)) 26px; background: var(--bone-2); border-bottom: 1px solid var(--line); }
.calc-viz svg { width: 100%; height: auto; }
.xs .calc-ray { fill: none; stroke: url(#calc-ray); stroke-width: 2; stroke-linecap: round; }
.xs .room { transition: fill 0.3s ease; }
.xs .cz-safe { fill: var(--green-wash); } .xs .cz-low { fill: #edf2e4; } .xs .cz-mid { fill: #f4ead0; } .xs .cz-high { fill: var(--warn-wash); } .xs .cz-severe { fill: #efcbbd; }

/* Fallout decay chart */
.decay { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.prose .decay { margin: 1.5em 0; }
.decay-read { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 28px; align-items: end; margin-bottom: 8px; }
.decay-k { grid-column: 1 / -1; font-family: var(--ui); color: var(--text-2); margin: 0; font-size: 0.95rem; }
.decay-k b { color: var(--ink); font-weight: 500; }
.decay-big { font-family: var(--ui); font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); letter-spacing: -0.035em; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.decay-big small { font-size: 0.95rem; letter-spacing: 0; color: var(--text-2); display: block; margin-top: 6px; }
.decay-m { font-family: var(--ui); font-size: 0.98rem; color: var(--green-ink); margin: 0 0 4px; max-width: 40ch; }
.decay-svg { width: 100%; height: auto; touch-action: pan-y; }
.xs .decay-area { fill: var(--warn-wash); }
.xs .decay-line { fill: none; stroke: var(--warn); stroke-width: 2.5; stroke-linejoin: round; }
.xs .decay-bar { fill: var(--green); transition: opacity 0.2s ease; }
.xs .decay-bar.past { opacity: 0.25; }
.xs .decay-days { font-size: 11.5px; fill: var(--text-2); }
.xs.narrow .decay-days { font-size: 14px; }
.xs .decay-cur { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.xs .decay-pt { fill: var(--white); stroke: var(--warn); stroke-width: 2.5; }
.xs .decay-hit { fill: transparent; cursor: ew-resize; }
@media (min-width: 900px) {
  .decay-wide { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 clamp(28px, 4vw, 56px); align-items: start; }
  .decay-wide .decay-read { grid-row: 1 / span 3; grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 8px; }
  .decay-wide .decay-m { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
  .decay-wide .decay-svg, .decay-wide .decay-lab, .decay-wide .decay-range { grid-column: 2; }
}
.decay-lab { display: block; font-family: var(--ui); font-size: 0.88rem; color: var(--text-2); margin: 6px 0 2px; }
.decay-range { width: 100%; accent-color: var(--green); margin: 0; }
@media (max-width: 640px) {
  .decay-read { grid-template-columns: minmax(0, 1fr); } .decay-m { margin-top: 8px; }
  .calc-viz .xs text { font-size: 16px; }
}

/* ---------- Facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 26px 24px 24px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { display: block; font-family: var(--ui); font-weight: 500; font-size: var(--fs-2); letter-spacing: -0.02em; line-height: 1.15; }
.facts span { color: var(--text-2); font-size: 0.98rem; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(3) { padding-left: 0; border-left: 0; } .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 420px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Cards ---------- */
.card { --pad: clamp(22px, 2.6vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bg-bone .card, .bg-bone-2 .card { border-color: transparent; }
.card h3 { margin-bottom: 0.2em; }
.card p { margin-bottom: 0.6em; color: var(--text-2); }
.card .push { margin-top: auto; padding-top: 10px; }
a.card { text-decoration: none; transition: border-color 0.2s ease; }
a.card:hover { border-color: var(--ink); }

/* Shelter class cards */
.class-card .cls-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.class-card .cls-name { font-family: var(--ui); font-size: var(--fs-2); font-weight: 500; letter-spacing: -0.02em; }
.class-card .cls-price { font-family: var(--ui); font-size: 0.95rem; color: var(--text-2); white-space: nowrap; }
.class-card .cls-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.class-card .cls-nums b { display: block; font-family: var(--ui); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.1; }
.class-card .cls-nums span { font-family: var(--ui); font-size: 0.88rem; color: var(--text-2); }
.class-card ul { list-style: none; padding: 0; margin: 0 0 8px; font-size: 0.98rem; color: var(--text-2); }
.class-card li { padding-left: 18px; position: relative; }
.class-card li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.class-card.featured { border-color: var(--ink); box-shadow: 0 18px 40px -28px rgba(21, 24, 28, 0.5); }
.tag { display: inline-block; font-family: var(--ui); font-size: 0.8rem; font-weight: 500; padding: 3px 10px; border-radius: 99px; background: var(--green-wash); color: var(--green-ink); }

/* ---------- Honest limits ---------- */
.limits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.limits .card { gap: 0; }
.limits h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.limits ul { list-style: none; padding: 0; margin: 0; }
.limits li { padding: 12px 0 12px 26px; border-top: 1px solid var(--line); position: relative; margin: 0; color: var(--ink-2); font-size: 1rem; }
.limits li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; }
.limits .yes li::before { background: var(--green); }
.limits .no li::before { border: 2px solid var(--warn); }
.limits .no { background: var(--warn-wash); border-color: transparent; }
.limits .no li { border-top-color: #ebd3c8; }
.ic { width: 12px; height: 12px; border-radius: 50%; flex: none; box-sizing: border-box; }
.ic.yes { background: var(--green); } .ic.no { border: 2px solid var(--warn); }
@media (max-width: 760px) { .limits { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Layers (how protection works) ---------- */
.layers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: none; border-top: 1px solid var(--line); }
.layers li { padding: 24px 24px 0 0; margin: 0; }
.layers li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.layers .lv { font-family: var(--ui); font-size: 2rem; font-weight: 400; letter-spacing: -0.03em; color: var(--green-ink); line-height: 1; margin-bottom: 14px; }
.layers h3 { margin-bottom: 6px; }
.layers p { color: var(--text-2); font-size: 1rem; }
@media (max-width: 860px) { .layers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .layers li:nth-child(3) { padding-left: 0; border-left: 0; } .layers li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 8px; } }
@media (max-width: 520px) { .layers { grid-template-columns: minmax(0, 1fr); } .layers li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Steps (genuine sequences) ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; max-width: none; display: grid; gap: 0; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); margin: 0; }
.on-ink .steps > li { border-top-color: #2f353b; }
.steps > li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-family: var(--ui); font-size: 0.95rem; font-weight: 500; }
.steps h3 { margin-bottom: 4px; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--text-2); font-size: 1rem; }
.on-ink .steps p { color: #b0b7b3; }
.steps .when { font-family: var(--ui); font-size: 0.88rem; color: var(--green-ink); margin-bottom: 4px; display: block; }

/* ---------- Feature list ---------- */
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; max-width: none; }
.features li { margin: 0; }
.features h3 { font-size: 1.15rem; margin-bottom: 6px; }
.features p { color: var(--text-2); font-size: 1rem; margin: 0; }
.on-ink .features p { color: #b0b7b3; }
.features .ico { width: 40px; height: 40px; margin-bottom: 14px; color: var(--ink); }
.on-ink .features .ico { color: var(--bone); }
.ico .acc { stroke: var(--green); }
.ico .accf { fill: var(--green); }
.on-ink .ico .acc { stroke: var(--green-dk); }
.on-ink .ico .accf { fill: var(--green-dk); }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 16ch; font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
.page-hero .lede { margin-top: 6px; }
.crumb { font-family: var(--ui); font-size: 0.92rem; color: var(--text-2); margin-bottom: 20px; }
.crumb a { text-decoration: none; } .crumb a:hover { text-decoration: underline; }

/* ---------- Sub-nav (in-page) ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0 auto; padding: 10px var(--gutter); display: flex; gap: 6px; overflow-x: auto; max-width: var(--max); scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav li { margin: 0; flex: none; }
.subnav a { display: block; font-family: var(--ui); font-size: 0.95rem; text-decoration: none; color: var(--text-2); padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.subnav a:hover { color: var(--ink); border-color: var(--ink); }
.subnav a.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); margin: 0 0 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
caption { caption-side: bottom; text-align: left; font-family: var(--ui); font-size: 0.88rem; color: var(--text-2); padding: 12px 18px; border-top: 1px solid var(--line); }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-family: var(--ui); font-weight: 500; font-size: 1rem; background: var(--bone-2); white-space: nowrap; }
tbody th { font-family: var(--ui); font-weight: 400; color: var(--text-2); font-size: 0.95rem; }
td { font-family: var(--ui); font-weight: 400; }
.spec th:first-child { position: sticky; left: 0; background: var(--white); z-index: 1; min-width: 170px; }
.spec thead th:first-child { background: var(--bone-2); }
.spec td { min-width: 150px; }
.num { font-variant-numeric: tabular-nums; }
.hl { color: var(--green-ink); font-weight: 500; }

/* ---------- Callouts ---------- */
.note { border-radius: var(--r-sm); background: var(--bone-2); padding: 18px 22px; margin: 1.5rem 0; max-width: 760px; }
.note p:last-child { margin: 0; }
.note.warn { background: var(--warn-wash); }
.note.safe { background: var(--green-wash); }

/* ---------- Statement ---------- */
.statement { font-family: var(--ui); font-weight: 500; font-size: var(--fs-3); letter-spacing: -0.025em; line-height: 1.15; max-width: 22ch; margin: 0 0 0.6em; }

/* ---------- Zones ---------- */
.zones-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.zones { width: 100%; max-width: 520px; height: auto; }
.zones text { font-family: var(--ui); font-size: 13px; fill: var(--ink); }
.zone-key { list-style: none; padding: 0; margin: 0; }
.zone-key li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.zone-key .sw { width: 14px; height: 14px; border-radius: 50%; margin-top: 5px; }
.zone-key h3 { margin-bottom: 2px; font-size: var(--fs-0); letter-spacing: 0; }
.zone-key p { margin: 0; color: var(--text-2); font-size: 0.98rem; }
.z1 { background: #8f3a24; } .z2 { background: #c7774a; } .z3 { background: #e5c07a; } .z4 { background: #9cc8b5; }
@media (max-width: 860px) { .zones-wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); }
.calc-in { padding: clamp(22px, 3vw, 36px); }
.calc-out { padding: clamp(22px, 3vw, 36px); background: var(--ink); color: var(--bone); }
.calc label { font-family: var(--ui); font-weight: 500; display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.calc output { font-variant-numeric: tabular-nums; color: var(--green-ink); }
.calc input[type="range"] { width: 100%; accent-color: var(--green); margin: 0 0 26px; }
.calc-hint { font-size: 0.95rem; color: var(--text-2); margin: 0; }
.calc-k { font-family: var(--ui); font-size: 0.9rem; color: #a9b0ac; margin: 0 0 4px; }
.calc-big { font-family: var(--ui); font-weight: 400; font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem); letter-spacing: -0.035em; line-height: 1; margin: 0 0 22px; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 4px; background: #2a3036; overflow: hidden; margin: 6px 0 16px; }
.bar i { display: block; height: 100%; width: 100%; background: #c7774a; transition: width 0.4s ease; }
.bar.in i { background: var(--green-dk); }
.calc-pf { font-family: var(--ui); font-size: 1.1rem; margin: 6px 0 4px; }
.calc-small { font-size: 0.92rem; color: #a9b0ac; margin: 0 0 10px; }
@media (max-width: 760px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Protocol tabs ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 28px; padding-bottom: 4px; scrollbar-width: thin; }
.tabs button { flex: none; display: grid; gap: 2px; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; cursor: pointer; font-family: var(--ui); font-size: 1rem; font-weight: 500; color: var(--ink); min-width: 140px; transition: border-color 0.18s ease, background-color 0.18s ease; }
.tabs button span { font-size: 0.82rem; font-weight: 400; color: var(--text-2); }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tabs button[aria-selected="true"] span { color: #b0b7b3; }
.panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 40px); }
.panel[hidden] { display: none; }
.panel h3 { font-size: var(--fs-2); }
.panel .when { font-family: var(--ui); color: var(--green-ink); font-size: 0.95rem; }
.check { list-style: none; padding: 0; margin: 0; }
.check li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--line); margin: 0; font-size: 1rem; }
.check li:first-child { border-top: 0; padding-top: 0; }
.check li::before { content: ""; position: absolute; left: 0; top: 15px; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--green); box-sizing: border-box; }
.check li:first-child::before { top: 3px; }
@media (prefers-reduced-motion: no-preference) { .panel:not([hidden]) { animation: rise-in 0.3s ease; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .panel { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Escape plan ---------- */
.plan-wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .plan-wrap { grid-template-columns: minmax(0, 1fr); } }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 99px; background: var(--bone); margin-bottom: 18px; }
.seg button { border: 0; background: transparent; padding: 9px 16px; border-radius: 99px; font-family: var(--ui); font-size: 0.95rem; cursor: pointer; color: var(--text-2); min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.plan { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.plan text { font-family: var(--ui); font-size: 13px; fill: var(--ink); }
.plan .sm { font-size: 11px; fill: var(--text-2); }
.plan .p-earth { fill: #ebe7dd; }
.plan .p-wall { fill: #c9c5ba; }
.plan .p-room { fill: var(--white); stroke: var(--ink); stroke-width: 1.2; }
.plan .p-plant { fill: #e6efea; stroke: var(--ink); stroke-width: 1.2; }
.plan .p-decon { fill: #f4ead0; stroke: var(--ink); stroke-width: 1.2; }
.plan .p-door { stroke: var(--ink); stroke-width: 5; }
.plan .p-house { fill: none; stroke: var(--stone); stroke-width: 1.5; stroke-dasharray: 6 4; }
.plan .p-tunnel { fill: #ddd6c6; stroke: var(--ink); stroke-width: 1; }
.plan .p-hatch { fill: var(--green); stroke: var(--ink); stroke-width: 1.2; }
.plan .route { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 9; transition: opacity 0.25s ease; }
.plan .r-in { stroke: var(--green); } .plan .r-out { stroke: #b4572f; } .plan .r-alt { stroke: #5b6bb0; }
.plan .a-in { fill: var(--green); } .plan .a-out { fill: #b4572f; } .plan .a-alt { fill: #5b6bb0; }
.plan .dim { opacity: 0.1; }
@media (prefers-reduced-motion: no-preference) { .plan .route:not(.dim) { animation: run 1.1s linear infinite; } }
@keyframes run { to { stroke-dashoffset: -20; } }
.legend { list-style: none; padding: 0; margin: 0; }
.legend li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); margin: 0; font-size: 0.98rem; }
.legend li:first-child { border-top: 0; padding-top: 0; }
.legend .lg { width: 22px; height: 4px; border-radius: 2px; margin-top: 11px; }
.lg-in { background: var(--green); } .lg-out { background: #b4572f; } .lg-alt { background: #5b6bb0; }
.legend .box { height: 14px; margin-top: 5px; border: 1px solid var(--ink); border-radius: 3px; }
.lg-decon { background: #f4ead0; } .lg-plant { background: #e6efea; } .lg-hatch { background: var(--green); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > label, .field > .label { font-family: var(--ui); font-weight: 500; font-size: 1rem; }
.hint { font-size: 0.92rem; color: var(--text-2); margin-top: -2px; }
.req { color: var(--warn); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; font-family: var(--ui); font-size: 1rem; color: var(--ink); background: var(--white); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; min-height: 50px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: var(--stone); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--green-wash); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--warn); }
.err { display: none; color: var(--warn); font-family: var(--ui); font-size: 0.92rem; }
.field.invalid .err { display: block; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ui); font-size: 0.95rem; padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--line-2); background: var(--white); transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; min-height: 42px; }
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:checked + span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-dk); }
.chip input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }

/* Wizard */
.wizard-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .wizard-layout { grid-template-columns: minmax(0, 1fr); } }
.progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.progress i { height: 4px; border-radius: 2px; background: var(--line); transition: background-color 0.3s ease; }
.progress i.done { background: var(--ink); }
.progress i.now { background: var(--green); }
.step-label { font-family: var(--ui); font-size: 0.92rem; color: var(--text-2); margin-bottom: 26px; display: flex; justify-content: space-between; gap: 12px; }
.step { display: grid; gap: 26px; border: 0; padding: 0; margin: 0; min-width: 0; }
.step[hidden] { display: none; }
.step h2 { font-size: var(--fs-2); margin-bottom: 0; }
.step .step-intro { color: var(--text-2); margin: -16px 0 0; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) { .step:not([hidden]) { animation: rise-in 0.3s ease; } }
.err-box { display: none; border-radius: 12px; background: var(--warn-wash); padding: 14px 18px; font-family: var(--ui); font-size: 0.98rem; }
.err-box.show { display: block; }
.err-box ul { margin: 6px 0 0; }
.review-text { white-space: pre-wrap; word-break: break-word; font-family: var(--ui); font-size: 0.95rem; line-height: 1.55; background: var(--bone-2); border-radius: 12px; padding: 20px; max-height: 440px; overflow: auto; margin: 0; }
.status { font-family: var(--ui); color: var(--green-ink); min-height: 1.4em; margin: 0; }
.aside-card { background: var(--bone-2); border-radius: var(--r); padding: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.aside-card h2 { font-size: 1.1rem; letter-spacing: -0.01em; }
.aside-card ul { padding-left: 1.1em; margin: 0 0 12px; font-size: 0.98rem; color: var(--text-2); }
.aside-card p { font-size: 0.98rem; color: var(--text-2); }

/* Family plan builder */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .builder { grid-template-columns: minmax(0, 1fr); } }
.sheet { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); position: sticky; top: calc(var(--header-h) + 20px); }
.sheet h3 { font-size: var(--fs-1); border-bottom: 1.5px solid var(--ink); padding-bottom: 10px; }
.sheet h4 { margin: 1.2em 0 0.3em; font-size: 1rem; }
.sheet table { font-size: 0.95rem; }
.sheet th, .sheet td { padding: 8px 10px 8px 0; }
.sheet .empty { color: var(--text-2); font-style: italic; }
@media (max-width: 900px) { .sheet { position: static; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-family: var(--ui); font-weight: 500; font-size: 1.15rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.2s ease; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 0 22px; color: var(--text-2); }
.faq .answer p:last-child { margin: 0; }
.faq-group { margin-bottom: 56px; }
.faq-group h2 { font-size: var(--fs-2); margin-bottom: 12px; }

/* ---------- Legal ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: var(--fs-2); margin-top: 1.8em; }
.legal h3 { margin-top: 1.4em; font-size: 1.1rem; }
.legal .updated { font-family: var(--ui); color: var(--text-2); }
.legal .table-wrap { margin: 1rem 0 1.5rem; }

/* ---------- CTA band ---------- */
.cta { border-radius: 28px; background: var(--ink); color: var(--bone); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.cta h2 { margin: 0; max-width: 16ch; }
.cta p { color: #b8beba; }
@media (max-width: 800px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a9b0ac; padding: 72px 0 32px; font-family: var(--ui); font-size: 0.96rem; }
.site-footer a { color: var(--bone); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--green-dk); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { max-width: 36ch; margin: 18px 0 14px; }
.footer-brand .logo svg { width: 110px; }
.footer-head { color: var(--bone); font-weight: 500; margin: 0 0 12px; }
.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 56px; padding-top: 22px; border-top: 1px solid #2c3238; font-size: 0.88rem; }
.footer-base p { margin: 0; max-width: 80ch; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Print (family plan) ---------- */
@media print {
  .site-header, .site-footer, .page-hero, .subnav, .no-print, .builder-form { display: none !important; }
  .builder { display: block; } .sheet { border: 0; padding: 0; position: static; } .section { padding: 0; }
}

/* ---------- Guides: cards ---------- */
.post-card h3 { font-size: 1.2rem; margin: 2px 0 6px; }
.post-card p { font-size: 0.98rem; }
.post-cat { font-family: var(--ui); font-size: 0.85rem; font-weight: 500; color: var(--green-ink); margin: 0; }
.post-meta { font-family: var(--ui); font-size: 0.9rem; color: var(--text-2); margin: 0; }
.page-hero .post-cat { margin-bottom: 10px; }
.page-hero .post-meta { margin-top: 18px; }
.post-title { max-width: 22ch !important; }

/* ---------- Guides: article typography ---------- */
.prose { font-size: 1.125rem; line-height: 1.7; }
.prose > * { max-width: 70ch; }
.prose h2 { font-size: var(--fs-2); margin: 2.2em 0 0.6em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 0.5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { font-weight: 600; }
.prose a { text-decoration-color: var(--green); }
.prose .table-wrap { margin: 1.5em 0; }
.prose table { font-size: 0.95rem; line-height: 1.5; }
.prose th, .prose td { min-width: 140px; }
.prose .table-wrap { max-width: 70ch; }
.prose .key { border-left: 3px solid var(--green); background: var(--green-wash); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 16px 20px; margin: 1.6em 0; }
.prose .key p:last-child { margin: 0; }
.prose .key strong:first-child { font-family: var(--ui); font-weight: 500; display: block; margin-bottom: 4px; }
.prose .toc { background: var(--bone-2); border-radius: var(--r); padding: 18px 22px; margin: 0 0 2em; font-family: var(--ui); font-size: 1rem; }
.prose .toc p { font-weight: 500; margin: 0 0 6px; }
.prose .toc ol { margin: 0; padding-left: 1.2em; }
.prose .toc li { margin: 0.25em 0; }
.prose .sources { font-family: var(--ui); font-size: 0.92rem; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 2.4em; }
.prose .sources ol { padding-left: 1.2em; }

/* ---------- News ---------- */
.news { list-style: none; padding: 0; margin: 0; max-width: 900px; }
.news > li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 32px; padding: 30px 0; border-top: 1px solid var(--line); margin: 0; }
.news time { font-family: var(--ui); font-size: 0.95rem; color: var(--green-ink); font-weight: 500; padding-top: 3px; }
.news h2 { font-size: 1.35rem; margin-bottom: 8px; }
.news p { color: var(--ink-2); }
.news .why { font-family: var(--ui); font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.news .src { font-family: var(--ui); font-size: 0.9rem; color: var(--text-2); margin: 0; }
@media (max-width: 640px) { .news > li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Component list ---------- */
.comp-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.comp { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; display: flex; flex-direction: column; min-width: 0; }
.bg-bone .comp { border-color: transparent; }
.comp h3 { font-size: 1.15rem; margin-bottom: 6px; }
.comp > p { color: var(--text-2); font-size: 1rem; margin-bottom: 14px; }
.comp dl { margin: auto 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); font-family: var(--ui); font-size: 0.92rem; }
.comp dl div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.comp dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.comp dt { color: var(--text-2); }
.comp dd { margin: 0; color: var(--ink); }
@media (max-width: 760px) { .comp-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Maintenance year ---------- */
.year { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.yr-m { border-radius: 12px; background: var(--bone-2); padding: 12px 10px 14px; min-height: 92px; display: flex; flex-direction: column; gap: 6px; font-family: var(--ui); border-top: 4px solid transparent; }
.yr-m b { font-weight: 500; font-size: 0.95rem; }
.yr-m span { font-size: 0.8rem; line-height: 1.25; color: var(--ink-2); }
.yr-m.wet { background: #e7eef2; }
.yr-m.cold { background: #eceef4; }
.yr-m.on { border-top-color: var(--green); background: var(--green-wash); }
@media (max-width: 900px) { .year { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 480px) { .year { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Mobile refinements ---------- */
.plan-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0; }
.scroll-hint { display: none; font-family: var(--ui); font-size: 0.9rem; color: var(--text-2); margin: 0 0 8px; }
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .logo svg { width: 80px; }
  .site-nav { padding-top: 8px; }

  /* Comfortable tap targets */
  .link-arrow { min-height: 44px; }
  .crumb a { display: inline-block; padding: 12px 4px 12px 0; }
  .crumb { margin-bottom: 8px; }
  .footer-nav { gap: 0; }
  .footer-nav a { display: block; padding: 10px 0; }
  .footer-brand > a[href^="mailto"] { display: inline-block; padding: 10px 0; }
  .faq summary { padding: 18px 0; min-height: 56px; }

  /* Diagrams: larger labels, full-bleed hero art */
  .hero-art { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .xs text { font-size: 16px; }
  .zones text { font-size: 18px; }
  .scroll-hint { display: block; }
  .plan-scroll .plan { width: 680px; max-width: none; }
  .plan-scroll .cfg-svg { width: 640px; max-width: none; }

  /* Tighter vertical rhythm */
  .section { padding: 56px 0; }
  .head { margin-bottom: 28px; }
  .head p, .lede { font-size: 1.125rem; }
  .page-hero { padding: 36px 0 28px; }
  .cta { border-radius: 20px; padding: 32px 22px; }
  .btn-row .btn { flex: 1 1 auto; }
  .card { --pad: 20px; }
  .comp { padding: 20px; }
  .wiz-nav, .btn-row { gap: 12px; }
}
.hp { display: none !important; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
[hidden] { display: none !important; }
