/* Shared chrome for Honestly research reports.
   One stylesheet for every report so the series reads as one body of work.
   Snaps to the token scales in landing/docs/surface-rules.md: four section
   planes, --shell rail, 12px type floor. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
/* Links inside running prose keep their underline; chrome and cards do not. */
.rp-prose a, .rp-method a { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: var(--weight-medium); letter-spacing: var(--tracking-display); }
p { margin: 0; }

.rp-shell { width: var(--shell); margin-inline: auto; }
.rp-section { padding: var(--section-y) 0; }
.rp-section + .rp-section { border-top: 1px solid var(--line); }
.rp-eyebrow { margin-bottom: 16px; color: var(--cobalt); font-size: var(--text-sm); line-height: 1.4; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.rp-hero { padding: clamp(72px, 9vw, 128px) 0 clamp(48px, 6vw, 72px); }
.rp-hero__kicker { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 28px; color: var(--ink-soft); font-size: var(--text-sm); }
.rp-hero__kicker strong { color: var(--cobalt); font-weight: 500; }
.rp-hero h1 { max-width: 16ch; font-size: clamp(38px, 6vw, 76px); line-height: 1.02; }
.rp-hero__deck { max-width: var(--measure-prose); margin-top: 28px; font-size: var(--text-lg); line-height: 1.55; color: var(--ink-soft); }
.rp-hero__meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 36px; color: var(--ink-soft); font-size: var(--text-base); }

/* ── Stat bar ─────────────────────────────────────────────────────────── */
.rp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); }
.rp-stats > div { padding: 28px 24px; background: var(--paper); }
.rp-stats dt { color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.4; }
.rp-stats dd { margin: 10px 0 0; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -.03em; }
.rp-stats small { display: block; margin-top: 10px; color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.45; }

/* ── Key insight cards — the shareable unit ───────────────────────────── */
.rp-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rp-insight { display: flex; flex-direction: column; gap: 14px; padding: 32px; border: 1px solid var(--line); background: var(--paper-soft); }
.rp-insight__figure { font-family: var(--serif); font-size: clamp(34px, 3.8vw, 50px); line-height: 1; letter-spacing: -.03em; color: var(--cobalt); }
.rp-insight p { font-size: var(--text-base); line-height: 1.55; }
.rp-insight__n { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: var(--text-sm); }

