/* Mendoza Lab website stylesheet.
   Palette keeps the original site's identity: Spartan green panels, black bars, white reading surface.
   Fonts are self-hosted (SIL Open Font License): Literata (text) and Archivo (interface). */

@font-face {
  font-family: "Literata Variable"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("../fonts/literata-latin-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata Variable"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("../fonts/literata-latin-ext-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata Variable"; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url("../fonts/literata-latin-opsz-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata Variable"; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url("../fonts/literata-latin-ext-opsz-italic.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo Variable"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo Variable"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --spartan: #18453B;
  --spartan-dark: #10332B;
  --black: #000000;
  --paper: #FFFFFF;
  --ink: #1E2522;
  --ink-2: #48544F;
  --lattice: #A9D86E;
  --lattice-ink: #3B7520;
  --mist: #EEF4F0;
  --rule: #D3DFD8;
  --serif: "Literata Variable", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Archivo Variable", "Arial Narrow", Arial, Helvetica, sans-serif;
  --side: 270px;
  --main: 960px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.0625rem; line-height: 1.62;
  font-optical-sizing: auto; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--spartan); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--lattice-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lattice); outline-offset: 2px; border-radius: 2px; }
sub, sup { line-height: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--black); color: #fff; padding: 10px 16px; z-index: 50; font-family: var(--sans); }
.skip-link:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header band ---------- */
.site-header, .hero-band { position: relative; overflow: hidden; background: var(--spartan); color: #fff; isolation: isolate; }
.site-header .moire, .hero-band .moire { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; color: var(--lattice);
  -webkit-mask-image: linear-gradient(90deg, transparent 22%, rgba(0,0,0,.55) 52%, #000 85%);
          mask-image: linear-gradient(90deg, transparent 22%, rgba(0,0,0,.55) 52%, #000 85%); }
.moire .layer { opacity: .42; }
.moire .twist { transform-box: view-box; transform-origin: 70% 50%; transform: rotate(5deg); }
@media (prefers-reduced-motion: no-preference) {
  .home .moire .twist { animation: twist 2.6s cubic-bezier(.2,.7,.2,1) .2s both; }
  @keyframes twist { from { transform: rotate(0deg); } to { transform: rotate(5deg); } }
}
.header-inner { max-width: calc(var(--side) + var(--main)); margin: 0 auto; padding: 22px var(--gutter); display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 62px; height: 62px; flex: none; }
.brand-name { display: block; font-family: var(--serif); font-weight: 650; font-size: 1.85rem; line-height: 1.05; letter-spacing: -0.01em; }
.brand-tag { display: block; font-family: var(--sans); font-stretch: 88%; font-size: .95rem; color: #DCEBDD; margin-top: 4px; }
.header-aff { font-family: var(--sans); font-stretch: 88%; font-size: .9rem; text-align: right; color: #DCEBDD; line-height: 1.35; }
.header-aff a { color: #fff; text-decoration: none; }
.header-aff a:hover { text-decoration: underline; color: #fff; }

/* Home banner: a second green band below the navigation bar */
.hero-band .moire { -webkit-mask-image: linear-gradient(90deg, transparent 30%, rgba(0,0,0,.6) 60%, #000 90%);
          mask-image: linear-gradient(90deg, transparent 30%, rgba(0,0,0,.6) 60%, #000 90%); }
.hero { max-width: calc(var(--side) + var(--main)); margin: 0 auto; padding: 46px var(--gutter) 54px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.85rem, 1.1rem + 2.3vw, 2.75rem); line-height: 1.1; letter-spacing: -0.015em; margin: .2em 0 .4em; max-width: 25ch; text-wrap: balance; }
.hero h1.long { font-size: clamp(1.5rem, 1.05rem + 1.4vw, 2.15rem); line-height: 1.14; max-width: 32ch; }
.hero p { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.55; max-width: 58ch; color: #E9F3EA; margin: 0 0 1.4em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Navigation bar ---------- */
.site-nav { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 20; }
.nav-inner { max-width: calc(var(--side) + var(--main)); margin: 0 auto; padding: 0 calc(var(--gutter) - 12px); display: flex; align-items: stretch; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav a { display: block; padding: 13px 12px 12px; color: #fff; text-decoration: none; font-family: var(--sans); font-stretch: 80%; font-weight: 650; font-size: 1rem; letter-spacing: .01em; }
.site-nav a:hover { background: var(--spartan); color: #fff; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--lattice); }
.nav-toggle { display: none; }

/* ---------- Two-column layout ---------- */
.layout { display: grid; grid-template-columns: minmax(var(--side), calc((100% - var(--side) - var(--main)) / 2 + var(--side))) minmax(0, var(--main)) minmax(0, 1fr); }
.sidebar { grid-column: 1; grid-row: 1; background: var(--spartan); color: #fff; }
.sidebar-inner { width: var(--side); margin-left: auto; padding: 28px 18px 40px 0; }
.main { grid-column: 2; grid-row: 1; padding: 34px var(--gutter) 64px; min-width: 0; }
.layout.no-side { grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--side) + var(--main))) minmax(0, 1fr); }
.layout.no-side .main { grid-column: 2; }

.side-block { margin-bottom: 30px; }
.side-block h2 { margin: 0 0 10px; background: var(--black); color: #fff; font-family: var(--sans); font-stretch: 85%; font-weight: 700; font-size: 1rem; letter-spacing: .01em; padding: 7px 14px; border-left: 4px solid var(--lattice); }
.side-block ul { list-style: none; margin: 0; padding: 0 0 0 16px; }
.side-block li { border-bottom: 1px solid rgba(255,255,255,.16); }
.side-block li:last-child { border-bottom: 0; }
.side-block a { color: #fff; text-decoration: none; display: block; padding: 7px 0; font-family: var(--sans); font-size: .95rem; line-height: 1.3; }
.side-block a:hover { color: var(--lattice); }
.side-news time { display: block; color: var(--lattice); font-size: .8rem; font-stretch: 90%; margin-bottom: 2px; }
.side-themes a { display: flex; gap: 9px; align-items: center; }
.side-themes .i { width: 18px; height: 18px; flex: none; color: var(--lattice); }
.side-more { display: inline-block; margin: 8px 0 0 16px; color: var(--lattice) !important; font-family: var(--sans); font-size: .9rem; }
.side-join { margin: 0 0 0 16px; padding: 14px; border: 1px solid rgba(255,255,255,.3); font-family: var(--sans); font-size: .95rem; line-height: 1.45; }
.side-join a { display: inline; padding: 0; color: var(--lattice); text-decoration: underline; }

/* ---------- Typography in the main column ---------- */
.main h1 { font-family: var(--serif); font-weight: 650; font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); line-height: 1.1; letter-spacing: -0.012em; margin: 0 0 .45em; color: var(--spartan); }
.main h2 { font-family: var(--serif); font-weight: 620; font-size: clamp(1.45rem, 1.25rem + .8vw, 1.8rem); line-height: 1.2; margin: 2.2em 0 .6em; color: var(--ink); }
.main h3 { font-family: var(--serif); font-weight: 620; font-size: 1.2rem; line-height: 1.3; margin: 1.6em 0 .4em; }
.main h4 { font-family: var(--sans); font-stretch: 88%; font-weight: 700; font-size: 1rem; margin: 1.4em 0 .3em; }
.main p, .main li { max-width: 72ch; }
.main ul, .main ol { padding-left: 1.3em; }
.lede { font-size: 1.22rem; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.meta, .small { font-family: var(--sans); font-stretch: 90%; font-size: .9rem; color: var(--ink-2); }
.updated { font-family: var(--sans); font-size: .85rem; color: var(--ink-2); }
.section-intro { margin-top: -.2em; color: var(--ink-2); }
.anchor-target { scroll-margin-top: 64px; }
[id] { scroll-margin-top: 64px; }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 2px solid var(--spartan); border-radius: 3px; background: var(--spartan); color: #fff; font-family: var(--sans); font-stretch: 88%; font-weight: 650; font-size: 1rem; text-decoration: none; line-height: 1.2; cursor: pointer; }
.btn:hover { background: var(--spartan-dark); border-color: var(--spartan-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--spartan); }
.btn.ghost:hover { background: var(--mist); color: var(--spartan); }
.hero-band .btn { background: var(--lattice); border-color: var(--lattice); color: var(--black); }
.hero-band .btn:hover { background: #fff; border-color: #fff; color: var(--black); }
.hero-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.hero-band .btn.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border: 1px solid var(--rule); border-radius: 3px; background: #fff; color: var(--ink); font-family: var(--sans); font-stretch: 88%; font-size: .85rem; line-height: 1.35; text-decoration: none; white-space: nowrap; }
a.chip:hover { border-color: var(--spartan); color: var(--spartan); }
.chip .i { width: 15px; height: 15px; color: var(--spartan); }
button.chip { cursor: pointer; }
button.chip[aria-pressed="true"] { background: var(--spartan); border-color: var(--spartan); color: #fff; }
button.chip[aria-pressed="true"] .i { color: var(--lattice); }
.badge { display: inline-block; padding: 1px 7px; border-radius: 3px; background: var(--mist); color: var(--spartan); font-family: var(--sans); font-stretch: 88%; font-size: .78rem; font-weight: 650; line-height: 1.5; vertical-align: 2px; white-space: nowrap; }
.badge.gold { background: #F3EBCF; color: #6B5310; }
.i { display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Panels */
.panel { background: var(--mist); border-left: 4px solid var(--spartan); padding: 18px 22px; margin: 1.6em 0; }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel.dark { background: var(--spartan); color: #fff; border-left-color: var(--lattice); }
.panel.dark a { color: var(--lattice); }

/* Key facts (definition rows) */
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 1.2em 0 1.6em; padding: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts div { padding: 12px 22px 12px 0; margin-right: 22px; border-right: 1px solid var(--rule); }
.facts div:last-child { border-right: 0; }
.facts dt { font-family: var(--sans); font-stretch: 88%; font-size: .85rem; color: var(--ink-2); }
.facts dd { margin: 0; font-family: var(--serif); font-weight: 650; font-size: 1.45rem; color: var(--spartan); line-height: 1.2; }

/* ---------- Home ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0; margin: 1em 0 0; border-top: 1px solid var(--rule); }
.theme-grid a { display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; padding: 16px 14px 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.theme-grid a:hover { background: var(--mist); }
.theme-grid .i { width: 30px; height: 30px; color: var(--spartan); grid-row: span 2; margin-top: 2px; }
.theme-grid strong { font-family: var(--serif); font-weight: 650; font-size: 1.05rem; line-height: 1.25; color: var(--spartan); }
.theme-grid span { font-family: var(--sans); font-stretch: 92%; font-size: .9rem; line-height: 1.4; color: var(--ink-2); }

.news-list { list-style: none; padding: 0; margin: 0; }
.news-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 22px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.news-item:first-child { border-top: 1px solid var(--rule); }
.news-item .when { font-family: var(--sans); font-stretch: 88%; font-size: .9rem; color: var(--ink-2); padding-top: 3px; }
.news-item .when .badge { margin-top: 6px; }
.news-item h3 { margin: 0 0 .25em; font-size: 1.12rem; line-height: 1.35; }
.news-item p { margin: 0 0 .4em; }
.news-item .links { font-family: var(--sans); font-stretch: 90%; font-size: .92rem; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.news-item figure { margin: .6em 0 .2em; max-width: 340px; }
.news-item figure img { display: block; border: 1px solid var(--rule); }
.news-year { margin-top: 1.8em !important; padding-bottom: .2em; border-bottom: 3px solid var(--spartan); }

/* ---------- Publications ---------- */
.filters { background: var(--mist); padding: 16px 18px; margin: 1.2em 0 1.4em; display: grid; gap: 12px; }
.filters[hidden] { display: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-row > .label { font-family: var(--sans); font-stretch: 88%; font-weight: 700; font-size: .9rem; min-width: 78px; }
.search { flex: 1 1 260px; display: flex; }
.search input { width: 100%; font: inherit; font-family: var(--sans); font-size: 1rem; padding: 9px 12px; border: 2px solid var(--spartan); border-radius: 3px; background: #fff; }
.result-count { font-family: var(--sans); font-stretch: 90%; font-size: .95rem; color: var(--ink-2); margin: 0; }
.toggle { font-family: var(--sans); font-stretch: 90%; font-size: .95rem; display: inline-flex; gap: 8px; align-items: center; }
.year-jump { font-family: var(--sans); font-stretch: 88%; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0 0 1em; }

.pub-list { list-style: none; margin: 0; padding: 0; }
.pub { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 16px; padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.pub .num { font-family: var(--sans); font-stretch: 85%; font-weight: 700; font-size: .95rem; color: var(--ink-2); text-align: right; padding-top: 3px; }
.pub h3 { margin: 0 0 .2em; font-size: 1.12rem; line-height: 1.38; font-weight: 620; }
.pub h3 a { color: var(--ink); text-decoration-color: var(--rule); }
.pub h3 a:hover { color: var(--spartan); text-decoration-color: currentColor; }
.authors { margin: 0 0 .15em; font-size: .97rem; line-height: 1.5; color: var(--ink-2); }
.authors strong { color: var(--ink); font-weight: 650; }
.authors .lab { text-decoration: underline; text-decoration-color: var(--lattice); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.venue { margin: 0 0 .5em; font-size: .97rem; }
.venue em { color: var(--ink); }
.venue .badge { margin-left: 6px; }
.summary { margin: .1em 0 .7em; font-size: 1rem; line-height: 1.58; }
.hide-summaries .summary { display: none; }
.pub-foot { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.pub-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-right: 6px; font-family: var(--sans); font-stretch: 90%; font-size: .92rem; }
.pub-links a { font-weight: 600; }
.copy-cite { font: inherit; font-family: var(--sans); font-stretch: 90%; font-size: .92rem; color: var(--spartan); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.legend { font-family: var(--sans); font-stretch: 90%; font-size: .88rem; color: var(--ink-2); }
.legend .lab { text-decoration: underline; text-decoration-color: var(--lattice); text-decoration-thickness: 2px; text-underline-offset: .2em; }
[data-item][hidden] { display: none !important; }
.empty-state { padding: 18px; background: var(--mist); font-family: var(--sans); }

/* ---------- Research ---------- */
.theme-section { padding-top: .4em; }
.theme-head { display: flex; align-items: center; gap: 14px; margin: 2.4em 0 .5em; padding-top: 18px; border-top: 3px solid var(--spartan); }
.theme-head .i { width: 40px; height: 40px; color: var(--spartan); flex: none; }
.theme-head h2 { margin: 0 !important; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px 36px; }
.two-col h3 { margin-top: .6em; }
.method-list { list-style: none; padding: 0 !important; margin: 0; }
.method-list li { padding: 5px 0; border-bottom: 1px solid var(--rule); font-family: var(--sans); font-stretch: 92%; font-size: .95rem; }
.selected-pubs { list-style: none; padding: 0 !important; margin: .6em 0 0; }
.selected-pubs li { padding: 10px 0 10px 14px; border-left: 3px solid var(--lattice); margin-bottom: 10px; background: linear-gradient(90deg, var(--mist), transparent 70%); }
.selected-pubs .t { font-weight: 620; }
.selected-pubs .v { font-family: var(--sans); font-stretch: 90%; font-size: .9rem; color: var(--ink-2); }
details.in-depth { margin: 1.2em 0 .4em; border: 1px solid var(--rule); }
details.in-depth > summary { cursor: pointer; padding: 12px 16px; font-family: var(--sans); font-stretch: 90%; font-weight: 650; color: var(--spartan); list-style-position: inside; }
details.in-depth[open] > summary { border-bottom: 1px solid var(--rule); background: var(--mist); }
.in-depth-body { padding: 4px 20px 16px; }
.in-depth-body h3 { font-size: 1.1rem; }
.in-depth-body .facets { padding-left: 1.1em; }
.in-depth-body .facets li { margin: .3em 0; }
.related { font-family: var(--sans); font-stretch: 90%; font-size: .88rem; color: var(--ink-2); }
.timeline { list-style: none; padding: 0 !important; margin: 1em 0; counter-reset: era; }
.timeline > li { position: relative; padding: 0 0 22px 56px; max-width: none; }
.timeline > li::before { counter-increment: era; content: counter(era); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--spartan); color: #fff; font-family: var(--sans); font-weight: 700; display: grid; place-items: center; }
.timeline > li::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--rule); }
.timeline > li:last-child::after { display: none; }
.timeline h3 { margin: .2em 0 .25em !important; }
.timeline .when { font-family: var(--sans); font-stretch: 88%; color: var(--ink-2); font-size: .92rem; }
figure.wide { margin: 1.4em 0; }
figure.wide img { display: block; border: 1px solid var(--rule); background: #fff; }
figcaption { font-family: var(--sans); font-stretch: 90%; font-size: .88rem; color: var(--ink-2); margin-top: 6px; }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; margin: .8em 0 1.4em; }
.person { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--spartan); color: #fff; display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: 1.15rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin: 0 !important; font-size: 1.05rem; }
.person .role { font-family: var(--sans); font-stretch: 90%; font-size: .9rem; color: var(--ink-2); margin: 0; }
.person .focus { font-size: .95rem; margin: .2em 0 0; line-height: 1.45; }
.pi-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; margin: 1em 0 1.5em; }
.pi-card img { border-radius: 50%; display: block; width: 180px; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 25%; }
table.data { width: 100%; border-collapse: collapse; margin: .8em 0 1.4em; font-size: .97rem; }
table.data caption { text-align: left; font-family: var(--sans); font-stretch: 90%; color: var(--ink-2); font-size: .9rem; padding-bottom: 6px; }
table.data th { text-align: left; font-family: var(--sans); font-stretch: 88%; font-weight: 700; font-size: .9rem; border-bottom: 2px solid var(--spartan); padding: 8px 12px 8px 0; }
table.data td { border-bottom: 1px solid var(--rule); padding: 9px 12px 9px 0; vertical-align: top; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 1em 0; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--rule); }

/* ---------- Funding / code / generic lists ---------- */
.entry-list { list-style: none; padding: 0 !important; margin: .6em 0 1.4em; }
.entry { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.entry:first-child { border-top: 1px solid var(--rule); }
.entry h3 { margin: 0 0 .25em !important; font-size: 1.1rem; }
.entry .meta { margin: 0 0 .35em; }
.entry p { margin: .3em 0; }
.entry ul { margin: .4em 0; }
.sponsors { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.cols-2 { columns: 2 300px; column-gap: 36px; }
.cols-2 > * { break-inside: avoid; }
.link-list { list-style: none; padding: 0 !important; }
.link-list li { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.link-list .one { display: block; font-size: .95rem; color: var(--ink-2); }
.toc { font-family: var(--sans); font-stretch: 90%; font-size: .95rem; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 1em 0 1.6em; }
.pedigree { list-style: none; padding: 0 !important; counter-reset: gen; }
.pedigree li { padding: 6px 0 6px 0; border-left: 2px solid var(--lattice); padding-left: 16px; position: relative; }
.pedigree li::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--spartan); }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1em 0; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--spartan); color: #E7F1E8; font-family: var(--sans); font-size: .95rem; }
.footer-inner { max-width: calc(var(--side) + var(--main)); margin: 0 auto; padding: 36px var(--gutter) 28px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font-family: var(--serif); font-size: 1.1rem; margin: 0 0 .5em; color: #fff; font-weight: 650; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--lattice); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 2px 0; }
.footer-base { border-top: 1px solid rgba(255,255,255,.18); }
.footer-base p { max-width: calc(var(--side) + var(--main)); margin: 0 auto; padding: 14px var(--gutter); font-size: .85rem; color: #CFE3D2; }

/* ---------- Research: subsections and earlier periods ---------- */
.subthemes { margin: .4em 0 1em; }
.subtheme { padding: 2px 0 8px 18px; border-left: 2px solid var(--rule); margin: 1em 0; }
.subtheme > h3 { margin: .1em 0 .3em; color: var(--spartan); }
.sub-topics { margin: .4em 0; }
.sel-label { font-family: var(--sans); font-stretch: 90%; font-weight: 650; font-size: .9rem; color: var(--ink-2); margin: .7em 0 .2em; }
.theme-section.era .theme-head { border-top-color: var(--rule); }
.theme-section.era .theme-head .i, .theme-section.era .theme-head h2 { color: var(--ink-2); }
.grid-label { font-family: var(--sans); font-stretch: 90%; font-weight: 650; color: var(--ink-2); margin: 1.4em 0 0; }
.small-grid strong, .small-grid .i { color: var(--ink-2) !important; }

/* ---------- Slideshows (Google Slides decks published to the web) ---------- */
.slideshow { margin: 1em 0 1.8em; max-width: 820px; }
.slides-embed { position: relative; width: 100%; background: var(--mist); border: 1px solid var(--rule); }
.slides-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.slideshow figcaption { font-family: var(--sans); font-stretch: 90%; font-size: .9rem; color: var(--ink-2); margin-top: 6px; }
/* Multimedia page: list of galleries at the top */
.jump-list { list-style: none; padding: 0 !important; margin: .4em 0 1.4em; display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--sans); font-stretch: 90%; }
.jump-list li { margin: 0; }
.gallery-deck { scroll-margin-top: 80px; }

/* ---------- Deadline tables (join page) ---------- */
.deadline { font-family: var(--sans); font-stretch: 90%; font-weight: 650; }
.dl .deadline { display: block; }
table.deadlines td.dl { width: 15.5em; }
.dl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 5px; }
.mbar { display: inline-grid; grid-template-columns: repeat(12, 7px); gap: 2px; padding: 2px; }
.mbar.ahead { grid-template-columns: repeat(13, 7px); }
.mbar i { display: block; height: 11px; background: var(--rule); border-radius: 1px; }
.mbar i.on { background: var(--spartan); }
.mbar i.now { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.mbar i.on.now { background: var(--spartan); box-shadow: 0 0 0 1.5px var(--ink); }
.when-tag[hidden] { display: none; }
.dl-extra { display: block; font-family: var(--sans); font-stretch: 90%; font-size: .85rem; color: var(--ink-2); margin-top: 4px; }
table.fellowships .auds { display: block; }
table.fellowships .who { display: block; margin-top: 4px; }
table.fellowships td:nth-child(2), table.fellowships td:nth-child(3) { font-family: var(--sans); font-stretch: 92%; font-size: .9rem; line-height: 1.45; }
table.fellowships td:first-child a { font-weight: 600; }
table.fellowships .one { display: block; font-family: var(--sans); font-stretch: 90%; font-size: .88rem; line-height: 1.4; color: var(--ink-2); margin-top: 2px; }
.bar-legend { font-family: var(--sans); font-stretch: 90%; font-size: .88rem; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.when-tag { display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 3px; font-family: var(--sans); font-stretch: 88%; font-size: .78rem; font-weight: 650; background: var(--mist); color: var(--spartan); white-space: nowrap; }
.when-tag.soon { background: #FCE9C8; color: #6B4A06; }
.when-tag.passed { background: #EFEFEF; color: #5A5A5A; }
.aud { display: inline-block; margin: 0 4px 3px 0; padding: 0 6px; border: 1px solid var(--rule); border-radius: 3px; font-family: var(--sans); font-stretch: 88%; font-size: .78rem; color: var(--ink-2); white-space: nowrap; }
table.fellowships td:first-child { min-width: 14em; }
@media (max-width: 560px) { table.deadlines td.dl { width: auto; } table.data.stack.fellowships td[data-label="Fellowship"]::before { content: none; } table.data.stack.deadlines td.dl { margin-top: 4px; } }
.status-note { font-family: var(--sans); font-stretch: 90%; font-size: .85rem; color: #8A3B12; }

/* ---------- Contact, footer and small bits ---------- */
.email-text { font-family: var(--sans); font-size: 1.25rem; font-weight: 650; color: var(--spartan); letter-spacing: .01em; }
.footer-sub { margin: -.3em 0 .7em; color: #fff; font-family: var(--serif); font-size: 1rem; }
.medal img { width: 100%; max-width: 720px; }
.src { font-family: var(--sans); font-stretch: 90%; font-size: .82rem; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.reasons { counter-reset: reason; list-style: none; padding: 0 !important; }
.reasons > li { position: relative; padding: 0 0 18px 52px; }
.reasons > li::before { counter-increment: reason; content: counter(reason); position: absolute; left: 0; top: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--spartan); color: #fff; font-family: var(--sans); font-weight: 700; display: grid; place-items: center; }
.reasons h3 { margin: .1em 0 .25em !important; }
.cites { font-family: var(--sans); font-stretch: 90%; font-size: .85rem; line-height: 1.45; color: var(--ink-2); }
.cites-label { font-family: var(--sans); font-stretch: 90%; font-weight: 650; font-size: .8rem; color: var(--ink-2); margin: .7em 0 .15em; }
ol.cites { margin: 0 0 .3em; padding-left: 1.4em; }
ol.cites li { margin: 2px 0; }
ol.cites a { color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --side: 236px; }
  .header-aff { display: none; }
}
@media (max-width: 900px) {
  body { font-size: 1.0625rem; }
  .layout, .layout.no-side { display: block; }
  .main { padding: 26px var(--gutter) 40px; }
  .sidebar-inner { width: auto; margin: 0; padding: 26px var(--gutter) 30px; }
  .side-block ul, .side-more, .side-join { margin-left: 0; padding-left: 0; }
  .nav-inner { padding: 0 var(--gutter); flex-direction: column; }
  .nav-toggle { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: #fff; font-family: var(--sans); font-stretch: 85%; font-weight: 700; font-size: 1.05rem; padding: 12px 0; cursor: pointer; }
  .nav-toggle .bars { width: 22px; height: 2px; background: #fff; position: relative; }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #fff; }
  .nav-toggle .bars::before { top: -7px; } .nav-toggle .bars::after { top: 7px; }
  .js .site-nav ul { display: none; }
  .js .site-nav[data-open] ul { display: block; padding-bottom: 10px; }
  .site-nav ul { display: block; }
  .site-nav a { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 1.05rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--lattice); padding-left: 12px; }
  .site-nav { position: static; }
  .two-col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .pi-card { grid-template-columns: 110px minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .header-inner { padding-top: 16px; padding-bottom: 16px; }
  .brand img { width: 48px; height: 48px; }
  .brand-name { font-size: 1.45rem; }
  .brand-tag { font-size: .85rem; }
  .hero { padding-top: 26px; padding-bottom: 34px; }
  .news-item { grid-template-columns: 1fr; gap: 2px; }
  .news-item .when { display: flex; gap: 10px; align-items: center; }
  .news-item .when .badge { margin-top: 0; }
  .pub { grid-template-columns: 1fr; }
  .pub .num { text-align: left; padding: 0; }
  .facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 0 12px; }
  .facts div { border-right: 0; padding: 10px 0; margin-right: 0; }
  .facts dd { font-size: 1.3rem; }
  .pi-card { grid-template-columns: 1fr; }
  .pi-card img { width: 140px; }
  table.data.stack thead { display: none; }
  table.data.stack tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  table.data.stack td { display: block; border: 0; padding: 1px 0; }
  table.data.stack td[data-label]::before { content: attr(data-label) ": "; font-family: var(--sans); font-weight: 700; font-size: .85rem; color: var(--ink-2); }
}
@media print {
  .site-nav, .sidebar, .filters, .site-header .moire, .hero-band .moire, .copy-cite, .nav-toggle { display: none !important; }
  .layout { display: block; }
  .site-header, .hero-band { background: #fff; color: #000; }
  .hero p { color: #000; }
  .brand, .brand-tag { color: #000; }
  a { color: #000; }
}
.home .news-item figure { display: none; }

/* List resets inside the main column (override .main ul padding) */
.main .news-list, .main .pub-list, .main .entry-list, .main .link-list, .main .selected-pubs,
.main .method-list, .main .timeline, .main .pedigree, .main .sponsors { padding-left: 0; }
.news-item .when .badge { display: table; margin-top: 6px; }
.site-footer .footer-inner > div:nth-child(2) ul { columns: 2; column-gap: 24px; }
.site-footer .footer-inner > div:nth-child(2) li { break-inside: avoid; }
.pub.compact .summary, .pub.compact .chip { display: none; }
.main li.pub, .main li.news-item, .main li.entry, .main li.person { max-width: none; }
.selected-pubs li { background: none; }
td.nowrap, th.nowrap { white-space: nowrap; }
figure.wide img { max-width: 760px; width: 100%; }

/* Join: graduate programs table */
table.programs td:first-child a { font-weight: 600; }
table.programs .one { display: block; font-family: var(--sans); font-stretch: 90%; font-size: .88rem; line-height: 1.4; color: var(--ink-2); margin-top: 2px; }
table.programs .one.note { color: var(--ink); }
table.programs td:last-child { width: 32%; }
table.programs caption { caption-side: bottom; padding: 8px 0 0; }
@media (max-width: 560px) {
  table.programs td:last-child { width: auto; }
  table.data.stack.programs td[data-label="Program"]::before { content: none; }
  table.data.stack.programs td[data-label="Program"] { padding-bottom: 4px; }
}

/* Research: expertise index */
.expertise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 28px; border-top: 1px solid var(--rule); padding-top: 4px; }
.expertise h3 { margin: .7em 0 .3em !important; font-size: 1.02rem; color: var(--spartan); }
.expertise p { margin: 0; font-size: .97rem; line-height: 1.6; }
.expertise a { color: var(--ink); text-decoration-color: var(--rule); }
.expertise a:hover { color: var(--spartan); text-decoration-color: currentColor; }
.main h2.after-themes { margin-top: 2.6em; padding-top: 18px; border-top: 3px solid var(--spartan); }
@media (max-width: 900px) { .expertise { grid-template-columns: 1fr; } }
.news-item figure img { width: auto; max-width: 100%; max-height: 240px; }
.pub.compact { grid-template-columns: minmax(0, 1fr); }
.pub.compact .num { display: none; }
.link-list .one .sp { font-style: italic; }
table.fellowships .one.note { color: var(--ink); }
.in-depth-body .in-depth-group { font-family: var(--sans); font-stretch: 90%; font-weight: 700; font-size: 1rem; color: var(--spartan); margin: 1.8em 0 .3em; padding-bottom: 4px; border-bottom: 2px solid var(--rule); }
.in-depth-body .in-depth-group:first-child { margin-top: .4em; }
/* Publications: conference abstracts */
.abstract-list { padding-left: 1.6em; }
.abstract-list li { margin: 0 0 1em; padding-left: .2em; }
.abstract-list li::marker { font-family: var(--sans); font-size: .85rem; color: var(--ink-2); }
.abstract-list .t { margin: 0; font-weight: 600; }
.abstract-list .authors, .abstract-list .venue { margin: .15em 0 0; font-family: var(--sans); font-stretch: 92%; font-size: .92rem; color: var(--ink-2); }
