:root {
  color-scheme: light;
  /* Anchor scrolling has to clear the sticky header. The header is not one
     height: the nav moves to a second row below 72rem and takes two lines
     below 46rem, so this tracks it at each breakpoint. */
  --header-offset: 5rem;
  --paper: #f8f7f5;
  --surface: #ffffff;
  --surface-muted: #f1efec;
  --ink: #1c1917;
  --ink-soft: #49423e;
  --muted: #716965;
  --rule: #e4dfdb;
  --rule-soft: #efebe7;
  --crimson: #a51c30;
  --crimson-dark: #7f1425;
  --crimson-tint: #fbf0f2;
  --success: #2d6a4f;
  --success-tint: #edf7f1;
  --amber: #8a5d00;
  --amber-tint: #fdf6e6;
  --font-display: "Crimson Text", Georgia, Cambria, "Times New Roman", serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --text-body: 1.05rem;
  --text-small: 0.9375rem;
  --text-label: 0.8125rem;
  --text-meta: 0.75rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 12px 32px -20px rgba(28, 25, 23, 0.22);
  --shadow-lift: 0 2px 4px rgba(28, 25, 23, 0.05), 0 26px 54px -30px rgba(28, 25, 23, 0.34);
  --ease: cubic-bezier(0.2, 0.6, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  -webkit-text-size-adjust: 100%;
}

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

::selection {
  background: color-mix(in srgb, var(--crimson) 18%, transparent);
  color: var(--ink);
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

a {
  color: var(--crimson-dark);
  text-decoration-color: color-mix(in srgb, var(--crimson) 34%, transparent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

:is(a, button, summary, [tabindex]):focus-visible {
  border-radius: 0.2rem;
  outline: 3px solid color-mix(in srgb, var(--crimson) 68%, white);
  outline-offset: 3px;
}

.wrap {
  width: min(100%, 76rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  border-radius: 0.4rem;
  background: var(--surface);
  color: var(--ink);
  padding: 0.65rem 1rem;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow,
.chip,
.button,
.nav,
.catalog-count,
.preview-number,
.preview-status,
.dataset-type,
.footer__links {
  font-family: var(--font-mono);
}

.eyebrow {
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow > span {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.55rem;
  border-radius: 2px;
  background: var(--crimson);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 84%, transparent);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
}

/* A hairline of brand colour riding the bottom edge of the sticky bar. */
.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--crimson) 0,
    color-mix(in srgb, var(--crimson) 45%, transparent) 22%,
    transparent 55%
  );
}

.topbar__inner {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand > span:last-child > span {
  color: var(--crimson);
}

.brand__mark {
  width: 0.7rem;
  height: 0.7rem;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--crimson);
  box-shadow: 0.32rem 0.32rem 0 color-mix(in srgb, var(--crimson) 22%, transparent);
  transition: box-shadow 220ms var(--ease);
}

.brand:hover .brand__mark {
  box-shadow: 0.32rem 0.32rem 0 color-mix(in srgb, var(--crimson) 40%, transparent);
}

.affiliation {
  margin-right: auto;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1rem;
  text-decoration: none;
}

.affiliation:hover {
  color: var(--crimson);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: var(--text-label);
  letter-spacing: 0.04em;
  padding-block: 0.15rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms var(--ease);
  white-space: nowrap;
}

/* Underline grows from the left rather than snapping in. */
.nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}

.nav a:hover {
  color: var(--crimson-dark);
}

.nav a:hover::after {
  transform: scaleX(1);
}

/* Separates the page's own sections from links that leave the site. */
.nav__divider {
  width: 1px;
  height: 1.05rem;
  flex-shrink: 0;
  background: var(--rule);
}

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
}

/* Two soft washes so the fold reads warmer than the sections below it. */
.hero::before {
  content: "";
  position: absolute;
  inset: -6rem 0 0;
  z-index: -1;
  background:
    radial-gradient(52rem 30rem at 82% -12%, color-mix(in srgb, var(--crimson) 9%, transparent), transparent 68%),
    radial-gradient(40rem 26rem at 4% 8%, color-mix(in srgb, var(--surface) 88%, transparent), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(21rem, 0.97fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero h1 {
  margin-top: 1.15rem;
  font-size: clamp(2.5rem, 1.5rem + 2.7vw, 3.65rem);
  letter-spacing: -0.035em;
}

.hero h1 br {
  display: none;
}

@media (min-width: 34rem) {
  .hero h1 br {
    display: inline;
  }
}

.hero h1 em {
  color: var(--crimson);
  font-style: normal;
}

.hero__lede {
  max-width: 40rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.02rem + 0.33vw, 1.3rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 0.65rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.2;
  padding: 0.85rem 1.15rem;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: color-mix(in srgb, var(--crimson) 42%, var(--rule));
  box-shadow: 0 10px 26px -16px rgba(28, 25, 23, 0.34);
  color: var(--crimson-dark);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  border-color: var(--crimson);
  background: var(--crimson);
  color: white;
}

.button--primary:hover {
  border-color: var(--crimson-dark);
  background: var(--crimson-dark);
  box-shadow: 0 12px 28px -16px color-mix(in srgb, var(--crimson) 75%, transparent);
  color: white;
}

.hub-card {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 2px 3px rgba(28, 25, 23, 0.04), 0 24px 60px -36px rgba(165, 28, 48, 0.36);
  padding: clamp(1.25rem, 3vw, 1.65rem);
}

.hub-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.hub-card h2 {
  font-size: 1.7rem;
  letter-spacing: -0.015em;
}

.catalog-count {
  color: color-mix(in srgb, var(--crimson) 58%, var(--rule));
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.catalog-preview {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.3rem 0 0;
  border: 1px solid var(--rule);
  border-radius: 0.7rem;
  padding: 0;
  list-style: none;
}

.catalog-group {
  border-bottom: 1px solid var(--rule);
}

.catalog-group:last-child {
  border-bottom: 0;
}

.catalog-group__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--surface-muted) 55%, var(--surface));
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  padding: 0.55rem 1rem;
  text-transform: uppercase;
}

.catalog-group__count {
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.catalog-group__items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-group__items li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid var(--rule);
  padding: 1rem;
  transition: background-color 160ms var(--ease);
}

.catalog-group__items li:hover {
  background: color-mix(in srgb, var(--crimson-tint) 55%, var(--surface));
}

.catalog-group__items li:last-child {
  border-bottom: 0;
}

.preview-number {
  color: var(--crimson);
  font-size: var(--text-meta);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.catalog-preview strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
}

.catalog-preview small {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: var(--text-label);
  line-height: 1.5;
}

.preview-status {
  border: 1px dashed var(--rule);
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.43rem;
  text-transform: uppercase;
}

.preview-status--released {
  border-color: color-mix(in srgb, var(--success) 28%, var(--rule));
  border-style: solid;
  background: var(--success-tint);
  color: var(--success);
}

.preview-status--planned {
  border-color: color-mix(in srgb, var(--amber) 32%, var(--rule));
  border-style: dashed;
  background: var(--surface);
  color: var(--amber);
}

.section {
  margin-top: 0;
  border-top: 1px solid var(--rule);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-heading h2,
.roadmap-heading h2,
.about-grid h2 {
  margin-top: 0.55rem;
  font-size: clamp(2.05rem, 1.55rem + 1.45vw, 2.95rem);
  letter-spacing: -0.02em;
}

.roadmap-heading {
  margin-top: clamp(3rem, 7vw, 5rem);
  scroll-margin-top: 6rem;
}

.dataset-feature {
  overflow: hidden;
  margin-top: 2.5rem;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--crimson);
  border-radius: 0.9rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: box-shadow 260ms var(--ease);
}

.dataset-feature:hover {
  box-shadow: var(--shadow-lift);
}

.dataset-feature__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--crimson-tint) 60%, var(--surface)),
    var(--surface)
  );
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.dataset-feature--upcoming .dataset-feature__topline {
  background: linear-gradient(180deg, var(--surface-muted), var(--surface));
}

