:root {
  --text: #222;
  --muted: #62666d;
  --line: #dedede;
  --bg: #fff;
  --soft: #f7f7f7;
  --accent: #225ea8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(880px, calc(100% - 32px));
}

.hero {
  padding: 64px 0 34px;
  text-align: center;
}

h1 {
  margin: 0 auto 22px;
  font-size: 2.45rem;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  font-size: 1.65rem;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

p {
  margin-top: 0;
}

.authors {
  display: grid;
  gap: 6px;
  margin: 0 auto 12px;
  font-size: 1.05rem;
}

.authors div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

sup {
  font-size: 0.72em;
  line-height: 0;
}

.affiliations {
  display: grid;
  gap: 4px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

.affiliations div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.links a {
  display: inline-flex;
  min-width: 86px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  color: #fff;
  background: #333;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
}

.links a:hover {
  background: var(--accent);
  text-decoration: none;
}

.section {
  padding: 28px 0;
}

.section.compact {
  padding: 42px 0;
}

.alt {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section p {
  color: var(--muted);
}

figure {
  margin: 0;
}

.main-figure {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.main-figure img {
  width: min(100%, 900px);
  margin: 0 auto;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.method-grid,
.results-grid,
.figure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.method-grid article,
.results-grid div {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.method-grid p,
.results-grid p {
  margin-bottom: 0;
}

.results-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 1.85rem;
  font-weight: 800;
}

.figure-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.figure-grid figure {
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.bib-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.bib-card button {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 34px;
  padding: 6px 12px;
  color: #fff;
  background: #333;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

pre {
  margin: 0;
  padding: 56px 18px 18px;
  overflow-x: auto;
  background: #f3f3f3;
  font-size: 0.92rem;
  line-height: 1.5;
}

footer {
  padding: 28px 16px 42px;
  color: var(--muted);
  text-align: center;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .hero {
    padding-top: 40px;
  }

  h1 {
    font-size: 1.85rem;
  }

  .method-grid,
  .results-grid,
  .figure-grid {
    grid-template-columns: 1fr;
  }
}
