/* Fonts: Source Serif 4 (headings) and Source Sans 3 (text), variable,
   self-hosted from Fontsource under the SIL Open Font License (see
   /assets/fonts/OFL.txt). The latin-ext files load only for characters
   outside Latin-1. */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-serif-4-latin-wght-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: "Source Serif 4";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-sans-3-latin-wght-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: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-sans-3-latin-wght-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: "Source Sans 3";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-sans-3-latin-ext-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* Colours: light theme by default, in Conservatorio blue (#0061a5, the
   colour of the institutional logo); dark theme on request (below).
   Text colours are >= 4.5:1 on both --bg and --bg-alt. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f3f5f8;
  --fg: #16202c;
  --fg-muted: #4d5a6a;
  --accent: #0061a5;
  --accent-text: #0061a5;
  --accent-deep: #004b80;
  --accent-soft: #e3eef7;
  --on-accent-soft: #004b80;
  --border: #d9e0e8;
  --topbar-bg: #003f6e;
  --topbar-fg: #ffffff;
  --topbar-muted: #bcd3e6;

  --max-width: 1080px;
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Type scale */
  --fs-hero: clamp(1.9rem, 1.3rem + 2.2vw, 2.6rem);
  --fs-h1: clamp(1.9rem, 1.5rem + 1.5vw, 2.5rem);
  --fs-h2: clamp(1.4rem, 1.25rem + 0.6vw, 1.7rem);
  --fs-h3: 1.2rem;
  --fs-small: 0.93rem;
  --fs-label: 0.8rem;
}
/* Dark theme: when the visitor chose it with the toggle (data-theme set in
   head.html), or when the system prefers it and no choice was made. The two
   blocks hold the same values. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --bg-alt: #121d30;
    --fg: #f2f4f8;
    --fg-muted: #9eabc0;
    --accent: #5aa5ea;
    --accent-text: #5aa5ea;
    --accent-deep: #0061a5;
    --accent-soft: #16294a;
    --on-accent-soft: #cfe2f5;
    --border: #22314a;
    --topbar-bg: #07101c;
    --topbar-fg: #f2f4f8;
    --topbar-muted: #9eabc0;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-alt: #121d30;
  --fg: #f2f4f8;
  --fg-muted: #9eabc0;
  --accent: #5aa5ea;
  --accent-text: #5aa5ea;
  --accent-deep: #0061a5;
  --accent-soft: #16294a;
  --on-accent-soft: #cfe2f5;
  --border: #22314a;
  --topbar-bg: #07101c;
  --topbar-fg: #f2f4f8;
  --topbar-muted: #9eabc0;
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }

/* The footer sits at the bottom of the window even on short pages. */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  /* Long words in large headings must not overflow narrow screens. */
  overflow-wrap: break-word;
}
@media (max-width: 30rem) {
  .page h1 { hyphens: auto; }
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Links inside running text are underlined, so they don't rely on colour
   alone (WCAG 1.4.1). Components (cards, listing titles) carry a class or
   sit in .item-list and are left alone. */
.page-content a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.page-content a:not([class]):hover { text-decoration-thickness: 2px; }
.page-content .item-list a { text-decoration: none; }
.page-content .item-list a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--accent-deep);
  color: #fff;
  border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; }
main:focus { outline: none; }

