:root {
  --primary-color: #762a83;
  --secondary-color: #8c6d1f;
  --accent-blue: #2f6fa8;
  --accent-green: #1f6b50;
  --accent-red: #a93428;
  --paper-bg: #f7f5ef;
  --paper-warm: #fffdf8;
  --paper-cool: #eef4f5;
  --surface-soft: #f3efe4;
  --ink: #171717;
  --muted: #62636a;
  --faint: #8a8790;
  --hairline: #ded9ce;
  --dark-text: #171717;
  --nav-height: 64px;
  --section-space: 6rem;
}

* {
  box-sizing: border-box;
}

/* Keyboard focus ring only (mouse clicks don't trigger :focus-visible). */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.navbar-burger:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  margin: 0;
  padding-top: var(--nav-height);
  background: var(--paper-bg);
  color: var(--ink);
  font-family: "Noto Sans", Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.paper-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.paper-shell-wide {
  width: min(1360px, calc(100% - 40px));
}

.paper-nav {
  min-height: var(--nav-height);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: none;
}

.nav-shell {
  display: flex;
  align-items: center;
  min-height: var(--nav-height);
}

.paper-brand {
  gap: 0.55rem;
  font-weight: 800;
  color: var(--ink);
}

.paper-brand img {
  width: 28px;
  height: 28px;
}

.navbar-item {
  color: var(--ink);
  font-weight: 600;
}

.navbar-item:hover,
.navbar-item:focus {
  background: transparent !important;
  color: var(--primary-color) !important;
}

.navbar-burger {
  color: var(--ink);
}

.paper-hero {
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0 4.5rem;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(247, 245, 239, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(47, 111, 168, 0.14), transparent 42%);
  border-bottom: 1px solid var(--hairline);
}

.paper-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 78%);
}

.hero-copy {
  position: relative;
  max-width: 1040px;
  text-align: center;
}

