/*
Theme Name: MCI 2027
Theme URI: https://mcisymposium.org
Author: World Events Forum
Description: Hand-coded theme for the MCI Symposium and Alzheimer's Public Educational Forum. Palette E (ink, Alzheimer's purple, pewter). Phase 1: child of Divi so legacy builder pages keep rendering; Phase 2: remove the Template line to stand alone.
Template: Divi
Version: 0.3.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: mci2027
*/

/* ---------- Tokens (palette E, see design/palette.md) ---------- */
:root {
  --ink: #1B2A3A;          /* Symposium */
  --purple: #5E2B7E;       /* Forum */
  --purple-tint: #F3ECF8;  /* Forum card / panels */
  --purple-text: #24133A;  /* text on tint */
  --purple-soft: #B99ACD;  /* chips on tint */
  --pewter: #7D8A97;       /* 25 mark only */
  --eyebrow: #56626E;
  --text: #16212C;
  --text-2: #44505C;
  --text-3: #525E6A;
  --border: #DDE2E8;
  --ground: #F6F7F9;
  --surface: #FFFFFF;
  --strip: #EBEEF2;
  --dark: #141F2B;
  --dark-line: #2A3846;
  --dark-text: #C9D6DB;
  --link: #34506F;
  --radius: 14px;
  --max: 1200px;
  --gutter: 24px;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/*
 * .mci-own = our own pages (homepage, non-Divi pages). Legacy Divi-builder
 * pages do NOT get it, so Divi keeps styling their content untouched.
 * The prefix also beats the inline CSS Divi (parent theme) prints in the head.
 */
body.mci-theme { margin: 0; }
body.mci-own { background: var(--ground); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
.mci-own img { max-width: 100%; height: auto; }
.mci-own a { color: var(--link); text-underline-offset: 3px; }
.mci-own a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.mci-own h1, .mci-own h2, .mci-own h3, .mci-own h4 { line-height: 1.15; margin: 0 0 .5em; padding: 0; color: inherit; }
.mci-own h1, .mci-own h2 { font-family: var(--serif); font-weight: 500; }
.mci-own h3, .mci-own h4 { font-family: var(--sans); font-weight: 600; }

/* Header and footer carry their own type so they look identical on legacy pages. */
.mci-theme .utility, .mci-theme .site-header, .mci-theme .site-footer { font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.mci-theme .site-header ul, .mci-theme .site-footer ul { padding: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--surface); padding: 10px 16px; clip: auto; width: auto; height: auto; }

/* ---------- Utility bar ---------- */
.utility { background: var(--dark); color: var(--dark-text); font-size: 14px; }
.utility .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.utility a { color: #E6EEF1; text-decoration: none; }
.utility-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.site-header a.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.mark25 { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--pewter); color: var(--pewter); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 24px; font-weight: 600; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.brand-name span { font-size: 13px; color: var(--text-3); letter-spacing: .02em; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.primary-nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; display: inline-block; padding: 10px 0; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--ink); text-decoration: underline; }
.primary-nav a.btn-register { background: var(--text); color: #fff !important; padding: 12px 20px !important; border-radius: 6px; font-weight: 600 !important; text-decoration: none !important; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font: 600 15px var(--sans); color: var(--text); cursor: pointer; }
  .primary-nav { flex-basis: 100%; display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .primary-nav a { padding: 12px 0; }
}

/* ---------- Hero ---------- */
.hero { background: var(--surface); }
.hero-intro { padding-top: 72px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--eyebrow); }
.hero h1 { font-size: clamp(36px, 5.2vw, 68px); line-height: 1.05; max-width: 900px; letter-spacing: -.01em; margin: 0; }
.lead { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 760px; margin: 0; }

/* ---------- Event cards ---------- */
.event-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; padding-bottom: 72px; }
.event-card { border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.event-card h2 { font-size: 38px; line-height: 1.1; margin: 0; }
.event-card .meta { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 17px; }
.event-card .meta strong { font-weight: 600; }
.event-card p { margin: 0; font-size: 16px; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid; border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 8px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 14px 24px; border-radius: 8px; }
.textlink { font-weight: 600; padding: 14px 8px; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 560px) {
  .event-card { padding: 28px 24px; }
  .event-card h2 { font-size: 30px; }
  .hero-intro { padding-top: 48px; padding-bottom: 40px; }
  .section h2 { font-size: 32px; }
}

.card-symposium { background: var(--ink); color: #fff; }
.card-symposium .eyebrow { color: #B9C6D2; font-size: 13px; }
.card-symposium p { color: #D7DFE7; }
.card-symposium .chip { border-color: rgba(255,255,255,.45); }
.card-symposium .btn { background: #fff; color: var(--ink); }
.card-symposium .textlink { color: #fff; }

.card-forum { background: var(--purple-tint); color: var(--purple-text); border: 2px solid var(--purple); }
.card-forum .eyebrow { color: var(--purple); font-size: 13px; }
.card-forum p { color: #3B2A50; }
.card-forum .chip { border-color: var(--purple-soft); }
.card-forum .btn { background: var(--purple); color: #fff; }
.card-forum .textlink { color: var(--purple); }

/* ---------- Status strip ---------- */
.status-strip { background: var(--strip); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 15px; }
.status-strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.status-strip strong { font-weight: 700; }
.status-strip span { color: var(--text-2); }

/* ---------- Sections ---------- */
.section { padding-top: 64px; padding-bottom: 40px; }
.section h2 { font-size: 40px; }
.section-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-lead { font-size: 18px; color: var(--text-2); max-width: 720px; margin: 0 0 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.tile h3 { font-size: 19px; margin: 0; }
.tile p { margin: 0; font-size: 16px; color: var(--text-2); }
.tile svg { width: 32px; height: 32px; stroke: var(--ink); }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); border-top: 2px solid var(--text); list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 20px 20px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.timeline .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: -27px; background: var(--ink); }
.timeline .dot.forum { background: var(--purple); }
.timeline .dot.now { background: var(--text); }
.timeline .year { font-family: var(--serif); font-size: 32px; font-weight: 500; }
.mci-own .timeline a.year { color: var(--text); text-decoration: none; }
.mci-own .timeline a.year:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.timeline .what { font-size: 15px; line-height: 1.5; color: var(--text-2); }

/* Committee */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.person-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; gap: 14px; align-items: center; color: var(--text); text-decoration: none; }
.initials { width: 56px; height: 56px; flex: none; border-radius: 50%; background: #E6EBF1; color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; overflow: hidden; }
.initials img { width: 100%; height: 100%; object-fit: cover; }
.person-card .name { font-weight: 600; font-size: 16px; display: block; }
.person-card .org { font-size: 14px; color: var(--text-3); line-height: 1.4; display: block; }

/* Supporters */
.supporters { background: var(--surface); border-top: 1px solid var(--border); }
.supporters .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.supporters h2 { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 0; }
.logo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; align-items: center; list-style: none; margin: 0; padding: 0; }
.logo-row li { height: 96px; display: flex; align-items: center; justify-content: center; padding: 12px; }
.logo-row img { max-height: 72px; width: auto; }
.grant-line { margin: 0; font-size: 15px; color: var(--text-2); }

/* ---------- Generic pages ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--border); }
.page-head .wrap { padding-top: 56px; padding-bottom: 40px; }
.page-head h1 { font-size: clamp(34px, 4.4vw, 54px); margin: 0; }
.entry { padding-top: 48px; padding-bottom: 80px; }
.entry .entry-content { max-width: 780px; }
.entry .entry-content h2 { font-size: 32px; margin-top: 1.4em; }
.entry .entry-content h3 { font-size: 22px; margin-top: 1.3em; }
.entry .entry-content table { border-collapse: collapse; width: 100%; font-size: 16px; }
.entry .entry-content th, .entry .entry-content td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }

/* Forum pages: dark-on-light, purple only for headings and buttons */
.is-forum.mci-own .page-head { background: var(--purple-tint); border-bottom-color: var(--purple-soft); }
.is-forum.mci-own .page-head h1, .is-forum.mci-own .entry .entry-content h2 { color: var(--purple); }
.is-forum.mci-own .entry .entry-content { font-size: 19px; line-height: 1.7; }

/* ---------- Event pages (Symposium / Forum) ---------- */
.event-hero .wrap { padding-top: 64px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 16px; }
.event-hero h1 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.05; margin: 0; max-width: 900px; }
.event-theme { font-size: 20px; line-height: 1.5; margin: 0; max-width: 780px; }
.event-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 17px; }
.event-hero .actions { padding-top: 12px; margin-top: 0; }
.event-soon { font-weight: 600; padding: 14px 0; }

.hero-symposium { background: var(--ink); color: #fff; }
.hero-symposium .eyebrow { color: #B9C6D2; }
.hero-symposium .event-theme, .hero-symposium .event-facts { color: #D7DFE7; }
.hero-symposium .event-facts strong { color: #fff; }
.hero-symposium .btn { background: #fff; color: var(--ink); }
.mci-own .hero-symposium .textlink, .hero-symposium .event-soon { color: #fff; }

.hero-forum { background: var(--purple-tint); color: var(--purple-text); border-bottom: 2px solid var(--purple); }
.hero-forum .eyebrow { color: var(--purple); }
.mci-own .hero-forum h1 { color: var(--purple); }
.hero-forum .event-theme, .hero-forum .event-facts { color: #3B2A50; }
.hero-forum .btn { background: var(--purple); color: #fff; }
.mci-own .hero-forum .textlink, .hero-forum .event-soon { color: var(--purple); }

.event-layout { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 24px; align-items: flex-start; }
.event-main { flex: 999 1 560px; min-width: 0; }
.event-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.event-side .tile { padding: 22px; }
.event-side .tile p { font-size: 15px; }
.prog-tz { font-size: 14px; color: var(--text-3); }

/* Program */
.prog-preview-note { background: #FFF6DB; border: 1px solid #E8D48A; border-radius: 8px; padding: 10px 14px; font-size: 14px; color: #5A4A10; margin: 0 0 24px; }
.prog-session { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 20px; overflow: hidden; }
.prog-session-head { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 20px 24px; background: var(--strip); border-bottom: 1px solid var(--border); }
.mci-own .prog-session-head h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.25; margin: 0 0 6px; }
.prog-session-label { display: block; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 4px; }
.prog-chair { margin: 0; font-size: 15px; }
.prog-rows { list-style: none; margin: 0; padding: 0; }
.prog-loose { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 20px; }
.prog-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 24px; border-top: 1px solid var(--border); }
.prog-rows .prog-row:first-child { border-top: 0; }
.prog-time { font-size: 14px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; padding-top: 2px; }
.prog-body { display: flex; flex-direction: column; gap: 4px; }
.prog-title { font-weight: 600; line-height: 1.4; }
.prog-person { font-size: 15px; color: var(--text-2); }
.prog-role { color: var(--text-3); }
.prog-name { color: var(--text); font-weight: 500; }
.prog-affil::before { content: ", "; }
.prog-tba { font-size: 15px; color: var(--text-3); font-style: italic; }
.prog-note { font-size: 14px; color: var(--text-3); }
.prog-pending { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #FFF1C7; color: #6B5300; font-size: 12px; font-weight: 600; vertical-align: 1px; }
.prog-row.kind-intro .prog-title, .prog-row.kind-qa .prog-title, .prog-row.kind-discussion .prog-title { font-weight: 500; color: var(--text-2); }
.prog-row.kind-qa, .prog-row.kind-intro { padding-top: 10px; padding-bottom: 10px; }
.prog-row.kind-break { background: var(--ground); }
.prog-row.kind-break .prog-title { font-weight: 500; color: var(--text-2); }
.people-grid .prog-pending { margin: 4px 0 0; }
@media (max-width: 640px) {
  .prog-session-head, .prog-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-left: 18px; padding-right: 18px; }
}

/* Registration */
.tier-grid { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.tier-name { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--eyebrow); }
.tier-price { font-family: var(--serif); font-size: 40px; line-height: 1.1; color: var(--ink); }
.tier-who { font-size: 15px; color: var(--text-2); }
.reg-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.reg-form { flex: 999 1 560px; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.reg-form iframe { width: 100% !important; }
.reg-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.reg-side .tile { padding: 22px; }
.reg-side .tile p { font-size: 15px; }
.reg-closed { color: var(--text-2); font-style: italic; }
.cross-note { background: var(--strip); border-radius: 8px; padding: 12px 16px; margin: 0 0 24px; font-size: 15px; color: var(--text-2); }
.is-forum.mci-own .cross-note { font-size: 16px; }
.chooser { padding-top: 48px; }
.chooser-note { margin: 0 0 72px; font-size: 16px; color: var(--text-2); }
.page-head .eyebrow { display: block; margin-bottom: 10px; }
.page-head .lead { margin-top: 12px; }
.is-forum.mci-own .reg-side .tile p, .is-forum.mci-own .reg-form .section-lead { font-size: 17px; }
.is-forum.mci-own .reg-form h2 { color: var(--purple); }
@media (max-width: 560px) { .reg-form { padding: 20px 16px; } }

/* Forum: larger, calmer type for an older audience */
.is-forum.mci-own .prog-title { font-size: 18px; }
.is-forum.mci-own .prog-person, .is-forum.mci-own .prog-tba { font-size: 17px; }
.is-forum.mci-own .prog-time { font-size: 15px; }
.is-forum.mci-own .prog-session-label { color: var(--purple); }
.is-forum.mci-own .prog-row.kind-qa .prog-title { color: var(--purple); }
.is-forum.mci-own .tile p { font-size: 17px; }

/* ---------- Archive (editions, faculty) ---------- */
.mci-own [hidden] { display: none !important; }
.ar-head .wrap { padding-bottom: 32px; }
.mci-own .ar-year-title { font-size: clamp(56px, 8vw, 96px); line-height: 1; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.ar-crumbs { font-size: 14px; color: var(--text-3); margin-bottom: 18px; }
.ar-crumbs a { color: var(--text-2); }
.ar-stats { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--text-2); }
.ar-stats strong { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--ink); margin-right: 4px; }
.ar-years { border-top: 1px solid var(--border); }
.ar-years .wrap { display: flex; gap: 4px; padding-top: 10px; padding-bottom: 10px; overflow-x: auto; }
.ar-years a, .ar-years span { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ar-years a:hover { background: var(--strip); color: var(--ink); }
.ar-years .is-current { background: var(--ink); color: #fff; }
.ar-years .wrap > :first-child { margin-left: -12px; } /* year text lines up with the title */

.ar-edition { padding-top: 40px; padding-bottom: 72px; }
.ar-tabs { display: flex; flex-wrap: wrap; gap: 8px 40px; border-bottom: 2px solid var(--border); margin-bottom: 32px; }
.mci-own .ar-tab { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 12px 0 14px; cursor: pointer; font: inherit; color: var(--text-2); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.ar-tab-name { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; }
.ar-tab-date { font-size: 13px; color: var(--text-3); }
.mci-own .ar-tab:hover { color: var(--ink); }
.mci-own .ar-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.mci-own .ar-tab.tab-forum[aria-selected="true"], .mci-own .ar-tab.tab-forum:hover { color: var(--purple); border-bottom-color: var(--purple); }
.mci-own .ar-tab:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.ar-event:not([hidden]) ~ .ar-event { margin-top: 48px; }
.ar-event-head { margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.ar-event-head h2 { font-size: clamp(26px, 3vw, 34px); margin: 0; max-width: 900px; }
.ar-when { margin: 0; color: var(--text-2); font-size: 16px; }
.ar-forum .ar-event-head .eyebrow, .ar-forum .prog-session-label { color: var(--purple); }
.mci-own .ar-forum .ar-event-head h2 { color: var(--purple); }
.ar-forum .prog-session { border-color: var(--purple-soft); }
.ar-forum .prog-session-head { background: var(--purple-tint); }
.ar-forum .prog-title { font-size: 18px; }
.ar-forum .prog-person { font-size: 16px; }
.ar-keynote { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--eyebrow); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; margin-right: 4px; vertical-align: 2px; }
.prog-row.kind-panel .prog-title, .prog-row.kind-overview .prog-title { font-weight: 500; }
.ar-deg { font-weight: 400; color: var(--text-3); }
.ar-note { margin: 32px 0 0; font-size: 14px; color: var(--text-3); max-width: 780px; }

.ar-media { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mci-own a.ar-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.2; }
.ar-btn svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.ar-btn.ar-slides svg { fill: none; }
.mci-own a.ar-watch { background: var(--ink); color: #fff; }
.mci-own a.ar-watch:hover { background: var(--text); color: #fff; }
.mci-own .ar-forum a.ar-watch { background: var(--purple); }
.mci-own a.ar-slides { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.mci-own a.ar-slides:hover { border-color: var(--text-3); color: var(--ink); }
.ar-min { font-weight: 400; opacity: .8; }

.ar-dialog { width: min(1000px, calc(100vw - 32px), calc((100vh - 96px) * 16 / 9)); max-width: none; max-height: calc(100vh - 32px); overflow: hidden; padding: 0; border: 0; border-radius: 12px; background: #000; color: #fff; }
.ar-dialog::backdrop { background: rgba(10, 16, 24, .82); }
.ar-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; background: var(--dark); font-family: var(--sans); font-size: 15px; }
.ar-dialog-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mci-own .ar-dialog-close { appearance: none; background: #fff; color: var(--ink); border: 0; border-radius: 6px; padding: 6px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.ar-frame { position: relative; aspect-ratio: 16 / 9; }
.ar-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ar-early { max-width: 720px; display: flex; flex-direction: column; gap: 12px; font-size: 18px; }
.ar-early p { margin: 0; }
.ar-early { max-width: 900px; }
.ar-brochure { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.ar-brochure-text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.mci-own a.ar-cover { flex: none; display: block; width: 260px; max-width: 100%; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(20, 31, 43, .12); transition: transform .15s ease, box-shadow .15s ease; }
.mci-own a.ar-cover:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20, 31, 43, .18); }
.ar-cover img { display: block; width: 100%; height: auto; }
.mci-own a.ar-doc { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; }
.mci-own a.ar-doc:hover { background: var(--text); color: #fff; }

/* Person page */
.ar-person-id { display: flex; gap: 24px; align-items: center; }
.ar-initials { width: 88px; height: 88px; font-size: 28px; }
.ar-h1-deg { font-family: var(--sans); font-size: .45em; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.ar-person-head .lead { margin-top: 8px; }
.ar-person { padding-top: 40px; padding-bottom: 72px; }
.ar-year { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px 32px; padding: 24px 0; border-top: 1px solid var(--border); }
.ar-year:first-child { border-top: 0; padding-top: 0; }
.mci-own .ar-year-num { font-size: 32px; margin: 0; }
.ar-year-num a { color: var(--ink); text-decoration: none; }
.ar-year-num a:hover { text-decoration: underline; }
.ar-apps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ar-app { display: flex; flex-direction: column; gap: 4px; }
.ar-app-event { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--eyebrow); }
.is-forum-app .ar-app-event { color: var(--purple); }
.ar-app-title { font-size: 18px; font-weight: 600; line-height: 1.4; }

/* Faculty index */
.ar-filter { margin-top: 24px; max-width: 480px; }
.mci-own .ar-filter input { width: 100%; box-sizing: border-box; font: inherit; font-size: 17px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.mci-own .ar-filter input:focus { outline: 2px solid var(--link); outline-offset: 1px; }
.ar-letters { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 20px; }
.ar-letters a { display: inline-block; min-width: 32px; text-align: center; padding: 6px 4px; border-radius: 6px; font-weight: 600; text-decoration: none; color: var(--text-2); }
.ar-letters a:hover { background: var(--strip); color: var(--ink); }
.ar-index { padding-top: 32px; padding-bottom: 72px; }
.ar-letter { margin-bottom: 36px; scroll-margin-top: 16px; }
.mci-own .ar-letter h2 { font-size: 32px; margin: 0 0 14px; }
.ar-yrs { display: block; margin-top: 4px; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.person-card:hover { border-color: var(--text-3); }
.ar-empty { color: var(--text-2); font-style: italic; }

/* Editions index */
.ar-head-links { margin: 16px 0 0; }
.mci-own .ar-head-links .textlink { padding-left: 0; }
.ar-editions { padding-top: 40px; padding-bottom: 72px; }
.ar-ed-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.mci-own .ar-ed-card { display: flex; gap: 24px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-decoration: none; color: var(--text); height: 100%; box-sizing: border-box; }
.mci-own .ar-ed-card:hover { border-color: var(--ink); color: var(--text); }
.ar-ed-year { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--ink); flex: none; font-variant-numeric: tabular-nums; }
.ar-ed-body { display: flex; flex-direction: column; gap: 6px; }
.ar-ed-body .eyebrow { font-size: 12px; }
.ar-ed-theme { font-size: 18px; font-weight: 600; line-height: 1.35; }
.ar-ed-events, .ar-ed-counts { font-size: 14px; color: var(--text-2); }

@media (max-width: 640px) {
  .ar-year { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ar-person-id { gap: 16px; align-items: flex-start; }
  .ar-initials { width: 64px; height: 64px; font-size: 22px; }
  .ar-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 24px; }
  .mci-own .ar-tab { padding: 10px 0 12px; flex: none; }
  .ar-tab-name { font-size: 19px; }
  .mci-own .ar-ed-card { flex-direction: column; gap: 10px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-text); font-size: 15px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer a { color: var(--dark-text); }
.site-footer .col { display: flex; flex-direction: column; gap: 10px; }
.site-footer .col-title { color: #fff; font-weight: 600; }
.site-footer .about { max-width: 380px; }
.site-footer .about strong { font-family: var(--serif); font-size: 24px; color: #fff; font-weight: 500; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer .legal { border-top: 1px solid var(--dark-line); padding-top: 20px; padding-bottom: 32px; font-size: 14px; display: block; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: 0 4px 14px rgba(20, 31, 43, .14); cursor: pointer; padding: 0; }
.to-top:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.to-top:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.to-top[hidden] { display: none !important; }
@media (max-width: 600px) { .to-top { right: 16px; bottom: 16px; } }
#main:focus { outline: none; }

/* ---------- Accreditation, Supporters, Contact ---------- */
.acc-note { background: var(--strip); border-radius: 10px; padding: 16px 20px; margin: 0 0 32px; }
.acc-joint { display: flex; gap: 28px; align-items: flex-start; }
.acc-joint p { margin: 0; }
.acc-logo { width: 150px; height: auto; flex: none; }
.acc-states { display: flex; flex-direction: column; border-top: 1px solid var(--border); margin-top: 16px; }
.acc-states details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.acc-states summary { cursor: pointer; font-weight: 600; }
.acc-states details p { margin: 10px 0 0; font-size: 16px; color: var(--text-2); }
.acc-foot { font-size: 15px; color: var(--text-3); }
.acc-cta { margin-top: 40px; }
@media (max-width: 600px) { .acc-joint { flex-direction: column; gap: 16px; } }

.sup { padding-top: 48px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px 56px; }
.sup > * { flex: 1 1 100%; }
.sup > .sup-presenter-logos, .sup > .sup-copresenter-logos { flex: 0 1 auto; } /* side by side on wide screens */
.sup-group h2.eyebrow { font-size: 13px; margin: 0 0 16px; font-family: var(--sans); }
.sup-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.sup-logos li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.sup-logos a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sup-lg .sup-logos li { width: 360px; max-width: 100%; height: 160px; padding: 24px 32px; }
.sup-lg .sup-logos img { max-height: 104px; max-width: 100%; width: auto; height: auto; }
.sup-sm .sup-logos li { width: 220px; max-width: 100%; height: 104px; padding: 18px 24px; }
.sup-sm .sup-logos img { max-height: 60px; max-width: 100%; width: auto; height: auto; }
.sup-grant { margin: 16px 0 0; color: var(--text-2); }
.sup-cta { border-top: 1px solid var(--border); padding-top: 40px; max-width: 720px; }
.sup-cta h2 { font-size: 30px; margin: 0 0 12px; }
.sup-cta p { margin: 0 0 20px; color: var(--text-2); }
.sup-cta .btn { background: var(--ink); color: #fff; }

.contact { padding-top: 48px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.contact-card h2 { font-size: 26px; margin: 0 0 20px; }
.contact-big { font-size: 20px; margin: 0 0 8px; }
.contact-big a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-big a:hover { text-decoration: underline; }
.contact address { font-style: normal; color: var(--text-2); margin-top: 20px; line-height: 1.6; }
.contact-follow { margin-bottom: 24px; }
.contact-follow .eyebrow { display: block; margin-bottom: 8px; }
.contact-follow ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.contact-follow a { display: inline-block; padding: 10px 18px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
.contact-follow a:hover { border-color: var(--ink); }
.is-forum-follow .eyebrow { color: var(--purple); }
.is-forum-follow a { color: var(--purple); border-color: var(--purple-soft); }
.is-forum-follow a:hover { border-color: var(--purple); }

/* ---------- 25 years ---------- */
.y25-head h1 { max-width: 900px; }
.y25-num { color: var(--pewter); }
.y25-pending { background: #FFF6DB; border: 1px dashed #C9A227; color: #5A4500; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 0 0 16px; }
.y25-covers { margin-top: 40px; }
.y25-covers .eyebrow { display: block; margin-bottom: 14px; }
.y25-covers ul { list-style: none; margin: 0; padding: 0 0 8px; display: flex; gap: 14px; overflow-x: auto; }
.y25-covers li { flex: none; }
.y25-covers a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 600; }
.y25-covers img { width: 120px; height: auto; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(20, 31, 43, .10); transition: transform .15s; }
.y25-covers a:hover img { transform: translateY(-3px); }
.y25-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.y25-person { display: grid; grid-template-columns: 280px 1fr; gap: 56px; padding-top: 64px; padding-bottom: 64px; align-items: start; }
.y25-photo { width: 280px; height: 280px; object-fit: cover; border-radius: 50%; border: 6px solid var(--ground); }
.y25-person-text { max-width: 720px; }
.y25-person-text h2, .y25-wien h2, .y25-regs h2, .y25-gallery h2, .y25-next h2 { font-size: clamp(30px, 3.4vw, 40px); margin: 8px 0 20px; }
.y25-person-text p, .y25-wien-text p { font-size: 18px; line-height: 1.65; color: var(--text-2); margin: 0 0 16px; }
.y25-quote { margin: 0 0 28px; padding: 0 0 0 24px; border-left: 3px solid var(--pewter); }
.y25-quote p { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--text) !important; font-style: italic; }
.y25-link { font-weight: 600; color: var(--link); }
.y25-sub { margin-top: -12px !important; color: var(--text-3) !important; font-size: 16px !important; }
.y25-wien { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.y25-wien-img { margin: 0; }
.y25-wien-img img { width: 100%; height: auto; border-radius: var(--radius); }
.y25-numbers { background: var(--dark); color: #fff; padding: 56px 0; }
.y25-numbers .eyebrow { color: var(--dark-text); }
.y25-stats { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; }
.y25-stats li { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--dark-line); padding-top: 16px; }
.y25-stats strong { font-family: var(--serif); font-size: 56px; font-weight: 500; line-height: 1; }
.y25-stats span { color: var(--dark-text); font-size: 16px; }
.y25-numbers .y25-note { color: var(--dark-text); }
.y25-note { font-size: 14px; color: var(--text-3); margin: 20px 0 0; }
.y25-reg-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.y25-reg-list a { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; text-decoration: none; color: var(--text); }
.y25-reg-list a:hover { border-color: var(--ink); }
.y25-reg-n { grid-row: span 2; font-family: var(--serif); font-size: 36px; color: var(--ink); text-align: center; }
.y25-reg-name { font-weight: 700; }
.y25-reg-aff { font-size: 14px; color: var(--text-3); }
.y25-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.y25-grid { grid-auto-rows: 180px; grid-auto-flow: dense; }
.y25-grid li:first-child { grid-column: span 2; grid-row: span 2; }
.y25-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
@media (max-width: 520px) { .y25-grid li:first-child { grid-column: auto; grid-row: auto; } }
.y25-next .event-card h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin: 0; }
@media (max-width: 860px) {
  .y25-person { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; padding-bottom: 48px; }
  .y25-photo { width: 200px; height: 200px; }
  .y25-wien { grid-template-columns: 1fr; gap: 28px; }
}
.section-links { display: flex; gap: 24px; flex-wrap: wrap; }
.y25-covers-note { max-width: 760px; color: var(--text-2); margin: 0 0 16px; font-size: 16px; }
.y25-thanks p { font-size: 19px; line-height: 1.65; color: var(--text-2); max-width: 760px; margin: 0 0 16px; }
.y25-quote footer { font-size: 15px; color: var(--text-3); font-weight: 600; margin-top: -4px; }
.y25-quote footer::before { content: '\2014\00a0'; }
.y25-goals { margin: 0 0 20px; padding-left: 22px; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.y25-goals li { margin-bottom: 6px; }
.y25-goals li::marker { color: var(--ink); }
.y25-closing { font-family: var(--serif); font-size: 21px !important; color: var(--text) !important; }

/* Pill links (homepage archive section) */
.section-links { align-items: center; gap: 12px; }
.mci-own a.pill { display: inline-flex; align-items: center; padding: 10px 20px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; transition: background .15s, color .15s; }
.mci-own a.pill:hover { background: var(--ink); color: #fff; }
.mci-own a.pill-solid { background: var(--ink); color: #fff; }
.mci-own a.pill-solid:hover { background: var(--text); border-color: var(--text); }

/* Faculty: where each person appears */
.person-card .person-where { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; }
.mci-own .person-card .person-where a { color: var(--link); text-decoration: none; font-weight: 600; }
.mci-own .person-card .person-where a:hover { text-decoration: underline; }
.person-card .person-where .sep { color: var(--text-3); }
.is-forum.mci-own .person-card .person-where a { color: var(--purple); }
.prog-session, .prog-loose { scroll-margin-top: 24px; }
