/* 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 */
  --accent: #B8863B;                    /* the third colour (design language 3.1, site): hero link underlines, band hairlines,
                                           the active coverage tab, the secondary chart mark, the portal button's line */
  --accent-text: #8A6424;               /* the accent as text on light grounds (readable where #B8863B is not) */
  --accent-wash: #FAF6EE;               /* the portal button's hover fill on the light header */
  --accent-soft: #DCC39D;               /* the accent at rest where it brightens on hover (portal button, list hover rule) */
  --accent-on-dark: #D4A556;            /* the accent as text over the photo (hero links on hover) */
  --ease: 180ms ease;                   /* every hover and focus change: 150-200ms */
  --ease-out: cubic-bezier(.2, .8, .2, 1);      /* motion (design language 3.4): entrances - a fast start, a soft landing */
  --ease-in: cubic-bezier(.4, 0, 1, 1);         /* exits */
  --ease-in-out: cubic-bezier(.45, 0, .55, 1);  /* something changing size in place */
  --dur-pop-in: 160ms; --dur-pop-out: 128ms;    /* popovers and menus; exits 20% shorter */
  --dur-panel-in: 280ms; --dur-panel-out: 224ms;
}
@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; }
/* nav: ink (white on plum); hover draws a 1px accent underline from the left, the text colour stays; the
   current page keeps the underline */
.sn-link { color: var(--ink); padding: 4px 0 5px; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat;
  transition: background-size var(--ease); }
.sn-link:hover, .sn-link:focus-visible, .sn-link.on { color: var(--ink); background-size: 100% 1px; }
.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; gap: 14px; font-size: 12px; letter-spacing: 0.16em; padding: 11px 19px; color: var(--plum); border: 1px solid var(--accent-soft);
  transition: border-color var(--ease), background-color var(--ease); }
.btn-portal:not(.is-soon) svg { color: var(--accent); }
.btn-portal:not(.is-soon):hover, .btn-portal:not(.is-soon):focus-visible { color: var(--plum); border-color: var(--accent); background: var(--accent-wash); }
.btn-fill { padding: 13px 22px; color: var(--plum); background: none; border: 1px solid var(--accent-soft);
  transition: border-color var(--ease), background-color var(--ease); }
.btn-fill:not(.is-soon):hover, .btn-fill:not(.is-soon):focus-visible { color: var(--plum); border-color: var(--accent); background: var(--accent-wash); }
.btn-fill:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-fill.nav-ext { gap: 14px; }   /* opens the portal in a new window: the Portal login icon, in the accent */
.btn-fill.nav-ext:not(.is-soon) svg { color: var(--accent); }
.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, .hdr-plum .sh .sn-link:hover, .hdr-plum .sh .sn-link:focus-visible { color: #FFFFFF; }
.hdr-plum .sh .btn-portal { color: #FFFFFF; border-color: rgba(184, 134, 59, 0.55); transition: color var(--ease), border-color var(--ease), background-color var(--ease); }
.hdr-plum .sh .btn-portal svg { transition: color var(--ease); }
/* hover on plum: no fill (a plum fill reads muddy); the text, icon and border turn light gold, as the hero links do */
.hdr-plum .sh .btn-portal:not(.is-soon):hover, .hdr-plum .sh .btn-portal:not(.is-soon):focus-visible { color: var(--accent-on-dark); border-color: var(--accent-on-dark); background: none; }
.hdr-plum .sh .btn-portal:not(.is-soon):hover svg, .hdr-plum .sh .btn-portal:not(.is-soon):focus-visible svg { color: var(--accent-on-dark); }
.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 var(--ease-in-out); }
.sh.is-compact { margin-bottom: var(--sh-shift, 0px); }
.sh.no-anim, .sh.no-anim * { transition: none !important; }
.sh .sh-in { transition: padding 200ms var(--ease-in-out); }
.sh .wm { transition: gap 200ms var(--ease-in-out); }
.wm-title { --wm-size: 20px; font-size: var(--wm-size); }
.sh .wm-title { transition: font-size 200ms var(--ease-in-out); }
.sh .wm-tag { max-height: 14px; overflow: hidden; transition: max-height 200ms var(--ease-in-out), opacity 150ms var(--ease-in-out); }
.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; opacity: 0; pointer-events: none; }
.mnav { transition: opacity var(--dur-pop-out) var(--ease-in), display var(--dur-pop-out) allow-discrete; }
.mnav:not([hidden]) { transition-duration: var(--dur-pop-in); transition-timing-function: var(--ease-out); }
@starting-style { .mnav:not([hidden]) { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mnav { transition: 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; }
/* footer links: the main nav's behaviour - a 1px accent underline grows from the left, the text colour stays; the
   current legal page keeps it */
.sf-nav a, .sf-links a { padding: 4px 0 5px; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat;
  transition: background-size var(--ease); }
.sf-nav a:hover, .sf-nav a:focus-visible, .sf-links a:hover, .sf-links a:focus-visible, .sf-links a.on { background-size: 100% 1px; }
.sf-nav a:focus-visible, .sf-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sf-nav a { color: #FFFFFF; }
.sf-links a { padding: 0 0 4px; }   /* the underline below the text, the text on the copyright's line */
.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; }
/* 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); }
@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; } }
@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(--accent); }
.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 { --tl-line: #C9AEC2; position: relative; display: inline-block; width: fit-content; white-space: nowrap; padding: 6px 0;
  font: 400 13px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--plum); }
/* hover: the underline turns accent and 2px (the 2nd px a shadow, so nothing moves); the text stays plum */
.text-link { transition: color var(--ease); }
/* the underline is one box, not a border plus a shadow: two separate pixels round apart at fractional positions
   (one link's 2px line solid, another's split) */
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--tl-line);
  transition: height var(--ease), background-color var(--ease); }
