/* ==========================================================================
   Margaretta Colangelo — site styles
   Layout: an analyst's ledger. Left-aligned editorial grid on one black
   "reading room" background for every page (radiology reading rooms are kept
   dark so images read true), with a dated milestone rail for lists.
   ========================================================================== */

:root {
  /* Color: one black "reading room" palette for the whole site */
  --paper: #071116;          /* the hero's black, carried through every page */
  --surface: #101f26;        /* cards and tinted sections */
  --ink: #e9f0ee;
  --muted: #a0b1b3;
  --faint: #7b8e91;
  --rule: #1f323a;
  --rule-strong: color-mix(in srgb, var(--ink) 35%, transparent);  /* control edges */
  --accent: #5ccdb9;         /* lagoon teal */
  --accent-strong: #7ad6c5;
  --accent-soft: #12302c;
  /* Category colors for the category buttons (on Collections) and article tags (Margaretta, October 9, 2026) */
  --cat-popular: #f6d58f;     --cat-popular-soft: #3a2c10;
  --cat-milestones: #5ccdb9;  --cat-milestones-soft: #12302c;
  --cat-llms: #f59ac6;        --cat-llms-soft: #3d1a2c;
  --cat-industry: #8cc8ff;    --cat-industry-soft: #13293f;
  --cat-longevity: #b5e48c;   --cat-longevity-soft: #22331a;
  --cat-seminars: #c6a8ff;    --cat-seminars-soft: #2a1f45;
  --cat-covid: #ff9b9b;       --cat-covid-soft: #3d1a1a;
  --cat-fda: #ffa94d;         --cat-fda-soft: #3d2410;
  --cat-essays: #f7a072;      --cat-essays-soft: #3b2215;
  --cat-universities: #f0abfc; --cat-universities-soft: #3a1a3d;
  --cat-lectures: #a5b4fc;    --cat-lectures-soft: #1e2247;
  --cat-fundraising: #e2e8f0; --cat-fundraising-soft: #2a3038;
  --cat-hospitals: #67e8f9;   --cat-hospitals-soft: #0f2f36;
  --cat-ophthalmology: #fde047; --cat-ophthalmology-soft: #36310c;
  --cat-deeptech: #86efac;    --cat-deeptech-soft: #14301f;
  --on-accent: #04201b;
  --room: #071116;           /* same black as the page, so the hero runs on */
  --room-2: #0e1e25;
  --room-fg: #e9f0ee;
  --room-muted: #a0b1b3;
  --room-rule: #1f323a;
  --room-accent: #5ccdb9;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);

  /* Type */
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem);

  /* Space */
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 104px);
  --radius: 6px;

  color-scheme: dark;
}

/* ---------- Base ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section:not(.section--tint):not(.section--room) + .section:not(.section--tint):not(.section--room) { padding-top: 0; }
.section--tint { background: var(--surface); border-block: 1px solid var(--rule); }

/* ---------- Small type ---------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 40rem; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head > div { display: grid; gap: 10px; max-width: 44rem; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); }

.link-arrow {
  font-weight: 500; color: var(--accent); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.link-arrow::after { content: "→"; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow.is-external::after { content: "↗"; }

/* ---------- Buttons & forms ---------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 0.95rem/1 var(--font-body);
  padding: 13px 20px; min-height: 46px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { min-height: 38px; padding: 9px 14px; font-size: 0.9rem; }

.field { display: grid; gap: 6px; }
.field label { font-size: var(--step--1); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-width: 0;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: 12px 14px; min-height: 46px;
}
.section--tint .input, .section--tint .select, .section--tint .textarea { background: var(--paper); }
.textarea { min-height: 130px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }

.signup { display: grid; gap: 10px; max-width: 32rem; }
.signup__row { display: flex; flex-wrap: wrap; gap: 8px; }
.signup__row .input { flex: 1 1 14rem; }
.signup__row .btn { flex: 0 0 auto; }
.signup__note { font-size: var(--step--1); color: var(--muted); }
.signup__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  font-size: var(--step--1); color: var(--accent);
  border-left: 2px solid var(--accent); padding-left: 10px;
}

/* ---------- Header -------------------------------------------------------- */

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
/* Home and Visuals sit at the far left, the word Home lined up with the page's left margin (Margaretta,
   November 5, 2026; the menu was centered before) */
.site-header__inner { display: flex; align-items: center; justify-content: flex-start; gap: 20px; min-height: 68px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: -12px; }
.nav a:not(.btn) {
  text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--muted);
  padding: 8px 12px; border-radius: var(--radius);
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav .btn { margin-left: 8px; }

/* The menu runs across the top of every page at every width, with no Menu button (Margaretta,
   November 2, 2026). Since November 5, 2026 it holds just Home and Visuals, side by side at the left on
   narrower screens too. */
@media (max-width: 860px) {
  .nav { gap: clamp(8px, 4vw, 24px); margin-left: calc(-1 * clamp(4px, 1.2vw, 12px)); }
  .nav a:not(.btn) { font-size: clamp(0.8rem, 0.62rem + 0.9vw, 0.95rem); padding: 8px clamp(4px, 1.2vw, 12px); }
}

/* ---------- Hero (reading room) ------------------------------------------ */

.hero {
  background: var(--room);
  color: var(--room-fg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* faint scan-line texture, like a light box */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 85% 30%, rgb(92 205 185 / 0.10), transparent 60%),
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0.018) 0 1px, transparent 1px 4px);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 4vw, 56px); align-items: end;
  padding-top: clamp(48px, 7vw, 88px);
}
.hero__copy { display: grid; gap: 22px; padding-bottom: clamp(40px, 6vw, 72px); min-width: 0; }
.hero .eyebrow { color: var(--room-accent); }
/* The Subscribe page title too (Margaretta, November 2, 2026) */
.hero h1 { font-size: var(--masthead-size); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.hero h1 .hero__accent { color: var(--room-accent); }
.hero .lede { color: var(--room-muted); }
.hero .input { background: var(--room-2); border-color: var(--rule-strong); color: var(--room-fg); }
.hero .input::placeholder { color: var(--room-muted); }
.hero .signup__note { color: var(--room-muted); }
.hero .signup__note strong { color: var(--room-fg); font-weight: 500; }
.hero .form-status { color: var(--room-accent); border-color: var(--room-accent); }
.hero .btn--primary { background: var(--room-accent); color: #04201b; }
.hero .btn--primary:hover { background: #7ad6c5; }

.hero__portrait { position: relative; align-self: end; min-width: 0; }
.hero__portrait img {
  width: 100%; max-width: 440px; margin-left: auto; aspect-ratio: 900 / 916; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side at 50% 46%, #000 70%, transparent 100%);
          mask-image: radial-gradient(closest-side at 50% 46%, #000 70%, transparent 100%);
  mix-blend-mode: lighten;
}
.hero__plate {
  position: absolute; left: 0; bottom: 28px; max-width: 17rem;
  background: rgb(7 17 22 / 0.78); border: 1px solid var(--room-rule); border-radius: var(--radius);
  padding: 12px 14px; font-size: 0.8rem; line-height: 1.45; color: var(--room-muted);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero__plate strong { display: block; color: var(--room-fg); font-weight: 500; margin-bottom: 2px; }

.figures {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--room-rule);
}
.figure { padding: 22px 20px 26px 0; display: grid; gap: 4px; align-content: start; min-width: 0; }
.figure + .figure { padding-left: 20px; border-left: 1px solid var(--room-rule); }
.figure__num { font-family: var(--font-display); font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1; color: var(--room-fg); font-variant-numeric: lining-nums; }
.figure__label { font-size: 0.85rem; color: var(--room-muted); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 8px; }
  .hero__portrait { max-width: 340px; }
  .hero__portrait img { margin-left: 0; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(3) { padding-left: 0; border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--room-rule); }
}

/* ---------- Page hero (inner pages) -------------------------------------- */

.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.page-hero + .section--tint { border-top: 0; }
.page-hero--compact { padding-block: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 28px); }
.page-hero--soon { min-height: 52vh; display: grid; align-content: center; border-bottom: 0; }
.page-hero__inner { display: grid; gap: 16px; max-width: 52rem; }
/* Page titles (Visuals, Testimonials, About, Subscribe and the other pages with a page heading, not the
   article headlines) are the size of the AI In Healthcare Milestones headline on the home page
   (--masthead-size, defined with the masthead below; Margaretta, November 2, 2026) */
.page-hero h1 { font-size: var(--masthead-size); line-height: 1.15; letter-spacing: -0.02em; }

/* ---------- As-seen-in strip --------------------------------------------- */

.outlets { border-bottom: 1px solid var(--rule); padding-block: 22px; }
.outlets__inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; }
.outlets__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.outlets ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.outlets li { font-family: var(--font-display); font-size: 1.15rem; color: var(--muted); font-weight: 500; }

/* ---------- Ledger (milestone rail) -------------------------------------- */

.ledger { list-style: none; margin: 0; padding: 0; position: relative; }
.ledger__item {
  position: relative;
  display: grid; grid-template-columns: 9.4rem 18px minmax(0, 1fr); gap: 0 14px;
  padding-block: 16px;
}
.ledger__item + .ledger__item { border-top: 1px solid var(--rule); }
.ledger__date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); padding-top: 4px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.ledger__node { position: relative; }
.ledger__node::before {
  content: ""; position: absolute; left: 50%; top: -16px; bottom: -17px; width: 1px;
  background: var(--rule); transform: translateX(-50%);
}
.ledger__item:first-child .ledger__node::before { top: 10px; }
.ledger__item:last-child .ledger__node::before { bottom: calc(100% - 10px); }
.ledger__node::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); transform: translateX(-50%);
}
.section--tint .ledger__node::after { background: var(--surface); }
.ledger__body { display: grid; gap: 5px; min-width: 0; }
.ledger__title { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; font-weight: 500; }
.ledger__title a { text-decoration: none; }
.ledger__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.title-sub { display: block; }
.ledger__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 0.85rem; color: var(--muted); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 3px 7px; border-radius: 3px; white-space: nowrap;
}
.tag--plain { background: transparent; color: var(--muted); padding: 0; }
/* Each category button has its own tag color (Margaretta, October 9, 2026); AI Milestones keeps the teal */
.tag--llms { color: var(--cat-llms); background: var(--cat-llms-soft); text-transform: none; }  /* "LLMs", not "LLMS" */
.tag--seminars { color: var(--cat-seminars); background: var(--cat-seminars-soft); }
.tag--ai-industry { color: var(--cat-industry); background: var(--cat-industry-soft); }
.tag--longevity { color: var(--cat-longevity); background: var(--cat-longevity-soft); }
.tag--essays { color: var(--cat-essays); background: var(--cat-essays-soft); }
.tag--covid { color: var(--cat-covid); background: var(--cat-covid-soft); }
.tag--fda { color: var(--cat-fda); background: var(--cat-fda-soft); }
.tag--fundraising { color: var(--cat-fundraising); background: var(--cat-fundraising-soft); }
.tag--hospitals { color: var(--cat-hospitals); background: var(--cat-hospitals-soft); }
.tag--ophthalmology { color: var(--cat-ophthalmology); background: var(--cat-ophthalmology-soft); }
.tag--universities { color: var(--cat-universities); background: var(--cat-universities-soft); }
.tag--lectures { color: var(--cat-lectures); background: var(--cat-lectures-soft); }
.tag--deeptech { color: var(--cat-deeptech); background: var(--cat-deeptech-soft); }

