:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef5f5;
  --ink: #14212f;
  --muted: #5b6b7e;
  --line: #dce5ed;
  --blue: #07558a;
  --blue-strong: #023d66;
  --teal: #0b7f75;
  --teal-soft: #dff4ef;
  --gold: #9a650d;
  --gold-soft: #fff3d9;
  --shadow: 0 18px 45px rgba(20, 33, 47, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(11, 127, 117, 0.12), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(7, 85, 138, 0.12), transparent 32%),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: auto;
  padding: 38px 0 28px;
  place-items: center;
}

.hero-inner {
  width: 100%;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    linear-gradient(135deg, rgba(11, 127, 117, 0.14), rgba(7, 85, 138, 0.1));
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.78fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.paper-meta,
.actions,
.summary-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.paper-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

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

h1 {
  max-width: 820px;
  margin: 20px 0 18px;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.15;
}

.authors {
  max-width: 900px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 19px;
  overflow-wrap: break-word;
}

.affiliations {
  max-width: 880px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: break-word;
}

.hero-summary {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--blue);
  text-decoration: none;
  font-size: 15px;
  font-weight: 850;
}

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

.button.is-disabled {
  cursor: default;
}

.mobile-break {
  display: none;
}

.teaser-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.teaser-panel img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
}

.teaser-panel div {
  padding: 18px;
}

.teaser-panel h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.teaser-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.summary-band {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.summary-band div {
  display: grid;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
}

.summary-band strong {
  color: var(--blue-strong);
  font-size: 30px;
  line-height: 1;
}

.summary-band span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.summary-band small {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.section {
  margin-bottom: 28px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.section-heading p {
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section > p,
.section article > p {
  color: var(--muted);
  font-size: 17px;
}

.section-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #07111d;
}

.video-card video {
  display: block;
  width: 100%;
  max-height: 680px;
  background: #07111d;
}

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

.insight-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.insight-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.22;
}

.insight-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.card-grid.dense .insight-card {
  background: var(--surface-soft);
}

.interval-grid {
  margin-bottom: 18px;
}

.insight-card.danger {
  background: #fff4f3;
}

.insight-card.success {
  background: #effaf5;
}

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

.result-table-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.result-table-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
}

.result-table-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.highlight-row td {
  color: var(--teal);
  font-weight: 850;
}

.figure-card {
  margin: 0;
}

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

.figure-card figcaption {
  max-width: 900px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 30px;
}

.key-card,
.contribution-card {
  align-self: start;
  padding: 22px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.key-card h2,
.contribution-card h2 {
  font-size: 24px;
}

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

ul,
ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

li + li {
  margin-top: 10px;
}

@media (max-width: 860px) {
  main {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-inner {
    border-radius: 12px;
  }

  .hero-grid,
  .summary-band,
  .card-grid,
  .results-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .summary-band {
    margin-top: 0;
  }

  .summary-band div {
    min-width: 0;
  }

  .teaser-panel img {
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 560px) {
  body {
    overflow-x: hidden;
  }

  main {
    width: 100%;
    max-width: 100%;
  }

  .hero {
    padding: 0;
  }

  .hero-inner,
  .section,
  .summary-band {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  h1 {
    max-width: 310px;
    font-size: 25px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .authors,
  .affiliations {
    max-width: 310px;
    overflow-wrap: anywhere;
  }

  .authors {
    font-size: 17px;
  }

  .hero-summary {
    max-width: 310px;
    font-size: 16px;
  }

  h2 {
    max-width: 310px;
    overflow-wrap: anywhere;
  }

  .teaser-panel {
    width: min(100%, 342px);
  }

  .actions .button {
    width: 100%;
  }

  .mobile-break {
    display: none;
  }
}
