/* ==========================================================================
   site.css — layout + components. Mobile-first; breakpoints at 640 / 1024px.
   All colors come from tokens.css custom properties — never hardcode a hex
   here (the two exceptions: ink on tan/gold chips, which stays dark in both
   themes by design, matching the palette board).
   ========================================================================== */

/* ----- reset & base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;            /* ~17px body per the brief */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

img { max-width: 100%; height: auto; display: block; }

/* inline emoji icons (Twemoji SVGs) — scale with text, sit on the baseline */
.emoji {
  display: inline-block;
  height: 1em;
  width: 1em;
  vertical-align: -0.15em;
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}

p { max-width: 65ch; }            /* readable line length everywhere */

a { color: var(--teal); font-weight: 700; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }

em.sci { font-style: italic; }    /* scientific names — always italic */

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* ----- accessibility helpers --------------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--surface); color: var(--text);
  border: var(--line); border-radius: var(--radius);
  padding: 10px 16px; font-family: var(--font-display);
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ----- header & nav -------------------------------------------------------
   Mobile: brand row + hamburger; menu drops below as a column.
   Desktop (≥1024px): one horizontal bar, CTA button lives in the nav.      */
.site-header {
  background: var(--bg);
  border-bottom: var(--line);
  padding: 12px 0;
}

.nav-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.brand {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; color: var(--primary);
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  margin-right: auto;
}
.brand img { width: 44px; height: auto; }

/* theme toggle (pill) */
.theme-toggle {
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  background: var(--surface); color: var(--text);
  border: var(--line); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; box-shadow: var(--shadow);
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px;                      /* tap target */
  transition: transform .12s ease;
}
.theme-toggle:hover { transform: translateY(-2px); }

/* hamburger */
.nav-toggle {
  background: var(--surface); border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: pointer;
  width: 48px; height: 44px; display: inline-flex;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 3px; border-radius: 2px; background: var(--text);
  transition: transform .15s ease, opacity .15s ease;
}
/* hamburger → X when open */
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav { display: none; width: 100%; }
.nav-open .site-nav { display: block; }

.site-nav ul { list-style: none; display: flex; flex-direction: column; gap: 6px; padding: 14px 0 6px; }

.site-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--text); text-decoration: none;
  display: block; padding: 11px 14px; border-radius: var(--radius);
  min-height: 44px;
}
.site-nav a:hover { background: var(--surface-soft); }
.site-nav a[aria-current="page"] { background: var(--surface-soft); color: var(--primary); }

/* Desktop only — mobile uses the sticky bar. Scoped to .nav-bar so this wins
   over the later `.btn { display:inline-flex }` rule (same-specificity trap). */
.nav-bar .nav-cta { display: none; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 2px; padding: 0; }
  .site-nav a { padding: 10px 13px; }
  .nav-bar .nav-cta { display: inline-flex; margin-left: 6px; }
  .nav-bar { flex-wrap: nowrap; }
  .brand { margin-right: 18px; }
  /* DOM order is brand → toggle → hamburger → nav → CTA; on desktop we
     re-order to brand → nav → toggle → CTA so the menu sits by the logo. */
  .brand { order: 0; }
  .site-nav { order: 1; margin-right: auto; }
  .theme-toggle { order: 2; }
  .nav-bar .nav-cta { order: 3; }
}