/* ── Chapters ─────────────────────────────────────────────────────────── */
.rp-chapter { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.rp-chapter__num { color: var(--cobalt); font-size: var(--text-sm); }
.rp-chapter h2 { max-width: 20ch; margin-top: 14px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; }
.rp-chapter__lede { max-width: var(--measure-prose); margin-top: 24px; font-size: var(--text-lg); line-height: 1.6; color: var(--ink-soft); }
.rp-prose { max-width: var(--measure-prose); margin-top: 36px; }
.rp-prose > * + * { margin-top: 22px; }
.rp-prose h3 { margin-top: 44px; font-size: var(--text-2xl); line-height: 1.25; }
.rp-prose strong { font-weight: 500; }

/* ── Charts. Bars are divs, not images, so the numbers stay selectable
      and the chart survives a text-only reader. ─────────────────────────── */
.rp-chart { margin-top: 40px; border: 1px solid var(--line); background: var(--paper-soft); }
.rp-chart__head { padding: 22px 26px; border-bottom: 1px solid var(--line); }
.rp-chart__head h3 { font-size: var(--text-xl); line-height: 1.3; }
.rp-chart__head p { margin-top: 8px; color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.5; }
.rp-chart__rows { padding: 8px 26px 22px; }
.rp-row { display: grid; grid-template-columns: minmax(140px, 0.9fr) minmax(0, 2fr) 92px; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rp-row:last-child { border-bottom: 0; }
.rp-row__label { font-size: var(--text-base); line-height: 1.35; }
.rp-row__label small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: var(--text-sm); }
.rp-row__track { position: relative; height: 12px; background: rgba(17, 21, 22, .07); }
.rp-row__fill { position: absolute; inset-block: 0; left: 0; background: var(--cobalt); }
.rp-row__fill--neg { background: #c8462f; }
.rp-row__value { text-align: right; font-family: var(--serif); font-size: var(--text-xl); letter-spacing: -.02em; }
.rp-row__value small { display: block; margin-top: 2px; color: var(--ink-soft); font-family: var(--sans); font-size: var(--text-sm); letter-spacing: 0; }
/* Diverging: positive right of centre, negative left. */
.rp-row__track--split { display: flex; justify-content: center; }
.rp-row__track--split span { height: 100%; }
.rp-row__track--split .neg { background: #c8462f; }
.rp-row__track--split .pos { background: #2f7d5c; }
.rp-chart__foot { padding: 16px 26px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.5; }

/* ── Quoted posts ─────────────────────────────────────────────────────── */
.rp-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.rp-quote { display: flex; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid var(--line); background: var(--white); }
.rp-quote blockquote { margin: 0; font-size: var(--text-lg); line-height: 1.5; }
.rp-quote__gloss { color: var(--ink-soft); font-size: var(--text-base); line-height: 1.5; }
.rp-quote__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.rp-tag { padding: 5px 10px; background: rgba(17, 21, 22, .06); color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.3; }
.rp-tag--neg { background: rgba(200, 70, 47, .12); color: #8f2f1d; }
.rp-tag--pos { background: rgba(47, 125, 92, .12); color: #1f5b41; }

/* ── Pull quote ───────────────────────────────────────────────────────── */
.rp-pull { max-width: var(--measure-prose); margin: 56px 0; padding-left: 28px; border-left: 3px solid var(--cobalt); font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -.02em; }

/* ── Method ───────────────────────────────────────────────────────────── */
.rp-method { background: #0d1113; color: var(--white); }
.rp-method .rp-eyebrow { color: rgba(255, 255, 255, .72); }
.rp-method h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.rp-method__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin-top: 44px; }
.rp-method h3 { margin-bottom: 10px; font-size: var(--text-xl); }
.rp-method p { color: rgba(255, 255, 255, .74); font-size: var(--text-base); line-height: 1.65; }
.rp-method__grid > div + div { }

/* ── Closing ──────────────────────────────────────────────────────────── */
.rp-close { padding: var(--section-y) 0; background: var(--paper-soft); border-top: 1px solid var(--line); text-align: center; }
.rp-close h2 { max-width: 18ch; margin: 14px auto 20px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; }
.rp-close p { max-width: var(--measure-narrow); margin: 0 auto 30px; color: var(--ink-soft); }

/* ── More reports ─────────────────────────────────────────────────────── */
.rp-more ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; }
.rp-more a { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 28px; border: 1px solid var(--line); background: var(--paper-soft); text-decoration: none; transition: border-color 200ms ease; }
.rp-more a:hover { border-color: var(--cobalt); }
.rp-more__eyebrow { color: var(--cobalt); font-size: var(--text-sm); }
.rp-more__title { font-size: var(--text-lg); line-height: 1.35; }

@media (max-width: 1180px) {
  .rp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .rp-insights, .rp-quotes, .rp-more ul { grid-template-columns: minmax(0, 1fr); }
  .rp-method__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rp-row { grid-template-columns: minmax(0, 1fr) 84px; }
  .rp-row__track { grid-column: 1 / -1; }
}
@media (max-width: 430px) {
  .rp-stats { grid-template-columns: minmax(0, 1fr); }
  .rp-chart__rows, .rp-chart__head, .rp-chart__foot { padding-inline: 20px; }
  .rp-quote, .rp-insight { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Research index cards ─────────────────────────────────────────────── */
.ri-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; }
.ri-cards--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ri-cards a, .ri-cards article { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 32px; border: 1px solid var(--line); background: var(--paper-soft); text-decoration: none; }
.ri-cards article { scroll-margin-top: calc(var(--nav-h) + var(--space-6)); }
.ri-card__status { align-self: flex-start; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.4; }
.ri-cards a:hover { border-color: var(--cobalt); }
.ri-card__deck { color: var(--ink-soft); font-size: var(--text-base); line-height: 1.55; }
.ri-card__stats { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: var(--text-sm); }
@media (max-width: 980px) { .ri-cards, .ri-cards--compact { grid-template-columns: minmax(0, 1fr); } }
