:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text: #1e293b;
  --text-soft: #64748b;
  --text-light: #94a3b8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-accent: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --vf: #0369a1;
  --vf-soft: #e0f2fe;
  --rc: #7c3aed;
  --rc-soft: #ede9fe;
  --if: #b45309;
  --if-soft: #fef3c7;
  --success: #047857;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.05);
  --shadow-md: 0 8px 24px rgb(15 23 42 / 0.08);
  --shadow-lg: 0 24px 56px rgb(15 23 42 / 0.12);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button {
  font-family: var(--font-sans);
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--primary-dark);
}

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

::selection {
  color: #fff;
  background: var(--primary);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--text);
  border-radius: 8px;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.container {
  width: min(100% - 3rem, 1120px);
  margin-inline: auto;
}

.container.is-max-desktop {
  max-width: 1120px;
}

.has-text-centered {
  text-align: center;
}

.hero-body {
  padding: 5.75rem 1.5rem 3.5rem;
}

.publication-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgb(37 99 235 / 0.065), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgb(14 165 233 / 0.055), transparent 28rem),
    #fff;
}

.publication-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  content: "";
}

.project-label,
.eyebrow {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.8rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
}

.project-label::before {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--primary);
  border-radius: 50%;
  content: "";
}

.publication-title {
  max-width: 1080px;
  margin: 1.2rem auto 1.8rem;
  color: var(--text);
  font-size: clamp(2.45rem, 6.2vw, 4.65rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
  text-wrap: balance;
}

.publication-title span {
  color: var(--primary);
}

.publication-authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 0.85rem;
  max-width: 980px;
  margin: 0 auto 0.85rem;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-weight: 600;
}

.author-block {
  white-space: nowrap;
}

sup {
  position: relative;
  top: -0.2em;
  font-size: 0.66em;
  line-height: 0;
}

