/* APSCL website stylesheet - one file for every page.
   Serif display (Source Serif 4), sans body (Source Sans 3), thin rules,
   UT burnt orange as the only accent on charcoal. Pages are generated by
   _src/build.py; edit this file directly for styling. */

:root {
  --ink: #333f48;          /* UT charcoal: body text */
  --ink-soft: #4d5962;     /* secondary text */
  --muted: #677179;        /* metadata (4.8:1 on white) */
  --faint: #9aa1a6;        /* decorative only, never text */
  --accent: #bf5700;       /* UT burnt orange */
  --accent-deep: #a04900;  /* orange for small text and hover */
  --rule: #e2ded5;         /* thin warm rule */
  --rule-soft: #eeebe5;
  --paper: #ffffff;
  --paper-2: #f7f5f0;      /* limestone tint for bands */
  --mono-bg: #ece8df;      /* monogram tiles */

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(56px, 7vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  border-top: 4px solid var(--accent);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
em, i { font-style: italic; }
strong, b { font-weight: 700; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

.eyebrow {
  margin: 0 0 1rem;
  font: 600 0.78rem/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.more {
  font: 600 0.92rem/1.3 var(--sans);
  color: var(--accent-deep);
  text-decoration: none;
  white-space: nowrap;
}
.more:hover { text-decoration: underline; }
.more::after { content: " \2192"; }
.count {
  white-space: nowrap;
  font: 600 0.8rem/1 var(--sans);
  color: var(--muted);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* ---------- masthead ---------- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 50px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__name { font: 600 1.1875rem/1.2 var(--serif); letter-spacing: -0.005em; }
.brand__sub { font: 600 0.7rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.site-nav { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.site-nav a {
  position: relative;
  padding: 6px 0;
  font: 600 0.95rem/1 var(--sans);
  color: var(--ink);
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); }
/* desktop: menu on its own row below the lab name, larger */
@media (min-width: 901px) {
  .masthead__bar { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-top: 20px; }
  .site-nav { margin-top: 18px; padding: 14px 0 16px; border-top: 1px solid var(--rule-soft); gap: clamp(30px, 3.8vw, 60px); }
  .site-nav a { font-size: 1.3rem; padding: 6px 0; }
  .site-nav a::after { bottom: -4px; }
}

.nav-toggle {
  display: none;
  align-items: center; gap: 10px;
  background: none; border: 1px solid var(--rule); border-radius: 2px;
  padding: 9px 12px; color: var(--ink);
  font: 600 0.85rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 16px; height: 1.5px; background: currentColor; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

@media (max-width: 900px) {
  .masthead__bar { flex-wrap: wrap; min-height: 72px; padding-block: 14px; gap: 12px; }
  .brand { flex: 1 1 0; min-width: 0; gap: 12px; }
  .brand__mark { width: 38px; }
  .nav-toggle { flex: none; padding: 9px 11px; }
  .brand__name { font-size: 1.05rem; }
  .brand__name .br { display: block; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 4px 22px; }
  .js.nav-open .site-nav { display: flex; flex-direction: column; gap: 0; padding-bottom: 8px; }
  .js.nav-open .site-nav a { padding: 14px 0; border-top: 1px solid var(--rule-soft); font-size: 1.05rem; }
  .js.nav-open .site-nav a::after { display: none; }
  .js.nav-open .site-nav a[aria-current="page"] { color: var(--accent-deep); }
}

@media (max-width: 400px) {
  .nav-toggle { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- shared page header ---------- */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 4.5vw, 64px); }
.page-head h1 {
  font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 60;
}
.page-head .lede {
  max-width: 38em;
  margin: 1.4rem 0 0;
  font: 400 clamp(1.15rem, 1.02rem + 0.45vw, 1.375rem)/1.5 var(--serif);
  color: var(--ink-soft);
}
.subnav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.subnav a { font: 600 0.95rem/1.3 var(--sans); color: var(--ink); text-decoration: none; }
.subnav a:hover { color: var(--accent-deep); }
.subnav a span { color: var(--muted); font-weight: 400; margin-left: 4px; font-variant-numeric: tabular-nums; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-head h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem); line-height: 1.15; }
.section-head .eyebrow { margin-bottom: 0.5rem; }
.section-head > .count { margin-right: auto; }
.section-head { position: relative; }
.block { padding-bottom: var(--section); }
/* a 1px rule drawn at content width (not across the .wrap padding) */
.rule-top { background: linear-gradient(var(--rule), var(--rule)) no-repeat top center / calc(100% - 2 * var(--gutter)) 1px; }

/* ---------- home ---------- */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 72px); }
.hero .band { margin: clamp(28px, 3.5vw, 48px) 0 0; }
.hero h1 {
  font-size: clamp(2.65rem, 1.2rem + 5vw, 5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.026em;
  font-variation-settings: "opsz" 60;
}
.hero h1 .line { display: block; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 88px);
  margin-top: clamp(36px, 4.5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.hero__lede { margin: 0; font: 400 clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem)/1.45 var(--serif); color: var(--ink); }
.goals { list-style: none; }
.goals li {
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 12px;
  padding: 0 0 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.goals li:last-child { margin-bottom: 0; }
.goals__n { font: 600 0.8rem/1.9 var(--sans); color: var(--accent); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.goals p { margin: 0; color: var(--ink); }

.band { margin: 0 auto var(--section); }
.band img { max-height: 520px; }
.band img { width: 100%; aspect-ratio: 2.6 / 1; object-fit: cover; object-position: 50% 60%; background: var(--paper-2); }
.band figcaption { margin-top: 10px; font: 400 0.85rem/1.4 var(--sans); color: var(--muted); }

.area-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows, 4), auto);
  grid-auto-flow: column;
  column-gap: clamp(28px, 5vw, 80px);
}
.area-list li { display: grid; }
.area-list a {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: baseline; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
  color: var(--ink); text-decoration: none;
}
.area-list .n { font: 600 0.8rem/1 var(--sans); color: var(--accent); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.area-list .t { font: 500 1.3rem/1.3 var(--serif); }
.area-list .arrow { color: var(--faint); transition: transform 0.2s ease, color 0.2s ease; }
.area-list a:hover .t { color: var(--accent-deep); }
.area-list a:hover .arrow { color: var(--accent); transform: translateX(3px); }

.news-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.card__img { display: block; margin-bottom: 18px; overflow: hidden; background: var(--paper-2); }
.card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.4s ease; }
.card__img:hover img { transform: scale(1.02); }
.card__tile { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 24px; background: var(--ink); border-top: 4px solid var(--accent); color: #fff; text-decoration: none; text-align: center; font: 500 clamp(1.35rem, 1rem + 1.1vw, 1.9rem)/1.25 var(--serif); }
.card__tile:hover { color: #fff; }
.meta-date { display: block; font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.card h3 { margin: 10px 0 10px; font-size: 1.35rem; line-height: 1.25; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1px; }
.card p { margin: 0; font-size: 1rem; color: var(--ink); }

.news-more { list-style: none; margin-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--rule); }
.news-more li { border-bottom: 1px solid var(--rule); }
.news-more a { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; text-decoration: none; color: var(--ink); }
.news-more .t { font: 500 1.1rem/1.35 var(--serif); }
.news-more a:hover .t { color: var(--accent-deep); }

.home-foot { background: var(--paper-2); border-top: 1px solid var(--rule); padding-block: clamp(48px, 6vw, 80px); }
.home-foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); }
.home-foot h2 { font-size: 1.6rem; margin-bottom: 18px; }
.doc-list { list-style: none; border-top: 1px solid var(--rule); }
.doc-list li { border-bottom: 1px solid var(--rule); }
.doc-list a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; color: var(--ink); text-decoration: none; font: 500 1.15rem/1.3 var(--serif); }
.doc-list a span { font: 600 0.75rem/1.6 var(--sans); letter-spacing: 0.1em; color: var(--muted); }
.doc-list a:hover { color: var(--accent-deep); }

.teaser { display: block; overflow: hidden; background: var(--paper); }
.teaser img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s ease; }
.teaser:hover img { transform: scale(1.02); }
.teaser__more { margin: 14px 0 0; }

/* ---------- research ---------- */
.toc-areas { list-style: none; margin-top: 2.2rem; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 4), auto); grid-auto-flow: column; column-gap: clamp(28px, 5vw, 80px); }
.toc-areas li { border-bottom: 1px solid var(--rule-soft); }
.toc-areas a { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 10px; padding: 11px 0; color: var(--ink); text-decoration: none; font: 400 1.05rem/1.35 var(--sans); }
.toc-areas a:hover { color: var(--accent-deep); }
.toc-areas .n { font: 600 0.78rem/1.75 var(--sans); color: var(--accent); letter-spacing: 0.08em; }

