/* ============================================================
   Augmented Human Lab @ UIST 2026 — styles
   Tokens follow the AHLab theme (cdn.ahlab.org). Light + dark.
   ============================================================ */

:root {
  --color-accent:       #6100FF;
  --color-accent-dark:  #4400B3;
  --color-accent-light: #904DFF;
  --gradient-start:     #00D7EE;
  --gradient-end:       #6100FF;
  --gradient:           linear-gradient(221deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  --font-display:       "neue-haas-grotesk-display", "Helvetica Neue", Arial, sans-serif;
  --font-text:          "neue-haas-grotesk-text", "Helvetica Neue", Arial, sans-serif;
  --radius-sm:          8px;
  --radius:             12px;
  --radius-lg:          16px;

  /* light theme */
  --page-bg:     #F4F7F9;
  --surface:     #FFFFFF;
  --surface-2:   #EDF0F3;
  --card-hover:  #F6F2FF;
  --float-bg:    rgba(255, 255, 255, 0.78);
  --float-line:  rgba(14, 15, 17, 0.06);
  --text:        #0E0F11;
  --text-2:      #5E6875;
  --text-3:      #838D95;
  --link:        #6100FF;
  --chip-bg:     #EEE6FF;
  --chip-text:   #4400B3;
  --shadow:      0 1px 2px rgba(14, 15, 17, 0.04), 0 8px 28px rgba(14, 15, 17, 0.07);
  --shadow-lg:   0 24px 80px rgba(14, 15, 17, 0.22);
  --particle:    97, 0, 255;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page-bg:     #0E0F11;
    --surface:     #17191D;
    --surface-2:   #1F2227;
    --card-hover:  #1D1A28;
    --float-bg:    rgba(23, 25, 29, 0.78);
    --float-line:  rgba(255, 255, 255, 0.07);
    --text:        #F4F7F9;
    --text-2:      #AAAFB6;
    --text-3:      #838D95;
    --link:        #B48CFF;
    --chip-bg:     rgba(144, 77, 255, 0.18);
    --chip-text:   #CDB4FF;
    --shadow:      0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
    --shadow-lg:   0 24px 80px rgba(0, 0, 0, 0.6);
    --particle:    144, 77, 255;
    --hero-gradient: linear-gradient(221deg, #00D7EE 0%, #A36BFF 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page-bg:     #0E0F11;
  --surface:     #17191D;
  --surface-2:   #1F2227;
  --card-hover:  #1D1A28;
  --float-bg:    rgba(23, 25, 29, 0.78);
  --float-line:  rgba(255, 255, 255, 0.07);
  --text:        #F4F7F9;
  --text-2:      #AAAFB6;
  --text-3:      #838D95;
  --link:        #B48CFF;
  --chip-bg:     rgba(144, 77, 255, 0.18);
  --chip-text:   #CDB4FF;
  --shadow:      0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg:   0 24px 80px rgba(0, 0, 0, 0.6);
  --particle:    144, 77, 255;
  --hero-gradient: linear-gradient(221deg, #00D7EE 0%, #A36BFF 100%);
  color-scheme: dark;
}

/* ── Base · body is the scroller (no overscroll bounce) ── */
*, *::before, *::after { box-sizing: border-box; }
html {
  height: 100%;
  overflow: hidden;
  background: var(--page-bg);
  overscroll-behavior: none;
}
body {
  height: 100%;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: none;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--color-accent-light); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.muted { color: var(--text-3); }

#particles {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 0;
}
#home { position: relative; z-index: 1; }

/* ── Floating surfaces ─────────────────────────────────── */
.float {
  background: var(--float-bg);
  border: 1px solid var(--float-line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
}

/* ── App bar (full width, floating) ───────────────────── */
.topbar {
  position: sticky; top: 12px; z-index: 20;
  margin: 12px 12px 0;
  height: 60px;
  padding: 0 10px 0 14px;
  border-radius: 16px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 40px; width: auto; color: var(--text); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  color: var(--text-2); font-weight: 500; font-size: 15px;
  padding: 7px 14px; border-radius: 999px;
  transition: background-color .25s ease, color .25s ease;
}
.nav a:hover { text-decoration: none; background: var(--surface-2); color: var(--text); }
.nav a[aria-current="true"] { background: var(--chip-bg); color: var(--chip-text); font-weight: 600; }
.bar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 0;
  display: inline-grid; place-items: center;
  background: transparent; color: var(--text-2); font-size: 16px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
/* Theme button shows the NEXT theme: moon on light, sun on dark. */
.theme-btn .ic-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .ic-sun { display: inline; }
  :root:not([data-theme="light"]) .theme-btn .ic-moon { display: none; }
}
:root[data-theme="dark"] .theme-btn .ic-sun { display: inline; }
:root[data-theme="dark"] .theme-btn .ic-moon { display: none; }

.cta {
  height: 40px; padding: 1px 18px 0; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-accent); color: #fff;
  font-family: var(--font-text); font-weight: 600; font-size: 15px; line-height: 1; letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(97, 0, 255, 0.28);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.cta:hover { background: var(--color-accent-light); box-shadow: 0 6px 22px rgba(97, 0, 255, 0.45); }

/* ── Screen-fit groups ─────────────────────────────────── */
.group {
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(18px, 3.4vh, 52px);
  scroll-margin-top: var(--bar-h, 72px);
}
.group[hidden] { display: none; }

.section-head {
  display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 24px;
  margin-bottom: clamp(14px, 2.6vh, 28px);
}
.section-head h2 { font-size: clamp(28px, 4.6vh, 44px); line-height: 1.05; }
.section-note { margin: 0; justify-self: end; color: var(--text-2); max-width: 460px; text-align: right; font-size: 15px; }
.section-eyebrow, .eyebrow {
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--link);
  margin-bottom: 8px;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero { min-height: calc(100dvh - var(--bar-h, 72px)); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(14px, 2.4vh, 24px); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 0 4px var(--chip-bg); }
.hero h1 {
  font-size: clamp(38px, min(8.4vh, 10.5vw), 84px); line-height: 0.98; letter-spacing: -0.025em;
}
.h1-sub {
  display: block;
  background: var(--hero-gradient, var(--gradient)); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
}
.lede { font-size: clamp(17px, 2.5vh, 21px); color: var(--text-2); max-width: 560px; margin: clamp(14px, 2.6vh, 26px) 0 clamp(18px, 3.4vh, 36px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 0; }
.hero-meta dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.hero-meta dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 2.3vh, 19px); }

.float-card {
  background: var(--float-bg);
  border: 1px solid var(--float-line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
}
.find-us { padding: clamp(16px, 2.8vh, 26px); }
.find-us-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--link); }
.find-us-head h2 { font-size: 18px; color: var(--text); }
.find-us-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.find-us-list li a {
  display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 8px 10px; margin: 0 -10px; border-radius: 10px; color: var(--text);
  transition: background-color .2s ease;
}
.find-us-list li a:hover { text-decoration: none; background: var(--card-hover); }
.fu-day { font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.15; }
.fu-day small { display: block; font-family: var(--font-text); font-weight: 400; font-size: 12px; color: var(--text-3); }
.fu-what { min-width: 0; font-size: 14px; line-height: 1.3; }
.fu-what .fu-title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.fu-what .fu-sub { display: block; color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-link { font-weight: 600; font-size: 14px; }

/* ── Chips ─────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; line-height: 1;
  background: var(--chip-bg); color: var(--chip-text); white-space: nowrap;
}
.chip.award { background: linear-gradient(221deg, rgba(0, 215, 238, .18), rgba(97, 0, 255, .18)); }
.chip.soft { background: var(--surface-2); color: var(--text-2); }

/* ── Research cards ────────────────────────────────────── */
.cards { display: grid; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.card {
  position: relative;
  display: grid; grid-template-rows: auto 1fr; align-content: start;
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--float-line);
  box-shadow: var(--shadow);
  cursor: pointer; text-align: left; color: inherit; font: inherit; padding: 0;
  transition: background-color .25s ease;
}
.card:hover { background: var(--card-hover); }
.card-media { height: clamp(120px, 23vh, 240px); background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.placeholder { display: grid; place-items: center; background: var(--gradient); color: rgba(255,255,255,.9); font-size: 34px; }
.card-body { padding: clamp(12px, 2vh, 18px) clamp(14px, 1.4vw, 20px) clamp(14px, 2.2vh, 20px); display: grid; align-content: start; gap: 8px; }
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.card h3 {
  font-size: clamp(16px, 2.3vh, 19px); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-people { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-people b { color: var(--text); font-weight: 600; }
.card-when { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.card-when i { color: var(--link); }

.card-link {
  all: unset; cursor: pointer;
}
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--color-accent-light); outline-offset: 2px; }

/* No project photo: the project's name set large on the brand gradient */
.ph-name {
  font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: clamp(26px, 4.4vh, 40px); letter-spacing: -0.02em; text-align: center; padding: 0 16px;
  text-shadow: 0 2px 18px rgba(14, 15, 17, .18);
}
.card-media.placeholder, .detail-media.placeholder {
  position: relative; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(0, 215, 238, .55), transparent 60%),
    radial-gradient(90% 80% at 10% 100%, rgba(68, 0, 179, .9), transparent 70%),
    var(--color-accent);
}

/* Live state */
.chip.live { height: 20px; padding: 0 8px; font-size: 11px; background: #E6FAF0; color: #0A7A43; vertical-align: 1px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #12B76A; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.find-us-list li.past a, .slot.past { opacity: .5; }
.slot.now { background: var(--chip-bg); }

/* Doctoral Consortium: one wide card, media left, text right (no lone narrow card) */
.card.wide { grid-template-rows: none; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.card.wide .card-media { aspect-ratio: auto; min-height: 100%; }
.card.wide .card-body { padding: clamp(18px, 3vh, 32px); align-content: center; gap: 10px; }
.card.wide h3 { font-size: clamp(19px, 2.8vh, 26px); -webkit-line-clamp: 4; }
.card.wide .card-abstract { margin: 0; color: var(--text-2); font-size: 14.5px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Schedule ──────────────────────────────────────────── */
.days { display: grid; gap: clamp(12px, 1.4vw, 20px); grid-template-columns: repeat(var(--days, 3), minmax(0, 1fr)); align-items: stretch; }
.day { background: var(--surface); border: 1px solid var(--float-line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(14px, 2.2vh, 22px); }
.day-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.day-head h3 { font-size: 20px; }
.day-head span { color: var(--text-3); font-size: 14px; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.slot {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: start;
  padding: 10px 12px; border-radius: 12px; background: var(--surface-2);
  transition: background-color .2s ease; cursor: pointer;
}
.slot:hover { background: var(--card-hover); }
.slot-time { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.slot-title { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; line-height: 1.3; font-weight: 500; }
.slot-title .chip { flex: none; background: var(--surface); }
.slot-names { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.name-pill {
  all: unset; cursor: pointer; height: 26px; padding: 0 10px; border-radius: 999px;
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 500;
  background: var(--surface); color: var(--text); transition: background-color .2s ease;
}
.name-pill:hover { background: var(--chip-bg); }
.name-pill:focus-visible { outline: 2px solid var(--color-accent-light); }
.slot-where { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.slot .ics {
  width: 30px; height: 30px; font-size: 13px; margin: -4px -6px 0 0;
}

/* ── Lab ───────────────────────────────────────────────── */
.lab-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.lab-copy h2 { font-size: clamp(28px, 4.6vh, 44px); line-height: 1.05; margin-bottom: clamp(12px, 2vh, 20px); }
.lab-copy p { color: var(--text-2); font-size: clamp(15px, 2.2vh, 18px); margin: 0 0 12px; }
.lab-copy strong { color: var(--text); }
.lab-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(14px, 2.4vh, 24px); }
.chip-link {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--float-line);
  color: var(--text); font-weight: 500; font-size: 14.5px;
  transition: background-color .2s ease;
}
.chip-link i { color: var(--link); }
.chip-link:hover { text-decoration: none; background: var(--card-hover); }
.video-card { display: grid; gap: 10px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0E0F11; box-shadow: var(--shadow); max-height: 52vh; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-poster:focus-visible { outline: 2px solid var(--color-accent-light); outline-offset: -4px; }
.play {
  position: relative; width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 22px; padding-left: 4px;
  background: var(--color-accent); box-shadow: 0 8px 30px rgba(97, 0, 255, .5);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.video-poster:hover .play { background: var(--color-accent-light); box-shadow: 0 10px 38px rgba(97, 0, 255, .65); }
.video-caption { font-size: 13px; color: var(--text-3); }

/* ── Footer (one line, bottom of the last screen) ──────── */
.group:last-child { padding-bottom: 0; }
.group:last-child > .container { margin-block: auto; }
.footer {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 22px;
  padding: clamp(18px, 3vh, 28px) 16px;
  font-size: 13.5px; color: var(--text-2);
}
.footer-brand { font-family: var(--font-display); font-weight: 700; color: var(--text); }
.footer-links { display: inline-flex; gap: 18px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--link); }

/* ── Detail dialog ─────────────────────────────────────── */
.detail {
  width: min(880px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 1px solid var(--float-line); border-radius: 20px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.detail::backdrop { background: rgba(14, 15, 17, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.detail[open] { animation: dlg-in .28s ease; }
@keyframes dlg-in { from { opacity: 0; } to { opacity: 1; } }
.detail-inner { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); max-height: calc(100dvh - 48px); }
.detail-media { background: var(--surface-2); min-height: 100%; display: grid; place-items: center; padding: 20px; }
.detail-media img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: var(--radius); }
.detail-media.placeholder { padding: 0; }
.detail-media.placeholder { background: var(--gradient); }
.detail-body { padding: 28px 30px 26px; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 12px; }
.detail-close { position: absolute; top: 12px; right: 12px; background: var(--float-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); z-index: 2; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-right: 40px; }
.detail h2 { font-size: clamp(21px, 3.2vh, 27px); line-height: 1.2; }
.detail-authors { margin: 0; font-size: 14.5px; color: var(--text-2); }
.detail-authors a { font-weight: 600; }
.detail-authors .aff { color: var(--text-3); }
.detail-when { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.detail-when div { display: flex; align-items: center; gap: 10px; }
.detail-when i { width: 16px; color: var(--link); text-align: center; }
.detail-abstract { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }
.detail-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--float-line); background: var(--surface-2);
  color: var(--text); font: 500 14px/1 var(--font-text); cursor: pointer;
  transition: background-color .2s ease;
}
.btn i { color: var(--link); }
.btn:hover { text-decoration: none; background: var(--card-hover); }
.btn.primary { background: var(--color-accent); color: #fff; border-color: transparent; }
.btn.primary i { color: #fff; }
.btn.primary:hover { background: var(--color-accent-light); }

/* ── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%);
  padding: 10px 18px; border-radius: 999px;
  background: var(--text); color: var(--page-bg); font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.toast.show { opacity: 1; }
.noscript { text-align: center; padding: 40px 16px; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav a { padding: 7px 10px; font-size: 14px; }
  .cards { --cols: 2 !important; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hero-grid, .lab-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .days { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 6px; }
  .section-note { justify-self: start; text-align: left; }
  .card.wide { grid-template-columns: 1fr; }
  .card.wide .card-media { aspect-ratio: 16 / 9; }
  .detail-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .detail-media { aspect-ratio: 16 / 9; min-height: 0; }
  .detail-body { overflow: visible; }
}
@media (max-width: 620px) {
  .topbar { margin: 8px 8px 0; top: 8px; height: 56px; gap: 8px; }
  .brand-logo { height: 36px; }
  .cta { padding: 1px 14px 0; }
  .cta .cta-label { display: none; }
  .cta { width: 40px; padding: 0; justify-content: center; }
  .cards { --cols: 1 !important; }
  .footer { font-size: 12.5px; gap: 4px 14px; }
  .footer-links { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