.publication-affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.15rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.contribution-note,
.contact-line {
  margin: 0.5rem 0 0;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.contact-line a {
  color: var(--text-soft);
}

.contact-line a:hover {
  color: var(--primary);
}

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

.resource-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.8rem;
  padding: 0.7rem 1.15rem;
  color: #fff;
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.resource-button:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.resource-button svg,
.copy-button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.resource-button svg.icon-fill {
  fill: currentColor;
  stroke: none;
}

.hf-resource-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.teaser {
  padding: 2.25rem 0 5rem;
}

.teaser-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(1.4rem, 4vw, 3rem);
  background: linear-gradient(135deg, #f8fbff 0%, #f8fafc 52%, #f5f3ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.teaser-copy h2 {
  margin: 0 0 1.2rem;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-wrap: balance;
}

.teaser-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.dimension-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.dimension-list div {
  display: grid;
  grid-template-columns: 2.9rem 1fr;
  gap: 0.7rem;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.dimension-list strong,
.rubric-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.32rem 0.52rem;
  border-radius: 7px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.dimension-vf {
  color: var(--vf);
  background: var(--vf-soft);
}

.dimension-rc {
  color: var(--rc);
  background: var(--rc-soft);
}

.dimension-if {
  color: var(--if);
  background: var(--if-soft);
}

.teaser-figure {
  margin: 0;
  text-align: center;
}

.teaser-figure a,
.research-figure a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}

.teaser-figure img {
  width: min(100%, 420px);
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.teaser-figure a:hover img,
.research-figure a:hover img {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

figcaption {
  margin-top: 0.85rem;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 2rem 0 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.project-stats div {
  padding: 1.25rem;
  text-align: center;
}

.project-stats div + div {
  border-left: 1px solid var(--border);
}

.project-stats dt {
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
}

.project-stats dd {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section {
  padding: 5.25rem 0;
}

.section-light {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading > p:last-child {
  margin: 1.1rem auto 0;
  color: var(--text-soft);
  font-size: 1.03rem;
}

.section-title {
  position: relative;
  margin: 0;
  padding-bottom: 1rem;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-wrap: balance;
}

.section-title::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #8b5cf6);
  border-radius: 999px;
  content: "";
  transform: translateX(-50%);
}

.narrow-content {
  max-width: 900px;
  margin-inline: auto;
}

.math {
  font-family: Georgia, "Times New Roman", serif;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

.narrow-content .section-title {
  text-align: center;
}

.prose {
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.82;
}

.prose p {
  margin: 1.35rem 0 0;
}

.prose strong {
  color: var(--text);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pipeline;
}

.pipeline li {
  position: relative;
  min-height: 230px;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pipeline li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -0.8rem;
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  content: "→";
  font-size: 0.82rem;
  font-weight: 800;
  place-items: center;
  transform: translateY(-50%);
}

.step-number {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.pipeline h3,
.rubric-grid h3,
.result-interpretation h3 {
  margin: 0.75rem 0 0.55rem;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.3;
}

.pipeline p,
.rubric-grid p,
.result-interpretation p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.58;
}

.rubric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.rubric-grid article {
  padding: 1.35rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.rubric-grid h3 {
  margin-top: 1rem;
}

.credit-note {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.4rem;
  color: #dbeafe;
  background: #172554;
  border-radius: var(--radius);
}

.credit-note p {
  margin: 0;
  color: #bfdbfe;
  font-size: 0.9rem;
}

.credit-flow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.credit-flow span {
  padding: 0.5rem 0.6rem;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 7px;
  text-align: center;
}

.dataset-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.research-figure {
  margin: 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.research-figure img {
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.dataset-summary {
  display: grid;
  gap: 1rem;
}

.construction-funnel {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
}

.construction-funnel > div {
  min-width: 0;
  padding: 0.9rem 0.65rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}

.construction-funnel > b {
  color: var(--text-light);
}

.construction-funnel span,
.construction-funnel small {
  display: block;
  color: var(--text-soft);
  font-size: 0.68rem;
}

.construction-funnel strong {
  display: block;
  margin: 0.25rem 0;
  color: var(--text);
  font-size: 1.08rem;
}

.construction-funnel .funnel-final {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.construction-funnel .funnel-final strong {
  color: var(--primary-dark);
}

.sampling-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.sampling-summary article {
  padding: 0.95rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sampling-summary span {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sampling-summary p {
  margin: 0.4rem 0 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.difficulty-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.difficulty-strip div {
  padding: 0.9rem 1rem;
}

.difficulty-strip div + div {
  border-left: 1px solid var(--border);
}

.difficulty-strip dt {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
}

.difficulty-strip dd {
  margin: 0.1rem 0 0;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.dataset-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.dataset-facts div {
  padding: 1rem;
}

.dataset-facts div:nth-child(even) {
  border-left: 1px solid var(--border);
}

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

.dataset-facts dt {
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 800;
}

.dataset-facts dd {
  margin: 0.15rem 0 0;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.source-list,
.availability-note {
  margin: 0;
  padding: 1rem;
  color: var(--text-soft);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.84rem;
}

.source-list strong,
.availability-note strong {
  color: var(--text);
}

.availability-note {
  background: #fffbeb;
  border-color: #fde68a;
}

.data-details {
  margin-top: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.data-details summary {
  padding: 1rem 1.2rem;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.data-details[open] summary {
  border-bottom: 1px solid var(--border);
}

.table-note {
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--text-soft);
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 1.5rem;
  align-items: start;
}

.method-figure {
  padding: 0.75rem;
}

.method-caption {
  max-width: 1080px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.gallery-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.rubric-gallery {
  position: relative;
}

.gallery-toolbar {
  margin-bottom: 0.75rem;
}

.gallery-status {
  margin: 0;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.gallery-stage {
  position: relative;
}

.gallery-controls {
  display: none;
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.interactions-ready .gallery-controls {
  display: block;
}

.gallery-controls button {
  display: grid;
  position: absolute;
  top: clamp(5.5rem, 27.5vw, 9.5rem);
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 1.1rem;
  pointer-events: auto;
  place-items: center;
  transform: translate(var(--gallery-nav-x), -50%);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.gallery-controls [data-gallery-prev] {
  left: 0;
  --gallery-nav-x: -50%;
}

.gallery-controls [data-gallery-next] {
  right: 0;
  --gallery-nav-x: 50%;
}

.gallery-controls button:hover:not([aria-disabled="true"]) {
  color: var(--primary);
  background: var(--surface-accent);
  border-color: #93c5fd;
  transform: translate(var(--gallery-nav-x), calc(-50% - 1px));
}

.gallery-controls button[aria-disabled="true"] {
  cursor: default;
  opacity: 0.36;
}

.gallery-track {
  display: grid;
  grid-auto-columns: minmax(440px, 480px);
  grid-auto-flow: column;
  gap: 1rem;
  align-items: start;
  padding: 0.25rem 0.15rem 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 0.15rem;
  scroll-snap-type: inline mandatory;
  scrollbar-color: #94a3b8 transparent;
  scrollbar-width: thin;
}

.gallery-track:focus-visible {
  outline-color: var(--primary);
  outline-offset: 4px;
}

.gallery-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.gallery-media {
  display: grid;
  aspect-ratio: 16 / 10;
  padding: 0.75rem;
  overflow: hidden;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  place-items: center;
}

.gallery-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-media a {
  display: grid;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  place-items: center;
}

.gallery-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem;
}

.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  color: #475569;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.gallery-meta span {
  padding: 0.28rem 0.42rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.gallery-meta span:first-child {
  color: var(--primary-dark);
  background: var(--surface-accent);
  border-color: #bfdbfe;
  font-weight: 750;
}

.gallery-meta span:nth-child(2) {
  padding-inline: 0.15rem;
  background: transparent;
  border-color: transparent;
}

.gallery-meta .verified-badge {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
  font-weight: 750;
}

.gallery-meta span:last-child {
  margin-left: auto;
  background: transparent;
  border-color: transparent;
}

.gallery-card h3 {
  margin: 0.9rem 0 0;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.3;
}

.gallery-question,
.gallery-answer {
  margin: 0.65rem 0 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

.gallery-question strong,
.gallery-answer strong {
  display: inline-block;
  min-width: 3.6rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-answer {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.verification-note {
  margin: 0.8rem 0 0;
  padding: 0.7rem 0.8rem;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  font-size: 0.76rem;
  line-height: 1.5;
}

.verification-note strong {
  color: #047857;
}

.gallery-rubric-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-top: 1rem;
  color: var(--text);
}

.gallery-rubric-heading strong {
  font-size: 0.8rem;
  font-weight: 800;
}

.gallery-rubric-heading span {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.gallery-rubrics {
  display: grid;
  gap: 0;
  margin: 0.65rem 0 0;
  padding: 0;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  list-style: none;
}

.gallery-rubrics li {
  display: block;
  padding: 0.8rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.48;
}

.gallery-rubrics li + li {
  border-top: 1px solid var(--border);
}

.rubric-item-head {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.gallery-rubrics b {
  display: grid;
  width: 2rem;
  min-height: 1.65rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  place-items: center;
}

.rubric-item-head code {
  min-width: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rubric-weight {
  padding: 0.2rem 0.38rem;
  color: var(--success);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.rubric-weight.is-negative {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.rubric-item p {
  margin: 0.55rem 0 0 2.55rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.rubric-priority {
  display: inline-block;
  margin-right: 0.38rem;
  padding: 0.12rem 0.32rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.59rem;
  font-weight: 750;
  line-height: 1.35;
  text-transform: uppercase;
  vertical-align: 0.06em;
}

.priority-essential {
  color: #075985;
  background: #e0f2fe;
}

.priority-important {
  color: #5b21b6;
  background: #ede9fe;
}

.priority-optional {
  color: #475569;
  background: #e2e8f0;
}

.priority-pitfall {
  color: #b91c1c;
  background: #fee2e2;
}

.gallery-rubrics .rubric-vf b {
  color: var(--vf);
  background: var(--vf-soft);
}

.gallery-rubrics .rubric-rc b {
  color: var(--rc);
  background: var(--rc-soft);
}

.gallery-rubrics .rubric-if b {
  color: var(--if);
  background: var(--if-soft);
}

.gallery-note {
  max-width: 920px;
  margin: 0.8rem 0 0;
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.55;
}

.method-steps {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.method-steps li > span {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 750;
}

.method-steps h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.3;
}

.method-steps p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  font-size: 0.79rem;
  line-height: 1.5;
}

.method-credit-note {
  grid-template-columns: minmax(400px, 1fr) minmax(0, 1fr);
  margin-top: 1.25rem;
}

.table-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

th,
td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

thead th {
  color: var(--text-soft);
  background: var(--surface-accent);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody th,
tfoot th {
  color: var(--text);
}

tbody td {
  color: var(--text-soft);
}

tfoot th,
tfoot td {
  color: var(--text);
  background: #eff6ff;
  border-bottom: 0;
  font-weight: 800;
}

.result-coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: -0.75rem 0 1rem;
}

.result-coverage span {
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
  padding: 0.45rem 0.7rem;
  color: var(--text-soft);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
}

.result-coverage strong {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.result-callouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.result-callouts div {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.result-callouts strong {
  color: var(--primary);
  font-size: 1.55rem;
  line-height: 1;
}

.result-callouts span {
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.4;
}

.performance-panel {
  padding: clamp(1.3rem, 3.5vw, 2.6rem);
  color: #fff;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.result-tabs {
  display: none;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
  padding: 0.35rem;
  overflow-x: auto;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  scrollbar-color: #64748b transparent;
  scrollbar-width: thin;
}

.interactions-ready .result-tabs {
  display: flex;
}

.result-tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.65rem 0.95rem;
  color: #cbd5e1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.result-tabs button:hover {
  color: #fff;
  background: #334155;
}

.result-tabs button[aria-selected="true"] {
  color: #0f172a;
  background: #fff;
  border-color: #fff;
  box-shadow: var(--shadow-sm);
}

.result-tabs button:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 1px;
}

.result-panel + .result-panel {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #475569;
}

.interactions-ready .result-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.result-panel[hidden] {
  display: none;
}

.result-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #334155;
}

.result-panel-heading span {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 750;
}

.result-panel-heading p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.75rem;
  text-align: right;
}

.full-results-toolbar {
  display: grid;
  grid-template-columns: auto minmax(15rem, 24rem) minmax(10rem, 1fr);
  gap: 0.65rem 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.85rem;
  background: rgb(30 41 59 / 0.72);
  border: 1px solid #334155;
  border-radius: 12px;
}

.full-results-toolbar label {
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 750;
}

.full-results-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.6rem 2.35rem 0.6rem 0.8rem;
  color: #f8fafc;
  color-scheme: dark;
  background-color: #0f172a;
  border: 1px solid #475569;
  border-radius: 8px;
  cursor: pointer;
  font: 700 0.76rem/1.2 var(--font-sans);
}

.full-results-toolbar select:hover {
  border-color: #64748b;
}

.full-results-toolbar select:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}

.full-results-toolbar p {
  margin: 0;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-align: right;
}

.full-results-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: center;
  margin-bottom: 0.85rem;
  color: #cbd5e1;
  font-size: 0.68rem;
}

.full-results-legend > span {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  white-space: nowrap;
}

.full-results-legend > span::before {
  width: 0.55rem;
  height: 0.55rem;
  background: #f59e0b;
  border-radius: 50%;
  content: "";
}

.full-results-legend .legend-instruct::before {
  background: #64748b;
}

.full-results-legend .legend-thinking::before {
  background: #818cf8;
}

.full-results-legend .legend-ours::before {
  background: #06b6d4;
}

.full-results-legend small {
  flex: 1 1 100%;
  color: #94a3b8;
  font-size: 0.64rem;
  line-height: 1.5;
}

.full-results-axis {
  display: flex;
  justify-content: space-between;
  margin: 0 4.35rem 0.55rem 20rem;
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.full-results-list {
  display: grid;
  gap: 0.28rem;
  width: 100%;
  min-width: 0;
}

.full-model-row {
  display: grid;
  grid-template-columns: 2.15rem minmax(12rem, 16rem) minmax(0, 1fr) 3.5rem;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0.48rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.full-model-row:hover {
  background: rgb(51 65 85 / 0.45);
}

.full-model-rank,
.full-model-value {
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.full-model-rank {
  color: #64748b;
  text-align: center;
}

.full-model-value {
  text-align: right;
}

.full-model-identity {
  min-width: 0;
  line-height: 1.25;
}

.full-model-identity > strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #f8fafc;
  font-size: 0.74rem;
  font-weight: 720;
}

.full-model-identity > small {
  display: block;
  margin-top: 0.16rem;
  overflow-wrap: anywhere;
  color: #64748b;
  font-size: 0.6rem;
}

.full-model-identity em {
  display: inline-block;
  padding: 0.08rem 0.32rem;
  color: #a5f3fc;
  background: rgb(6 182 212 / 0.12);
  border: 1px solid rgb(34 211 238 / 0.28);
  border-radius: 999px;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.full-model-track {
  position: relative;
  min-width: 0;
  height: 13px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(25% - 1px),
      #334155 calc(25% - 1px),
      #334155 25%
    ),
    #1e293b;
  border-radius: 4px;
}

.full-model-fill {
  position: absolute;
  inset: 0 auto 0 0;
  max-width: 100%;
  height: 100%;
  background: #f59e0b;
  border-radius: inherit;
  transition: width 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.full-model-row.group-instruct .full-model-fill {
  background: #64748b;
}

.full-model-row.group-thinking .full-model-fill {
  background: #818cf8;
}

.full-model-row.group-ours {
  background: rgb(6 182 212 / 0.075);
  border-color: rgb(34 211 238 / 0.18);
}

.full-model-row.group-ours:hover {
  background: rgb(6 182 212 / 0.12);
  border-color: rgb(34 211 238 / 0.3);
}

.full-model-row.group-ours .full-model-fill {
  background: #06b6d4;
}

.full-model-row.group-ours .full-model-rank,
.full-model-row.group-ours .full-model-value,
.full-model-row.group-ours .full-model-identity > strong {
  color: #a5f3fc;
}

.full-model-row.is-unavailable {
  opacity: 0.48;
}

.full-model-row.is-unavailable .full-model-track {
  background:
    repeating-linear-gradient(
      -45deg,
      rgb(71 85 105 / 0.25) 0,
      rgb(71 85 105 / 0.25) 4px,
      transparent 4px,
      transparent 8px
    ),
    #1e293b;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin: 0 4.2rem 0.7rem 24.5rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.chart-axis span {
  text-align: center;
}

.chart-axis span:first-child {
  text-align: left;
}

.chart-axis span:last-child {
  text-align: right;
}

.result-group {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 1.75rem 0;
  border-top: 1px solid #334155;
}

.result-group-copy .mono-label {
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.result-group-copy h3 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.2;
}

.result-group-copy .mono-label + h3 {
  margin-top: 0.45rem;
}

.result-group-copy p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.5;
}

.result-bars {
  display: grid;
  gap: 0.72rem;
}

.result-row {
  display: grid;
  grid-template-columns: 7.7rem minmax(0, 1fr) 3.4rem;
  gap: 0.8rem;
  align-items: center;
}

.result-row > span {
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 650;
}

.result-row-reference > span,
.result-row-reference strong {
  color: #94a3b8;
}

.result-row-start-ours {
  margin-top: 0.15rem;
  padding-top: 0.7rem;
  border-top: 1px solid #334155;
}

.result-row strong {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: right;
}

.result-row-ours > span,
.result-row-ours strong {
  color: #a5f3fc;
}

#results-panel-overview {
  --grid-step: 33.333%;
}

#results-panel-general,
#results-panel-chart {
  --grid-step: 25%;
}

#results-panel-math {
  --grid-step: 20%;
}

.result-track {
  position: relative;
  height: 18px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(var(--grid-step) - 1px),
      #475569 calc(var(--grid-step) - 1px),
      #475569 var(--grid-step)
    ),
    #1e293b;
  border-radius: 4px;
}

.result-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: #64748b;
  border-radius: inherit;
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.result-row:nth-child(2) .result-fill {
  transition-delay: 90ms;
}

.result-row:nth-child(3) .result-fill {
  transition-delay: 180ms;
}

.result-row:nth-child(4) .result-fill {
  transition-delay: 270ms;
}

.result-row:nth-child(5) .result-fill {
  transition-delay: 360ms;
}

.interactions-ready .result-fill {
  transform: scaleX(0);
}

.interactions-ready .performance-panel.chart-is-visible .result-panel.is-active .result-fill {
  transform: scaleX(1);
}

.fill-grpo {
  background: #3b82f6;
}

.fill-instruct {
  background: #475569;
}

.fill-thinking {
  background: #94a3b8;
}

.fill-sft {
  background: #64748b;
}

.fill-ours {
  background: #06b6d4;
}

.axis-note {
  margin: 0;
  padding-top: 0.8rem;
  color: #94a3b8;
  border-top: 1px solid #334155;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-align: right;
}

.panel-average {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0.8rem 0;
  color: #cbd5e1;
  border-top: 1px solid #334155;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.panel-average strong {
  color: #fff;
}

.panel-average span:last-child {
  color: #a5f3fc;
}

.panel-average + .axis-note {
  padding-top: 0.2rem;
  border-top: 0;
}

.result-caveat {
  margin-top: 1rem;
  margin-bottom: 0;
  padding: 1rem 1.15rem;
  color: var(--text-soft);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.86rem;
  line-height: 1.65;
}

.result-caveat strong {
  color: var(--text);
}

.compact-table {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compact-table tbody tr:last-child th,
.compact-table tbody tr:last-child td {
  border-bottom: 0;
}

.compact-table tbody td:last-child {
  color: var(--success);
}

.qualitative-figure {
  max-width: 780px;
  margin-inline: auto;
}

.qualitative-figure figcaption {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.limitations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.limitations-grid article {
  padding: 1.3rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.limitations-grid span {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.limitations-grid p {
  margin: 0.75rem 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.bibtex-card {
  max-width: 900px;
  margin-inline: auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.bibtex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  color: var(--text-soft);
  background: var(--surface-accent);
  border-bottom: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.copy-button {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.48rem 0.72rem;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 750;
  transition: background 160ms ease, transform 160ms ease;
}

.copy-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.copy-button.is-copied {
  background: var(--success);
}

.copy-button.is-error {
  background: #dc2626;
}

.bibtex-card pre {
  margin: 0;
  padding: 1.4rem;
  overflow-x: auto;
  color: var(--text);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  tab-size: 2;
}

.bibtex-card code {
  font-family: inherit;
}

.scroll-to-top {
  position: fixed;
  z-index: 20;
  right: 1.5rem;
  bottom: 1.5rem;
  display: grid;
  width: 3rem;
  height: 3rem;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  place-items: center;
  transform: translateY(0.75rem);
  transition: background 160ms ease, opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.footer {
  padding: 3rem 0;
  color: var(--text-soft);
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  font-size: 0.83rem;
  text-align: center;
}

.footer-content p {
  margin: 0.35rem 0;
}

.footer-content strong {
  color: var(--text);
}

@media (max-width: 980px) {
  .teaser-card,
  .dataset-layout,
  .method-layout {
    grid-template-columns: 1fr;
  }

  .teaser-copy {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
  }

  .dimension-list {
    max-width: 360px;
    margin-inline: auto;
  }

  .pipeline,
  .limitations-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pipeline li:not(:last-child)::after {
    display: none;
  }

  .dataset-summary {
    max-width: 760px;
    margin-inline: auto;
  }

  .method-steps {
    grid-template-columns: 1fr 1fr;
  }

  .method-credit-note {
    grid-template-columns: 1fr;
  }

  .chart-axis {
    margin-left: 8.5rem;
  }

  .full-results-axis {
    margin-left: 17rem;
  }

  .full-model-row {
    grid-template-columns: 2rem minmax(10rem, 13rem) minmax(0, 1fr) 3.35rem;
    gap: 0.65rem;
  }

  .result-group {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .result-group-copy p {
    max-width: 540px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 2rem, 1120px);
  }

  .hero-body {
    padding: 3.5rem 1rem 2.5rem;
  }

  .publication-title {
    font-size: clamp(2.05rem, 10vw, 3rem);
    overflow-wrap: anywhere;
  }

  .publication-affiliations {
    display: grid;
    gap: 0.25rem;
  }

  .publication-links {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 340px);
    margin-inline: auto;
    margin-top: 1.5rem;
  }

  .resource-button {
    width: 100%;
  }

  .teaser {
    padding: 1.25rem 0 3.5rem;
  }

  .teaser-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 1rem;
  }

  .teaser-copy {
    padding: 0.5rem;
  }

  .project-stats {
    grid-template-columns: 1fr 1fr;
  }

  .project-stats div:nth-child(3) {
    border-left: 0;
  }

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

  .section {
    padding: 3.75rem 0;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .gallery-track {
    grid-auto-columns: min(88vw, 430px);
    gap: 0.8rem;
  }

  .gallery-controls [data-gallery-prev] {
    left: 0.65rem;
    --gallery-nav-x: 0%;
  }

  .gallery-controls [data-gallery-next] {
    right: 0.65rem;
    --gallery-nav-x: 0%;
  }

  .gallery-card-body {
    padding: 1rem;
  }

  .pipeline,
  .rubric-grid,
  .result-callouts,
  .result-interpretation,
  .limitations-grid {
    grid-template-columns: 1fr;
  }

  .pipeline li {
    min-height: auto;
  }

  .credit-note {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .credit-flow {
    flex-wrap: wrap;
    justify-content: center;
  }

  .sampling-summary,
  .method-steps {
    grid-template-columns: 1fr;
  }

  .construction-funnel {
    grid-template-columns: 1fr;
  }

  .construction-funnel > b {
    transform: rotate(90deg);
    text-align: center;
  }

  .performance-panel {
    padding: 1rem;
  }

  .result-coverage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-coverage span {
    justify-content: center;
    min-width: 0;
    text-align: center;
  }

  .result-tabs {
    margin-right: -0.25rem;
    margin-left: -0.25rem;
  }

  .result-panel-heading {
    display: block;
  }

  .result-panel-heading p {
    margin-top: 0.35rem;
    text-align: left;
  }

  .full-results-toolbar {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 0.75rem;
  }

  .full-results-toolbar p {
    margin-top: 0.15rem;
    text-align: left;
  }

  .full-results-legend {
    gap: 0.4rem 0.7rem;
  }

  .full-results-axis {
    display: none;
  }

  .full-model-row {
    grid-template-columns: 1.7rem minmax(0, 1fr) 3.2rem;
    grid-template-rows: auto auto;
    gap: 0.35rem 0.55rem;
    padding: 0.55rem 0.4rem;
  }

  .full-model-rank {
    grid-row: 1 / 3;
    align-self: center;
  }

  .full-model-identity {
    grid-column: 2;
    grid-row: 1;
  }

  .full-model-track {
    grid-column: 2 / 4;
    grid-row: 2;
    height: 12px;
  }

  .full-model-value {
    grid-column: 3;
    grid-row: 1;
  }

  .full-model-identity > strong {
    font-size: 0.72rem;
  }

  .chart-axis {
    display: none;
  }

  .result-group:first-of-type {
    border-top: 0;
  }

  .result-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 0.28rem 0.65rem;
    min-width: 0;
  }

  .result-row > span {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .result-row .result-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .result-row > strong {
    grid-column: 2;
    grid-row: 1;
  }

  .result-row > span {
    font-size: 0.7rem;
  }

  .result-row-start-ours {
    margin-top: 0.2rem;
    padding-top: 0.7rem;
  }

  .axis-note {
    text-align: left;
  }

  .panel-average {
    display: grid;
    gap: 0.25rem;
  }

  th,
  td {
    padding: 0.65rem 0.75rem;
  }

  .scroll-to-top {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 1.25rem, 1120px);
  }

  .publication-title {
    font-size: 2rem;
  }

  .publication-authors {
    gap: 0.25rem 0.6rem;
    font-size: 0.94rem;
  }

  .project-stats dd {
    font-size: 0.68rem;
  }

  .dataset-facts,
  .difficulty-strip {
    grid-template-columns: 1fr;
  }

  .dataset-facts div:nth-child(even) {
    border-left: 0;
  }

  .difficulty-strip div + div {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

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

  .result-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.28rem 0.5rem;
  }

  .result-row strong {
    font-size: 0.68rem;
  }

  .result-coverage {
    grid-template-columns: 1fr;
  }

  .result-coverage span {
    justify-content: flex-start;
  }

  .full-results-legend > span {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 0;
    white-space: normal;
  }

  .full-model-row {
    grid-template-columns: 1.5rem minmax(0, 1fr) 3rem;
    gap: 0.32rem 0.45rem;
    padding-inline: 0.25rem;
  }

  .full-model-rank,
  .full-model-value {
    font-size: 0.64rem;
  }

  .full-model-identity > strong {
    font-size: 0.68rem;
  }

  .full-model-identity > small {
    font-size: 0.56rem;
  }

  .bibtex-card pre {
    padding: 1rem;
    font-size: 0.7rem;
  }

  .rubric-item-head {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .rubric-weight {
    grid-column: 2;
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .interactions-ready .result-fill {
    transform: scaleX(1);
  }

  .full-model-fill {
    transition: none;
  }
}

@media print {
  .skip-link,
  .scroll-to-top,
  .copy-button {
    display: none !important;
  }

  .section,
  .hero-body {
    padding-block: 2rem;
  }

  .teaser-card,
  .research-figure,
  .performance-panel,
  .bibtex-card {
    box-shadow: none;
  }

  .resource-button {
    color: var(--text);
    background: transparent;
  }

  .result-tabs {
    display: none !important;
  }

  .result-panel[hidden] {
    display: block !important;
  }

  .result-panel + .result-panel {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-strong);
  }

  .result-fill {
    transform: scaleX(1) !important;
  }

  .gallery-controls {
    display: none !important;
  }

  .gallery-toolbar {
    display: none !important;
  }

  .gallery-track {
    display: block;
    overflow: visible;
    scroll-snap-type: none;
  }

  .gallery-card {
    overflow: visible;
    break-inside: auto;
  }

  .gallery-card + .gallery-card {
    margin-top: 1rem;
  }

  .gallery-media,
  .gallery-card h3,
  .gallery-question,
  .gallery-answer,
  .verification-note,
  .gallery-rubric-heading,
  .gallery-rubrics li {
    break-inside: avoid;
  }

  .gallery-rubrics {
    overflow: visible;
  }
}
