/* HeatwaveReady design system — warm amber/coral heat + cool slate. Light/dark native. */
:root {
  --bg: #fdfbf7;
  --bg-raise: #ffffff;
  --ink: #1f2430;
  --ink-soft: #5a6172;
  --line: #e8e3d9;
  --accent: #e05d3d;        /* coral heat */
  --accent-ink: #ffffff;
  --accent-soft: #fbeee9;
  --cool: #33586e;          /* slate blue */
  --cool-soft: #eef3f6;
  --good: #2e7d4f;
  --warn: #b3541e;
  /* NWS heat-index band ramp — one token set reused by the heat-index widget result,
     evap/fan tints and chips (A6 iv). */
  --band-caution: #b8860b;
  --band-ext-caution: #c2670e;
  --band-danger: #c0392b;
  --band-ext-danger: #7d1d13;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(31, 36, 48, .07), 0 8px 24px rgba(31, 36, 48, .06);
  --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161c;
    --bg-raise: #1c1f27;
    --ink: #e8e6e1;
    --ink-soft: #9aa0ad;
    --line: #2a2e38;
    --accent: #ec6a49;
    --accent-soft: #2b211d;
    --cool: #7fa8c0;
    --cool-soft: #1c242b;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
a { color: var(--cool); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.015em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: .4em 0; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-top: 2.2em; }
img { max-width: 100%; height: auto; border-radius: var(--radius); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header / footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg-raise); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { color: var(--accent); display: inline-flex; line-height: 0; }
.brand-mark svg { display: block; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--ink-soft); font-size: .88rem; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0; }
.footer-fine { font-size: .8rem; }

/* hero */
.hero { padding: 48px 0 8px; }
.hero .lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 46rem; }
.answer-first { font-size: 1.08rem; max-width: 48rem; }
.answer-first strong { color: var(--accent); }

/* disclosure */
.disclosure {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .85rem;
  color: var(--ink-soft);
  max-width: 48rem;
}

/* top picks */
.top-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 26px 0; }
.pick-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease;
}
.pick-card:hover { border-color: var(--accent); box-shadow: 0 2px 6px rgba(31,36,48,.1), 0 12px 28px rgba(31,36,48,.08); color: var(--ink); }
.pick-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.pick-name { font-weight: 650; }
.pick-why { font-size: .87rem; color: var(--ink-soft); }

/* comparison table */
.table-scroll { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raise); box-shadow: var(--shadow); }
table.compare { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 720px; }
.compare th, .compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--cool-soft); color: var(--cool); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; position: sticky; top: 0; }
.compare thead th[data-sort] { cursor: pointer; }
.compare thead th[data-sort]:hover { color: var(--accent); }
.compare thead th[data-sort]::after { content: " ↕"; opacity: .45; }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }
.compare tbody th a { font-weight: 650; text-decoration: none; }
/* Narrow screens: stack each row into a self-contained card so the price + buy CTA
   are never scrolled off-screen (A2 mobile fix). Header row hidden; per-cell labels
   come from data-label. */
@media (max-width: 600px) {
  .table-scroll { overflow-x: visible; border: 0; background: none; box-shadow: none; }
  table.compare { min-width: 0; font-size: .95rem; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare td, .compare th { display: block; }
  .compare tr {
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raise);
    box-shadow: var(--shadow); margin: 14px 0; padding: 6px 16px 12px;
  }
  .compare td, .compare tbody th { border-bottom: 1px solid var(--line); padding: 9px 0; }
  .compare tr td:last-child { border-bottom: 0; }
  .compare tbody th[scope="row"] { font-size: 1.08rem; padding: 10px 0; }
  .compare td { display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  .compare td::before {
    content: attr(data-label); text-align: left; font-weight: 600;
    color: var(--ink-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; flex: 0 0 auto;
  }
  .compare td .cta-compact { align-items: flex-end; }
  .compare .price-asof { display: inline; }
}

/* prices + CTAs */
.price { font-weight: 700; white-space: nowrap; }
.price-asof { display: block; font-size: .72rem; color: var(--ink-soft); }
.cta-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.cta-compact { flex-direction: column; gap: 6px; margin-top: 0; }
.btn {
  display: inline-block; padding: 9px 16px; border-radius: 8px; font-weight: 650; font-size: .9rem;
  text-decoration: none; text-align: center; transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--cool); border: 1.5px solid var(--line); }
.cta-soldout { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); font-style: italic; padding: 6px 0; }
.cta-compact .btn { padding: 6px 10px; font-size: .8rem; }