.text-link:not(.is-soon):hover, .text-link:not(.is-soon):focus-visible { --tl-line: var(--accent); color: var(--plum); }
.text-link:not(.is-soon):hover::after, .text-link:not(.is-soon):focus-visible::after { height: 2px; }
.tl-arr { display: inline-block; transition: transform var(--ease); }

/* ---- 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); }
/* lists of tabs (and the coverage list): hover darkens the text to ink over a light accent rule; selected, a
   solid 2px accent rule */
.sc-tab { transition: color var(--ease), border-color var(--ease); }
.sc-tab:hover, .sc-tab:focus-visible { color: var(--ink); border-bottom-color: var(--accent-soft); }
.sc-tab[aria-selected="true"] { color: var(--plum); border-bottom-color: var(--accent); }
.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; }
/* screenshots you can click: the border turns accent, no shadow, no movement */
.sc-panel, .cov-frame { transition: border-color var(--ease); }
.sc-panel:hover, .sc-panel:focus-visible, .cov-frame:hover, .cov-frame:focus-visible { border-color: var(--accent); }
/* keyboard focus: the hover look plus a 2px accent outline, 3px off */
.sn-link:focus-visible, .btn-portal:focus-visible, .text-link:focus-visible, .sc-tab:focus-visible, .cov-tab:focus-visible,
.sc-panel:focus-visible, .cov-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.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; } }

/* ---- Product demo on Home (includes/product_demo.html, demo.js): tabs; the use case's title and text side by
   side; then a panel: the control row (pause, the steps across, enlarge) over a replay of the real portal, recorded
   at 1280 x 800 and scaled to its frame, so its box never changes size. The four texts share one grid cell, as do
   the four step rows, so the tallest sets the height and switching tabs moves nothing.
   The step bars are the scrubber: each fills as its step plays. The caption is a card
   in the replay pinned to what it is about.
   Motion (design language 3.4): entrances ease out, moves ease in-out, exits 20% shorter than entrances, a
   press scales to 0.97, the tab underline is one element that slides, icons crossfade with a blur, nothing bounces. ---- */
.dm { display: flex; flex-direction: column; }
.dm-tabs { position: relative; }
.dm-tabs .sc-tab, .dm-tabs .sc-tab[aria-selected="true"] { border-bottom-color: transparent; }
.dm-tabs .sc-tab:hover, .dm-tabs .sc-tab:focus-visible { border-bottom-color: var(--accent-soft); }
.dm-tabs .sc-tab[aria-selected="true"]:hover { border-bottom-color: transparent; }
.dm-ind { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); pointer-events: none;
  transition: transform 280ms var(--ease-in-out), width 280ms var(--ease-in-out); }