@media (max-width: 560px) {
  .ledger__item { grid-template-columns: 14px minmax(0, 1fr); gap: 2px 12px; }
  .ledger__date { grid-column: 2; grid-row: 1; padding-top: 0; }
  .ledger__node { grid-column: 1; grid-row: 1 / span 2; }
  .ledger__body { grid-column: 2; }
}

/* ---------- Lead story + latest ------------------------------------------ */

.lead-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .lead-grid { grid-template-columns: 1fr; } }

.story { display: grid; gap: 16px; }
.story__kicker { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.story h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.1; }
.story h3 a { text-decoration: none; }
.story h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.story p { color: var(--muted); max-width: 38rem; }

/* ---------- Lead images ---------------------------------------------------- */

.media { margin: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--room); }
.media img { display: block; width: 100%; height: auto; }
.media--crop { aspect-ratio: 16 / 9; }
.media--crop img { height: 100%; object-fit: cover; }

/* ---------- Video preview slot (for short videos after launch; unused in phase 1) */

.preview {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--room); color: var(--room-fg); isolation: isolate;
  aspect-ratio: 16 / 9;
}
.preview--tall { aspect-ratio: 4 / 5; }
.preview--wide { aspect-ratio: 21 / 9; }
@media (max-width: 600px) { .preview--wide { aspect-ratio: 4 / 3; } }
.preview img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.preview::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(5 12 15 / 0) 40%, rgb(5 12 15 / 0.85) 100%);
}
.preview__play {
  position: absolute; z-index: 1; left: 16px; bottom: 16px; right: 16px;
  display: flex; align-items: center; gap: 12px;
  background: none; border: 0; color: inherit; cursor: pointer; text-align: left; padding: 0;
  font: 500 0.9rem/1.3 var(--font-body);
}
.preview__icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.preview__icon svg { width: 16px; height: 16px; margin-left: 3px; fill: #ffffff; }
.preview__play:hover .preview__icon { background: var(--room-accent); transform: scale(1.04); }
.preview__label { display: grid; gap: 2px; min-width: 0; }
.preview__label small { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--room-muted); }
.preview__note {
  position: absolute; z-index: 2; inset: auto 12px 12px 12px;
  background: rgb(5 12 15 / 0.92); border: 1px solid var(--room-rule); border-radius: var(--radius);
  padding: 14px 16px; font-size: 0.88rem; line-height: 1.5; color: var(--room-fg);
  max-height: calc(100% - 24px); overflow: auto;
}

.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reel { display: grid; gap: 10px; min-width: 0; align-content: start; }
.reel__title { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.3; }
.reel__title a { text-decoration: none; }
@media (max-width: 760px) { .reels { grid-template-columns: repeat(3, minmax(160px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .reel { scroll-snap-align: start; } }

.reels-band { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.reels-band__copy { display: grid; gap: 14px; }
.reels-band__copy h2 { font-size: var(--step-3); }
.reels-band__copy p { color: var(--muted); }
@media (max-width: 960px) { .reels-band { grid-template-columns: 1fr; } }

/* ---------- Beats --------------------------------------------------------- */

.beats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--rule-strong); }
.beat { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 22px 22px 24px 0; min-width: 0; }
.beat + .beat { padding-left: 22px; border-left: 1px solid var(--rule); }
.beat__count { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.beat h3 { font-size: 1.45rem; }
.beat p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) {
  .beats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beat:nth-child(3) { padding-left: 0; border-left: 0; }
  .beat:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .beats { grid-template-columns: 1fr; }
  .beat + .beat { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* ---------- FDA tracker chart -------------------------------------------- */

.tracker { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.tracker__copy { display: grid; gap: 16px; }
.tracker__copy h2 { font-size: var(--step-3); }
.tracker__copy p { color: var(--muted); }
.tracker__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (max-width: 960px) { .tracker { grid-template-columns: 1fr; } }

.chart { display: grid; gap: 18px; min-width: 0; }
.chart__title { font-size: 0.9rem; font-weight: 500; }
.chart__title span { color: var(--muted); font-weight: 400; }
.bars {
  --h: 240px;
  position: relative; height: var(--h);
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 2vw, 20px);
  align-items: end;
  border-bottom: 1px solid var(--ink);
  margin-left: 38px;
}
.bars__grid { position: absolute; inset: 0; pointer-events: none; }
.bars__line { position: absolute; left: -38px; right: 0; border-top: 1px dashed var(--rule); }
.bars__line span { position: absolute; left: 0; top: -0.7em; font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); background: var(--paper); padding-right: 6px; }
.section--tint .bars__line span { background: var(--surface); }
.bar { position: relative; height: calc(var(--v) / 1500 * 100%); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-bottom: 0; border-radius: 3px 3px 0 0; }
.bar--now { background: var(--accent); border-color: var(--accent); }
.bar__value { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -6px); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; white-space: nowrap; }
.bars__axis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 2vw, 20px); margin-left: 38px; }
.bars__axis span { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); text-align: center; line-height: 1.35; }

