/* ---------- Tokens ---------- */
:root {
  --text-xs: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --text-sm: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.02rem + 0.55vw, 1.4rem);
  --text-xl: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem);
  --text-2xl: clamp(2rem, 1.25rem + 3vw, 3.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Colors and type follow the AI Index 2026 pages and report of the Stanford Institute for Human-Centered
     Artificial Intelligence. Circular Std is used where it is installed; Figtree stands in for it elsewhere. */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-offset: #eef4fa;
  --color-text: #111010;
  --color-text-muted: #4a545e;
  --color-border: oklch(from #111010 l c h / 0.11);
  --color-border-strong: oklch(from #111010 l c h / 0.54);
  --color-primary: #005fa3;
  --color-primary-hover: #0b3e6e;
  --color-primary-active: #0b3e6e;
  --color-primary-soft: #e6f1fa;
  --color-accent: #9cf2f2;
  --color-accent-hover: #c4f8f8;
  --color-accent-soft: #e6f1fa;
  --color-accent-ink: #0b3e6e;
  --color-slate: #162d5c;
  --color-rose: #4d1f52;
  --color-ink: #0b3e6e;
  --color-ink-2: #15508a;
  --color-on-ink: #ffffff;
  --color-on-ink-muted: #cfe2f3;
  --color-focus: #0b3e6e;
  --color-focus-on-ink: #9cf2f2;
  --color-error: #4d1f52;

  /* Data colors */
  --data-main: #1c78b9;
  --data-main-2: #80bede;
  --data-main-3: #b3d9f1;
  --data-neutral: #e9e9e9;
  /* Outlines that keep the lighter chart fills at 3:1 or better against the card */
  --data-main-2-edge: #3c89b5;
  --data-main-3-edge: #5aa2c8;
  --data-neutral-edge: #7f7f7f;
  --data-accent: #eaacff;
  --data-accent-edge: #c65cd5;
  --data-gold: #162d5c;
  --data-slate: #162d5c;
  --data-rose: #4d1f52;
  --data-aqua: #1cc4b9;
  --data-aqua-edge: #0d6b6f;
  --data-gray: #7f7f7f;
  /* HAI figure colors, from the AI Index 2026 report. Positive is blue and negative is plum, which stay
     apart under every common type of color blindness and in grayscale. */
  --hai-blue: #1c78b9;
  --hai-lavender: #eaacff;
  --hai-magenta: #c65cd5;
  --hai-navy: #162d5c;
  --hai-plum: #4d1f52;
  --hai-grid: #e6e6e6;
  --hai-gray: #d9d9d9;
  --color-footer: #111010;

  --radius-sm: 0.25rem;
  --radius-md: 0.25rem;
  --radius-lg: 0;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 0 0 transparent;
  --shadow-md: 0 0 0 transparent;

  --content-wide: 1180px;
  --font-display: 'Circular Std', 'CircularStd', 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Circular Std', 'CircularStd', 'Figtree', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-10));
}
.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.section-head {
  margin-bottom: clamp(var(--space-6), 3vw, var(--space-10));
  max-width: 46rem;
}
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
h1,
h2.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.012em;
}
/* Long words break instead of forcing sideways scrolling when the reader enlarges the text. */
h1,
h2,
h3,
.btn,
.text-link {
  overflow-wrap: anywhere;
}
h2.display {
  font-size: var(--text-xl);
}
.lede {
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}
a {
  color: var(--color-primary);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--color-primary-hover);
  text-decoration-thickness: 2px;
}
.tabular {
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-2);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-ink);
  color: var(--color-on-ink);
  border-radius: var(--radius-md);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
  color: var(--color-on-ink);
}