.dataset-feature h3 {
  margin-top: 0.55rem;
  font-size: clamp(2.05rem, 1.6rem + 1.45vw, 2.95rem);
  letter-spacing: -0.02em;
}

.dataset-feature__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.dataset-summary {
  max-width: 43rem;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.02rem + 0.28vw, 1.2rem);
  line-height: 1.6;
}

.dataset-feature__research {
  border-top: 1px solid var(--rule);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.takeaways {
  border-top: 1px solid var(--rule);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: color-mix(in srgb, var(--crimson-tint) 55%, var(--surface));
}

.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
  gap: 0.7rem 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.takeaway-grid > li {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: 0.85rem;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.03);
  padding: 1.1rem;
}

.takeaway-grid li > span {
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  align-items: center;
  justify-content: center;
  justify-self: start;
  margin-bottom: 0.55rem;
  border: 1px solid color-mix(in srgb, var(--crimson) 24%, var(--rule));
  border-radius: 999px;
  background: var(--crimson-tint);
  color: var(--crimson);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.takeaway-grid > li > p {
  color: var(--ink-soft);
  font-size: var(--text-small);
  line-height: 1.55;
}

.takeaway-grid strong {
  color: var(--ink);
}

.paper-figure {
  display: grid;
  /* caption, chart, and an optional note; the last track collapses without one. */
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  margin-top: 0.5rem;
}

.figure-note {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.5;
}

.figure-table {
  align-self: start;
}

.paper-figure > .native-chart {
  border: 1px solid var(--rule);
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--paper) 45%, var(--surface));
}

