/* Human Archive — shared text scale for blog posts (HARD-1, HARD-2, Ego500, HA-SLAM).
   Loaded last on each post so every post uses the same size per role.
   Chart/diagram internals keep their own sizes. */
body.post .post-title { font-size: clamp(34px, 5vw, 60px) !important; }

/* intro / dek / lede: the paragraph right under the title */
body.post p.intro,
body.post p.dek,
body.post p.lede { font-size: 20px !important; line-height: 1.45 !important; letter-spacing: -0.005em !important; }
body.post p.intro strong { font-size: inherit !important; }

/* author line */
body.post .byline, body.post .byline * { font-size: 14px !important; line-height: 1.6 !important; }

/* section + sub-section headings */
body.post h2, body.post .eyebrow { font-size: 21px !important; font-weight: 600 !important; letter-spacing: -0.015em !important; line-height: 1.25 !important; text-transform: none !important; }
body.post h3, body.post h4, body.post .figure-title { font-size: 16px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; }

/* body text, including text inside notes and cards */
body.post p:where(:not(.intro, .dek, .lede, .metric-name, .metric-def, .group-name, .rowlabel, .muted, .hero-cap, .soon, .note, .rhstmt, .post-meta)),
body.post li,
body.post div.note,
body.post .rhstmt { font-size: 16px !important; line-height: 1.6 !important; }
body.post p strong, body.post li strong, body.post div.note strong { font-size: inherit !important; }

/* captions */
body.post figcaption, body.post figcaption *,
body.post .hero-cap, body.post .hero-cap *,
body.post p.muted, body.post p.note,
body.post .figure-sub { font-size: 13px !important; line-height: 1.5 !important; }

/* tables */
body.post th { font-size: 12px !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: 0.04em !important; }
body.post td, body.post td * { font-size: 14px !important; }

/* small caps labels above stats and chart groups */
body.post .group-name, body.post .rowlabel, body.post .rhlab, body.post .stat .l, body.post div.l,
body.post .note b { font-size: 12px !important; font-weight: 500 !important; letter-spacing: 0.06em !important; text-transform: uppercase !important; }

/* chart row labels: one size across posts */
body.post .row-name, body.post .row-hrs, body.post .row-val { font-size: 14px !important; }

/* footers: 12px mono on every post (beats the body-text rule above) */
body.post footer, body.post footer p, body.post footer a, body.post footer div {
  font-family: var(--site-mono, "JetBrains Mono", monospace) !important; font-size: 12px !important; line-height: 1.6 !important;
}

/* closing line */
body.post p.soon { font-family: var(--site-mono, "JetBrains Mono", monospace) !important; font-size: 12px !important; }

/* ---------- one text palette across posts ----------
   ink: titles, headings, body, lists, bold, links, table cells
   ink-2 (64%): description under the title, author names
   ink-3 (44%): second author line, captions, table heads, labels, meta, footer
   Result colours in tables (good/bad) are left as they are. */
body.post {
  --pc-ink: #111111; --pc-ink2: rgba(17,17,17,.64); --pc-ink3: rgba(17,17,17,.44);
  /* remap each post's own tokens onto the site palette */
  --ink: #111111; --ink2: rgba(17,17,17,.64); --ink-soft: rgba(17,17,17,.64); --ink3: rgba(17,17,17,.44);
  --graphite: rgba(17,17,17,.44); --steel: rgba(17,17,17,.44); --grey: rgba(17,17,17,.44);
}
body.post h1, body.post h2, body.post h3, body.post h4, body.post .eyebrow, body.post .figure-title { color: var(--pc-ink) !important; }
body.post p:where(:not(.intro, .dek, .lede, .metric-def, .muted, .hero-cap, .soon, .note, .post-meta)),
body.post li, body.post div.note, body.post .rhstmt,
body.post p strong, body.post li strong { color: var(--pc-ink) !important; }
body.post p:where(:not(.post-meta)) a, body.post li a { color: var(--pc-ink) !important; }
body.post p.intro, body.post p.dek, body.post p.lede { color: var(--pc-ink2) !important; }
body.post p.intro strong, body.post p.dek strong, body.post p.lede strong { color: var(--pc-ink) !important; }
body.post .byline { color: var(--pc-ink2) !important; }
body.post .byline span, body.post .byline .aff { color: var(--pc-ink3) !important; }
body.post figcaption, body.post figcaption *, body.post .hero-cap, body.post p.muted, body.post p.note, body.post .figure-sub,
body.post p.metric-def,
body.post th, body.post .group-name, body.post .rowlabel, body.post .rhlab, body.post div.l,
body.post footer, body.post footer p, body.post footer div, body.post footer a { color: var(--pc-ink3) !important; }
body.post .hero-cap a { color: var(--pc-ink) !important; }