/* ---------- Focus on dark bands ---------- */
.detail-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--color-focus-on-ink);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  border-radius: var(--radius-sm);
}
.brand-logo img {
  display: block;
  width: auto;
  height: 36px;
}
.brand-logo:hover {
  opacity: 0.75;
}
.brand-divider {
  flex: none;
  align-self: center;
  width: 1px;
  height: 32px;
  background: var(--color-border-strong);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover {
  color: var(--color-primary-active);
}
@media (max-width: 30rem) {
  .brand {
    gap: var(--space-2);
  }
  .brand-logo img {
    height: 28px;
  }
  .brand-divider {
    height: 28px;
  }
  .wordmark {
    font-size: 1rem;
    white-space: normal;
  }
  .site-header .container {
    gap: var(--space-2);
  }
}
@media (max-width: 22.5rem) {
  .brand-logo img {
    height: 22px;
  }
  .brand {
    gap: 6px;
  }
  .wordmark {
    font-size: 0.875rem;
  }
  .nav-toggle {
    gap: var(--space-1);
    padding-inline: var(--space-2);
  }
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
}
.nav-toggle:hover {
  background: var(--color-surface-offset);
}
/* Widths in rem follow the browser's text size: with enlarged text on a phone the Menu button
   moves to its own row instead of overlapping the project name. */
@media (max-width: 19.9rem) {
  .site-header .container {
    flex-wrap: wrap;
    row-gap: 0;
    padding-block: var(--space-1);
  }
  .site-header {
    position: relative;
  }
}
.nav-toggle svg {
  flex: none;
  width: 20px;
  height: 20px;
}
.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: var(--space-2) clamp(var(--space-4), 4vw, var(--space-10)) var(--space-4);
}
.site-nav.is-open {
  display: block;
}
.site-nav ul {
  display: flex;
  flex-direction: column;
}
.site-nav li {
  max-width: none;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--color-primary);
}
.site-nav .btn {
  margin-top: var(--space-4);
  border-bottom: none;
  justify-content: center;
}
@media (min-width: 64rem) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    display: block;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: var(--space-1);
  }
  .site-nav a {
    min-height: 40px;
    padding-inline: 0.625rem;
    font-size: 0.9375rem;
    white-space: nowrap;
    border-bottom: none;
    border-radius: var(--radius-md);
  }
  .site-nav a:not(.btn):hover {
    background: var(--color-surface-offset);
  }
  .site-nav a[aria-current='page'] {
    box-shadow: inset 0 -2px 0 var(--color-primary);
    border-radius: 0;
  }
  .site-nav .btn {
    margin-top: 0;
    margin-left: var(--space-2);
    padding-inline: var(--space-3);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-primary,
.site-nav a.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover,
.site-nav a.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
}
.btn-primary:active {
  background: var(--color-primary-active);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.btn-secondary:active {
  background: oklch(from var(--color-text) l c h / 0.14);
}
.btn-small {
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
}
.btn-on-ink {
  background: var(--color-accent);
  color: var(--color-ink);
}
.btn-on-ink:hover {
  background: var(--color-accent-hover);
  color: var(--color-ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-surface-offset);
  padding-block: clamp(var(--space-10), 5vw, var(--space-20)) clamp(var(--space-8), 4vw, var(--space-12));
}
/* Decorative network pattern. It is faint everywhere, fainter still behind the text,
   and fades out toward the bottom of the hero. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('./assets/network-on-ink.svg') right top / 1000px auto no-repeat;
  opacity: 0.3;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 34rem);
  mask-image: linear-gradient(to bottom, #000 0, transparent 34rem);
}
@media (min-width: 62rem) {
  .hero::before {
    background-size: cover;
    opacity: 0.85;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%),
      linear-gradient(to right, rgb(0 0 0 / 0.3) 0%, rgb(0 0 0 / 0.3) 42%, #000 80%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%),
      linear-gradient(to right, rgb(0 0 0 / 0.3) 0%, rgb(0 0 0 / 0.3) 42%, #000 80%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}
/* The same pattern behind the heading of the sources page and, in a light-on-dark
   version, behind the "Findings in detail" heading band. Both are decorative and stay faint behind text. */
.page-head,
.detail-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-head::before,
.detail-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.page-head::before {
  background: url('./assets/network-on-ink.svg') right top / 1000px auto no-repeat;
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 26rem);
  mask-image: linear-gradient(to bottom, #000 0, transparent 26rem);
}
.detail-band::before {
  background: url('./assets/network-on-ink.svg') left bottom / 1000px auto no-repeat;
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to top, #000 0, transparent 26rem);
  mask-image: linear-gradient(to top, #000 0, transparent 26rem);
}
@media (min-width: 62rem) {
  .page-head::before {
    background-size: cover;
    opacity: 0.8;
    -webkit-mask-image: linear-gradient(to right, rgb(0 0 0 / 0.2) 0%, rgb(0 0 0 / 0.2) 50%, #000 95%);
    mask-image: linear-gradient(to right, rgb(0 0 0 / 0.2) 0%, rgb(0 0 0 / 0.2) 50%, #000 95%);
  }
  .detail-band::before {
    background-size: cover;
    background-position: center bottom;
    opacity: 0.8;
    -webkit-mask-image: linear-gradient(to right, rgb(0 0 0 / 0.25) 0%, rgb(0 0 0 / 0.25) 45%, #000 90%);
    mask-image: linear-gradient(to right, rgb(0 0 0 / 0.25) 0%, rgb(0 0 0 / 0.25) 45%, #000 90%);
  }
}
/* Animated version of the pattern (network.js). When motion is allowed, a canvas takes the
   place of the static image in each band, with the same placement, opacity, and fade, and the
   points drift slowly. The static image stays in use without scripts or with reduced motion.
   The values below repeat those of the static rules above and in explorer.css. */
.network-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.has-network-canvas::before {
  visibility: hidden;
}
.hero > .network-canvas {
  opacity: 0.3;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 34rem);
  mask-image: linear-gradient(to bottom, #000 0, transparent 34rem);
}
.explorer-head > .network-canvas {
  opacity: 0.3;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 26rem);
  mask-image: linear-gradient(to bottom, #000 0, transparent 26rem);
}
.page-head > .network-canvas {
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 26rem);
  mask-image: linear-gradient(to bottom, #000 0, transparent 26rem);
}
.detail-band > .network-canvas {
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to top, #000 0, transparent 26rem);
  mask-image: linear-gradient(to top, #000 0, transparent 26rem);
}
@media (min-width: 62rem) {
  .hero > .network-canvas {
    opacity: 0.85;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%),
      linear-gradient(to right, rgb(0 0 0 / 0.3) 0%, rgb(0 0 0 / 0.3) 42%, #000 80%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%),
      linear-gradient(to right, rgb(0 0 0 / 0.3) 0%, rgb(0 0 0 / 0.3) 42%, #000 80%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .explorer-head > .network-canvas {
    opacity: 0.75;
    -webkit-mask-image: linear-gradient(to right, rgb(0 0 0 / 0.18) 0%, rgb(0 0 0 / 0.18) 50%, #000 95%);
    mask-image: linear-gradient(to right, rgb(0 0 0 / 0.18) 0%, rgb(0 0 0 / 0.18) 50%, #000 95%);
  }
  .page-head > .network-canvas {
    opacity: 0.8;
    -webkit-mask-image: linear-gradient(to right, rgb(0 0 0 / 0.2) 0%, rgb(0 0 0 / 0.2) 50%, #000 95%);
    mask-image: linear-gradient(to right, rgb(0 0 0 / 0.2) 0%, rgb(0 0 0 / 0.2) 50%, #000 95%);
  }
  .detail-band > .network-canvas {
    opacity: 0.8;
    -webkit-mask-image: linear-gradient(to right, rgb(0 0 0 / 0.25) 0%, rgb(0 0 0 / 0.25) 45%, #000 90%);
    mask-image: linear-gradient(to right, rgb(0 0 0 / 0.25) 0%, rgb(0 0 0 / 0.25) 45%, #000 90%);
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(var(--space-8), 4vw, var(--space-12));
  align-items: center;
}
@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  }
}
.hero h1 {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.15rem);
  line-height: 1.1;
}
.hero h1 em {
  font-style: normal;
  color: var(--color-primary);
  background: linear-gradient(transparent 62%, var(--color-accent) 62%, var(--color-accent) 94%, transparent 94%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.08em;
}
.hero .lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  max-width: 36rem;
  margin-top: var(--space-5);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.hero-meta {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-8);
  margin-top: var(--space-3);
}
.hero-links .text-link {
  margin-top: 0;
}
.hero-links {
  align-items: center;
}
.hero-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.35em;
  min-height: 44px;
  max-width: none;
  color: var(--color-text);
  overflow-wrap: anywhere;
}
.hero-contact-label {
  font-weight: 600;
}

/* ---------- About the sample (shown below the findings) ---------- */
.sample-info {
  min-width: 0;
}
.sample-info h3 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--color-border-strong);
}
.glance div {
  overflow-wrap: anywhere;
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}
.glance dt {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.glance dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.25;
  margin-top: var(--space-1);
}
@media (min-width: 48rem) {
  .glance {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .glance div {
    border-bottom: none;
    padding-right: var(--space-6);
  }
}

/* ---------- Press strip (optional) ---------- */
.press {
  border-block: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-top: clamp(var(--space-4), 2vw, var(--space-8));
}
.press .container {
  display: grid;
  gap: var(--space-3) var(--space-8);
  align-items: center;
  padding-block: var(--space-6);
}
.press h2 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.press-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) clamp(var(--space-6), 3vw, var(--space-12));
}
.press-list li {
  max-width: none;
}
.press-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text-muted);
  text-decoration: none;
}
a.press-item:hover {
  color: var(--color-text);
}
.press-item img {
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.8;
}
a.press-item:hover img {
  filter: none;
  opacity: 1;
}
.press-word {
  font-size: 1.15rem;
  line-height: 1;
  white-space: nowrap;
}
.press-word[data-face='serif'] {
  font-family: var(--font-display);
  font-weight: 700;
}
.press-word[data-face='caps'] {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.press-word[data-face='sans'] {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.press-word[data-face='italic'] {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
}
@media (min-width: 62rem) {
  .press .container {
    grid-template-columns: auto 1fr;
  }
}

/* ---------- Findings ---------- */
/* Six findings as a grid of equal cells under one heading: one column on a
   phone, two on a tablet, three on a desktop. Each cell has a rule on top, the
   finding number, the text, and a link that sits at the bottom of the cell so
   the links in a row line up. */
.findings-heading {
  margin-bottom: clamp(var(--space-5), 2.5vw, var(--space-8));
}
.findings-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 clamp(var(--space-6), 3vw, var(--space-10));
}
.findings-list li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: var(--space-3);
  align-items: start;
  padding-block: var(--space-4) var(--space-2);
  border-top: 1px solid var(--color-border-strong);
  max-width: none;
}
.finding-stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  line-height: 1;
  color: var(--color-primary);
  font-variant-numeric: lining-nums;
}
.finding-text {
  max-width: 62ch;
  line-height: 1.5;
}
.finding-text strong {
  font-weight: 600;
}
@media (min-width: 44rem) {
  .findings-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 44rem) {
  .findings-list li {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: stretch;
    row-gap: var(--space-3);
    padding-block: var(--space-5) var(--space-3);
  }
  .findings-list li > div {
    display: flex;
    flex-direction: column;
  }
  .findings-list .finding-more {
    margin-top: auto;
  }
}
@media (min-width: 68rem) {
  .findings-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Figures ---------- */
.figures {
  background: var(--color-surface-offset);
}
.figure-grid {
  display: grid;
  gap: clamp(var(--space-5), 2.5vw, var(--space-8));
}
@media (min-width: 62rem) {
  .figure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .figure-card--wide {
    grid-column: 1 / -1;
  }
}
.figure-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(var(--space-5), 2.5vw, var(--space-8));
}
.hero .figure-card {
  box-shadow: var(--shadow-md);
}
.figure-title {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.25;
  margin-top: var(--space-2);
}
.figure-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.chart-wrap {
  position: relative;
  width: 100%;
  margin-top: var(--space-5);
}
.chart-wrap canvas {
  width: 100% !important;
}
/* Category labels wrap onto more lines on narrow screens, so give the rows more height. */
@media (max-width: 40rem) {
  .chart-wrap-tall {
    height: 26.25rem !important;
  }
}
@media (max-width: 22.5rem) {
  .chart-wrap-tall {
    height: 30rem !important;
  }
}
.figure-foot {
  margin-top: auto;
  padding-top: var(--space-4);
}
.figure-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: none;
}
.figure-card details {
  margin-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.figure-card summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
}
.figure-card summary::-webkit-details-marker {
  display: none;
}
.figure-card summary::before {
  content: '+';
  display: inline-block;
  width: 1ch;
  font-weight: 700;
}
.figure-card details[open] summary::before {
  content: '\2212';
}
.figure-card summary:hover {
  color: var(--color-primary-hover);
}
/* ---------- Share a figure ---------- */
.figure-card {
  scroll-margin-top: 6rem;
}
.figure-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}
.figure-top .figure-title {
  flex: 1 1 6.5rem;
  margin-top: 0;
  min-width: 0;
}
.figure-top .share-btn {
  flex: none;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  margin-block: -0.5rem;
  margin-right: -0.5rem;
  padding: 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive);
}
.share-btn:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
}
.share-btn svg {
  width: 15px;
  height: 15px;
}
.share-dialog {
  width: min(26rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: var(--space-6);
  overflow-y: auto;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 72px oklch(0.35 0.03 200 / 0.2);
}
.share-dialog::backdrop {
  background: oklch(from var(--color-ink) l c h / 0.55);
}
.share-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}
.share-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.2;
}
.share-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: -0.625rem -0.625rem 0 0;
  color: var(--color-text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-full);
  cursor: pointer;
}
.share-close:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.share-close svg {
  width: 20px;
  height: 20px;
}
.share-figure {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.share-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.share-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 48px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.share-option:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
}
.share-option svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.share-copy {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.share-copy label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}
.share-copy-row {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-1);
}
.share-copy-row input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  text-overflow: ellipsis;
}
.share-copy-row .btn {
  flex: none;
  white-space: nowrap;
}
.share-status {
  min-height: 1.4em;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-slate);
}
.table-scroll {
  overflow-x: auto;
  padding-bottom: var(--space-2);
}
.data-table {
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums lining-nums;
  min-width: 20rem;
}
.spotlight .data-table {
  min-width: 0;
}
.data-table caption {
  text-align: left;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-bottom: var(--space-2);
}
.data-table th,
.data-table td {
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.data-table td {
  text-align: right;
}
.data-table thead th:not(:first-child) {
  text-align: right;
}
.data-table thead th {
  font-weight: 600;
  border-bottom-color: var(--color-border-strong);
}
.data-table tbody th {
  font-weight: 400;
}

/* Segmented control */
.segmented {
  border: none;
  min-width: 0;
  margin-top: var(--space-4);
}
.segmented legend {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.segmented-options {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
}
.segmented label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border-radius: calc(var(--radius-md) - var(--space-1));
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
}
@media (max-width: 30rem) {
  .segmented-options {
    display: flex;
    flex-wrap: nowrap;
  }
  .segmented label {
    flex: 1 1 auto;
    justify-content: center;
    padding-inline: var(--space-2);
    text-align: center;
  }
}
/* Widths in rem follow the browser's text size: with enlarged text on a phone the options wrap. */
@media (max-width: 19.9rem) {
  .segmented-options {
    flex-wrap: wrap;
  }
}
.segmented input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.segmented label:has(input:checked) {
  background: var(--color-ink);
  color: var(--color-on-ink);
}
.segmented label:has(input:focus-visible) {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
.segmented label:not(:has(input:checked)):hover {
  background: oklch(from var(--color-text) l c h / 0.08);
}

/* ---------- Small labels ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- Take the survey ---------- */
.survey {
  background: var(--color-surface-offset);
}
.survey-grid {
  display: grid;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
}
@media (min-width: 62rem) {
  .survey-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
    align-items: start;
  }
}
.survey-points {
  margin-top: var(--space-5);
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.survey-points li + li {
  margin-top: var(--space-2);
}
.survey-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(var(--space-5), 3vw, var(--space-10));
  min-width: 0;
}
.survey-progress {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.survey-progress p {
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}
.survey-progress progress {
  flex: 1;
  height: 8px;
  appearance: none;
  border: none;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--color-surface-offset);
}
.survey-progress progress::-webkit-progress-bar {
  background: var(--color-surface-offset);
}
.survey-progress progress::-webkit-progress-value {
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.survey-progress progress::-moz-progress-bar {
  background: var(--color-primary);
}
.survey-card fieldset {
  border: none;
  min-width: 0;
}
.survey-card legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.25;
  margin-bottom: var(--space-5);
  padding: 0;
}
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--color-surface);
}
.option + .option {
  margin-top: var(--space-2);
}
.option:hover {
  background: var(--color-bg);
}
.option input {
  flex: none;
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}
.option:has(input:checked) {
  border-color: var(--color-primary);
  box-shadow: inset 0 0 0 1px var(--color-primary);
  background: var(--color-primary-soft);
}
.option:has(input:focus-visible) {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
.option input:focus-visible {
  outline: none;
}
.form-error {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-error);
}
.survey-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.survey-progress .survey-length {
  font-weight: 400;
  color: var(--color-text-muted);
  white-space: normal;
}
.survey-hint {
  margin-top: calc(-1 * var(--space-3));
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.survey-skip {
  min-height: 44px;
  margin-left: auto;
  padding: var(--space-2) var(--space-1);
  background: none;
  border: none;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.survey-skip:hover {
  color: var(--color-primary-hover);
}
.survey-unavailable {
  color: var(--color-text-muted);
}
.result-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.25;
}
.result-summary {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}
.result-summary strong {
  color: var(--color-text);
  font-weight: 600;
}
.survey-card.is-results {
  container-type: inline-size;
}
.survey-card.is-results {
  padding-block: clamp(var(--space-5), 2.5vw, var(--space-8));
}
.results-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
  margin-top: var(--space-1);
}
.results-meta .result-summary {
  margin-top: 0;
  font-size: var(--text-sm);
}
.results-key {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}
.results-swatch {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border: 1.5px solid var(--color-accent-ink);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
}
.results-swatch svg {
  width: 12px;
  height: 12px;
}
.results-grid {
  display: grid;
  gap: var(--space-5) var(--space-8);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-strong);
}
@container (min-width: 34rem) {
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.result-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
}
.result-base,
.result-skipped {
  margin-top: 2px;
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  line-height: 1.4;
  color: var(--color-text-muted);
  max-width: none;
}
.result-skipped {
  margin-top: calc(-1 * var(--space-1));
  font-weight: 600;
  color: var(--color-text);
}
.result-block {
  min-width: 0;
}
.poll-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 28px;
  max-width: none;
  padding: 2px var(--space-2);
  background: var(--color-surface-offset);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: 1.3;
  overflow: hidden;
}
.poll-row + .poll-row {
  margin-top: 4px;
}
.poll-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: oklch(from var(--data-main-3) l c h / 0.6);
  box-shadow: inset -2px 0 0 var(--data-main-3-edge);
  transition: width 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.poll-label,