.area { padding-block: clamp(44px, 5.5vw, 80px); }
.area:last-of-type { padding-bottom: var(--section); }
.area__head { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 8px; align-items: baseline; margin-bottom: clamp(20px, 2.5vw, 32px); }
.area__n { font: 400 2.3rem/1 var(--serif); color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.area__head h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem); line-height: 1.15; max-width: 24em; }
.area__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); padding-left: calc(4.5rem + 8px); }
.label { margin: 0 0 12px; font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.objectives { list-style: none; border-top: 1px solid var(--rule); }
.objectives > li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--rule-soft); color: var(--ink); }
.objectives > li::before { content: ""; position: absolute; left: 2px; top: 1.3em; width: 8px; height: 1px; background: var(--accent); }
.objectives ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; }
.objectives ul li { font: 600 0.85rem/1 var(--sans); padding: 7px 10px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 2px; color: var(--ink-soft); }
.area__links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 20px 0 0; }
.area__links a { font: 600 0.92rem/1.4 var(--sans); text-decoration: none; }
.area__links a:hover { text-decoration: underline; }
.area__links a::after { content: " \2192"; }
.fig { margin: 0; }
.fig a { display: block; border: 1px solid var(--rule); background: var(--paper); padding: 10px; }
.fig a:hover { border-color: var(--accent); }
.fig img { width: 100%; }
.fig figcaption { margin-top: 10px; font: 400 0.88rem/1.45 var(--sans); color: var(--muted); }
.fig figcaption b { font-weight: 600; color: var(--ink-soft); }
.area--slim .area__body { display: block; }
.area__summary { max-width: 44rem; margin: 0 0 24px; font: 400 1.125rem/1.6 var(--serif); color: var(--ink); }
.fig--wide { margin: clamp(28px, 3.5vw, 44px) 0 0 calc(4.5rem + 8px); }
.fig--wide a { padding: 0; border: 0; }
.fig--wide img { width: 100%; border: 1px solid var(--rule); }
.fig--wide figcaption { max-width: 48rem; }