/* spec cards */
.spec-card {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin: 30px 0; box-shadow: var(--shadow);
}
.spec-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.spec-card-head h3 { margin: 0; }
.verdict { font-size: 1.04rem; border-left: 3px solid var(--cool); padding-left: 14px; color: var(--ink); }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 20px; margin: 18px 0; }
.spec-grid dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.spec-grid dd { margin: 0; font-weight: 600; font-size: .95rem; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 16px 0; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-cons h4 { margin: 0 0 6px; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.pros h4 { color: var(--good); }
.cons h4 { color: var(--warn); }
.pros-cons ul { margin: 0; padding-left: 20px; font-size: .93rem; }
.pros-cons li { margin: 4px 0; }
.skip-if { background: var(--cool-soft); border-radius: 8px; padding: 10px 14px; font-size: .92rem; }
.source-note { font-size: .78rem; color: var(--ink-soft); margin-top: 12px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 12px 0; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { margin: 0; font-size: 1.02rem; }
.faq-a { padding: 0 0 16px; color: var(--ink-soft); max-width: 46rem; }

/* breadcrumb */
.breadcrumb { font-size: .82rem; color: var(--ink-soft); margin: 18px 0 0; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* prose helpers */
.prose { max-width: 48rem; }
.prose-wide { max-width: 60rem; }
.callout { background: var(--cool-soft); border-left: 3px solid var(--cool); border-radius: 8px; padding: 14px 18px; margin: 22px 0; max-width: 48rem; }
.callout-warn { background: var(--accent-soft); border-left-color: var(--accent); }

/* home hero band */
.home-hero { padding: 64px 0 40px; background: linear-gradient(180deg, var(--accent-soft), transparent); }
.home-hero h1 { max-width: 40rem; }
.status-strip {
  display: inline-flex; gap: 10px; align-items: center;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 99px;
  padding: 6px 16px; font-size: .85rem; box-shadow: var(--shadow); margin-top: 14px;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* status-strip as a link (home hero) */
a.status-strip { text-decoration: none; color: var(--ink); }
a.status-strip:hover { border-color: var(--accent); color: var(--ink); }

/* ---- heat-index widget ---- */
.hi-widget {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 24px 0; box-shadow: var(--shadow); max-width: 52rem;
}
.hi-widget-head h3 { margin: 0 0 6px; }
.hi-sub { font-size: .92rem; color: var(--ink-soft); margin: 0 0 16px; }
.hi-form { margin: 0; }
.hi-fields { display: flex; gap: 16px; flex-wrap: wrap; }
.hi-fields label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink-soft); flex: 1 1 160px; }
.hi-fields input {
  font: inherit; font-size: 1.1rem; padding: 9px 12px; border: 1.5px solid var(--line);
  border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%;
}
.hi-fields input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hi-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.hi-status { font-size: .88rem; color: var(--cool); margin: 12px 0 0; }
.hi-status-err { color: var(--warn); }
.hi-result { margin-top: 16px; border: 1px solid var(--line); border-left-width: 5px; border-radius: 8px; padding: 16px 18px; background: var(--bg); }
.hi-readout { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hi-big { display: flex; flex-direction: column; line-height: 1; }
.hi-num { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.hi-cap { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }
.hi-band { display: flex; flex-direction: column; gap: 3px; }
.hi-band strong { font-size: 1.05rem; }
.hi-band span { font-size: .88rem; color: var(--ink-soft); max-width: 34rem; }
.hi-inputs-echo { font-size: .8rem; color: var(--ink-soft); margin: 12px 0 0; }
.hi-evap { font-size: .92rem; margin: 10px 0 0; padding: 8px 12px; border-radius: 6px; background: var(--cool-soft); }
.hi-fan { font-size: .9rem; margin: 8px 0 0; padding: 8px 12px; border-radius: 6px; font-weight: 600; }
.hi-fineprint { font-size: .74rem; color: var(--ink-soft); margin: 14px 0 0; }

/* band colors — used by result border, evap/fan tints, and chips */
.hi-result.hi-safe, .hi-result.hi-good { border-left-color: var(--good); }
.hi-result.hi-caution { border-left-color: var(--band-caution); }
.hi-result.hi-extreme-caution { border-left-color: var(--band-ext-caution); }
.hi-result.hi-danger { border-left-color: var(--band-danger); }
.hi-result.hi-extreme-danger { border-left-color: var(--band-ext-danger); }
.hi-evap.hi-good { background: rgba(46,125,79,.12); }
.hi-evap.hi-caution { background: rgba(184,134,11,.14); }
.hi-evap.hi-danger { background: rgba(192,57,43,.12); }
.hi-fan.hi-danger { background: rgba(192,57,43,.14); color: var(--warn); }
.hi-chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.hi-chip.hi-caution { background: rgba(184,134,11,.16); color: #8a6508; }
.hi-chip.hi-extreme-caution { background: rgba(194,103,14,.16); color: #a1540b; }
.hi-chip.hi-danger { background: rgba(192,57,43,.16); color: #a5291d; }
.hi-chip.hi-extreme-danger { background: rgba(125,29,19,.18); color: #7d1d13; }
@media (prefers-color-scheme: dark) {
  .hi-chip.hi-caution { color: #e2b455; }
  .hi-chip.hi-extreme-caution { color: #eba15e; }
  .hi-chip.hi-danger { color: #e8897e; }
  .hi-chip.hi-extreme-danger { color: #e8897e; }
}

/* ---- El Niño status cards ---- */
.elnino-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 26px 0 12px; }
.status-card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.status-card-lead { border-left: 4px solid var(--accent); }
.status-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; }
.status-v { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.status-unit { font-size: 1rem; font-weight: 600; color: var(--ink-soft); margin-left: 2px; }
.status-card-lead .status-v { font-size: 1.25rem; color: var(--accent); }
.status-note { font-size: .78rem; color: var(--ink-soft); }
.elnino-asof { font-size: .85rem; color: var(--ink-soft); max-width: 52rem; }

/* featured El Niño card inside /prepare/ (demoted from top nav, promoted here) */
.elnino-feature {
  display: flex; flex-direction: column; gap: 8px; max-width: 48rem;
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-raise));
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: border-color .15s ease, box-shadow .15s ease;
}
.elnino-feature:hover { border-color: var(--accent); box-shadow: 0 2px 6px rgba(31,36,48,.1), 0 12px 28px rgba(31,36,48,.08); color: var(--ink); }
.elnino-feature-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.elnino-feature-h { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.elnino-feature-p { font-size: .93rem; color: var(--ink-soft); }

/* ---- ONI bar chart (pure CSS) ---- */
/* Geometry: 240px tall. Zero line at 110px from top; ~110px each way for bars
   (max ONI ~0.98 -> pct 44% of 240 = 105px). Bottom 20px reserved for labels.
   1.0 ONI unit = 45% of height; +/-0.5 threshold = 54px from the zero line. */
.oni-chart-scroll { overflow-x: auto; margin: 18px 0 6px; }
.oni-chart { position: relative; display: flex; align-items: stretch; gap: 3px; height: 240px; min-width: 640px; }
.oni-zero { position: absolute; left: 0; right: 0; top: 110px; height: 1px; background: var(--ink-soft); opacity: .55; }
.oni-threshold { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--ink-soft); opacity: .6; font-size: .68rem; }
.oni-threshold span { position: absolute; right: 2px; top: -8px; background: var(--bg); padding: 0 4px; color: var(--ink-soft); }
.oni-threshold-pos { top: 56px; }
.oni-threshold-neg { top: 164px; }
.oni-col { position: relative; flex: 1 1 0; min-width: 26px; }
.oni-bar { position: absolute; left: 15%; right: 15%; }
.oni-bar.oni-pos { bottom: 130px; background: var(--accent); border-radius: 3px 3px 0 0; }
.oni-bar.oni-neg { top: 110px; background: var(--cool); border-radius: 0 0 3px 3px; }
.oni-col-latest .oni-bar.oni-pos { background: linear-gradient(180deg, #c0392b, var(--accent)); box-shadow: 0 0 0 2px var(--accent-soft); }
.oni-lab { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: .62rem; color: var(--ink-soft); white-space: nowrap; }
.oni-lab .oni-year { display: block; font-size: .58rem; opacity: .85; }
.oni-col-latest .oni-lab { color: var(--accent); font-weight: 700; }
.oni-now { position: absolute; bottom: 132px; left: 0; right: 0; text-align: center; font-size: .58rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.oni-legend { display: flex; gap: 1rem; margin: 0 0 .5rem; font-size: .72rem; }
.oni-key-warm { color: var(--accent); font-weight: 600; }
.oni-key-cool { color: var(--cool); font-weight: 600; }

/* pull quote */
.pull-quote { border-left: 4px solid var(--accent); margin: 20px 0; padding: 8px 0 8px 18px; font-size: 1.12rem; color: var(--ink); max-width: 46rem; }
.pull-quote cite { display: block; font-size: .82rem; font-style: normal; color: var(--ink-soft); margin-top: 8px; }

/* ---- sizing calculators (BTU + evaporative CFM) ---- */
.calc-widget {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 24px 0; box-shadow: var(--shadow); max-width: 52rem;
}
.calc-head h3 { margin: 0 0 6px; }
.calc-sub { font-size: .92rem; color: var(--ink-soft); margin: 0 0 16px; }
.calc-form { margin: 0; }
.calc-fields { display: flex; gap: 16px; flex-wrap: wrap; }
.calc-fields label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink-soft); flex: 1 1 160px; }
.calc-fields input, .calc-fields select {
  font: inherit; font-size: 1.05rem; padding: 9px 12px; border: 1.5px solid var(--line);
  border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%;
}
.calc-fields input:focus, .calc-fields select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.calc-checks { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 0; }
.calc-check { display: flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--ink); font-weight: 500; }
.calc-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.calc-form .btn { margin-top: 16px; }
.calc-result { margin-top: 18px; border: 1px solid var(--line); border-left-width: 5px; border-radius: 8px; padding: 16px 18px; background: var(--bg); }
.calc-result.calc-ok { border-left-color: var(--cool); }
.calc-result.calc-err { border-left-color: var(--warn); }
.calc-big { display: flex; align-items: baseline; gap: 10px; line-height: 1; }
.calc-num { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.calc-unit { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.calc-lead { font-size: .96rem; margin: 8px 0 12px; }
.calc-breakdown { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--line); }
.calc-breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.calc-breakdown li span { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.calc-note { font-size: .84rem; color: var(--ink-soft); margin: 10px 0 0; padding: 8px 12px; border-radius: 6px; background: var(--cool-soft); }
.calc-warn { font-size: .88rem; margin: 10px 0 0; padding: 10px 12px; border-radius: 6px; background: rgba(184,134,11,.14); }
.calc-src { font-size: .76rem; color: var(--ink-soft); margin: 12px 0 0; }
.calc-fineprint { font-size: .74rem; color: var(--ink-soft); margin: 14px 0 0; }

/* guided-recommender extras: room-type preset, hint, size helper, "show me how" */
.calc-preset { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin: 0 0 12px; }
.calc-preset select {
  font: inherit; font-size: 1.05rem; padding: 9px 12px; border: 1.5px solid var(--line);
  border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%; max-width: 22rem;
}
.calc-preset select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.calc-hint { font-size: .82rem; color: var(--cool); margin: -4px 0 12px; min-height: 1em; }
.calc-hint:empty { margin: 0; min-height: 0; }
.calc-help { font-weight: 400; font-size: .74rem; color: var(--ink-soft); }
.calc-how { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 8px; }
.calc-how summary { cursor: pointer; font-size: .84rem; font-weight: 650; color: var(--cool); padding: 6px 0; list-style: none; }
.calc-how summary::-webkit-details-marker { display: none; }
.calc-how summary::before { content: "▸ "; color: var(--accent); }
.calc-how[open] summary::before { content: "▾ "; }
.calc-how .calc-breakdown { margin-top: 10px; }

/* the conversion bridge — the matched product (or an honest miss) */
.reco { margin: 14px 0 4px; border-radius: 8px; padding: 14px 16px; background: var(--accent-soft); border: 1px solid var(--line); }
.reco-none { background: var(--cool-soft); }
.reco-lead { font-size: .95rem; font-weight: 600; margin: 0 0 10px; }
.reco-pick { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.reco-pick-info { font-size: .96rem; }
.reco-price { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.reco-btn { flex: 0 0 auto; }
.reco-note { font-size: .84rem; color: var(--ink-soft); margin: 10px 0 0; }
.reco-note-inline { flex-basis: 100%; margin: 4px 0 0; }
.reco-situ-list { list-style: none; margin: 0; padding: 0; }
.reco-situ-list li {
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.reco-situ-list li:first-child { border-top: 0; }
.reco-situ-name { flex: 1 1 auto; font-size: .95rem; }
.reco-tag {
  flex: 0 0 auto; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--bg-raise); color: var(--cool); border: 1px solid var(--line);
  border-radius: 99px; padding: 3px 10px;
}

/* vent-kit CTA block (the "$40 path" gets a real buy block, not just prose) */
.vent-kits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; }
.vent-kit {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.vent-kit-for { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.vent-kit .cta-group { margin-top: 4px; }

/* scroll reveal (progressive enhancement, respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