.poll-row .pct {
  position: relative;
}
.poll-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
  overflow-wrap: anywhere;
}
.poll-label svg {
  flex: none;
  width: 16px;
  height: 16px;
}
.poll-row .pct {
  flex: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.poll-row.is-yours {
  font-weight: 600;
}
/* The outline is drawn above the bar, so it surrounds the whole row. */
.poll-row.is-yours::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--color-accent-ink);
  border-radius: inherit;
  pointer-events: none;
}
.poll-row.is-yours .poll-fill {
  background: var(--color-accent);
  opacity: 1;
}
.result-activities {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-strong);
}
.result-activities-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  line-height: 1.25;
}
.result-activities > .result-base {
  margin-bottom: 0;
}
.result-activity {
  margin-top: var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.result-activity summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  cursor: pointer;
  list-style: none;
}
.result-activity summary::-webkit-details-marker {
  display: none;
}
.result-activity summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--transition-interactive);
}
.result-activity[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.result-activity summary:hover {
  background: var(--color-bg);
}
.result-activity-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.result-activity-name {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
}
.result-activity-line {
  font-size: var(--text-xs);
  line-height: 1.4;
  color: var(--color-text-muted);
}
.results-grid.result-activity-grid {
  margin-top: 0;
  padding: var(--space-4);
  border-top: 1px solid var(--color-border);
}
@media (prefers-reduced-motion: reduce) {
  .result-activity summary::after {
    transition: none;
  }
}
.results-actions {
  align-items: center;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.results-note {
  flex: 1 1 14rem;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: none;
}
@media (prefers-reduced-motion: reduce) {
  .poll-fill {
    transition: none;
  }
}

/* ---------- Sources of evidence (home page area) ---------- */
.evidence-grid {
  display: grid;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
}
@media (min-width: 62rem) {
  .evidence-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
  }
}
.evidence-note {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--color-accent-soft);
  border-left: 4px solid var(--color-accent-ink);
  border-radius: var(--radius-md);
  max-width: 40rem;
}
.evidence-note svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--color-accent-ink);
}
.evidence-note p {
  font-size: var(--text-sm);
  max-width: none;
}
.evidence-note strong {
  font-weight: 600;
}
.evidence-actions {
  margin-top: var(--space-6);
}
.evidence-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  min-width: 0;
}
.evidence-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.25;
}
.evidence-sub {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}
.evidence-domains {
  margin-top: var(--space-5);
  border-top: 1px solid var(--color-border-strong);
}
.evidence-domains li {
  max-width: none;
  border-bottom: 1px solid var(--color-border);
}
.evidence-domains a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: var(--space-3);
  min-height: 52px;
  padding-inline: var(--space-2);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}
.evidence-domains a:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-active);
}
.evidence-count {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.evidence-domains svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}
.evidence-domains .is-total a {
  font-weight: 600;
}
.evidence-domains .is-total {
  border-bottom: none;
}