/* ----- buttons ------------------------------------------------------------ */
.btn {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  border: var(--line); border-radius: var(--radius);
  padding: 12px 20px; min-height: 44px;
  cursor: pointer; box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; transition: transform .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-cta     { background: var(--coral);   color: var(--on-accent); }  /* ONE per view */
.btn-ghost   { background: var(--bg);      color: var(--text); }

/* ----- hero ---------------------------------------------------------------- */
.hero {
  background: var(--surface-soft);
  border: var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 52px);
  margin-top: clamp(16px, 3vw, 32px);
  display: grid; gap: 24px; align-items: center;
}
.hero h1 { font-size: clamp(1.9rem, 5.5vw, 3.2rem); font-weight: 700; margin: .35rem 0 .6rem; }
.hero p  { font-size: 1.08rem; }
.hero-art { justify-self: center; width: min(62vw, 300px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

@media (min-width: 640px) {
  .hero { grid-template-columns: 1.25fr .75fr; }
  .hero-art { width: 100%; max-width: 340px; }
}

.eyebrow {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  font-size: .8rem; color: var(--caramel);
}

/* ----- sections & cards ----------------------------------------------------- */
section { margin-top: clamp(40px, 6vw, 72px); }
section > h2, .sec-head h2 { font-size: clamp(1.45rem, 3.5vw, 2rem); margin-bottom: 18px; }

.card-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.card.soft { background: var(--surface-soft); }
.card h3 { font-size: 1.22rem; }
.card .card-art { width: 110px; align-self: center; }
.card .more { margin-top: auto; }
/* card title doubles as a link to the deep dive — keep the heading look */
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
/* footer pins the tags + read-link to the card bottom so they align across a row */
.card-foot { margin-top: auto; }
.card-foot .card-tags { margin: 0 0 10px; }
.card-foot .more { margin-top: 0; }

/* full-width panel */
.panel {
  background: var(--surface);
  border: var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}

/* badges & tags (ink stays dark in both themes — matches palette board) */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold); color: #3A2E25;
  border: var(--line); border-radius: 999px;
  padding: 7px 15px; font-family: var(--font-display);
  font-weight: 600; font-size: .9rem; box-shadow: var(--shadow);
}
.tag {
  display: inline-block; background: var(--tan); color: #3A2E25;
  border-radius: var(--radius-sm); padding: 3px 10px;
  font-weight: 700; font-size: .8rem; margin: 3px 4px 0 0;
}

/* clickable topic-filter tags (deep-dive hub). Released = tan; pressed = green
   with an inset shadow so the on/off state is obvious. */
button.tag {
  cursor: pointer; font-family: var(--font-body);
  border: 2px solid transparent;
  transition: transform .1s ease, background .12s ease, color .12s ease;
}
button.tag:hover { transform: translateY(-1px); }
button.tag:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
button.tag[aria-pressed="true"] {
  background: var(--primary); color: var(--on-primary);
  border-color: var(--outline);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, .22);
}
.card.is-hidden { display: none; }

/* ----- "Field note" callout — the trust device ----------------------------- */
.field-note {
  background: var(--tan); color: #3A2E25;
  border: var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 20px; margin: 22px 0;
}
.field-note .fn-label {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px;
  color: #3A2E25;
}
.field-note p { color: inherit; }
.field-note .byline { font-size: .82rem; opacity: .8; margin-top: 8px; }

/* ----- deep-dive "short answer" box (the LLM-liftable summary) ----------------- */
.answer-box {
  background: var(--surface-soft);
  border: var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 20px; margin: 22px 0;
}
.answer-box .ab-label {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px;
  color: var(--primary);
}

/* deep-dive references list + inline citation markers */
ol.refs { padding-left: 22px; margin: 12px 0; }
ol.refs li { margin: 8px 0; font-size: .92rem; }
a.ref { text-decoration: none; }
a.ref sup { font-weight: 700; }

