/* Public site. Mobile first: base rules are the 390 px artboards, the
   min-width media queries add the desktop layout (1280 px artboards). */

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
/* One visible focus ring for everything that takes focus (WCAG 2.4.7, 2.4.11). */
:focus-visible { outline: var(--focus); outline-offset: 2px; }
/* The main area only takes focus from the skip link: no ring around the whole page. */
main:focus, main:focus-visible { outline: none; }
/* On the blue and dark bands the ring is amber (blue would vanish there). */
.masthead, .site-footer, .spotlight, .t-more, .command, .code-block { --focus: 3px solid var(--amber); }
::placeholder { color: var(--subtle); opacity: 1; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); }
code, pre, kbd { font-family: var(--font-mono); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--amber); color: var(--ink);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; outline: 3px solid var(--ink); outline-offset: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.eyebrow {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- Masthead: blue band with the logo bars, header and page title ---------- */

.masthead { position: relative; overflow: hidden; background: var(--blue); color: var(--white); }

.bars {
  position: absolute; right: -4px; bottom: 0; height: 74%;
  display: flex; gap: 10px; align-items: flex-end; pointer-events: none;
}
.bars span { width: 20px; background: rgba(255, 255, 255, .13); }
.bars .b1 { height: 70%; }
.bars .b2 { height: 52%; }
.bars .b3 { height: 64%; }
.bars .b4 { height: 88%; display: flex; flex-direction: column; gap: 8px; background: none; }
.bars .b4 i { height: 20px; background: var(--amber); }
.bars .b4 b { flex: 1; background: rgba(255, 255, 255, .13); }

@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes drift1 { to { transform: translateY(14%); } }
@keyframes drift2 { to { transform: translateY(30%); } }
@keyframes drift3 { to { transform: translateY(9%); } }
@keyframes drift4 { to { transform: translateY(22%); } }
.bars .b1 { animation: rise 1.3s cubic-bezier(.2, .8, .2, 1) .05s both, drift1 7s ease-in-out 1.4s infinite alternate; }
.bars .b2 { animation: rise 1.3s cubic-bezier(.2, .8, .2, 1) .2s both, drift2 9s ease-in-out 1.5s infinite alternate; }
.bars .b3 { animation: rise 1.3s cubic-bezier(.2, .8, .2, 1) .35s both, drift3 6s ease-in-out 1.65s infinite alternate; }
.bars .b4 { animation: rise 1.3s cubic-bezier(.2, .8, .2, 1) .5s both, drift4 8s ease-in-out 1.8s infinite alternate; }

.site-header {
  position: relative; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0 16px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand-mark {
  flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.brand-mark img { width: 30px; height: 30px; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; }

.menu-button {
  width: 44px; height: 44px; border: 0; border-radius: var(--radius);
  background: var(--amber); color: var(--ink);
  display: none; align-items: center; justify-content: center;
}
.menu-button .icon-close { display: none; }
.menu-button[aria-expanded="true"] .icon-open { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: block; }

/* The top bar's right end: the language switch, then the menu button. */
.header-tools { display: flex; align-items: center; gap: 6px; }

/* EN / IT. Plain text in the menu's white, the current language in amber.
   "bar" sits in the top bar on phones (touch targets of 44 px), "nav" in
   the main menu on wide screens, before Contact (see the 900 px rules). */
.lang-nav {
  display: flex; align-items: center; font-family: var(--font-display);
  font-size: 14px; font-weight: 700; letter-spacing: .08em;
}
.lang-nav a {
  display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px;
  padding: 0 6px; border-radius: var(--radius); color: var(--white); text-decoration: none;
}
.lang-nav a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 6px; }
.lang-nav a[aria-current] { color: var(--amber); }
.lang-nav .lang-sep { color: var(--faint); }
.lang-nav-nav { display: none; }

/* Without JavaScript the menu is always shown; with it, the button toggles it. */
.js .menu-button { display: flex; }
.js .main-nav:not(.open) { display: none; }

.main-nav {
  flex-basis: 100%; margin: 10px 0 6px; padding: 8px 18px 16px; background: var(--ink);
  display: flex; flex-direction: column; font-family: var(--font-display);
}
.main-nav > a, .main-nav .nav-group > a {
  display: block; padding: 12px 0; border-bottom: 1px solid #2C2747;
  font-size: 18px; font-weight: 600; color: var(--white); text-decoration: none;
}
.main-nav a[aria-current] { color: var(--amber); }
.main-nav .nav-group > a { border-bottom: 0; padding-bottom: 4px; }
.main-nav .nav-group > a .caret { display: none; }
.main-nav .submenu { display: flex; flex-direction: column; border-bottom: 1px solid #2C2747; }
.main-nav .submenu a { padding: 9px 0 9px 16px; color: #C9C3EE; text-decoration: none; }
.main-nav .submenu a::before { content: "— "; }
.main-nav > a.nav-contact { border-bottom: 0; }

.page-head { position: relative; padding-top: 18px; padding-bottom: 22px; }
.page-head .eyebrow { color: var(--amber); }
.page-head h1 {
  margin: 6px 0 6px; font-size: 34px; line-height: 1.08; font-weight: 700; letter-spacing: -.02em;
}
.page-head .lead { margin: 0; max-width: 300px; color: #E2DCFF; font-size: 15px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--blue); color: #E2DCFF; font-size: 14px; }
.site-footer .wrap { padding-top: 24px; padding-bottom: 28px; }
.site-footer .footer-name { font-family: var(--font-display); color: var(--white); font-weight: 700; font-size: 20px; }
.site-footer p { margin: 8px 0 0; }
.site-footer .address-sep { display: none; }
.site-footer .copyright { margin-top: 16px; font-size: 13px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }

/* ---------- Shared pieces ---------- */

.arrow { flex: none; transition: transform .25s ease; }
a:hover .arrow, button:hover .arrow { transform: translateX(6px); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px;
  border-top: 3px solid var(--ink); padding-top: 14px;
}
.section-head .title { display: flex; align-items: baseline; gap: 12px; }
.section-head h2 { margin: 0; font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.section-head .more { font-weight: 600; text-decoration: none; }

.chip {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 3px;
  background: var(--chip-bg, var(--lavender)); color: var(--chip-fg, var(--blue));
  border: 1.5px solid var(--chip-border, var(--chip-bg, var(--lavender)));
  font-size: 13px; font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap;
}
a.chip:hover { color: var(--chip-fg, var(--blue)); filter: brightness(.95); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius); border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; text-decoration: none;
}
.button-amber { background: var(--amber); color: var(--ink); }
.button-amber:hover { background: #F09A1A; color: var(--ink); }
.button-ink { background: var(--ink); color: var(--white); }
.button-ink:hover { background: #2C2747; color: var(--white); }
.button-outline-light { border-color: var(--white); color: var(--white); }
.button-outline-light:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.button-outline { border-color: var(--ink); color: var(--ink); background: var(--white); }
.button-outline:hover { background: var(--tint); color: var(--ink); }

/* Colours of the generated covers and marks, by topic preset (Datasets, Tools, home tiles). */

.tone-lavender, .tone-light { --v-bg: #E9E4FF; --v-bar: #CFC6FF; --v-bd: #E9E4FF; --m-bar: #CFC6FF; }
.tone-blue { --v-bg: #3D16CC; --v-bar: rgba(255, 255, 255, .18); --v-bd: #3D16CC; --m-bar: rgba(255, 255, 255, .22); }
.tone-amber { --v-bg: #FCAF3B; --v-bar: rgba(18, 15, 36, .14); --v-bd: #FCAF3B; --m-bar: rgba(18, 15, 36, .18); }
.tone-ink-amber, .tone-ink { --v-bg: #120F24; --v-bar: #3D16CC; --v-bd: #120F24; --m-bar: #3D16CC; }
.tone-outline { --v-bg: #FFFFFF; --v-bar: #E9E4FF; --v-bd: #3D16CC; --m-bar: #CFC6FF; }
.tone-teal { --v-bg: #0B6E66; --v-bar: rgba(255, 255, 255, .18); --v-bd: #0B6E66; --m-bar: rgba(255, 255, 255, .22); }
.tone-mint { --v-bg: #D5F3EA; --v-bar: rgba(11, 79, 69, .14); --v-bd: #D5F3EA; --m-bar: rgba(11, 79, 69, .18); }
.tone-green { --v-bg: #1F6B3A; --v-bar: rgba(255, 255, 255, .18); --v-bd: #1F6B3A; --m-bar: rgba(255, 255, 255, .22); }
.tone-coral { --v-bg: #C13E1B; --v-bar: rgba(255, 255, 255, .2); --v-bd: #C13E1B; --m-bar: rgba(255, 255, 255, .24); }
.tone-peach { --v-bg: #FFE2D3; --v-bar: rgba(138, 44, 13, .14); --v-bd: #FFE2D3; --m-bar: rgba(138, 44, 13, .18); }
.tone-rose { --v-bg: #FBE3EF; --v-bar: rgba(143, 26, 78, .12); --v-bd: #FBE3EF; --m-bar: rgba(143, 26, 78, .16); }
.tone-sky { --v-bg: #DCEBFF; --v-bar: rgba(13, 58, 140, .14); --v-bd: #DCEBFF; --m-bar: rgba(13, 58, 140, .18); }
.tone-blue-amber { --v-bg: #3D16CC; --v-bar: rgba(252, 175, 59, .28); --v-bd: #3D16CC; --m-bar: rgba(252, 175, 59, .32); }
.tone-ink-lavender { --v-bg: #120F24; --v-bar: rgba(201, 188, 255, .22); --v-bd: #120F24; --m-bar: rgba(201, 188, 255, .26); }
.tone-berry { --v-bg: #9B1B5A; --v-bar: rgba(255, 255, 255, .18); --v-bd: #9B1B5A; --m-bar: rgba(255, 255, 255, .22); }
.tone-plum { --v-bg: #4A1D6B; --v-bar: rgba(255, 255, 255, .18); --v-bd: #4A1D6B; --m-bar: rgba(255, 255, 255, .22); }
.tone-navy { --v-bg: #0F2A5C; --v-bar: rgba(255, 255, 255, .18); --v-bd: #0F2A5C; --m-bar: rgba(255, 255, 255, .22); }
.tone-ocean { --v-bg: #0B5A7A; --v-bar: rgba(255, 255, 255, .18); --v-bd: #0B5A7A; --m-bar: rgba(255, 255, 255, .22); }
.tone-aqua { --v-bg: #D3F2F7; --v-bar: rgba(10, 74, 92, .14); --v-bd: #D3F2F7; --m-bar: rgba(10, 74, 92, .18); }
.tone-lime { --v-bg: #EAF5C9; --v-bar: rgba(63, 82, 18, .14); --v-bd: #EAF5C9; --m-bar: rgba(63, 82, 18, .18); }
.tone-olive { --v-bg: #55600F; --v-bar: rgba(255, 255, 255, .18); --v-bd: #55600F; --m-bar: rgba(255, 255, 255, .22); }
.tone-sand { --v-bg: #FFF1C2; --v-bar: rgba(107, 74, 0, .14); --v-bd: #FFF1C2; --m-bar: rgba(107, 74, 0, .18); }
.tone-slate { --v-bg: #3A4255; --v-bar: rgba(255, 255, 255, .18); --v-bd: #3A4255; --m-bar: rgba(255, 255, 255, .22); }
.tone-stone { --v-bg: #ECEAE6; --v-bar: rgba(52, 48, 42, .14); --v-bd: #ECEAE6; --m-bar: rgba(52, 48, 42, .18); }
.tone-ink-mint { --v-bg: #120F24; --v-bar: rgba(127, 224, 196, .22); --v-bd: #120F24; --m-bar: rgba(127, 224, 196, .26); }
.tone-ink-coral { --v-bg: #120F24; --v-bar: rgba(255, 138, 102, .22); --v-bd: #120F24; --m-bar: rgba(255, 138, 102, .26); }

/* Three bars, the middle one with the amber cap, centred on the cover. */
.vbars {
  --bw: 18px; --gap: 9px; --sink: -10px; --cap-gap: 6px;
  position: absolute; left: 50%; bottom: 0; height: 100%; transform: translateX(-50%);
  display: flex; gap: var(--gap); align-items: flex-end;
}
.vbars > span { width: var(--bw); margin-bottom: var(--sink); background: var(--bar); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.vbars > span:nth-child(2) { display: flex; flex-direction: column; gap: var(--cap-gap); background: none; }
.vbars i { height: var(--bw); background: var(--amber); }
.vbars b { flex: 1; background: var(--bar); }

.desktop-only { display: none !important; }

/* Long lists of links in plain text (bios, descriptions). */
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { line-height: 1.2; letter-spacing: -.01em; }

/* Sticky in-page navigation under the masthead (People groups, …):
   pill chips that scroll sideways on mobile, a plain row on desktop. */
.anchor-nav { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--line); }
.anchor-nav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.anchor-nav a {
  flex: none; display: flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--field); border-radius: 999px; color: var(--ink);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.anchor-nav a:hover { background: var(--tint); color: var(--ink); }

/* Section heading used in long lists (People groups). */
.group-head { padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.group-head h2 { margin: 0; font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }

/* ---------- People ---------- */

.people { padding-bottom: 48px; }
.people-group { padding-top: 40px; }
.people-grid, .alumni { margin: 0; padding: 0; list-style: none; }

.person-card { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.person-card .portrait-link { flex: none; display: block; text-decoration: none; }
.person-card h3 { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 700; }
.person-card h3 a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
.person-card h3 a:hover { color: var(--blue); }
.person-card .role { font-size: 14px; color: var(--muted); }

.alumni li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.alumni .name { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); }
.alumni .now { color: var(--subtle); }

/* Generated portrait: initials and three bars in the group colours. The
   middle bar has the amber cap of the logo. Sizes per use below. */
.portrait {
  --p-size: 10px; --p-gap: 5px; --p-sink: -6px;
  position: relative; display: block; overflow: hidden; background: var(--p-bg); color: var(--p-ink);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .initials {
  position: absolute; left: 9px; top: 4px; font-family: var(--font-display);
  font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.6;
}
.portrait .pbars { position: absolute; right: 8px; bottom: 0; height: 100%; display: flex; gap: var(--p-gap); align-items: flex-end; }
.portrait .pbars > span { width: var(--p-size); margin-bottom: var(--p-sink); background: var(--p-bar); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.portrait .pbars .b2 { display: flex; flex-direction: column; gap: calc(var(--p-gap) - 1px); background: none; }
.portrait .pbars .b2 i { height: var(--p-size); background: var(--amber); }
.portrait .pbars .b2 b { flex: 1; background: var(--p-bar); }
.portrait-row { width: 76px; height: 92px; }
.portrait-hero { flex: none; width: 112px; height: 140px; --p-size: 14px; --p-gap: 7px; --p-sink: -8px; }
.portrait-hero .initials { left: 11px; font-size: 34px; }
.portrait-hero .pbars { right: 11px; }
.portrait-hero .pbars .b1 { animation: rise 1.3s cubic-bezier(.2, .8, .2, 1) .05s both; }
.portrait-hero .pbars .b2 { animation: rise 1.3s cubic-bezier(.2, .8, .2, 1) .2s both; }
.portrait-hero .pbars .b3 { animation: rise 1.3s cubic-bezier(.2, .8, .2, 1) .35s both; }
/* On phones the card portrait is the small row portrait. */
.portrait-card { width: 76px; height: 92px; }

.person-head { position: relative; padding-top: 12px; padding-bottom: 22px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #D6D1F2; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 40px; color: var(--white); font-weight: 500; text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); }
.person-title { display: flex; align-items: flex-end; gap: 16px; margin-top: 8px; }
.person-title > div { min-width: 0; }
.person-head .eyebrow { color: var(--amber); font-weight: 700; }
.person-head h1 { margin: 4px 0 0; font-size: 32px; line-height: 1.04; font-weight: 700; letter-spacing: -.02em; }
.person-head .affiliation { margin: 16px 0 0; color: #E2DCFF; font-size: 14px; }
.person-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.person-actions .button { min-height: 50px; }

.person { display: flex; flex-wrap: wrap; gap: 36px; padding-top: 32px; padding-bottom: 48px; }
.person-main { flex: 999 1 600px; min-width: 0; }
/* The biography is a div: sections keep their distance from it too. */
.person-main > * + section { margin-top: 36px; }
.person-about { font-size: 16px; }
.person-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.person-section-head h2 { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.person-section-head a { font-size: 14px; font-weight: 600; text-decoration: none; }

.pub-list { margin: 0; padding: 0; list-style: none; }
/* The title is the link, stretched over the whole row; the authors sit above it so that their own links work. */
.pub-row { position: relative; display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); transition: background .2s ease; }
.pub-row-linked:hover { background: var(--tint); }
.pub-row .venue { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--blue); }
.pub-row-main { display: block; min-width: 0; }
.pub-row .title { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.pub-row .title::after { content: ""; position: absolute; inset: 0; }
.pub-row .title:focus-visible { outline: none; }
.pub-row .title:focus-visible::after { outline: var(--focus); outline-offset: -2px; }
.pub-row .author-list { position: relative; margin-top: 4px; font-size: 14px; color: var(--muted); }

/* A publication's authors (publications, people, resources, home): the lab's in bold, the list shortened when long. */
.author-list { overflow-wrap: anywhere; }
.author-list .lab-author { font-weight: 600; color: var(--ink); }
/* A thin underline tells a linked name from a member without a public page. */
.author-list a.lab-author { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.author-list a.lab-author:hover { color: var(--blue); }
.author-more { display: inline; }
.author-more summary { display: inline; list-style: none; cursor: pointer; color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.author-more summary::-webkit-details-marker { display: none; }
.author-more summary:hover { color: var(--ink); }
.author-more .when-open, .author-more[open] .when-closed { display: none; }
.author-more[open] .when-open { display: inline; }
.author-full { margin-top: 2px; }
/* Open, the whole list replaces the short one. */
.author-list:has(.author-more[open]) .author-short { display: none; }

.person-aside { flex: 1 1 300px; min-width: 0; }
.box-label { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.profiles-box { padding: 6px 0; background: var(--tint); }
.profiles-box .box-label { padding: 12px 18px 4px; }
.profiles-box .office { padding: 0 18px 8px; font-size: 14px; color: var(--muted); }
.profiles-box a {
  display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 18px;
  border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; text-decoration: none;
}
.profiles-box a span { color: var(--blue); }
.profiles-box a:hover { background: var(--lavender); color: var(--ink); }
.contact-box { padding: 24px; border: 1.5px solid var(--ink); }
.contact-box .box-label { color: var(--muted); }
.contact-box .button { display: flex; width: 100%; min-height: 52px; margin-top: 10px; }
.contact-box .button:first-of-type { margin-top: 14px; }
.contact-box dl { margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.contact-box dt { font-size: 13px; color: var(--muted); }
.contact-box dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  body { font-size: 16px; }
  .wrap { padding-left: 32px; padding-right: 32px; }

  .bars { right: 5%; height: 78%; gap: 22px; }
  .bars span { width: 48px; }
  .bars .b1 { height: 72%; }
  .bars .b2 { height: 50%; }
  .bars .b3 { height: 64%; }
  .bars .b4 { height: 92%; gap: 18px; }
  .bars .b4 i { height: 48px; }

  .site-header { padding-top: 18px; padding-bottom: 18px; }
  .brand { gap: 12px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-mark img { width: 36px; height: 36px; }
  .brand-name { font-size: 21px; }

  .js .menu-button { display: none; }
  .header-tools { display: none; }
  .lang-nav-nav { display: flex; margin-left: 4px; font-size: 15px; }
  .lang-nav-nav a { min-width: 0; min-height: 0; padding: 10px 7px; }
  .main-nav, .js .main-nav:not(.open) {
    display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px;
    flex-basis: auto; margin: 0; padding: 0; background: none;
  }
  .main-nav > a, .main-nav .nav-group > a {
    padding: 10px 14px; border: 0; font-size: 16px; font-weight: 600;
  }
  .main-nav .nav-group { position: relative; z-index: 10; }
  .main-nav .nav-group > a .caret { display: inline; }
  .main-nav .submenu {
    display: none; position: absolute; left: 0; top: 100%; min-width: 210px; padding: 8px;
    border: 0; background: var(--ink); box-shadow: 0 12px 28px rgba(18, 15, 36, .28);
  }
  .main-nav .nav-group:hover .submenu, .main-nav .nav-group:focus-within .submenu { display: block; }
  /* Escape hides it again while the pointer or focus is still there (WCAG 1.4.13). */
  .main-nav .nav-group.dismissed .submenu { display: none; }
  .main-nav .submenu a { display: block; padding: 10px 12px; color: var(--white); }
  .main-nav .submenu a::before { content: none; }
  .main-nav .submenu a:hover { background: #2C2747; }
  .main-nav > a.nav-contact {
    margin-left: 8px; padding: 9px 18px; border-radius: var(--radius);
    background: var(--amber); color: var(--ink);
  }
  .main-nav > a.nav-contact[aria-current] { box-shadow: inset 0 0 0 2px var(--ink); }

  .page-head { padding-top: 28px; padding-bottom: 36px; }
  .page-head .eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; }
  .page-head h1 { margin: 6px 0 8px; font-size: 56px; line-height: 1.04; letter-spacing: -.03em; }
  .page-head .lead { max-width: 580px; font-size: 18px; }

  .site-footer { font-size: 15px; }
  .site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
  .site-footer .footer-name { font-size: 22px; }
  .site-footer p { margin-top: 6px; }
  .site-footer p br { display: none; }
  .site-footer .address-sep { display: inline; }
  .site-footer .copyright { margin-top: 0; align-self: flex-end; }

  .section-head { padding-top: 18px; }
  .section-head h2 { font-size: 36px; }

  .button { min-height: 54px; padding: 0 24px; gap: 14px; font-size: 16px; }

  .desktop-only { display: revert !important; }
  .mobile-only { display: none !important; }

  .anchor-nav .wrap { gap: 4px; padding-top: 0; padding-bottom: 0; }
  .anchor-nav a { min-height: 56px; border: 0; border-radius: 0; font-family: var(--font-display); font-size: 15px; }

  .group-head { padding-bottom: 14px; }
  .group-head h2 { font-size: 34px; }

  .people { padding-bottom: 88px; }
  .people-group { padding-top: 64px; }
  .people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 36px 24px; margin-top: 28px; }
  .person-card { display: block; padding: 0; border: 0; }
  .person-card h3 { margin-top: 16px; font-size: 21px; }
  .person-card .role { font-size: 15px; }
  .portrait-card { width: auto; height: auto; aspect-ratio: 4 / 5; --p-size: 26px; --p-gap: 12px; --p-sink: -16px; }
  .portrait-card .initials { left: 20px; top: 14px; font-size: 56px; }
  .portrait-card .pbars { right: 22px; }
  .person-card:hover .pbars > span { transform: translateY(-14px); }
  .person-card:hover .pbars .b2 { transform: translateY(-24px); }

  .alumni li {
    display: grid; grid-template-columns: 2fr 1.4fr 2fr; align-items: center; gap: 24px;
    min-height: 64px; padding: 0 12px; font-size: 15px; transition: background .2s ease;
  }
  .alumni li:hover { background: var(--tint); }
  .alumni .name { font-size: 19px; }
  .alumni .sep { display: none; }

  .person-head { padding-top: 16px; padding-bottom: 36px; }
  .breadcrumb a { min-height: 0; }
  .person-title { flex-wrap: wrap; gap: 40px; margin-top: 24px; }
  .person-title > div { flex: 1 1 420px; }
  .portrait-hero { width: 216px; height: 270px; --p-size: 26px; --p-gap: 12px; --p-sink: -14px; }
  .portrait-hero .initials { left: 18px; top: 10px; font-size: 60px; }
  .portrait-hero .pbars { right: 20px; }
  .person-head .eyebrow { font-size: 14px; letter-spacing: .12em; }
  .person-head h1 { margin: 8px 0; font-size: 56px; line-height: 1.02; letter-spacing: -.03em; }
  .person-head .affiliation { margin: 0; font-size: 17px; }

  .person { gap: 56px; padding-top: 56px; padding-bottom: 80px; }
  .person-main > * + section { margin-top: 56px; }
  .person-section-head h2 { font-size: 28px; }
  .person-about { max-width: 680px; font-size: 18px; }
  .person-section-head { gap: 16px; padding-bottom: 12px; }
  .person-section-head a { font-size: 15px; }
  .pub-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; padding: 18px 12px; }
  .pub-row .venue { font-size: 14px; }
  .pub-row .title { margin-top: 0; font-size: 19px; }
  .pub-row .author-list { font-size: 15px; }
  .person-aside > * + * { margin-top: 20px; }
  .person-aside { position: sticky; top: 24px; align-self: flex-start; }
  .profiles-box { padding: 8px 0; }
  .profiles-box .box-label { padding: 12px 24px 6px; }
  .profiles-box a { min-height: 46px; padding: 0 24px; border-top: 0; }
}

/* Seven menu items (with Research) would wrap under the logo on the narrowest
   desktop widths: from 900 to 1099 px, where the page is not zoomed out yet,
   the links are a little tighter. */
@media (min-width: 900px) and (max-width: 1099px) {
  .main-nav { gap: 2px; }
  .main-nav > a, .main-nav .nav-group > a { padding: 10px 9px; font-size: 15px; }
  .lang-nav-nav { margin-left: 0; }
  .main-nav > a.nav-contact { margin-left: 4px; padding: 9px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Panel preview of unpublished changes */
.preview-banner {
  position: sticky; top: 0; z-index: 50; padding: 10px 16px; text-align: center;
  background: var(--amber); color: var(--ink); font-size: 15px;
}

/* Pause animations (WCAG 2.2.2): the footer button sets html.motion-paused. */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; }
.pause-motion {
  display: block; min-height: 32px; margin-top: 6px; padding: 0; border: 0; background: none;
  color: var(--white); font-size: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.pause-motion:hover { color: var(--amber); }
.pause-motion[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .pause-motion { display: none !important; } }
@media (min-width: 900px) { .pause-motion { margin-left: auto; text-align: right; } }

/* "Sign in", only in the footer of visitors from the lab's network (pages/context_processors.py).
   Quiet, like the pause button: a plain underlined line with a comfortable touch target. */
.site-footer .footer-signin {
  display: flex; align-items: center; width: fit-content; min-height: 32px; margin-top: 6px;
  color: #E2DCFF; text-decoration: underline; text-underline-offset: 3px;
}
.site-footer .footer-signin:hover { color: var(--amber); }
@media (min-width: 900px) { .site-footer .footer-signin { margin-left: auto; } }