.paper-figure figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.paper-figure figcaption::before {
  content: "";
  width: 0.2rem;
  height: 0.8rem;
  flex-shrink: 0;
  align-self: center;
  border-radius: 1rem;
  background: var(--crimson);
}

.paper-figure figcaption strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.upcoming-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.upcoming-grid .dataset-feature {
  margin-top: 0;
}

.dataset-feature--upcoming {
  border-top-color: var(--ink-soft);
}

.dataset-feature--planned {
  border-top-color: var(--amber);
}

.dataset-feature[id] {
  scroll-margin-top: 6rem;
}

.dataset-facts {
  border: 1px solid var(--rule);
  border-radius: 0.65rem;
  background: var(--paper);
  padding: 0.3rem 1.2rem;
}

.dataset-facts > div {
  padding-block: 0.85rem;
}

.dataset-facts > div + div {
  border-top: 1px solid var(--rule);
}

.dataset-facts dt {
  color: var(--muted);
  font-size: var(--text-label);
}

.dataset-facts dd {
  margin-top: 0.15rem;
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: 500;
}

.dataset-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  border-top: 1px solid var(--rule);
}

.dataset-detail > .dataset-feature__research {
  border-top: 0;
}

.dataset-schema {
  min-width: 0;
  border-left: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 60%, var(--surface));
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

@media (max-width: 62rem) {
  .dataset-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .dataset-schema {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }
}

.dataset-release {
  min-width: 0;
  border-top: 1px solid var(--rule);
  background: var(--surface-muted);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.schema-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.schema-link {
  font-size: var(--text-label);
  white-space: nowrap;
}

.dataset-release p {
  max-width: 58rem;
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: var(--text-small);
}

.schema-note {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.5;
}

.schema-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 0.6rem;
  background: var(--surface);
}

.schema-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
  text-align: left;
}

.schema-table th,
.schema-table td {
  border-bottom: 1px solid var(--rule);
  padding: 0.75rem 1rem;
  vertical-align: top;
}

.schema-table thead {
  background: var(--paper);
}

.schema-table thead th {
  font-size: var(--text-label);
  font-weight: 600;
}

.schema-table tbody th {
  color: var(--ink);
  font-weight: 500;
}

.schema-table td {
  color: var(--ink-soft);
}

.schema-table tbody tr:last-child > * {
  border-bottom: 0;
}

.schema-table--compact {
  font-size: var(--text-label);
}

.schema-table--compact th,
.schema-table--compact td {
  padding: 0.45rem 0.85rem;
}