/* ----- quick-spec card (care guide) ------------------------------------------ */
.quick-spec {
  background: var(--surface-soft);
  border: var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 22px; margin: 24px 0;
}
.quick-spec h2 { margin-bottom: 14px; font-size: 1.3rem; }
.article .quick-spec h2 { margin-top: 0; }   /* kill the .article h2 gap inside the box (care) */
.quick-spec .qs-lead { margin: 0 0 16px; max-width: 72ch; }   /* short-answer lead inside the box */
/* collapsible 'At a glance' (deep dives) — a <summary> styled as the heading */
.quick-spec summary {
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
  color: var(--primary); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 0;
}
.quick-spec summary::-webkit-details-marker { display: none; }
.quick-spec summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.quick-spec[open] summary { margin-bottom: 14px; }
.quick-spec[open] summary::after { content: "–"; }
.quick-spec summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
/* hide the body when collapsed (our display:grid on dl overrides the UA hide) */
.quick-spec:not([open]) .qs-lead,
.quick-spec:not([open]) dl { display: none; }
.quick-spec dl {
  display: grid; gap: 10px 18px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.quick-spec dt {
  font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted);
}
.quick-spec dd { font-weight: 700; }

/* ----- coming-soon (school/classroom, not yet launched) ---------------------- */
.cs-badge {
  display: inline-block; vertical-align: middle;
  font-family: var(--font-display); font-weight: 600;
  font-size: .62rem; text-transform: uppercase; letter-spacing: .05em;
  background: var(--tan); color: var(--text);
  border: 2px solid var(--outline); border-radius: 999px;
  padding: 1px 7px; margin-left: 6px;
}
.coming-soon { opacity: .55; }
.coming-soon a, .coming-soon button, .coming-soon input,
.coming-soon textarea, .coming-soon select, .coming-soon .btn { pointer-events: none; }
.site-nav .nav-soon { color: var(--text-muted); opacity: .7; cursor: default; }
.cs-banner {
  background: var(--tan); border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 18px; margin: 0 0 22px; font-weight: 600;
}

/* ----- table of contents (long articles) ------------------------------------- */
.toc {
  background: var(--surface);
  border: var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 18px 22px; margin: 22px 0;
}
.toc strong { font-family: var(--font-display); color: var(--primary); }
.toc ol { padding-left: 22px; margin-top: 8px; columns: 1; }
.toc a { color: var(--teal); }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 36px; } }

/* ----- article layout ---------------------------------------------------------- */
.article h2 { margin-top: clamp(34px, 5vw, 52px); clear: right; }
.article h3 { margin-top: 26px; margin-bottom: 8px; font-size: 1.15rem; }
.article p + p { margin-top: 12px; }
.article ul, .article ol { padding-left: 24px; margin: 10px 0; max-width: 62ch; }
.article li + li { margin-top: 6px; }

/* Bordered single-column text cards (the "short answer" box, field notes) were
   stretching the full container while their text capped at ~65ch, leaving a
   dead gutter on the right edge inside the border. Hold them to the reading
   measure so the border hugs the copy. Grid cards (quick-spec, card-grid,
   split) are intentionally full-width and untouched. */
.article .answer-box,
.article .field-note { max-width: 768px; }

/* ----- cited-literature figure (floated right, black-bordered) ----------------
   Deep dives show a cropped figure from a cited paper here. It floats into the
   right gutter so the reading column flows to its left. The black border is
   intentional and fixed in both themes; the white mat keeps grayscale science
   figures legible against the dark "terrarium at night" background. */
.lit-figure {
  float: right;
  width: min(300px, 42%);
  margin: 6px 0 18px 26px;
  border: 3px solid #000;
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.lit-figure img,
.lit-figure video { width: 100%; display: block; border-bottom: 3px solid #000; }
.lit-figure figcaption {
  padding: 9px 12px;
  font-size: .8rem; line-height: 1.45;
  color: #3A2E25;            /* dark ink on the white mat — same in both themes */
}
.lit-figure figcaption cite { font-style: italic; }
@media (max-width: 640px) {
  .lit-figure { float: none; width: 100%; margin: 18px auto; }
}

/* ----- figure lightbox (click an image figure to open it larger) ------------ */
.lit-figure.zoomable { cursor: zoom-in; }
.lit-figure.zoomable:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 4vmin;
  background: rgba(0, 0, 0, .85);
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0;
  max-width: min(860px, 94vw);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border: 3px solid #000;
  border-radius: 6px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, .55);
}
.lightbox-figure img {
  display: block; width: 100%; height: auto;
  border-bottom: 3px solid #000;
}
.lightbox-figure figcaption {
  padding: 12px 16px;
  font-size: .92rem; line-height: 1.5;
  color: #3A2E25;            /* dark ink on the white mat, both themes */
}
.lightbox-figure figcaption cite { font-style: italic; }
.lightbox-close {
  position: absolute; top: 3vmin; right: 3vmin;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; line-height: 1;
  background: #fff; color: #000;
  border: 3px solid #000; border-radius: 50%;
  cursor: pointer;
}
.lightbox-close:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.byline {
  font-size: .9rem; color: var(--text-muted); margin: 10px 0 0;
}

