:root {
  --ink: #182126;
  --muted: #5d686e;
  --blue: #176f8f;
  --blue-dark: #12536b;
  --blue-soft: #eaf4f6;
  --coral: #d8695f;
  --line: #dce2e3;
  --band: #f4f6f5;
  --paper: #fbfcfb;
  --white: #fff;
  --max: 1040px;
  --wide: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.container.wide { width: min(var(--wide), calc(100% - 48px)); }
.narrow { max-width: 820px; }

.hero-shell {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-top: 5px solid var(--blue-dark);
  border-bottom: 1px solid var(--line);
}
.hero-shell::after {
  position: absolute;
  right: -84px;
  bottom: 42px;
  width: 290px;
  height: 1px;
  background: var(--coral);
  content: "";
  transform: rotate(-38deg);
  opacity: .42;
}
.hero { position: relative; z-index: 1; padding-top: 68px; padding-bottom: 68px; text-align: center; }
.acronym {
  margin: 0 0 19px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
}
.title-row { margin: 0 auto 31px; }
h1 {
  max-width: 1080px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.1vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}
h1 span, h1 strong { display: block; }
h1 strong { margin-top: 8px; color: var(--blue-dark); font-weight: 400; }
.authors {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 22px;
  max-width: 970px;
  margin: 0 auto 13px;
  color: var(--blue-dark);
  font-size: 17px;
  font-weight: 600;
}
sup { color: #50737f; font-size: .68em; }
.institutions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 18px;
  max-width: 1000px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 12px;
}
.institutions b { color: var(--blue); }
.note { margin: 5px 0 17px; color: var(--muted); font-size: 11px; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.button {
  min-width: 152px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid #273338;
  border-radius: 4px;
  color: #fff;
  background: #273338;
  font-size: 14px;
  font-weight: 600;
}
.button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button small { padding-left: 2px; color: #c5d7dd; font-size: 8px; text-transform: uppercase; }
.button.disabled { cursor: default; }

.intro { padding-top: 78px; padding-bottom: 92px; }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: end;
  gap: 78px;
  max-width: 1110px;
  margin: 0 auto 52px;
}
.question {
  padding-left: 22px;
  border-left: 3px solid var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.18;
}
.intro-copy, .result-lead { margin: 0; color: #3f4a50; font-size: 16px; line-height: 1.72; }
.intro-copy strong, .result-lead strong { color: var(--ink); }
.main-figure { margin: 0; }
.main-figure img { width: 100%; height: auto; }
.figure-link { display: block; }
.figure-link:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
figcaption { max-width: 720px; margin: 14px auto 0; color: var(--muted); text-align: center; font-size: 12px; }

.section-band { padding: 80px 0 84px; background: var(--band); border-block: 1px solid #e7ebea; }
.section-heading { margin-bottom: 36px; text-align: center; }
h2 {
  margin: 0 0 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
}
.section-heading h2 { margin-bottom: 0; }
.abstract-text { color: #334047; font-size: 17px; line-height: 1.85; }
.abstract-text p { margin: 0; }

.method { padding-top: 84px; padding-bottom: 94px; }
.method .main-figure { padding: 18px; border: 1px solid var(--line); background: #fff; }
.method h3 {
  margin: 36px 0 26px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.method-grid article { min-height: 170px; padding: 27px 31px; }
.method-grid article + article { border-left: 1px solid var(--line); }
.method-grid b { color: var(--blue-dark); font-size: 18px; }
.method-grid p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.results { padding-bottom: 94px; }
.result-lead { max-width: 820px; margin: 0 auto 38px; text-align: center; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1060px;
  margin: 0 auto 52px;
  border-block: 1px solid #ccd6d7;
}
.metrics div { padding: 23px 16px 22px; text-align: center; }
.metrics div + div { border-left: 1px solid #d5dddd; }
.metrics strong { display: block; color: var(--blue-dark); font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 400; line-height: 1.2; }
.metrics span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.table-block { margin: 0 0 64px; }
.table-scroll { overflow-x: auto; background: var(--white); box-shadow: 0 1px 0 rgba(24, 33, 38, .04); scrollbar-width: thin; }
table { width: 100%; min-width: 1040px; border: 1px solid #8f9aa1; border-collapse: collapse; font-size: 12px; line-height: 1.35; }
caption { padding: 0 8px 18px; color: #4f5960; text-align: center; caption-side: top; font-size: 12px; line-height: 1.5; }
th, td { padding: 12px 9px; border: 1px solid #aeb7bc; text-align: center; white-space: nowrap; }
thead th { color: #34434a; background: #e9eeee; font-weight: 700; }
tbody .group-start td { border-top: 2px solid #77868c; }
tbody .ours td { background: #e5f1f3; }
tbody tr:hover td { background: #f2f7f7; }
td[rowspan] { color: #4d5961; background: #fafbfb; font-weight: 600; }
td small { margin-left: 2px; color: #7b8388; font-size: 9px; }
td small::before { content: "("; }
td small::after { content: ")"; }
td .gain { color: #18716f; }
td .loss { color: #a6544f; }
.results .main-figure { margin-inline: auto; }
.prompt-figure { margin-top: 56px !important; padding-top: 55px; border-top: 1px solid var(--line); }

footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
footer span { color: var(--blue-dark); font-weight: 700; letter-spacing: .08em; }
footer a { text-decoration: none; }
footer a:hover { color: var(--blue); }

@media (max-width: 820px) {
  .container, .container.wide { width: min(100% - 32px, var(--wide)); }
  .hero { padding-top: 49px; padding-bottom: 53px; }
  h1 { font-size: clamp(32px, 8vw, 45px); }
  .authors { gap: 3px 15px; font-size: 15px; }
  .intro { padding-top: 60px; padding-bottom: 68px; }
  .intro-grid { grid-template-columns: 1fr; gap: 27px; margin-bottom: 38px; }
  .question { font-size: 28px; }
  .section-band, .method { padding-top: 62px; padding-bottom: 68px; }
  .method .main-figure { padding: 8px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article { min-height: 0; padding: 21px 4px; }
  .method-grid article + article { border-top: 1px solid var(--line); border-left: 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics div:nth-child(3) { border-top: 1px solid #d5dddd; border-left: 0; }
  .metrics div:nth-child(4) { border-top: 1px solid #d5dddd; }
  .table-scroll { margin-right: -16px; padding-right: 16px; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .hero-shell::after { display: none; }
  .acronym { margin-bottom: 13px; }
  h1 span, h1 strong { display: inline; }
  h1 strong::before { content: " "; }
  .institutions { gap: 2px 12px; font-size: 11px; }
  .button { min-width: 139px; }
  .question { padding-left: 16px; font-size: 25px; }
  .intro-copy, .result-lead { font-size: 15px; }
  h2 { font-size: 32px; }
  .abstract-text { font-size: 15px; line-height: 1.78; }
  .method h3 { font-size: 22px; }
  .metrics strong { font-size: 27px; }
  figcaption { text-align: left; }
}

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