/* ---------- publications ---------- */
.pubs { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-bottom: var(--section); padding-top: clamp(28px, 3.5vw, 48px); }
.pubs-aside { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; padding-right: 4px; }
@media (min-width: 1001px) and (max-height: 700px) { .pubs-aside { position: static; max-height: none; overflow: visible; } }
.search { display: block; }
.search .eyebrow { display: block; margin-bottom: 8px; }
.search__input {
  width: 100%; padding: 11px 12px; border: 1px solid #cfcac0; border-radius: 2px; background: var(--paper);
  font: 400 1rem/1.2 var(--sans); color: var(--ink);
}
.search__input::placeholder { color: var(--muted); }
.search__input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(191, 87, 0, 0.15); }
.pubs-count { margin: 0 0 22px; font: 400 0.88rem/1.4 var(--sans); color: var(--muted); }
.legend { margin: 0 0 22px; padding: 0; font: 400 0.88rem/1.5 var(--sans); color: var(--muted); }
.legend em, .legend strong { color: var(--ink); }
.toc summary { list-style: none; cursor: pointer; font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc summary::-webkit-details-marker { display: none; }
@media (max-width: 1000px) {
  .toc { border: 1px solid var(--rule); padding: 0 14px; }
  .toc summary { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 13px 0; color: var(--ink); }
  .toc summary::after { content: "+"; font: 400 1.3rem/1 var(--sans); color: var(--accent); letter-spacing: 0; }
  .toc[open] summary::after { content: "\2212"; }
  .toc[open] { padding-bottom: 12px; }
  .toc__group:first-of-type { margin-top: 0; }
}
.toc__group { margin: 14px 0 4px; font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; }
.toc a { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font: 400 0.95rem/1.3 var(--sans); color: var(--ink); text-decoration: none; }
.toc a span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.toc a:hover { color: var(--accent-deep); }
.toc a.is-active { color: var(--accent-deep); font-weight: 600; }

.pub-group { margin: 0 0 6px; font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.pub-section { margin-bottom: clamp(40px, 5vw, 64px); }
.pub-section > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 12px 0 14px; border-top: 1px solid var(--ink); }
.pub-section h2 { font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.9rem); line-height: 1.2; }
.pub-list { list-style: none; }
.pub { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule-soft); }
.pub__year { font: 600 0.82rem/1.75 var(--sans); color: var(--muted); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.pub--repeat .pub__year { color: transparent; }
.is-filtering .pub--repeat .pub__year { color: var(--muted); }
.pub p { margin: 0; }
.pub__title { font: 500 1.125rem/1.35 var(--serif); color: var(--ink); margin-bottom: 5px !important; }
.pub__authors { font-size: 0.96rem; line-height: 1.5; color: var(--ink-soft); }
.pub__authors strong { font-weight: 700; color: var(--ink); }
.pub__venue { font-size: 0.93rem; line-height: 1.5; color: var(--muted); }
.pub__venue em { color: var(--ink-soft); }
.pub__plain { font-size: 0.98rem; line-height: 1.55; color: var(--ink-soft); }
.pub a { overflow-wrap: anywhere; }
.no-results { padding: 24px 0; color: var(--muted); border-top: 1px solid var(--rule); }

/* ---------- people ---------- */
.pi { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: clamp(48px, 5vw, 72px); }
.pi .eyebrow { margin-bottom: 0.6rem; }
.pi h2 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); line-height: 1.1; font-weight: 400; }
.pi__contact { margin: 0; text-align: right; font-size: 0.98rem; color: var(--ink-soft); line-height: 1.7; }
.pi--photo { grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; column-gap: clamp(20px, 3vw, 36px); }
.pi__photo { width: 120px; height: 150px; object-fit: cover; object-position: 50% 30%; background: var(--paper-2); }