.schema-table--compact thead th {
  color: var(--muted);
  font-size: var(--text-meta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schema-table--compact thead th:last-child,
.schema-table--compact td {
  text-align: right;
}

.schema-table--compact tbody th {
  font-weight: 400;
  line-height: 1.6;
}

.schema-table--compact td {
  width: 1%;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.9em;
  white-space: nowrap;
}

.schema-table .schema-group th {
  background: var(--surface-muted);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: 0.02em;
}

/* Fields / Example switch: folder tabs resting on the table they show; revealed by tabs.js. */
.schema-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.3rem;
  margin-bottom: -1px;
}

.schema-tabs[hidden] {
  display: none;
}

.schema-tabs button {
  border: 1px solid var(--rule);
  border-top: 2px solid transparent;
  border-radius: 0.5rem 0.5rem 0 0;
  background: var(--surface-muted);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.45rem 1rem 0.4rem;
  text-transform: uppercase;
  transition: background-color 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
}

.schema-tabs button:hover {
  color: var(--ink);
}

.schema-tabs button[aria-selected="true"] {
  border-top-color: var(--crimson);
  border-bottom-color: var(--paper);
  background: var(--paper);
  color: var(--crimson);
}

/* The table's corner under the first tab is square, so the two read as one piece. */
.schema-tabs ~ .schema-scroll {
  border-top-left-radius: 0;
}

.schema-scroll[hidden] {
  display: none;
}

/* Example values sit beside their field, left-aligned and free to wrap. */
.schema-table--example tbody th {
  width: 40%;
}

.schema-table--example thead th:last-child,
.schema-table--example td {
  width: auto;
  color: var(--ink-soft);
  overflow-wrap: break-word;
  text-align: left;
  white-space: normal;
}

/* In a row of several values, each value stays whole and the row breaks between them. */
.schema-table--example td code:not(:only-child) {
  white-space: nowrap;
}

/* On a phone each value drops below its field rather than squeezing beside it. */
@media (max-width: 40rem) {
  .schema-table--example,
  .schema-table--example tbody,
  .schema-table--example tr,
  .schema-table--example th,
  .schema-table--example td {
    display: block;
    width: auto;
  }

  .schema-table--example thead {
    display: none;
  }

  .schema-table--example tbody th {
    width: auto;
  }

  .schema-table--example tbody tr:not(.schema-group) > th {
    border-bottom: 0;
    padding-bottom: 0.1rem;
  }

  .schema-table--example tbody tr:not(.schema-group) > td {
    padding-top: 0;
  }
}

.schema-table--example .tok-key { color: var(--crimson-dark); }
.schema-table--example .tok-str { color: var(--success); }
.schema-table--example .tok-num { color: var(--amber); }
.schema-table--example .tok-lit { color: var(--crimson); font-weight: 600; }

.schema-table--compact tbody tr {
  transition: background-color 140ms var(--ease);
}

.schema-table--compact tbody tr:hover {
  background: var(--paper);
}

.schema-sep {
  color: color-mix(in srgb, var(--muted) 45%, transparent);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.catalog-preview strong a {
  color: inherit;
  text-decoration: none;
}

.catalog-preview strong a:hover {
  color: var(--crimson-dark);
  text-decoration: underline;
}

.native-chart {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 0.85rem 0.45rem 0.6rem;
}

.native-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  touch-action: pan-y;
}

.native-chart svg:focus:not(:focus-visible) {
  outline: none;
}

.chart-surface {
  position: relative;
}

.chart-tick {
  fill: var(--muted);
  font-family: var(--font-body);
  font-size: 16px;
}

.chart-bar-value {
  fill: var(--ink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.chart-axis-label {
  fill: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
}

.chart-gridline {
  stroke: var(--rule);
  stroke-width: 1;
}

.chart-gridline--vertical {
  stroke-dasharray: 2 4;
  opacity: 0.7;
}

.chart-baseline {
  stroke: color-mix(in srgb, var(--muted) 45%, var(--rule));
  stroke-width: 1;
}

.chart-landmark {
  stroke: var(--muted);
  stroke-dasharray: 3 3;
}

.chart-cursor {
  stroke: var(--ink-soft);
  stroke-dasharray: 4 4;
  pointer-events: none;
}

.chart-tooltip {
  position: absolute;
  top: 0.5rem;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 0.5rem);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0.65rem 0.8rem;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.5;
  pointer-events: none;
}

.chart-tooltip-title {
  display: block;
  margin-bottom: 0.3rem;
}

.chart-tooltip-values > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.chart-tooltip-values dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chart-fallback {
  margin: 0;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: var(--text-small);
  text-align: center;
}

.chart-legend {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  margin: 0.45rem 0.3rem 0;
  border-top: 1px solid var(--rule);
  padding-top: 0.6rem;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.1rem;
  border: 1px solid transparent;
  border-radius: 0.3rem;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.3rem;
  text-align: left;
  cursor: pointer;
}

.chart-legend-item:hover {
  border-color: var(--rule);
  background: var(--surface);
}

.chart-legend-item[aria-pressed="false"] {
  color: var(--muted);
  text-decoration: line-through;
}

.chart-legend-item[aria-pressed="false"] .chart-swatch {
  opacity: 0.3;
}

.chart-swatch {
  width: 0.85rem;
  flex-shrink: 0;
  border-top: 3px solid var(--series-color);
}

.chart-swatch--dashed {
  border-top-style: dashed;
}

/* A stacked area has no series to toggle, so its legend is a key. Its bands are
   filled, so the swatch is a block rather than a rule. */
.chart-legend-item--static,
.chart-legend-item--static:hover {
  border-color: transparent;
  background: transparent;
  cursor: default;
}

.chart-legend-item--static .chart-swatch {
  height: 0.72rem;
  border-top: 0;
  border-radius: 0.15rem;
  background: var(--series-color);
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 0.3rem;
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  padding: 0.3rem 0.5rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip--available {
  border-color: color-mix(in srgb, var(--success) 30%, var(--rule));
  background: var(--success-tint);
  color: var(--success);
}

.chip--coming {
  border-style: dashed;
  background: var(--surface-muted);
}

.chip--planned {
  border-color: color-mix(in srgb, var(--amber) 32%, var(--rule));
  border-style: dashed;
  background: var(--surface);
  color: var(--amber);
}

.dataset-type {
  color: var(--crimson-dark);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.takeaways > h4,
.research-uses h4,
.dataset-schema h4,
.dataset-release h4 {
  font-family: var(--font-body);
  font-size: var(--text-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.research-uses ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  list-style: disc;
}

.research-uses li::marker {
  color: color-mix(in srgb, var(--crimson) 62%, transparent);
}

.research-uses li {
  color: var(--ink-soft);
  font-size: var(--text-body);
  line-height: 1.6;
}

.research-uses li + li {
  margin-top: 0.6rem;
}

.dataset-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 0.55rem;
  background: var(--rule);
  padding: 0;
  list-style: none;
}

.dataset-stats li {
  min-width: 0;
  background: var(--paper);
  padding: 0.75rem 0.7rem;
}

.dataset-stats strong,
.dataset-stats span {
  display: block;
}

.dataset-stats strong {
  color: var(--crimson);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.dataset-stats span {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: var(--text-meta);
  letter-spacing: 0.02em;
}

.card-links,
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 1rem;
}

.card-links a,
.about-links a {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 600;
  text-decoration: none;
}

.card-links a,
.about-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
}

.card-links a::before,
.about-links a::before {
  content: "→";
  color: var(--muted);
  transition: transform 180ms var(--ease), color 180ms var(--ease);
}

.card-links a:hover::before,
.about-links a:hover::before {
  color: var(--crimson);
  transform: translateX(2px);
}

.card-links--prominent a {
  font-size: var(--text-small);
}

.section--team {
  background: var(--surface);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.team-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.7fr);
  align-items: end;
  gap: 3rem;
}

.team-heading h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.6rem, 1.4rem + 0.72vw, 2.05rem);
  letter-spacing: -0.015em;
}

