/* Hand-written, no CDN and no build step: the page renders offline from a
   file:// URL exactly as it will on GitHub Pages. */

:root {
  --ink:        #20252b;
  --ink-soft:   #58636f;
  --line:       #d8dde3;
  --bg:         #ffffff;
  --bg-soft:    #f6f7fb;
  --accent:     #245078;
  --accent-dark:#183b59;
  --accent-soft:#edf3f7;
  --cyan:       #607d8b;
  --accent-ink: #ffffff;
  --wrap:       1120px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(36, 80, 120, 0.28);
  outline-offset: 3px;
}

code {
  font: 400 0.86em/1.5 "SFMono-Regular", "Consolas", "Menlo", monospace;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.08em 0.32em;
}

/* ---------- navigation + hero ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: var(--wrap);
  min-height: 62px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.brand:hover { color: var(--accent); text-decoration: none; }

.nav-sections {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 13.5px;
  font-weight: 600;
}

.nav-sections > a { color: var(--ink-soft); }
.nav-sections > a:hover { color: var(--ink); text-decoration: none; }

.nav-sections .nav-code {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}

.nav-sections .nav-code.disabled-link,
.btn.disabled-link {
  border-style: dashed;
  background: var(--bg-soft);
  color: var(--ink-soft);
  cursor: default;
  user-select: none;
}

.hero {
  border-bottom: 1px solid var(--line);
  padding: 64px 0 58px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #f5f8fb 0%, #fafbfc 62%, #fff 100%);
}

.hero .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(350px, 0.88fr);
  align-items: center;
  gap: clamp(40px, 6vw, 70px);
}

.venue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(96, 125, 139, 0.12);
}

.hero h1 {
  max-width: 680px;
  margin: 0 0 20px;
  font-size: 23px;
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hero h1 > span {
  display: block;
  margin-bottom: 8px;
  font: 600 clamp(54px, 7vw, 72px)/0.95 Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
  color: var(--accent-dark);
}

.hero-tagline {
  max-width: 620px;
  margin: 0 0 26px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  list-style: none;
  margin: 0 0 5px;
  padding: 0;
  font-size: 14.5px;
  font-weight: 650;
}

.authors sup { font-size: 0.68em; color: var(--ink-soft); }
.authors a { color: var(--ink); }
.authors a:hover { color: var(--accent); }

.affil {
  margin: 0 0 27px;
  font-size: 13px;
  color: var(--ink-soft);
}

.affil .note { font-style: italic; }

.links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.btn {
  display: inline-block;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--accent-dark); color: #fff; }
.btn.primary:hover { background: #214d70; }
.btn.secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.btn.secondary:hover { border-color: #bec5d0; }

.text-link {
  padding: 9px 7px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 650;
}

.concept-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 59, 89, 0.07);
}

.concept-head,
.concept-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.concept-head {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.concept-head b { padding: 0 4px; color: var(--accent); }

.concept-block {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px 13px;
  align-items: center;
}

.concept-block.muted { opacity: 0.52; }

.concept-label {
  grid-row: 1 / span 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-size: 13px;
}

.concept-label span { color: var(--ink-soft); font-size: 10.5px; line-height: 1.35; }

.schedule {
  position: relative;
  height: 11px;
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--accent-soft);
}

.schedule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(255, 255, 255, 0.72) calc(12.5% - 1px) 12.5%);
}

.schedule.flat { background: rgba(83, 97, 118, 0.42); }
/* Each row has the same summed opacity as .flat (8 × .42). Only its timing
   changes, mirroring ReCAST's fixed per-reward budget constraint. */
.schedule.timing-a { background: linear-gradient(to right, rgba(36,80,120,.12) 0 12.5%, rgba(36,80,120,.18) 12.5% 25%, rgba(36,80,120,.22) 25% 37.5%, rgba(36,80,120,.32) 37.5% 50%, rgba(36,80,120,.42) 50% 62.5%, rgba(36,80,120,.54) 62.5% 75%, rgba(36,80,120,.68) 75% 87.5%, rgba(36,80,120,.88) 87.5% 100%); }
.schedule.timing-b { background: linear-gradient(to right, rgba(36,80,120,.78) 0 12.5%, rgba(36,80,120,.52) 12.5% 25%, rgba(36,80,120,.34) 25% 37.5%, rgba(36,80,120,.24) 37.5% 50%, rgba(36,80,120,.18) 50% 62.5%, rgba(36,80,120,.26) 62.5% 75%, rgba(36,80,120,.42) 75% 87.5%, rgba(36,80,120,.62) 87.5% 100%); }
.schedule.timing-c { background: linear-gradient(to right, rgba(36,80,120,.20) 0 12.5%, rgba(36,80,120,.42) 12.5% 25%, rgba(36,80,120,.78) 25% 37.5%, rgba(36,80,120,.72) 37.5% 50%, rgba(36,80,120,.48) 50% 62.5%, rgba(36,80,120,.32) 62.5% 75%, rgba(36,80,120,.24) 75% 87.5%, rgba(36,80,120,.20) 87.5% 100%); }
.schedule.timing-d { background: linear-gradient(to right, rgba(36,80,120,.14) 0 12.5%, rgba(36,80,120,.20) 12.5% 25%, rgba(36,80,120,.28) 25% 37.5%, rgba(36,80,120,.36) 37.5% 50%, rgba(36,80,120,.48) 50% 62.5%, rgba(36,80,120,.72) 62.5% 75%, rgba(36,80,120,.76) 75% 87.5%, rgba(36,80,120,.42) 87.5% 100%); }