.share { display: grid; gap: 8px; }
.share__bar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; }
.share__seg { height: 100%; }
.share__seg--a { background: var(--accent); }
.share__seg--b { background: color-mix(in srgb, var(--accent) 45%, var(--paper)); }
.share__seg--c { background: color-mix(in srgb, var(--muted) 55%, var(--surface)); }
.share__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.82rem; color: var(--muted); list-style: none; margin: 0; padding: 0; }
.share__legend li { display: inline-flex; align-items: center; gap: 7px; }
.share__legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.share__legend b { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
.chart__source { font-size: 0.78rem; color: var(--faint); }

/* ---------- Tiers --------------------------------------------------------- */

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tier {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px;
  padding: 26px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); min-width: 0;
}
.tier--feature { border-color: var(--accent); box-shadow: var(--shadow); }
.tier__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tier h3 { font-size: 1.6rem; }
.tier__status { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.3; color: var(--muted); }
.tier--feature .tier__status { color: var(--accent); }
.tier__pitch { color: var(--muted); font-size: 0.97rem; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; align-content: start; font-size: 0.95rem; }
.tier li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; }
.tier li::before { content: ""; width: 7px; height: 7px; margin-top: 0.62em; border-radius: 50%; border: 1.5px solid var(--accent); }
.tier .btn { width: 100%; }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- Quotes -------------------------------------------------------- */

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.quote { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 18px; padding-top: 20px; border-top: 1px solid var(--rule); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; }
.quote blockquote::before { content: "“"; color: var(--accent); }
.quote blockquote::after { content: "”"; color: var(--accent); }
.quote figcaption { font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 500; }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Split / band -------------------------------------------------- */

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split__copy { display: grid; gap: 16px; }
.split__copy h2 { font-size: var(--step-3); }
.split__copy p { color: var(--muted); }
.split__copy--narrow { max-width: 44rem; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.split--center { align-items: center; }

.band {
  background: var(--surface); border: 1px solid var(--rule); color: var(--room-fg); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 28px; align-items: center;
}
.band h2 { font-size: var(--step-3); }
.band p { color: var(--room-muted); margin-top: 12px; max-width: 36rem; }
.band .input { background: var(--paper); border-color: var(--rule-strong); color: var(--room-fg); }
.band .input::placeholder { color: var(--room-muted); }
.band .signup__note { color: var(--room-muted); }
.band .btn--primary { background: var(--room-accent); color: #04201b; }
.band .form-status { color: var(--room-accent); border-color: var(--room-accent); }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* ---------- Cards (reports, topics) -------------------------------------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.cover {
  display: grid; grid-template-rows: auto 1fr auto; gap: 18px; min-width: 0;
  padding: 24px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--rule);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.cover:hover { border-color: var(--accent); transform: translateY(-2px); }
.cover__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cover__stat { font-family: var(--font-display); font-size: clamp(2.8rem, 2rem + 2.6vw, 4rem); line-height: 0.95; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: lining-nums; }
.cover__stat small { display: block; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0; color: var(--muted); margin-top: 10px; line-height: 1.4; }
.cover h3 { font-size: 1.2rem; line-height: 1.25; }
.cover--dark { background: var(--surface); border-color: var(--accent); color: var(--room-fg); }
.cover--dark .cover__stat { color: var(--room-accent); }
.cover--dark .cover__stat small { color: var(--room-muted); }

.card { display: grid; gap: 10px; padding: 22px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.card > .tag { justify-self: start; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Plain lists --------------------------------------------------- */

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { display: grid; grid-template-columns: 8rem minmax(0, 1fr) auto; gap: 6px 20px; padding-block: 14px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rows__when { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rows__what { display: grid; gap: 2px; min-width: 0; }
.rows__what strong { font-weight: 500; }
.rows__what span { color: var(--muted); font-size: 0.92rem; }
.rows__go { font-size: 0.85rem; color: var(--accent); text-decoration: none; white-space: nowrap; }
@media (max-width: 620px) { .rows li { grid-template-columns: minmax(0, 1fr); } .rows__go { justify-self: start; } }

/* ---------- Archive ------------------------------------------------------- */

.filters {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule); padding-block: 14px;
}
.filters__row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.filters .input { flex: 1 1 16rem; max-width: 26rem; }
.filters .select { width: auto; flex: 0 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: 500 0.85rem/1 var(--font-body); color: var(--muted); background: transparent;
  border: 1px solid var(--rule-strong); border-radius: 999px; padding: 9px 13px; cursor: pointer; white-space: nowrap;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip:is([aria-pressed="true"], [aria-current="true"]) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
a.chip { display: inline-block; text-decoration: none; }
/* The category buttons wear their colors (Margaretta, October 9, 2026) */
.chip[data-beat="popular"] { --chip: var(--cat-popular); --chip-soft: var(--cat-popular-soft); }
.chip[data-beat="milestones"] { --chip: var(--cat-milestones); --chip-soft: var(--cat-milestones-soft); }
.chip[data-beat="llms"] { --chip: var(--cat-llms); --chip-soft: var(--cat-llms-soft); }
.chip[data-beat="ai-industry"] { --chip: var(--cat-industry); --chip-soft: var(--cat-industry-soft); }
.chip[data-beat="seminars"] { --chip: var(--cat-seminars); --chip-soft: var(--cat-seminars-soft); }
.chip[data-beat="fda"] { --chip: var(--cat-fda); --chip-soft: var(--cat-fda-soft); }
.chip[data-beat="universities"] { --chip: var(--cat-universities); --chip-soft: var(--cat-universities-soft); }
.chip[data-beat="lectures"] { --chip: var(--cat-lectures); --chip-soft: var(--cat-lectures-soft); }
/* The other collections' buttons wear their tag colors (Margaretta, October 23, 2026) */
.chip[data-beat="longevity"] { --chip: var(--cat-longevity); --chip-soft: var(--cat-longevity-soft); }
.chip[data-beat="covid"] { --chip: var(--cat-covid); --chip-soft: var(--cat-covid-soft); }
.chip[data-beat="essays"] { --chip: var(--cat-essays); --chip-soft: var(--cat-essays-soft); }
.chip[data-beat="fundraising"] { --chip: var(--cat-fundraising); --chip-soft: var(--cat-fundraising-soft); }
.chip[data-beat="hospitals"] { --chip: var(--cat-hospitals); --chip-soft: var(--cat-hospitals-soft); }
.chip[data-beat="ophthalmology"] { --chip: var(--cat-ophthalmology); --chip-soft: var(--cat-ophthalmology-soft); }
.chip[data-beat="deeptech"] { --chip: var(--cat-deeptech); --chip-soft: var(--cat-deeptech-soft); }
/* Margaretta chose the buttons' colors in order from the first (November 5, 2026): magenta, light blue,
   white, orange, light green and pink on the first line, then light yellow, orange, green and purple; the
   article tags keep their colors */
.chip[data-beat="milestones"], .chip[data-beat="cardiology"] { --chip: #ffc2e2; --chip-soft: #3f1a30; }   /* light pink, at her request (AI Milestones was magenta first) */
.chip[data-beat="fundraising"] { --chip: #fef08a; --chip-soft: #36310c; }   /* light yellow, after white, at her request */
.chip[data-beat="hospitals"] { --chip: var(--cat-fda); --chip-soft: var(--cat-fda-soft); }
.chip[data-beat="universities"] { --chip: var(--cat-longevity); --chip-soft: var(--cat-longevity-soft); }
.chip[data-beat="fda"] { --chip: #f9a8d4; --chip-soft: #3d1a2c; }
.chip[data-beat="radiology"] { --chip: #fef08a; --chip-soft: #36310c; }
.chip[data-beat="pathology"] { --chip: var(--cat-fda); --chip-soft: var(--cat-fda-soft); }
.chip[data-beat="genetics"] { --chip: #4ade80; --chip-soft: #0f2e1c; }
.chip[data-beat="cancer"] { --chip: var(--cat-seminars); --chip-soft: var(--cat-seminars-soft); }
/* The third line, also hers the same day: Popular green, Commentary blue, Healthspan pink, and PAC-AID with
   each letter a color of the rainbow, on a plain dark button that lights with a white edge */
.chip[data-beat="popular"] { --chip: #4ade80; --chip-soft: #0f2e1c; }
.chip[data-beat="essays"] { --chip: #60a5fa; --chip-soft: #10233f; }
.chip[data-beat="longevity"] { --chip: #f9a8d4; --chip-soft: #3d1a2c; }
.chip[data-beat="seminars"] { --chip: var(--ink); --chip-soft: #161d2b; }
.chip__rainbow span:nth-child(1) { color: #ff6b6b; }
.chip__rainbow span:nth-child(2) { color: #ffa94d; }
.chip__rainbow span:nth-child(3) { color: #ffe066; }
.chip__rainbow span:nth-child(4) { color: #69db7c; }
.chip__rainbow span:nth-child(5) { color: #4dabf7; }
.chip__rainbow span:nth-child(6) { color: #9775fa; }
.chip__rainbow span:nth-child(7) { color: #e599f7; }
/* Then LLMs purple and COVID-19 orange, and on the last line AI Lectures orange, Publications yellow,
   Mentions in the Press white, AI Roundups green and Social Networks blue (Margaretta, November 5, 2026) */
.chip[data-beat="llms"] { --chip: var(--cat-seminars); --chip-soft: var(--cat-seminars-soft); }
.chip[data-beat="covid"] { --chip: var(--cat-fda); --chip-soft: var(--cat-fda-soft); }
.chip[data-beat="lectures"] { --chip: var(--cat-fda); --chip-soft: var(--cat-fda-soft); }
/* Ophthalmology in a lighter, softer yellow, and Publications, yellow at first, in light violet (Margaretta,
   November 5, 2026) */
.chip[data-beat="ophthalmology"] { --chip: #f3e8b0; --chip-soft: #2a2815; }
.chip[data-beat="publications"] { --chip: #ddd3ff; --chip-soft: #261f3f; }
.chip[data-beat="press"] { --chip: #fef08a; --chip-soft: #36310c; }   /* light yellow, after white, at her request */
.chip[data-beat="roundups"] { --chip: #a3f0bb; --chip-soft: #14301f; }   /* a lighter green, at her request */
.chip[data-beat="social"] { --chip: #60a5fa; --chip-soft: #10233f; }
.chip[data-beat="blockchain"] { --chip: #ffc8a2; --chip-soft: #3b2417; }   /* peach, at her request */
.chip[data-beat] {
  color: var(--chip); background: var(--chip-soft); border-color: color-mix(in srgb, var(--chip) 45%, transparent);
}
.chip[data-beat]:hover { border-color: var(--chip); }
.chip[data-beat]:is([aria-pressed="true"], [aria-current="true"]) {
  background: var(--chip); color: var(--paper); border-color: var(--chip);
}
/* PAC-AID's rainbow letters stay on a dark button when it is lit, which shows by its white edge */
.chip[data-beat="seminars"]:is([aria-pressed="true"], [aria-current="true"]) { background: #2a3550; border-color: var(--ink); }
.results-count { font-size: 0.9rem; color: var(--muted); }

.year-group { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0 24px; padding-block: 28px; border-bottom: 1px solid var(--rule); }
.year-group__label { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--faint); position: sticky; top: 170px; align-self: start; padding-top: 14px; }
.archive-wrap .year-group__label { top: 280px; }
@media (max-width: 760px) {
  .year-group { grid-template-columns: 1fr; }
  .year-group__label { position: static; font-size: 1.8rem; padding-top: 0; }
}
.empty { padding: 48px 0; color: var(--muted); }

/* ---------- Article (prose) ----------------------------------------------- */

.article-head { padding-block: clamp(40px, 6vw, 72px) 28px; }
.article-head__inner { max-width: 50rem; display: grid; gap: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.article-head h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.9rem); line-height: 1.04; letter-spacing: -0.022em; }
.headline--accent { color: var(--accent); }
.standfirst { font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.45; color: var(--muted); font-style: italic; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9rem; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--rule); }
.byline strong { color: var(--ink); font-weight: 500; }
/* A byline under the lead picture, where the picture carries the headline (Margaretta, October 23, 2026) */
.lead-figure + .byline { max-width: 64rem; margin-top: 16px; padding-top: 0; border-top: 0; }

.article-media { max-width: 64rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 40px var(--section); }

.prose { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.65; max-width: 40rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.75rem; line-height: 1.2; margin-top: 1.9em; }
.prose a { color: var(--accent); }
.prose .pull {
  margin: 1.6em 0; padding: 0.1em 0 0.1em 1.1em; border-left: 3px solid var(--accent);
  font-size: 1.5rem; line-height: 1.38; font-style: italic;
}
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius); background: #ffffff; border: 1px solid var(--rule); }
.prose figcaption { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.prose .callout {
  font-family: var(--font-body); font-size: 1rem; line-height: 1.55;
  display: grid; gap: 12px; padding: 22px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.prose .callout h2 { font-size: 1.3rem; margin: 0; }
.prose .callout p { color: var(--muted); }
.prose .callout .signup { max-width: none; }

.authors { display: grid; gap: 18px; padding-top: 28px; margin-top: 2.2em; border-top: 1px solid var(--rule); font-family: var(--font-body); font-size: 0.95rem; }
.authors h2 { font-family: var(--font-display); font-size: 1.3rem; }
.author { display: grid; gap: 4px; }
.author strong { font-weight: 600; }
.author p { color: var(--muted); }

/* ---------- Two-column about ------------------------------------------------ */

.profile { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.profile__photo { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; position: sticky; top: 96px; }
.profile__photo img { mix-blend-mode: lighten; }
.profile__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
/* The About picture is the home page headshot on teal, round as on the home page, since it was cut for a round
   crop (Margaretta, December 1, 2026) */
.profile__photo--teal { background: none; border: 0; border-radius: 50%; }
.profile__photo--teal img { mix-blend-mode: normal; display: block; border-radius: 50%; }
.profile__photo figcaption { padding: 14px 16px; font-size: 0.85rem; color: var(--room-muted); }
.profile__body { display: grid; gap: 18px; max-width: 42rem; }
.profile__body p { font-size: 1.08rem; }
.profile__body h2 { font-size: var(--step-2); margin-top: 18px; }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } .profile__photo { position: static; max-width: 360px; } }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.facts > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; min-width: 0; }
.facts > div:only-child { grid-column: 1 / -1; }
.facts dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 620px) { .facts { grid-template-columns: 1fr; } }
/* On About the U1 row follows Project work in directly, since its heading went (Margaretta, December 1, 2026),
   so the two read as one list with one rule between them */
.facts + .rows { border-top: 0; margin-top: -18px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--rule); padding-block: 18px; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; max-width: 42rem; }

.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; border-bottom: 2px solid var(--rule-strong); }
.compare tbody th { font-weight: 500; }
.compare td { color: var(--muted); }
.compare .yes { color: var(--accent); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* ---------- Footer -------------------------------------------------------- */

.site-footer { background: var(--room); color: var(--room-fg); padding-block: clamp(48px, 7vw, 80px) 28px; margin-top: -1px; border-top: 1px solid var(--rule); }
.site-footer a { color: var(--room-fg); }
/* Just the Read and About links: the newsletter blurb on the left was removed (Margaretta, October 9, 2026) */
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 14rem)); gap: 32px; }
.footer-grid h3 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--room-muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.footer-grid ul a { text-decoration: none; color: var(--room-fg); }
.footer-grid ul a:hover { color: var(--room-accent); }
.site-footer .input { background: var(--room-2); border-color: var(--rule-strong); color: var(--room-fg); }
.site-footer .input::placeholder { color: var(--room-muted); }
.site-footer .signup { margin-top: 18px; }
.site-footer .signup__note { color: var(--room-muted); }
.site-footer .btn--primary { background: var(--room-accent); color: #04201b; }
.site-footer .form-status { color: var(--room-accent); border-color: var(--room-accent); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--room-rule); font-size: 0.82rem; color: var(--room-muted); }
/* The Email button opens a new message to Margaretta; the address is never shown on the page (Margaretta, October 9, 2026) */
.email-btn { font: 500 0.9rem var(--font-body); color: var(--room-fg); background: transparent; border: 1px solid var(--rule-strong); border-radius: 4px; padding: 6px 16px; cursor: pointer; }
.email-btn:hover, .email-btn:focus-visible { color: var(--room-accent); border-color: var(--room-accent); }
@media (max-width: 400px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Motion -------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__copy > *:nth-child(2) { animation-delay: 0.06s; }
  .hero__copy > *:nth-child(3) { animation-delay: 0.12s; }
  .hero__copy > *:nth-child(4) { animation-delay: 0.18s; }
  .bar { animation: grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; transform-origin: bottom; }
  .bar:nth-child(2) { animation-delay: 0.05s; } .bar:nth-child(3) { animation-delay: 0.1s; }
  .bar:nth-child(4) { animation-delay: 0.15s; } .bar:nth-child(5) { animation-delay: 0.2s; }
  .bar:nth-child(6) { animation-delay: 0.25s; } .bar:nth-child(7) { animation-delay: 0.3s; }
}
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
@keyframes grow { from { transform: scaleY(0.2); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Essay feature -------------------------------------------------- */

.essay-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.essay-feature__media { display: block; border-radius: var(--radius); overflow: hidden; background: var(--room); }
.essay-feature__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: grayscale(0.85) contrast(1.05); transition: filter 0.4s ease; }
.essay-feature__media:hover img { filter: none; }
.essay-feature__copy { display: grid; gap: 14px; }
.essay-feature__meta { font-size: 0.78rem; color: var(--muted); }
.essay-feature h3 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); line-height: 1.05; letter-spacing: -0.02em; }
.essay-feature h3 a { text-decoration: none; }
.essay-feature h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.essay-feature__dek { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--muted); }
.essay-feature__by { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 860px) { .essay-feature { grid-template-columns: 1fr; } }

/* ---------- Store & products --------------------------------------------- */

.product {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0;
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.product__cover {
  background: var(--room); color: var(--room-fg); padding: clamp(24px, 4vw, 40px);
  display: grid; align-content: space-between; gap: 28px; min-height: 320px;
}
.product__cover .eyebrow { color: var(--room-accent); margin-bottom: 12px; }
.product__cover h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.05; }
.product__cover .cover__stat { color: var(--room-accent); }
.product__cover .cover__stat small { color: var(--room-muted); }
.product__body { padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; align-content: start; }
.product__body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.product__body li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; }
.product__body li::before { content: ""; width: 7px; height: 7px; margin-top: 0.62em; border-radius: 50%; border: 1.5px solid var(--accent); }
.buy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.buy__opt { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--rule); border-radius: var(--radius); align-content: start; }
.buy__opt strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; line-height: 1; }
.buy__opt span { font-size: 0.88rem; color: var(--muted); }
.buy__opt .btn { margin-top: 6px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .product__cover { min-height: 0; } }
@media (max-width: 480px) { .buy { grid-template-columns: 1fr; } }

.subhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin: clamp(40px, 6vw, 64px) 0 20px; }
/* AI Industry opens straight onto its first list (no intro or cards since October 29, 2026): keep the usual gap under the heading */
.coll-section .section-head + .subhead { margin-top: 0; }
.subhead h2 { font-size: var(--step-2); }
.subhead p { color: var(--muted); font-size: 0.95rem; max-width: 36rem; }

/* ---------- Placeholders (data still to come) ----------------------------- */

.placeholder {
  display: grid; gap: 8px; padding: 20px; min-width: 0;
  border: 1px dashed var(--faint); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--rule) 45%, transparent) 10px 11px);
}
.placeholder h3 { font-size: 1.2rem; }
.placeholder p { color: var(--muted); font-size: 0.92rem; }
.placeholder .tag { justify-self: start; background: transparent; border: 1px dashed var(--faint); color: var(--muted); }

.notice { display: grid; gap: 6px; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.95rem; }
.notice strong { font-weight: 600; }

.policy { max-width: 46rem; display: grid; gap: 28px; }
.policy ol { margin: 0; padding-left: 1.3em; display: grid; gap: 14px; }
.policy li { padding-left: 6px; }
.policy li strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; margin-bottom: 2px; }
.policy li p { color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid var(--rule-strong); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.archive-wrap { padding-bottom: var(--section); }
.essay-feature__title { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); line-height: 1.05; letter-spacing: -0.02em; }
.essay-feature__title a { text-decoration: none; }
.essay-feature__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.report-list .year-group { padding-block: 18px; }
.report-list .rows { border-top: 0; }
.report-list .rows li:last-child { border-bottom: 0; }
.report-list .year-group__label { font-size: 1.6rem; top: 96px; }
.report-list--quiet .rows__what strong { font-weight: 400; }
.band .select { background: var(--paper); border-color: var(--rule-strong); color: var(--room-fg); }
.band form.signup { gap: 10px; }
.formats { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; color: var(--muted); }
.placeholder-inline { border: 1px dashed var(--faint); border-radius: 3px; padding: 1px 6px; justify-self: start; font-size: 0.85rem; }
.hero__grid--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding-bottom: clamp(40px, 6vw, 72px); }
.hero__grid--even .hero__copy { padding-bottom: 0; }
.hero form.signup { gap: 10px; }
.hero .select { background: var(--room-2); border-color: var(--rule-strong); color: var(--room-fg); }
@media (max-width: 860px) { .hero__grid--even { grid-template-columns: 1fr; } }

.sheet { border: 1px solid var(--room-rule); border-radius: var(--radius); background: var(--room-2); overflow: hidden; box-shadow: 0 24px 60px rgb(0 0 0 / 0.35); transform: rotate(-1.5deg); min-width: 0; }
.sheet__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--room-rule); }
.sheet__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--room-rule); }
.sheet__bar b { margin-left: 8px; font: 500 0.75rem var(--font-mono); color: var(--room-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet__grid { display: grid; grid-template-columns: 1.6fr 1.2fr 0.9fr 0.8fr 1fr; }
.sheet__grid > * { border-right: 1px solid var(--room-rule); border-bottom: 1px solid var(--room-rule); padding: 9px 10px; min-width: 0; }
.sheet__h { font: 500 0.68rem var(--font-mono); letter-spacing: 0.04em; color: var(--room-accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet__grid i { height: 32px; position: relative; }
.sheet__grid i::after { content: ""; position: absolute; left: 10px; top: 13px; height: 6px; width: 60%; border-radius: 3px; background: var(--room-rule); }
.sheet__grid i:nth-child(5n+2)::after { width: 75%; }
.sheet__grid i:nth-child(5n+3)::after { width: 45%; }
.sheet__grid i:nth-child(3n)::after { width: 55%; }

/* ---------- Article extras ------------------------------------------------ */
.prose .pull cite { display: block; margin-top: 10px; font-family: var(--font-body); font-style: normal; font-size: 0.85rem; color: var(--muted); }
.prose .refs { font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
/* Each label stays on one line: the label column is as wide as the longest label in the list (subgrid keeps the rows lined up). */
.keypoints { margin: 1.6em 0; display: grid; grid-template-columns: fit-content(16rem) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--rule); font-family: var(--font-body); font-size: 1rem; }
.keypoints > div { grid-column: 1 / -1; display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); grid-template-columns: subgrid; align-items: baseline; gap: 4px 20px; padding-block: 12px; border-bottom: 1px solid var(--rule); }
.keypoints dt { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.keypoints dd { margin: 0; }
@media (max-width: 560px) { .keypoints { grid-template-columns: minmax(0, 1fr); } .keypoints > div { grid-template-columns: minmax(0, 1fr); } }
.statline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 1.6em 0; font-family: var(--font-body); }
.statline > div { display: grid; gap: 6px; padding-top: 14px; border-top: 2px solid var(--rule-strong); }
.statline strong { font-family: var(--font-display); font-weight: 500; font-size: 2.4rem; line-height: 1; color: var(--accent); }
.statline span { font-size: 0.9rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 620px) { .statline { grid-template-columns: 1fr; } }
.authors--co { margin-top: 0; padding-top: 0; border-top: 0; }
.article-media .preview__play { max-width: 30rem; }

/* ---------- Dark "reading room" section ---------------------------------- */

.section--room { background: var(--surface); border-block: 1px solid var(--rule); color: var(--room-fg); }
.section--room .era__lead { background: var(--paper); }
.section--room .eyebrow { color: var(--room-accent); }
.section--room .section-head p, .section--room .era__copy p { color: var(--room-muted); }
.section--room .btn--primary { background: var(--room-accent); color: #04201b; }
.section--room .btn--primary:hover { background: #7ad6c5; }
.section--room .btn--ghost { color: var(--room-fg); border-color: var(--rule-strong); }
.section--room .btn--ghost:hover { border-color: var(--room-fg); }
.section--room .link-arrow { color: var(--room-accent); }

/* ---------- COVID-19 era feature ---------------------------------------- */

.era { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.era__copy { display: grid; gap: 16px; align-content: start; }
.era__copy h2 { font-size: var(--step-3); text-wrap: balance; }
.era__copy .tracker__actions { margin-top: 6px; }
.era__side { display: grid; gap: 18px; min-width: 0; }
.era__lead {
  display: grid; gap: 10px; padding: 24px; text-decoration: none; color: inherit;
  border: 1px solid var(--room-rule); border-radius: var(--radius); background: var(--room-2);
  transition: border-color 0.2s ease;
}
.era__lead:hover { border-color: var(--room-accent); }
.era__lead .mono { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--room-muted); }
.era__stat { font-family: var(--font-display); font-size: clamp(3rem, 2.2rem + 3vw, 4.6rem); line-height: 0.9; letter-spacing: -0.03em; color: var(--room-accent); }
.era__lead h3 { font-size: 1.45rem; line-height: 1.2; text-wrap: balance; }
.era__lead p { color: var(--room-muted); font-size: 0.92rem; }
.era__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--room-rule); }
.era__list li { border-bottom: 1px solid var(--room-rule); }
.era__list a { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 16px; padding: 12px 0; color: var(--room-fg); text-decoration: none; }
.era__list a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.era__list .mono { font-size: 0.74rem; color: var(--room-muted); padding-top: 3px; }
.era__list strong { font-weight: 500; font-size: 0.97rem; line-height: 1.35; }
@media (max-width: 860px) { .era { grid-template-columns: 1fr; } }

/* ---------- Visuals: chart cards, gallery, article charts ---------------- */

.viz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
@media (max-width: 960px) { .viz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .viz-grid { grid-template-columns: minmax(0, 1fr); } }
.viz { margin: 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.viz__zoom {
  position: relative; display: block; width: 100%; max-width: 100%; padding: 0; margin: 0; cursor: zoom-in;
  aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--rule); border-radius: var(--radius); background: #ffffff;
}
.viz__zoom img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.viz__zoom:hover img { transform: scale(1.025); }
.viz__zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.viz figcaption { display: grid; gap: 6px; }
.viz__title { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.3; text-wrap: balance; }
.viz__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.viz__meta .mono { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.viz__links { display: flex; gap: 14px; }
.viz__links a { color: var(--accent); font-weight: 500; text-decoration: none; }
.viz__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Visuals: each chart in a card like the maps and ranking cards under the charts (Margaretta, October 29, 2026) */
.viz-grid--gallery { gap: 16px; }
/* The card itself has no hover lift or teal border, since only the chart (it enlarges) and the Article link respond */
.viz--card {
  grid-template-rows: auto 1fr; gap: 18px; padding: 24px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
}
.viz--card .viz__zoom { border-radius: 4px; background: var(--paper); }
.viz--card figcaption { grid-template-rows: auto auto 1fr; gap: 12px; }
.viz--card .viz__title { font-size: 1.2rem; line-height: 1.25; font-weight: 500; letter-spacing: -0.012em; }
.viz--card .viz__links { align-self: end; font-size: 0.85rem; }

.chart { margin: 2em 0; display: grid; gap: 10px; }
.chart .viz__zoom { aspect-ratio: auto; }
.chart .viz__zoom img { height: auto; }
.chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; font-size: 0.88rem; color: var(--muted); }
.chart__actions { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.chart__actions a, .chart__actions button {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 0.85rem var(--font-body); color: var(--accent); text-decoration: none;
}
.chart__actions a:hover, .chart__actions button:hover { text-decoration: underline; text-underline-offset: 3px; }
.chart--lead { margin: 0 0 8px; }
/* Copyright mark on each chart, from data-mark (the chart's credit in content/visuals.json). */
.viz__zoom[data-mark]::after, .lightbox__frame[data-mark]::after {
  content: attr(data-mark); position: absolute; right: 6px; bottom: 6px; z-index: 1; pointer-events: none;
  padding: 2px 6px; border-radius: 3px; background: rgb(255 255 255 / 0.72);
  font: 500 10px/1.3 var(--font-body); letter-spacing: 0.02em; color: rgb(0 0 0 / 0.55); white-space: nowrap;
}
@media (min-width: 561px) { .lightbox__frame[data-mark]::after { right: 10px; bottom: 10px; font-size: 12px; } }
.prose .chart img { border: 0; border-radius: 0; }

/* ---------- Lightbox ------------------------------------------------------ */

.lightbox {
  width: min(1400px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px);
  padding: 0; border: 1px solid var(--room-rule); border-radius: var(--radius);
  background: var(--room); color: var(--room-fg);
}
.lightbox::backdrop { background: rgb(3 8 10 / 0.86); }
.lightbox__inner { display: grid; gap: 14px; padding: 14px; }
.lightbox__frame { position: relative; justify-self: center; max-width: 100%; }
.lightbox__img { display: block; width: auto; max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; background: #ffffff; border-radius: 4px; }
.lightbox__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; padding: 0 4px 4px; }
.lightbox__text { display: grid; gap: 4px; max-width: 52rem; min-width: 0; }
.lightbox__title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; }
.lightbox__caption { color: var(--room-muted); font-size: 0.9rem; }
.lightbox__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lightbox .btn--primary { background: var(--room-accent); color: #04201b; }
.lightbox .btn--ghost { color: var(--room-fg); border-color: var(--rule-strong); }
.lightbox .btn--ghost:hover { border-color: var(--room-fg); }

/* ---------- Collected editions (shop) ------------------------------------ */

.editions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .editions { grid-template-columns: minmax(0, 1fr); } }
.edition {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 22px; padding: 22px;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); min-width: 0;
}
@media (max-width: 520px) { .edition { grid-template-columns: minmax(0, 1fr); } }
.book {
  position: relative; aspect-ratio: 3 / 4; max-width: 240px; width: 100%; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 16px 16px 14px 22px;
  background: var(--room); color: var(--room-fg); border-radius: 3px 6px 6px 3px;
  box-shadow: inset 6px 0 0 rgb(255 255 255 / 0.08), var(--shadow);
}
.book::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: rgb(0 0 0 / 0.35); }
.book__kicker { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--room-accent); }
.book__title { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.05; text-wrap: balance; }
.book__art { align-self: end; background: #ffffff; border-radius: 2px; overflow: hidden; aspect-ratio: 16 / 10; }
.book__art img { width: 100%; height: 100%; object-fit: cover; }
.book__foot { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--room-muted); }
.book--teal { background: #0b3b36; }
.book--ink { background: #1a2230; }
.book--plum { background: #33203a; }
.edition__body { display: grid; gap: 10px; align-content: start; min-width: 0; }
.edition__body h3 { font-size: 1.35rem; line-height: 1.2; }
.edition__body p { color: var(--muted); font-size: 0.95rem; }
.edition__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.edition__price strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }
.edition__body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.92rem; }
.edition__body li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; }
.edition__body li::before { content: ""; width: 6px; height: 6px; margin-top: 0.6em; border-radius: 50%; border: 1.5px solid var(--accent); }
.tag--proposed { background: transparent; color: var(--muted); border: 1px dashed var(--faint); }

/* ---------- Free visual edition mock (download page) --------------------- */

.vedition { position: relative; min-height: 380px; display: grid; place-items: center; }
.vedition__page {
  position: absolute; width: min(300px, 70%); aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden;
  background: #ffffff; border: 1px solid var(--rule); box-shadow: var(--shadow);
  display: grid; grid-template-rows: auto 1fr; gap: 8px; padding: 12px;
}
.vedition__page img { width: 100%; height: 100%; object-fit: contain; }
.vedition__page span { font: 500 0.6rem/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #52636b; }
.vedition__page--1 { transform: translate(-34%, 6%) rotate(-7deg); }
.vedition__page--2 { transform: translate(34%, 4%) rotate(6deg); }
.vedition__cover {
  position: relative; z-index: 1; width: min(300px, 72%); aspect-ratio: 3 / 4; border-radius: 4px;
  background: var(--room); color: var(--room-fg); box-shadow: 0 20px 50px rgb(3 8 10 / 0.35);
  display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 22px;
}
.vedition__cover .book__kicker { font-size: 0.66rem; }
.vedition__cover strong { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 500; line-height: 0.95; color: var(--room-accent); align-self: end; }
.vedition__cover h2 { font-size: 1.3rem; line-height: 1.15; }
.vedition__cover p { font-size: 0.78rem; color: var(--room-muted); }
@media (max-width: 560px) {
  .vedition { min-height: 340px; }
  .vedition__page { width: 56%; }
  .vedition__cover { width: 62%; padding: 18px; }
  .vedition__cover h2 { font-size: 1.1rem; }
  .vedition__page--1 { transform: translate(-30%, 6%) rotate(-7deg); }
  .vedition__page--2 { transform: translate(30%, 4%) rotate(6deg); }
}

.grid-2x2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .grid-2x2 { grid-template-columns: minmax(0, 1fr); } }

.card__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.card__price strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.card__note { font-size: 0.85rem; color: var(--muted); }
.notice--placeholder { background: transparent; border: 1px dashed var(--faint); border-radius: var(--radius); color: var(--muted); margin-bottom: 24px; }
.band a { color: var(--room-accent); }

.book__rule { align-self: end; height: 2px; width: 40%; background: var(--room-accent); }
.bundle {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 40px); margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--rule); color: var(--room-fg); border-radius: var(--radius);
}
.bundle__body { display: grid; gap: 12px; align-content: start; }
.bundle__body h2 { font-size: var(--step-3); }
.bundle__body p { color: var(--room-muted); }
.bundle__body .eyebrow { color: var(--room-accent); }
.bundle .edition__price strong { color: var(--room-fg); }
.bundle .tag--proposed { color: var(--room-muted); border-color: var(--room-muted); }
.bundle .btn--primary { background: var(--room-accent); color: #04201b; }
.bundle__stack { position: relative; height: 260px; }
.bundle__stack .book { position: absolute; width: 150px; top: 0; box-shadow: 0 16px 40px rgb(0 0 0 / 0.45); border: 1px solid rgb(255 255 255 / 0.08); }
.bundle__stack .book:nth-child(1) { left: 0; transform: rotate(-6deg); }
.bundle__stack .book:nth-child(2) { left: 31%; top: 10px; }
.bundle__stack .book:nth-child(3) { left: 62%; top: 4px; transform: rotate(6deg); }
.bundle__stack .book__title { font-size: 1.05rem; }
@media (max-width: 760px) {
  .bundle { grid-template-columns: minmax(0, 1fr); }
  .bundle__stack { height: 210px; }
  .bundle__stack .book { width: 116px; }
  .bundle__stack .book__title { font-size: .92rem; }
}

.coll { align-content: start; }
.coll h3 a { color: inherit; text-decoration: none; }
.coll h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.coll__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; font-size: 0.92rem; }
.coll__links a:not(.link-arrow) { color: var(--muted); }
.cover--dark .coll__links a:not(.link-arrow) { color: var(--room-muted); }
.cover--dark h3 a { color: var(--room-fg); }
.coll--bundle { border-style: dashed; }

/* ---------- Report page extras ------------------------------------------- */

.minibars { list-style: none; margin: 1.2em 0 1.6em; padding: 0; display: grid; gap: 6px; }
.minibars li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) 2.6rem; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.minibars i { display: block; height: 12px; width: calc(var(--v) / 331 * 100%); background: var(--accent); border-radius: 2px; }
.minibars li:last-child i { background: var(--accent-strong); }
.minibars b { font-weight: 500; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.article-note { font-size: 0.9rem; color: var(--muted); }
/* The copyright line at the end of every article (Margaretta, October 22, 2026) */
.article-copyright { font-size: 0.9rem; color: var(--muted); text-wrap: balance; }

/* Hero chart on the home page */
.chart--hero { margin: 0; align-self: center; min-width: 0; }
.chart--hero .viz__zoom { border-color: var(--room-rule); }
.chart--hero figcaption { color: var(--room-muted); font-size: 0.82rem; }
.chart--hero .chart__actions a, .chart--hero .chart__actions button { color: var(--room-accent); }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .paths { grid-template-columns: minmax(0, 1fr); } }
.path {
  display: grid; gap: 12px; align-content: start; padding: clamp(22px, 3vw, 32px); text-decoration: none; color: inherit;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface);
  transition: border-color 0.15s ease;
}
.path:hover { border-color: var(--accent); }
.path h2 { font-size: var(--step-3); }
.path p { color: var(--muted); max-width: 34rem; }
.path .btn { justify-self: start; margin-top: 6px; }
.path--dark { background: var(--room); border-color: var(--room); color: var(--room-fg); }
.path--dark .eyebrow { color: var(--room-accent); }
.path--dark p { color: var(--room-muted); }
.path--dark .btn--primary { background: var(--room-accent); color: #04201b; }
.path--dark:hover { border-color: var(--room-accent); }
.section-head__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Most popular, flagship and the explainer article ----------- */

.tag--popular { color: var(--cat-popular); background: var(--cat-popular-soft); }

.flagship {
  align-self: center; margin-bottom: clamp(40px, 6vw, 72px); display: grid; min-width: 0;
  border: 1px solid var(--room-rule); border-radius: var(--radius); background: var(--room-2);
  color: var(--room-fg); text-decoration: none; overflow: hidden; transition: border-color 0.2s ease;
}
.flagship:hover { border-color: var(--room-accent); }
.flagship__media img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; filter: grayscale(0.85) contrast(1.05); transition: filter 0.4s ease; }
.flagship:hover .flagship__media img { filter: none; }
.flagship__body { display: grid; gap: 12px; padding: 22px 24px 24px; }
.flagship__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
.flagship__quote { font-family: var(--font-display); font-style: italic; font-size: 1.08rem; line-height: 1.45; color: var(--room-muted); }
.flagship__by { font-size: 0.85rem; color: var(--room-muted); }
.flagship .link-arrow { color: var(--room-accent); }

.pops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pops--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pop {
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 24px; min-width: 0;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); transition: border-color 0.2s ease;
}
.pop:hover { border-color: var(--accent); }
.pop__stat { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); line-height: 0.95; letter-spacing: -0.03em; color: var(--accent); }
.pop__note { font-size: 0.9rem; line-height: 1.45; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.pop__title { font-size: 1.3rem; line-height: 1.2; text-wrap: balance; }
.pop__title a { color: inherit; text-decoration: none; }
.pop__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pop__dek { font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.pop__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 0.8rem; color: var(--muted); }
.pop__meta time { font-family: var(--font-mono); font-size: 0.74rem; }
.pop--more { align-content: center; justify-items: start; gap: 12px; text-decoration: none; color: inherit; border-style: dashed; grid-template-rows: none; }
.pop--more strong { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.15; }
.pop--more .link-arrow { color: var(--accent); }
.section--tint .pop { background: var(--paper); }
@media (max-width: 980px) { .pops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pops { grid-template-columns: minmax(0, 1fr); } }

.opener { max-width: 50rem; margin: 0 0 28px; padding: 26px 0 0; border-top: 1px solid var(--rule); }
.opener p { font-family: var(--font-display); font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.1rem); line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty; }
.opener cite { display: grid; gap: 2px; margin-top: 14px; font-style: normal; font-size: 0.9rem; color: var(--muted); }
.opener cite strong { color: var(--ink); font-weight: 600; }