.dm-body { margin-top: 36px; }
.dm-texts, .dm-stepsets { display: grid; }
/* one tab's title and text, side by side, the title level with the text's first line */
.dm-text { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--col-gap); align-items: start;
  visibility: hidden; transition: visibility 0s 200ms; }
.dm-text.on { visibility: visible; transition: none; }
.dm-text > * { opacity: 0; transform: translateY(6px); transition: opacity 200ms var(--ease-in), transform 200ms var(--ease-in); }
.dm-text.on > * { opacity: 1; transform: none; transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
.dm-text.on > .dm-p { transition-delay: 30ms; }
.dm-h { margin: 0; font: 400 36px/1.15 var(--serif); color: var(--ink); text-wrap: balance; }
.v3 p.dm-p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--body); }
/* the switch in a tab's title (benchmarking's technology): the word in plum on an accent underline with a small
   chevron; it keeps the width of its longest choice (all stacked in one cell), so the title never reflows. Its menu:
   a small card below it */
.dm-vsw { position: relative; display: inline-block; }
.dm-vsw-btn { appearance: none; display: inline-block; margin: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  font: inherit; color: var(--plum); transition: color var(--ease); }
.dm-vsw-btn:hover, .dm-vsw.open .dm-vsw-btn { color: var(--ink); }
.dm-vsw-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* each choice holds its word, chevron and underline, from the left; the widest sets the button's width */
.dm-vsw-ls { display: inline-grid; }
.dm-vsw-l { grid-area: 1 / 1; justify-self: start; display: inline-flex; align-items: baseline; gap: 6px; padding: 0 2px; white-space: nowrap;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 1px no-repeat;
  visibility: hidden; opacity: 0; transition: opacity 180ms var(--ease-out); }