.concept-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.concept-divider::before,
.concept-divider::after { content: ""; height: 1px; flex: 1; background: var(--accent-soft); }

.concept-foot {
  margin: 19px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11.5px;
  text-align: center;
}

.concept-foot span { color: var(--cyan); font-weight: 800; }

/* ---------- sections ---------- */

main { padding: 0 0 40px; }

section { padding: 64px 0 24px; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

h2 {
  margin: 0 0 24px;
  font: 600 clamp(28px, 4vw, 35px)/1.16 Georgia, "Times New Roman", serif;
  line-height: 1.12;
  letter-spacing: -0.018em;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 720;
}

.section-kicker {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 780;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.section-kicker + h2 { margin-top: 0; }

/* A subsection heading needs air above it; the ones inside .step and
   .table-block cards do not. */
section > h3 { margin-top: 30px; }

p { margin: 0 0 16px; }

figure { margin: 0 0 24px; }

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

figcaption {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.caveat {
  font-size: 14.5px;
  color: var(--ink-soft);
  border-left: 3px solid var(--line);
  padding-left: 14px;
}

.overview > h2 { max-width: 780px; }

.lede {
  max-width: 900px;
  font-size: 20px;
  line-height: 1.55;
  color: #334155;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 34px 0 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  box-shadow: 0 4px 14px rgba(24, 59, 89, 0.04);
}

.metrics > div {
  min-height: 104px;
  padding: 19px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.metrics > div + div { border-left: 1px solid var(--line); }

.metrics strong {
  color: var(--accent-dark);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.metrics span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

/* Three scannable takeaways, so the page states problem/method/result before it
   asks for a paragraph of reading. */
.key {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.key li {
  min-width: 0;
  display: flex;
  gap: 13px;
  padding: 16px 4px 4px;
  border: 0;
  border-top: 2px solid var(--accent);
  border-radius: 0;
  background: #fff;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.key li > span {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.key li b {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 15px;
}

/* The full abstract is collapsed: available in one click, free at a glance. */
details {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0;
  margin-bottom: 8px;
  background: var(--bg-soft);
}

summary {
  cursor: pointer;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-soft);
}

details[open] summary { margin-bottom: 0; border-bottom: 1px solid var(--line); }
details p { margin: 16px; font-size: 14px; }
details p:last-child { margin-bottom: 8px; }

/* ---------- the master equation ---------- */

/* No MathJax: the one display equation the page needs is small enough to set in
   HTML, which keeps the page CDN-free and readable with JS disabled. */
.eq {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 40px;
  margin: 0 0 22px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: #f7f8fa;
}

.eq-main { font-size: 21px; }

.eq-side {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.eq-c { font-size: 16px; color: var(--ink); margin-right: 8px; }

.eq-l { white-space: nowrap; }

/* ---------- setup facts ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 28px;
  margin: 0 0 18px;
}

.result-callout {
  display: grid;
  grid-template-columns: minmax(230px, 0.48fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 0 0 30px;
  padding: 20px 22px;
  border: 1px solid rgba(36, 80, 120, 0.18);
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: #f2f5f7;
}

.result-callout strong { font-size: 17px; }
.result-callout span { color: var(--ink-soft); font-size: 14px; }

.judge-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 14px 0 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
}

.judge-summary > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
}

.judge-summary > div + div { border-left: 1px solid var(--line); }
.judge-summary strong { color: var(--accent-dark); font-size: 22px; letter-spacing: -0.035em; }
.judge-summary span { color: var(--ink-soft); font-size: 11.5px; font-weight: 650; }

.facts > div {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  flex: 0 0 88px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 3px;
}

.facts dd { margin: 0; font-size: 15.5px; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 21px;
  background: #fafbfc;
}

.step p { margin: 0; font-size: 15.5px; }

table.results {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  margin-bottom: 20px;
}

table.results th,
table.results td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

table.results thead th {
  border-bottom: 2px solid var(--ink);
  font-weight: 600;
}

/* Numbers right-align so static and ReCAST are comparable down the column; the
   reward name in column 1 stays left. */
table.results th + th,
table.results td + td { text-align: right; }

table.results tbody td:first-child { white-space: nowrap; }
table.results tbody tr:not(.grp):hover td { background: #fafaff; }

/* The paper groups each table into training rewards and held-out judges; the
   spanning row keeps that split visible without a second table. */
table.results tr.grp td {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg-soft);
  text-align: left;
  padding: 7px 12px;
}

table.results .tgt {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 5px;
}

table.results.narrow { font-size: 14px; }
table.results.narrow th,
table.results.narrow td { padding: 8px 8px; }

.table-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 8px 32px;
}

.table-block h3 { margin-bottom: 10px; }
.table-block,
.table-scroll { min-width: 0; overflow-x: auto; }

h3 .sub {
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-soft);
}

pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 16px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.5;
}

pre code { background: none; border: 0; padding: 0; }

footer {
  padding: 30px 24px 48px;
  font-size: 13px;
  color: var(--ink-soft);
}

footer p { margin-bottom: 4px; }

/* ---------- gallery ---------- */

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.tab {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14.5px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.tab[aria-selected="true"] {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.pair { margin: 0; }

/* The comparison slider: both images are stacked at full size and the top one
   is revealed by a clip-path driven from a range input, so there is no layout
   thrash while dragging and it degrades to a plain stacked pair without JS. */
.cmp {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: ew-resize;
}

.cmp img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.cmp img.top { clip-path: inset(0 0 0 var(--split, 50%)); }

.cmp .divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.cmp .divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.cmp input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.cmp .tag {
  position: absolute;
  bottom: 8px;
  font: 500 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 4px;
  background: rgba(20, 22, 28, 0.72);
  color: #fff;
  pointer-events: none;
}

.cmp .tag.left  { left: 8px; }
.cmp .tag.right { right: 8px; }

.pair figcaption { margin-top: 10px; font-size: 13.5px; }
.pair .lam {
  display: block;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12.5px;
  color: var(--ink);
  margin-bottom: 3px;
}

.pair .prompt {
  display: block;
  font-style: italic;
  /* Prompts run to four lines; clamped so the grid rows stay even, with the
     full text available in the lightbox. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zoom {
  margin-top: 6px;
  font: 500 12.5px system-ui, -apple-system, "Segoe UI", sans-serif;
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(16, 18, 22, 0.92);
  padding: 32px;
  overflow: auto;
}

.lightbox[hidden] { display: none; }

.lb-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.lb-body figure { margin: 0; }
.lb-body img { border-color: rgba(255, 255, 255, 0.15); }
.lb-body figcaption {
  color: #d7dae1;
  text-align: center;
  font: 500 12.5px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 8px;
}

.lb-prompt {
  max-width: 1100px;
  margin: 20px auto 0;
  color: #eceef2;
  font-style: italic;
  font-size: 15px;
}

.lb-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* ---------- narrow screens ---------- */

@media (max-width: 880px) {
  .hero { padding: 60px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 700px; }
  .concept-card { max-width: 600px; transform: none; }
  .key { grid-template-columns: 1fr; }
  .key li { padding: 17px 18px; }
  .table-pair { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .nav-sections > a:not(.nav-code) { display: none; }
  section { padding: 56px 0 24px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics > div { min-height: 90px; }
  .metrics > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .metrics > div:nth-child(4) { border-top: 1px solid var(--line); }
  .result-callout { grid-template-columns: 1fr; gap: 5px; }
  .judge-summary { grid-template-columns: 1fr 1fr; }
  .judge-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .judge-summary > div:nth-child(4) { border-top: 1px solid var(--line); }
  .eq { justify-content: flex-start; padding: 18px; }
  .eq-side { gap: 10px; }
  .eq-side > span { display: flex; flex-direction: column; }
  .eq-l { white-space: normal; }
  table.results { min-width: 560px; }
}

@media (max-width: 480px) {
  .wrap, .nav-inner { padding-left: 18px; padding-right: 18px; }
  .hero { padding: 48px 0 42px; }
  .hero h1 { font-size: 20px; }
  .hero h1 > span { font-size: 62px; }
  .hero-tagline { font-size: 17px; }
  .authors { gap: 2px 12px; font-size: 13.5px; }
  .affil { line-height: 1.5; }
  .concept-card { padding: 17px; }
  .concept-block { grid-template-columns: 75px 1fr; gap: 7px 9px; }
  .links .text-link { width: 100%; padding-left: 1px; }
  .metrics > div { padding: 16px 14px; gap: 9px; }
  .metrics strong { font-size: 25px; }
  .metrics span { font-size: 10.5px; }
  h2 { font-size: 29px; }
  body { font-size: 15.5px; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .lb-body { grid-template-columns: 1fr; }
  .lightbox { padding: 56px 16px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
