/* MIT PSAS site styles
   Sections: tokens, base, header/nav, page layout, components, home, specific pages,
   generated pages (presentations, publications, program), footer, print. */

/* ---------- Tokens ---------- */
:root {
  --red: #750014;
  --red-dark: #57000f;
  --red-tint: #f8eef0;
  --ink: #111316;
  --text: #3b4048;
  --muted: #5d636d;
  --line: #e2e5ea;
  --gray: #f2f4f8;
  --dark: #212326;
  --dark-text: #b8bcc4;
  --radius: 6px;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 84px;
  --font: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 68px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--red); outline-offset: 2px;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0; font-weight: 600; }
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.65rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
li::marker { color: var(--red); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
code { font-size: 0.92em; background: var(--gray); padding: 0.1em 0.35em; border-radius: 4px; }
table { border-collapse: collapse; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1440px; margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; flex-direction: column; gap: 4px; color: var(--muted); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mit { display: inline-flex; align-items: center; gap: 7px; }
.mit-logo { width: 47px; height: 25px; fill: var(--red); flex: none; }
.brand__inst { font-size: 9.5px; line-height: 1.05; font-weight: 700; color: var(--red); letter-spacing: -0.01em; }
.brand__name { font-size: 13px; line-height: 1.3; color: var(--muted); }
.brand--light .mit-logo { fill: #fff; }
.brand--light .brand__inst { color: #fff; }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav__item { position: relative; margin: 0; display: flex; align-items: center; }
.nav__link {
  display: block; padding: 28px 12px 26px;
  color: var(--ink); font-size: 15px; font-weight: 500;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--red); text-decoration: none; }
.nav__item.is-active > .nav__link { color: var(--red); border-bottom-color: var(--red); }
.nav__toggle { display: none; }
.nav__sub {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 28px rgba(17, 19, 22, 0.1);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.nav__item:last-child .nav__sub, .nav__item:nth-last-child(2) .nav__sub { left: auto; right: 0; }
.nav__sub li { margin: 0; }
.nav__sub a { display: block; padding: 7px 18px; color: var(--text); font-size: 14.5px; line-height: 1.4; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--gray); color: var(--red); text-decoration: none; }
@media (min-width: 1025px) {
  .has-sub:hover > .nav__sub, .has-sub:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
}

.menu-btn {
  display: none; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 12px; font: 500 15px var(--font); color: var(--ink); cursor: pointer;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s;
}
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(17, 19, 22, 0.12);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__item:last-child { border-bottom: 0; }
  .nav__link { flex: 1; padding: 14px var(--gutter); border-bottom: 0; font-size: 16px; }
  .nav__item.is-active > .nav__link { border-bottom: 0; box-shadow: inset 3px 0 0 var(--red); }
  .nav__toggle {
    display: flex; align-items: center; justify-content: center;
    width: 52px; align-self: stretch; background: none; border: 0; border-left: 1px solid var(--line);
    color: var(--ink); cursor: pointer;
  }
  .nav__toggle svg { width: 14px; height: 14px; transition: transform 0.2s; }
  .nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav__sub {
    position: static; display: none; width: 100%; min-width: 0;
    opacity: 1; visibility: visible; transform: none;
    border: 0; border-radius: 0; box-shadow: none; background: var(--gray); padding: 6px 0;
  }
  .nav__sub.is-open { display: block; }
  .nav__sub a { padding: 9px calc(var(--gutter) + 14px); font-size: 15px; }
}
@media (max-width: 420px) {
  .brand__name { font-size: 11.5px; max-width: 220px; }
  .menu-btn__text { display: none; }
}

/* ---------- Page layout ---------- */
.page-head { padding: clamp(48px, 6vw, 96px) 0 clamp(20px, 2.5vw, 36px); }
.page-head h1 { max-width: 900px; }
.page-head .lede { margin: 1rem 0 0; max-width: 760px; font-size: 1.12rem; color: var(--muted); }

.page-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
  padding-bottom: clamp(56px, 6vw, 88px);
}
.page-body--wide { display: block; }
.content > *:first-child { margin-top: 0; }
.content h2 { margin: 2.6rem 0 0.8rem; }
.content h3 { margin: 1.9rem 0 0.6rem; }
.content h4 { margin: 1.4rem 0 0.4rem; }
.content h2 + h3 { margin-top: 1rem; }
.content img { border-radius: 4px; }

.section-nav {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--gray); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; font-size: 14.5px;
}
.section-nav > summary { display: none; }
.section-nav__label {
  margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid #d6dae1;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red);
}
.section-nav ul { list-style: none; margin: 0; padding: 0; }
.section-nav li { margin: 0; }
.section-nav a { display: block; padding: 5px 0; line-height: 1.35; }
.section-nav li.is-open > a { color: var(--ink); font-weight: 600; }
.section-nav ul ul { padding: 2px 0 6px 14px; }
.section-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; position: relative; }
.section-nav ul ul a[aria-current="page"]::before {
  content: ""; position: absolute; left: -14px; top: 6px; bottom: 6px; width: 3px; background: var(--red); border-radius: 2px;
}