.prose .glance {
  font-family: var(--font-body); font-size: 0.98rem; line-height: 1.5;
  display: grid; gap: 14px; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent);
}
.glance dl { display: grid; gap: 0; }
.glance dl > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 4px 16px; padding-block: 10px; border-top: 1px solid var(--rule); }
.glance dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.glance dd { margin: 0; }
.glance__stat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding-top: 14px; border-top: 1px solid var(--rule); }
.glance__stat strong { font-family: var(--font-display); font-weight: 500; font-size: 2.6rem; line-height: 1; color: var(--accent); }
.glance__stat span { color: var(--muted); }
@media (max-width: 520px) { .glance dl > div { grid-template-columns: 1fr; } }

.prose .study, .xpl .study { font-family: var(--font-body); display: grid; gap: 8px; padding: 16px 18px; border-left: 3px solid var(--rule-strong); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.study__title { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.35; }
.study__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.82rem; color: var(--muted); }
.fig-num { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }

.prose .researcher { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 22px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); font-family: var(--font-body); font-size: 0.98rem; line-height: 1.55; }
.researcher__initials { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--room); color: var(--room-accent); font-family: var(--font-display); font-size: 1.3rem; }
.prose .researcher h2 { font-size: 1.3rem; margin: 2px 0 8px; }
.researcher p:last-child { color: var(--muted); }

