/* TRAFFIC Research Group — institutional design system
   Light: white base, very light grey sections, Federico II navy for identity, blue for interaction.
   Dark: deep navy/graphite surfaces, off-white text, the same blue accents. */

/* Foundations ------------------------------------------------------------ */
:root {
  color-scheme: light;
  --color-bg: #fcfcfd;
  --color-surface: #fff;
  --color-surface-alt: #f4f6f9;
  --color-raised: #fff;
  --color-header: rgba(255, 255, 255, .94);
  --color-ink: #1b2531;
  --color-muted: #4b5968;
  --color-subtle: #5f6d7c;
  --color-title: #0b2545;
  --color-link: #1b5b93;
  --color-link-hover: #0b2545;
  --color-line: #dce3eb;
  --color-soft-line: #e8edf2;
  --color-strong-line: #c3cedb;
  --color-accent: #2a6cab;
  --color-accent-ink: #1b5b93;
  --color-accent-soft: #eaf2fa;
  --color-tint: #eef3f8;
  --color-deep: #0b2545;
  --color-deep-hover: #173e6b;
  --color-deepest: #0a1f3a;
  --color-on-deep: #eef3f8;
  --color-deep-muted: #bdcad8;
  --color-focus: #2a6cab;
  --color-focus-on-deep: #9fd0f5;
  --color-gold: #a5842c;
  --color-code: #eef2f6;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06);
  --shadow-md: 0 10px 26px -12px rgba(11, 37, 69, .22);
  --shadow-float: 0 22px 48px -18px rgba(11, 37, 69, .32), 0 2px 6px rgba(11, 37, 69, .06);
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --duration-fast: 150ms;
  --duration-base: 220ms;
  --ease-standard: cubic-bezier(.2, .65, .25, 1);
  --container: 1360px;
  --gutter: clamp(18px, 3.4vw, 48px);
  --header-h: 77px;
  --measure: 74ch;
  --section-pad: clamp(52px, 6vw, 84px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #0e1824;
  --color-surface: #15222f;
  --color-surface-alt: #111e2b;
  --color-raised: #182838;
  --color-header: rgba(17, 29, 42, .93);
  --color-ink: #e2e9f0;
  --color-muted: #aab8c6;
  --color-subtle: #97a7b7;
  --color-title: #f2f5f8;
  --color-link: #8cc2ec;
  --color-link-hover: #c5e2f8;
  --color-line: #273a4f;
  --color-soft-line: #1f3044;
  --color-strong-line: #36506a;
  --color-accent: #6aafe4;
  --color-accent-ink: #9ccbf0;
  --color-accent-soft: #19304a;
  --color-tint: #1a2d42;
  --color-deep: #2b5f8c;
  --color-deep-hover: #37709f;
  --color-deepest: #09131e;
  --color-on-deep: #eef3f8;
  --color-deep-muted: #aebdcc;
  --color-focus: #9fd0f5;
  --color-gold: #c3ae78;
  --color-code: #1b2c3e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 12px 28px -14px rgba(0, 0, 0, .6);
  --shadow-float: 0 24px 52px -18px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --color-bg: #0e1824;
    --color-surface: #15222f;
    --color-surface-alt: #111e2b;
    --color-raised: #182838;
    --color-header: rgba(17, 29, 42, .93);
    --color-ink: #e2e9f0;
    --color-muted: #aab8c6;
    --color-subtle: #97a7b7;
    --color-title: #f2f5f8;
    --color-link: #8cc2ec;
    --color-link-hover: #c5e2f8;
    --color-line: #273a4f;
    --color-soft-line: #1f3044;
    --color-strong-line: #36506a;
    --color-accent: #6aafe4;
    --color-accent-ink: #9ccbf0;
    --color-accent-soft: #19304a;
    --color-tint: #1a2d42;
    --color-deep: #2b5f8c;
    --color-deep-hover: #37709f;
    --color-deepest: #09131e;
    --color-on-deep: #eef3f8;
    --color-deep-muted: #aebdcc;
    --color-focus: #9fd0f5;
    --color-gold: #c3ae78;
    --color-code: #1b2c3e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 12px 28px -14px rgba(0, 0, 0, .6);
    --shadow-float: 0 24px 52px -18px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-width: 320px;
  background: var(--color-bg);
  color: var(--color-ink);
  font: 400 1.0625rem/1.65 var(--font-sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
ul, ol { padding: 0; }
ul { list-style: none; }
a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color var(--duration-fast), text-decoration-color var(--duration-fast);
}
a:hover { color: var(--color-link-hover); }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
strong, b { font-weight: 650; }
::selection { background: var(--color-accent-soft); color: var(--color-title); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.container { width: min(100%, calc(var(--container) + 2 * var(--gutter))); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: var(--space-4); top: -80px; z-index: 1000;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
  background: var(--color-deep); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow-float); transition: top var(--duration-fast);
}
.skip-link:focus { top: var(--space-4); color: #fff; outline-color: var(--color-focus-on-deep); }

/* Institutional identity and navigation ---------------------------------- */
.topbar { background: var(--color-deepest); color: var(--color-deep-muted); font-size: .8125rem; line-height: 1.35; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; min-height: 36px; padding-block: 6px; }
.topbar strong { color: #fff; font-weight: 600; }
.topbar-sep { color: var(--color-gold); }
.topbar :focus-visible, .site-footer :focus-visible { outline-color: var(--color-focus-on-deep); }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-header); border-bottom: 1px solid var(--color-line);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  transition: box-shadow var(--duration-base) var(--ease-standard);
}
.site-header.is-scrolled { box-shadow: 0 10px 28px -18px rgba(8, 27, 46, .35); }
.header-inner { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 24px); min-height: 76px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; margin-right: auto; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand:focus-visible { outline-offset: 5px; }
.brand-seal, .footer-seal { width: 50px; height: 50px; flex: none; object-fit: contain; }
/* Both versions of the Traffic mark are in the page; the theme shows the right one. */
.brand-seal--dark, :root[data-theme="dark"] .brand-seal:not(.brand-seal--dark) { display: none; }
:root[data-theme="dark"] .brand-seal--dark { display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.12; }
.brand-name { color: var(--color-title); font: 650 1.42rem/1.1 var(--font-serif); letter-spacing: -.012em; white-space: nowrap; }
.brand-group { margin-left: 5px; padding-left: 10px; border-left: 1px solid var(--color-strong-line); font-weight: 400; }
.brand-tagline { margin-top: 5px; color: var(--color-muted); font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.initial { color: var(--color-gold); }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-list > li { position: relative; }
.nav-link {
  display: flex; align-items: center; min-height: 44px; padding: 9px clamp(8px, .75vw, 13px);
  border: 0; border-radius: var(--radius-sm); background: transparent;
  color: var(--color-ink); font: 600 .9rem/1.2 var(--font-sans); white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: color var(--duration-fast), background-color var(--duration-fast);
}
.nav-link:hover { color: var(--color-title); background: var(--color-tint); }
.nav-link.is-current, .nav-link[aria-current="page"] { color: var(--color-title); }
.nav-link[aria-current="page"]::before, .nav-link.is-current::before {
  content: ""; position: absolute; left: clamp(8px, .75vw, 13px); right: clamp(8px, .75vw, 13px);
  bottom: calc((var(--header-h) - 1px - 44px) / -2); height: 2px; border-radius: 2px 2px 0 0;
  background: var(--color-accent);
}
.dropdown-toggle::after {
  content: ""; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; opacity: .7; transform: translateY(-2px) rotate(45deg);
  transition: transform var(--duration-fast) var(--ease-standard);
}
.has-dropdown.open > .dropdown-toggle { background: var(--color-tint); color: var(--color-title); }
.dropdown-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 10; min-width: 260px;
  padding: 8px; border: 1px solid var(--color-line); border-top: 2px solid var(--color-accent);
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius-md) var(--radius-md);
  background: var(--color-raised); box-shadow: var(--shadow-float);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px);
  transition: opacity var(--duration-fast), transform var(--duration-fast) var(--ease-standard), visibility 0s linear var(--duration-fast);
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 15px; }
.has-dropdown.open > .dropdown,
:root:not(.js) .has-dropdown:is(:hover, :focus-within) > .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s;
}
.dropdown a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--color-title); font-size: .9rem; font-weight: 600; line-height: 1.35; text-decoration: none;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}
.dropdown a:hover, .dropdown a:focus-visible { background: var(--color-tint); color: var(--color-link); }
.dropdown a:focus-visible { outline-offset: -2px; }
.dropdown a small { display: block; margin-top: 2px; color: var(--color-muted); font-size: .78rem; font-weight: 400; letter-spacing: .01em; }
.dropdown-heading, .mega-heading { color: var(--color-accent-ink); font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.dropdown-heading { margin: 8px 12px 2px; padding-top: 10px; border-top: 1px solid var(--color-soft-line); }
.dropdown-mega { left: 50%; width: min(1040px, calc(100vw - 2 * var(--gutter))); padding: 20px 18px 16px; transform: translate(-50%, -4px); }
.has-dropdown.open > .dropdown-mega,
:root:not(.js) .has-dropdown:is(:hover, :focus-within) > .dropdown-mega { transform: translate(-50%, 0); }
.mega-grid { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 16px; }
.mega-col + .mega-col { padding-left: 16px; border-left: 1px solid var(--color-soft-line); }
.mega-heading { margin: 0 12px 8px; padding-bottom: 10px; border-bottom: 1px solid var(--color-line); }
.nav-toggle { display: none; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none;
  min-width: 74px; height: 38px; padding: 0 11px; border: 1px solid var(--color-line);
  border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-title);
  font-size: .8rem; font-weight: 700; cursor: pointer;
  transition: background-color var(--duration-fast), border-color var(--duration-fast);
}
.theme-toggle:hover { background: var(--color-tint); border-color: var(--color-strong-line); }
.theme-icon { width: 17px; height: 17px; flex: none; }
.theme-icon-moon, :root[data-theme="dark"] .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: block; }