@media (max-width: 960px) {
  .page-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .section-nav { position: static; order: -1; margin-bottom: 28px; padding: 0; }
  .section-nav > summary {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px; cursor: pointer; list-style: none;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red);
  }
  .section-nav > summary::-webkit-details-marker { display: none; }
  .section-nav > summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--ink); }
  .section-nav[open] > summary::after { content: "\2212"; }
  .section-nav nav { padding: 0 18px 14px; }
  .section-nav__label { display: none; }
}

/* ---------- Components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 4px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); border-color: #d3d7de; }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--gray); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.card--gray { background: var(--gray); }
.card > *:last-child { margin-bottom: 0; }
.card h2, .card h3 { margin-top: 0; }

.link-list { list-style: none; padding: 0; }
.link-list li { margin: 0 0 0.45em; }
.link-arrow::after { content: " \203A"; }

.callout {
  border-left: 3px solid var(--red); background: var(--red-tint);
  padding: 14px 18px; margin: 1.4rem 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.callout > *:last-child { margin-bottom: 0; }
.note { font-size: 0.92rem; color: var(--muted); }

.toc {
  background: var(--gray); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 2rem;
}
.toc p { margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.toc ul { columns: 2; column-gap: 32px; margin: 0; }
.toc li { break-inside: avoid; }
@media (max-width: 640px) { .toc ul { columns: 1; } }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); } }

/* Pills used for slides and video links */
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 999px; border: 1px solid #cfd3da;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  line-height: 1.5;
}
.pill:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.pill--video { background: var(--red); border-color: var(--red); color: #fff; }
.pill--video:hover { background: var(--red-dark); color: #fff; }
.pill--video::before { content: ""; border-left: 6px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }

.resource-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.resource-list > li { padding: 12px 0; margin: 0; border-bottom: 1px solid var(--line); }
.resource-list > li:first-child { border-top: 1px solid var(--line); }
.resource-list__title { color: var(--ink); }
.resource-list__by { color: var(--muted); }

/* Collapsible blocks (FAQ, outlines) */
details.fold {
  border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; background: #fff;
}
details.fold > summary {
  cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; position: relative;
  font-weight: 600; color: var(--ink); line-height: 1.4;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform 0.2s;
}
details.fold[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
details.fold > summary:hover { color: var(--red); }
details.fold > .fold__body { padding: 0 18px 16px; }
details.fold > .fold__body > *:last-child { margin-bottom: 0; }
details.fold--plain { border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 0; }
details.fold--plain > summary { padding-left: 0; }
details.fold--plain > .fold__body { padding-left: 0; }
.fold-controls { display: flex; gap: 16px; margin: 0 0 14px; font-size: 0.9rem; }
.fold-controls button { background: none; border: 0; padding: 0; font: inherit; color: var(--red); cursor: pointer; }
.fold-controls button:hover { text-decoration: underline; }

.content .h-sm, .h-sm { font-size: 1.2rem; margin-top: 0; margin-bottom: 0.6rem; }
.h-label { margin: 1rem 0 0.4rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.resource-list h3 { margin: 0 0 0.25rem; font-size: 1.08rem; }
.resource-list .note { margin: 0 0 0.4rem; }
.resource-list p:last-child { margin-bottom: 0; }
.book { padding-top: 0.4rem; }
.book + .book { border-top: 1px solid var(--line); margin-top: 2rem; }
.stat-row { margin: 1.5rem 0 2rem; }
.stat { margin: 0; font-size: 2.2rem; font-weight: 700; color: var(--red); line-height: 1.1; }
.stat-label { margin: 4px 0 0; font-size: 0.92rem; color: var(--muted); }
.dl-count { color: var(--muted); }
.dl-count__n { font-weight: 600; color: var(--ink); }
blockquote.callout { margin-left: 0; margin-right: 0; font-style: italic; }
.alt-reg { margin-top: 1rem; }

/* Getting started: numbered path of steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 2rem; }
.step {
  counter-increment: step; position: relative; margin: 0; padding: 0 0 26px 60px;
}
.step::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; font-weight: 700; font-size: 1.05rem;
}
.step::after {
  content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: var(--line);
}
.step:last-child::after { display: none; }
.step__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 6px; padding-top: 6px; }
.content .step__title { font-size: 1.15rem; margin: 0; }
.step__effort {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.step p { margin-bottom: 0.5rem; }
.step p:last-child { margin-bottom: 0; }
.start-box { margin: 0 0 2rem; }
.start-box ol { margin: 0.4rem 0 0.8rem; }

/* Outline lists inside handbooks page */
.outline { font-size: 0.95rem; }
.outline ul, .outline ol { margin: 0.3em 0 0.5em; }
.outline li { margin-bottom: 0.2em; }

/* Data tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; font-size: 0.95rem; }
.data-table th, .data-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--gray); color: var(--ink); font-weight: 600; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .data-table--stack thead { display: none; }
  .data-table--stack tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .data-table--stack td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; }
  .data-table--stack td::before { content: attr(data-label); font-weight: 600; color: var(--ink); }
  .data-table--stack td.num { text-align: right; }
}

/* Figures */
figure { margin: 1.5rem 0; }
figure img { display: block; border: 1px solid var(--line); border-radius: var(--radius); }
figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }

/* Workshop summary panel */
.ws-box {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px;
  background: var(--gray); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin: 0 0 2.4rem;
}
.ws-box .eyebrow { margin-bottom: 0.6rem; }
.ws-box__dates { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.ws-box__dates li { margin-bottom: 0.3em; }
.ws-box__dates strong { color: var(--ink); }
.ws-box__label { margin: 0 0 0.5rem; font-weight: 600; color: var(--ink); }
.ws-box__links ul { list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.ws-box__links li { margin-bottom: 0.3em; }
@media (max-width: 700px) { .ws-box { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

/* People */
.person { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.person:first-of-type { border-top: 0; padding-top: 4px; }
.person__photo img { width: 150px; height: 180px; object-fit: cover; border-radius: var(--radius); background: var(--gray); display: block; }
.person__photo--none { width: 150px; height: 180px; border-radius: var(--radius); background: var(--gray); display: flex; align-items: center; justify-content: center; color: #9aa0a9; font-size: 2rem; font-weight: 600; }
.person h3 { margin: 0 0 2px; }
.person__role { margin: 0 0 10px; color: var(--muted); font-size: 0.95rem; }
.person p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  /* Photo and name side by side, biography full width underneath */
  .person { grid-template-columns: 84px minmax(0, 1fr); gap: 4px 16px; align-items: start; }
  .person > div:last-child { display: contents; }
  .person__photo { grid-row: span 2; }
  .person__photo img, .person__photo--none { width: 84px; height: 100px; }
  .person h3, .person__role { grid-column: 2; }
  .person p:not(.person__role) { grid-column: 1 / -1; margin-top: 10px; margin-bottom: 0; }
}
/* Single-person bio page: photo floats so the intro wraps under it */
.person.person--wrap { display: block; padding-bottom: 0; }
.person.person--wrap > div:last-child { display: block; }
.person--wrap .person__photo { float: left; margin: 4px 24px 8px 0; }
.person--wrap::after { content: ""; display: block; clear: both; }
.person--wrap p:not(.person__role) { margin: 0 0 1em; }
.person--wrap p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .person--wrap .person__photo { margin: 4px 16px 8px 0; } }
.people-compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
@media (max-width: 760px) { .people-compact { grid-template-columns: minmax(0, 1fr); } }

/* Multi-column lists (participation page) */
.columns { columns: 3 200px; column-gap: 28px; font-size: 0.92rem; list-style: none; padding: 0; }
.columns li { break-inside: avoid; margin: 0 0 0.25em; }

/* News */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-item { padding: 20px 0; margin: 0; border-top: 1px solid var(--line); }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-item h3 { margin: 0 0 4px; }
.news-item time { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.news-item p:last-child { margin-bottom: 0; }

/* Tools */
.tool { padding: 18px 0; border-top: 1px solid var(--line); }
.tool h3 { margin: 0 0 6px; }
.tool dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 0.95rem; }
.tool dt { color: var(--muted); }
.tool dd { margin: 0; }
@media (max-width: 560px) { .tool dl { grid-template-columns: minmax(0, 1fr); } .tool dt { font-weight: 600; color: var(--ink); margin-top: 6px; } }

/* Forms embedded from Google */
.embed-form { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* ---------- Red call-to-action band ---------- */
.cta { background: var(--red); color: #fff; padding: clamp(40px, 5vw, 64px) 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); margin: 0 0 0.5rem; }
.cta p { margin: 0; color: #f3dfe2; font-size: 1.05rem; }
@media (max-width: 760px) { .cta__inner { flex-direction: column; align-items: flex-start; gap: 20px; } }

/* ---------- Home page ---------- */
.hero { padding: clamp(56px, 8vw, 120px) 0 clamp(48px, 6vw, 96px); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3rem); max-width: 720px; }
.hero__lede { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 1.2rem 0 0; }
.hero__art { justify-self: end; width: 100%; max-width: 460px; margin: 0; }
.hero__art img { display: block; width: 100%; border: 0; }
.hero__art figcaption { margin-top: 10px; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.hero__art figcaption a { font-weight: 500; white-space: nowrap; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } .hero__art { justify-self: start; max-width: 380px; } }

.quick-links { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.quick-links__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 20px; padding-bottom: 20px; }
.quick-links__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.quick-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.quick-links li { margin: 0; }
/* Each popular page is its own button, so the row doesn't read as one sentence */
.quick-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid #d6dae1; border-radius: var(--radius);
  background: var(--gray); color: var(--ink); font-size: 0.95rem; font-weight: 500; line-height: 1.3;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.quick-links a::after { content: "\203A"; color: var(--red); font-size: 1.1em; line-height: 1; }
.quick-links a:hover { border-color: var(--red); color: var(--red); background: #fff; text-decoration: none; }
@media (max-width: 640px) {
  .quick-links ul { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .quick-links a { display: flex; justify-content: space-between; }
}

.band { padding: clamp(56px, 6vw, 88px) 0; }
.band--gray { background: var(--gray); }
.band h2 { margin-bottom: 1.2rem; }
.band__intro { max-width: 860px; }
.band__intro p { font-size: 1.02rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 32px; margin-top: 2rem; }
.principles h3 { font-size: 1.08rem; margin: 0 0 0.4rem; }
.principles p { margin: 0; font-size: 0.95rem; }
@media (max-width: 1000px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.feature-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 2rem; }
.feature-card { display: flex; flex-direction: column; }
.feature-card__img { aspect-ratio: 16 / 9.5; background: var(--gray); border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.feature-card__img img, .feature-card__img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-card h3 { margin: 0 0 0.5rem; }
.feature-card p { font-size: 0.97rem; flex: 1; }
.feature-card a.more { font-weight: 500; }
.feature-card a.more + a.more { margin-top: 6px; }
@media (max-width: 900px) { .feature-cards { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

.activities { columns: 2 300px; column-gap: 40px; }
.activities li { break-inside: avoid; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-text); padding: 64px 0 36px; font-size: 0.95rem; }
.site-footer a { color: var(--dark-text); }
.site-footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer__brand p { margin: 14px 0 0; max-width: 280px; line-height: 1.5; }
.footer__col h2 { color: #fff; font-size: 1.05rem; margin: 0 0 0.8rem; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin: 0 0 0.45em; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid #3a3d42; font-size: 0.88rem; color: #8b9099; }
.footer__bottom p { margin: 0; }
.footer__bottom a { color: #8b9099; }
@media (max-width: 960px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Generated pages: presentations, publications, program ----------
   The generator scripts emit table markup with fixed class names. These rules
   restyle that markup without editing it, and turn the table into stacked cards
   on narrow screens. */
.gen { --gen-line: var(--line); font-size: 0.97rem; }
.gen .divBody { line-height: 1.55; }
.gen #searchForm {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  background: var(--gray); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 14px; font-size: 0.95rem;
}
.gen #searchForm br { display: none; }
.gen #searchForm small { flex-basis: 100%; color: var(--muted); font-size: 0.82rem; }
.gen #searchForm select, .gen #searchForm input[type="text"] {
  font: inherit; padding: 8px 10px; border: 1px solid #cdd2d9; border-radius: 4px; background: #fff; color: var(--ink);
}
.gen #searchForm input[type="text"] { flex: 1 1 220px; min-width: 0; }
.gen #searchForm select { margin-right: 6px; max-width: 100%; }
.gen #searchForm input[type="submit"], .gen #searchForm input[type="reset"] {
  font: 600 14px var(--font); padding: 9px 16px; border-radius: 4px; cursor: pointer; border: 1px solid var(--red);
}
.gen #searchForm input[type="submit"] { background: var(--red); color: #fff; }
.gen #searchForm input[type="reset"] { background: #fff; color: var(--red); }
.gen #divFound { font-size: 0.88rem; color: var(--muted); margin: 0 0 6px; min-height: 1.2em; }
.gen #divTest:empty { display: none; }
.gen > .divBody > br, .gen #divFound + br { display: none; }

.gen table, .gen tr, .gen td { border: 0; }
.gen .tableMaster { width: 100%; border-collapse: collapse; }
.gen .tableMaster > tbody > tr > td, .gen .tableMaster > tr > td { padding: 0; vertical-align: top; }
.gen .yearCellHeader, .gen .descriptionCellHeader, .gen .timeCellHeader {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  padding: 8px 12px 8px 0 !important; border-bottom: 2px solid var(--ink) !important;
}
.gen .yearCellHeader b, .gen .descriptionCellHeader b, .gen .timeCellHeader b { font-weight: 700; }
.gen .talkRow > td { border-bottom: 1px solid var(--gen-line) !important; }
.gen .yearCell, .gen .timeCell, .gen .dateCell {
  width: 1%; white-space: nowrap; padding: 18px 20px 18px 0 !important;
  font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; font-size: 0.92rem;
}
.gen .dateCell { padding: 18px 0 18px 20px !important; text-align: right; color: var(--muted); font-weight: 500; }
.gen .talkCell { padding: 16px 0 !important; }
.gen .titleTable { width: 100%; }
.gen .titleTable td { padding: 0 !important; vertical-align: top; }
.gen .talkTitles { font-weight: 600; color: var(--ink); font-size: 1.04rem; line-height: 1.35; margin-bottom: 3px; }
.gen .authorListing { font-size: 0.92rem; color: var(--text); margin: 0; }
.gen .authors { color: var(--text); }
.gen .orgs { color: var(--muted); font-style: normal; }
.gen .publisher { font-size: 0.88rem; color: var(--muted); font-style: italic; margin-top: 2px; }
.gen .industryCell, .gen .industryTitleCell { width: 1%; padding-left: 16px !important; text-align: right; vertical-align: top; }
.gen .industryTag {
  display: inline-block; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis;
  background: var(--gray); color: var(--muted); border: 1px solid var(--line);
  padding: 2px 9px; border-radius: 999px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.gen .talkDetails { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.gen .talkDetails > div { flex: 0 1 auto; }
.gen .talkDetails .showHideWrapper, .gen .talkDetails > div:has(.showHideLinks) { flex-basis: 100%; order: 2; }
.gen .talkLinks, .gen .slidesButtonContainer { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gen .icon { width: 15px; height: 15px; flex: none; }
.gen .slidesButton, .gen .paperButton, .gen .googleScholarButton {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1.5;
  border: 1px solid var(--red); text-decoration: none;
}
.gen .slidesButton, .gen .paperButton { background: var(--red); color: #fff; }
.gen .slidesButton:hover, .gen .paperButton:hover { background: var(--red-dark); color: #fff; text-decoration: none; }
.gen .googleScholarButton { background: #fff; color: var(--red); border-color: #d6c0c4; }
.gen .googleScholarButton:hover { border-color: var(--red); text-decoration: none; }
.gen .showHideLinks { font-size: 0.85rem; font-weight: 500; color: var(--red); }
.gen .talkDescription {
  margin-top: 10px; padding: 14px 16px; background: var(--gray); border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.93rem; color: var(--text);
}
.gen .talkDescription ul { padding-left: 1.1em !important; }
.gen .talkDescription li { margin-bottom: 0.35em !important; }
.gen .talkDescription > div:first-child:empty { display: none; }
.gen .talkDescription > div + div, .gen .shareLinks { margin-top: 10px !important; font-size: 0.85rem; color: var(--muted); }
.gen .copyLink {
  display: inline-flex; align-items: center; gap: 4px; margin: 4px 6px 0 0;
  padding: 3px 10px; border: 1px solid #d3d7de; border-radius: 999px; background: #fff; color: var(--text); font-size: 0.8rem; font-weight: 500;
}
.gen .copyLink:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.gen .copyLink .icon { width: 13px; height: 13px; }
.gen .copyLink + .copyLink { margin-left: 0; }
.gen .talkCellHighlighted, .gen tr.talkCellHighlighted > td { background: #fff8e1; }
.gen tr.talkCellHighlighted > td:first-child { box-shadow: inset 4px 0 0 #e0a800; padding-left: 12px !important; }

/* Program-specific pieces */
.gen .mainTitle { display: none; }
.gen .subTitle { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.gen .buttonDiv { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 0 0 18px; }
.gen .buttonDiv > div { align-items: flex-start !important; text-align: left !important; }
.gen table.registerButton { display: inline-table; border-collapse: separate; }
.gen table.registerButton td { background: var(--red); border-radius: 4px; padding: 10px 20px !important; }
.gen table.registerButton td span { font-size: 15px !important; }
.gen .calendarTable td { padding: 0 6px 0 0 !important; vertical-align: middle; font-size: 0.92rem; }
.gen .calendarTable img { width: 22px; height: 22px; display: block; }
.gen .calendarMessage { display: none; font-size: 0.85rem; color: #1e6b33; }
.gen .individualCalendar img { width: 18px; height: 18px; margin-top: 6px; opacity: 0.75; }
.gen .dateHeading { font-size: 1.35rem; font-weight: 600; color: var(--ink); margin: 2.2rem 0 0.4rem; }
/* The program script reveals these at their scheduled time with inline !important styles. */
.gen .timedRelease { display: none !important; }
.gen .timedReleasePeek { font-size: 0.82rem; color: var(--muted); font-style: italic; }
.gen .calendarMessage { display: none !important; }
/* Rating and comment forms appear only with ?feedback in the address, and need PHP (ratings.php). */
.gen .feedback, .gen .feedbackGeneral { display: none !important; }
.gen .feedbackGeneral, .gen .feedback {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--gray);
  margin: 1em 0; padding: 0.8em 1em; font-size: 0.92rem; width: 100%;
}
.gen .feedbackGeneral textarea, .gen .feedback textarea { width: 100%; min-height: 3em; margin-top: 0.5em; font: inherit; }
.gen .feedback td { vertical-align: middle; }
.gen .feedbackRatingRow { display: flex; align-items: center; justify-content: space-between; }
.gen .feedbackLabel { font-style: italic; color: var(--muted); }
.gen .starRatingForm { margin-right: 1em; width: 150px; }
.gen .starRatingForm::after { content: ""; display: block; clear: both; }
.gen .starRatingForm input { display: none; }
.gen .starRatingForm label { float: right; cursor: pointer; }
.gen .starRatingForm label::before { content: url("../legacy/star-outline.svg"); }
.gen .starRatingForm input:checked ~ label::before { content: url("../legacy/star-filled.svg"); }
.gen .starRatingForm label:hover { transform: scale(1.2); }
.gen .ratingConfirmation { font-size: 0.85em; }

@media (max-width: 700px) {
  .gen .tableMaster, .gen .tableMaster > tbody, .gen .tableMaster > tbody > tr, .gen .tableMaster > tr { display: block; width: 100%; }
  .gen .tableMaster > tbody > tr:first-child:not(.talkRow), .gen .tableMaster > tr:first-child:not(.talkRow) { display: none; }
  .gen .talkRow { padding: 14px 0; border-bottom: 1px solid var(--gen-line); }
  .gen .talkRow > td { display: block; width: auto; border: 0 !important; padding: 0 !important; text-align: left; }
  .gen .yearCell, .gen .timeCell, .gen .dateCell { font-size: 0.8rem; color: var(--muted); margin-bottom: 2px; }
  .gen .timeCell { display: flex !important; align-items: center; gap: 8px; }
  .gen .individualCalendar img { margin-top: 0; }
  .gen .dateCell { order: 3; margin-top: 6px; }
  .gen .titleTable, .gen .titleTable tbody, .gen .titleTable tr, .gen .titleTable td { display: block; width: auto !important; }
  .gen .industryCell, .gen .industryTitleCell { text-align: left; padding: 6px 0 0 !important; }
  .gen .industryTag { white-space: normal; max-width: none; }
}

/* ---------- Admin mode (?admin): content that depends on the workshop phase or type ---------- */
.admin-mode .cond { outline: 2px dashed #2f7d46; outline-offset: 2px; }
.admin-mode .cond[hidden] { display: revert !important; outline-color: #c58a00; background: #fff8e1; }
.admin-mode .cond::before {
  content: "Shown: " attr(data-cond); font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: #2f7d46; text-transform: none; margin-right: 6px;
}
.admin-mode .cond[hidden]::before { content: "Hidden: " attr(data-cond); color: #8a5a00; }
.admin-mode div.cond::before { display: block; margin-bottom: 4px; }
.admin-bar {
  position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 6px 6px 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.admin-bar:not(.is-on) { padding-left: 6px; opacity: 0.7; }
.admin-bar:hover { opacity: 1; }
.admin-bar.is-on { background: #fff8e1; border-color: #c58a00; }
.admin-bar button {
  font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--line); border-radius: 4px;
  background: var(--gray); color: var(--ink); padding: 4px 10px;
}

/* ---------- Print ---------- */
@media print {
  .site-header, .section-nav, .cta, .site-footer, .menu-btn, .skip-link { display: none !important; }
  .page-body { display: block; }
  a { color: inherit; }
  details.fold > .fold__body { display: block; }
}

/* Ways to work with PSAS (people page) */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 1.5rem 0 1.5rem; }
.ways li { background: var(--gray); border-top: 3px solid var(--red); border-radius: var(--radius); padding: 22px 24px 24px; margin: 0; }
.ways__icon, .icon-badge { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--red); margin-bottom: 14px; }
.ways__icon svg, .icon-badge svg { width: 26px; height: 26px; }
.ways h3 { font-size: 1.1rem; margin: 0 0 0.4rem; color: var(--ink); }
.ways p { margin: 0; font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 640px) { .ways { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* Research topics and industries (research page) */
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 1rem 0 2.25rem; }
.topic-card { background: var(--gray); border-left: 3px solid var(--red); border-radius: var(--radius); padding: 16px 18px; }
.topic-card h4 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--ink); }
.topic-card p { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.industry-card { background: var(--gray); border-top: 3px solid var(--red); border-radius: var(--radius); padding: 18px 20px 20px; }
.industry-card .icon-badge { margin-bottom: 12px; }
.industry-card h4 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--ink); }
.industry-card ul { margin: 0; padding-left: 1.1em; font-size: 0.88rem; line-height: 1.45; }
.industry-card li { margin: 0 0 0.4em; }
.industry-card li:last-child { margin-bottom: 0; }
@media (max-width: 1000px) { .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .area-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
