:root {
  --ink: #171817;
  --muted: #565b5a;
  --paper: #ffffff;
  --white: #ffffff;
  --line: #d9dddc;
  --soft-line: #e9eceb;
  --accent: #c95443;
  --link: #3f7d9e;
  --hard: #bd5b4e;
  --medium: #477d87;
  --easy: #71835f;
  --chart-pi: #d7d7d3;
  --chart-force: #bfc0bc;
  --chart-force2: #a3a5a1;
  --chart-spa: #e27042;
  --content: 1200px;
  --wide: 1600px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 28px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
body { font-size: 17px; line-height: 1.6; }
button, a { font-family: inherit; font-size: inherit; letter-spacing: 0; }
img, video { display: block; width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 18px;
  z-index: 50;
  padding: 10px 13px;
  color: var(--white);
  background: var(--ink);
}
.skip-link:focus { top: 12px; }
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { min-height: 76px; border-bottom: 1px solid var(--soft-line); }
.site-nav {
  width: min(var(--wide), calc(100% - var(--gutter) * 2));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.site-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  text-decoration: none;
}
.site-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-links a {
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.site-links a:hover { color: var(--accent); border-color: var(--accent); }

.paper-header {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 32px;
  text-align: center;
}
.paper-status,
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  text-transform: uppercase;
}
.paper-status { margin-bottom: 18px; }
.paper-header h1 {
  max-width: 1040px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 50px;
  line-height: 1.15;
  font-weight: 400;
}
.paper-header h1 span { color: var(--accent); }
.authors {
  margin: 24px auto 0;
  font-size: 17px;
  line-height: 1.8;
}
.authors a { color: var(--link); text-decoration: none; }
.authors a:hover { text-decoration: underline; }
.authors sup,
.affiliations sup { color: var(--accent); }
.affiliations { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.affiliations a { color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; }
.affiliations a:hover { color: var(--link); text-decoration: underline; }
.resource-links { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.resource-links a {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  background: #2b2c2a;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.resource-links svg { width: 17px; height: 17px; }
.resource-links a:hover { background: var(--accent); }

.intro {
  width: min(1000px, calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: 10px 0 44px;
  text-align: center;
}
.intro h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.45;
  font-weight: 400;
}
.intro p {
  max-width: 900px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-heading { max-width: 880px; margin: 0 auto; text-align: center; }
.section-heading--wide { max-width: 960px; }
.section-heading h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1.22;
  font-weight: 400;
}
.section-heading > p:last-child {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.rollout-showcase > .section-heading,
.continuous-section > .section-heading,
.additional-section > .section-heading,
.qualitative-section > .section-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 8px 48px;
  text-align: left;
}
.rollout-showcase > .section-heading .eyebrow,
.continuous-section > .section-heading .eyebrow,
.additional-section > .section-heading .eyebrow,
.qualitative-section > .section-heading .eyebrow { grid-column: 1 / -1; }
.rollout-showcase > .section-heading h2,
.continuous-section > .section-heading h2,
.additional-section > .section-heading h2,
.qualitative-section > .section-heading h2 { margin: 0; font-size: 32px; }
.rollout-showcase > .section-heading > p:last-child,
.continuous-section > .section-heading > p:last-child,
.additional-section > .section-heading > p:last-child,
.qualitative-section > .section-heading > p:last-child { margin: 0; font-size: 16px; }

.rollout-showcase {
  width: min(var(--wide), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
}
.difficulty-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.difficulty-column { min-width: 0; display: grid; grid-template-rows: auto 1fr 1fr; gap: 16px; }
.difficulty-header {
  min-height: 64px;
  padding: 10px 0 0;
  border-top: 2px solid currentColor;
}
.difficulty-hard { color: var(--hard); }
.difficulty-medium { color: var(--medium); }
.difficulty-easy { color: var(--easy); }
.difficulty-header > div { display: flex; align-items: baseline; gap: 12px; }
.difficulty-header h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}
.difficulty-index { font-size: 12px; font-variant-numeric: tabular-nums; }
.difficulty-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.task-card { min-width: 0; margin: 0; display: flex; flex-direction: column; color: var(--ink); }
.video-frame {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #edf0ef;
  border-radius: 6px;
}
.video-frame video {
  height: 100%;
  object-fit: contain;
}
.task-card figcaption {
  order: 1;
  padding: 10px 0 0;
  display: grid;
  gap: 3px;
}
.task-card figcaption strong {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}
.task-card figcaption span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.protocol-band {
  padding: 30px var(--gutter);
  color: var(--ink);
  background: #f7f9f8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.protocol-inner {
  width: min(var(--wide), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.6fr;
  align-items: center;
  gap: 40px;
}
.protocol-band .eyebrow { color: var(--muted); }
.protocol-band h2 {
  max-width: 380px;
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 400;
}
.protocol-stats { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.protocol-stats div { min-width: 0; padding-top: 15px; border-top: 1px solid #a8aaa5; }
.protocol-stats dt { font-family: Georgia, "Times New Roman", serif; font-size: 32px; line-height: 1; }
.protocol-stats dd { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }

.content-section {
  width: min(var(--content), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.continuous-section { width: min(var(--wide), calc(100% - var(--gutter) * 2)); border-top: 0; }
.endurance-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.endurance-card { min-width: 0; margin: 0; color: var(--ink); }
.endurance-card--water { color: var(--medium); }
.endurance-card--mortise { color: var(--hard); }
.endurance-card > header {
  min-height: 104px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 2px solid currentColor;
}
.endurance-card > header div { min-width: 0; }
.endurance-card > header span { color: var(--muted); font-family: "Courier New", monospace; font-size: 13px; line-height: 1.4; text-transform: uppercase; }
.endurance-card > header h3 { margin: 5px 0 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 23px; line-height: 1.3; font-weight: 400; }
.endurance-card > header > strong { color: currentColor; font-family: "Courier New", monospace; font-size: 16px; font-weight: 400; text-align: right; text-transform: uppercase; white-space: nowrap; }
.endurance-video {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #edf0ef;
  border-radius: 6px;
}
.endurance-video video {
  height: 100%;
  object-fit: contain;
}
.endurance-stats {
  min-height: 92px;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.endurance-stats p { min-width: 0; margin: 0; padding: 16px 12px; border-left: 1px solid var(--soft-line); }
.endurance-stats p:first-child { border-left: 0; }
.endurance-stats strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 27px; line-height: 1.15; font-weight: 400; font-variant-numeric: tabular-nums; }
.endurance-stats span { display: block; margin-top: 6px; color: var(--muted); font-family: "Courier New", monospace; font-size: 13px; line-height: 1.35; text-transform: uppercase; }

.additional-section { width: min(var(--wide), calc(100% - var(--gutter) * 2)); }
.additional-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.additional-card { min-width: 0; margin: 0; }
.additional-card > header { min-height: 88px; padding: 12px 0; border-top: 2px solid var(--medium); }
.additional-card:nth-child(2) > header { border-top-color: var(--chart-spa); }
.additional-card > header span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.additional-card > header h3 { margin: 5px 0 0; font-size: 21px; line-height: 1.3; font-weight: 600; }
.additional-video { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: #edf0ef; border-radius: 6px; }
.additional-video video { width: 100%; height: 100%; object-fit: contain; }
.additional-card figcaption { padding: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.wide-figure { margin: 32px 0 0; padding: 0; }
.wide-figure img { max-height: 590px; object-fit: contain; }
.wide-figure > a { display: block; cursor: zoom-in; }
.wide-figure figcaption { padding: 14px 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.wide-figure figcaption span { color: var(--ink); font-weight: 700; }
.prediction-section { width: min(var(--wide), calc(100% - var(--gutter) * 2)); }
.prediction-legend { margin-bottom: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; font-family: "Times New Roman", Times, serif; font-size: 22px; line-height: 1.3; }
.prediction-legend span { display: inline-flex; align-items: center; gap: 10px; }
.prediction-legend span::before { content: ""; width: 36px; height: 4px; display: block; }
.prediction-ground-truth::before { background: #dc7a2c; }
.prediction-estimate::before { background: #519fca; }
.prediction-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.prediction-panels a { min-width: 0; display: block; cursor: zoom-in; }
.prediction-panels img { height: auto; max-height: none; }
.model-section,
.ablation-section { width: min(var(--wide), calc(100% - var(--gutter) * 2)); }
.ablation-section { padding-bottom: 48px; }
.wide-figure--ablation { width: min(960px, 100%); margin: 40px auto 0; }
.wide-figure--ablation img { height: auto; max-height: none; }
.method-figures { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .32fr); gap: 32px; align-items: start; }
.method-figures .wide-figure { min-width: 0; margin: 0; padding: 0; }
.method-figures .wide-figure img { max-height: none; }
.method-figures .wide-figure figcaption { padding: 14px 0; }
.method-figures .wide-figure--integration { margin-top: 0; }

.method-explanation {
  margin-top: 34px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px;
  border-top: 1px solid var(--line);
}
.method-explanation article { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 15px; }
.method-explanation article > span { padding-top: 3px; color: var(--accent); font-size: 13px; }
.method-explanation h3 { margin: 0 0 10px; font: 20px/1.25 Georgia, "Times New Roman", serif; font-weight: 400; }
.method-explanation p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }

.results-section { width: min(var(--wide), calc(100% - var(--gutter) * 2)); }
.results-chart-viewport {
  margin-top: 32px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.results-chart-viewport:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.results-chart { min-width: 1320px; margin: 0; padding: 24px; background: var(--white); }
.results-chart > figcaption {
  padding-bottom: 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--soft-line);
  font-size: 14px;
  text-transform: uppercase;
}
.chart-legend {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 16px;
}
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { width: 12px; height: 12px; display: block; border: 1px solid rgba(23, 24, 23, .2); }
.legend-pi, .bar-pi { background: var(--chart-pi); }
.legend-force, .bar-force { background: var(--chart-force); }
.legend-force2, .bar-force2 { background: var(--chart-force2); }
.legend-spa, .bar-spa { background: var(--chart-spa); }
.chart-body { display: grid; grid-template-columns: 27px 35px 1fr; align-items: stretch; }
.chart-axis-title {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.chart-scale {
  height: 240px;
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  text-align: right;
}
.chart-plot { position: relative; }
.difficulty-bands {
  height: 44px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  text-transform: uppercase;
}
.difficulty-bands span { padding-top: 8px; border-top: 2px solid currentColor; }
.band-hard { grid-column: 1 / 3; color: var(--hard); }
.band-medium { grid-column: 3 / 5; color: var(--medium); }
.band-easy { grid-column: 5 / 7; color: var(--easy); }
.band-average { grid-column: 7 / 8; margin-left: 8px; color: var(--ink); }
.chart-gridlines {
  height: 240px;
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.chart-gridlines i { width: 100%; display: block; border-top: 1px solid var(--soft-line); }
.chart-gridlines i:last-child { border-color: #8a8c87; }
.chart-groups { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.chart-group { min-width: 0; margin: 0; }
.bar-pack {
  height: 240px;
  padding: 0 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
}
.metric-bar {
  width: 32px;
  height: calc(var(--value) * 2.4px);
  position: relative;
  display: block;
  border: 1px solid rgba(23, 24, 23, .18);
  border-bottom: 0;
  font-style: normal;
}
.metric-bar b {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
}
.bar-spa { border-color: #b9502a; }
.chart-group h3 {
  height: 54px;
  margin: 0;
  padding: 8px 4px 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
  text-align: center;
}
.chart-group--average { padding-left: 8px; border-left: 1px solid var(--line); }
.chart-group--average h3 { font-weight: 700; }
.chart-task-image {
  width: min(120px, calc(100% - 10px));
  aspect-ratio: 2.12 / 1;
  display: block;
  margin: 11px auto 0;
  object-fit: cover;
  border: 1px solid var(--soft-line);
  filter: saturate(.86) contrast(.96);
}
.chart-overall-total {
  width: min(120px, calc(100% - 10px));
  aspect-ratio: 2.12 / 1;
  margin: 11px auto 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: var(--chart-spa);
  border-top: 1px solid var(--chart-spa);
  border-bottom: 1px solid var(--soft-line);
}
.chart-overall-total strong { font: 24px Georgia, "Times New Roman", serif; font-weight: 400; }
.chart-overall-total span { color: var(--muted); font-size: 12px; }

.results-analysis {
  width: min(1000px, calc(100% - 32px));
  margin: 46px auto 0;
  padding-top: 31px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 54px;
  border-top: 1px solid var(--line);
}
.results-takeaway { padding-top: 2px; }
.results-takeaway span,
.results-takeaway small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.results-takeaway strong {
  display: block;
  margin: 10px 0 7px;
  color: var(--chart-spa);
  font: 46px/1 Georgia, "Times New Roman", serif;
  font-weight: 400;
}
.results-copy h3 { margin: 0 0 14px; font: 24px/1.25 Georgia, "Times New Roman", serif; font-weight: 400; }
.results-copy p { margin: 0 0 11px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.results-copy p strong { color: var(--ink); font-weight: 600; }

.qualitative-section { width: min(var(--wide), calc(100% - var(--gutter) * 2)); }
.qualitative-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.qualitative-item { min-width: 0; margin: 0; }
.qualitative-item > header { min-height: 96px; padding: 12px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; border-top: 2px solid var(--muted); }
.qualitative-item--ours > header { border-top-color: var(--accent); }
.qualitative-item > header span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.qualitative-item > header h3 { margin: 5px 0 0; font-size: 21px; line-height: 1.3; font-weight: 600; }
.qualitative-item > header strong { color: var(--muted); font-size: 13px; line-height: 1.4; font-weight: 600; }
.qualitative-item--ours > header strong { color: var(--accent); }
.qualitative-video { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: #edf0ef; border-radius: 6px; }
.qualitative-video video { width: 100%; height: 100%; object-fit: contain; }
.qualitative-item figcaption { padding: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.qualitative-note { margin: 24px 0 0; padding-top: 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; }

.ablation-protocol { margin: 32px 0 24px; color: var(--muted); font-size: 14px; text-align: right; }
.ablation-studies { display: grid; gap: 40px; }
.ablation-study { min-width: 0; }
.ablation-study-heading { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 2px solid var(--ink); }
.ablation-question-number { flex: 0 0 36px; color: var(--accent); font-size: 16px; line-height: 1.3; font-weight: 700; }
.ablation-study-heading h3 { margin: 0; font: 26px/1.3 Georgia, "Times New Roman", serif; font-weight: 400; }
.ablation-table-wrap { margin: 0; border-bottom: 1px solid var(--line); }
.ablation-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--white); }
.ablation-table .ablation-col-variant { width: 36%; }
.ablation-table .ablation-col-task { width: 24%; }
.ablation-table .ablation-col-average { width: 16%; }
.ablation-table th,
.ablation-table td { min-width: 0; padding: 16px 20px; border-bottom: 1px solid var(--soft-line); text-align: center; vertical-align: middle; }
.ablation-table th:first-child { text-align: left; }
.ablation-table thead th {
  padding-top: 12px;
  padding-bottom: 12px;
  color: var(--muted);
  background: #f3f5f5;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
.ablation-table tbody th { font-size: 18px; line-height: 1.4; font-weight: 500; }
.ablation-table tbody th small { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.5; font-weight: 400; }
.ablation-table tbody td { font-variant-numeric: tabular-nums; }
.ablation-table tr > :last-child { border-left: 1px solid var(--line); }
.ablation-table tbody td strong { display: block; color: var(--ink); font-size: 22px; line-height: 1.2; font-weight: 600; }
.ablation-table tbody td > span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.ablation-table .ablation-errors { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ablation-errors span { white-space: nowrap; }
.ablation-table tbody tr:last-child th,
.ablation-table tbody tr:last-child td { border-bottom: 0; }
.ablation-table .ablation-ours { color: var(--accent); background: #fff7f4; }
.ablation-table .ablation-ours th { box-shadow: inset 3px 0 var(--accent); font-weight: 700; }
.ablation-table .ablation-ours td strong { color: var(--accent); }

.citation { width: min(960px, calc(100% - var(--gutter) * 2)); padding-top: 48px; text-align: center; }
.citation-box { margin: 28px auto 0; position: relative; text-align: left; }
.citation pre { margin: 0; padding: 60px 24px 24px; overflow-x: auto; color: #e5e7e3; background: #2a2b29; border-radius: 6px; font: 14px/1.7 "Courier New", monospace; }
#copyCitation {
  min-width: 72px;
  height: 40px;
  padding: 0 12px;
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 3px;
  font-size: 13px;
  cursor: pointer;
}
#copyCitation:hover { color: var(--white); background: var(--accent); }

footer {
  width: min(var(--wide), calc(100% - var(--gutter) * 2));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}
footer a { font-family: Georgia, serif; font-size: 19px; text-decoration: none; }
footer p { margin: 0; color: var(--muted); font-size: 13px; }

@media (min-width: 1321px) {
  .difficulty-column { grid-row: span 3; grid-template-rows: subgrid; }
}

@media (max-width: 1320px) {
  .difficulty-grid { grid-template-columns: 1fr; gap: 28px; }
  .difficulty-column { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 12px 16px; }
  .difficulty-header { grid-column: 1 / -1; min-height: 0; padding: 10px 0 0; }
  .difficulty-header p { margin-top: 0; }
}

@media (max-width: 1100px) {
  .protocol-inner { grid-template-columns: 1fr; gap: 24px; }
  .protocol-band h2 { max-width: none; }
  .endurance-grid, .additional-grid, .qualitative-grid { grid-template-columns: 1fr; gap: 28px; }
  .endurance-card > header { min-height: 0; }
}

@media (max-width: 1000px) {
  :root { --gutter: 24px; }
  .paper-header h1 { font-size: 44px; }
  .method-figures { grid-template-columns: 1fr; gap: 24px; }
  .method-figures .wide-figure--integration { width: min(440px, 100%); margin: 0 auto; }
  .method-explanation { gap: 24px; }
  .ablation-table th, .ablation-table td { padding: 14px 12px; }
}

@media (max-width: 760px) {
  .prediction-panels { grid-template-columns: 1fr; }
  .site-nav { flex-wrap: wrap; gap: 0; padding: 12px 0; }
  .site-name { width: 100%; font-size: 24px; }
  .site-links { width: 100%; gap: 4px 20px; }
  .site-links a { font-size: 13px; }
  .paper-header { padding-top: 32px; }
  .rollout-showcase > .section-heading,
  .continuous-section > .section-heading,
  .additional-section > .section-heading,
  .qualitative-section > .section-heading { grid-template-columns: 1fr; gap: 10px; }
  .method-explanation { grid-template-columns: 1fr; gap: 24px; }
  .results-analysis { width: 100%; grid-template-columns: 1fr; gap: 24px; }
  .results-takeaway { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 18px; }
  .results-takeaway strong { grid-row: 1 / 3; margin: 0; }

  .ablation-protocol { text-align: left; }
  .ablation-study-heading { gap: 12px; }
  .ablation-study-heading h3 { font-size: 22px; }
  .ablation-table colgroup, .ablation-table thead { display: none; }
  .ablation-table { display: block; }
  .ablation-table tbody, .ablation-table tbody tr { display: block; }
  .ablation-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr .8fr;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--soft-line);
  }
  .ablation-table tbody tr th {
    width: auto;
    height: auto;
    padding: 14px 10px 10px;
    grid-column: 1 / -1;
    border-bottom: 0;
  }
  .ablation-table tbody tr td {
    height: auto;
    padding: 10px;
    border-top: 1px solid var(--soft-line);
    border-bottom: 0;
    text-align: left;
  }
  .ablation-table tbody tr td + td { border-left: 1px solid var(--soft-line); }
  .ablation-table tbody tr td::before {
    display: block;
    min-height: 40px;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
  }
  .ablation-table tbody tr td:nth-of-type(1)::before { content: "Water-Hose"; }
  .ablation-table tbody tr td:nth-of-type(2)::before { content: "Two-Hole Plug"; }
  .ablation-table tbody tr td:nth-of-type(3)::before { content: "Average"; }
  .ablation-table .ablation-errors { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .endurance-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .endurance-stats p:nth-child(odd) { border-left: 0; }
  .endurance-stats p:nth-child(n + 3) { border-top: 1px solid var(--soft-line); }
}

@media (max-width: 540px) {
  :root { --gutter: 16px; }
  .paper-header { width: calc(100% - var(--gutter) * 2); padding-bottom: 26px; }
  .paper-header h1 { font-size: 34px; line-height: 1.18; }
  .authors { margin-top: 20px; font-size: 16px; }
  .affiliations { font-size: 13px; }
  .resource-links { max-width: 320px; margin-right: auto; margin-left: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .resource-links a { min-height: 42px; padding: 0 12px; gap: 8px; justify-content: center; }
  .intro { padding: 8px 0 32px; }
  .intro h2 { font-size: 21px; }
  .intro p { font-size: 16px; }
  .content-section { padding: 40px 0; }
  .rollout-showcase { padding: 32px 0; }
  .section-heading h2,
  .rollout-showcase > .section-heading h2,
  .continuous-section > .section-heading h2,
  .additional-section > .section-heading h2,
  .qualitative-section > .section-heading h2 { font-size: 28px; }
  .section-heading > p:last-child { font-size: 16px; }
  .difficulty-grid { margin-top: 24px; }
  .difficulty-column { grid-template-columns: 1fr; grid-template-rows: auto; gap: 20px; }
  .difficulty-header { margin-bottom: -8px; }
  .protocol-band { padding: 24px var(--gutter); }
  .protocol-band h2 { font-size: 25px; }
  .protocol-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .protocol-stats dt { font-size: 30px; }
  .endurance-card > header { display: block; }
  .endurance-card > header > strong { display: block; margin-top: 6px; text-align: left; }
  .wide-figure { margin-top: 24px; }
  .method-figures { margin-top: 24px; }
  .method-explanation article { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
  .qualitative-item > header { min-height: 0; }
  .results-chart-viewport { margin-top: 24px; }
  .results-copy h3 { font-size: 23px; }
  .ablation-studies { gap: 32px; }
  .ablation-table tbody tr td { padding: 10px 6px; }
  .citation pre { padding: 60px 16px 20px; font-size: 13px; }
  footer { gap: 16px; }
  footer p { max-width: 160px; text-align: right; }
}

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