/* Home: opening statement and facts ------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--color-surface); border-bottom: 1px solid var(--color-line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, var(--color-surface-alt));
  opacity: .7;
}
/* Faded University seal behind the opening statement. */
.hero::after {
  content: ""; position: absolute; top: 0; right: -60px; bottom: 0; width: min(64%, 760px); pointer-events: none;
  background: url("../images/federicoII_bg.jpg") right center / auto 125% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
          mask-image: linear-gradient(90deg, transparent, #000 45%);
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] .hero::after { filter: invert(1) brightness(1.9); mix-blend-mode: screen; }
.hero-inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 5vw, 80px); padding-block: clamp(52px, 6.5vw, 92px);
}
.hero-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: var(--space-6); color: var(--color-title); font-size: clamp(.95rem, 1.25vw, 1.15rem); font-weight: 700; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }
.eyebrow a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 180ms var(--ease-standard); }
.eyebrow a:hover, .eyebrow a:focus-visible { background-size: 100% 2px; }
.eyebrow::before { content: ""; width: 44px; height: 3px; flex: none; background: var(--color-gold); }
.hero-title { max-width: 16ch; color: var(--color-title); font: 600 clamp(2.6rem, 5vw, 4.35rem)/1.04 var(--font-serif); letter-spacing: -.028em; text-wrap: balance; }
.hero-title .initial { color: var(--color-gold); }
.hero-subtitle { max-width: 34ch; margin-top: var(--space-5); color: var(--color-gold); font: italic 400 clamp(1.2rem, 1.75vw, 1.5rem)/1.32 var(--font-serif); text-wrap: balance; }
.hero-lead { max-width: 60ch; margin-top: var(--space-4); color: var(--color-muted); font-size: 1.1rem; line-height: 1.68; text-wrap: pretty; }
.hero-lead strong { color: var(--color-ink); font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-facts {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-8); min-width: 0; padding: clamp(22px, 2.8vw, 36px) clamp(22px, 2.8vw, 36px) clamp(24px, 2.8vw, 34px);
  background: var(--color-surface-alt);
  color: var(--color-ink); border: 1px solid var(--color-line); border-top: 3px solid var(--color-deep);
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-md);
}
.fact { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 104px; padding-block: 18px 20px; border-bottom: 1px solid var(--color-line); }
.fact dt { color: var(--color-muted); font-size: .72rem; font-weight: 700; letter-spacing: .13em; line-height: 1.3; text-transform: uppercase; }
.fact dd { margin-top: auto; color: var(--color-title); font: 600 clamp(1.9rem, 2.9vw, 2.65rem)/1 var(--font-serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.fact-wide { grid-column: 1 / -1; min-height: 0; padding-bottom: 0; border: 0; }
.fact dd.venues {
  margin-top: 0; overflow: hidden; font: inherit; white-space: normal;
  contain: inline-size; /* the scrolling track must not widen the grid */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.venues-track { display: flex; width: max-content; animation: venues-scroll 60s linear infinite; }
.venues:hover .venues-track { animation-play-state: paused; }
.venues-list { display: flex; flex-shrink: 0; }
.venues-list li { color: var(--color-ink); font-size: .95rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.venues-list li::after { content: "·"; margin-inline: .7em; color: var(--color-accent); font-weight: 700; }
@keyframes venues-scroll { to { transform: translateX(-50%); } }
:root[data-theme="dark"] .hero-title .initial { color: var(--color-accent-ink); }

/* Buttons, sections, and short-form content ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px;
  border: 1px solid transparent; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 700;
  line-height: 1.25; letter-spacing: .01em; text-decoration: none;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--color-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-deep-hover); color: #fff; box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--color-strong-line); color: var(--color-title); background: var(--color-surface); }
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-title); background: var(--color-accent-soft); }
.section { padding-block: var(--section-pad); }
.section-alt { background: var(--color-surface-alt); border-block: 1px solid var(--color-line); }
.section:not(.section-alt, .page-body) + .section:not(.section-alt) { border-top: 1px solid var(--color-soft-line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(26px, 3vw, 38px); }
.section-title { position: relative; padding-bottom: 14px; color: var(--color-title); font: 600 clamp(1.8rem, 2.8vw, 2.3rem)/1.15 var(--font-serif); letter-spacing: -.018em; text-wrap: balance; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--color-accent); }
.section-intro { order: 3; flex-basis: 100%; color: var(--color-muted); font-size: 1.02rem; }
.section-more {
  display: inline-flex; align-items: center; gap: 6px; padding-block: 4px; margin-bottom: 6px;
  color: var(--color-link); font-size: .92rem; font-weight: 700; white-space: nowrap;
  text-decoration: underline; text-decoration-color: transparent;
  transition: text-decoration-color var(--duration-fast), color var(--duration-fast);
}
.section-more:hover { text-decoration-color: currentColor; }
.section p + p { margin-top: 1em; }
.highlights { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-6); align-items: stretch; }
.highlights-side { display: grid; grid-auto-rows: 1fr; gap: var(--space-6); }
/* Highlights rotator: the feature card and the latest news fade into each other. */
.rotator { position: relative; display: flex; flex-direction: column; min-width: 0; }
.rotator-slides { display: grid; flex: 1; }
.rotator-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 700ms var(--ease-standard), visibility 0s 700ms; }
.rotator-slide.is-active { opacity: 1; visibility: visible; transition: opacity 700ms var(--ease-standard), visibility 0s; }
.news-slide-text { margin-bottom: var(--space-4); color: var(--color-title) !important; font: 500 clamp(1.3rem, 1.9vw, 1.65rem)/1.35 var(--font-serif); letter-spacing: -.01em; text-wrap: pretty; }
.news-slide-text a { color: var(--color-link); }
/* Controls sit inside the card, so the rotator is exactly as tall as the cards beside it. */
.rotator-dots { position: absolute; right: clamp(16px, 2vw, 26px); bottom: calc(clamp(22px, 2.4vw, 32px) - 3px); z-index: 1; display: flex; justify-content: center; gap: 4px; }
.rotator-slide .card-link { margin-right: 236px; }
.rotator-dot { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.rotator-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--color-strong-line); transition: width var(--duration-base), background-color var(--duration-base); }
.rotator-dot:hover::before { background: var(--color-accent); }
.rotator-dot[aria-current="true"]::before { width: 22px; background: var(--color-deep); }
:root[data-theme="dark"] .rotator-dot[aria-current="true"]::before { background: var(--color-accent); }
.rotator-toggle { display: grid; place-items: center; width: 28px; height: 28px; margin-left: 6px; padding: 0; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface); color: var(--color-muted); cursor: pointer; }
.rotator-toggle:hover { border-color: var(--color-accent); color: var(--color-accent-ink); }
.rotator-toggle::before { content: ""; width: 8px; height: 9px; border-inline: 2.5px solid currentColor; }
.rotator-toggle.is-paused::before { width: 0; height: 0; margin-left: 2px; border-block: 5px solid transparent; border-inline: 8px solid currentColor; border-inline-end: 0; }
.rotator-dots { align-items: center; }
.card {
  display: flex; flex-direction: column; min-width: 0; padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface);
  box-shadow: var(--shadow-sm); transition: border-color var(--duration-base);
}
.card:hover { border-color: var(--color-strong-line); }
.card-feature { border-top: 3px solid var(--color-deep); border-top-left-radius: var(--radius-sm); border-top-right-radius: var(--radius-sm); }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-5); }
.tag { padding: 4px 9px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--color-tint); color: var(--color-accent-ink); font-size: .72rem; font-weight: 700; letter-spacing: .09em; line-height: 1.3; text-transform: uppercase; }
.tag-accent { background: var(--color-accent-soft); border-color: color-mix(in srgb, var(--color-accent) 30%, transparent); }
.card-title { max-width: 34ch; margin-bottom: var(--space-4); color: var(--color-title); font: 600 clamp(1.5rem, 2.1vw, 1.9rem)/1.2 var(--font-serif); letter-spacing: -.015em; text-wrap: balance; }
.card-title-sm { margin-bottom: var(--space-2); color: var(--color-title); font: 600 1.45rem/1.22 var(--font-serif); letter-spacing: -.01em; }
.card-kicker { margin-bottom: var(--space-3); color: var(--color-accent-ink); font-size: .72rem; font-weight: 700; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.card p { color: var(--color-muted); }
.card > p:not(.card-kicker) { max-width: 72ch; }
.card p strong { color: var(--color-ink); }
.card-link {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; margin-top: auto; padding-top: var(--space-5);
  color: var(--color-link); font-size: .92rem; font-weight: 700;
  text-decoration: underline; text-decoration-color: transparent;
  transition: text-decoration-color var(--duration-fast), color var(--duration-fast);
}
.card-link:hover { text-decoration-color: currentColor; }
.award { display: flex; gap: 14px; margin-top: var(--space-6); padding: var(--space-4) var(--space-5); border-left: 3px solid var(--color-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--color-accent-soft); }
.award-icon { width: 28px; height: 28px; flex: none; color: var(--color-accent-ink); }
.card .award p { color: var(--color-ink); font-size: .95rem; line-height: 1.55; }
.plain-links li { border-bottom: 1px solid var(--color-soft-line); }
.plain-links li:last-child { border: 0; }
.plain-links a { display: block; padding: 10px 0; color: var(--color-link); font-weight: 600; line-height: 1.4; text-decoration: none; }
.plain-links a:hover { color: var(--color-link-hover); text-decoration: underline; }

/* Research directory ----------------------------------------------------- */
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); align-items: stretch; }
/* An area left alone on the last row (e.g. "Earlier research") spans the row, its topics in columns. */
.areas > .area:last-child:nth-child(4n+1) { grid-column: 1 / -1; }
.areas > .area:last-child:nth-child(4n+1) .area-topics { columns: 3 260px; column-gap: var(--space-8); }
.areas > .area:last-child:nth-child(4n+1) .area-topics li { break-inside: avoid; }
.area {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--color-line); border-top: 3px solid var(--color-deep);
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius-md) var(--radius-md);
  background: var(--color-surface); box-shadow: var(--shadow-sm);
  transition: border-color var(--duration-base);
}
.area:hover { border-color: var(--color-strong-line); border-top-color: var(--color-deep); }
.area-head { display: flex; align-items: baseline; gap: 12px; min-height: 66px; padding: 18px 20px 14px; border-bottom: 1px solid var(--color-line); background: var(--color-surface); }
.area-num { flex: none; color: var(--color-accent-ink); font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.area-head h3 { color: var(--color-title); font: 600 clamp(1.15rem, 1.45vw, 1.3rem)/1.22 var(--font-serif); letter-spacing: -.008em; }
.area-topics { flex: 1; padding: 4px 20px 12px; list-style: none; }
.area-topics li { display: block; padding: 12px 0; border-bottom: 1px solid var(--color-soft-line); }
.area-topics li:last-child { border-bottom: 0; }
.area-topic { display: block; color: var(--color-title); font-weight: 600; line-height: 1.35; text-decoration: none; }
a.area-topic { color: var(--color-title); text-decoration: underline; text-decoration-color: transparent; }
a.area-topic:hover { color: var(--color-link); text-decoration-color: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips a {
  padding: 3px 8px; border: 1px solid var(--color-line); border-radius: var(--radius-sm);
  background: var(--color-surface-alt); color: var(--color-link); font-size: .8rem; font-weight: 600; line-height: 1.35;
  text-decoration: none; transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}
.chips a:hover { border-color: var(--color-accent); background: var(--color-accent-soft); color: var(--color-link-hover); }
.topics-more { margin-top: var(--space-8); font-weight: 700; }
.topics-more a { text-decoration: underline; text-decoration-color: transparent; }
.topics-more a:hover { text-decoration-color: currentColor; }

/* About and opportunities ------------------------------------------------ */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.two-col > div > p { max-width: 62ch; margin-top: var(--space-4); color: var(--color-muted); font-size: 1.0625rem; line-height: 1.72; }
.two-col > div > p strong { color: var(--color-ink); }
.two-col .section-title { margin-bottom: var(--space-6); }
.openings {
  position: relative; overflow: hidden; padding: clamp(26px, 3.4vw, 44px);
  background: var(--color-surface-alt); color: var(--color-ink);
  border: 1px solid var(--color-line); border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius-md) var(--radius-md);
}
.openings .card-kicker { color: var(--color-accent-ink); }
.openings-title { margin-bottom: var(--space-4); color: var(--color-title); font: 600 clamp(1.65rem, 2.5vw, 2.15rem)/1.16 var(--font-serif); letter-spacing: -.015em; }
.openings p, .openings li { position: relative; z-index: 1; }
.openings > p { max-width: 64ch; }
.openings a:not(.btn) { color: var(--color-link); }
.openings-topics { margin: var(--space-6) 0; }
.openings-group { margin: var(--space-4) 0 var(--space-2); color: var(--color-muted); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.openings-group:first-child { margin-top: 0; }
.keyword-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.keyword-list li {
  padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--color-accent) 35%, transparent); border-radius: 999px;
  background: var(--color-surface); color: var(--color-title); font-size: .92rem; font-weight: 650; line-height: 1.3;
}
.openings-how { color: var(--color-muted); font-size: .95rem; }
.openings-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.openings-collab { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--color-line); }
.openings-collab .card-kicker { margin-bottom: var(--space-2); }
.openings-collab p:not(.card-kicker) { color: var(--color-muted); font-size: .95rem; }

