:root {
  --text: #4a4a4a;
  --heading: #363636;
  --link: #3273dc;
  --soft: #f5f5f5;
  --line: #dbdbdb;
  --dark: #363636;
  --accent: #d62828;
  --max-width: 960px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
img { display: block; width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}
.narrow { max-width: 780px; }
.centered { text-align: center; }
.justified { text-align: justify; }
.prose { max-width: 900px; margin: 0 auto; }
.prose p { margin: 0 0 1em; }

.publication-hero { padding: 70px 0 34px; }
.publication-hero h1 {
  margin: 0 auto 18px;
  color: var(--heading);
  font-family: "Google Sans", sans-serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-align: center;
}
.publication-hero h1 span { font-size: .72em; font-weight: 500; }
.venue {
  margin: 0 0 14px;
  color: var(--heading);
  font-size: 24px;
  text-align: center;
}
.publication-authors {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  text-align: center;
}
.publication-authors a { white-space: nowrap; }
.publication-links, .dataset-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  color: #fff;
  background: var(--dark);
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: transform .15s ease, background .15s ease;
}
.pill-button:hover { color: #fff; background: #222; text-decoration: none; transform: translateY(-1px); }
.pill-button.disabled { color: #777; background: #e6e6e6; cursor: default; }
.pill-button.disabled:hover { transform: none; }
.button-icon { font-size: 17px; line-height: 1; }

.teaser { padding: 15px 0 42px; }
.teaser figure, .wide-figure { margin: 0; }
.teaser img {
  border-radius: 4px;
  box-shadow: 0 1px 7px rgba(10,10,10,.12);
}
figcaption, .figure-caption {
  max-width: 850px;
  margin: 16px auto 0;
  color: #555;
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}

.section { padding: 58px 0; }
.soft-section { background: var(--soft); }
h2 {
  margin: 0 0 28px;
  color: var(--heading);
  font-family: "Google Sans", sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}
h3 {
  margin: 0 0 18px;
  color: var(--heading);
  font-family: "Google Sans", sans-serif;
  font-size: 23px;
  font-weight: 600;
}

.evidence-switcher { max-width: 900px; margin: 32px auto 0; }
.switcher-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 13px;
}
.switcher-tabs button {
  padding: 8px 15px;
  color: #555;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  cursor: pointer;
}
.switcher-tabs button.active { color: #fff; background: var(--dark); border-color: var(--dark); }
.switcher-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1070 / 1062;
  overflow: hidden;
  background: #d2d2d2;
  border-radius: 4px;
  box-shadow: 0 1px 7px rgba(10,10,10,.12);
}
.switcher-frame img {
  position: absolute;
  top: 0;
  width: 300%;
  max-width: none;
  height: 100%;
  object-fit: fill;
  transition: left .28s ease;
}
.evidence-beauty img { left: 0; }
.evidence-wire img { left: -100%; }
.evidence-uv img { left: -200%; }

.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
  margin-top: 36px;
}
.pipeline article {
  padding: 23px 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.pipeline article span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  color: #fff;
  background: var(--dark);
  border-radius: 50%;
  font-weight: 700;
}
.pipeline article h3 { margin-bottom: 8px; font-size: 18px; }
.pipeline article p { margin: 0; color: #777; font-size: 13px; line-height: 1.5; }
.pipeline-arrow { display: flex; align-items: center; color: #999; font-size: 25px; }

.headline-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 34px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--line);
}
.headline-metrics article { padding: 24px 14px; background: #fff; text-align: center; }
.headline-metrics strong { display: block; color: var(--heading); font-family: "Google Sans", sans-serif; font-size: 30px; }
.headline-metrics span { display: block; margin-top: 4px; color: #777; font-size: 12px; }
.results-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.result-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 54px;
  gap: 13px;
  align-items: center;
  margin: 17px 0;
  font-size: 13px;
}
.bar-row > div { height: 17px; overflow: hidden; background: #eaeaea; border-radius: 2px; }
.bar-row i { display: block; width: var(--value); height: 100%; background: #8f8f8f; }
.bar-row b { font-family: "Google Sans", sans-serif; text-align: right; }
.bar-row.selected { color: var(--accent); font-weight: 700; }
.bar-row.selected i { background: var(--accent); }
.panel-note { margin: 18px 0 0; color: #888; font-size: 12px; line-height: 1.5; }
.comparison-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.comparison-row strong { color: var(--heading); font-family: "Google Sans", sans-serif; font-size: 28px; }
.comparison-row.muted { color: #888; }
.comparison-panel > p:not(.panel-note) { margin: 20px 0 0; font-size: 14px; line-height: 1.65; }

.wide-figure { margin-top: 30px; }
.wide-figure img { border-radius: 4px; box-shadow: 0 1px 7px rgba(10,10,10,.12); }
.dataset-actions { margin-top: 28px; }

pre {
  position: relative;
  overflow-x: auto;
  margin: 0;
  padding: 22px;
  color: #eee;
  background: #292929;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
}
.copy-button {
  margin-top: 12px;
  padding: 8px 13px;
  color: #fff;
  background: var(--dark);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.citation-note { color: #888; font-size: 12px; }

footer { padding: 42px 0; background: var(--soft); font-size: 14px; }
footer p { margin: 5px 0; }

@media (max-width: 820px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline-arrow { display: none; }
  .headline-metrics { grid-template-columns: 1fr 1fr; }
  .results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--max-width)); }
  .publication-hero { padding-top: 45px; }
  .publication-hero h1 { font-size: 36px; }
  .venue { font-size: 19px; }
  .section { padding: 45px 0; }
  h2 { font-size: 28px; }
  .justified { text-align: left; }
  .pipeline, .headline-metrics { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 115px minmax(120px, 1fr) 48px; gap: 8px; }
  .switcher-tabs { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