/* ---------- Principal investigator ---------- */
.pi-card {
  display: grid;
  gap: var(--space-6);
  align-items: start;
  max-width: 54rem;
}
@media (min-width: 40rem) {
  .pi-card {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: var(--space-10);
  }
}
.pi-photo {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 var(--color-accent);
}
.pi-photo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
@media (min-width: 40rem) {
  .pi-photo {
    width: 200px;
    height: 200px;
  }
}
.pi-card h2 {
  font-size: var(--text-xl);
}
.pi-role {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}
.pi-bio {
  margin-top: var(--space-4);
  max-width: 62ch;
}
/* ---------- Other projects from the institute (kept quiet on purpose) ---------- */
/* ---------- Media contact, inside the principal investigator block ---------- */
.pi-media {
  margin-top: var(--space-6);
  max-width: 62ch;
  padding: var(--space-5);
  background: var(--color-accent-soft);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  scroll-margin-top: 6rem;
}
.pi-media h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
}
.pi-media p {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}
.pi-media .pi-media-address {
  margin-top: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.more-projects {
  padding-block: var(--space-8) var(--space-12);
}
.more-projects .container > div {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.more-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  max-width: none;
}
.more-list {
  display: grid;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-3);
}
@media (min-width: 40rem) {
  .more-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 68rem) {
  .more-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.more-list li {
  max-width: none;
}
.more-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  padding-block: var(--space-2);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
}
.more-item img {
  width: 72px;
  height: 48px;
  margin-top: 0.15rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--color-border);
}
.more-name {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: oklch(from var(--color-text) l c h / 0.3);
  text-underline-offset: 0.18em;
}
.more-item:hover .more-name {
  color: var(--color-primary);
  text-decoration-color: currentColor;
}
.more-desc {
  display: block;
  margin-top: 0.125rem;
  font-size: var(--text-xs);
  line-height: 1.4;
  color: var(--color-text-muted);
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: var(--space-3);
  font-weight: 600;
  color: var(--color-primary);
}
.text-link:hover {
  color: var(--color-primary-active);
}
.text-link svg {
  width: 18px;
  height: 18px;
  margin-left: var(--space-1);
}

/* ---------- Spotlight: one finding with a chart and supporting quotations ---------- */
.figures-more {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-strong);
  max-width: none;
}
.figures-note {
  max-width: none;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.figures-more .text-link {
  margin-top: 0;
}
.spotlight-panel {
  display: grid;
  gap: clamp(var(--space-6), 3vw, var(--space-10));
  padding: clamp(var(--space-5), 3.5vw, var(--space-12));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.spotlight-panel > * {
  min-width: 0;
}
@media (min-width: 62rem) {
  .spotlight-panel {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-areas:
      'finding figure'
      'quotes quotes';
    column-gap: clamp(var(--space-8), 4vw, var(--space-16));
    align-items: start;
  }
  .spotlight-quotes {
    display: grid;
    grid-template-columns: minmax(13rem, 0.34fr) minmax(0, 1fr);
    column-gap: clamp(var(--space-6), 3vw, var(--space-12));
    align-items: start;
  }
  .spotlight-quotes .spot-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .spotlight-quotes .spot-head h3 {
    flex: none;
  }
  .spotlight-quotes .spot-track {
    margin-top: 0;
  }
  .spotlight-quotes .spot-slide blockquote p {
    font-size: clamp(1.375rem, 0.9rem + 1vw, 1.625rem);
    line-height: 1.4;
    max-width: 46ch;
  }
  .spotlight-finding {
    grid-area: finding;
  }
  .spotlight-figure {
    grid-area: figure;
  }
  .spotlight-quotes {
    grid-area: quotes;
  }
}
.spotlight-finding .display {
  margin-top: var(--space-2);
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2rem);
  line-height: 1.2;
  text-wrap: balance;
}
.spotlight-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-10);
  margin-top: var(--space-5);
}
.spotlight-stats > div {
  display: flex;
  flex-direction: column-reverse;
}
.spotlight-stats dd {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
}
.spotlight-stats dd.is-harm {
  color: var(--data-rose);
}
.spotlight-stats dt {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.spotlight-text {
  margin-top: var(--space-5);
  max-width: 60ch;
}
.figure-card.spotlight-figure {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.spotlight-quotes {
  padding: clamp(var(--space-4), 2.5vw, var(--space-6));
  background: var(--color-primary-soft);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
}
.spot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}
.spot-head h3 {
  flex: 1 1 12rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-primary);
}
.spot-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-top: var(--space-3);
  border-radius: var(--radius-sm);
}
.spot-track::-webkit-scrollbar {
  display: none;
}
.spot-slide {
  flex: 0 0 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: var(--space-3);
}
.spot-slide + .spot-slide {
  margin-left: var(--space-4);
}
.spot-slide blockquote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.4;
  max-width: none;
  text-wrap: pretty;
}
.spot-slide blockquote p::before {
  content: '\201C';
}
.spot-slide blockquote p::after {
  content: '\201D';
}
.spot-slide figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  max-width: none;
}
.spot-slide figcaption strong {
  font-weight: 600;
}
.spot-slide .tag {
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-footer);
  color: var(--color-on-ink-muted);
  font-size: var(--text-sm);
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.site-footer.has-rule {
  border-top: 1px solid oklch(from var(--color-on-ink) l c h / 0.14);
}
.footer-grid {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.site-footer h2 {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-on-ink);
  margin-bottom: var(--space-2);
}
.site-footer .wordmark {
  color: var(--color-on-ink);
  min-height: 0;
  margin-bottom: var(--space-3);
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: var(--space-5);
  border-radius: var(--radius-sm);
}
.footer-logo img {
  display: block;
  width: auto;
  height: 40px;
}
.footer-logo:hover {
  opacity: 0.8;
}
.site-footer a {
  color: var(--color-on-ink);
}
.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer .footer-text {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-on-ink);
  overflow-wrap: anywhere;
}
.footer-base {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid oklch(from var(--color-on-ink) l c h / 0.14);
  font-size: var(--text-xs);
}
.footer-base p {
  max-width: none;
}
/* Button that pauses and restarts the floating background pattern (added by network.js). */
.footer-base.has-motion-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
}
.footer-base.has-motion-toggle p {
  flex: 1 1 24rem;
}
/* With no note beside it, the button sits at the end of the row. */
.footer-base.has-motion-toggle > .motion-toggle:only-child {
  margin-left: auto;
}
/* Without the button (motion not available) an empty footer row takes no space. */
.footer-base:empty {
  display: none;
}
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-on-ink-muted);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-on-ink);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.motion-toggle:hover {
  background: oklch(from var(--color-on-ink) l c h / 0.1);
  border-color: var(--color-on-ink);
}
.motion-toggle svg {
  flex: none;
}
.motion-toggle[hidden] {
  display: none;
}

/* ---------- Article database ---------- */
/* The sources page uses the same palette with the emphasis reversed: a dark teal band with
   aqua highlights at the top and a stone background behind the list, so it is clear at a
   glance that this is a different page from the home page. */
.page-head {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16)) calc(var(--space-10) + var(--space-12));
  background: var(--color-ink);
  color: var(--color-on-ink);
  border-bottom: 4px solid var(--color-accent);
}
.page-head .eyebrow {
  color: var(--color-accent);
}
.page-head h1 {
  color: var(--color-on-ink);
}
.page-head .lede {
  color: var(--color-on-ink-muted);
}
.page-head :focus-visible {
  outline-color: var(--color-focus-on-ink);
}
.page-head .definitions {
  background: var(--color-ink-2);
  border-color: oklch(from var(--color-on-ink) l c h / 0.6);
}
.page-head .definitions summary:hover {
  background: oklch(from var(--color-on-ink) l c h / 0.07);
}
.page-head .definitions summary::after {
  color: var(--color-accent);
}
.page-head .definitions dd {
  color: var(--color-on-ink-muted);
}
.page-head h1 {
  font-size: var(--text-2xl);
}
.page-head .lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  max-width: 44rem;
  margin-top: var(--space-4);
}
.definitions {
  margin-top: var(--space-6);
  max-width: 52rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.definitions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 52px;
  padding: var(--space-3) var(--space-5);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-md);
}
.definitions summary::-webkit-details-marker {
  display: none;
}
.definitions summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary);
}
.definitions[open] summary::after {
  content: '\2212';
}
.definitions summary:hover {
  background: var(--color-bg);
}
.definitions dl {
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--text-sm);
}
.definitions dt {
  font-weight: 600;
  margin-top: var(--space-4);
}
.definitions dd {
  color: var(--color-text-muted);
  max-width: 70ch;
}
.db {
  padding-bottom: clamp(var(--space-12), 7vw, var(--space-24));
  background: var(--color-surface-offset);
}
/* The filter panel sits across the edge of the dark band. */
.db .filters {
  position: relative;
  top: calc(-1 * var(--space-12));
  margin-bottom: calc(-1 * var(--space-12));
}
.filters {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(var(--space-4), 2.5vw, var(--space-6));
}
.filters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: end;
}
.field--search {
  grid-column: 1 / -1;
}
/* Widths in rem follow the browser's text size. On a phone the filters stack, and on wider
   screens the columns with the longest choices are wider, so that a choice such as
   "Work and Economy (27)" is not cut off. */
