@font-face { font-family: "CMU Serif"; src: url("fonts/cmunrm.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "CMU Serif"; src: url("fonts/cmunbx.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "CMU Serif"; src: url("fonts/cmunti.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "CMU Serif"; src: url("fonts/cmunbi.woff2") format("woff2"); font-style: italic; font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #263a35;
  --muted: #54655f;
  --quiet: #606f68;
  --accent: #2b655e;
  --selected: #eaf0ec;
  --rule: #d8dfda;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.5 "CMU Serif", Georgia, serif; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button, select, input { font: inherit; }
button, select { color: var(--accent); background: var(--paper); border: 1px solid #a3b3aa; border-radius: 0; }
button { min-height: 44px; padding: 6px 16px; cursor: pointer; }
button:hover { background: var(--selected); }
select { width: 100%; min-height: 48px; padding: 9px 12px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
img { display: block; width: 100%; height: auto; }
.site-shell { width: min(1080px, calc(100% - 96px)); margin-inline: auto; }
.site-header { display: flex; flex-direction: column; gap: 21px; padding-top: 32px; }
.site-name { align-self: center; font-size: 32px; line-height: 43px; font-weight: 700; color: var(--ink); text-align: center; text-decoration: none; }
.masthead-navigation { border-block: 2px solid var(--ink); }
.menu-bar { display: none; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 50px; }
.primary-nav a { display: flex; align-items: center; min-height: 44px; font-size: 17px; text-decoration: none; color: var(--ink); }
.primary-nav a[aria-current] { color: var(--accent); }
.primary-nav a:hover { color: var(--accent); text-decoration: underline; }
.skip-link { position: absolute; top: -100px; left: 24px; padding: 12px; background: var(--paper); z-index: 2; }
.skip-link:focus { top: 8px; }
main:focus { outline: none; }
.introduction { padding: 27px 0 30px; border-bottom: 1px solid var(--rule); }
h1 { font-size: 43px; line-height: 1.28; letter-spacing: -.65px; }
.introduction p { margin-top: 19px; font-size: 20px; color: var(--muted); }
.research { padding-top: 23px; }
.eyebrow { font-size: 13px; line-height: 1.5; text-transform: uppercase; color: var(--quiet); letter-spacing: .045em; }
.research-label { font-weight: 700; margin-bottom: 17px; }
.research-layout { display: grid; grid-template-columns: 312px minmax(0, 1fr); gap: 52px; }
.research-nav { align-self: start; }
.research-nav a { position: relative; display: block; padding: 12px 24px 14px 20px; min-height: 84px; border-left: 3px solid transparent; text-decoration: none; color: var(--ink); }
.research-nav a + a::before { content: ""; position: absolute; top: 0; left: 17px; right: 17px; border-top: 1px solid var(--rule); }
.research-nav a[aria-current], .research-nav a:hover { background: var(--selected); }
.research-nav a[aria-current] { border-left-color: var(--accent); }
.research-nav a[aria-current]::before, .research-nav a[aria-current] + a::before { border: 0; }
.topic-label { display: block; font-size: 19px; line-height: 1.3; }
.research-nav a[aria-current] .topic-label { color: var(--accent); font-weight: 700; padding-right: 8px; }
.topic-summary { display: block; margin-top: 5px; color: var(--quiet); font-size: 15px; line-height: 1.4; }
.topic-arrow { display: none; position: absolute; right: 14px; top: 12px; font-size: 18px; }
.research-nav a[aria-current] .topic-arrow { display: block; }
[data-research-panels] { min-width: 0; }
.research-panel { min-width: 0; display: flex; flex-direction: column; min-height: 461px; }
.panel-body { flex: 1; }
.research-panel h2 { font-size: 31px; line-height: 1.3; letter-spacing: -.35px; }
.panel-description { font-size: 19px; line-height: 1.4; color: var(--muted); margin-top: 14px; max-width: 65ch; }
.figure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 29px; }
.research-figure { min-width: 0; }
.research-figure h3 { font-size: 16px; line-height: 1.25; margin-bottom: 8px; }
/* Match the map (1200×800) and restoration (1200×520) export formats.
   Reserve image space before loading without inline styles (blocked by CSP). */
.figure-image { min-width: 0; aspect-ratio: 3 / 2; }
.restoration-figure .figure-image { aspect-ratio: 30 / 13; }
.figure-image img { height: 100%; object-fit: contain; }
figcaption { font-size: 14px; line-height: 1.35; color: var(--quiet); }
figcaption { margin-top: 8px; }
figcaption span { display: block; }
.related-work { border-top: 1px solid var(--rule); margin-top: 18px; padding-top: 13px; }
.related-work .eyebrow { font-size: 14px; letter-spacing: .025em; }
.related-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.related-links a { display: flex; align-items: center; gap: 5px; min-height: 44px; padding: 5px 0; font-size: 18px; line-height: 1.35; text-decoration: none; }
.related-links a:hover { text-decoration: underline; }
.related-links a span { white-space: nowrap; }
.restoration-figure { margin-top: 27px; }
.restoration-figure figcaption { margin-top: 14px; }
.research-question h3 { font-size: 23px; line-height: 1.25; }
.research-question p { margin-top: 14px; font-size: 17px; line-height: 1.45; color: var(--muted); }
.question-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 37px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; padding: 8px 0 14px; border-top: 1px solid var(--rule); }
.contact-links { display: flex; gap: 16px; flex-wrap: wrap; }
.contact-links a { display: inline-flex; align-items: center; gap: 3px; min-height: 44px; font-size: 15px; text-decoration: none; }
.contact-links a:hover { text-decoration: underline; }
.site-footer p { font-size: 14px; color: var(--quiet); text-align: right; }
.about-contact-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.about-intro { padding: 32px 0; border-bottom: 1px solid var(--rule); }
.about-intro h1 { font-size: 36px; }
.about-bio { display: grid; grid-template-columns: 210px minmax(0, 740px); gap: 40px; align-items: start; margin-top: 25px; }
.about-portrait { width: 210px; height: 210px; object-fit: cover; }
.about-copy p { font-size: 20px; line-height: 1.5; color: var(--ink); }
.about-copy p + p { margin-top: 18px; }
.about-section { display: grid; grid-template-columns: 210px minmax(0, 740px); gap: 40px; padding: 30px 0; }
.about-section h2 { font-size: 25px; line-height: 1.3; }
.about-links { display: flex; flex-wrap: wrap; gap: 24px; }
.about-links a { display: inline-flex; min-height: 44px; align-items: center; gap: 4px; text-decoration: none; }
.about-links a:hover { text-decoration: underline; }
.about-section:last-child { padding-bottom: 14px; }
.mobile-research, .mobile-filters { display: none; }

/* Share one grid cell so desktop tabs reserve the tallest panel's space.
   Inactive panels stay invisible and inert, without loading their images. */
@media screen and (min-width: 851px) {
  [data-research-panels] { display: grid; }
  .research-panel { grid-area: 1 / 1; }
  .research-panel[hidden] { display: flex !important; visibility: hidden; }
}

/* One list and one URL, with independent topic and output-type filters. */
.page-heading { padding: 33px 0 20px; }
.scholar-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; text-decoration: none; }
.output-filters { position: relative; padding: 7px 0 20px; border-bottom: 1px solid var(--rule); }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 24px; }
.filter-row .eyebrow { width: 36px; flex-shrink: 0; font-size: 12px; }
.filter-row a { display: flex; align-items: center; min-height: 44px; font-size: 17px; text-decoration: none; color: var(--ink); }
.filter-row a[aria-current] { color: var(--accent); text-decoration: underline; }
.filter-row a:hover { color: var(--accent); text-decoration: underline; }
.filter-row .clear-filters { margin-left: auto; font-size: 15px; color: var(--accent); }
.result-count { margin-top: 20px; font-size: 15px; color: var(--quiet); }
.output { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding-top: 25px; }
.output + .output { padding-top: 32px; }
.output-meta { color: var(--quiet); font-size: 17px; }
.output-meta span { display: block; }
.output h2 { font-size: 25px; line-height: 1.3; }
.authors, .venue { font-size: 18px; margin-top: 3px; }
.venue, .output-status { color: var(--quiet); }
.output-note { color: var(--quiet); font-size: 16px; margin-top: 4px; }
.output-tags { font-size: 16px; color: var(--quiet); margin-top: 9px; }
.output-tags a { color: inherit; text-decoration: none; }
.output-tags a:hover { color: var(--accent); text-decoration: underline; }
.resource-links { display: flex; gap: 20px; flex-wrap: wrap; }
.resource-links a { display: flex; align-items: center; min-height: 44px; font-size: 16px; text-decoration: none; }
.resource-links a:hover { text-decoration: underline; }
.empty-state { padding: 45px 0 80px; max-width: 650px; min-height: 300px; }
.empty-state h2 { font-size: 28px; line-height: 1.3; }
.empty-state p { margin-top: 15px; color: var(--muted); }
.metrics-note { margin-top: 40px; font-size: 14px; color: var(--quiet); }

@media (max-width: 1100px) {
  .research-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
  .topic-label { font-size: 18px; }
  .topic-summary { font-size: 14px; }
  .figure-grid { gap: 12px; }
  .related-links { gap: 12px; }
  .filter-row { column-gap: 18px; }
}
@media (max-width: 850px) {
  .site-shell { width: calc(100% - 48px); }
  .site-header { gap: 17px; padding-top: 24px; }
  .menu-bar { display: flex; align-items: center; justify-content: flex-end; height: 52px; }
  .menu-toggle { display: flex; align-items: center; justify-content: flex-end; gap: 16px; width: 92px; height: 44px; padding: 0 4px 0 14px; border: 0; color: var(--ink); font-size: 16px; line-height: 25.5px; }
  .menu-icon { flex: none; width: 18px; height: 18px; }
  .menu-icon-close, .menu-toggle[aria-expanded="true"] .menu-icon-open { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-icon-close { display: block; }
  .primary-nav { display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 8px; border-top: 2px solid var(--ink); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { min-height: 48px; font-size: 16px; line-height: 25.5px; }
  .primary-nav a + a { border-top: 1px solid rgb(38 58 53 / 20%); }
  .introduction { padding: 28px 0 0; border: 0; }
  h1 { font-size: 35px; line-height: 1.22; letter-spacing: -.35px; }
  .desktop-break { display: none; }
  .introduction p { font-size: 18px; line-height: 1.45; margin-top: 18px; }
  .research { padding-top: 32px; }
  .research-label, .research-nav { display: none; }
  .mobile-research { display: grid; gap: 10px; margin-bottom: 30px; }
  .mobile-research label { font-weight: 700; }
  .research-layout { display: block; }
  .research-panel { min-height: 0; }
  .research-panel h2 { font-size: 29px; }
  .panel-description { font-size: 18px; line-height: 1.45; margin-top: 12px; }
  .figure-grid { gap: 20px; }
  .question-grid { gap: 20px; }
  .related-work { margin-top: 28px; }
  .site-footer { margin-top: 32px; }
  .about-intro { padding: 28px 0; }
  .about-intro h1 { font-size: 33px; }
  .about-bio { grid-template-columns: 1fr; gap: 24px; margin-top: 23px; }
  .about-portrait { width: 100%; height: auto; aspect-ratio: 1; }
  .about-copy p { font-size: 18px; }
  .about-section { grid-template-columns: 1fr; gap: 13px; padding: 25px 0; }
  .desktop-filters { display: none; }
  .mobile-filters { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
  .mobile-filters label { display: grid; gap: 6px; font-size: 15px; color: var(--quiet); }
  .filter-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .filter-actions a { font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 600px) {
  h1 { font-size: 33px; }
  .research-panel h2 { font-size: 28px; line-height: 1.25; }
  .figure-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 30px; }
  .research-figure h3 { font-size: 18px; margin-bottom: 10px; }
  figcaption { margin-top: 10px; font-size: 14px; }
  .related-links { grid-template-columns: 1fr; gap: 0; }
  .related-links a { min-height: 44px; font-size: 18px; }
  .related-work { padding-top: 18px; }
  .question-grid { grid-template-columns: 1fr; gap: 24px; }
  .restoration-figure { margin-top: 26px; }
  .research-question h3 { font-size: 24px; }
  .research-question p { margin-top: 8px; font-size: 18px; }
  .question-grid { margin-top: 30px; }
  .site-footer { flex-direction: column; align-items: stretch; gap: 4px; padding-bottom: 20px; }
  .site-footer p { align-self: flex-end; }
  .contact-links { gap: 18px; }
  .page-heading { padding-top: 28px; }
  .page-heading h1 { overflow-wrap: break-word; }
  .mobile-filters { grid-template-columns: 1fr; }
  .output { grid-template-columns: 1fr; gap: 8px; padding-top: 24px; }
  .output-meta { display: flex; gap: 12px; font-size: 15px; }
  .output h2 { font-size: 25px; }
  .empty-state { padding-top: 32px; padding-bottom: 48px; min-height: 0; }
  .empty-state h2 { font-size: 26px; }
  .metrics-note { margin-top: 28px; }
}
@media (prefers-reduced-motion: no-preference) {
  .research-nav a { transition: background-color 100ms ease; }
}
@media print {
  .site-shell { width: 100%; }
  .research-nav, .mobile-research, .output-filters, .site-footer, .masthead-navigation, .related-work { display: none; }
  .research-layout { display: block; }
  .site-header, .introduction { padding-block: 12px; }
  a { color: inherit; }
  .output, figure { break-inside: avoid; }
}