.dm-vsw-l.on { visibility: visible; opacity: 1; }
.dm-vsw-chev { width: 0.42em; height: 0.42em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 180ms var(--ease-out); }
.dm-vsw.open .dm-vsw-chev { transform: rotate(180deg); }
.dm-vsw-menu { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; display: flex; flex-direction: column; min-width: 100%; padding: 6px;
  background: #FFFFFF; border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 10px 28px rgba(32, 28, 28, 0.12); }
.dm-vsw-menu[hidden] { display: none; }
.dm-vsw-opt { appearance: none; margin: 0; padding: 8px 14px; border: 0; border-radius: 4px; background: none; text-align: left; white-space: nowrap; cursor: pointer;
  font: 400 15px/1.4 var(--sans); color: var(--body); }
.dm-vsw-opt:hover, .dm-vsw-opt:focus-visible { background: #F4F2EF; color: var(--ink); outline: none; }
.dm-vsw-opt[aria-selected="true"] { color: var(--plum); }

.dm-panel { margin-top: 32px; padding: 28px 36px 36px; background: #F4F2EF; }
/* the control row: pause, the steps (the scrubber), enlarge */
.dm-ctl { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 0 24px; align-items: start; margin-bottom: 24px; }
/* the replay narrowed and centred (demo.js size()) so the whole demo fits the window; the control row keeps the
   panel's width, its steps' text on two lines */
.dm-slot { max-width: var(--dm-w, none); margin-left: auto; margin-right: auto; }
.dm-stepsets { position: relative; outline: none; }
.dm-steps { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0 24px; margin: 0; padding: 0;
  list-style: none; visibility: hidden; opacity: 0; transition: opacity 200ms var(--ease-in), visibility 0s 200ms; }
.dm-steps.on { visibility: visible; opacity: 1; transition: opacity 250ms var(--ease-out); }
.dm-steps li { display: flex; flex-direction: column; min-width: 0; }
/* the bar: a 2px line (centred 10px down) in a 20px band that takes the pointer */
.dm-bar { position: relative; display: block; height: 20px; cursor: pointer; touch-action: none; }
.dm-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: #DAD5CE; }
.dm-fill { position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.dm-step { appearance: none; display: flex; gap: 0.3em; margin: 6px 0 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  font: 400 15px/1.5 var(--sans); color: var(--grey-muted); transition: color 200ms ease; }
.dm-steps li.on .dm-step, .dm-step:hover, .dm-step:focus-visible { color: var(--ink); }
.dm-step:active { transform: scale(0.97); transition-duration: 80ms; }
/* a step in each variant's words, stacked in one cell (the longest sets the height); the switch's shows */
.dm-sv { display: inline-grid; vertical-align: top; }
.dm-sv-t { grid-area: 1 / 1; visibility: hidden; }
.dm-sv-t.on { visibility: visible; }
/* the playing step in medium weight: an invisible medium copy of each wording holds the cell at that size, and the
   number has a fixed width, so bolding moves nothing */
.dm-sv-g { grid-area: 1 / 1; visibility: hidden; font-weight: 500; }
.dm-d { flex: none; min-width: 1.2em; }
.dm-steps li.on .dm-step { font-weight: 500; }
.dm-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dm-stepsets:focus-visible .dm-steps.on li.on .dm-bar::before { box-shadow: 0 0 0 3px rgba(184, 134, 59, 0.35); }

.dm-slot { position: relative; width: 100%; aspect-ratio: 1280 / 800; }
.dm-stage { position: absolute; inset: 0; overflow: hidden; background: #FCFCFC; border: 1px solid var(--rule);
  box-shadow: 0 6px 24px rgba(32, 28, 28, 0.06); transform-origin: 0 0; }
.dm-stage.dm-fixed { position: fixed; inset: auto; z-index: 102; box-shadow: 0 12px 40px rgba(32, 28, 28, 0.18); }
.dm-canvas { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; transform-origin: 0 0; transition: transform 900ms var(--ease-in-out); }
.dm-if { position: absolute; top: 0; left: 0; display: block; width: 1280px; height: 800px; border: 0; background: #FCFCFC; pointer-events: none; }
.dm-live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the caption's card, in the replay at reading size (not scaled with it), pinned below (or above) what it is about;
   it follows the camera's moves, fades in and out 20% faster. Dark ink with white text, so it reads as a caption
   over the page and never competes with the gold of the highlight */
.dm-pop { position: absolute; z-index: 6; top: 0; left: 0; width: var(--pw, 360px); pointer-events: none; opacity: 0;
  transition: opacity 160ms var(--ease-in), transform 900ms var(--ease-in-out); }
.dm-pop.on { opacity: 1; transition: opacity 200ms var(--ease-out), transform 900ms var(--ease-in-out); }
.v3 p.dm-pop-box { margin: 0; padding: 13px 18px; background: rgba(32, 28, 28, 0.94); border-radius: 6px;
  box-shadow: 0 10px 28px rgba(32, 28, 28, 0.22); font: 400 15px/1.5 var(--sans); color: #FFFFFF; }
/* a card narrowed beside a menu: smaller type and padding, so a few short lines still read */
.v3 .dm-pop.narrow p.dm-pop-box { padding: 9px 12px; font-size: 13px; line-height: 1.4; }

/* the end card: once a scene has played to its end, a pale veil fades in over its last frame (a little after it
   stops) with a small card, a short accent rule over its words; it fades out as the scene starts again */
.dm-end { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(252, 252, 252, 0.74); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  visibility: hidden; opacity: 0; transition: opacity 220ms var(--ease-in), visibility 0s 220ms; }
.dm-end.on { visibility: visible; opacity: 1; transition: opacity 420ms var(--ease-out) 250ms; }
.dm-end-box { max-width: 460px; padding: 30px 36px 32px; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 8px; text-align: center;
  box-shadow: 0 16px 40px rgba(32, 28, 28, 0.12); transform: translateY(6px); transition: transform 220ms var(--ease-in); }
.dm-end.on .dm-end-box { transform: none; transition: transform 420ms var(--ease-out) 250ms; }
.dm-end-box::before { content: ""; display: block; width: 32px; height: 2px; margin: 0 auto 18px; background: var(--accent); }
.v3 .dm-end-box p { margin: 0; font: 400 21px/1.5 var(--serif); color: var(--ink); text-wrap: balance; }
/* the start card: the same veil and card, itself a play button (a gold play circle beside the words); it shows at
   once (no delay) and fades out on the first play */
.dm-start.on { transition: opacity 300ms var(--ease-out); }
.dm-start.on .dm-start-box { transition: transform 300ms var(--ease-out); }
.dm-start-box { appearance: none; display: flex; align-items: center; gap: 18px; padding: 22px 30px 22px 22px; cursor: pointer; font: inherit; }
.dm-start-box::before { display: none; }
.dm-start-play { flex: none; position: relative; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent); animation: dm-invite 2200ms var(--ease-out) 400ms infinite; }
.dm-start-play svg { width: 16px; height: 16px; margin-left: 2px; fill: currentColor; }
.dm-start-t { font: 400 21px/1.4 var(--serif); color: var(--ink); text-align: left; }
.dm-start-box:hover .dm-start-play, .dm-start-box:focus-visible .dm-start-play { background: var(--accent); color: #FFFFFF; }
.dm-start-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dm-start-play { transition: background-color var(--ease), color var(--ease); }
.dm-btn { appearance: none; position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: #FFFFFF; color: var(--ink); cursor: pointer;
  transition: border-color var(--ease), transform 120ms var(--ease-out); }
.dm-btn[hidden] { display: none; }
.dm-btn:hover, .dm-btn:focus-visible { border-color: var(--accent); }
.dm-btn:active { transform: scale(0.97); transition-duration: 80ms; }
.dm-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dm-btn svg { position: absolute; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* pause and play crossfade, with a blur and a slight scale */
.dm-btn .i-play { fill: currentColor; stroke: none; }
.dm-btn .i-pause, .dm-btn .i-play, .dm-btn .i-replay { transition: opacity 160ms ease, filter 160ms ease, transform 160ms var(--ease-out); }
.dm-btn .i-play, .dm-btn .i-replay, .dm-btn.paused .i-pause { opacity: 0; filter: blur(2px); transform: scale(0.8); }
.dm-btn.paused .i-play, .dm-btn.ended .i-replay { opacity: 1; filter: none; transform: none; }
.dm-btn.ended .i-play, .dm-btn.ended .i-pause { opacity: 0; filter: blur(2px); transform: scale(0.8); }   /* at the end: Replay only */
/* before the first play: an accent halo grows from the Play button's edge and fades, every 2.2s; the button's edge
   and its play icon take the accent. Nothing moves the button itself. */
.dm-btn.invite { border-color: var(--accent); color: var(--accent); animation: dm-invite 2200ms var(--ease-out) 400ms infinite; }
@keyframes dm-invite { 0% { box-shadow: 0 0 0 0 rgba(184, 134, 59, 0.55); } 80%, 100% { box-shadow: 0 0 0 18px rgba(184, 134, 59, 0); } }

/* the overlay: the backdrop fades in, the panel grows from the enlarge button (from 0.95) as the replay glides
   into it with the control row above it (close takes enlarge's place); on close they shrink back, 20% faster */
.dm-lb { position: fixed; inset: 0; z-index: 100; background: rgba(32, 28, 28, 0); transition: background-color 224ms var(--ease-in); }
.dm-lb[hidden] { display: none; }
.dm-lb.open { background: rgba(32, 28, 28, 0.72); transition: background-color 280ms var(--ease-out); }
.dm-lb-box { position: fixed; background: #F4F2EF; opacity: 0; transform: scale(0.95); transform-origin: var(--ox) var(--oy);
  transition: opacity 224ms var(--ease-in), transform 224ms var(--ease-in); }
.dm-lb.open .dm-lb-box { opacity: 1; transform: none; transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); }
.dm-lb-ctl { position: fixed; z-index: 103; opacity: 0; transition: opacity 180ms var(--ease-in); }
.dm-lb-ctl .dm-ctl { margin: 0; }
.dm-lb-ctl .dm-zoom { visibility: hidden; }
.dm-lb-close { position: fixed; z-index: 104; opacity: 0; transition: opacity 180ms var(--ease-in); }
.dm-lb.open .dm-lb-ctl, .dm-lb.open .dm-lb-close { opacity: 1; transition: opacity 280ms var(--ease-out) 120ms; }

/* the cursor over the replay, at the replay's scale: it travels on an arc (demo.js); a press shrinks it a touch
   and rings once */
.dm-cur { position: absolute; z-index: 5; top: 0; left: 0; width: 22px; height: 28px; opacity: 0; transform: translate(1060px, 660px);
  transition: opacity 200ms ease; pointer-events: none; }
.dm-cur.on { opacity: 1; }
.dm-cur svg { display: block; width: 100%; height: 100%; fill: #201C1C; stroke: #FFFFFF; stroke-width: 1.2; stroke-linejoin: round;
  transform-origin: 2px 2px; transition: transform 100ms var(--ease-out); }
.dm-cur.down svg { transform: scale(0.9); }
.dm-cur::after { content: ""; position: absolute; left: -14px; top: -14px; width: 30px; height: 30px; border-radius: 50%; background: rgba(184, 134, 59, 0.4);
  transform: scale(0); opacity: 0; transition: transform 160ms var(--ease-out), opacity 160ms ease; }
.dm-cur.down::after { transform: scale(1); opacity: 1; }

/* the magnifying lens over the sheet tabs (demo.js): a small rounded window onto a third, enlarged copy of the page,
   with a dark rim so it reads as a glass against the sheet;
   it grows in from below (where the cursor is), eases out, and leaves 20% faster */
.dm-lens { position: absolute; z-index: 4; top: 0; left: 0; overflow: hidden; border-radius: 14px; background: #FFFFFF; pointer-events: none;
  border: 4px solid #2C3138; box-shadow: inset 0 0 0 2px #FFFFFF, 0 0 0 1px rgba(255, 255, 255, 0.6), 0 12px 30px rgba(32, 28, 28, 0.35);
  opacity: 0; scale: 0.9;
  transform-origin: 50% 100%; transition: opacity 176ms var(--ease-in), scale 176ms var(--ease-in); }
.dm-lens.on { opacity: 1; scale: 1; transition: opacity 220ms var(--ease-out), scale 220ms var(--ease-out); }
.dm-lens .dm-if { transform-origin: 0 0; }

/* reduced motion: last frames only, no glides, no camera moves, no cursor, no staggers, no scrubbing */
.dm-still .dm-canvas, .dm-still .dm-text, .dm-still .dm-text > *, .dm-still .dm-steps, .dm-still .dm-ind, .dm-still .dm-pop,
.dm-still .dm-lb, .dm-still .dm-lb-box, .dm-still .dm-lb-ctl { transition: none !important; }
.dm-still .dm-cur { display: none; }
.dm-still .dm-bar { cursor: default; }
@media (max-width: 959px) {
  .dm-panel { padding: 24px 20px 24px; }
  .dm-ctl { gap: 0 16px; }
  .dm-steps { gap: 0 16px; }
  .dm-h { font-size: 32px; }
}
/* phone: title over text; the bars stay four across, only the playing step's text shows, below them, in a box
   kept three lines tall so nothing moves */
@media (max-width: 759px) {
  .dm-body { margin-top: 24px; }
  .dm-text { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dm-h { font-size: 26px; }
  .v3 p.dm-p { font-size: 17px; }
  .dm-panel { margin: 24px calc(-1 * var(--gutter)) 0; padding: 16px 12px 16px; }
  .dm-ctl { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 0 10px; margin-bottom: 14px; }
  .dm-btn { width: 36px; height: 36px; }
  .dm-steps { gap: 0 6px; min-height: 92px; position: relative; }
  .dm-step { position: absolute; left: 0; right: 0; top: 26px; visibility: hidden; opacity: 0; font-size: 14px; transition: opacity 160ms ease; }
  .dm-steps li.on .dm-step { visibility: visible; opacity: 1; }
  .dm-pop { --pw: 230px; }
  .v3 p.dm-pop-box { padding: 9px 12px; font-size: 13px; }
  .dm-end-box { padding: 14px 16px 16px; }
  .dm-end-box::before { margin-bottom: 10px; }
  .v3 .dm-end-box p { font-size: 15px; }
  .dm-start-box { gap: 10px; padding: 10px 14px 10px 10px; }
  .dm-start-play { width: 32px; height: 32px; }
  .dm-start-play svg { width: 11px; height: 11px; }
  .dm-start-t { font-size: 15px; }
}

/* ---- 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); }
/* hero: the photo full width (to 2400px, like .hero-photo), the H1 and intro over its lower part in white; a
   dark gradient at the bottom keeps them legible. Height follows the width but stays inside the window. */
.home-hero { position: relative; max-width: 2400px; margin: 0 auto; display: flex; align-items: flex-end;
  height: clamp(540px, min(48vw, calc(100vh - 150px)), 900px); height: clamp(540px, min(48vw, calc(100svh - 150px)), 900px); }
/* cropped a little from the top: some sky stays above the turbines (the photo sits 10px higher than the 56% crop),
   the text sits higher than at full height */
.home-hero-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center calc(56% - 10px); }
.home-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(24, 16, 22, 0) 28%, rgba(24, 16, 22, 0.4) 62%, rgba(24, 16, 22, 0.62) 100%); }
.home-hero-cols { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(40px, 3.6vw, 64px);
  display: grid; grid-template-columns: minmax(0, 50fr) minmax(0, 50fr); gap: 64px; align-items: end; }
.home-h1 { margin: 0; font: 400 clamp(52px, 5vw, 68px)/1.1 var(--serif); letter-spacing: -0.015em; color: #fff; text-wrap: balance;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.25); }
.home-hero-text { display: flex; flex-direction: column; gap: 28px; }
.v3 p.home-intro { font-size: 20px; line-height: 1.62; color: var(--label-ink); max-width: 54ch; }
.v3 .home-hero p.home-intro { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3); }   /* over the photo only (Data's intro is on the page) */
.home-links { display: flex; flex-wrap: wrap; gap: 16px 48px; }
/* over the photo: white on an accent underline; hover turns the text light accent and moves the ">" 3px */
.home-hero .text-link { --tl-line: var(--accent); color: #fff; }
.home-hero .text-link:hover, .home-hero .text-link:focus-visible { color: var(--accent-on-dark); }
.home-hero .text-link:hover::after, .home-hero .text-link:focus-visible::after { height: 1px; }
.home-hero .text-link:hover .tl-arr, .home-hero .text-link:focus-visible .tl-arr { transform: translateX(3px); }
/* below 1200px the text would rise into the light sky: the photo, then the H1 and intro below it on the page,
   still in two columns down to 760px (single column on mobile, below) */
@media (max-width: 1199px) {
  .home-hero { display: block; height: auto; }
  .home-hero-img { position: static; height: clamp(260px, 42vw, 460px); }
  .home-hero::after { display: none; }
  .home-hero-cols { gap: var(--col-gap); align-items: start; padding-top: 64px; padding-bottom: 72px; }
  .home-h1 { font-size: 52px; color: var(--plum); text-shadow: none; }
  .v3 .home-hero p.home-intro { color: var(--label-ink); text-shadow: none; }
  /* below the photo: a text link on a light section, as anywhere else */
  .home-hero .text-link { --tl-line: #C9AEC2; color: var(--plum); }
  .home-hero .text-link:hover, .home-hero .text-link:focus-visible { color: var(--plum); }
  .home-hero .text-link:hover::after, .home-hero .text-link:focus-visible::after { height: 2px; }
  .home-hero .text-link:hover .tl-arr, .home-hero .text-link:focus-visible .tl-arr { transform: none; }
}

/* 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; }
/* the band hairlines: accent, across the content column (not the full width), drawn on the inner box so
   they take no space */
.home-latest-in, .home-about-in { --hairline: linear-gradient(var(--accent), var(--accent)) no-repeat; }
.home-latest-in { background: var(--hairline) center top / calc(100% - 2 * var(--gutter)) 1px, var(--hairline) center bottom / calc(100% - 2 * var(--gutter)) 1px; }
.home-about-in { background: var(--hairline) center top / calc(100% - 2 * var(--gutter)) 1px; }
/* the Access (Data) and Contact (About) bands open with their own section rule (.data-rule, .home-rule-head): no
   band hairline over it, or there would be two lines */
.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(--accent); }
.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-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; }
.home-feature-title a { color: inherit; text-decoration: none; transition: color var(--ease); }
.home-feature-title a:hover, .home-feature-title a:focus-visible { color: var(--plum); }
.v3 p.home-feature-sub { font-size: 22px; line-height: 1.5; color: var(--body); }
/* the subtitle starts level with the headline (below the date line), as Data's and About's text do */
.home-feature-body { display: flex; flex-direction: column; gap: 22px; padding-top: 38px; }

/* 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: start; }
/* the text starts level with the heading (below the label), as About's (.home-about-text) */
.home-band-head > p { padding-top: 34px; }
.home-band-title { display: flex; flex-direction: column; gap: 18px; }   /* as About (.home-about-title) */
.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: flex-end; 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; }
.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) {
  /* mobile: the photo, then the H1 and intro below it on the page, in plum and grey */
  .home-hero-img { height: 260px; }
  .home-hero-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 40px; padding-bottom: 48px; }
  .home-h1 { font-size: 42px; line-height: 1.15; }
  .home-hero-text { gap: 24px; }
  .v3 p.home-intro { font-size: 19px; }
  .home-links { flex-direction: column; gap: 14px; }
  .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; gap: 16px; }
  .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; padding-top: 0; }
  .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: 22px; padding-top: 8px; font: 400 12px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--label-ink); }