.xpl .refs-list a { color: var(--accent); }
.prose .refs-list, .xpl .refs-list { font-family: var(--font-body); font-size: 0.9rem; line-height: 1.6; color: var(--muted); padding-left: 1.2em; display: grid; gap: 10px; }
.more-popular .pops { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .more-popular .pops { grid-template-columns: minmax(0, 1fr); } }

/* ---------- COVID-19 series: most read, editions, posts, explainers ---- */

.shelf { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--rule); }
.shelf__item { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.shelf__item:hover strong { color: var(--accent); }
.shelf__rank { font-size: 0.8rem; color: var(--muted); }
.shelf__text { display: grid; gap: 3px; min-width: 0; }
.shelf__text strong { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; line-height: 1.25; }
.shelf__text small { font-size: 0.8rem; color: var(--muted); }
.shelf__views { display: grid; justify-items: end; line-height: 1.1; }
.shelf__views b { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: var(--accent); }
.shelf__views small { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); }
.section--room .shelf, .section--room .shelf__item { border-color: var(--room-rule); }
.section--room .shelf__text small, .section--room .shelf__rank, .section--room .shelf__views small { color: var(--room-muted); }
.section--room .shelf__views b, .section--room .shelf__item:hover strong { color: var(--room-accent); }
.era__shelf { display: grid; gap: 12px; min-width: 0; }
.era__shelf .card__note { color: var(--room-muted); }

.edcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.edcard { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 10px; padding: 22px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); min-width: 0; transition: border-color 0.2s ease; }
.edcard:hover { border-color: var(--accent); }
.edcard__kicker { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
.edcard__label { font-size: 1.6rem; line-height: 1.1; }
.edcard__label a { color: inherit; text-decoration: none; }
.edcard__label a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.edcard__title { font-size: 0.9rem; color: var(--muted); }
.edcard__top { margin: 0; padding: 12px 0 0 1.1em; border-top: 1px solid var(--rule); font-size: 0.9rem; line-height: 1.45; display: grid; gap: 6px; }
.edcard__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
@media (max-width: 980px) { .edcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .edcards { grid-template-columns: minmax(0, 1fr); } }

.explainers { gap: 16px; }
.explainer { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 24px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; transition: border-color 0.2s ease; }
.explainer:hover { border-color: var(--accent); }
.explainer strong { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; line-height: 1.2; }
.explainer > span:not(.tag) { color: var(--muted); }
.explainer__views b { font-family: var(--font-display); font-weight: 500; color: var(--accent); font-size: 1.15rem; }
.tag--explainer { color: #c3cbff; background: #1f2547; }
@media (max-width: 720px) { .explainers { grid-template-columns: minmax(0, 1fr); } }

.quote--wide { max-width: 52rem; margin-inline: auto; }
.quote--wide blockquote { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.35; }

.edpage { padding-bottom: var(--section); display: grid; gap: 28px; }
.edpage__note { font-size: 0.95rem; color: var(--muted); max-width: 44rem; }
.ednav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 14px 0; border-block: 1px solid var(--rule); }
.ednav a { color: inherit; text-decoration: none; display: grid; gap: 2px; font-family: var(--font-display); font-size: 1.1rem; }
.ednav a:hover { color: var(--accent); }
.ednav small { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ednav__next { text-align: right; }
.ednav a.ednav__all { font-family: var(--font-body); font-size: 0.85rem; color: var(--accent); }
.post-toc { columns: 2; column-gap: 40px; padding-left: 1.4em; font-size: 0.95rem; line-height: 1.45; }
.post-toc li { break-inside: avoid; padding: 3px 0; }
.post-toc a { color: inherit; text-decoration-color: var(--rule); }
.post-toc a:hover { color: var(--accent); }
.posts { display: grid; gap: 22px; }
.post { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 40px); padding: clamp(18px, 2.5vw, 28px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 90px; }
.post__figure { margin: 0; align-self: start; display: grid; gap: 8px; }
.post__figure img { width: 100%; height: auto; padding: 10px; background: #ffffff; border: 3px solid var(--accent); border-radius: 6px; box-shadow: 0 0 0 6px var(--accent-soft); }
.post__figure figcaption { font-size: 0.8rem; color: var(--muted); padding-top: 6px; }
.post__body { display: grid; gap: 12px; align-content: start; min-width: 0; }
.post__headline { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.15; text-wrap: balance; }
.post__lead { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.5; }
.post__points { margin: 0; padding-left: 1.6em; display: grid; gap: 7px; font-size: 0.97rem; line-height: 1.5; }
.post__points li::marker { font-family: var(--font-mono); font-size: 0.85em; color: var(--accent); }
.post__views { font-size: 0.78rem; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--rule); }
@media (max-width: 820px) { .post { grid-template-columns: minmax(0, 1fr); } .post-toc { columns: 1; } }
@media (max-width: 560px) { .ednav { grid-template-columns: 1fr 1fr; } .ednav__all { display: none !important; } }
.tag--pending { color: #f7b58f; background: #3d2214; }
.edition__rights { display: grid; gap: 6px; justify-items: start; font-size: 0.88rem; color: var(--muted); }
.prose .case { font-family: var(--font-body); font-size: 1.02rem; line-height: 1.6; display: grid; gap: 8px; padding: 20px 22px; border-radius: var(--radius); background: var(--accent-soft); border-left: 3px solid var(--accent); }
.prose .highlights { font-family: var(--font-body); font-size: 1rem; line-height: 1.55; list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.prose .highlights li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--rule); }
.prose .highlights li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* ---------- Living synthesis -------------------------------------------- */

.tag--living { color: #9be6c2; background: #123326; }
.living {
  display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 2.3fr); gap: clamp(18px, 3vw, 36px);
  padding: clamp(18px, 2.5vw, 26px); margin-bottom: 32px; border: 1px solid var(--rule); border-left: 4px solid #1f9d68;
  border-radius: var(--radius); background: var(--surface);
}
.living .eyebrow { margin-bottom: 8px; }
.living__date { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.1; }
.living__note, .living__proto { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.living__changes ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.93rem; line-height: 1.45; }
.living__changes li { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 10px; }
.living__changes time { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); padding-top: 2px; }
@media (max-width: 560px) { .living__changes li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
@media (max-width: 700px) { .living { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Home: latest story and flagship essay ------------------------ */

/* The site headline and its tagline, each on one line, pinned under the header while the page scrolls */
:root {
  --masthead-size: clamp(1.05rem, 0.3rem + 3.6vw, 2.6rem);
  --masthead-pad: clamp(10px, 1.6vw, 18px);
  --tagline-size: clamp(0.75rem, 0.45rem + 1.6vw, 1.2rem);
  --tagline-gap: clamp(2px, 0.4vw, 6px);
  --masthead-h: calc(1.15 * var(--masthead-size) + var(--tagline-gap) + 1.3 * var(--tagline-size) + 2 * var(--masthead-pad) + 1px);
}
.masthead {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 45;
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.masthead__title {
  font-size: var(--masthead-size); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em;
  white-space: nowrap; padding-top: var(--masthead-pad);
}
.masthead__since { color: var(--accent); }
.masthead__tagline {
  font-size: var(--tagline-size); line-height: 1.3; color: var(--muted);
  white-space: nowrap; margin: var(--tagline-gap) 0 0; padding-bottom: var(--masthead-pad);
}
/* Home page: Margaretta's headshot to the right of the headline (Margaretta, November 5, 2026; "10 million
   reads" sat with it the same day, around a gold ring, in a straight line and then on a gold ribbon, until
   she asked for it to be removed, and GLOBAL REACH above it was removed too). The
   masthead takes the medal's height, and --masthead-h follows it so every pinned offset below stays right.
   Margaretta asked for it bigger and lower the same day: --medal-top leaves more room above it than
   --medal-pad leaves below. Later that day she asked for it bigger again, with the teal circle behind her
   reaching past her head: the picture is now a full teal disc, 82% of the medal's width (it was 74% inside
   the gold ring), and the medal grew by about a quarter. With the ribbon gone the picture fills the medal,
   which is a tenth smaller, so the headshot keeps its size. */
:root:has(.masthead--medal) {
  --medal-size: clamp(94px, 18px + 13.5vw, 216px);
  --medal-top: clamp(6px, 1.8vw, 24px);
  --medal-pad: clamp(4px, 0.5vw, 7px);
  --masthead-h: calc(var(--medal-size) + var(--medal-top) + var(--medal-pad) + 1px);
}
/* Phones: the medal grows with the width, from about 82px at 320px wide (so the headline keeps its gap
   there) to 104px from about 395px up, meeting the size above at 640px */
@media (max-width: 640px) {
  :root:has(.masthead--medal) { --medal-size: clamp(81px, 30.6vw - 16.2px, 104px); }
}
/* Short screens, such as a phone turned sideways, keep the earlier, smaller medal so the pinned masthead
   leaves room for the page under it */
@media (max-height: 520px) {
  :root:has(.masthead--medal) { --medal-size: clamp(86px, 27px + 9vw, 144px); --medal-top: var(--medal-pad); }
}
.masthead--medal .masthead__row {
  position: relative; display: flex; align-items: center;
  height: calc(var(--masthead-h) - 1px);
}
/* No line under the home masthead (Margaretta, November 5, 2026): the borders stay 1px but take the
   background's color, so --masthead-h and every pinned offset stay as they are */
.masthead--medal { border-bottom-color: transparent; }
:root:has(.masthead--medal) .home-archive { border-top-color: transparent; }
.masthead--medal .masthead__text { padding-right: calc(var(--medal-size) + 12px); }
.masthead--medal .masthead__text { min-width: 0; }
/* The medal sits where Subscribe was in the menu bar (Margaretta, November 5, 2026): assets/js/site.js sets
   its left edge; without the script it sits at the right end */
.masthead--medal .masthead__title { padding-top: 0; }
.masthead--medal .masthead__tagline { padding-bottom: 0; }
.medal {
  position: absolute; top: var(--medal-top); right: var(--gutter, 16px); left: var(--medal-left, auto);
  width: var(--medal-size); height: var(--medal-size);
}
.medal__photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
/* At the top of the page the headshot is a little bigger and centered from top to bottom in the dark field
   between the menu bar's line and the line under the Collections heading (Margaretta, November 5, 2026);
   assets/js/site.js measures that field. Once the page scrolls it eases back into the pinned masthead, so
   it never covers what scrolls under it */
@media (min-width: 641px) and (min-height: 521px) {
  .medal { transition: transform 0.25s ease; transform-origin: 50% 50%; }
  .masthead--medal.is-top .medal { transform: translateY(var(--medal-rest-y, 0px)) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) { .medal { transition: none; } }
/* Phones: the tagline wraps beside the medal, keeping Since 2014 together */
@media (max-width: 640px) {
  .masthead--medal .masthead__tagline { white-space: normal; }
  .masthead--medal .masthead__since { white-space: nowrap; }
}
/* Global Reach banner (home page): a thin gold strip between the header and the masthead. It is not
   pinned, so it scrolls away under the header and never changes --masthead-h. */
.reach {
  --reach-gold: #e6c06b;
  border-bottom: 1px solid var(--rule); padding-block: 9px;
  background: linear-gradient(90deg, transparent, rgb(230 192 107 / 0.1) 30%, rgb(230 192 107 / 0.1) 70%, transparent);
}
.reach__inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px;
  margin: 0; color: var(--reach-gold); line-height: 1.2;
}
.reach__inner::before, .reach__inner::after { content: ""; width: 28px; height: 1px; background: rgb(230 192 107 / 0.6); }
.reach__label { display: inline-flex; align-items: center; gap: 14px; font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: #cfae66; white-space: nowrap; }
.reach__label::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--reach-gold); }
.reach__stat { font: 600 1.2rem/1.2 var(--font-display); white-space: nowrap; }
@media (max-width: 30em) { .reach__inner::before, .reach__inner::after { display: none; } }
/* Just before the two parts stack, drop the dot so it never dangles at the end of the first line */
@media (max-width: 21em) { .reach__label::after { display: none; } }
.latest-lead--wide {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding-top: clamp(32px, 5vw, 56px);
}
.latest-lead__body { display: grid; gap: 14px; min-width: 0; }
.latest-lead { display: grid; gap: 14px; min-width: 0; padding-bottom: clamp(32px, 5vw, 56px); }
.latest-lead__title { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); line-height: 1.12; text-wrap: balance; }
.latest-lead__title a { color: var(--room-fg); text-decoration: none; }
.latest-lead__title a:hover { color: var(--room-accent); }
.latest-lead__dek { color: var(--room-muted); }
.latest-lead__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.85rem; color: var(--room-muted); }
.latest-lead__meta a { color: var(--room-accent); }
.hero__rail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 16px; padding-bottom: clamp(32px, 5vw, 56px); }
.flagship--rail { margin-bottom: 0; align-self: stretch; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.flagship--rail .flagship__media img { height: 100%; aspect-ratio: auto; min-height: 180px; }
.flagship--rail .flagship__title { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem); }
.hero__rail > :only-child { grid-column: 1 / -1; }
.paths > :only-child { grid-column: 1 / -1; }
.paths > .path:only-child { grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: center; }
.paths > .path:only-child > * { grid-column: 1; }
.paths > .path:only-child > .btn { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
@media (max-width: 760px) {
  .paths > .path:only-child { grid-template-columns: minmax(0, 1fr); }
  .paths > .path:only-child > .btn { grid-column: 1; grid-row: auto; margin-top: 6px; }
}
@media (max-width: 860px) {
  .latest-lead--wide { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero__rail { grid-template-columns: minmax(0, 1fr); }
  .latest-lead { padding-bottom: 8px; }
}
@media (max-width: 560px) {
  .flagship--rail { grid-template-columns: minmax(0, 1fr); }
  .flagship--rail .flagship__media img { aspect-ratio: 16 / 7; min-height: 0; }
}
.quotes--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .quotes--four { grid-template-columns: minmax(0, 1fr); } }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
/* Visuals: the maps and ranking cards from AI Industry, below the charts (Margaretta, October 29, 2026) */
.viz-reports { margin-top: clamp(40px, 5vw, 64px); }
/* Big numbers sized to the card, so 424,396 stays inside it while four cards share a row */
.viz-reports .cover { container-type: inline-size; }
.viz-reports .cover__stat { font-size: min(clamp(2.8rem, 2rem + 2.6vw, 4rem), 26cqi); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- What it means: the column sample on the Subscribe page ------- */

.column-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.column { max-width: 50rem; display: grid; gap: 20px; }
.column__head { display: grid; gap: 10px; }
.column__head h2 { font-size: var(--step-3); text-wrap: balance; }
.column__item { display: grid; gap: 20px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.column__num { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.column__part { display: grid; gap: 10px; min-width: 0; }
.column__part p:not(.eyebrow) { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.6; }
.column__part--means { padding-left: clamp(14px, 2vw, 22px); border-left: 3px solid var(--accent); }
.column__part .chart { margin-top: 8px; }
.column__part .chart figcaption, .column__part .chart p { font-family: var(--font-body); font-size: 0.82rem; }

/* ---------- Series pages ------------------------------------------------- */

.anatomy { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.anatomy li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.anatomy li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); padding-top: 4px; }
.anatomy strong { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; }
.anatomy span { color: var(--muted); font-size: 0.95rem; }
.band--stack { grid-template-columns: minmax(0, 1fr); }
.explainer__thumb { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #ffffff; border: 1px solid var(--rule); }
.explainer__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Flagship essay ----------------------------------------------- */

.essay-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 18px 0; margin-bottom: 1.6em; border-block: 1px solid var(--rule); font-family: var(--font-body); font-size: 0.9rem; line-height: 1.5; }
.essay-facts .eyebrow { margin-bottom: 4px; }
.essay-facts__proof, .essay-feature__proof { display: flex; gap: 22px; align-items: flex-start; }
.essay-facts__proof p, .essay-feature__proof p { display: grid; gap: 2px; margin: 0; }
.essay-facts__proof strong, .essay-feature__proof strong { font-family: var(--font-display); font-weight: 500; font-size: 2rem; line-height: 1; color: var(--accent); }
.essay-facts__proof span, .essay-feature__proof span { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 720px) { .essay-facts { grid-template-columns: minmax(0, 1fr); } }
.essay-read { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; margin-top: 2em; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); background: var(--room); color: var(--room-fg); font-family: var(--font-body); }
.essay-read h2 { margin: 0 !important; font-size: 1.5rem !important; color: var(--room-fg); }
.essay-read p:not(.eyebrow) { color: var(--room-muted); font-size: 0.95rem; margin-top: 8px; }
.essay-read .eyebrow { color: var(--room-accent); }
.essay-read .btn--primary { background: var(--room-accent); color: #04201b; }
@media (max-width: 640px) { .essay-read { grid-template-columns: minmax(0, 1fr); } }
.next-essay { display: grid; gap: 12px; margin-top: 2.2em; padding: clamp(20px, 3vw, 28px); border: 1px dashed var(--faint); border-radius: var(--radius); font-family: var(--font-body); }
.next-essay h2 { margin: 0 !important; font-size: 1.5rem !important; }
.next-essay p:not(.eyebrow) { color: var(--muted); font-size: 0.95rem; }
.next-essay .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.next-essay--wide { margin-top: clamp(32px, 5vw, 48px); }

/* ---------- One-page explainer ------------------------------------------- */

.xpl { display: grid; gap: clamp(28px, 4vw, 44px); padding-bottom: var(--section); }
.xpl__figure { margin: 0; display: grid; gap: 12px; max-width: 980px; min-width: 0; }
.xpl__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.xpl__hint { font-size: 0.88rem; color: var(--muted); }
.xpl__stage {
  overflow: auto; background: #ffffff; border: 3px solid var(--accent); border-radius: 6px;
  box-shadow: 0 0 0 6px var(--accent-soft); overscroll-behavior: contain;
}
.xpl__stage img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.xpl__stage.is-zoomed { max-height: 80vh; cursor: grab; }
.xpl__stage.is-zoomed img { width: 220%; max-width: none; cursor: zoom-out; }
.xpl__figure figcaption { font-size: 0.85rem; color: var(--muted); max-width: 52rem; }
.xpl__text { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.xpl__col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.xpl__lead { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.55; }
.xpl__rights { display: grid; gap: 10px; justify-items: start; padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); font-size: 0.92rem; }
.xpl__rights p:not(.eyebrow) { color: var(--muted); }
.xpl__more { display: grid; gap: 10px; }
.xpl__foot { display: grid; gap: 16px; max-width: 46rem; }
.xpl__foot h2 { font-size: var(--step-2); }
@media (max-width: 860px) { .xpl__text { grid-template-columns: minmax(0, 1fr); } }
.colls .cover__top { flex-direction: column; align-items: flex-start; gap: 4px; }

/* ---------- Milestone story: lead figure, team voices, studies ------------ */

.lead-figure { margin: 0; display: grid; gap: 10px; }
.lead-figure img { width: 100%; height: auto; border-radius: var(--radius); background: #ffffff; border: 1px solid var(--rule); }
.lead-figure figcaption { font-size: 0.85rem; color: var(--muted); }
.prose .voices { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.voice { display: grid; gap: 10px; padding-block: 26px; border-bottom: 1px solid var(--rule); }
.voice__num { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--accent); }
.prose .voice h3 { font-size: 1.35rem; line-height: 1.25; }
.prose .voice__def { font-family: var(--font-body); font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.prose .voice__quote { margin: 6px 0 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 18px; }
.prose .voice__quote img { grid-row: span 2; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 0; background: var(--surface); }
.voice__quote blockquote { margin: 0; font-style: italic; font-size: 1.12rem; line-height: 1.55; }
.prose .voice__quote figcaption { margin-top: 6px; display: grid; gap: 2px; font-size: 0.88rem; }
.voice__quote figcaption strong { color: var(--ink); font-weight: 600; }
.prose .voices__credit { font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 560px) {
  .prose .voice__quote { grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; }
  .prose .voice__quote img { width: 56px; height: 56px; grid-row: auto; }
  .voice__quote blockquote, .prose .voice__quote figcaption { grid-column: 1 / -1; }
  .prose .voice__quote figcaption { grid-row: 1; grid-column: 2; align-self: center; margin-top: 0; }
}
.prose .studies { list-style: none; padding: 0; display: grid; gap: 22px; counter-reset: study; }
.prose .studies > li { display: grid; gap: 12px; padding-left: 2.2em; position: relative; counter-increment: study; }
.prose .studies > li::before { content: counter(study); position: absolute; left: 0; top: 0.1em; font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); }
.studies .study__meta a { font-weight: 500; }
.latest-lead__media { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--room-rule); background: #ffffff; }
.latest-lead__media img { display: block; width: 100%; height: auto; transition: transform 0.4s ease; }
.latest-lead__media:hover img { transform: scale(1.015); }
.prose .essay-video { font-family: var(--font-body); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.essay-video a { font-weight: 500; }
.essay-video span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Listen: Margaretta reads the article ------------------------- */

.listen { display: flex; align-items: center; gap: 14px; max-width: 34rem; padding-top: 4px; }
.listen__btn {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--accent); color: var(--accent); background: transparent; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.listen__btn:hover, .listen.is-playing .listen__btn { background: var(--accent); color: var(--on-accent); }
.listen__icon { width: 14px; height: 14px; fill: currentColor; }
.listen__icon--pause, .listen.is-playing .listen__icon--play { display: none; }
.listen.is-playing .listen__icon--pause { display: block; }
.listen__body { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; font-size: 0.9rem; }
.listen__label { grid-column: 1 / -1; font-weight: 500; color: var(--ink); }
.listen__label span { font-weight: 400; color: var(--muted); }
.listen__seek { width: 100%; margin: 0; accent-color: var(--accent); }
.listen__time { font-size: 0.78rem; color: var(--muted); }
.listen--empty .listen__btn { border-style: dashed; border-color: var(--faint); color: var(--faint); cursor: default; }
.listen--empty .listen__btn:hover { background: transparent; color: var(--faint); }
.listen--empty .listen__time { grid-column: 1 / -1; }

/* ---------- Testimonials ------------------------------------------------- */

.tmonials { list-style: none; margin: 0; padding: 0; max-width: 56rem; }
.tmonial { padding-block: clamp(26px, 3.5vw, 36px); border-top: 1px solid var(--rule); }
.tmonial:first-child { padding-top: 0; border-top: 0; }
.tmonial figure { margin: 0; display: grid; gap: 16px; justify-items: start; }
.tmonial__pull { margin: 0; font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.35; }
.tmonial__pull p::before { content: "“"; color: var(--accent); }
.tmonial__pull p::after { content: "”"; color: var(--accent); }
.tmonial__more { width: 100%; }
.tmonial__more summary { display: inline-flex; cursor: pointer; list-style: none; color: var(--accent); font-size: 0.95rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tmonial__more summary::-webkit-details-marker { display: none; }
.tmonial__more summary:hover { color: var(--ink); }
.tmonial__close, .tmonial__more[open] .tmonial__open { display: none; }
.tmonial__more[open] .tmonial__close { display: inline; }
.tmonial__full { display: grid; gap: 0.8em; margin-top: 14px; max-width: 46rem; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.tmonial__who { display: grid; gap: 2px; font-size: 0.92rem; line-height: 1.45; color: var(--muted); }
.tmonial__who strong { font-size: 1.02rem; font-weight: 500; color: var(--ink); }
.tmonial__who a { color: inherit; text-decoration: none; }
.tmonial__who a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }

/* ---------- Collections (reading) ---------------------------------------- */

a.cover.coll { text-decoration: none; color: inherit; }
/* A button for every collection at the top of Collections, from the most articles to the fewest
   (Margaretta, October 23, 2026); a button opens its collection, which then starts just below them */
.coll-filters { position: static; border-top: 0; }
.coll-filters ~ .colls-home { border-top: 0; }
@media (max-width: 760px) {
  .coll-filters .chips { gap: 6px 5px; }
  .coll-filters .chip { padding: 8px 11px; font-size: 0.8rem; }
}
/* The specialty buttons make a line of their own, the second (Margaretta, November 5, 2026). A break is a
   line of no height, so the space between the lines comes from the buttons themselves rather than the row
   gap, which would count it twice; the lines stay evenly spaced */
.chips__break { flex-basis: 100%; height: 0; }
#archive-beats.chips { row-gap: 0; margin-bottom: -6px; }
#archive-beats .chip { margin-bottom: 6px; }
/* In windows from 761px to 900px wide the buttons are a little smaller, so the six on the first line,
   AI-Enabled Medical Devices last, stay on one line down to about 790px (Margaretta, November 5, 2026) */
@media (min-width: 761px) and (max-width: 900px) {
  #archive-beats.chips { column-gap: 4px; }
  #archive-beats .chip { padding: 8px 9px; font-size: 0.8rem; }
}
/* Each collection opens on its own, and ends on an "All collections" button (Margaretta, October 11, 2026) */
.colls-one .coll-section:not(.is-open), .is-reading .colls-home { display: none; }
/* Shown on its own, a collection keeps its full top space even when the one before it in the page is untinted too */
.colls-one .section.coll-section.is-open:not(.section--tint):not(.section--room) { padding-top: var(--section); }
/* A link from another page to a collection opens it under the buttons: the browser's own jump to the
   collection, which runs after site.js, stops at the top of the page. Without JavaScript a jump to a
   collection stops clear of the pinned header. */
.coll-section { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 68px); }
.colls-one .coll-section.is-open { scroll-margin-top: 100000px; }
.coll-end { display: flex; justify-content: center; margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--rule-strong); }
.coll-section [tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; }
.coll-section .subhead[id] { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 68px + 16px); }   /* #forbes, clear of the header */
/* The collections as the home page, under the masthead (Margaretta's trial, November 2, 2026): a search or a
   year shows its results in the collections' place until it is cleared. The Collections heading and buttons
   stay, since the search bar sits under them (Margaretta, November 5, 2026), so it never jumps as a search
   starts or ends. */
.is-searching .colls-home, .is-searching .coll-section { display: none !important; }
/* There, every jump and the keyboard focus stop clear of the pinned masthead too, with or without JavaScript */
html:has(.home-archive--colls) { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 68px + var(--masthead-h)); }
.home-archive.home-archive--colls { scroll-margin-top: -1px; }
.home-archive--colls ~ .coll-section { scroll-margin-top: 0; }
.home-archive--colls ~ .coll-section .subhead[id] { scroll-margin-top: 16px; }
.subhead h3 { font-size: var(--step-1); }
.coll-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
/* The FDA chart above the FDA collection's articles (Margaretta, October 23, 2026) */
.coll-chart { max-width: 560px; margin-bottom: clamp(8px, 2vw, 24px); }

/* ---------- Home: every article, under the featured articles ---- */
.home-archive { border-top: 1px solid var(--rule); scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 68px + var(--masthead-h) - 1px); }
.home-archive__head { display: grid; gap: 12px; max-width: 52rem; padding-block: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 32px); }
/* "Search by topic, company, country" a step smaller than other ledes, body size (Margaretta, November 5, 2026) */
.home-archive__head .lede { font-size: var(--step-0); }
.home-archive .filters { top: calc(env(safe-area-inset-top, 0px) + 68px + var(--masthead-h) - 1px); border-top: 1px solid var(--rule); }
.home-archive .results-count { margin-left: auto; }
.home-archive .chips { flex-basis: 100%; }
/* --filters-h is measured by site.js; the year stays visible just under the pinned filters */
.home-archive .year-group__label { top: calc(env(safe-area-inset-top, 0px) + 68px + var(--masthead-h) + var(--filters-h, 140px) + 8px); }
/* Phones, upright or sideways: only the header and the masthead stay pinned */
@media (max-width: 760px), (max-height: 560px) {
  .home-archive .filters { position: static; }
  .home-archive .year-group__label { position: static; }
}

/* Press, Publications and Speaking: wider date columns so "September 12, 2022" and "September 14-16, 2021" stay on one line */
.report-list .rows li, .coll-section .rows li { grid-template-columns: 9rem minmax(0, 1fr) auto; }
@media (min-width: 561px) { .ledger--talks .ledger__item:not(.ledger__item--pic) { grid-template-columns: 10.5rem 18px minmax(0, 1fr); } }
@media (min-width: 1024px) { .ledger--talks .ledger__item--pic { grid-template-columns: 10.5rem 18px minmax(0, 1fr); } }
.rows__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
@media (max-width: 620px) { .report-list .rows li, .coll-section .rows li { grid-template-columns: minmax(0, 1fr); } .rows__links { justify-content: flex-start; } }
.split__copy .link-arrow { justify-self: start; }

/* Home page list: each article's banner picture beside its headline, stacked above it on phones.
   Below 1023 the date moves above the row (as on phones) so the picture and headline keep the width. */
.ledger__body--pic { grid-template-columns: min(280px, 40%) minmax(0, 1fr); gap: 0 22px; align-items: start; }
.ledger__text { display: grid; gap: 5px; min-width: 0; align-content: start; }
.ledger__caption { font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.ledger__pic { display: block; line-height: 0; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: var(--surface); }
.ledger__pic img { display: block; width: 100%; height: auto; transition: opacity 0.15s; }
.ledger__pic:hover img { opacity: 0.88; }
/* AI Quarterly Roundups: only the six banners, large, two to a row and one on phones (Margaretta, October 23, 2026) */
.roundup-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 720px) { .roundup-grid { grid-template-columns: minmax(0, 1fr); } }
.roundup-pic { display: block; line-height: 0; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--surface); }
.roundup-pic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity 0.15s; }
.roundup-pic:hover img { opacity: 0.88; }
/* An article's banner at the top of a card (popular, edition, report and lead cards). Every card gets the
   same 2:1 frame, so cards side by side line up; the banner is shown whole inside it, never cropped. */