.team-heading > p {
  color: var(--muted);
  font-size: var(--text-small);
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 1.5rem 0 0;
  border-block: 1px solid var(--rule);
  padding: 0;
  list-style: none;
}

.team-list li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-block: 0.65rem;
  border-right: 1px solid var(--rule);
  padding: 0.15rem 1.2rem 0.15rem 0;
}

.team-list li + li {
  padding-left: 1.2rem;
}

.team-list li:last-child {
  border-right: 0;
}

.team-list a {
  color: var(--ink);
}

.team-list strong {
  font-size: var(--text-small);
}

.team-list span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.section--about {
  margin-top: 0;
  background: var(--crimson-tint);
}

.cite-block {
  overflow: hidden;
  margin-top: 1.35rem;
  border: 1px solid var(--rule);
  border-radius: 0.7rem;
  background: var(--surface);
}

.cite-block figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--surface-muted) 55%, var(--surface));
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: 0.13em;
  padding: 0.55rem 1rem;
  text-transform: uppercase;
}

.cite-copy {
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  padding: 0.2rem 0.7rem;
}

.cite-copy:hover {
  border-color: color-mix(in srgb, var(--crimson) 42%, var(--rule));
  color: var(--crimson-dark);
}

.cite-block pre {
  overflow-x: auto;
  margin: 0;
  color: var(--ink);
  font-size: var(--text-label);
  line-height: 1.6;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.about-copy {
  color: var(--ink-soft);
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-links {
  margin-top: 1.35rem;
}

.footer {
  border-top: 1px solid var(--rule);
  background: var(--surface);
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(9rem, 0.6fr));
  align-items: start;
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.25rem, 5vw, 3rem);
}