.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; color: var(--body); }
/* 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(--accent); }
.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; }
.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 { position: relative; padding-bottom: 1px; }   /* the 1px the rule below sits in */
.cov-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule);
  transition: height var(--ease), background-color var(--ease); }
.cov-item:has(.cov-tab:hover)::after, .cov-item:has(.cov-tab:focus-visible)::after { background: var(--accent-soft); }
.cov-item.on::after { height: 2px; background: var(--accent); }   /* the active tab: a solid 2px accent rule, one box, growing up so nothing moves */
.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 { transition: color var(--ease); }
.cov-tab:hover, .cov-tab:focus-visible { color: var(--ink); }
.cov-tab[aria-selected="true"] { color: var(--plum); }
.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; }
.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); border-color: var(--soon-line); cursor: default; }
.text-link.is-soon { --tl-line: var(--soon-line); color: var(--soon-ink); cursor: default; }

/* opens in a new window: the shared icon (shared_auth/_ext_icon.html) after the link text */
.ext-ic { display: inline; flex: none; margin-left: 4px; vertical-align: -1px; }
.nav-ext .ext-ic, .btn-ext .ext-ic { margin-left: 0; }
.text-link .ext-ic { color: var(--accent); }   /* as on the buttons */

/* links inside Website copy (linnhe_extras.copytext): as the in-text links of Data sources; over the hero photo they
   take the text's colour with the accent underline */