/* Inner pages and long-form research content ----------------------------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(36px, 4.6vw, 64px) clamp(34px, 4.2vw, 56px); background: var(--color-surface-alt); border-bottom: 1px solid var(--color-line); }
.page-hero::after {
  content: ""; position: absolute; top: -34%; right: -3%; width: min(560px, 52vw); aspect-ratio: 720 / 620;
  background: url("../images/network-field.svg") center / contain no-repeat; opacity: .5; pointer-events: none;
}
:root[data-theme="dark"] .page-hero::after { opacity: .16; }
/* Datasets: drawings of phones and apps (MIRAGE) or of chat and AI (GenAI), fading towards the title */
.page-hero-mobile::after, .page-hero-genai::after {
  top: -4%; right: 0; width: min(640px, 58vw); opacity: .8;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%), linear-gradient(to bottom, #000 70%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 45%), linear-gradient(to bottom, #000 70%, transparent); mask-composite: intersect;
}
.page-hero-mobile::after { background-image: url("../images/mobile-field.svg"); }
.page-hero-genai::after { background-image: url("../images/genai-field.svg"); }
:root[data-theme="dark"] :is(.page-hero-mobile, .page-hero-genai)::after { opacity: .3; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-bottom: var(--space-5); color: var(--color-muted); font-size: .84rem; font-weight: 600; letter-spacing: .01em; }
.breadcrumb a { color: var(--color-link); text-decoration: underline; text-decoration-color: transparent; }
.breadcrumb a:hover { text-decoration-color: currentColor; }
.crumb-sep { color: var(--color-strong-line); }
.page-eyebrow { margin-bottom: var(--space-3); color: var(--color-accent-ink); font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.page-title { max-width: 26ch; color: var(--color-title); font: 600 clamp(2.15rem, 4vw, 3.3rem)/1.1 var(--font-serif); letter-spacing: -.024em; text-wrap: balance; overflow-wrap: break-word; }
.page-intro { max-width: 72ch; margin-top: var(--space-5); color: var(--color-muted); font-size: 1.05rem; line-height: 1.65; }
.page-body { padding-block: clamp(44px, 5.5vw, 76px) clamp(56px, 7vw, 96px); }
.page-body > .container { container-type: inline-size; }
.prose {
  max-width: var(--measure); color: var(--color-ink); font-size: 1.0625rem; line-height: 1.72;
  overflow-wrap: break-word; text-wrap: pretty;
}
.prose > * + * { margin-top: 1.1em; }
.prose :is(h1, h2, h3, h4) { color: var(--color-title); line-height: 1.22; text-wrap: balance; }
.prose h1 { margin-top: 1.4em; font: 600 2rem/1.15 var(--font-serif); letter-spacing: -.018em; }
.prose h2 { margin-top: 2.3em; padding-top: .95em; border-top: 1px solid var(--color-line); font: 600 clamp(1.5rem, 2.3vw, 1.85rem)/1.2 var(--font-serif); letter-spacing: -.014em; }
.prose h3 { margin-top: 1.9em; font: 600 1.3rem/1.25 var(--font-serif); letter-spacing: -.008em; }
.prose h4 { margin-top: 1.5em; font-size: 1.02rem; font-weight: 700; }
.prose :is(h1, h2, h3, h4):first-child { margin-top: 0; }
.prose h1:first-child + * { margin-top: .6em; }
.prose h2:first-child { padding-top: 0; border-top: 0; }
.prose :is(h1, h2, h3, h4) + * { margin-top: .7em; }
.prose p { text-align: left; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--color-subtle); }
.prose li + li { margin-top: .45em; }
.prose li > :is(ul, ol) { margin-top: .45em; }
.prose hr { margin-block: 2.6em; border: 0; border-top: 1px solid var(--color-line); }
.prose hr + br, .prose hr + br + br { display: none; }
.prose blockquote { padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--color-line); color: var(--color-muted); }
.prose img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; }
.prose center > img, .prose p > img:only-child { margin-block: .4em; border-radius: var(--radius-sm); }
.prose video { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.prose iframe { display: block; max-width: 100%; border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: var(--color-surface-alt); }
.prose iframe[src*="vm1.comics.unina.it"] { width: min(100%, 1000px); height: auto; aspect-ratio: 5 / 6; }
.prose center { display: block; text-align: center; }
.prose big { font-size: 1.1em; }
.prose table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .94rem; line-height: 1.5; scrollbar-color: var(--color-strong-line) transparent; }
.prose .cloud-provider-table { width: min(100%, 420px); }
.prose .probe-table { width: 100%; }
.cloud-provider-table td { min-width: 120px; }
.cloud-provider-table td:last-child { background: #fff; }
.cloud-provider-table img { width: 100px; max-height: 58px; object-fit: contain; }
.prose td, .prose th { padding: 9px 13px; border: 1px solid var(--color-line); vertical-align: top; }
.prose th { background: var(--color-surface-alt); color: var(--color-title); font-weight: 650; text-align: left; }
.prose pre, .prose code, .prose kbd, .prose samp { font-family: var(--font-mono); font-size: .86em; }
.prose :not(pre) > code { padding: .1em .38em; border-radius: 3px; background: var(--color-code); color: var(--color-title); overflow-wrap: anywhere; }
.prose pre {
  width: max-content; min-width: 100%; max-width: 100%; padding: 16px 20px; overflow-x: auto;
  border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: var(--color-surface-alt);
  color: var(--color-ink); font-size: .84rem; line-height: 1.6; tab-size: 4; scrollbar-color: var(--color-strong-line) transparent;
}
/* Wide technical content may use the free width of the column, never the page gutter. */
.prose > pre, .prose > table:not(.cloud-provider-table) { max-width: calc(100cqw - var(--prose-inset, 0px)); }
.prose pre[style*="background"] { background: var(--color-surface-alt) !important; }
.prose a { overflow-wrap: anywhere; }
.prose sup a { text-decoration: none; }
.with-subnav { --prose-inset: calc(220px + clamp(28px, 4vw, 56px)); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.subnav { position: sticky; top: calc(var(--header-h) + 24px); padding: 4px 0 4px 18px; border-left: 1px solid var(--color-line); }
.subnav-title { margin-bottom: 10px; color: var(--color-accent-ink); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.subnav li a { position: relative; display: block; padding: 5px 0; color: var(--color-link); font-size: .92rem; line-height: 1.35; text-decoration: none; }
.subnav li a:hover { color: var(--color-link-hover); text-decoration: underline; }
.subnav li a[aria-current="page"] { color: var(--color-title); font-weight: 650; }
.subnav li a[aria-current="page"]::before { content: ""; position: absolute; left: -19px; top: 4px; bottom: 4px; width: 2px; background: var(--color-accent); }
.notice { padding: var(--space-4) var(--space-6); border-left: 3px solid var(--color-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--color-accent-soft); }
.footnotes { margin-top: 3em; padding-top: 1.2em; border-top: 1px solid var(--color-line); color: var(--color-muted); font-size: .92rem; }
/* Legacy diagrams and screenshots with white backgrounds keep a light mat in dark mode. */
:root[data-theme="dark"] .prose img:not([src$="NEWa.gif"]) { background: #fff; border-radius: var(--radius-sm); }
:root[data-theme="dark"] .prose center > img { padding: 8px; }

/* Latest research: compact, equal-status citation cards ------------------ */
.latest-pubs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); list-style: none; }
.latest-pubs > li { min-width: 0; }
.pub-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border: 1px solid var(--color-line); border-top: 3px solid var(--color-deep);
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius-md) var(--radius-md);
  background: var(--color-surface); color: var(--color-ink); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: border-color var(--duration-base), transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base);
}
.pub-card:hover { border-color: var(--color-accent); border-top-color: var(--color-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--color-ink); }
.pub-card:focus-visible { outline-offset: 3px; }
.pub-card-date { display: flex; align-items: baseline; gap: 8px; padding: 12px 18px 11px; border-bottom: 1px solid var(--color-soft-line); background: var(--color-surface-alt); line-height: 1.15; }
.pub-card-month { color: var(--color-accent-ink); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.pub-card-year { color: var(--color-title); font: 600 1.25rem/1.1 var(--font-serif); font-variant-numeric: lining-nums; }
.pub-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; padding: 16px 18px 18px; }
.pub-card-kind { color: var(--color-accent-ink); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pub-card-title { color: var(--color-title); font: 600 1.1rem/1.3 var(--font-serif); letter-spacing: -.005em; }
.pub-card:hover .pub-card-title { color: var(--color-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.pub-card-venue { color: var(--color-link); font-size: .88rem; font-style: italic; line-height: 1.4; }
.pub-card-authors { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--color-soft-line); color: var(--color-muted); font-size: .84rem; line-height: 1.45; }

/* People, collaboration, and news --------------------------------------- */
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); list-style: none; }
.person {
  display: flex; align-items: stretch; gap: 18px; min-width: 0; padding: 22px;
  border: 1px solid var(--color-line); border-top: 2px solid var(--color-accent);
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius-md) var(--radius-md);
  background: var(--color-surface); box-shadow: var(--shadow-sm); transition: border-color var(--duration-base);
}
.person:hover { border-color: var(--color-strong-line); border-top-color: var(--color-accent); }
.person.is-linked { cursor: pointer; }
.person.is-linked:hover { box-shadow: var(--shadow-md); }
.person.is-linked:hover .person-name { color: var(--color-link); }
.person-photo { align-self: flex-start; width: 92px; height: 112px; flex: none; object-fit: cover; object-position: center top; background: #fff; border: 1px solid var(--color-soft-line); border-radius: var(--radius-sm); }
.person-body { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.person-kicker { margin-bottom: 5px; color: var(--color-accent-ink); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.person-name { color: var(--color-title); font: 600 1.36rem/1.2 var(--font-serif); letter-spacing: -.01em; }
.person-role { margin-top: 4px; color: var(--color-muted); font-size: .92rem; line-height: 1.4; }
.person-meta { margin-top: 12px; color: var(--color-muted); font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; list-style: none; }
.person-meta li + li { margin-top: 3px; }
.person-meta .k, .collab-topic::before { color: var(--color-accent-ink); font-size: .68rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.person-meta .k { display: inline-block; min-width: 3.6em; }
.person-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.person-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--color-line); border-radius: 999px;
  color: var(--color-link); font-size: .82rem; font-weight: 700; line-height: 1.3; text-decoration: none;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}
.person-link::after { content: "↗"; font-size: .9em; opacity: .7; }
.person-link:hover { border-color: var(--color-accent); background: var(--color-accent-soft); color: var(--color-link-hover); }
.person-link--scholar::before {
  content: ""; width: 13px; height: 13px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 24a7 7 0 1 1 0-14 7 7 0 0 1 0 14zm0-24L0 9.5l4.84 3.94A8 8 0 0 1 12 9a8 8 0 0 1 7.16 4.44L24 9.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 24a7 7 0 1 1 0-14 7 7 0 0 1 0 14zm0-24L0 9.5l4.84 3.94A8 8 0 0 1 12 9a8 8 0 0 1 7.16 4.44L24 9.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* A Scholar link is shown only once its profile URL has been filled in. */
.person-link[href=""] { display: none; }
.section-lead { padding-bottom: clamp(32px, 4vw, 52px); }
.section-members { padding-top: 0; }
.people-grid--alumni { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.person--alumnus { gap: 14px; padding: 16px; border-top-width: 1px; box-shadow: none; }
.person--alumnus .person-photo { width: 56px; height: 68px; }
.person--alumnus .person-name { font-size: 1.12rem; }
.person--alumnus .person-role { font-size: .85rem; }
.person--alumnus .person-links { padding-top: 10px; }
.person--alumnus .person-link { padding: 3px 9px; font-size: .78rem; }
.person--principal { grid-column: 1 / -1; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); padding: clamp(24px, 3vw, 34px); margin-bottom: var(--space-4); border-top: 3px solid var(--color-deep); }
.person--principal:hover { border-top-color: var(--color-deep); }
.person--principal .person-photo { width: 170px; height: 204px; }
.person--principal .person-name { font-size: clamp(1.9rem, 2.6vw, 2.5rem); }
.person--principal .person-role { color: var(--color-ink); font-size: 1.05rem; }
.person--principal .person-meta { font-size: .95rem; }
@media (min-width: 901px) {
  .person--principal { align-items: center; }
  .person--principal .person-body {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(28px, 4vw, 64px);
    grid-template-areas: "name meta" "role meta" "link meta"; align-content: center;
  }
  .person--principal .person-name { grid-area: name; align-self: end; }
  .person--principal .person-role { grid-area: role; }
  .person--principal .person-links { grid-area: link; align-self: start; }
  .person--principal .person-meta { grid-area: meta; align-self: center; margin-top: 0; padding: 6px 0 6px clamp(20px, 2.6vw, 36px); border-left: 1px solid var(--color-line); }
}
.collab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); list-style: none; }
.collab {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 22px 24px 20px;
  border: 1px solid var(--color-line); border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--color-surface); box-shadow: var(--shadow-sm);
  transition: border-color var(--duration-base);
}
.collab:hover { border-color: var(--color-strong-line); border-left-color: var(--color-accent); }
.collab-name { color: var(--color-title); font: 600 1.4rem/1.22 var(--font-serif); letter-spacing: -.01em; }
.collab-name a { color: inherit; text-decoration: underline; text-decoration-color: transparent; }
.collab-name a:hover { color: var(--color-link); text-decoration-color: currentColor; }
.collab-org { color: var(--color-muted); font-size: .95rem; }
.collab-topic { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--color-soft-line); color: var(--color-ink); font-size: .92rem; line-height: 1.5; }
.collab-org + .collab-topic { margin-top: 8px; }
.collab-topic::before { content: "Topic"; margin-right: 8px; }
.collab-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 26px; margin-bottom: 6px; }
.collab-kind { padding: 3px 8px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--color-gold) 16%, transparent); color: color-mix(in srgb, var(--color-gold) 75%, var(--color-ink)); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.collab-logo { max-width: 140px; max-height: 44px; margin-left: auto; object-fit: contain; }
:root[data-theme="dark"] .collab-logo { padding: 4px 6px; border-radius: var(--radius-sm); background: #fff; }
.collab--company { border-left-color: var(--color-gold); }
.collab--university { border-left-color: var(--color-accent); }
.collab-papers { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--color-soft-line); font-size: .9rem; }
.collab-papers summary { cursor: pointer; color: var(--color-link); font-weight: 650; }
.collab-papers ul { display: grid; gap: 8px; margin-top: 10px; list-style: none; }
.collab-papers li { line-height: 1.45; }
.collab-year { color: var(--color-muted); font-variant-numeric: tabular-nums; }
.collab--university .collab-kind { background: var(--color-accent-soft); color: var(--color-accent-ink); }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(34px, 5vw, 80px); align-items: start; }
.news-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.news-year {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; padding: 26px 28px 28px;
  border: 1px solid var(--color-line); border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--color-surface); box-shadow: var(--shadow-sm);
}
.news-year + .news-year { margin-top: var(--space-4); }
.news-year-title { color: var(--color-title); font: 600 1.75rem/1.05 var(--font-serif); font-variant-numeric: lining-nums; }
.news-list { list-style: none; }
.news-entry { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 0 0 20px; }
.news-entry + .news-entry { padding-top: 20px; border-top: 1px solid var(--color-soft-line); }
.news-entry:last-child { padding-bottom: 0; }
.news-month { padding-top: 3px; color: var(--color-accent-ink); font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.news-items { max-width: 72ch; list-style: none; line-height: 1.62; }
.news-items li + li { margin-top: 10px; }
.news-items a { overflow-wrap: anywhere; }

/* Hundreds of publications: readable density, stable filters ----------- */
.pub-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px 22px; margin-bottom: 20px;
  border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm);
}
#pub-search {
  flex: 1 1 300px; min-width: 0; min-height: 46px; padding: 10px 14px 10px 42px;
  border: 1px solid var(--color-strong-line); border-radius: var(--radius-sm);
  background: var(--color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b7785' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='7.8' cy='7.8' r='5.6'/%3E%3Cpath d='m12 12 4.2 4.2'/%3E%3C/svg%3E") 14px 50% / 18px no-repeat;
  color: var(--color-ink); font-size: 1rem;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
#pub-search::placeholder { color: var(--color-subtle); opacity: 1; }
#pub-search:hover { border-color: var(--color-accent); }
#pub-search:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 28%, transparent); }
#pub-search::-webkit-search-cancel-button { cursor: pointer; }
.pub-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-filter, .pub-clear {
  min-height: 40px; padding: 7px 12px; border: 1px solid var(--color-line); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-ink); font-size: .84rem; font-weight: 700; cursor: pointer;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}
