:root {
  --ink: #102c3f;
  --ink-deep: #071e2c;
  --muted: #5f7280;
  --muted-light: #84939d;
  --paper: #fffefa;
  --canvas: #f4f6f3;
  --canvas-blue: #edf5f4;
  --line: #d9e2df;
  --teal: #087d76;
  --teal-dark: #075f5a;
  --teal-soft: #dff2ee;
  --coral: #e8734a;
  --coral-soft: #fbe8df;
  --sand: #f3e9d8;
  --blue: #216b8c;
  --shadow-sm: 0 10px 30px rgba(16, 44, 63, 0.06);
  --shadow-md: 0 24px 70px rgba(16, 44, 63, 0.1);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 34px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(46, 162, 154, 0.11), transparent 30rem),
    radial-gradient(circle at 92% 15%, rgba(232, 115, 74, 0.08), transparent 28rem),
    var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(232, 115, 74, 0.42);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 1000;
  padding: 10px 15px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink-deep);
  font-weight: 800;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(217, 226, 223, 0.82);
  background: rgba(248, 250, 247, 0.9);
  backdrop-filter: blur(18px) saturate(135%);
}

.nav {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  color: var(--ink-deep);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink-deep);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px 13px 13px 4px;
  color: #fff;
  background: linear-gradient(140deg, var(--teal) 0 58%, var(--coral) 58% 100%);
  box-shadow: 0 8px 18px rgba(7, 95, 90, 0.2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.nav-links .nav-data {
  border: 1px solid var(--line);
  background: var(--paper);
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

main {
  min-height: 65vh;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", serif;
  text-wrap: balance;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(40px, 5.2vw, 68px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h2 {
  margin-bottom: 13px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h3 {
  margin-bottom: 9px;
  font-size: 21px;
  letter-spacing: -0.018em;
  line-height: 1.3;
}

p {
  margin-top: 0;
}

.hero {
  position: relative;
  margin: 34px auto 42px;
  padding: clamp(30px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(16, 44, 63, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(255, 254, 250, 0.95);
  box-shadow: var(--shadow-md);
}

.hero::before {
  position: absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  top: -140px;
  border: 48px solid rgba(8, 125, 118, 0.07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.home-hero {
  min-height: 600px;
  color: #eaf5f3;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 82% 15%, rgba(44, 188, 178, 0.24), transparent 28rem),
    radial-gradient(circle at 13% 93%, rgba(232, 115, 74, 0.22), transparent 24rem),
    linear-gradient(135deg, #071e2c, #0d3441 62%, #0a4e50);
}

.home-hero::before {
  border-color: rgba(255, 255, 255, 0.05);
}

.home-hero h1,
.home-hero h2,
.home-hero h3 {
  color: #fff;
}

.home-hero .lead {
  color: rgba(234, 245, 243, 0.78);
}

.hero-grid,
.paper-hero-grid,
.topic-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
}

.hero-copy,
.paper-hero-copy,
.topic-hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(8, 125, 118, 0.15);
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.home-hero .eyebrow {
  color: #c8f0eb;
  border-color: rgba(200, 240, 235, 0.22);
  background: rgba(200, 240, 235, 0.09);
}

.breadcrumbs {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.breadcrumbs a {
  color: inherit;
}

.lead {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.62;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: #fff !important;
  background: var(--teal);
  box-shadow: 0 9px 22px rgba(7, 95, 90, 0.18);
  font-size: 14px;
  font-weight: 820;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  background: var(--teal-dark);
  box-shadow: 0 12px 28px rgba(7, 95, 90, 0.24);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--ink) !important;
  border-color: var(--line);
  background: var(--paper);
  box-shadow: none;
}

.home-hero .button.secondary {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.collection-map {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.map-head > div:first-child {
  display: grid;
  gap: 3px;
}

.map-head > div:first-child span {
  color: #85d9d0;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.map-head > div:first-child strong {
  color: #fff;
  font-size: 19px;
  line-height: 1.25;
}

.map-total {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
}

.map-total b {
  color: #fff;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.map-total small {
  color: rgba(234, 245, 243, 0.72);
  font-size: 11px;
  font-weight: 720;
}

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

.route-map-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 82px;
  padding: 13px;
  border: 1px solid rgba(210, 238, 233, 0.18);
  border-radius: 16px;
  color: var(--ink-deep);
  background: rgba(250, 255, 252, 0.95);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.route-map-card:hover {
  border-color: rgba(133, 217, 208, 0.72);
  color: var(--ink-deep);
  background: #fff;
  transform: translateY(-2px);
}

.route-number {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 10px 10px 10px 3px;
  color: var(--coral);
  background: var(--coral-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.route-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.route-copy strong {
  color: var(--ink-deep);
  font-size: 13px;
  line-height: 1.28;
}

.route-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.map-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 15px;
  color: rgba(234, 245, 243, 0.58);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

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

.stat {
  padding: 13px 14px;
  border: 1px solid rgba(8, 125, 118, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(223, 242, 238, 0.62);
}

.home-hero .stat {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.stat strong {
  display: block;
  margin-bottom: 1px;
  color: var(--ink-deep);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 27px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  line-height: 1;
}

.home-hero .stat strong {
  color: #fff;
}

.home-hero .stat span {
  color: rgba(234, 245, 243, 0.7);
}

.section {
  margin: 54px auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head p {
  max-width: 660px;
  margin-bottom: 0;
}

.section-kicker {
  margin-bottom: 7px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.panel,
.card {
  padding: clamp(23px, 3vw, 34px);
  border: 1px solid rgba(16, 44, 63, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.96);
  box-shadow: var(--shadow-sm);
}

.panel > :last-child,
.card > :last-child {
  margin-bottom: 0;
}

.panel > h2:not(:first-child) {
  margin-top: 34px;
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.academic-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 20px;
}

.academic-intro aside {
  padding: clamp(23px, 3vw, 34px);
  border: 1px solid #e5d7c2;
  border-radius: var(--radius);
  background: var(--sand);
}

.topic-card {
  position: relative;
  display: flex;
  min-height: 305px;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card::before {
  position: absolute;
  width: 110px;
  height: 110px;
  right: -32px;
  top: -42px;
  border: 24px solid rgba(8, 125, 118, 0.06);
  border-radius: 50%;
  content: "";
}

.topic-card:hover {
  border-color: rgba(8, 125, 118, 0.35);
  box-shadow: 0 18px 45px rgba(16, 44, 63, 0.1);
  transform: translateY(-3px);
}

.topic-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.theme-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 15px 15px 15px 5px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 900;
}

.topic-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.topic-card h3 {
  font-size: 25px;
}

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.card-link::after {
  content: "→";
  transition: transform 0.18s ease;
}

.card-link:hover::after {
  transform: translateX(3px);
}

.evidence-strip,
.featured-grid,
.visual-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.evidence-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-deep);
  box-shadow: var(--shadow-sm);
}

.evidence-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.25s ease, transform 0.4s ease;
}

.evidence-card:hover img {
  opacity: 0.86;
  transform: scale(1.025);
}

.evidence-card-content {
  position: absolute;
  inset: auto 0 0;
  padding: 60px 24px 22px;
  color: #fff;
  background: linear-gradient(transparent, rgba(7, 30, 44, 0.94));
}

.evidence-card-content h3 {
  margin-bottom: 4px;
  color: #fff;
}

.evidence-card-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.research-questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.question-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  min-height: 100px;
  padding: 23px;
  background: var(--paper);
}

.question-card span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--coral);
  background: var(--coral-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.question-card p {
  margin: 0;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.5;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 20px 0;
}

.search-wrap {
  position: relative;
}

.search-wrap::before {
  position: absolute;
  left: 17px;
  top: 50%;
  color: var(--muted);
  content: "⌕";
  font-size: 22px;
  transform: translateY(-53%);
}

.toolbar input {
  width: 100%;
  min-height: 52px;
  padding: 0 17px 0 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 6px 20px rgba(16, 44, 63, 0.04);
  font: inherit;
  font-size: 15px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.filter-button:hover,
.filter-button.active {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.paper-list {
  display: grid;
  gap: 13px;
}

.paper-item {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) auto;
  align-items: center;
  gap: 23px;
  min-height: 166px;
  padding: 14px 18px 14px 14px;
  border: 1px solid rgba(16, 44, 63, 0.1);
  border-radius: 19px;
  background: var(--paper);
  box-shadow: 0 7px 23px rgba(16, 44, 63, 0.045);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.paper-item:hover {
  border-color: rgba(8, 125, 118, 0.35);
  transform: translateY(-2px);
}

.paper-thumb {
  height: 136px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.paper-thumb img {
  width: 100%;
  height: 100%;
  padding: 7px;
  object-fit: contain;
}

.paper-number {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.paper-item h3 {
  margin-bottom: 6px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 780;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.paper-item h3 a {
  color: var(--ink-deep);
  text-decoration: none;
}

.paper-item h3 a:hover {
  color: var(--teal-dark);
}

.paper-item-body > p:not(.meta) {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.paper-action {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.paper-action:hover {
  color: #fff;
  background: var(--teal);
}

.paper-item.topic-paper-item {
  grid-template-columns: 165px minmax(0, 1fr);
}

.paper-item.topic-paper-item .paper-action {
  display: none;
}

.small,
.meta {
  color: var(--muted);
  font-size: 13px;
}

.meta {
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 0;
}

.tag {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #49606d;
  background: #f2f6f4;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
}

.notice {
  padding: 17px 19px;
  border: 1px solid rgba(8, 125, 118, 0.18);
  border-left: 4px solid var(--teal);
  border-radius: 13px;
  color: #345d5a;
  background: #eaf7f3;
}

.citation {
  padding: 16px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: #334b59;
  background: #f6f8f6;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
}

.question-list {
  padding-left: 22px;
}

.question-list li {
  margin: 8px 0;
}

.table-wrap {
  padding: 0;
  overflow-x: auto;
}

.compare {
  width: 100%;
  min-width: 790px;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare th {
  color: var(--muted);
  background: #f0f5f2;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.compare tr:last-child td {
  border-bottom: 0;
}

.compare tbody tr:hover {
  background: rgba(223, 242, 238, 0.32);
}

.figure-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.figure-frame img {
  width: 100%;
  height: auto;
  background: #fff;
}

.figure-frame img[data-lightbox] {
  cursor: zoom-in;
}

.figure-frame figcaption {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.figure-frame figcaption strong {
  color: var(--ink);
}

.source-chip {
  display: inline-flex;
  margin-top: 9px;
  padding: 4px 8px;
  border: 1px solid rgba(8, 125, 118, 0.18);
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 10px;
  font-weight: 820;
}

.paper-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.paper-page .hero h1 {
  font-size: clamp(36px, 4.25vw, 58px);
  line-height: 1.04;
}

.paper-hero-media .figure-frame img {
  max-height: 560px;
  padding: 12px;
  object-fit: contain;
}

.paper-figure-large {
  max-height: 650px;
  padding: 12px;
  object-fit: contain;
}

.topic-page .hero h1 {
  font-size: clamp(40px, 5vw, 62px);
}

.topic-visuals {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 460px;
}

.topic-visuals .figure-frame {
  min-height: 0;
}

.topic-visuals .figure-frame:first-child {
  grid-row: 1 / 3;
}

.topic-visuals img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 10px;
  object-fit: contain;
}

.topic-visuals figcaption {
  display: none;
}

.visual-gallery .figure-frame img,
.featured-card .figure-frame img {
  height: 270px;
  padding: 10px;
  object-fit: contain;
}

.image-credit-list {
  display: grid;
  gap: 0;
  padding-block: 8px;
}

.image-credit {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 21px;
  padding: 20px 10px;
  border-bottom: 1px solid var(--line);
}

.image-credit:last-child {
  border-bottom: 0;
}

.image-credit img {
  width: 180px;
  height: 118px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  object-fit: contain;
}

.image-credit h3 {
  margin-bottom: 6px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 780;
}

.image-credit p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

details {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

summary {
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 820;
}

.hidden {
  display: none !important;
}

.empty-state {
  display: none;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state.visible {
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3, 15, 23, 0.92);
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: min(1400px, 95vw);
  max-height: 92vh;
  padding: 16px;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
}

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  margin: auto;
}

.lightbox-caption {
  padding: 11px 4px 0;
  color: #475e6a;
  font-size: 13px;
}

.lightbox-close {
  position: sticky;
  z-index: 2;
  float: right;
  top: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--ink-deep);
  cursor: pointer;
  font-size: 23px;
}

.footer {
  margin-top: 70px;
  padding: 46px 0;
  color: rgba(234, 245, 243, 0.72);
  background: var(--ink-deep);
  font-size: 13px;
}

.footer a {
  color: #bde8e2;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(200px, 0.8fr);
  gap: 40px;
  align-items: start;
}

.footer strong {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

@media (max-width: 1040px) {
  .hero-grid,
  .paper-hero-grid,
  .topic-hero-grid,
  .academic-intro {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 0;
  }

  .collection-map {
    max-width: 720px;
  }

  .grid,
  .evidence-strip,
  .featured-grid,
  .visual-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .filter-group {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    display: none;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 0 0 17px 17px;
    background: rgba(255, 254, 250, 0.98);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links a {
    border-radius: 10px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .paper-item,
  .paper-item.topic-paper-item {
    grid-template-columns: 144px minmax(0, 1fr);
  }

  .paper-action {
    display: none;
  }

  .paper-thumb {
    height: 126px;
  }

  .topic-visuals {
    min-height: 400px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 26px, 1180px);
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    margin-top: 20px;
    padding: 25px;
    border-radius: 25px;
  }

  h1 {
    font-size: clamp(36px, 12vw, 48px);
  }

  .paper-page .hero h1,
  .topic-page .hero h1 {
    font-size: clamp(34px, 10.5vw, 46px);
  }

  .lead {
    font-size: 17px;
  }

  .section {
    margin: 40px auto;
  }

  .section-head {
    display: block;
  }

  .grid,
  .grid.two,
  .evidence-strip,
  .featured-grid,
  .visual-gallery,
  .research-questions {
    grid-template-columns: 1fr;
  }

  .topic-card {
    min-height: 0;
  }

  .paper-item,
  .paper-item.topic-paper-item {
    grid-template-columns: 1fr;
    padding: 13px 13px 20px;
  }

  .paper-thumb {
    height: 205px;
  }

  .topic-visuals {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .topic-visuals .figure-frame,
  .topic-visuals .figure-frame:first-child {
    grid-row: auto;
    min-height: 230px;
  }

  .image-credit {
    grid-template-columns: 1fr;
  }

  .image-credit img {
    width: 100%;
    height: 190px;
  }

  .collection-map {
    padding: 18px;
  }

  .route-map-grid {
    grid-template-columns: 1fr;
  }

  .route-map-card {
    min-height: 70px;
  }

  .map-foot {
    display: grid;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