.v3 a.copy-link { color: var(--plum); border-bottom: 1px solid var(--plum-tint); transition: color var(--ease), border-color var(--ease); }
.v3 a.copy-link:hover, .v3 a.copy-link:focus-visible { color: var(--ink); border-bottom-color: var(--ink); }
.v3 .home-hero a.copy-link { color: inherit; border-bottom-color: var(--accent); }
.v3 .home-hero a.copy-link:hover, .v3 .home-hero a.copy-link:focus-visible { color: inherit; border-bottom-color: currentColor; }
@media (max-width: 759px) { .v3 .home-hero a.copy-link { color: var(--plum); border-bottom-color: var(--plum-tint); } }

/* a research note's tags on its page (includes/note_tags.html), in the kicker's small capitals: topics in plum, groups a
   little further apart than the tags within them */
.nt-g { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; }
.nt-topic { color: var(--plum); }

/* a research note's tags as a small table (includes/note_tag_table.html): a small-capitals label, the values in the
   serif. Home: label beside values, between two hairlines, each value on a light underline. Research: each label
   over its values, one per line. */
.ntt { margin: 0; display: flex; flex-direction: column; }
.ntt dt { margin: 0; font: 400 11px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--label-ink); }
.ntt dd { margin: 0; display: flex; flex-wrap: wrap; font: 400 19px/1.4 var(--serif); color: var(--ink); text-transform: none; letter-spacing: 0; }
.home-feature-body .ntt { gap: 14px; padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.home-feature-body .ntt-row { display: grid; grid-template-columns: 146px minmax(0, 1fr); align-items: baseline; gap: 0 20px; }
.home-feature-body .ntt dd { gap: 6px 22px; }
.home-feature-body .ntt dd span { border-bottom: 1px solid var(--rule); }
.note-item-meta .ntt { gap: 18px; }
.note-item-meta .ntt-row { display: flex; flex-direction: column; gap: 6px; }
.note-item-meta .ntt dd { flex-direction: column; font-size: 18px; }
@media (max-width: 759px) {
  .home-feature-body .ntt-row { grid-template-columns: 110px minmax(0, 1fr); }
  .note-item-meta .ntt { flex-direction: row; flex-wrap: wrap; gap: 14px 28px; }
}