.pub-filter:hover, .pub-clear:hover { border-color: var(--color-accent); background: var(--color-tint); }
.pub-filter span { margin-left: 5px; color: var(--color-subtle); font-weight: 600; font-variant-numeric: tabular-nums; }
.pub-filter[aria-pressed="true"] { border-color: var(--color-deep); background: var(--color-deep); color: #fff; }
.pub-filter[aria-pressed="true"] span { color: rgba(255, 255, 255, .78); }
.pub-clear { border-color: transparent; background: transparent; color: var(--color-link); text-decoration: underline; text-underline-offset: .2em; }
.pub-count { width: 100%; color: var(--color-muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.pub-count:empty { display: none; }
.pub-empty { padding: 30px 0; color: var(--color-muted); }
.pub-jump {
  position: sticky; top: var(--header-h); z-index: 5; display: flex; gap: 2px; max-width: 100%;
  padding: 8px 0; margin-bottom: var(--space-4); overflow-x: auto; overscroll-behavior-x: contain;
  border-bottom: 1px solid var(--color-line); background: var(--color-bg);
  scrollbar-width: thin; scrollbar-color: var(--color-strong-line) transparent;
}
.pub-jump a {
  flex: none; padding: 6px 10px; border-radius: var(--radius-sm);
  color: var(--color-muted); font-size: .86rem; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}
.pub-jump a:hover, .pub-jump a:focus-visible { color: var(--color-link); background: var(--color-tint); }
.pub-jump a:focus-visible { outline-offset: -2px; }
.pub-jump a.is-active { color: var(--color-title); background: var(--color-tint); box-shadow: inset 0 -2px 0 var(--color-accent); }
html:has(.pub-jump) { scroll-padding-top: calc(var(--header-h) + 72px); }
.pub-year { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; padding: 30px 0 32px; border-top: 1px solid var(--color-line); }
.pub-year:first-of-type { border-top: 0; }
.pub-year h2 { position: sticky; top: calc(var(--header-h) + 72px); align-self: start; color: var(--color-title); font: 600 2rem/1.05 var(--font-serif); font-variant-numeric: lining-nums; letter-spacing: -.015em; }
.pub-list { max-width: 110ch; list-style: none; }
.pub { padding: 0 0 16px; color: var(--color-ink); font-size: .97rem; line-height: 1.62; overflow-wrap: anywhere; }
.pub + .pub { padding-top: 16px; border-top: 1px solid var(--color-soft-line); }
.pub-kind { display: inline-block; margin-right: 8px; color: var(--color-accent-ink); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.pub a { text-decoration-color: color-mix(in srgb, currentColor 38%, transparent); overflow-wrap: anywhere; }
.pub a:hover { text-decoration-color: currentColor; }
.pub i, .pub em { color: var(--color-muted); }
.pub-pdf {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid var(--color-line); border-radius: 3px;
  color: var(--color-link); font-size: .72rem; font-weight: 700; letter-spacing: .04em; line-height: 1.5; text-decoration: none; vertical-align: 1px;
  transition: background-color var(--duration-fast), border-color var(--duration-fast);
}
.pub-pdf:hover { border-color: var(--color-accent); background: var(--color-tint); }

/* Workshops & Special Issues ------------------------------------------------ */
.page-jump { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.page-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--color-strong-line); border-radius: 999px; background: var(--color-surface); color: var(--color-title); font-weight: 650; text-decoration: none; }
.page-jump a:hover { border-color: var(--color-accent); background: var(--color-accent-soft); }
.page-jump span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--color-tint); color: var(--color-accent-ink); font-size: .8rem; text-align: center; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: var(--space-5); }
.event-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); transition: border-color var(--duration-base), box-shadow var(--duration-base), transform var(--duration-base); }
.event-card:hover { border-color: var(--color-strong-line); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.event-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(18px, 2vw, 24px); background: var(--color-deep); color: var(--color-on-deep); }
.event-card--issue .event-card-head { background: color-mix(in srgb, var(--color-gold) 82%, #000); }
.event-badge { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font: 600 1.05rem/1.2 var(--font-serif); font-variant-numeric: lining-nums; }
.event-venue { margin: 0; color: var(--color-on-deep); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-align: right; text-transform: uppercase; }
.event-card-body { display: flex; flex: 1; flex-direction: column; padding: clamp(18px, 2vw, 26px); }
.event-card-body .card-kicker { margin-bottom: var(--space-2); }
.event-title { color: var(--color-title); font: 600 clamp(1.4rem, 2vw, 1.7rem)/1.2 var(--font-serif); letter-spacing: -.01em; }
.event-title--long { font-size: clamp(1.2rem, 1.6vw, 1.35rem); line-height: 1.3; }
.event-title a { color: inherit; text-decoration: none; }
.event-title a:hover { color: var(--color-link); }
.event-subtitle { margin-top: 6px; color: var(--color-muted); line-height: 1.5; }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: var(--space-3); color: var(--color-ink); font-size: .9rem; font-weight: 600; }
.event-meta span + span::before { content: "·"; margin-right: 16px; margin-left: -10px; color: var(--color-accent); }
.event-label { margin-top: var(--space-4); color: var(--color-muted); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.event-people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; list-style: none; }
.event-people li { padding: 3px 9px; border: 1px solid var(--color-line); border-radius: 999px; color: var(--color-ink); font-size: .84rem; }
.event-people li.is-ours { border-color: color-mix(in srgb, var(--color-accent) 40%, transparent); background: var(--color-accent-soft); color: var(--color-accent-ink); font-weight: 650; }
.event-people small { font-weight: 400; opacity: .8; }
.event-card .card-link { margin-top: auto; padding-top: var(--space-5); }
.event-links { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: auto; }

/* Datasets ---------------------------------------------------------------- */
.page-lead { max-width: 68ch; margin-top: var(--space-4); color: var(--color-muted); font-size: 1.1rem; line-height: 1.6; }
.dataset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.dataset-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); transition: border-color var(--duration-base), box-shadow var(--duration-base); }
.dataset-card:hover { border-color: var(--color-strong-line); box-shadow: var(--shadow-md); }
.dataset-card-media { position: relative; display: block; aspect-ratio: 16 / 8; overflow: hidden; background: #fff; border-bottom: 1px solid var(--color-line); }
.dataset-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.dataset-card-body { display: flex; flex: 1; flex-direction: column; padding: clamp(20px, 2.2vw, 28px); }
.dataset-card-body .card-tags { margin-bottom: var(--space-3); }
.dataset-card-title { margin-bottom: var(--space-3); color: var(--color-title); font: 600 clamp(1.4rem, 2vw, 1.7rem)/1.2 var(--font-serif); letter-spacing: -.012em; }
.dataset-card-title a { color: inherit; text-decoration: none; }
.dataset-card-title a:hover { color: var(--color-link); }
.dataset-card-body > p { color: var(--color-muted); line-height: 1.6; }
.dataset-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: var(--space-4) 0 0; color: var(--color-ink); font-size: .9rem; list-style: none; }
.dataset-facts span { margin-right: 4px; color: var(--color-accent-ink); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dataset-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: auto; padding-top: var(--space-6); }
.btn-note { margin-left: 6px; font-weight: 500; opacity: .75; }
.dataset-about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.dataset-about .award { margin-top: 0; }
.dataset-links { display: grid; gap: 10px; list-style: none; }
.dataset-links a { font-weight: 650; }
.dataset-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.dataset-hero-copy > p { max-width: 64ch; margin-top: var(--space-4); color: var(--color-muted); font-size: 1.05rem; line-height: 1.7; }
.dataset-hero-copy .card-tags { margin-bottom: 0; }
.dataset-figure { margin: 0; overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-md); }
.dataset-figure img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.dataset-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-4); margin-top: clamp(32px, 4vw, 52px); padding-top: var(--space-6); border-top: 1px solid var(--color-line); }
.dataset-stat dt { color: var(--color-muted); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.dataset-stat dd { margin-top: 6px; color: var(--color-title); font: 600 clamp(1.25rem, 1.9vw, 1.6rem)/1.2 var(--font-serif); }
.table-wrap { overflow-x: auto; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.data-table th { padding: 12px 16px; border-bottom: 1px solid var(--color-line); background: var(--color-surface-alt); color: var(--color-muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 11px 16px; border-bottom: 1px solid var(--color-soft-line); color: var(--color-ink); vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--color-tint); }
.data-table code { font-family: var(--font-mono); font-size: .85em; color: var(--color-muted); }
.data-table td a { white-space: nowrap; }
.citation { margin: var(--space-6) 0 0; padding: var(--space-5) var(--space-6); border-left: 3px solid var(--color-gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--color-surface-alt); }
.citation p { color: var(--color-ink); line-height: 1.65; }
.citation-links { display: flex; gap: var(--space-4); margin-top: var(--space-3); font-weight: 650; }
.citation-data { margin-top: var(--space-3); }
.citation-copy { padding: 0; border: 0; background: none; color: var(--color-link); font: inherit; font-weight: 650; cursor: pointer; }
.citation-copy:hover { text-decoration: underline; }
.dataset-host { margin-top: var(--space-3); font-size: .9rem; color: var(--color-muted); }
/* GenAI Traffic Project: apps preview, prompt sets and the prompt explorer of a dataset page */
.two-col-center { align-items: center; }
/* GenAI in numbers: one band per app, with its growth chart (drawn when it comes into view, see js/datasets.js) */
.stat-bands { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.stat-band { position: relative; display: grid; grid-template-columns: 1fr; gap: var(--space-2); align-items: center;
  padding: 14px 18px; border: 1px solid var(--color-soft-line); border-radius: var(--radius-md); background: var(--color-surface-alt); }
.stat-head { display: grid; gap: 2px; }
.stat-head .stat-growth { margin: 0 0 0 auto; text-transform: none; letter-spacing: 0; }
.stat-band p + p { margin-top: 0; }
.stat-app { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; color: var(--color-title); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stat-big { color: var(--color-title); font: 600 2rem/1.05 var(--font-serif); letter-spacing: -.01em; }
.stat-big span { margin-left: 6px; color: var(--color-ink); font: 400 .9rem/1.3 var(--font-sans); letter-spacing: 0; }
.stat-date { color: var(--color-muted); font-size: .74rem; }
.stat-date a, .stat-extra a { color: inherit; }
.stat-growth { display: inline-block; margin-top: 6px; padding: 1px 7px; border-radius: 999px; background: var(--color-accent-soft); color: var(--color-accent-ink);
  font-size: .72rem; font-weight: 700; }
.stat-plot { min-width: 0; }
.stat-svg { display: block; width: 100%; height: auto; overflow: visible; }
.stat-base { stroke: var(--color-line); stroke-width: 1; }
.stat-svg { color: var(--color-accent); }
.stat-line { fill: none; stroke: var(--color-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.stat-dot { fill: var(--color-accent); stroke: var(--color-surface-alt); stroke-width: 2; transition: r var(--duration-fast); }
.stat-hit { fill: transparent; }
.stat-pt { outline: none; }
.stat-pt:hover .stat-dot, .stat-pt:focus-visible .stat-dot { r: 6; }
.stat-val { fill: var(--color-title); font: 700 11px var(--font-sans); }
.stat-val.is-start { fill: var(--color-muted); font-weight: 600; }
.stat-x { fill: var(--color-muted); font: 10px var(--font-sans); }
.stat-extra { margin-top: 4px; color: var(--color-ink); font-size: .78rem; line-height: 1.35; }
.stat-extra strong { color: var(--color-title); }
.stat-extra span { color: var(--color-muted); }
.stat-tip { position: absolute; z-index: 2; padding: 5px 9px; border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: var(--color-raised);
  box-shadow: var(--shadow-sm); color: var(--color-title); font-size: .8rem; white-space: nowrap; pointer-events: none; transform: translate(-50%, -130%); }
.stat-data { margin-top: var(--space-4); font-size: .86rem; }
.stat-data summary { color: var(--color-link); font-weight: 600; cursor: pointer; }
.stat-data .data-table { margin-top: var(--space-3); }
/* Carousel (js/datasets.js): the card as tall as the text next to it, one band at a time */
.two-col-center > .genai-stats { align-self: stretch; display: flex; flex-direction: column; }
.stat-bands.is-carousel { flex: 1; display: grid; align-content: center; }
/* one band at a time: no box inside the card */
.stat-bands.is-carousel .stat-band { padding: 4px 0; border: 0; background: none; }
.stat-bands.is-carousel .stat-dot { stroke: var(--color-surface); }
.stat-bands.is-carousel .stat-band { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-standard), visibility 0s .45s; }
.stat-bands.is-carousel .stat-band.is-active { opacity: 1; visibility: visible; transition: opacity .45s var(--ease-standard); }
.stat-controls { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: var(--space-3); }
/* dots on the same line as "Data and sources" */
.stat-foot { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; margin-top: var(--space-3); }
.stat-foot .stat-data { flex: 1 1 auto; margin-top: 0; }
.stat-foot .stat-data[open] { flex-basis: 100%; order: 2; }
.stat-foot .stat-controls { margin-top: 0; }
.stat-dots { display: flex; gap: 6px; }
.stat-play { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none;
  color: var(--color-muted); cursor: pointer; }
.stat-play:hover { color: var(--color-link); }
.stat-play svg { width: 10px; height: 10px; fill: currentColor; }
.stat-dot-btn { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--color-line); cursor: pointer; transition: background-color var(--duration-fast), width var(--duration-fast); }
.stat-dot-btn[aria-current="true"] { width: 22px; border-radius: 5px; background: var(--color-accent); }
@media (prefers-reduced-motion: reduce) { .stat-bands.is-carousel .stat-band { transition: none; } }
/* "Data and sources" opened in the left column, in place of the text (js/datasets.js) */
.why-text > p strong { color: var(--color-ink); }
.why-text > p { max-width: 62ch; margin-top: var(--space-4); color: var(--color-muted); font-size: 1.0625rem; line-height: 1.72; }
.why-text .section-title { margin-bottom: var(--space-6); }
.why-data[hidden], .why-text[hidden] { display: none; }
.why-data { animation: why-in .35s var(--ease-standard); }
.why-data .section-title { margin-bottom: var(--space-4); }
.why-data { display: flex; flex-direction: column; }
.why-data .table-wrap { flex: 1; min-height: 0; overflow: auto; }
.why-data .why-back { align-self: flex-start; }
.why-data td:nth-child(2), .why-data td:nth-child(4) { white-space: nowrap; }
.why-back { margin-top: var(--space-4); padding: 0; border: 0; background: none; color: var(--color-link); font: inherit; font-weight: 650; cursor: pointer; }
.why-back:hover { text-decoration: underline; }
.stat-data.is-swapped summary { color: var(--color-title); }
.stat-data.is-swapped summary::after { content: " ←"; }
@keyframes why-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .why-data { animation: none; } }
@media (prefers-reduced-motion: no-preference) {
  :root.js .stat-band .stat-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
  :root.js .stat-band :is(.stat-area, .stat-val, .stat-dot) { opacity: 0; }
  :root.js .stat-band.is-drawn .stat-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.3, .7, .2, 1); }
  :root.js .stat-band.is-drawn .stat-area { opacity: 1; transition: opacity .8s .5s; }
  :root.js .stat-band.is-drawn :is(.stat-val, .stat-dot) { opacity: 1; transition: opacity .3s calc(.25s + var(--i, 4) * .12s); }
}
.genai-apps-wide { margin-top: clamp(32px, 4vw, 52px); }
.app-list-row { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.app-list-row .app-row { grid-template-columns: auto minmax(0, 1fr); }
.app-list-row .app-tags { grid-column: 2; justify-content: flex-start; }
.apps-soon { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: var(--space-4); padding: 10px 14px;
  border: 1px dashed var(--color-line); border-radius: var(--radius-md); }
.apps-soon-label { color: var(--color-accent-ink); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.apps-soon ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.apps-soon li { display: inline-flex; gap: 8px; align-items: center; color: var(--color-title); font-size: .92rem; font-weight: 600; }
.genai-apps { padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.genai-apps .card-kicker { margin-bottom: var(--space-4); }
.genai-stats .card-kicker { margin-bottom: var(--space-3); }
.app-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.app-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; padding: 12px 14px;
  border: 1px solid var(--color-soft-line); border-radius: var(--radius-md); background: var(--color-surface-alt); transition: border-color var(--duration-fast); }
.app-row:hover { border-color: var(--color-strong-line); }
.app-logo { display: grid; flex: none; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 12px; box-shadow: 0 1px 3px rgba(6, 18, 32, .12); }
.app-logo img { display: block; width: 100%; height: 100%; }
.app-logo.is-initial { background: hsl(var(--hue) 45% 42%); color: #fff; font-size: 1.15rem; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.app-grid .app-row { grid-template-columns: auto minmax(0, 1fr); background: var(--color-surface); }
.app-grid .app-tags { grid-column: 2; justify-content: flex-start; }
.app-grid .app-name code { overflow: visible; white-space: normal; overflow-wrap: anywhere; user-select: all; }
.app-store { margin-top: 2px; font-size: .8rem; font-weight: 600; }
.app-wall { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.app-wall a { display: block; border-radius: 12px; transition: transform var(--duration-fast) var(--ease-standard); }
.app-wall a:hover { transform: translateY(-2px) scale(1.06); }
.app-wall li { display: grid; place-items: center; }
.app-wall .app-logo { width: 44px; height: 44px; border-radius: 11px; }
@media (max-width: 1180px) { .app-wall { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 900px) { .app-wall { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
@media (max-width: 700px) { .app-wall { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 520px) { .app-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.app-activities { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-soft-line); }
.app-activities-label { margin-right: 6px; color: var(--color-muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.app-name { display: grid; gap: 2px; min-width: 0; }
.app-name strong { color: var(--color-title); font-size: 1.02rem; }
.app-name code { overflow: hidden; color: var(--color-muted); font-family: var(--font-mono); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.app-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.genai-apps-source { margin-top: var(--space-4); color: var(--color-muted); font-size: .86rem; }
.two-col-flip { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.two-col-flip > :first-child { order: 2; }
.prompt-sets { display: grid; gap: var(--space-6); }
.prompt-set-head { display: flex; gap: var(--space-4); align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.prompt-set-head .card-kicker { margin-bottom: 0; }
.app-stack { display: flex; flex: none; }
.app-stack .app-logo + .app-logo { margin-left: -8px; }
.app-logo-sm { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 2px var(--color-surface); }
.app-logo-sm.is-initial { font-size: .8rem; }
.app-logo-xs { width: 24px; height: 24px; border-radius: 7px; box-shadow: none; }
.app-logo-xs.is-initial { font-size: .7rem; }
.prompt-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.prompt-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 1px; align-items: center; padding: 10px 12px;
  border: 1px solid var(--color-soft-line); border-radius: var(--radius-md); background: var(--color-surface-alt); transition: border-color var(--duration-fast); }
.prompt-tile:hover { border-color: var(--color-strong-line); }
.prompt-tile-num { display: grid; grid-row: span 2; place-items: center; width: 34px; height: 34px; border: 1px solid var(--color-line); border-radius: 10px;
  background: var(--color-surface); color: var(--color-title); font-family: var(--font-mono); font-size: .8rem; font-weight: 600; box-shadow: 0 1px 2px rgba(6, 18, 32, .06); }
.prompt-tile.is-multimodal .prompt-tile-num { border-color: color-mix(in srgb, var(--color-gold) 55%, transparent); color: var(--color-gold); }
.prompt-tile-label { color: var(--color-accent-ink); font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.prompt-tile.is-multimodal .prompt-tile-label { color: var(--color-gold); }
.prompt-tile-text { overflow: hidden; color: var(--color-ink); font-size: .86rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.prompt-tiles.is-steps { grid-template-columns: 1fr; }
.prompt-tiles.is-steps .prompt-tile { align-items: start; padding: 12px 14px; }
.prompt-tiles.is-steps .prompt-tile-text { white-space: normal; color: var(--color-muted); font-size: .9rem; line-height: 1.5; }
.prompt-tiles.is-steps .prompt-tile-label { font-size: .7rem; }
.dataset-thumb { display: block; width: 64px; height: 48px; overflow: hidden; border: 1px solid var(--color-line); border-radius: 10px; background: #fff; }
.dataset-thumb img { width: 100%; height: 100%; object-fit: cover; }
.app-name small { overflow: hidden; color: var(--color-muted); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.app-name a { color: inherit; text-decoration: none; }
.app-name a:hover { color: var(--color-link); }
.two-col .award { margin-top: var(--space-6); }
.prompt-set-foot { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; margin-top: var(--space-4); }
.prompt-set-foot .genai-apps-source { margin-top: 0; }
.prompts-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-start; max-width: 62ch; margin-top: var(--space-6); font-size: 1.0625rem; }
.prompts-cta .btn { font-size: .92rem; }
.prompt-label { display: block; color: var(--color-accent-ink); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.prompt-explorer { display: grid; gap: 10px; }
.prompt-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-3); }
.prompt-tabs button { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px 6px 6px; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface); color: var(--color-title);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.prompt-tabs button:hover { border-color: var(--color-accent); }
.prompt-tabs button[aria-selected="true"] { border-color: var(--color-title); background: var(--color-title); color: var(--color-surface); }
.prompt-item { border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface); }
.prompt-item[open] { box-shadow: var(--shadow-sm); }
.prompt-item summary { display: flex; gap: var(--space-4); align-items: baseline; padding: 14px 18px; cursor: pointer; list-style: none; }
.prompt-item summary::-webkit-details-marker { display: none; }
.prompt-item summary::after { content: "+"; margin-left: auto; color: var(--color-muted); font-size: 1.2rem; line-height: 1; }
.prompt-item[open] summary::after { content: "−"; }
.prompt-item summary:hover .prompt-text { color: var(--color-link); }
.prompt-num { color: var(--color-muted); font-family: var(--font-mono); font-size: .85rem; }
.prompt-head { display: grid; gap: 3px; min-width: 0; }
.prompt-text { color: var(--color-title); font-weight: 600; line-height: 1.45; }
.prompt-answers { display: grid; gap: var(--space-5); padding: 4px 18px 20px calc(18px + 2ch + var(--space-4)); }
.prompt-explorer[data-app] .prompt-answer:not(.is-shown) { display: none; }
.prompt-full { max-width: 80ch; color: var(--color-muted); font-size: .92rem; line-height: 1.6; }
.prompt-full .prompt-answer-app { display: block; }
.prompt-answer-app { margin-bottom: var(--space-2); color: var(--color-accent-ink); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.prompt-answer { max-width: 80ch; padding-left: var(--space-4); border-left: 2px solid var(--color-accent-soft); color: var(--color-ink); line-height: 1.65; }
.prompt-answer > * + * { margin-top: var(--space-3); }
.prompt-answer h3 { color: var(--color-title); font-size: 1rem; }
.prompt-answer ul, .prompt-answer ol { padding-left: 1.3em; }
.prompt-answer li + li { margin-top: 4px; }
.prompt-answer img { display: block; max-width: min(100%, 420px); height: auto; border-radius: var(--radius-sm); }
.prompt-answer pre { padding: 12px 14px; overflow-x: auto; border-radius: var(--radius-sm); background: var(--color-code); font-size: .86rem; line-height: 1.5; }
.prompt-answer :not(pre) > code { padding: .1em .35em; border-radius: 3px; background: var(--color-code); font-size: .9em; }
/* Pages of the software sub-sites (D-ITG, Hynetd, Plab): local menu and old content */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-6); }
.subnav a { padding: 5px 11px; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface); color: var(--color-title);
  font-size: .86rem; font-weight: 600; text-decoration: none; }
.subnav a:hover { border-color: var(--color-accent); background: var(--color-accent-soft); }
.subnav a[aria-current="page"] { border-color: var(--color-title); background: var(--color-title); color: var(--color-surface); }
.legacy-prose { max-width: 92ch; }
.legacy-prose img { max-width: 100%; height: auto; }
.legacy-prose pre { padding: 14px 16px; overflow-x: auto; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface-alt); font-size: .86rem; line-height: 1.5; white-space: pre; }
.legacy-table-wrap { overflow-x: auto; }
.legacy-table { border-collapse: collapse; font-size: .94rem; }
.legacy-table td, .legacy-table th { padding: 8px 12px; border: 1px solid var(--color-line); vertical-align: top; text-align: left; }
.legacy-table th { background: var(--color-surface-alt); color: var(--color-title); }

/* Topic pages (topics/*.html, scripts/build_topics.py) */
.topic-section-title { margin-bottom: var(--space-6); }
.topic-prose { max-width: 78ch; }
.topic-prose pre { padding: 14px 16px; overflow-x: auto; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface-alt); font-size: .88rem; line-height: 1.55; }
.topic-prose :not(pre) > code { padding: 1px 5px; border-radius: 4px; background: var(--color-tint); font-size: .9em; }
.topic-figure { margin-block: 1.6em; }
.topic-figure img { display: block; max-width: min(100%, 560px); max-height: 360px; width: auto; height: auto; border-radius: var(--radius-md); background: #fff; }
.topic-cover img { max-height: 420px; width: auto; }
.topic-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); list-style: none; }
.topic-tool { padding: 16px 18px; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.topic-tool strong { color: var(--color-title); font-size: 1.02rem; }
.topic-tool p { margin-top: 6px; color: var(--color-muted); font-size: .94rem; line-height: 1.55; }
.topic-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--space-4); list-style: none; }
.topic-person { display: flex; align-items: center; gap: 12px; }
.topic-person img { flex: none; width: 56px; height: 67px; object-fit: cover; object-position: center top; border-radius: var(--radius-md); background: var(--color-tint); }
.topic-person strong { display: block; color: var(--color-title); font-weight: 650; }
.topic-person strong a, .topic-others a { color: inherit; }
.topic-person small { display: block; color: var(--color-muted); font-size: .88rem; }
.topic-label { margin: var(--space-6) 0 var(--space-3); color: var(--color-muted); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.topic-others { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; }
.topic-others small { color: var(--color-muted); }
.topic-pubs { max-width: 110ch; }
.topic-links { display: grid; gap: 10px; list-style: none; }
.topic-links a { font-weight: 600; }
.topic-links small { margin-left: 6px; color: var(--color-muted); }
.topic-back { font-weight: 600; }
/* Download form */
.gate { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-top: 3px solid var(--color-deep); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-ink); box-shadow: var(--shadow-float); }
.gate::backdrop { background: rgba(10, 22, 38, .55); backdrop-filter: blur(2px); }
.gate-form { position: relative; padding: clamp(22px, 3vw, 34px); }
.gate-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: none; color: var(--color-muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.gate-close:hover { background: var(--color-tint); color: var(--color-title); }
.gate-title { margin-bottom: var(--space-2); padding-right: 32px; color: var(--color-title); font: 600 clamp(1.35rem, 2.2vw, 1.65rem)/1.25 var(--font-serif); }
.gate-intro { margin-bottom: var(--space-5); color: var(--color-muted); }
.gate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.gate-grid label { display: flex; flex-direction: column; gap: 6px; color: var(--color-title); font-size: .86rem; font-weight: 650; }
.gate-grid label small { color: var(--color-muted); font-weight: 400; }
.gate-wide { grid-column: 1 / -1; }
.gate-grid input { padding: 10px 12px; border: 1px solid var(--color-strong-line); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-ink); font: inherit; font-weight: 400; font-size: 1rem; }
.gate-grid input:focus { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-accent); }
.gate-check { display: flex; gap: 10px; align-items: flex-start; margin-top: var(--space-5); color: var(--color-muted); font-size: .88rem; line-height: 1.5; }
.gate-check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-deep); }
.gate-error { margin-top: var(--space-4); color: #b3261e; font-size: .9rem; font-weight: 600; }
:root[data-theme="dark"] .gate-error { color: #ffb4a8; }
.gate-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
@media (max-width: 900px) {
  .dataset-grid, .dataset-about, .dataset-hero { grid-template-columns: 1fr; }
  .prompt-answers { padding-left: 18px; }
  .app-row { grid-template-columns: auto minmax(0, 1fr); }
  .two-col-flip > :first-child { order: 0; }
  .app-tags { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .prompt-tiles { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr; }
  .gate-grid { grid-template-columns: 1fr; }
}

/* Footer ------------------------------------------------------------------ */
.site-footer { padding-block: clamp(46px, 5.5vw, 70px); background: var(--color-deepest); color: var(--color-deep-muted); border-top: 3px solid var(--color-accent); font-size: .94rem; line-height: 1.6; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(140px, .6fr) minmax(220px, .85fr); gap: clamp(32px, 5vw, 80px); }
.footer-brand { display: flex; align-items: flex-start; gap: var(--space-4); }
.footer-seal { width: 56px; height: 56px; }
.footer-name { color: #fff; font: 600 1.45rem/1.15 var(--font-serif); }
.footer-tagline { margin: 5px 0 14px; color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.footer-tagline .initial { color: #a8d2f1; }
.footer-heading { margin-bottom: var(--space-4); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-col li + li { margin-top: 6px; }
.site-footer a { color: #fff; text-decoration: underline; text-decoration-color: transparent; }
.site-footer a:hover { color: #fff; text-decoration-color: rgba(255, 255, 255, .6); }

/* Progressive motion ---------------------------------------------------- */
@keyframes rise-in {
  from { opacity: .72; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy { animation: rise-in 480ms var(--ease-standard) both; }
.hero-facts { animation: rise-in 540ms 80ms var(--ease-standard) both; }
.is-revealed { animation: rise-in 420ms var(--ease-standard) both; }
:root.theme-changing :is(body, .site-header, .hero, .hero-facts, .section-alt, .card, .area, .person, .collab, .pub-card, .page-hero, .openings, .news-year, .pub-tools, .pub-jump, .site-footer) {
  transition: background-color var(--duration-base), color var(--duration-base), border-color var(--duration-base);
}

/* Print: the scholarly content, without chrome --------------------------- */
@media print {
  .topbar, .site-header, .site-footer, .pub-tools, .pub-jump, .subnav, .hero-actions, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero, .hero, .section-alt { background: none; border: 0; }
  .page-hero::after, .hero::before, .hero::after { display: none; }
  .pub-year h2 { position: static; }
  a { color: inherit; }
}

/* Layout transitions ---------------------------------------------------- */
@media (max-width: 1380px) {
  .brand-name { font-size: 1.3rem; }
  .brand-seal { width: 44px; height: 44px; }
  .latest-pubs { gap: 14px; }
}
/* The full menu needs about 1340px; below that it collapses behind the menu button (js/site.js uses the same width). */
@media (max-width: 1340px) {
  :root { --header-h: 69px; }
  .header-inner { min-height: 68px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; order: 3; width: 42px; height: 42px;
    flex: none; border: 1px solid var(--color-line); border-radius: var(--radius-sm);
    background: var(--color-surface); color: var(--color-title); cursor: pointer;
    transition: background-color var(--duration-fast), border-color var(--duration-fast);
  }
  .nav-toggle:hover { background: var(--color-tint); border-color: var(--color-strong-line); }
  :root:not(.js) .nav-toggle { display: none; }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; position: relative; transition: transform var(--duration-fast), background-color var(--duration-fast); }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
  .theme-toggle { order: 2; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%; order: 4; display: block;
    max-height: 0; overflow: hidden; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    background: var(--color-surface); border-bottom: 1px solid var(--color-line); box-shadow: var(--shadow-float);
    transition: max-height 280ms var(--ease-standard), opacity var(--duration-fast), transform var(--duration-fast), visibility 0s linear 280ms;
  }
  .primary-nav.open, :root:not(.js) .primary-nav {
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
  }
  :root.js .primary-nav.open { box-shadow: var(--shadow-float), 0 0 0 100vmax rgba(6, 18, 32, .28); clip-path: inset(0 -100vmax -100vmax -100vmax); }
  :root:not(.js) .primary-nav { position: static; box-shadow: none; }
  :root:not(.js) .header-inner { flex-wrap: wrap; }
  .nav-list { display: block; width: min(100%, calc(var(--container) + 2 * var(--gutter))); padding: 8px var(--gutter) 24px; margin-inline: auto; }
  .nav-list > li { border-bottom: 1px solid var(--color-soft-line); }
  .nav-link { width: 100%; justify-content: space-between; min-height: 52px; padding: 14px 4px; border-radius: 0; font-size: 1.02rem; }
  .nav-link:hover { background: transparent; color: var(--color-link); }
  .has-dropdown.open > .dropdown-toggle { background: transparent; color: var(--color-link); }
  .nav-link[aria-current="page"]::before, .nav-link.is-current::before { left: -4px; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; border-radius: 0 2px 2px 0; }
  .nav-link[aria-current="page"], .nav-link.is-current { padding-left: 12px; }
  .dropdown, .dropdown-mega {
    position: static; display: block; width: 100%; min-width: 0; max-height: 0; padding: 0;
    overflow: hidden; border: 0; border-radius: 0; box-shadow: none; background: transparent;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-5px);
    transition: max-height 280ms var(--ease-standard), padding var(--duration-fast), opacity var(--duration-fast), transform var(--duration-fast), visibility 0s linear 280ms;
  }
  .has-dropdown.open > .dropdown, :root:not(.js) .has-dropdown > .dropdown {
    max-height: 1600px; padding: 2px 0 16px;
    opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s;
  }
  .has-dropdown.open > .dropdown-mega, :root:not(.js) .has-dropdown > .dropdown-mega { transform: none; }
  .dropdown::before { display: none; }
  .dropdown a { padding: 9px 12px; }
  .dropdown-heading { margin-inline: 12px; }
  .mega-grid { gap: 12px; }
  .mega-col + .mega-col { padding-left: 12px; }
}
@media (max-width: 1180px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 36px; }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-pubs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-inner, .highlights, .two-col, .news-layout { grid-template-columns: 1fr; }
  .rotator-dots { position: static; margin-top: var(--space-3); }
  .rotator-slide .card-link { margin-right: 0; }
  .hero-inner { padding-block: 56px 60px; }
  .hero-title { max-width: 18ch; }
  .hero-facts { max-width: 680px; }
  .highlights-side { grid-auto-rows: auto; }
  .latest-pubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-aside { position: static; }
  .footer-inner { grid-template-columns: 1.4fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .with-subnav { --prose-inset: 0px; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .subnav { position: static; padding: 0 0 16px; border-left: 0; border-bottom: 1px solid var(--color-line); }
  .subnav ul { display: flex; flex-wrap: wrap; gap: 2px 18px; }
  .subnav li a[aria-current="page"]::before { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 2px; }
  .pub-year h2 { position: static; }
}
@media (max-width: 700px) {
  :root { --section-pad: 52px; }
  .topbar-inner > span:nth-child(3), .topbar-sep { display: none; }
  .brand { gap: 10px; }
  .brand-seal { width: 40px; height: 40px; }
  .brand-name { font-size: 1.2rem; }
  .brand-tagline { font-size: .6rem; letter-spacing: .08em; }
  .theme-toggle { min-width: 42px; padding: 0; }
  .theme-toggle-label { display: none; }
  .mega-grid, .areas, .latest-pubs, .people-grid, .collab-grid, .footer-inner { grid-template-columns: 1fr; }
  .mega-grid { grid-auto-flow: row; }
  .mega-col + .mega-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--color-line); padding-top: 12px; }
  .hero-inner { padding-block: 44px 52px; gap: 36px; }
  .hero-title { font-size: clamp(2.45rem, 10.6vw, 4rem); }
  .hero-lead { font-size: 1.05rem; }
  .hero-facts { padding: 20px 22px 24px; column-gap: 20px; }
  .fact { min-height: 92px; }
  .fact dd { font-size: 1.85rem; }
  .card-title { font-size: 1.45rem; }
  .person { padding: 18px; }
  .person--principal { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 20px; }
  .person--principal .person-photo { width: 110px; height: 134px; }
  .news-year { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px 24px; }
  .news-entry { grid-template-columns: 90px minmax(0, 1fr); }
  .pub-year { grid-template-columns: 1fr; gap: 12px; padding-block: 26px 28px; }
  .pub-year h2 { font-size: 1.7rem; }
  .pub { font-size: .95rem; }
  .footer-brand { grid-column: 1; }
  .prose { font-size: 1.03rem; line-height: 1.68; }
  .prose p[style*="padding-left"] { padding-left: 0 !important; }
}
@media (max-width: 460px) {
  :root { --gutter: 18px; }
  .topbar { font-size: .78rem; }
  .header-inner { gap: 8px; }
  .brand { gap: 9px; }
  .brand-seal { width: 38px; height: 38px; }
  .brand-name { font-size: 1.08rem; }
  .brand-group { margin-left: 3px; padding-left: 7px; }
  .brand-tagline { margin-top: 4px; font-size: .56rem; letter-spacing: .05em; }
  .theme-toggle, .nav-toggle { width: 40px; height: 40px; min-width: 40px; }
  .hero-title { font-size: clamp(2.3rem, 11vw, 3.1rem); }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-facts { column-gap: 16px; }
  .fact dd { font-size: 1.6rem; }
  .page-title { font-size: clamp(2rem, 9.5vw, 2.5rem); }
  .person { flex-direction: row; gap: 14px; }
  .person-photo { width: 76px; height: 94px; }
  .person--principal { grid-template-columns: 1fr; }
  .person--principal .person-photo { width: 120px; height: 146px; }
  .news-entry { grid-template-columns: 1fr; gap: 4px; }
  .pub-tools { padding: 16px; }
  .pub-filter { flex: 1 1 auto; }
  .footer-brand { display: block; }
  .footer-seal { margin-bottom: 14px; }
}
@media (max-width: 420px) {
  .brand-tagline { display: none; }
}
@media (max-width: 359px) {
  .brand-group { display: none; }
  .fact dd { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fact dd.venues { -webkit-mask-image: none; mask-image: none; }
  .venues-track { width: auto; animation: none !important; }
  .venues-list { flex-wrap: wrap; }
  .venues-list[aria-hidden="true"] { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rotator-slide, .rotator-slide.is-active { transition-duration: 700ms, 0s !important; }   /* a cross-fade is not motion */
  .btn:hover, .pub-card:hover { transform: none; }
}