.card-pic { display: block; aspect-ratio: 2 / 1; line-height: 0; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: var(--paper); }
.card-pic img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.15s; }
.pop:hover .card-pic img, .edcard:hover .card-pic img, .cover:hover .card-pic img, .era__lead:hover .card-pic img { opacity: 0.88; }
.pop--pic { grid-template-rows: auto auto auto 1fr auto; }
.edcard--pic { grid-template-rows: auto auto auto auto 1fr auto; }
.cover--pic { grid-template-rows: auto auto 1fr auto; }
.section--room .card-pic { border-color: var(--room-rule); }
/* Below 1024px, and in the narrow column of a two-column section, the date goes above the banner and headline. */
@media (max-width: 1023px) {
  .ledger__item--pic { grid-template-columns: 14px minmax(0, 1fr); gap: 2px 12px; }
  .ledger__item--pic .ledger__date { grid-column: 2; grid-row: 1; padding-top: 0; }
  .ledger__item--pic .ledger__node { grid-column: 1; grid-row: 1 / span 2; }
  .ledger__item--pic .ledger__body { grid-column: 2; margin-top: 8px; }
}
.split .ledger__item--pic { grid-template-columns: 14px minmax(0, 1fr); gap: 2px 12px; }
.split .ledger__item--pic .ledger__date { grid-column: 2; grid-row: 1; padding-top: 0; }
.split .ledger__item--pic .ledger__node { grid-column: 1; grid-row: 1 / span 2; }
.split .ledger__item--pic .ledger__body { grid-column: 2; margin-top: 8px; }
@media (max-width: 560px) {
  .ledger__body--pic { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* ---------- Protect articles, images and charts -------------------------
   Text can't be selected and pictures can't be dragged out or long-pressed
   to save (site.js blocks right-click, copy and the Save/Print shortcuts).
   Printing shows a short notice instead of the page. */
body { -webkit-user-select: none; user-select: none; }
input, textarea, select { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; -webkit-touch-callout: none; }
@media print {
  body > * { display: none !important; }
  body::before { content: "© Margaretta Colangelo. Read this at margaretta.com"; display: block; padding: 2em; font: 14pt/1.4 Georgia, serif; color: #000; }
}