.footer__brand p {
  max-width: 24rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: var(--text-label);
}

.footer__nav h2 {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.footer__links a {
  color: var(--muted);
  font-size: var(--text-label);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms var(--ease);
  width: fit-content;
}

.footer__links a:hover {
  color: var(--crimson-dark);
}

.footer__legal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: var(--text-meta);
  padding-block: 1.2rem;
}

.footer__legal nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 1rem;
}

.footer__legal a {
  color: inherit;
}

@media (max-width: 72rem) {
  :root {
    --header-offset: 8.75rem;
  }

  /* The nav moves to its own scrollable row rather than disappearing. */
  .topbar__inner {
    flex-wrap: wrap;
    min-height: 0;
    padding-block: 0.85rem 0;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    border-top: 1px solid var(--rule);
    margin-top: 0.85rem;
    padding-block: 0.7rem;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 68rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__copy {
    max-width: 48rem;
  }

  .hub-card {
    max-width: 44rem;
  }
}

@media (max-width: 58rem) {
  .about-grid,
  .team-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .dataset-feature__intro,
  .takeaway-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .takeaway-grid {
    grid-template-rows: none;
    row-gap: 1.25rem;
  }

  .takeaway-grid > li {
    grid-row: auto;
    grid-template-rows: auto auto auto;
  }

  .dataset-stats {
    width: min(100%, 34rem);
  }

  .paper-figure {
    width: min(100%, 34rem);
    justify-self: center;
  }
}

@media (max-width: 46rem) {
  :root {
    --header-offset: 11rem;
  }

  .nav {
    flex-wrap: wrap;
    overflow-x: visible;
    row-gap: 0.55rem;
  }

  .affiliation {
    font-size: var(--text-small);
    text-align: right;
  }

  .footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .team-list {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-list li,
  .team-list li + li {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 0.7rem 0;
  }

  .team-list li:last-child {
    border-bottom: 0;
  }

  .footer__legal {
    flex-direction: column;
  }

  .footer__legal nav {
    justify-content: flex-start;
  }
}

@media (max-width: 31rem) {
  .affiliation {
    display: none;
  }

  .catalog-group__items li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .preview-status {
    grid-column: 2;
    justify-self: start;
  }

  .dataset-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .dataset-feature__topline {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 1rem;
  }
}

@media (pointer: coarse) {
  .chart-legend-item {
    min-height: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
  }

  .nav a::after {
    transform: scaleX(1);
    opacity: 0;
  }

  .nav a:hover::after {
    opacity: 1;
  }
}

@media print {
  .topbar,
  .skip-link,
  .actions,
  .chart-legend,
  .cite-copy {
    display: none;
  }

  body {
    background: white;
    font-size: 10pt;
  }

  .hero::before {
    display: none;
  }

  .dataset-feature,
  .hub-card,
  .takeaway-grid > li {
    break-inside: avoid;
    box-shadow: none;
  }

  a {
    text-decoration: none;
  }
}

/* The paper page: one paper per page, title first and largest, the authors on the line below it. */
.paper-page .wrap {
  max-width: 52rem;
}

.paper-title {
  margin-top: 0.7rem;
  font-size: clamp(2rem, 1.5rem + 2vw, 3.1rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.paper-authors {
  margin-top: 1.1rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
}

.paper-affiliations,
.paper-date {
  margin-top: 0.3rem;
  color: var(--muted);
}

.paper-page .card-links {
  margin-top: 1.4rem;
}

.paper-abstract {
  margin-top: 2.2rem;
  color: var(--ink-soft);
}

.paper-abstract h2 {
  font-size: 1.5rem;
}

.paper-abstract p {
  margin-top: 0.8rem;
}

.paper-cite-note {
  margin-top: 2.2rem;
  color: var(--ink-soft);
}

.paper-cite-note + .cite-block {
  margin-top: 0.8rem;
}