/* ----- tables (allow horizontal scroll on small screens) ------------------------ */
.table-scroll { overflow-x: auto; margin: 18px 0; }
table.facts {
  border-collapse: collapse; min-width: 480px; width: 100%;
  background: var(--surface); border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
table.facts th, table.facts td { padding: 11px 14px; text-align: left; }
table.facts th {
  font-family: var(--font-display); font-weight: 600;
  background: var(--surface-soft); border-bottom: var(--line);
}
table.facts tr + tr td { border-top: 1px dashed var(--tan); }

/* ----- two-column Best-for split (Best for / Not best for) ------------------------ */
.split { display: grid; gap: 18px; }
@media (min-width: 640px) { .split { grid-template-columns: 1fr 1fr; } }

/* ----- FAQ (native disclosure — no JS needed) ------------------------------------ */
.faq-item {
  background: var(--surface); border: var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  margin: 14px 0; overflow: hidden;
}
.faq-item summary {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--primary); cursor: pointer; padding: 16px 20px;
  list-style: none; display: flex; justify-content: space-between; gap: 12px;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 20px 18px; }

/* ----- forms (email capture + B2B quote) ------------------------------------------ */
form .field { margin-bottom: 14px; }
label {
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  display: block; margin-bottom: 5px;
}
input[type="text"], input[type="email"], input[type="number"],
select, textarea {
  width: 100%; max-width: 480px;
  font: inherit; color: var(--text);
  background: var(--surface);
  border: var(--line); border-radius: var(--radius);
  padding: 11px 14px; min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; }
::placeholder { color: var(--text-muted); opacity: .7; }

/* compact inline email-capture card */
.email-card { background: var(--surface-soft); }
.email-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.email-row input { flex: 1 1 220px; max-width: none; }

/* ----- footer ----------------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(48px, 7vw, 84px);
  border-top: var(--line);
  background: var(--surface);
  padding: 30px 0 26px;
  font-size: .92rem;
}
.footer-cols { display: grid; gap: 22px; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h4 { font-size: 1rem; margin-bottom: 8px; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 5px 0; }
.site-footer a { color: var(--teal); }
.fine-print {
  margin-top: 22px; padding-top: 14px;
  border-top: 1px dashed var(--tan);
  color: var(--text-muted); font-size: .82rem;
}
.fine-print p { max-width: none; }

/* ----- sticky mobile CTA bar ----------------------------------------------------------
   The one consumer conversion. Bottom-fixed and thumb-reachable on mobile;
   hidden ≥1024px where the CTA lives in the nav instead. body gets bottom
   padding so the bar never covers the footer.                                          */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--surface);
  border-top: var(--line);
  padding: 10px clamp(16px, 4vw, 32px);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; justify-content: center;
}
.sticky-cta .btn { flex: 1; max-width: 420px; }
body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }  /* room for the bar */
@media (min-width: 1024px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ----- cookie-consent bottom bar (shown only when GA4 is configured) -------- */
.consent-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  display: flex; align-items: center; gap: 16px;
  padding: 12px clamp(14px, 4vw, 28px);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 3px solid var(--outline);
  box-shadow: 0 -6px 0 rgba(58, 46, 37, .10);
}
.consent-bar img { height: 60px; width: auto; flex: none; }
.consent-bar .consent-text { flex: 1; min-width: 0; font-size: .92rem; margin: 0; max-width: none; }
.consent-bar .consent-text strong { font-family: var(--font-display); }
.consent-bar .consent-actions { display: flex; gap: 10px; flex: none; }
@media (max-width: 640px) {
  .consent-bar { flex-wrap: wrap; gap: 10px; }
  .consent-bar .consent-actions { width: 100%; }
  .consent-bar .consent-actions .btn { flex: 1; }
}