/* ---------- one layout rhythm across posts ----------
   order: date line > title > intro > authors > hero media
   spacing: title→intro 16, intro→next 24, sections 52 above / 20 below
   prose width 660 on every post; figures may be wider */
body.post .post-meta { margin: 0 0 16px !important; }
body.post .post-title { margin: 0 0 16px !important; }
body.post p.intro, body.post p.dek, body.post p.lede { margin: 0 0 24px !important; max-width: 660px !important; }
body.post .byline { margin: 0 0 32px !important; padding: 0 !important; border: 0 !important; }
body.post .page > figure:first-of-type, body.post .hero-video { margin-top: 8px !important; }
body.post h2, body.post div.eyebrow { margin-bottom: 20px !important; }
body.post .page p:where(:not(.metric-name,.metric-def,.group-name,.rowlabel)),
body.post .page ul, body.post .page ol, body.post .page h2, body.post .page h3 { max-width: 660px; }
body.post .post-cta { max-width: 660px !important; }

/* links in running text: one style */
body.post p:where(:not(.post-meta)) a:where(:not(.fnmark)), body.post li a, body.post figcaption a, body.post .hero-cap a {
  text-decoration: underline !important; text-decoration-thickness: 1px !important; text-underline-offset: 3px !important;
  border-bottom: 0 !important; color: var(--pc-ink) !important;
}
body.post a.fnmark { text-decoration: none !important; border-bottom: 0 !important; }

/* section headings: thin rule above (as on the legal pages), nothing below */
body.post h2, body.post div.eyebrow {
  border-bottom: 0 !important;
  border-top: 1px solid rgba(17, 17, 17, 0.14) !important;
  padding: 14px 0 0 !important;
}

/* section spacing: wrappers add nothing, the heading owns the gap (56px above) */
body.post section { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
body.post section > :last-child, body.post .col > :last-child:not(.post-cta, .note, .byline), body.post .tablewrap, body.post .tbl-wrap { margin-bottom: 0 !important; padding-bottom: 0 !important; }
body.post h2, body.post div.eyebrow { margin-top: 56px !important; }
body.post section > div:empty { display: none !important; }

/* Bottom rhythm: identical CTA → footer gap on every post (HARD reference: 110px desktop, 72px phone) */
body.post .page { padding-bottom: 0 !important; }
body.post .post-cta { margin-bottom: clamp(72px, 7.64vw, 110px) !important; }

/* Title block → first content: 32px on every post */
body.post .page > p.intro:first-child { margin-bottom: 32px !important; }
body.post .page > p.intro:first-child + figure, body.post .hero-video { margin-top: 0 !important; }
body.post .hero { padding-bottom: 0 !important; }

/* Shared site footer: same look as every other page (grey, no underline; dark + underline on hover) */
body.post .ha-footer, body.post .ha-footer p, body.post .ha-footer div, body.post .ha-footer span { color: rgba(17, 17, 17, 0.44) !important; }
body.post .ha-footer a, body.post .ha-footer p a, body.post .ha-footer li a { color: rgba(17, 17, 17, 0.44) !important; text-decoration: none !important; border: 0 !important; }
body.post .ha-footer a:hover, body.post .ha-footer p a:hover, body.post .ha-footer li a:hover { color: #111 !important; text-decoration: underline !important; text-underline-offset: 3px; }
