:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #20242a;
  --muted: #5f6875;
  --line: #d9e0ea;
  --blue: #2567a8;
  --blue-dark: #1c4d7c;
  --purple: #6b54b7;
  --green: #2f8a62;
  --soft-blue: #eaf3fb;
  --soft-purple: #f1eefb;
  --soft-green: #edf7f1;
  --shadow: 0 16px 38px rgba(31, 49, 77, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

img,
video {
  max-width: 100%;
}

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

a:hover {
  color: var(--blue-dark);
}

.page-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--blue);
}

.hero {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 42px;
  text-align: center;
}

.venue {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 15px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin: 0 auto 18px;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.3;
}

.authors {
  max-width: 820px;
  margin: 0 auto 8px;
  color: var(--blue-dark);
  font-weight: 700;
}

.author-note {
  margin: 0 auto 8px;
  color: var(--muted);
  font-size: 14px;
}

.affiliations {
  margin: 0 auto 24px;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--blue-dark);
  color: #ffffff;
}

.button.disabled {
  color: #8a93a1;
  background: #f0f3f7;
  cursor: default;
}

.section {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.section-tight {
  width: min(900px, calc(100% - 32px));
}

.video-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11151a;
  box-shadow: var(--shadow);
}

.video-shell video {
  display: block;
  width: 100%;
  height: auto;
}

.media-caption,
figcaption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.stat-card {
  min-height: 110px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stat-card strong {
  display: block;
  color: var(--blue-dark);
  font-size: 26px;
  line-height: 1.1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.split-grid.reverse {
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
}

.figure-frame,
.wide-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(31, 49, 77, 0.08);
}

.figure-frame img,
.wide-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.figure-frame figcaption {
  padding: 0 14px 14px;
}

.text-stack {
  display: grid;
  gap: 14px;
}

.text-stack article,
.three-col article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.text-stack article:nth-child(1) {
  border-left: 5px solid var(--blue);
}

.text-stack article:nth-child(2) {
  border-left: 5px solid var(--purple);
}

.text-stack article:nth-child(3) {
  border-left: 5px solid var(--green);
}

.text-stack p,
.three-col p {
  margin-bottom: 0;
  color: var(--muted);
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.three-col article:nth-child(1) {
  background: var(--soft-blue);
}

.three-col article:nth-child(2) {
  background: var(--soft-purple);
}

.three-col article:nth-child(3) {
  background: var(--soft-green);
}

.round-viewer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.round-tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.stage-button {
  min-width: 104px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.stage-button:hover,
.stage-button.active {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--soft-blue);
}

.round-content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 0;
  align-items: stretch;
}

.round-content img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 64 / 45;
  object-fit: cover;
}

.round-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border-left: 1px solid var(--line);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.resource-item {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.resource-item:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.resource-item span,
.resource-item small {
  display: block;
}

.resource-item span {
  font-size: 18px;
  font-weight: 900;
}

.resource-item small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.resource-item.muted {
  background: #f0f3f7;
  color: #7c8794;
}

.citation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.copy-button {
  min-width: 82px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

pre {
  overflow: auto;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111820;
  color: #e8eef7;
  font-size: 14px;
  line-height: 1.55;
}

.footer {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 820px) {
  .top-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    padding: 38px 0 32px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 24px;
  }

  .stat-grid,
  .three-col,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-grid,
  .split-grid.reverse,
  .round-content {
    grid-template-columns: 1fr;
  }

  .round-copy {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 28px;
  }

  .button {
    width: 100%;
  }

  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .stat-grid,
  .three-col,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .round-tabs {
    overflow-x: auto;
  }

  .stage-button {
    flex: 0 0 auto;
  }
}