.section-kicker,
.mini-kicker {
  margin: 0 0 0.7rem;
  color: #7f631b; /* darker gold: 5.2:1 on paper-bg (WCAG AA) */
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.publication-venue {
  display: inline-block;
  margin: 0 0 1.35rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(118, 42, 131, 0.32);
  border-radius: 999px;
  background: rgba(118, 42, 131, 0.07);
  color: var(--primary-color);
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.publication-title {
  max-width: 980px;
  margin: 0 auto;
  color: var(--ink);
  font-family: "Castoro", Georgia, serif;
  font-size: 4.8rem;
  font-weight: 400;
  line-height: 1.02;
}

.publication-subtitle {
  margin: 1rem auto 0;
  color: var(--primary-color);
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.publication-authors {
  max-width: 980px;
  margin: 1.7rem auto 0;
  color: #262626;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 1.02rem;
}

.author-block {
  display: inline-block;
  margin: 0.1rem 0.35rem;
}

.aff-marker {
  margin-left: 0.15rem;
  font-size: 0.8em;
  letter-spacing: 0.05em;
  white-space: nowrap;
  vertical-align: baseline;
  /* Render affiliation emoji with the platform's color emoji font and force
     emoji (not text-dingbat) presentation. Native emoji fonts cover these
     codepoints on macOS, iOS, modern Windows, and modern Android. */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Sans", Arial, sans-serif;
  font-variant-emoji: emoji;
  -webkit-font-variant-emoji: emoji;
}

.publication-authors a {
  color: var(--primary-color);
  font-weight: 800;
}

.publication-affiliations {
  margin: 0.8rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.publication-affiliations span[aria-hidden="true"] {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Sans", Arial, sans-serif;
  font-variant-emoji: emoji;
  -webkit-font-variant-emoji: emoji;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.paper-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
  color: var(--ink);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.paper-link:hover,
.paper-link:focus {
  transform: translateY(-2px);
  border-color: rgba(118, 42, 131, 0.42);
  background: #ffffff;
  color: var(--primary-color);
}

.paper-link img {
  width: 20px;
  height: 20px;
  display: block;
}

.hero-teaser {
  position: relative;
  margin-top: 2.4rem;
}

.hero-static-fig {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #ffffff;
}

.hero-static-fig img {
  display: block;
  width: 100%;
  border-radius: 4px;
}

/* Animated Figure 1 walkthrough, demoted from the hero into the Method section. */
.method-walkthrough {
  max-width: 1040px;
  margin: 0 auto 4.5rem;
}

.figure-note {
  max-width: 960px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.metrics-band {
  background: #ffffff;
  border-bottom: 1px solid var(--hairline);
}

.contribution-band {
  background: #ffffff;
  border-bottom: 1px solid var(--hairline);
}

.contribution-band .paper-shell {
  max-width: 880px;
  padding: 1.6rem 1.5rem;
}

.contribution-statement {
  margin: 0;
  color: var(--ink);
  font-family: "Castoro", Georgia, serif;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.metrics-grid div {
  min-height: 116px;
  padding: 1.5rem 1.4rem 1.9rem;
  border-left: 1px solid var(--hairline);
}

.metrics-grid div:last-child {
  border-right: 1px solid var(--hairline);
}

.metrics-grid strong {
  display: block;
  color: var(--ink);
  font-family: "Castoro", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
}

.metrics-grid span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.paper-section {
  padding: var(--section-space) 0;
  background: var(--paper-bg);
}

.paper-section + .paper-section {
  border-top: 1px solid var(--hairline);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.45fr);
  gap: 4.5rem;
  align-items: start;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Castoro", Georgia, serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.08;
}

.section-heading p:not(.section-kicker) {
  max-width: 760px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading.centered {
  max-width: 900px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.paper-copy {
  color: #252525;
  font-size: 1.12rem;
}

.paper-copy p {
  margin: 0 0 1.25rem;
}

.paper-copy p:last-child {
  margin-bottom: 0;
}

.concept-section {
  background: var(--paper-bg);
}

.concept-row {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 3rem;
  align-items: center;
}

.concept-row + .concept-row {
  margin-top: 5.5rem;
}

.contrast-row {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.concept-copy h3,
.living-copy h3 {
  margin: 0 0 0.9rem;
  color: var(--ink);
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.18;
}

.concept-copy p,
.living-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.03rem;
}

.inline-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 1.4rem 0 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.inline-facts div {
  padding: 1rem 0.85rem;
  border-right: 1px solid var(--hairline);
}

.inline-facts div:last-child {
  border-right: 0;
}

.inline-facts dt {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.inline-facts dd {
  margin: 0.25rem 0 0;
  color: var(--ink);
  font-weight: 800;
}

.takeaway {
  padding-left: 1rem;
  border-left: 3px solid var(--primary-color);
  color: var(--ink) !important;
  font-weight: 800;
}

.findings-section {
  background: var(--paper-bg);
}

.finding-stack {
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
}

.finding-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--hairline);
}

.finding-number {
  color: var(--secondary-color);
  font-family: "Castoro", Georgia, serif;
  font-size: 2.25rem;
  line-height: 1;
}

.finding-row h3 {
  margin: 0 0 0.6rem;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 850;
}

/* Tier 2 — explanation: plain language for an adjacent researcher. */
.finding-explain {
  max-width: 760px;
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.55;
}

/* Tier 3 — evidence: precise numbers, conservative register. */
.finding-evidence {
  max-width: 820px;
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--hairline);
  background: var(--surface-soft);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
}

.finding-evidence dt {
  display: inline;
  color: var(--muted);
  font-weight: 800;
}

.finding-evidence dd {
  display: inline;
  margin: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.finding-evidence dl {
  margin: 0.4rem 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.2rem;
}

.finding-evidence dl > div {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.finding-evidence .evidence-caveat {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-style: italic;
}

/* Secondary callout: a second lens that confirms or extends a finding. */
.finding-secondary {
  max-width: 820px;
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--hairline);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.55;
}

.finding-secondary .secondary-kicker {
  display: block;
  margin-bottom: 0.25rem;
  color: #7f631b;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.finding-row p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.result-lab {
  background: var(--paper-bg);
}

.living-figure {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-top: 1px solid var(--hairline);
}

.living-figure.reverse {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.living-figure.reverse .living-copy {
  order: 2;
}

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

.paper-figure {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--paper-warm);
}

.paper-figure img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.paper-figure figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ================= Results across models ================= */
.models-section {
  background: var(--paper-bg);
}

.models-wrap {
  max-width: 1040px;
  margin: 0 auto;
}

.models-intro {
  max-width: 760px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.55;
  text-align: center;
}

.models-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.models-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
  border-collapse: collapse;
  background: #ffffff;
  font-variant-numeric: tabular-nums;
}

/* With table-layout: fixed, the first column takes this width and the
   three model columns share the remaining space equally, so a long
   OLMo3 value cell can no longer squeeze the pending-model columns. */
.models-table thead th:first-child {
  width: 27%;
}

.models-table th,
.models-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.models-table tr:last-child th,
.models-table tr:last-child td {
  border-bottom: none;
}

.models-table thead th {
  background: var(--paper-warm, #fffdf8);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.models-table thead th .corpus {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.models-table .metric-cell {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.88rem;
  white-space: normal;
}

.models-table .metric-cell .detail {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.models-table .value-cell {
  color: var(--ink);
  font-size: 0.95rem;
}

.models-table .value-cell .detail {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.models-table .value-pending {
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
}

.models-table .col-pending {
  background: rgba(0, 0, 0, 0.015);
}

.models-table .status-badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.models-table .status-done {
  color: #1B7837;
  background: rgba(27, 120, 55, 0.1);
}

.models-table .status-pending {
  color: var(--muted);
  background: rgba(0, 0, 0, 0.05);
}

.models-note {
  max-width: 1040px;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.resources-section {
  background: var(--paper-bg);
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.resource-list a,
.resource-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1rem;
  min-height: 128px;
  padding: 1.25rem;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  text-decoration: none;
}

.resource-list a:nth-child(2n),
.resource-item:nth-child(2n) {
  border-right: 0;
}

.resource-list a:nth-last-child(-n + 2),
.resource-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.resource-list a:hover {
  background: #fbf8f1;
}

.resource-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(118, 42, 131, 0.09);
  color: var(--primary-color);
}

.resource-list strong {
  display: block;
  font-size: 1rem;
}

.resource-list small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Pending (not-yet-released) resources: muted, no hover, explicit badge. */
.resource-item.resource-pending {
  background: rgba(0, 0, 0, 0.015);
}

.resource-item.resource-pending .resource-icon {
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
}

.resource-item.resource-pending strong {
  color: var(--muted);
}

.resource-pending .pending-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.citation-section {
  background: var(--paper-bg);
}

.bibtex {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.4rem;
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #191a1d;
  color: #f8f6ef;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre;
}

.paper-footer {
  padding: 3rem 0;
  background: #171717;
  color: #f8f6ef;
}

.paper-footer .paper-shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.paper-footer p {
  margin: 0;
}

.paper-footer a {
  color: #f8f6ef;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.paper-footer span {
  color: rgba(248, 246, 239, 0.45);
  margin: 0 0.4rem;
}

.paper-footer .footer-mark {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-self: center;
}

.paper-footer .footer-mascot {
  width: 72px;
  height: 72px;
  align-self: center;
  opacity: 0.92;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

@media screen and (max-width: 540px) {
  .paper-footer .footer-mascot { display: none; }
}

@media screen and (max-width: 1024px) {
  .publication-title {
    font-size: 3.85rem;
  }

  .publication-subtitle {
    font-size: 1.35rem;
  }

  .section-heading h2 {
    font-size: 2.65rem;
  }

  .concept-row,
  .contrast-row,
  .living-figure,
  .living-figure.reverse {
    grid-template-columns: 1fr;
  }

  .living-figure.reverse .living-copy {
    order: 0;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --nav-height: 58px;
    --section-space: 4rem;
  }

  .paper-shell,
  .paper-shell-wide {
    width: min(100% - 28px, 1120px);
  }

  .nav-shell {
    width: 100%;
  }

  .navbar-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    width: 100%;
    background: var(--paper-warm);
    border-top: 1px solid var(--hairline);
    box-shadow: 0 16px 32px rgba(23, 23, 23, 0.08);
  }

  .navbar-menu .navbar-end {
    width: min(100% - 28px, 1120px);
    margin: 0 auto;
    padding: 0.55rem 0 0.75rem;
  }

  .paper-hero {
    padding: 2.4rem 0 3.4rem;
  }

  .publication-title {
    font-size: 2.9rem;
    line-height: 1.06;
  }

  .publication-subtitle {
    font-size: 1.12rem;
  }

  .publication-authors {
    font-size: 0.92rem;
  }

  .publication-links {
    gap: 0.45rem;
  }

  .paper-link {
    min-height: 38px;
    padding: 0.55rem 0.78rem;
    font-size: 0.88rem;
  }

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

  .metrics-grid div:nth-child(2n) {
    border-right: 1px solid var(--hairline);
  }

  .metrics-grid div:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
  }

  .metrics-grid strong {
    font-size: 2rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .section-heading h2 {
    font-size: 2.2rem;
  }

  .paper-copy {
    font-size: 1rem;
  }

  .inline-facts {
    grid-template-columns: 1fr;
  }

  .inline-facts div {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .inline-facts div:last-child {
    border-bottom: 0;
  }

  .finding-row {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 1rem;
  }

  .finding-number {
    font-size: 1.65rem;
  }

  .evidence-grid,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .resource-list a,
  .resource-item {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 112px;
    border-right: 0;
  }

  .resource-list a:nth-last-child(-n + 2),
  .resource-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--hairline);
  }

  .resource-list a:last-child,
  .resource-item:last-child {
    border-bottom: 0;
  }
}

@media screen and (max-width: 480px) {
  .publication-title {
    font-size: 2.35rem;
  }

  .publication-links {
    justify-content: flex-start;
  }

  .hero-copy {
    text-align: left;
  }

  .publication-authors,
  .publication-affiliations {
    text-align: left;
  }

  .hero-teaser {
    margin-top: 1.6rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid div,
  .metrics-grid div:nth-child(2n) {
    border-right: 1px solid var(--hairline);
  }

  .metrics-grid div:nth-child(n + 2) {
    border-top: 1px solid var(--hairline);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Skip link, limitations, citation copy control. */
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-weight: 700;
  transform: translateY(-220%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Visually hidden, available to screen readers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.limitations-list {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
}

.limitations-list li {
  margin-bottom: 0.55rem;
}

.resource-note {
  margin-top: 0.9rem;
  color: var(--slate, #4b5563);
}

.bibtex-wrap {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.bibtex-copy {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  border: 1px solid rgba(23, 23, 23, 0.15);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  background: #fff;
  color: #171717;
  font-weight: 700;
  cursor: pointer;
}

.bibtex-copy:hover {
  border-color: #171717;
}

.bibtex-copy.is-copied {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #fff;
}


/* ================= Review fixes (2026-07-19) ================= */
/* Tall validation figures span the full grid so they stay legible;
   clicking any evidence figure opens the full-resolution PNG. */
.evidence-grid {
  align-items: start;
}

.evidence-grid figure:nth-child(n + 3) {
  grid-column: 1 / -1;
}

.evidence-grid figure a {
  display: block;
}

/* Footer title on the dark band. */
.paper-footer .footer-mark strong {
  color: #f8f6ef;
}

/* No-JS safety: if main.js never runs, AOS-hidden elements must still show.
   main.js removes .no-js from <html> as its first act. */
.no-js [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}