@media (max-width: 34.99rem) {
  .filters-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 48rem) {
  .filters-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (min-width: 75rem) {
  .filters-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
  }
  .filters-grid .field select {
    font-size: 0.9375rem;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}
.field label {
  overflow-wrap: anywhere;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}
.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: var(--space-2) var(--space-3);
  font-size: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
}
.field select {
  appearance: none;
  padding-right: var(--space-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b211e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 18px;
  text-overflow: ellipsis;
}
.field input:hover,
.field select:hover {
  border-color: var(--color-text);
}
.field select.is-active {
  border-color: var(--color-primary);
  box-shadow: inset 0 0 0 1px var(--color-primary);
  background-color: var(--color-primary-soft);
}
.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  min-height: 60px;
  margin-top: var(--space-5);
}
.results-count {
  font-weight: 600;
  max-width: none;
}
.results-count span {
  font-weight: 400;
  color: var(--color-text-muted);
}
.article-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}
.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow-wrap: anywhere;
  gap: var(--space-4);
  max-width: none;
  padding: clamp(var(--space-4), 2.4vw, var(--space-6));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
/* Level 1: the title, in the display face */
.article-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.25;
  max-width: 56rem;
  text-wrap: pretty;
}
.article-title a {
  /* Vertical padding enlarges the tap target without changing the layout. */
  padding-block: 0.25rem;
  color: var(--color-text);
  text-decoration-color: oklch(from var(--color-text) l c h / 0.3);
  text-underline-offset: 0.18em;
}
.article-title a:hover {
  color: var(--color-primary);
  text-decoration-color: currentColor;
}
/* The last word of a linked title and the icon after it stay on one line. */
.article-title-end {
  white-space: nowrap;
}
.article-title svg {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.3em;
  vertical-align: 0.02em;
  color: var(--color-text-muted);
}
/* Level 2: who, when, where */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) 0;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}
.article-meta span + span::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-inline: 0.6em;
  border-radius: var(--radius-full);
  background: currentColor;
  vertical-align: middle;
}
.article-authors {
  font-weight: 600;
  color: var(--color-text);
}
/* On a narrow screen the citation and the site name each get a line, without the dot between. */
@media (max-width: 39.99rem) {
  .article-meta {
    flex-direction: column;
  }
  .article-meta span + span::before {
    content: none;
  }
}
/* Level 3: labeled content */
.article-label,
.article-fields dt {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.article-outcome {
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-accent);
  max-width: 60rem;
}
.article-outcome .article-label {
  margin-bottom: 0.125rem;
}
.article-outcome p + p {
  margin-top: var(--space-3);
}
.article-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}
/* Widths in rem follow the browser's text size: with enlarged text on a phone the fields stack. */
@media (max-width: 19.9rem) {
  .article-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
.article-field {
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.article-field:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.article-fields dd {
  margin-top: 0.125rem;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
}
/* Four fields: domain, evidence type, aggregation, developer involvement (the longest text). */
@media (min-width: 40rem) {
  .article-fields {
    grid-template-columns: 0.9fr 1.1fr 0.8fr 1.6fr;
  }
  .article-field:last-child:nth-child(odd) {
    grid-column: auto;
  }
}
.ev {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
}
.ev::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--ev-color, var(--data-main));
  transform: translateY(-1px);
}
/* A combined evidence type shows one marker for each type. */
.ev + .ev {
  margin-left: 0.4em;
}
.ev[data-ev='Impact'] {
  --ev-color: var(--data-main);
}
.ev[data-ev='Adoption'] {
  --ev-color: var(--data-slate);
}
.ev[data-ev='Capability'] {
  --ev-color: var(--data-gold);
}
.page-contact {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--color-accent-soft);
  border-left: 4px solid var(--color-accent-ink);
  border-radius: var(--radius-md);
  max-width: 52rem;
}
.page-contact svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--color-accent-ink);
}
.page-contact p {
  max-width: none;
  color: var(--color-text);
}
.page-contact strong {
  font-weight: 600;
}
.page-contact .contact-address {
  overflow-wrap: anywhere;
}
/* Paging line under the list: how many sources are shown, and buttons to show more. */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  margin-top: var(--space-5);
}
.pager-status {
  font-weight: 600;
  max-width: none;
}
.pager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footnote {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: 80ch;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-16) var(--space-6);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.empty-state svg {
  width: 40px;
  height: 40px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.empty-state h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}
.empty-state p {
  color: var(--color-text-muted);
  max-width: 40ch;
  margin-block: var(--space-2) var(--space-5);
}

/* ==========================================================================
   Home page: findings in detail and static figures (bars, heat table, dot
   plot, diagram). The markup is generated by explorer-tools/build_home_figures.py.
   ========================================================================== */
.findings-list li > div {
  min-width: 0;
}
.finding-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 500;
}
.finding-more svg {
  width: 1em;
  height: 1em;
  flex: none;
}

.finding-block {
  display: grid;
  gap: clamp(var(--space-5), 3vw, var(--space-10));
  padding-block: clamp(var(--space-8), 4vw, var(--space-12));
  border-top: 1px solid var(--color-border-strong);
  scroll-margin-top: 5rem;
}
.finding-block > * {
  min-width: 0;
}
.finding-copy h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 28ch;
}
.finding-block--wide .finding-copy h3 {
  max-width: 34ch;
}
.finding-copy p {
  margin-top: var(--space-4);
  max-width: 62ch;
}
.finding-copy .finding-num {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.finding-figs {
  display: grid;
  gap: clamp(var(--space-5), 2.5vw, var(--space-8));
}
.finding-figs > * {
  min-width: 0;
}
@media (min-width: 62rem) {
  .finding-block:not(.finding-block--wide) {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.5fr);
    align-items: start;
  }
}
/* The text column stays in view beside its figures only where the whole column fits on screen. */
@media (min-width: 62rem) and (min-height: 54rem) {
  .finding-block:not(.finding-block--wide) .finding-copy {
    position: sticky;
    top: var(--space-24);
  }
}

