/* Marketing site v3 (handoff_v3/README.md): header, footer, mobile menu and the Home, Research, Data
   and About pages. Loaded after base.css, which keeps the note, legal and account styles.
   Light header by default; body.hdr-plum switches the header and footer to plum (SITE_HEADER_STYLE). */

:root {
  --body: #332E2E;                      /* body text: one size, 19px / 1.68 (17px mobile) */
  --plum-on-dark: #E3D4DF;              /* secondary text on plum */
  --plum-link-on-dark: #F2EAF0;         /* nav links on plum */
  --gutter: 56px;
  --content: 1208px;                    /* handoff_v4: every section, padding included (1096px of content) */
  --col-gap: 48px;                      /* the gap between columns, everywhere */
  --header-rule: #ECE8EA;               /* the header's bottom border */
  --soon-ink: #8A8D88; --soon-line: #DDD9D6; --soon-fill: #EEECEA;   /* the portal's links while it is coming soon (SITE_MODE site) */
  --label-ink: #56504E;                 /* metadata and section labels (style guide "Labels"): readable, not faint */
}
@media (max-width: 759px) { :root { --gutter: 20px; } }

/* the old shell (edge bar, left-offset column) gives way to a centred 1208px column */
.page-shell { max-width: none; padding-left: 0; }
.edge-bar { display: none; }
.wrap { max-width: var(--content); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.box { max-width: var(--content); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---- Header (handoff_v4 partials/header.html) ---- */
.sh { background: var(--paper); border-bottom: 1px solid var(--header-rule); }
.sh-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 22px; padding-bottom: 22px; }
.wm { display: inline-flex; flex-direction: column; gap: 7px; padding: 1px 0; }
.wm-title { align-self: flex-start; font: 500 20px/1 var(--serif); letter-spacing: 0.2em; margin-right: -0.2em; text-transform: uppercase; color: var(--plum); white-space: nowrap; }
.wm-tag { align-self: flex-start; display: block; white-space: nowrap; font: 300 10.5px/1 var(--sans); letter-spacing: 0.3em; margin-right: -0.3em;   /* refitted by site.js */
  text-transform: uppercase; color: var(--grey-muted); }
.sn { display: flex; align-items: center; gap: 26px; font: 400 12px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.sn-link { color: var(--plum); padding: 4px 0; border-bottom: 1px solid transparent; }
.sn-link:hover { color: var(--ink); border-bottom-color: #C9AEC2; }
.sn-link.on { border-bottom-color: currentColor; }
.btn-portal, .btn-fill, .btn-outline { display: inline-flex; align-items: center; justify-content: center; font: 400 13px var(--sans); letter-spacing: 0.14em;
  text-transform: uppercase; white-space: nowrap; }
.btn-portal { width: fit-content; font-size: 12px; letter-spacing: 0.16em; padding: 8px 14px; color: var(--plum); border: 1px solid #C9AEC2; }
.btn-portal:hover { color: var(--plum); border-color: var(--plum); background: #F6F0F4; }
.btn-fill { padding: 13px 22px; color: #FFFFFF; background: var(--plum); }
.btn-fill:hover { background: var(--ink); color: #FFFFFF; }
.btn-outline { padding: 12px 21px; color: var(--plum); border: 1px solid var(--plum); }
.btn-outline:hover { background: var(--plum-link-on-dark); color: var(--plum); }
/* Menu / Close: text buttons with a 44px hit area */
.sh-menu { display: none; min-height: 44px; align-items: center; margin-right: -2px; background: none; border: 0; padding: 0 0 0 14px; cursor: pointer;
  font: 400 12px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--plum); }

/* plum variant */
.hdr-plum .sh { background: var(--plum); border-bottom-color: var(--plum); }
.hdr-plum .sh .wm-title { color: #FFFFFF; }
.hdr-plum .sh .wm-tag { color: #D9C8D5; }
.hdr-plum .sh .sn-link { color: #FFFFFF; }
.hdr-plum .sh .sn-link:hover { color: #E8DCE6; border-bottom-color: #A27497; }
.hdr-plum .sh .btn-portal { color: #FFFFFF; border-color: #A27497; }
.hdr-plum .sh .btn-portal:hover { color: #FFFFFF; border-color: #FFFFFF; background: #5E1C51; }
.hdr-plum .sh .sh-menu { color: #FFFFFF; }

/* ---- Sticky compact header (README item 4): header.js sets .is-compact after 64px of scroll and clears it
   below 16px. The title's size is a custom property, so site.js fits the tagline to the target size, not
   the size mid-transition. ---- */
html { scroll-padding-top: 76px; }
.sh { position: sticky; top: 0; z-index: 50; transition: margin-bottom 200ms ease; }
.sh.is-compact { margin-bottom: var(--sh-shift, 0px); }
.sh.no-anim, .sh.no-anim * { transition: none !important; }
.sh .sh-in { transition: padding 200ms ease; }
.sh .wm { transition: gap 200ms ease; }
.wm-title { --wm-size: 20px; font-size: var(--wm-size); }
.sh .wm-title { transition: font-size 200ms ease; }
.sh .wm-tag { max-height: 14px; overflow: hidden; transition: max-height 200ms ease, opacity 150ms ease; }
.sh.is-compact .sh-in { padding-top: 8px; padding-bottom: 8px; }
.sh.is-compact .wm { gap: 0; }
.sh.is-compact .wm-title { --wm-size: 17px; }
.sh.is-compact .wm-tag { max-height: 0; opacity: 0; }
@media (max-width: 759px) {
  .wm-title, .sh.is-compact .wm-title { --wm-size: 15px; }
  .sh.is-compact .sh-in { padding-top: 3px; padding-bottom: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sh, .sh .sh-in, .sh .wm, .sh .wm-title, .sh .wm-tag { transition: none; }
}

/* ---- Mobile menu (below 760px): Menu opens a full-screen list (partials/mobile-header-and-menu.html) ---- */
.mnav { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--paper); overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav-open, .mnav-open body { overflow: hidden; }
.mnav .sh-in { width: 100%; padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }   /* full width: auto margins would shrink it in the column */
.mnav .sh-menu { display: flex; }
.mnav-list { display: flex; flex-direction: column; padding: 12px var(--gutter) 48px; }
.mnav-list > a { padding: 18px 0; border-bottom: 1px solid var(--rule); font: 400 28px/1.2 var(--serif); color: var(--plum); }
.mnav-list > a.on { color: var(--ink); }
.mnav-cta { margin-top: 32px; }
.mnav-cta .btn-portal { padding: 14px 18px; }
.mnav-note { margin: 16px 0 0; font: italic 400 16px/1.5 var(--serif); color: var(--label-ink); }

@media (max-width: 759px) {
  .sh-in { padding-top: 14px; padding-bottom: 14px; gap: 16px; }
  .sh { border-bottom-color: var(--rule); }
  .wm { gap: 5px; }
  .wm-tag { font-size: 8px; }
  .sh .sn { display: none; }
  .sh-menu { display: flex; }
}

/* ---- Footer (partials/footer.html): the inverse of the header, so plum under a light header ---- */
.sf { background: var(--plum); }
.sf-in { display: flex; flex-direction: column; gap: 36px; padding-top: 48px; padding-bottom: 32px; }
.sf-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.sf-id { display: flex; flex-direction: column; gap: 18px; }
.sf .wm { gap: 5px; }
.sf .wm-title { --wm-size: 15px; color: #FFFFFF; }
.sf .wm-tag { font-size: 8px; color: #D9C8D5; }
.sf-addr { font: 300 12px var(--sans); letter-spacing: 0.04em; color: #E8DCE6; }
.sf-nav { display: flex; flex-wrap: wrap; gap: 14px 24px; font: 400 12px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.sf-nav a { color: #FFFFFF; padding: 4px 0; }
.sf-nav a:hover { text-decoration: underline; }
.sf-bottom { display: flex; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid #6B3560;
  font: 300 12px var(--sans); letter-spacing: 0.08em; color: #E8DCE6; }
.sf-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.sf-links a { color: #E8DCE6; }
.sf-links a:hover, .sf-links a.on { color: #FFFFFF; }
/* under a plum header, the light footer */
.hdr-plum .sf { background: var(--paper); border-top: 1px solid var(--rule); }
.hdr-plum .sf .wm-title, .hdr-plum .sf-nav a { color: var(--plum); }
.hdr-plum .sf .wm-tag { color: var(--grey-muted); }
.hdr-plum .sf-addr, .hdr-plum .sf-bottom, .hdr-plum .sf-links a { color: var(--label-ink); }
.hdr-plum .sf-bottom { border-top-color: var(--rule); }
.hdr-plum .sf-links a:hover, .hdr-plum .sf-links a.on { color: var(--plum); }
@media (max-width: 759px) {
  .sf-in { gap: 28px; padding-top: 40px; padding-bottom: 32px; }
  .sf-top { flex-direction: column; }
}

/* ---- Shared page parts ---- */
.v3 { color: var(--body); }
.v3 p { margin: 0; font: 400 19px/1.68 var(--serif); color: var(--body); text-wrap: pretty; }
.v3-h1 { margin: 0; font: 400 32px/1.3 var(--serif); letter-spacing: -0.01em; color: var(--plum); text-wrap: balance; }
.v3-label { font: 400 11px var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey-muted); }
.v3-label.ruled { padding-bottom: 14px; border-bottom: 1px solid var(--plum); }
.v3-label.ruled-light { padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.v3-meta { font: 300 12px/1.5 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.v3-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--col-gap); align-items: start; }   /* top: the H1 sits at the same height on every page, whatever the intro's length */

/* photo hero (Home, About): full width, the H1 in a box that hugs it; mobile: photo, then the H1 */
/* full width up to 2400px, then page background either side (very wide screens, zoomed out); the photo
   crops (object-fit: cover), never stretches. The headline box sits in the 1208px column. */
/* height follows the width (40vw) but never more than 60% of the window's height, so the start of the
   text is always in view on a short window; svh behaves with phone toolbars (vh where unsupported) */
.hero-photo { position: relative; max-width: 2400px; margin: 0 auto; height: clamp(360px, min(40vw, 60vh), 680px); height: clamp(360px, min(40vw, 60svh), 680px); }
.hero-photo.short { height: clamp(340px, min(36vw, 55vh), 600px); height: clamp(340px, min(36vw, 55svh), 600px); }
.hero-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-box-row { position: absolute; left: 0; right: 0; bottom: 48px; }
.hero-box { width: fit-content; background: var(--paper); padding: 22px 28px; }
.hero-box .v3-h1 { white-space: nowrap; text-wrap: nowrap; }

@media (max-width: 759px) {
  .v3 p { font-size: 17px; }
  .v3-h1 { font-size: 26px; }
  .v3-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  /* the same H1 moves below the photo, out of its box */
  .hero-photo, .hero-photo.short { height: auto; }
  .hero-photo > img { height: 260px; }
  .hero-box-row { position: static; }
  .hero-box { width: auto; background: none; padding: 28px 0 0; }
  .hero-box .v3-h1 { white-space: normal; text-wrap: balance; }
  .hero-box br { display: none; }
}
@media (min-width: 760px) and (max-width: 1000px) {
  .hero-box .v3-h1 { font-size: 28px; }
}

/* photo strip (Research, Data): a short band under the header, the headline stays in the page below it.
   240px in the design, growing with the width to 360px, never more than a third of the window's height;
   the same 2400px limit as the hero photos. */
.hero-strip { max-width: 2400px; margin: 0 auto; height: clamp(200px, min(18.75vw, 32vh), 360px); height: clamp(200px, min(18.75vw, 32svh), 360px); }
.hero-strip > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-strip + .res, .hero-strip + .data { padding-top: 56px; }
@media (max-width: 759px) {
  .hero-strip { height: 160px; }
  .hero-strip + .res, .hero-strip + .data { padding-top: 28px; }
}

/* ---- Labels (style guide "Labels"): two styles for all small uppercase Jost on the site.
   Metadata (dates, topics, bylines, column heads, footer): Jost 400 12px, 0.12em, #56504E; a topic or tag is plum.
   Section label (PUBLISHED NOTES, IN THIS NOTE, KEY FIGURES): Jost 400 11.5px, 0.2em, #56504E.
   Weight 400, never 300: the light weight in grey read as too faint. ---- */
.v3-meta, .note-meta, .meta, .note-byline, .note-kicker, .buyout-labels, .section-head span, .figure figcaption {
  font: 400 12px/1.5 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--label-ink); }
.note-item .date { color: var(--label-ink); }
.v3-label, .section-label, .sidebar-label, .thesis-label, .fig-placeholder span {
  font: 400 11.5px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--label-ink); }
.exec-summary .section-label { color: var(--plum); }            /* the summary's label stays plum, as before */
.data-prod-name span { font-weight: 400; color: var(--label-ink); }
.sf-addr, .sf-bottom { font-weight: 400; }                       /* the footer's small text: 400, as the labels */

/* ---- Legal pages (Terms of use, Privacy, Cookies) on the site layout: one reading column ---- */
.legal-page { padding-top: 72px; padding-bottom: 80px; }
.legal-v3 { max-width: 720px; }
.legal-v3-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 14px; }
.legal-v3 .legal-sec { margin-top: 36px; }
.legal-v3 .legal-sec h2 { margin: 0; font: 500 21px/1.3 var(--serif); color: var(--ink); }
.v3 .legal-v3 .legal-sec p { margin-top: 10px; }
.v3 .legal-v3 .legal-sec a, .v3 .legal-v3-foot a { color: var(--plum); border-bottom: 1px solid #C9AEC2; }
.v3 .legal-v3 .legal-sec a:hover, .v3 .legal-v3-foot a:hover { color: var(--ink); border-bottom-color: var(--plum); }
.legal-v3 .legal-sec ul { margin: 10px 0 0; padding-left: 22px; }
.legal-v3 .legal-sec li { font: 400 19px/1.68 var(--serif); color: var(--body); }
.legal-v3 .legal-sec li + li { margin-top: 4px; }
.v3 .legal-v3-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); }
.v3 .legal-v3-foot p { color: var(--grey-text); }
@media (max-width: 759px) { .legal-v3 .legal-sec li { font-size: 17px; } }
.sf a.on { color: var(--plum); }                        /* the footer marks the legal page you're on */
@media (max-width: 759px) { .legal-page { padding-top: 32px; padding-bottom: 48px; } .legal-v3 .legal-sec h2 { font-size: 19px; } }

/* ---- Data sources and licensing (handoff_v4/licence): the legal layout, the register as a ruled table across
   the full column (category, source, licence), the acknowledgement under it; below 760px each row stacks with small labels ---- */
.src-page { display: grid; gap: 64px; }
.src-intro { display: grid; gap: 18px; }
.src-intro .legal-v3-meta { margin-bottom: -4px; }
.v3 p.src-lead { font-size: 21px; line-height: 1.62; color: var(--ink-soft); }
.src-table { min-width: 0; }
.src-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr) minmax(0, 1.6fr); column-gap: 28px;
  align-items: start; padding: 22px 0; }
.src-head { padding: 0 0 12px; border-bottom: 1px solid var(--plum); }
.src-group { border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.src-group .src-row + .src-row { border-top: 1px solid var(--rule-light); }
.src-cat.v3-meta { padding-top: 3px; color: var(--plum); }
.src-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.src-lbl { display: none; }
.src-pub { font: 400 19px/1.3 var(--serif); color: var(--ink); }
.src-link { font: 400 14px/1.45 var(--sans); color: var(--plum); text-decoration: underline; text-decoration-color: var(--plum-tint);
  text-underline-offset: 3px; overflow-wrap: anywhere; }
.src-link:hover { color: var(--ink); text-decoration-color: var(--ink); }
.src-link svg { display: inline; margin-left: 5px; vertical-align: -1px; }      /* opens in a new window */
.src-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.src-plain { font: 400 14px/1.45 var(--sans); color: var(--grey-text); }
.src-pending { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; font: 400 13px/1.45 var(--sans); color: #7A4E00; }
.src-ring { flex: none; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; border: 1.5px solid #B07A10; }
.v3 p.src-ack { max-width: 720px; margin-top: -40px; font-size: 17px; line-height: 1.6; color: var(--grey-text); }   /* sits under the table */
.src-sec { max-width: 720px; display: grid; gap: 18px; }
.src-sec h2 { margin: 0; font: 400 28px/1.28 var(--serif); color: var(--ink); }
.src-said { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font: 400 15px/1.6 var(--sans); color: var(--grey-text); }
.src-said li { padding-top: 10px; border-top: 1px solid var(--rule-light); }
.src-ex { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 4px; padding-top: 22px; border-top: 1px solid var(--rule); }
.src-ex-item { display: grid; gap: 12px; align-content: start; }
.v3 .src-ex-item p { font-size: 17px; line-height: 1.6; }
.v3 .src-ex-item strong { font-weight: 500; }
.src-tabs { display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid #CFC7CC; font: 400 13px var(--sans); }
.src-tabs span { padding: 6px 14px; color: var(--grey-text); background: #F6F4F5; border: 1px solid var(--rule); border-bottom: 0; }
.src-tabs span.on { margin-bottom: -1px; padding-bottom: 7px; color: var(--ink); background: var(--paper); border-color: #CFC7CC; font-weight: 500; }
.src-files { display: flex; flex-direction: column; border-top: 1px solid var(--rule); font: 400 13px var(--sans); color: var(--ink-soft); }
.src-files span { padding: 7px 0; border-bottom: 1px solid var(--rule-light); }
.v3 p.src-contact { max-width: 720px; padding-top: 28px; border-top: 1px solid var(--rule); font: 400 15px/1.65 var(--sans); color: var(--grey-text); }
.v3 .src-page p a { color: var(--plum); border-bottom: 1px solid var(--plum-tint); }
.v3 .src-page p a:hover { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 759px) {
  .src-page { gap: 44px; }
  .v3 p.src-lead { font-size: 19px; }
  .src-head { display: none; }
  .src-row { grid-template-columns: minmax(0, 1fr); row-gap: 14px; padding: 18px 0; }
  .v3 p.src-ack { margin-top: -24px; }
  .src-lbl { display: block; margin-bottom: 2px; }
  .src-sec h2 { font-size: 24px; }
}

/* ---- Note pages: the same space before the footer on every note; text after a full-width dashboard
   keeps the reading column's measure (charts there stay full width) ---- */
.note-page { padding-bottom: 80px; }
.note-main.note-post > p, .note-main.note-post > h2, .note-main.note-post > h3, .note-main.note-post > ul { max-width: 680px; }   /* = .note-main's column */
.note-main > h3 { margin-top: clamp(28px, 3.5vw, 40px); }        /* a sub-heading (Sources) gets room above it, e.g. after a table */
@media (max-width: 759px) { .note-page { padding-bottom: 48px; } }

/* ---- Text link (handoff_v4): Jost caps over a plum-tint rule that darkens on hover ---- */
.text-link { display: inline-block; width: fit-content; white-space: nowrap; padding: 6px 0 5px; border-bottom: 1px solid #C9AEC2;
  font: 400 13px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--plum); }
.text-link:hover { color: var(--plum); border-bottom-color: var(--plum); }

/* ---- Product showcase (handoff_v4 README item 6; includes/product_showcase.html, showcase.js) ---- */
.sc { display: flex; flex-direction: column; }
.sc-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.sc-tabs::-webkit-scrollbar { display: none; }
.sc-tab { appearance: none; flex: none; background: none; border: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; padding: 14px 0 12px; cursor: pointer;
  white-space: nowrap; font: 400 12px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-muted); }
.sc-tab:hover, .sc-tab[aria-selected="true"] { color: var(--plum); }
.sc-tab[aria-selected="true"] { border-bottom-color: var(--plum); }
.sc-tab:focus-visible, .sc-panel:focus-visible, .lb-close:focus-visible { outline: 1px solid var(--plum); outline-offset: 3px; }
.lb-close:focus-visible { outline-color: #FFFFFF; }
.sc-panel { appearance: none; display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 24px; padding: 0;
  border: 1px solid var(--rule); background: #FAFAFA; overflow: hidden; cursor: zoom-in; }
.sc-img { position: absolute; top: 0; left: 0; display: block; width: 100%; height: auto; opacity: 0; transition: opacity 250ms ease; }
.sc-img.on { opacity: 1; }
.v3 p.sc-desc { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--label-ink); }
.lb { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px;
  background: rgba(32, 28, 28, 0.88); cursor: zoom-out; }
.lb[hidden] { display: none; }
.lb-open, .lb-open body { overflow: hidden; }
.lb-img { display: block; max-width: min(1400px, 100%); max-height: calc(100vh - 110px); background: #FFFFFF; cursor: default; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; width: min(1400px, 100%);
  font: 400 12px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #FFFFFF; }
.lb-close { appearance: none; background: none; border: 1px solid rgba(255, 255, 255, 0.5); color: #FFFFFF; padding: 10px 16px; cursor: pointer;
  font: 400 12px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.lb-close:hover { border-color: #FFFFFF; }
@media (max-width: 759px) {
  .sc-tabs { gap: 22px; }
  .sc-panel { aspect-ratio: 4 / 3; }
  .v3 p.sc-desc { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .sc-img { transition: none; } }

/* ---- Home (handoff_v4/pages/home.html) ---- */
.home-label { margin: 0; font: 400 12px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--plum); }
.home-hero { padding-top: 88px; padding-bottom: 72px; }
.home-hero-cols { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 64px; align-items: start; }
.home-h1 { margin: 0; font: 400 52px/1.15 var(--serif); letter-spacing: -0.015em; color: var(--plum); text-wrap: balance; }
.home-hero-text { display: flex; flex-direction: column; gap: 28px; padding-top: 4px; }
.v3 p.home-intro { font-size: 20px; line-height: 1.62; color: var(--label-ink); max-width: 54ch; }
.home-links { display: flex; flex-wrap: wrap; gap: 16px 36px; }
.home-pano { display: block; width: 100%; height: clamp(180px, 18vw, 240px); object-fit: cover; margin-top: 64px; }

/* Full-width tinted band with its own top/bottom hairlines - the Research
   section "owns" both the hairline between it and Hero above, and the one
   between it and Data below (Data has no hairlines of its own). */
.home-latest { background: #FAF9F7; border-top: 1px solid #EDE9EB; border-bottom: 1px solid #EDE9EB; }
.home-latest-in { padding-top: 64px; padding-bottom: 88px; }
.home-rule-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 16px; padding-top: 16px; border-top: 1px solid var(--plum); }
.home-note-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font: 400 12px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--label-ink); }
.home-note-meta .topic { color: var(--plum); }
.home-note-more { margin-top: 8px; }
.home-latest-head { align-items: flex-end; }
/* No rule and no padding here - .home-latest-in's own padding-top (above)
   already provides the space from the section's hairline down to the
   Research eyebrow; .home-rule-head's plum border/padding-top are for the
   other pages' section headers (About page, Research page), left as-is. */
.home-rule-head.home-latest-head { border-top: none; padding-top: 0; }
.home-latest-title { display: flex; flex-direction: column; gap: 14px; }
.home-latest-h { margin: 0; font: 400 40px/1.15 var(--serif); color: var(--ink); text-wrap: balance; }
.home-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding-top: 44px; }
.home-feature-head { display: flex; flex-direction: column; gap: 14px; }
.home-feature-title { margin: 4px 0 0; font: 400 52px/1.1 var(--serif); color: var(--ink); text-wrap: balance; }
.v3 p.home-feature-sub { font-size: 22px; line-height: 1.5; font-style: italic; color: var(--label-ink); }
.home-feature-body { padding-top: 34px; }
.v3 .home-feature-body p { font-size: 19px; line-height: 1.68; color: var(--body); }

/* White, no hairlines of its own - Research's bottom hairline and About's
   top hairline are the only dividers either side of it. */
.home-band-in { display: flex; flex-direction: column; gap: 32px; padding-top: 64px; padding-bottom: 88px; }
.home-band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--col-gap); align-items: end; }
.home-band-title { display: flex; flex-direction: column; gap: 20px; }
.v3 p.home-band-h { font: 400 40px/1.15 var(--serif); color: var(--ink); text-wrap: balance; }
.home-band-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px 24px; flex-wrap: wrap; }
.home-topics { display: flex; flex-wrap: wrap; gap: 10px 14px; font: 400 12px var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--label-ink); }
.home-topics span + span { border-left: 1px solid #C9AEC2; padding-left: 14px; }
.home-band-cta { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.home-free { font: italic 400 17px var(--serif); color: var(--label-ink); }

/* Tinted, with only a top hairline - About is the last section, so no
   bottom divider (the footer has its own existing top rule). */
.home-about { background: #FAF9F7; border-top: 1px solid #EDE9EB; }
.home-about-in { padding-top: 64px; padding-bottom: 96px; }
.home-about-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--col-gap); }
.home-about-title { display: flex; flex-direction: column; gap: 18px; }
.v3 p.home-about-h { font: 400 40px/1.15 var(--serif); color: var(--ink); text-wrap: balance; }
.home-about-text { display: flex; flex-direction: column; gap: 16px; padding-top: 34px; }
.home-about-text .home-note-more { margin-top: 6px; }

@media (max-width: 759px) {
  .home-hero { padding-top: 48px; padding-bottom: 48px; }
  .home-hero-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-h1 { font-size: 42px; line-height: 1.15; }
  .home-hero-text { gap: 24px; padding-top: 0; }
  .v3 p.home-intro { font-size: 19px; }
  .home-links { flex-direction: column; gap: 14px; }
  .home-pano { height: 160px; margin-top: 40px; }
  .home-latest-in { padding-top: 48px; padding-bottom: 56px; }
  .home-latest-h { font-size: 32px; line-height: 1.15; }
  .home-feature { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }
  .home-feature-title { font-size: 36px; }
  .v3 p.home-feature-sub { font-size: 19px; }
  .home-feature-body { padding-top: 0; }
  .v3 .home-feature-body p { font-size: 18px; }
  .home-band-in { gap: 24px; padding-top: 48px; padding-bottom: 56px; }
  .home-band-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .v3 p.home-band-h { font-size: 32px; line-height: 1.15; }
  .home-band-head > p { font-size: 18px; line-height: 1.62; }
  .home-band-foot, .home-band-cta { flex-direction: column; align-items: flex-start; }
  .home-about-in { padding-top: 48px; padding-bottom: 56px; }
  .home-about-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .v3 p.home-about-h { font-size: 32px; line-height: 1.15; }
  .home-about-text { padding-top: 0; }
  .home-about-text p { font-size: 18px; }
}

/* ---- Research (handoff_v4/pages/research.html) ---- */
.res-head { padding-top: 88px; padding-bottom: 72px; }
.res-head-cols { max-width: 960px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--col-gap); align-items: start; }
.res-head-title { display: flex; flex-direction: column; gap: 24px; }
.res-h1 { margin: 0; font: 400 52px/1.2 var(--serif); color: var(--plum); text-wrap: balance; }
.res-head-cols > p { padding-top: 42px; }
.res-list { padding-bottom: 96px; }
.res-list-in { max-width: 960px; }
.note-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: var(--col-gap); padding: 40px 0; border-bottom: 1px solid var(--rule); }
.note-item-meta { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; font: 400 12px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--label-ink); }
.note-item-meta .topic { color: var(--plum); }
.note-item-body { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.note-item h2 { margin: 0; font: 400 30px/1.22 var(--serif); color: var(--ink); text-wrap: pretty; }
.note-item h2 a { color: inherit; }
.note-item h2 a:hover { color: var(--plum); }
.v3 .note-item p.note-item-sub { max-height: none; font-size: 20px; line-height: 1.5; font-style: italic; color: var(--label-ink); }
/* a summary shows at most 5 lines; when it's cut (site.js adds .is-clamped) a plum "..." sits at the end of
   the last line, the text fading out behind it: a cue, not part of the text */
.v3 .note-item p { position: relative; max-width: 64ch; max-height: calc(5 * 1.68em); overflow: hidden; }
.clamp-cue { display: none; position: absolute; right: 0; bottom: 0; height: 1.68em; align-items: center; padding-left: 96px;
  background: linear-gradient(to right, rgba(252, 252, 252, 0), var(--paper) 72px); }
.clamp-cue span { font: 500 16px/1 var(--sans); letter-spacing: 0.18em; margin-right: -0.18em; color: var(--plum); }
.note-item p.is-clamped .clamp-cue { display: flex; }
.note-item-more { margin-top: 6px; }
@media (max-width: 759px) {
  .res-head { padding-top: 48px; padding-bottom: 48px; }
  .res-head-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .res-h1 { font-size: 42px; }
  .res-head-cols > p { padding-top: 0; font-size: 18px; line-height: 1.62; }
  .res-list { padding-bottom: 56px; }
  .note-item { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 28px 0; }
  .note-item-meta { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; padding-top: 0; }
  .note-item h2 { font-size: 25px; }
  .v3 .note-item p.note-item-sub { font-size: 18px; }
  .v3 .note-item p { font-size: 18px; line-height: 1.62; max-height: calc(5 * 1.62em); }
}

/* ---- Data (handoff_v4/pages/data.html) ---- */
.data-hero { padding-top: 88px; padding-bottom: 72px; }
.data-hero-cols { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 64px; align-items: start; }
.data-hero-title { display: flex; flex-direction: column; gap: 24px; }
.data-h1 { margin: 0; font: 400 52px/1.1 var(--serif); letter-spacing: -0.015em; color: var(--plum); text-wrap: balance; }
.data-hero-text { display: flex; flex-direction: column; gap: 28px; padding-top: 42px; }
.data-cta { display: flex; flex-direction: column; gap: 12px; }
.data-cta .btn-fill, .data-access-act .btn-fill { width: fit-content; padding: 14px 22px; }
.data-note { font: italic 400 16px/1.5 var(--serif); color: var(--label-ink); }
.data-sec { padding-bottom: 96px; }
.data-rule { padding-top: 16px; border-top: 1px solid var(--plum); }
.data-h2 { margin: 24px 0 0; font: 400 32px/1.2 var(--serif); color: var(--ink); text-wrap: balance; }
.data-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--col-gap); margin-top: 32px; }
.data-apps > div { padding: 24px 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.data-apps h3 { margin: 0; font: 400 23px var(--serif); color: var(--plum); }
.v3 .data-apps p { font-size: 18px; line-height: 1.6; }
.data-access { background: #FAF9F7; border-top: 1px solid #EDE9EB; }
.data-access-in { padding-top: 72px; padding-bottom: 80px; }
.data-access-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--col-gap); margin-top: 8px; }
.data-access-cols > div { display: flex; flex-direction: column; gap: 14px; padding: 28px 0 8px; }
.data-access-cols > div:first-child { padding-right: 48px; border-right: 1px solid var(--rule); }
.data-kicker { font: 400 12px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--label-ink); }
.data-access-cols h3 { margin: 0; font: 400 28px/1.25 var(--serif); color: var(--ink); }
.v3 .data-access-cols p { font-size: 18px; line-height: 1.6; }
.data-access-act { margin-top: 8px; }
.data-access-act-link { margin-top: 14px; }
@media (max-width: 759px) {
  .data-hero { padding-top: 48px; padding-bottom: 48px; }
  .data-hero-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .data-h1 { font-size: 42px; }
  .data-hero-text { padding-top: 0; }
  .data-sec { padding-bottom: 56px; }
  .data-apps, .data-access-cols { grid-template-columns: minmax(0, 1fr); }
  .data-apps { margin-top: 16px; }
  .data-h2 { font-size: 26px; }
  .data-access-in { padding-top: 48px; padding-bottom: 56px; }
  .data-access-cols > div:first-child { padding-right: 0; padding-bottom: 28px; border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* Data coverage: the list (tabs) beside a 4:3 screenshot of the chosen item; on mobile an accordion, the open
   item's description then its screenshot (the frame is moved after it by order) */
.cov-sec { padding-bottom: 96px; }
.cov { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 56px; align-items: start; }
.cov-list { display: flex; flex-direction: column; }
.cov-item { border-bottom: 1px solid var(--rule); }
.cov-tab { appearance: none; display: block; width: 100%; min-height: 44px; margin: 0; padding: 18px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: 400 21px/1.3 var(--serif); color: var(--label-ink); }
.cov-tab:hover, .cov-tab[aria-selected="true"] { color: var(--plum); }
.cov-tab:focus-visible, .cov-frame:focus-visible { outline: 1px solid var(--plum); outline-offset: 3px; }
.v3 p.cov-desc { display: none; margin: -8px 0 0; padding-bottom: 18px; font-size: 16.5px; line-height: 1.55; color: var(--label-ink); }
.v3 .cov-item.on p.cov-desc { display: block; }
.cov-frame { appearance: none; display: block; position: relative; width: 100%; aspect-ratio: 4 / 3; margin: 0; padding: 0;
  border: 1px solid var(--rule); background: #FAFAFA; overflow: hidden; cursor: zoom-in; }
.cov-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 250ms ease; }
.cov-img.on { opacity: 1; }
.cov-hint { display: block; margin-top: 12px; font: 400 11px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-muted); }
@media (prefers-reduced-motion: reduce) { .cov-img { transition: none; } }
@media (max-width: 759px) {
  .cov-sec { padding-bottom: 56px; }
  .cov { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .cov-list, .cov-media { display: contents; }
  .cov-item:nth-child(1) { order: 0; } .cov-item:nth-child(2) { order: 2; } .cov-item:nth-child(3) { order: 4; }
  .cov-item:nth-child(4) { order: 6; } .cov-item:nth-child(5) { order: 8; } .cov-item:nth-child(6) { order: 10; }
  .cov-frame { margin: 4px 0 20px; }
  .cov[data-active="0"] .cov-frame { order: 1; } .cov[data-active="1"] .cov-frame { order: 3; } .cov[data-active="2"] .cov-frame { order: 5; }
  .cov[data-active="3"] .cov-frame { order: 7; } .cov[data-active="4"] .cov-frame { order: 9; } .cov[data-active="5"] .cov-frame { order: 11; }
  .cov-hint { display: none; }
}

/* ---- About (handoff_v4/pages/about.html): typography only ---- */
.about-intro { padding-top: 88px; padding-bottom: 72px; }
.about-intro-in { max-width: 880px; display: flex; flex-direction: column; gap: 24px; }
.about-h1 { margin: 0; font: 400 52px/1.3 var(--serif); letter-spacing: -0.012em; color: var(--plum); text-wrap: pretty; }
.about-sec { padding-bottom: 80px; }
.about-people-sec { padding-bottom: 96px; }
.about-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: var(--col-gap); padding: 28px 0; border-bottom: 1px solid var(--rule); }
.about-row h3 { margin: 0; font: 400 24px var(--serif); color: var(--ink); }
.about-people { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; padding-top: 32px; }
.about-people article { display: flex; flex-direction: column; gap: 16px; }
.about-person { display: flex; flex-direction: column; gap: 10px; }
.about-person h3 { margin: 0; font: 400 34px/1.15 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.about-person span { font: 400 12px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--plum); }
.v3 .about-people p { margin-top: 6px; font-size: 18px; max-width: 500px; }
.about-contact { background: #FAF9F7; border-top: 1px solid #EDE9EB; }
.about-contact-in { padding-top: 72px; padding-bottom: 80px; }
.about-contact-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); padding-top: 28px; font: 400 19px/1.6 var(--serif); color: var(--body); }
.about-contact-cols > div { display: flex; flex-direction: column; gap: 6px; }
.about-contact-cols a { color: var(--body); }
.about-contact-cols a:hover { color: var(--plum); }
@media (max-width: 759px) {
  .about-intro { padding-top: 48px; padding-bottom: 48px; }
  .about-h1 { font-size: 42px; }
  .about-sec, .about-people-sec { padding-bottom: 56px; }
  .about-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
  .v3 .about-row p { font-size: 18px; }
  .about-people { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 28px; }
  .about-person h3 { font-size: 28px; }
  .v3 .about-people p { font-size: 17px; }
  .about-contact-in { padding-top: 48px; padding-bottom: 56px; }
  .about-contact-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; font-size: 18px; }
}

/* ---- Note contents (handoff_v4/pages/article.html): sticky beside the text, linked to the sections, the one
   being read marked with a plum rule (note.js); on mobile a <details> dropdown ---- */
@media (min-width: 760px) {      /* the text in a 680px column, the contents in 200-240px at the right edge, 64px apart */
  .note-grid { display: grid; grid-template-columns: minmax(0, 680px) minmax(200px, 240px); justify-content: space-between; gap: 64px; }
  .note-grid .note-main { max-width: none; }
  .note-grid .note-sidebar { max-width: none; }
}
.note-toc { display: flex; flex-direction: column; margin-bottom: 36px; }
.note-toc .contents-row, .note-toc-m .contents-row { display: block; padding: 11px 0 11px 14px; margin-left: -14px; border-left: 2px solid transparent;
  border-bottom: 1px solid #EDE9EB; font: 400 16px/1.4 var(--serif); color: #403A3A; }
.note-toc .contents-row:hover, .note-toc-m .contents-row:hover { color: var(--plum); }
.note-toc .contents-row.on { border-left-color: var(--plum); color: var(--plum); }
.note-toc-m { display: none; margin-top: 20px; border-bottom: 1px solid var(--rule); }
.note-toc-m summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 0;
  font: 400 12px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--plum); }
.note-toc-m summary::-webkit-details-marker { display: none; }
.note-toc-m-hint { letter-spacing: 0.14em; color: var(--label-ink); }
.note-toc-m nav { padding-bottom: 12px; }
.note-toc-m .contents-row { margin-left: 0; padding: 13px 0 13px 14px; }
@media (max-width: 759px) {
  .note-toc { display: none; }
  .note-toc-m { display: block; }
}

/* SITE_MODE "site": the portal's links, greyed out and not links, until it opens */
.btn-portal.is-soon { color: var(--soon-ink); border-color: var(--soon-line); background: none; cursor: default; }
/* "Coming soon" on hover or focus, below the button */
.btn-portal.is-soon { position: relative; }
.btn-portal.is-soon:hover::after, .btn-portal.is-soon:focus-visible::after { content: attr(data-soon); position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); padding: 5px 9px; white-space: nowrap; font: 400 12px var(--sans); letter-spacing: 0; text-transform: none;
  color: var(--body); background: #FFFFFF; border: 1px solid var(--soon-line); box-shadow: 0 6px 18px rgba(32,28,28,.08); z-index: 20; pointer-events: none; }
.hdr-plum .sh .btn-portal.is-soon { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.3); background: none; }
.btn-fill.is-soon { color: var(--soon-ink); background: var(--soon-fill); cursor: default; }
.text-link.is-soon { color: var(--soon-ink); border-bottom-color: var(--soon-line); cursor: default; }