/* Institutional bar */
.topbar {
  background: var(--topbar-bg);
  color: var(--topbar-fg);
  font-size: 0.85rem;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  min-height: 2.5rem;
}
.topbar a { color: var(--topbar-fg); }
.topbar-institution { font-weight: 600; letter-spacing: 0.01em; padding: 0.35rem 0; }
.topbar-short { display: none; }
.topbar-meta { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.cycle-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--topbar-fg);
  border: 1px solid var(--topbar-muted);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  white-space: nowrap;
}
.theme-toggle { display: none; }
.js .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: none;
  color: var(--topbar-fg);
  border: 1px solid var(--topbar-muted);
  border-radius: 50%;
  cursor: pointer;
}
.theme-toggle:hover { background: rgb(255 255 255 / 0.12); }
.theme-toggle[aria-pressed="true"] .theme-icon-moon,
.theme-toggle[aria-pressed="false"] .theme-icon-sun { display: none; }
.lang-switcher { display: flex; align-items: center; gap: 0.15rem; }
.lang-switcher > * { display: inline-block; padding: 0.35rem 0.4rem; line-height: 1; }
.lang-switcher .lang-current { font-weight: 700; }
.lang-switcher a { color: var(--topbar-muted); }
.lang-switcher a:hover { color: var(--topbar-fg); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-serif); font-weight: 600; color: var(--fg); font-size: 1.25rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark, .brand-mark img { display: block; height: 30px; width: auto; }
.site-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-left: auto; }
.site-nav a { color: var(--fg-muted); font-size: 0.98rem; font-weight: 500; }
.site-nav a:hover { color: var(--fg); }
.site-nav a[aria-current] { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent-text); text-decoration-thickness: 2px; text-underline-offset: 0.5em; }

.pubstate {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  border: 1px solid var(--accent-text);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  margin-right: 0.5rem;
  vertical-align: 0.1em;
  white-space: nowrap;
}

/* Mobile menu: collapsed behind .nav-toggle below 60rem when JS is on
   (the `js` class is set in head.html); without JS the links just wrap. */