/* Figure shell */
.static-figure .figure-title {
  margin-top: 0;
}
.fig-panels,
.fig-stack {
  display: grid;
  gap: clamp(var(--space-6), 3vw, var(--space-10));
  margin-top: var(--space-5);
}
.fig-panels > *,
.fig-stack > * {
  min-width: 0;
}
@media (min-width: 62rem) {
  .fig-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.fig-panel-title {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
}

/* Horizontal bars: label, bar on a shared scale, value */
.sbars {
  --label: 13.5rem;
  --value: 3.75rem;
  margin-top: var(--space-4);
}
.sbars--wide-value {
  --value: 6.75rem;
}
.sbars--narrow-label {
  --label: 9.5rem;
}
.sbar {
  display: grid;
  grid-template-columns: var(--label) minmax(0, 1fr) var(--value);
  align-items: center;
  column-gap: var(--space-3);
  padding-block: 0.3rem;
  max-width: none;
}
.sbar-label {
  font-size: var(--text-sm);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.sbar-sub {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.sbars--tight .sbar-sub {
  display: inline;
}
.sbar-track {
  position: relative;
  height: 1.375rem;
  /* A faint line at every axis tick. */
  background-image: linear-gradient(to right, var(--color-border) 1px, transparent 1px);
  background-size: calc(100% / var(--ticks)) 100%;
  border-right: 1px solid var(--color-border);
}
.sbars--ticks-55 .sbar-track {
  background-size: calc(100% / 5.5) 100%;
  border-right: 0;
}
.sbar-fill {
  position: absolute;
  inset: 0.125rem auto 0.125rem 0;
  width: calc(var(--v) / var(--max) * 100%);
  min-width: 2px;
  background: var(--data-main);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.sbar--muted .sbar-fill {
  background: var(--data-main-2);
}
.sbar--alt .sbar-fill {
  background: var(--data-rose);
}
.sbar--accent .sbar-fill {
  background: var(--data-accent);
  box-shadow: inset 0 0 0 2px var(--data-accent-edge);
}
.sbar-value {
  font-size: var(--text-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.sbar--total {
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.sbar--total .sbar-label {
  font-weight: 600;
}
/* Confidence interval drawn over the end of a bar. The light outline keeps it visible on the bar and off it. */
.sbar-ci {
  position: absolute;
  top: 50%;
  left: calc(var(--lo) / var(--max) * 100%);
  width: calc((var(--hi) - var(--lo)) / var(--max) * 100%);
  height: 2px;
  margin-top: -1px;
  background: var(--color-text);
  box-shadow: 0 0 0 1px var(--color-surface);
}
.sbar-ci::before,
.sbar-ci::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 2px;
  height: 10px;
  background: var(--color-text);
  box-shadow: 0 0 0 1px var(--color-surface);
}
.sbar-ci::before {
  left: 0;
}
.sbar-ci::after {
  right: 0;
}
.sbar-axis {
  display: grid;
  grid-template-columns: var(--label, 13.5rem) minmax(0, 1fr) var(--value, 3.75rem);
  column-gap: var(--space-3);
  margin-top: var(--space-1);
}
.sbars--wide-value + .sbar-axis {
  --value: 6.75rem;
}
.sbars--narrow-label + .sbar-axis,
.sbar-axis--narrow {
  --label: 9.5rem;
}
.sbar-ticks {
  position: relative;
  height: 1.5rem;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums lining-nums;
}
.sbar-ticks span {
  position: absolute;
  left: calc(var(--t) / var(--max) * 100%);
  transform: translateX(-50%);
  white-space: nowrap;
}
.sbar-ticks span:first-child {
  transform: none;
}
.sbar-axis-title {
  margin-left: calc(var(--label, 13.5rem) + var(--space-3));
  max-width: none;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.sbars--narrow-label ~ .sbar-axis-title,
.sbar-axis-title--narrow {
  --label: 9.5rem;
}
@media (max-width: 40rem) {
  /* Small screens: label and value share a line, and the bar runs the full width below them. */
  .sbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'label value'
      'track track';
    align-items: end;
    row-gap: 0.25rem;
    padding-block: 0.4rem;
  }
  .sbar-label {
    grid-area: label;
  }
  .sbar-track {
    grid-area: track;
  }
  .sbar-value {
    grid-area: value;
  }
  .sbar-axis {
    display: block;
  }
  .sbar-axis > :not(.sbar-ticks) {
    display: none;
  }
  .sbar-axis .sbar-ticks {
    display: block;
  }
  .sbar-axis-title,
  .sbars--narrow-label ~ .sbar-axis-title,
  .sbar-axis-title--narrow {
    margin-left: 0;
  }
}

/* Grouped bars */
.sgroups {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.sgroup {
  max-width: none;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.sgroup:first-child {
  padding-top: 0;
  border-top: 0;
}
.sgroup-title {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
  max-width: none;
}
.sgroup .sbars {
  margin-top: var(--space-1);
}
.sbars--tight .sbar {
  padding-block: 0.15rem;
}
.sbar--main .sbar-fill {
  background: var(--data-main);
}

/* One bar split into parts */
.stack {
  display: flex;
  gap: 2px;
  height: 2.25rem;
  margin-top: var(--space-4);
}
.stack-seg {
  flex: 0 0 calc(var(--v) * 1%);
  min-width: 4px;
}
.stack-seg--pos {
  background: var(--data-main);
}
.stack-seg--neg {
  background: var(--data-rose);
}
.stack-seg--both {
  background: repeating-linear-gradient(135deg, var(--data-main) 0 5px, var(--data-rose) 5px 10px);
}
.stack-seg--none {
  background: var(--data-neutral);
  box-shadow: inset 0 0 0 1px var(--data-neutral-edge);
}
.stack-key {
  display: grid;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
}
.stack-key li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2em 0.5em;
  max-width: none;
}
.stack-key strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
}
.stack-swatch {
  flex: none;
  width: 1rem;
  height: 1rem;
  border-radius: 2px;
}
@media (min-width: 36rem) {
  .stack-key {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Dot plot: one row per activity, one marker per chatbot */
.dot-key {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
}
.dot-key li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  max-width: none;
}
.dot-key .dot {
  position: static;
  transform: none;
  flex: none;
}
.dot-key .dot--c {
  transform: rotate(45deg) scale(0.85);
}
.dot-key-n {
  color: var(--color-text-muted);
}
.dots {
  --label: 12.5rem;
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.dot-row {
  display: grid;
  grid-template-columns: var(--label) minmax(0, 1fr);
  align-items: center;
  column-gap: var(--space-3);
  max-width: none;
  padding-right: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.dot-row.is-key {
  background: var(--color-accent-soft);
}
.dot-label {
  padding: var(--space-2) 0 var(--space-2) var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.25;
}
.dot-row.is-key .dot-label {
  font-weight: 600;
}
.dot-track {
  position: relative;
  height: 5rem;
  background-image: linear-gradient(to right, var(--color-border) 1px, transparent 1px);
  background-size: calc(100% / var(--ticks)) 100%;
  border-right: 1px solid var(--color-border);
}
.dot {
  position: absolute;
  left: calc(var(--v) / var(--max) * 100%);
  width: 0.8125rem;
  height: 0.8125rem;
  transform: translate(-50%, -50%);
}
.dot--a {
  top: 20%;
  border-radius: 50%;
  background: var(--data-main);
}
.dot--b {
  top: 40%;
  background: var(--data-accent);
  border: 2px solid var(--data-accent-edge);
}
.dot--c {
  top: 60%;
  background: var(--data-slate);
  transform: translate(-50%, -50%) rotate(45deg) scale(0.85);
}
.dot--d {
  top: 80%;
  width: 0.9375rem;
  background: var(--data-rose);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.sbar-axis--dots {
  --label: 12.5rem;
  --value: 0px;
  column-gap: 0;
  padding-right: 0.75rem;
}
.sbar-axis--dots .sbar-ticks {
  margin-left: var(--space-3);
}
.sbar-axis-title--dots {
  --label: 12.5rem;
}
@media (max-width: 40rem) {
  .dot-row {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 0.75rem;
  }
  .dot-label {
    padding: var(--space-2) 0 0;
  }
  .dot-track {
    height: 4.5rem;
  }
  .sbar-axis--dots {
    padding-inline: 0.75rem;
  }
  .sbar-axis--dots .sbar-ticks {
    margin-inline: 0;
  }
  .sbar-axis--dots > :last-child {
    margin-left: 0;
  }
}

/* Heat table */
.heat-scroll {
  margin-top: var(--space-5);
}
.heat {
  width: 100%;
  min-width: 47rem;
  border-collapse: separate;
  border-spacing: 3px;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums lining-nums;
}
.heat thead th {
  padding: var(--space-1) var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  vertical-align: bottom;
}
.heat thead .heat-group {
  padding-bottom: var(--space-2);
  font-weight: 600;
  border-bottom: 2px solid var(--color-primary);
}
.heat thead .heat-group-b {
  width: 9.5rem;
  border-bottom-color: var(--data-accent-edge);
}
/* Every body row is the same height at every screen size. The row header is
   always a fixed number of lines: on wide screens the label and the count
   each stay on one line (two lines in all); on narrower screens the label may
   use two lines and the count one (three lines in all). The cell heights are
   fixed to match, and home.js evens the rows out again if a browser setting
   ever makes a label wrap further. */
.heat tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  height: calc(2.5em + 2 * var(--space-1));
  min-width: 11.5rem;
  padding: var(--space-1) var(--space-3) var(--space-1) 0;
  background: var(--color-surface);
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
}
.heat tbody td {
  line-height: 1.25;
}
.heat-label {
  display: block;
}
.heat-n {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
}
.heat-cell {
  width: 9.5%;
  padding: 0.6rem 0.25rem;
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--color-accent-ink) var(--mix), var(--color-surface));
  color: var(--color-text);
  font-weight: 500;
  text-align: center;
}
.heat-cell.is-deep {
  color: #fff;
}
.heat-better {
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(to right, var(--color-accent) calc(var(--v) * 1%), var(--color-accent-soft) 0);
  color: var(--color-text);
  font-weight: 600;
  text-align: left;
}
/* The totals row keeps its rule above, inside the same row height. */
.heat-all th,
.heat-all td {
  border-top: 2px solid var(--color-border-strong);
}
.heat tbody .heat-all th {
  padding-block: 2px;
  font-weight: 700;
}
.heat-all .heat-cell,
.heat-all .heat-better {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.heat-hint {
  display: none;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
@media (max-width: 71.99rem) {
  .heat tbody th {
    width: 10em;
    min-width: 10em;
    height: calc(3.75em + 2 * var(--space-1));
    white-space: normal;
  }
  .heat-n {
    white-space: nowrap;
  }
  .heat-n-rest {
    display: none;
  }
}
@media (max-width: 56rem) {
  .heat-hint {
    display: block;
  }
  .heat tbody th {
    box-shadow: 4px 0 0 var(--color-surface);
  }
}

/* Hero card: three key numbers */
.keystats {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-5);
}
.keystats li {
  max-width: none;
}
.keystat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
  line-height: 1;
  color: var(--color-primary);
  font-variant-numeric: lining-nums;
}
.keystat-num span {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
}
.keystat-label {
  margin-top: var(--space-1);
  max-width: none;
}
.keystat-num span {
  white-space: nowrap;
}
.keystat-base {
  margin-top: var(--space-3);
  max-width: none;
}
/* Each bar spans all adults. The outlined part is adults who use chatbots; the filled part is the estimate. */
.keystat-bar {
  position: relative;
  display: block;
  height: 0.875rem;
  margin-top: var(--space-2);
  border-radius: var(--radius-sm, 4px);
  background: var(--data-neutral);
  box-shadow: inset 0 0 0 1px var(--color-border-strong);
}
.keystat-users,
.keystat-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 1%);
  border-radius: inherit;
}
.keystat-users {
  background: var(--color-surface);
  box-shadow: inset 0 0 0 2px var(--data-main);
}
.keystat-fill {
  background: var(--data-main);
}
.keystat-share {
  margin-top: var(--space-2);
  max-width: none;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.keystat-key {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.keystat-key li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: none;
}
.keystat-swatch {
  flex: none;
  width: 1.5rem;
  height: 0.75rem;
  border-radius: var(--radius-sm, 4px);
  background: var(--data-neutral);
  box-shadow: inset 0 0 0 1px var(--color-border-strong);
}
.keystat-swatch--users {
  background: var(--color-surface);
  box-shadow: inset 0 0 0 2px var(--data-main);
}
.keystat-swatch--fill {
  background: var(--data-main);
  box-shadow: none;
}

/* About the data */
.about-data {
  padding-bottom: 0;
}
.data-grid {
  display: grid;
  gap: clamp(var(--space-6), 4vw, var(--space-16));
  padding-bottom: clamp(var(--space-12), 7vw, var(--space-24));
  border-bottom: 1px solid var(--color-border-strong);
}
.data-grid > * {
  min-width: 0;
}
@media (min-width: 62rem) {
  .data-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: end;
  }
}
.data-text {
  margin-top: var(--space-4);
  max-width: 66ch;
}
.data-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-5);
}
.data-file-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.data-glance {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Three items: the sample takes the first row and the two counts share the second. */
.data-glance div:first-child {
  grid-column: 1 / -1;
}
@media (min-width: 48rem) {
  .data-glance.glance div {
    border-bottom: 1px solid var(--color-border);
  }
}

/* Findings in detail: heading band and quotations */
.detail-band {
  background: var(--color-ink);
  color: var(--color-on-ink);
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
.detail-band h2.display {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1.1;
  color: inherit;
}
.detail-band h2.display::after {
  content: '';
  display: block;
  width: 4.5rem;
  height: 4px;
  margin-top: var(--space-5);
  border-radius: var(--radius-full);
  background: var(--color-accent);
}
.detail-body {
  padding-bottom: clamp(var(--space-12), 7vw, var(--space-24));
}
.detail-body > .finding-block:first-child {
  border-top: 0;
}
/* A finding may carry one quotation. Blocks without one keep the plain layout. */
.finding-quote {
  margin: var(--space-6) 0 0;
  padding: var(--space-1) 0 var(--space-1) var(--space-5);
  border-left: 4px solid var(--color-primary);
  max-width: 62ch;
}
.finding-copy .finding-quote blockquote p {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.finding-quote blockquote p::before {
  content: '\201C';
}
.finding-quote blockquote p::after {
  content: '\201D';
}
.finding-quote figcaption {
  margin-top: var(--space-3);
  max-width: none;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.finding-quote-who {
  font-weight: 600;
  color: var(--color-text);
}
@media (min-width: 62rem) {
  .finding-block--wide .finding-copy--quoted {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(var(--space-8), 4vw, var(--space-16));
    align-items: end;
  }
  .finding-block--wide .finding-copy--quoted .finding-quote {
    margin-top: 0;
  }
}

/* ==========================================================================
   HAI style: type, bands, and figures
   ========================================================================== */
h1,
h2.display,
.finding-copy h3,
.wordmark {
  font-weight: 500;
  letter-spacing: -0.03em;
}
.wordmark {
  color: var(--color-text);
}
h2.display {
  color: var(--color-primary);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem);
}
.btn {
  border-radius: var(--radius-full);
  font-weight: 500;
}
.share-btn {
  font-weight: 500;
}
.site-nav .btn {
  border-radius: var(--radius-full);
}
.eyebrow,
.ex-controls-title {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}
/* Hero */
.hero {
  background: var(--color-primary);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero .lede,
.hero-contact {
  color: #fff;
}
.hero-contact a {
  color: var(--color-accent);
}
.hero :focus-visible {
  outline-color: var(--color-focus-on-ink);
}
.hero .figure-card :focus-visible {
  outline-color: var(--color-focus);
}
.hero .btn-primary {
  background: var(--color-accent);
  color: var(--color-ink);
}
.hero .btn-primary:hover {
  background: #fff;
  color: var(--color-ink);
}
.hero .btn-secondary {
  color: #fff;
  border-color: rgb(255 255 255 / 0.65);
}
.hero .btn-secondary:hover {
  background: rgb(255 255 255 / 0.14);
  color: #fff;
}
@media (min-width: 62rem) {
  .hero-actions {
    gap: var(--space-2);
  }
  .hero-actions .btn {
    gap: 0.4rem;
    min-height: 44px;
    padding: var(--space-2) 0.9rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}
/* Findings: three, then two of the same width centered beneath the gaps */
@media (min-width: 68rem) {
  .findings-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .findings-list li {
    grid-column: span 2;
  }
  .findings-list li:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .findings-list li:nth-child(5) {
    grid-column: 4 / span 2;
  }
}
.finding-stat {
  font-weight: 500;
}
.finding-text strong {
  font-weight: 600;
  color: var(--color-primary);
}
/* Findings in detail */
.figures {
  background: var(--color-primary-soft);
}
.finding-block {
  border-top-color: rgb(0 95 163 / 0.3);
}
.finding-copy h3 {
  color: var(--color-primary);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  line-height: 1.15;
}
.finding-quote {
  padding: 0;
  border-left: 0;
}
.finding-copy .finding-quote blockquote p {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--color-primary);
}
/* Figure shell: flat white, black type */
.static-figure,
.hero .figure-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.static-figure .figure-title,
.hero .figure-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  color: #000;
}
.static-figure .figure-sub,
.hero .figure-sub {
  margin-top: 0.2rem;
  font-size: 0.875rem;
  color: #444;
}
.static-figure .share-btn,
.hero .share-btn {
  min-height: 32px;
  margin-block: -0.25rem;
  border-color: transparent;
}
/* HAI charts */
.hc-grid {
  display: grid;
  gap: var(--space-8) var(--space-6);
  margin-top: var(--space-5);
}
.hc-grid > * {
  min-width: 0;
}
@media (min-width: 62rem) {
  .hc-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.hc-title {
  max-width: none;
  margin-bottom: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #000;
}
.hc-title b {
  margin-right: 0.45em;
}
.hc-sub {
  max-width: none;
  margin: -0.45rem 0 0.6rem;
  font-size: 0.8125rem;
  color: #444;
}
.hc {
  --label: 12.5rem;
  --row: 2.1rem;
  padding-right: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.2;
  color: #000;
}
.hc-row,
.hc-axis {
  display: grid;
  grid-template-columns: var(--label) minmax(0, 1fr);
  column-gap: 0.5rem;
  max-width: none;
}
.hc-label {
  align-self: center;
  padding-block: 0.1rem;
  text-align: right;
}
.hc-row--total .hc-label {
  padding-bottom: 0.7rem;
  font-weight: 700;
}
.hc--dots .hc-row--total .hc-label {
  padding-bottom: 0.1rem;
}
.hc-plot {
  position: relative;
  min-height: var(--row);
  border-left: 1.5px solid #000;
  background: linear-gradient(to right, transparent calc(100% - 1px), var(--hai-grid) 0) 0 0 / calc(100% * var(--step) / var(--max)) 100%;
}
.hc-row--total .hc-plot {
  min-height: calc(var(--row) + 0.7rem);
}
.hc--dots .hc-row--total .hc-plot {
  min-height: var(--row);
}
.hc-row--total .hc-plot::after {
  content: '';
  position: absolute;
  inset: auto 0 0.05rem;
  border-top: 1px dashed #7f7f7f;
}
.hc-row--total {
  --h: calc(100% - 0.7rem);
}
.hc-bar {
  position: absolute;
  top: calc(var(--h, 100%) * 0.18);
  left: 0;
  width: calc(var(--v) / var(--max) * 100%);
  height: calc(var(--h, 100%) * 0.64);
  background: var(--fill, var(--hai-blue));
}
.hc-ci {
  position: absolute;
  top: calc(var(--h, 100%) * 0.5 - 4px);
  left: calc(var(--lo) / var(--max) * 100%);
  width: calc((var(--hi) - var(--lo)) / var(--max) * 100%);
  height: 8px;
  border: solid #444;
  border-width: 0 1px;
  background: linear-gradient(#444, #444) 0 50% / 100% 1px no-repeat;
}
.hc-val {
  position: absolute;
  top: calc(var(--h, 100%) * 0.5);
  left: calc(var(--end, var(--v)) / var(--max) * 100% + 0.35rem);
  transform: translateY(-50%);
  color: var(--ink, var(--hai-blue));
  font-size: 0.8125rem;
  white-space: nowrap;
}
.hc-ticks {
  position: relative;
  height: 1.7rem;
  border-top: 1.5px solid #000;
  margin-left: 0;
}
.hc-ticks span {
  position: absolute;
  top: 0.5rem;
  left: calc(var(--t) / var(--max) * 100%);
  transform: translateX(-50%);
  white-space: nowrap;
}
.hc-ticks span::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.1rem);
  height: 0.3rem;
  border-left: 1px solid #444;
}
.hc-xlabel {
  max-width: none;
  margin: 0.4rem 0 0 calc(var(--label) + 0.5rem);
  text-align: center;
}
/* Two bars per row */
.hc--pair {
  --row: 2.9rem;
}
.hc--pair .hc-bar {
  height: 33%;
}
.hc--pair .hc-bar.is-1 {
  top: 15%;
}
.hc--pair .hc-bar.is-2 {
  top: 50%;
}
.hc--pair .hc-val.is-1 {
  top: 31.5%;
}
.hc--pair .hc-val.is-2 {
  top: 66.5%;
}
/* Series colors. Text takes a darker step where the fill is too light to read. */
.c-pos {
  --fill: var(--hai-blue);
  --ink: var(--hai-blue);
}
.c-pos-soft {
  --fill: #b3d9f1;
  --ink: #1a5a95;
}
.c-neg {
  --fill: var(--hai-plum);
  --ink: var(--hai-plum);
}
.c-neg-soft {
  --fill: #d98bea;
  --ink: #862995;
}
.c-both {
  --fill: repeating-linear-gradient(135deg, var(--hai-blue) 0 6px, #fff 6px 7.5px, var(--hai-plum) 7.5px 11px, #fff 11px 12.5px);
}
.c-none {
  --fill: var(--hai-gray);
}
.c-navy {
  --fill: var(--hai-navy);
  --ink: var(--hai-navy);
}
/* Stacked bars */
.hc--stack {
  --row: 3.6rem;
}
.hc-seg {
  position: absolute;
  top: 40%;
  left: calc(var(--s) * 1%);
  width: calc(var(--v) * 1%);
  height: 48%;
  background: var(--fill);
  box-shadow: 1px 0 0 #fff;
}
.hc-segval {
  position: absolute;
  top: 10%;
  left: calc((var(--s) + var(--v) / 2) * 1%);
  transform: translateX(-50%);
  font-size: 0.8125rem;
}
/* Legends: thin black frame, square swatches */
.hc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.9rem auto 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid #000;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: #000;
}
.hc-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  max-width: none;
}
.hc-legend--grid {
  display: grid;
  grid-template-columns: auto;
}
@media (min-width: 48rem) {
  .hc-legend--grid {
    grid-template-columns: auto auto;
  }
}
.hc-swatch {
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--fill);
}
/* Dots */
.hc--dots {
  --row: 2.5rem;
}
.hc--dots .hc-plot::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid #f0f0f0;
}
.hc--dots .hc-row--total {
  --h: 100%;
}
.hc--dots .hc-row--total .hc-plot::after {
  content: none;
}
.hc--dots .hc-row--last .hc-plot::after {
  content: '';
  inset: auto 0 0;
}
.hc-dot {
  position: absolute;
  top: var(--y);
  left: calc(var(--v) / var(--max) * 100%);
  width: 0.72rem;
  height: 0.72rem;
  transform: translate(-50%, -50%);
}
.hc-dot.is-chatgpt {
  --y: 27%;
  border-radius: 50%;
  background: var(--hai-blue);
}
.hc-dot.is-gemini {
  --y: 50%;
  background: var(--hai-lavender);
  border: 1.5px solid var(--hai-magenta);
}
.hc-dot.is-claude {
  --y: 73%;
  background: var(--hai-navy);
  transform: translate(-50%, -50%) rotate(45deg) scale(0.86);
}
.hc-all {
  position: absolute;
  top: 18%;
  left: calc(var(--v) / var(--max) * 100%);
  width: 2px;
  height: 64%;
  margin-left: -1px;
  background: #000;
}
.hc-legend .hc-dot,
.hc-legend .hc-all {
  position: static;
  flex: none;
  transform: none;
  margin: 0;
}
.hc-legend .hc-dot.is-claude {
  transform: rotate(45deg) scale(0.86);
}
.hc-legend .hc-all {
  height: 0.95rem;
}
/* Heat table */
.hh {
  width: 100%;
  min-width: 46rem;
  border-collapse: separate;
  border-spacing: 2px;
  font-size: 0.875rem;
  line-height: 1.2;
  color: #000;
}
.hh thead th {
  padding: 0.15rem 0.3rem 0.4rem;
  font-weight: 400;
  text-align: center;
  vertical-align: bottom;
}
.hh thead tr:first-child th {
  padding-bottom: 0.25rem;
}
.hh thead th.hh-panel {
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}
.hh tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 20rem;
  padding-right: 0.5rem;
  background: #fff;
  font-weight: 400;
  text-align: right;
}
.hh td {
  width: 9.5%;
  height: 2.1rem;
  text-align: center;
}
.hh td.hh-bar {
  width: 14%;
  padding: 0 0 0 0.6rem;
}
.hh-plot {
  position: relative;
  display: block;
  height: 2.1rem;
  background: linear-gradient(to right, transparent calc(100% - 1px), var(--hai-grid) 0) 0 0 / 50% 100%;
  --max: 100;
}
.hh tr.hh-all th,
.hh tr.hh-all td {
  font-weight: 700;
}
.hh tr.hh-all > * {
  border-top: 0.6rem solid #fff;
}
@media (max-width: 56rem) {
  .hh tbody th {
    width: 9.5rem;
    min-width: 9.5rem;
  }
}
@media (max-width: 40rem) {
  .hc {
    --label: 7.5rem;
    padding-right: 1rem;
    font-size: 0.8125rem;
  }
  .hc--stack .hc-row,
  .hc--stack .hc-axis {
    grid-template-columns: minmax(0, 1fr);
  }
  .hc--stack .hc-label {
    text-align: left;
  }
  .hc-xlabel {
    margin-left: 0;
  }
  .hc-ticks:has(span:nth-child(6)) span:nth-child(even),
  .hc-segval.is-small {
    display: none;
  }
}
/* The hero figure is larger than the rest */
.hero .hc {
  --label: 8.5rem;
  --row: 4.2rem;
  margin-top: var(--space-5);
  padding-right: 1.5rem;
  font-size: 1rem;
}
.hero .hc-val {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.hero .hc-ticks,
.hero .hc-xlabel {
  font-size: 0.875rem;
}
@media (max-width: 40rem) {
  .hero .hc {
    --label: 6.5rem;
    --row: 3.4rem;
    font-size: 0.875rem;
  }
  .hero .hc-val {
    font-size: 1.35rem;
  }
}
/* Footer */
.site-footer h2 {
  font-size: 1rem;
  font-weight: 700;
}
.site-footer li a,
.site-footer .footer-text {
  min-height: 36px;
}
.footer-authors li {
  line-height: 1.9;
  color: var(--color-on-ink);
  max-width: none;
}
/* The survey on its own page */
.survey--page {
  padding-top: clamp(var(--space-10), 5vw, var(--space-16));
  background: var(--color-primary-soft);
}
.survey--page h1 {
  color: var(--color-primary);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem);
}
.explorer-head .head-actions {
  margin-top: var(--space-3);
}
.explorer-head .head-actions .btn {
  background: var(--color-surface);
}
