/* ============================================================
   FirePath — the product layer (Oct 2026).
   Same brand (cream, ink, ember; Playfair for headings and the
   main result, DM Sans for everything else), used like a product
   rather than a magazine: a compact page header, the main result
   first, single-column sections, questions as chart titles, detail
   folded away until it's wanted. Switched on per page with
   .hp.is-product (loaded after fp-editorial.css / fp-tools.css),
   so pages that haven't moved across are untouched.
   ============================================================ */

/* ── Page header: title, one line, done ── */
.hp.is-product .hp-hero { padding: 20px 0 22px; border-bottom: 0; }
@media (min-width: 768px) { .hp.is-product .hp-hero { padding: 28px 0 28px; } }
.hp.is-product .hp-hero .hp-label { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hp.is-product .hp-hero .hp-h1 { max-width: none; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.015em; }
.hp.is-product .hp-hero .hp-lead { margin-top: 8px; max-width: 62ch; font-size: 16px; line-height: 1.55; }
.hp.is-product .tl-back { margin-bottom: 14px; }
.hp.is-product .tl-body { padding: 0 0 40px; }

/* ── Sections: one column, compact headings, calm spacing ── */
.hp.is-product .hp-sec { padding: 36px 0; }
@media (min-width: 768px) { .hp.is-product .hp-sec { padding: 48px 0; } }
.hp.is-product .hp-side { display: block; }
.hp.is-product .hp-side-head { max-width: 62ch; margin-bottom: 20px; }
.hp.is-product .hp-h2.is-small, .pr-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.hp.is-product .tl-sub { margin-top: 8px; font-size: 15px; line-height: 1.55; }
.hp.is-product .tl-sub strong { font-weight: 500; }   /* no bold inside sentences */

/* ── Chart panel: a question, the chart, a one-line summary in words ── */
.pr-chart { margin: 0; padding: 22px 16px; background: var(--surface); border: var(--hp-rule); border-radius: 10px; }
@media (min-width: 600px) { .pr-chart { padding: 26px 28px; } }
.pr-chart-head { margin-bottom: 14px; }
.pr-chart-sub { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.pr-chart-sum { margin-top: 14px; padding-top: 12px; border-top: var(--hp-rule); }
.pr-chart-sum .tl-rows { margin-top: 0 !important; }

/* ── Fold-outs: detail that's there when you want it ── */
.pr-fold { margin-top: 16px; border-top: var(--hp-rule); border-bottom: var(--hp-rule); }
.pr-fold > summary, .pr-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: var(--ink); }
.pr-fold > summary::-webkit-details-marker, .pr-more > summary::-webkit-details-marker { display: none; }
.pr-fold > summary::after, .pr-more > summary::after { content: '+'; flex: none; font-size: 20px; font-weight: 400; color: var(--ink-2); }
.pr-fold[open] > summary::after, .pr-more[open] > summary::after { content: '−'; }
.pr-fold > summary:focus-visible, .pr-more > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.pr-fold[open] { padding-bottom: 16px; }
.hp.is-product .pr-more > summary.hp-label { gap: 8px; font-size: 15px; letter-spacing: 0; color: var(--ink); }
.hp.is-product .pr-more > summary .fb-opt { font-weight: 400; font-size: 13px; color: var(--ink-2); }

/* ── The takeaway: a calm note, not a dark band ── */
.hp.is-product .hp-number { padding: 28px 0; background: var(--surface-2); color: var(--ink); }
.hp.is-product .hp-number .hp-label { color: var(--ink-2); }
.hp.is-product .hp-number .takeaway, .hp.is-product .hp-number .takeaway * { color: var(--ink); }

/* ── Result: one big number, then the rest in one quieter weight ── */
.hp.is-product .tl-big { font-size: clamp(48px, 6vw, 72px); line-height: 1; }
.hp.is-product .tl-stats { margin-top: 18px; }

/* ── Light motion: titles and panels ease up as they scroll into view. Pure CSS, tied to the scroll
   position; browsers without scroll-driven animations (and reduced motion) just show them in place. ── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hp.is-product :is(.pr-h2, .hp-h2.is-small, .pr-chart, .pr-fold, #w-mc) {
      animation: prRise linear both; animation-timeline: view(); animation-range: entry 0% cover 30%;
    }
  }
}
@keyframes prRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
