:root {
  --bg: #ffffff;
  --soft: #f6f8fb;
  --ink: #121926;
  --muted: #5c667a;
  --line: #dfe5ee;
  --brand: #2058cc;
  --brand-soft: #e8efff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
}

.top-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-logo {
  width: 24px;
  height: 24px;
  display: block;
}

.main-content {
  padding-top: 3.5rem;
}

.hero-section {
  padding: 3.25rem 1rem 2.4rem;
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-logo-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.hero-title-logo {
  width: 34px;
  height: 34px;
  display: block;
}

.hero-logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #21314f;
}

.paper-title {
  font-size: clamp(1.75rem, 4.2vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.authors {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.affiliations {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.paper-pill {
  display: inline-block;
  border: 1px solid #2f3f5c;
  border-radius: 999px;
  padding: 0.36rem 0.9rem;
  color: #1b2f54;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 120ms ease;
}

.paper-pill:hover {
  background: var(--brand-soft);
  color: #112a5d;
  transform: translateY(-1px);
}

.section-block {
  padding: 2.5rem 1rem;
}

.section-soft {
  background: var(--soft);
}

.section-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 0.45rem;
  border-radius: 2px;
  background: var(--brand);
}

.media-card,
.figure-card,
.finding-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.media-card {
  padding: 0.85rem;
}

.media-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #11151e;
}

.video-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.75rem 0.2rem 0.1rem;
}

.figure-card {
  margin: 0;
  padding: 0.7rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(18, 25, 38, 0.05);
}

.figure-card.zoomable {
  cursor: zoom-in;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.figure-card.zoomable:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 22px rgba(32, 88, 204, 0.14);
  transform: translateY(-2px);
}

.figure-card .zoom-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(18, 25, 38, 0.68);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.figure-card.zoomable:hover .zoom-hint {
  opacity: 1;
}

.figure-card.fit-md {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.figure-card.compact {
  padding: 0.55rem;
}

.figure-card img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.figure-card figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.7rem 0.1rem 0.1rem;
}

.bullets {
  margin: 0.6rem 0 0.8rem 1rem;
}

.finding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.finding-card {
  padding: 0.95rem 1rem;
}

.finding-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.finding-card p {
  margin: 0;
  color: #3d4a60;
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.8rem 1rem 2.2rem;
  color: var(--muted);
}

.pdf-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem;
}

.pdf-frame {
  display: block;
  width: 100%;
  height: min(76vh, 780px);
  border: 0;
  border-radius: 8px;
  background: #f0f3f8;
}

.pdf-frame-short {
  height: min(56vh, 520px);
}

.pdf-caption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.bibtex-block {
  margin: 0;
  padding: 0.9rem 1rem;
  background: #0f172a;
  color: #e5edf8;
  border-radius: 10px;
  border: 1px solid #2a3a5c;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  background: rgba(10, 14, 22, 0.93);
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: auto;
  padding: 2.6rem 2rem 1rem;
}

.lightbox-stage img {
  margin: auto;
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-overlay.is-zoomed .lightbox-stage img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 1rem;
  z-index: 1;
  border: 0;
  background: none;
  color: #cdd7e8;
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  color: #fff;
}

.lightbox-caption {
  margin: 0;
  padding: 0.7rem 1.5rem 1.1rem;
  text-align: center;
  color: #b9c4d8;
  font-size: 0.92rem;
}

.docs-table {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.docs-table th {
  background: var(--brand-soft);
  color: var(--ink);
}

.docs-table td,
.docs-table th {
  border-color: var(--line);
  vertical-align: top;
}

.docs-step-title {
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 900px) {
  .finding-grid {
    grid-template-columns: 1fr;
  }

  .docs-table {
    display: block;
    overflow-x: auto;
  }
}