.members { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(20px, 2.5vw, 32px); }
.member { display: flex; flex-direction: column; }
.member img, .member .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; background: var(--paper-2); margin-bottom: 16px; }
.member .ph { font-size: 2.4rem; }
.member h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: 8px; }
.member p { margin: 0 0 6px; font-size: 0.95rem; line-height: 1.45; color: var(--ink-soft); }
.member .note { font-style: italic; color: var(--muted); }
.member > p:nth-last-child(2) { margin-bottom: 14px; }
.member .meta { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 0.88rem; color: var(--muted); }
.member .meta a { font-size: 0.88rem; }

.fold > summary { list-style: none; cursor: pointer; }
.fold > summary::-webkit-details-marker { display: none; }
.fold:not([open]) > summary { margin-bottom: 0; }
.fold__hint { font: 600 0.92rem/1.3 var(--sans); color: var(--accent-deep); white-space: nowrap; }
.fold__hint::after { content: "Show \002B"; }
.fold[open] .fold__hint::after { content: "Hide \2212"; }
.fold > summary:hover .fold__hint { text-decoration: underline; }
.alumni-group { margin-top: clamp(36px, 4vw, 56px); }
.alumni-group:first-of-type { margin-top: 0; }
.group-label { display: flex; align-items: baseline; gap: 14px; margin-bottom: 4px; font-size: 1.35rem; }
.group-label .count { font-family: var(--sans); }
.alumni { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); }
.alum { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
.alum img, .alum .mono { width: 64px; height: 80px; object-fit: cover; object-position: 50% 25%; background: var(--paper-2); }
.mono { display: flex; align-items: center; justify-content: center; background: var(--mono-bg) !important; font: 500 1.2rem/1 var(--serif); color: var(--muted); letter-spacing: 0.02em; }
.alum p { margin: 0; }
.alum__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 4px !important; }
.alum__name { font: 500 1.12rem/1.3 var(--serif); color: var(--ink); }
.alum__date { font: 600 0.75rem/1.4 var(--sans); letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.alum__research { font-size: 0.94rem; line-height: 1.45; color: var(--ink-soft); }
.alum__note { font-size: 0.88rem; font-style: italic; color: var(--muted); }
.alum__now { margin-top: 6px !important; font: 600 0.9rem/1.4 var(--sans); color: var(--ink); }
.alum__now::before { content: ""; display: inline-block; width: 10px; height: 1px; margin-right: 8px; vertical-align: middle; background: var(--accent); }

.gallery { columns: 3 300px; column-gap: 20px; }
.gallery figure { margin: 0 0 20px; break-inside: avoid; }
.gallery img { width: 100%; background: var(--paper-2); }
.gallery a { display: block; }
.gallery a:hover img { opacity: 0.92; }

/* ---------- news ---------- */
.news-year { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: clamp(40px, 5vw, 72px); }
.news-year__label { position: sticky; top: 20px; align-self: start; font: 400 2.6rem/1 var(--serif); color: var(--accent); font-variant-numeric: lining-nums; }
.post { padding-bottom: clamp(32px, 4vw, 48px); margin-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.post > * { max-width: 44rem; }
.post.has-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  grid-template-areas: "date media" "title media" "body media";
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(28px, 4vw, 56px);
}
.post.has-media > .meta-date { grid-area: date; }
.post.has-media > h3 { grid-area: title; }
.post.has-media > .post__body { grid-area: body; }
.post__media { grid-area: media; padding-top: 4px; }
.post:last-child { border-bottom: 0; margin-bottom: 0; }
.post h3 { margin: 8px 0 18px; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); line-height: 1.22; }
.post__fig { margin: 0 0 16px; }
.post__fig img { width: 100%; background: var(--paper-2); }
.post__fig--small img { max-width: 180px; }
.post__body p { color: var(--ink); }
.post__body p strong { color: var(--ink); }
.post__body ul { list-style: disc; margin: 0 0 1em; padding-left: 1.3em; }
.post__body li { margin-bottom: 8px; color: var(--ink); }
.post__body--refs p { padding: 10px 0; margin: 0; border-top: 1px solid var(--rule-soft); font-size: 0.95rem; line-height: 1.5; }
.post video { width: 100%; background: #000; margin-bottom: 16px; }
.embed { position: relative; aspect-ratio: 16 / 9; margin-bottom: 16px; background: var(--paper-2); }
.post__body + .post__media { margin-top: 8px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- publication type filter ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 10px; border: 1px solid var(--rule); border-radius: 2px; background: var(--paper);
  font: 600 0.85rem/1.2 var(--sans); color: var(--ink); cursor: pointer;
}
.chip span { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] span { color: #d9dcdf; }

/* ---------- opportunities ---------- */
.opps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(32px, 4vw, 56px); }
.opp { border-top: 1px solid var(--ink); padding-top: 18px; }
.opp h2 { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); line-height: 1.2; margin-bottom: 14px; }
.opp p { max-width: 36rem; color: var(--ink); }
.opp__action { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.teaser__more { display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* ---------- courses and example pages ---------- */
.course { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(28px, 5vw, 80px); padding-block: 22px clamp(40px, 5vw, 64px); background: linear-gradient(var(--ink), var(--ink)) no-repeat top center / calc(100% - 2 * var(--gutter)) 1px; }
.course:last-of-type { padding-bottom: var(--section); }
.course h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.2; }
.course__lead { margin: 0 0 12px; color: var(--ink); }
@media (max-width: 860px) { .course { grid-template-columns: minmax(0, 1fr); } }
.examples { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); }
.ex-fig { margin: 0; max-width: 1000px; }
.ex-fig a { display: block; }
.ex-fig img { width: auto; border: 1px solid var(--rule); background: var(--paper); }
.ex-fig video { display: block; width: auto; max-width: 100%; max-height: 80vh; background: #000; }
.ex-fig figcaption { margin-top: 10px; font: 600 0.9rem/1.4 var(--sans); }
.ex-text { max-width: 44rem; }
.ex-back { margin: 0; }
.ex-back .more { white-space: normal; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d9dcdf; padding-top: clamp(48px, 6vw, 72px); font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.35); }
.site-footer a:hover { color: #fff; text-decoration-color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding-bottom: clamp(36px, 5vw, 56px); }
.footer__name { margin: 0 0 10px; font: 500 1.35rem/1.25 var(--serif); color: #fff; }
.footer__grid p { margin: 0; line-height: 1.6; }
.footer__h { margin: 0 0 12px; font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #aeb5ba; }
.footer__list { list-style: none; }
.footer__list li { margin-bottom: 6px; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { text-decoration: underline; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 20px 28px; background: linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)) no-repeat top center / calc(100% - 2 * var(--gutter)) 1px; font-size: 0.85rem; color: #aeb5ba; }
.footer__base p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .pubs { grid-template-columns: minmax(0, 1fr); }
  .pubs-aside { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .toc ol { columns: 2; column-gap: 28px; }
  .toc li { break-inside: avoid; }
  .news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-cards li:nth-child(3) { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 3vw, 44px); align-content: start; }
  .news-cards li:nth-child(3) > .card__img { grid-column: 1; grid-row: 1 / span 3; margin-bottom: 0; }
  .news-cards li:nth-child(3) > :not(.card__img) { grid-column: 2; }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .area__body { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .fig--wide { margin-left: 0; }
  .area__head { grid-template-columns: 3.25rem minmax(0, 1fr); }
  .area__n { font-size: 1.8rem; }
  .alumni { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .news-year { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .news-year__label { position: static; font-size: 2rem; }
  .post.has-media { grid-template-columns: minmax(0, 1fr); grid-template-areas: "date" "title" "media" "body"; grid-template-rows: none; }
  .post__media { max-width: 520px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero h1 .line { display: inline; }
  .hide-sm { display: none; }
  .brand__sub { font-size: 0.64rem; letter-spacing: 0.12em; }
  .section-head .more { position: absolute; right: 0; top: 16px; }
  .band img { aspect-ratio: 16 / 10; }
  .area-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .area-list .t { font-size: 1.18rem; }
  .news-cards { grid-template-columns: minmax(0, 1fr); }
  .news-cards li:nth-child(3) { display: block; }
  .news-cards li:nth-child(3) > .card__img { margin-bottom: 18px; }
  .news-more a { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .home-foot__grid { grid-template-columns: minmax(0, 1fr); }
  .toc-areas { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .toc ol { columns: 1; }
  .pi { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .pi--photo { grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .pi--photo .pi__contact { grid-column: 1 / -1; }
  .pi__photo { width: 96px; height: 120px; }
  .pi__contact { text-align: left; }
  /* current members become horizontal cards: photo left, text right */
  .members { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .member { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
  .member:first-child { padding-top: 0; }
  .member > img, .member > .ph { grid-row: 1 / span 5; margin: 0; }
  .member > :not(img):not(.ph) { grid-column: 2; }
  .member .ph { font-size: 1.6rem; }
  .member h3 { font-size: 1.15rem; margin-bottom: 4px; }
  .member p { font-size: 0.92rem; }
  .member > p:nth-last-child(2) { margin-bottom: 8px; }
  .member .meta { margin-top: 0; padding-top: 8px; }
  .pub { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pub--repeat .pub__year { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .is-filtering .pub--repeat .pub__year { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .gallery { columns: 1; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