.nav-toggle { display: none; }
@media (max-width: 59.99rem) {
  .site-header .wrap { gap: 0.75rem 1rem; }
  .js .nav-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0 0.85rem;
    background: none;
    color: var(--fg);
    font: inherit;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
  }
  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    transition: transform 0.15s, background-color 0.15s;
  }
  .nav-toggle-icon { position: relative; }
  .nav-toggle-icon::before,
  .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-icon::before { top: -5px; }
  .nav-toggle-icon::after { top: 5px; }
  .nav-open .nav-toggle-icon { background: transparent; }
  .nav-open .nav-toggle-icon::before { transform: translateY(5px) rotate(45deg); }
  .nav-open .nav-toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }
  .site-nav { flex-basis: 100%; margin-left: 0; }
  .js .site-nav { display: none; }
  .js .nav-open .site-nav { display: flex; flex-direction: column; gap: 0; }
  .js .site-nav a { padding: 0.75rem 0; border-top: 1px solid var(--border); font-size: 1.05rem; }
  .js .site-nav a[aria-current] { text-decoration: none; box-shadow: inset 3px 0 0 var(--accent-text); padding-left: 0.75rem; }
}
@media (max-width: 35.99rem) {
  .cycle-badge { display: none; }
  .topbar { font-size: 0.8rem; }
  .topbar .wrap { flex-wrap: nowrap; gap: 0.5rem; }
  .topbar-meta { gap: 0.5rem; }
  .topbar-full { display: none; }
  .topbar-short { display: inline; }
  .lang-switcher > * { padding-left: 0.3rem; padding-right: 0.3rem; }
  .brand { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Hero */
.hero {
  padding: 4rem 0 3.25rem;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.hero-mark { display: block; margin: 0 auto 1.75rem; }
.hero-mark img { display: block; width: 200px; height: auto; margin: 0 auto; }
.hero-kicker {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 0.75rem;
}
.hero h1 { font-size: var(--fs-hero); line-height: 1.18; max-width: 30ch; margin: 0 auto 1rem; text-wrap: balance; }
.hero-institution { font-size: 1rem; color: var(--fg-muted); margin: 0; }

/* Home sections */
.home-about { padding: 3.5rem 0 1.5rem; }
.home-about-grid { display: grid; gap: 2.5rem 4rem; align-items: start; }
@media (min-width: 60rem) {
  .home-about-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
.home-about-text h2, .home-col h2 { font-size: var(--fs-h2); margin: 0 0 1rem; }
.home-about-text p { max-width: 62ch; line-height: 1.75; }

/* Key facts: label above, figure below */
.facts-title {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0.4rem 0 0.75rem;
}
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; margin: 0; }
.facts > div { border-top: 2px solid var(--fg); padding: 0.6rem 0 1.1rem; }
.facts dt { font-size: var(--fs-small); color: var(--fg-muted); }
.facts dd { margin: 0.1rem 0 0; font-family: var(--font-serif); font-weight: 600; font-size: 2rem; line-height: 1.1; }
.facts dd span { font-family: var(--font-sans); font-weight: 400; font-size: var(--fs-small); color: var(--fg-muted); }

.more { font-weight: 600; }
.home-selection { padding: 2rem 0 1rem; }
.home-selection .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 3rem;
}
.home-col .item-list { margin-top: 0.5rem; border-top: 2px solid var(--fg); }
.home-col .item-list h3 { margin: 0 0 0.35rem; font-size: var(--fs-h3); }
.home-col .item-list .meta { margin: 0; }
.home-col .item-list .meta + .meta { margin-top: 0.15rem; }
.home-selection--single .wrap { max-width: 760px; grid-template-columns: 1fr; }

/* Generic page */
.page { padding: 3.5rem 0 1rem; }
.page h1 { font-size: var(--fs-h1); margin: 0 0 1.5rem; }
.page > .wrap > .page-content { max-width: 70ch; line-height: 1.7; }
.page > .wrap > .page-content--wide { max-width: none; }
.page-content h2 { font-size: var(--fs-h2); margin: 2.5rem 0 0.75rem; }
.page-content h3 { font-size: var(--fs-h3); margin: 2rem 0 0.5rem; }
.meta { color: var(--fg-muted); font-size: var(--fs-small); }
.news-type { color: var(--accent-text); font-size: var(--fs-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 0.75rem; }
.news-item h1 { margin-bottom: 0.75rem; }

/* Listing pages: titles in the text colour, so blue marks actions and
   links in running text rather than every heading. */
.item-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.item-list li {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.item-list h2 { margin: 0 0 0.4rem; font-size: var(--fs-h3); }
.item-list h2 a, .item-list h3 a { color: var(--fg); }
.item-list h2 a:hover, .item-list h3 a:hover { color: var(--accent); }
.item-list h2 + .meta,
.item-list h3 + .meta { margin: 0; }
.item-list .meta + .meta { margin-top: 0.15rem; }
.item-list h3 { margin: 0 0 0.4rem; font-size: var(--fs-h3); }
/* Links inside a meta line (author names) are underlined, subtly. */
.meta a, .research-authors a { color: inherit; text-decoration: underline; text-decoration-color: var(--fg-muted); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.meta a:hover, .research-authors a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* Listings grouped by year (Research) or by upcoming / archive (News) */
.year-group, .news-group { margin-top: 2.5rem; }
.year-group:first-child, .news-group:first-child { margin-top: 0.5rem; }
.year-heading {
  font-size: var(--fs-h2);
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--fg);
}
.year-heading + .item-list { margin-top: 0; }

/* Back link above a page title */
.back-link { margin: 0 0 1.5rem; font-size: var(--fs-small); }
.back-link a { color: var(--fg-muted); }
.back-link a:hover { color: var(--accent); }

/* Buttons: secondary actions (DOI, map, calendar, copy) */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--accent-text);
  border-radius: 6px;
  background: none;
  color: var(--accent-text);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
}
.button:hover { background: var(--accent-soft); text-decoration: none; }
.action-links { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Sections inside a page, with a small uppercase label */
.page-section { margin-top: 2.5rem; }
.page-section .page-content { line-height: 1.7; max-width: 70ch; }

/* Publication and news pages: one reading column */
.research-item > .wrap > *,
.news-item > .wrap > :not(.news-body--poster) { max-width: 48rem; }
.news-body .page-content { max-width: 70ch; line-height: 1.7; }

/* Publication page */
.research-authors { font-size: 1.1rem; margin: 0 0 0.35rem; }
.citation-apa { max-width: 70ch; padding-left: 2em; text-indent: -2em; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 35.99rem) {
  .citation-apa { padding-left: 1.25em; text-indent: -1.25em; }
}
.citation-bibtex { margin-top: 1.25rem; }
.citation-bibtex pre {
  margin: 0 0 0.75rem;
  padding: 1rem 1.25rem;
  max-width: 100%;
  overflow-x: auto;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.copy-button { display: none; }
.js .copy-button:not([hidden]) { display: inline-flex; }
.copy-status { margin-left: 0.75rem; font-size: var(--fs-small); color: var(--fg-muted); }

/* News page */
.notice {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.3rem 0.75rem;
  border-left: 3px solid var(--fg-muted);
  background: var(--bg-alt);
  font-size: var(--fs-small);
  color: var(--fg-muted);
}
.news-body { margin-top: 2rem; }
.news-body--poster { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 48rem) {
  .news-body--poster { grid-template-columns: minmax(0, 70ch) minmax(0, 1fr); }
}
.news-poster { margin: 0; }
.news-poster img { display: block; width: 100%; max-width: 420px; height: auto; border: 1px solid var(--border); border-radius: 6px; }

/* Material page: text in the reading column, the PDF viewer full width */
.material-item > .wrap > :not(.pdf-viewer) { max-width: 48rem; }
.material-description { margin-top: 1.5rem; max-width: 70ch; line-height: 1.7; }
.pdf-viewer { margin-top: 2rem; }
.pdf-viewer iframe {
  display: block;
  width: 100%;
  height: min(80vh, 56rem);
  min-height: 24rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-alt);
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  margin-top: 4.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: var(--fs-small);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 2rem 3rem;
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 60rem) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
.footer-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; color: var(--fg); margin: 0 0 0.35rem; }
.footer-tagline { margin: 0 0 1rem; max-width: 42ch; }
.site-footer address { font-style: normal; color: var(--fg); }
.footer-col h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0.2rem 0 0.85rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-col a { color: var(--fg); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 0.18em; }

audio { width: 100%; margin-top: 1rem; }

/* People */
.people-group { margin-top: 2.5rem; }
.people-group h2,
.person-section h2,
.page-section h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin: 0 0 1.25rem;
}
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 1rem; }
.person-card {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  color: var(--fg); transition: border-color 0.15s, box-shadow 0.15s;
}
.person-card:hover { border-color: var(--accent); text-decoration: none; box-shadow: 0 2px 10px rgb(0 40 80 / 0.08); }
.person-card-photo { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; }
.person-card-initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--on-accent-soft);
  font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem;
}
.person-card-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.person-card-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; }
.person-card-role { color: var(--fg); font-size: 0.9rem; }
.person-card-meta { color: var(--fg-muted); font-size: 0.9rem; }

.person-header { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 2rem; }
.person-header .person-photo { width: 160px; height: 160px; border-radius: 12px; object-fit: cover; font-size: 3rem; }
.person-header h1 { margin: 0.25rem 0 1rem; }
.person-role { color: var(--accent-text); margin: 0; font-size: 1rem; font-weight: 500; }
.person-facts { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.25rem; margin: 0 0 1rem; }
.person-facts dt { color: var(--fg-muted); font-size: var(--fs-small); }
.person-facts dd { margin: 0; }
.person-links { list-style: none; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; margin: 0; }
.person-section { margin-top: 2.5rem; }
.person-section .page-content { line-height: 1.7; max-width: 70ch; }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-list li { border: 1px solid var(--border); background: var(--bg-alt); border-radius: 999px; padding: 0.25rem 0.8rem; font-size: 0.9rem; }
.item-list.compact { margin-top: 0; }
.item-list.compact li { padding: 0.6rem 0; }