/* ----- page-specific helpers ------------------------------------------------------------ */
/* mascot floated beside text on wide screens, stacked on mobile */
.figure-side { display: grid; gap: 18px; align-items: center; }
.figure-side img { width: min(55vw, 240px); justify-self: center; }
@media (min-width: 640px) {
  .figure-side { grid-template-columns: 1fr auto; }
  .figure-side img { width: 220px; }
}

/* 404 */
.lost { text-align: center; padding: clamp(30px, 8vw, 80px) 0; }
.lost img { width: min(70vw, 320px); margin: 0 auto 20px; }
.lost h1 { font-size: clamp(2rem, 6vw, 3rem); }
.lost p { margin: 10px auto 22px; }

/* small print under hero buttons etc. */
.micro { font-size: .82rem; color: var(--text-muted); }

/* ===== Product catalog (Buy page) ===== */
/* Fixed image height + reserved heading/price space keep every card's
   heading, price, and description on the same baseline across the row. */
.card.product { gap: 8px; }
.card.product .card-art {
  height: 160px; width: auto; max-width: 100%;
  object-fit: contain; align-self: center; margin-bottom: 2px;
}
.card.product h3 { margin: 0; line-height: 1.2; min-height: 2.4em; }
.card.product .price {
  font-family: var(--font-display); font-weight: 700;
  color: var(--coral); font-size: 1.05rem;
  line-height: 1.2; min-height: 2.5em; margin: 0;
}
.card.product .more {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
}
.card.product .more .btn { width: 100%; justify-content: center; }
.card.product.coming-soon .price { color: var(--text-muted); min-height: 0; }

/* ===== Deep-dive / article readability (applies to care, team, buy, the-roach, science) =====
   Let body text, lists, and references fill the box width and flow around floated
   figures, and cap the hero illustration so a tall portrait doesn't inflate the hero box. */
.article p, .article li, .article ul, .article ol { max-width: none; }
.article .answer-box, .article .field-note { max-width: none; }  /* align with the full content width */
.article .quick-spec .qs-lead { max-width: none; }
.article .hero-art { width: auto; max-width: 100%; max-height: 280px; }

/* Figure video kept the 305px height attribute (only width was set), boxing the
   wide footage with white letterbox; let height track the width instead. */
.lit-figure video { height: auto; }
/* Stack multiple floated figures at the right edge instead of letting two sit
   side by side once the text column went full-width. */
.lit-figure { clear: right; }

/* Video figure: small expand button (top-right) opens the lightbox; the video's
   own controls keep handling play/pause/fullscreen. */
.lit-figure { position: relative; }
.fig-expand {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  width: 30px; height: 30px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; line-height: 1; cursor: zoom-in;
  color: var(--outline); background: rgba(255,255,255,.92);
  border: 2px solid var(--outline); border-radius: 8px; box-shadow: var(--shadow);
}
.fig-expand:hover { background: #fff; transform: translateY(-1px); }
.lightbox-figure video { max-width: 88vw; max-height: 78vh; width: auto; height: auto; display: block; }

/* Home "Start anywhere": 5 door-cards fit one row on wide screens instead of 4+1. */
@media (min-width: 920px) {
  .card-grid-5 { grid-template-columns: repeat(5, 1fr); }
}
