/* =============================================================================
   TPC House at Davos 2027 — Programme. Reskin of the 2026 programme calendar
   (Q16): IW's layout and components, TPC tokens (../DESIGN.md): Quicksand,
   Deep Turquoise voice, Turquoise of Truth for interaction, white grounds, flat
   surfaces, Awakening Red held back to the focus ring.
   ============================================================================= */

:root {
  /* Ground: white rooms (the IW aurora canvas is retired). */
  --bg-base:        #FFFFFF;
  --bg-grad-end:    #FFFFFF;
  --aurora-1:       transparent;
  --aurora-2:       transparent;
  --aurora-3:       transparent;

  /* Ink */
  --ink-900:        #2C2A29;   /* TPC Black */
  --ink-800:        #2C2A29;
  --ink-700:        #3D3B3A;
  --ink-500:        #5F6366;   /* Quiet Grey */
  --ink-400:        #6B7073;   /* 5.0:1 on white */
  --ink-300:        #D3DCDD;

  /* Brand accents: IW steel -> TPC turquoise, IW amber -> mid turquoise. */
  --steel-500:      #007788;   /* Turquoise of Truth: interaction */
  --steel-700:      #004F59;   /* Deep Turquoise: voice */
  --amber-500:      #007788;   /* accent fills carry white text: Turquoise of Truth, 5.3:1 */
  --amber-600:      #004F59;
  --tpc-red:        #E10600;   /* Awakening Red: focus ring only */
  --tpc-mist:       #EEF6F6;
  --tpc-aqua:       #40C1AC;

  --pewter-500:         #5F6366;
  --pewter-500-rgb:     95, 99, 102;

  /* Time of day glyphs, kept within the turquoise family. */
  --tod-morning:        #00A7B5;
  --tod-afternoon:      #007788;
  --tod-evening:        #004F59;

  /* Surfaces: flat white (no glass). */
  --glass-30:       #FFFFFF;
  --glass-55:       #FFFFFF;
  --glass-65:       #FFFFFF;
  --glass-80:       #FFFFFF;
  --hairline:       rgba(0, 119, 136, 0.22);
  --hairline-soft:  rgba(0, 119, 136, 0.12);

  --modal-surface-rgb: 255, 255, 255;

  /* Flat: no shadows (DESIGN.md). */
  --shadow-1:       none;
  --shadow-2:       none;

  --font:          "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display:  "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale (4-pt) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 48px;

  /* Height of a topbar control (see IW notes: a committed chip forces 46px). */
  --control-h: 46px;
}

/* ----------------------------------------------------------------------------
   Reset (minimal, scoped)
   --------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Atone WP theme sets `overflow-x: hidden` on html and body, which creates a
   scroll container at the root and breaks `position: sticky` for descendants.
   `overflow-x: clip` blocks horizontal scroll without creating a scroll
   container, so sticky pins to the viewport again. */
html, body {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-900);
  background: var(--bg-base) !important;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Neutralize vendored atone-style.min.css `html, body { min-width: 380px }` — clips phones <380px */
html, body { min-width: 0; }
/* Embedded in an iframe: the parent sizes the frame to our reported height.
   A viewport-relative min-height makes body track the (growing) iframe
   viewport, which feeds back into scrollHeight and grows without bound. */
html.is-embedded, html.is-embedded body { min-height: 0; }
/* Embedded auto-height measures body's rect; children's margins that collapse
   through body render outside that rect and leave the document a few px
   taller than the frame → phantom inner scrollbar. flow-root contains them
   so the measurement equals the true render height. */
html.is-embedded body { display: flow-root; }
button { font: inherit; color: inherit; }

/* ----------------------------------------------------------------------------
   Aurora background layer
   --------------------------------------------------------------------------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* same mesh as prototype-05: 3 soft radial tints + the pale gradient */
  background:
    radial-gradient(1200px 800px at 18% 12%, var(--aurora-1), transparent 60%),
    radial-gradient(900px 700px at 92% 88%, var(--aurora-2), transparent 65%),
    radial-gradient(700px 600px at 78% 18%, var(--aurora-3), transparent 55%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-grad-end) 100%);
}
.aurora__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  contain: layout paint;
}
.aurora__orb--a {
  width: 520px; height: 520px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, var(--aurora-1) 0%, transparent 70%);
}
.aurora__orb--b {
  width: 620px; height: 620px;
  bottom: -180px; right: -160px;
  background: radial-gradient(circle, var(--aurora-2) 0%, transparent 70%);
}
.aurora__orb--c {
  width: 380px; height: 380px;
  top: 38%; right: 24%;
  background: radial-gradient(circle, var(--aurora-3) 0%, transparent 70%);
}

/* ----------------------------------------------------------------------------
   Site header + footer chrome comes from styles/atone-style.min.css (the
   tpchouse.com theme). On direct visits the masthead sits in the flow as the
   theme's scrolled state: a solid Turquoise of Truth band, white logo and menu.
   Inside the homepage iframe both are hidden (html.is-embedded, below).
   --------------------------------------------------------------------------- */

#masthead,
#masthead.site-header {
  position: relative !important;
  top: 0 !important;
  left: auto !important;
  width: 100% !important;
  z-index: 5 !important;
  background: #00A7B5 !important;
  color: #FFFFFF !important;
}
#masthead::before { display: none !important; }
#masthead .site-branding img.site-logo { width: auto !important; height: 44px !important; margin: 23px 0 !important; }
#masthead a,
#masthead .menu-item a,
#masthead .primary-menu-container a,
#masthead #primary-menu,
#masthead .menu {
  color: #FFFFFF !important;
  text-shadow: none !important;
  font-weight: 600;
}
#masthead a:hover,
#masthead .menu-item a:hover { color: #FFFFFF !important; opacity: .8 !important; }

/* ----------------------------------------------------------------------------
   Programme tabs — two segmented pills above the sticky topbar.
   Active drives the sidebar parent expand/collapse and schedule filter.
   --------------------------------------------------------------------------- */

.programme-tabs {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: calc(100% - var(--s-6) * 2);
  margin: 18px auto 15px;
  padding: 5px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  /* No backdrop-filter here, deliberately. On a real GPU the active tab's
     near-black pill bleeds into this element's filtered layer and paints a
     soft dark band across the last ~3px above the bottom border — only under
     the pill, only in the WP embed, and not reproducible in headless. What the
     blur bought was nothing anyway: the backdrop is the aurora's smooth
     gradient, so blurring it measured a max delta of 3/255 (mean 0.26). The
     glass tint below carries the effect on its own. */
  background: var(--glass-65);
}
.programme-tab {
  display: inline-flex;
  flex: 1 1 0;
  min-width: 0;
  /* Shared, or each tab sizes to its own logo and the two differ by 16px. */
  min-height: 82px;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 8px 24px 8px 22px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink-900);
  cursor: pointer;
  font: inherit;
  transition: background-color 160ms ease, color 160ms ease;
}

/* AT1 is a 1.75:1 landscape lockup and the Festival slot 1.01:1 square, so
   these sizes equalise optical AREA rather than height: 66 / 50 ~= sqrt(1.75 / 1.01). */
.programme-tab__logo {
  display: none;
  height: 50px;
  width: auto;
  flex: 0 0 auto;
}

/* Exclusive, not additive: writing only the .is-active half leaves the
   inactive artwork showing too and the shell jumps on every switch. */
.programme-tab:not(.is-active) .programme-tab__logo--fc { display: block; }
.programme-tab.is-active .programme-tab__logo--rev { display: block; }

/* Festival cycles three venue marks through one fixed 66px slot. Fixed, not
   auto: the three differ in aspect and a shrink-to-fit slot would resize the
   pill on every fade. The AIW pair keeps the --fc/--rev swap above; OCTAVE and
   The Wolfpack ship one artwork each and adapt in CSS. */
.tab-cycle {
  position: relative;
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
}
.tab-cycle__img {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  opacity: 0;
  animation: tab-cycle 13.5s infinite;
}
/* Resting state, for any browser that ends up not running the animation: a
   running animation's value always wins over this, so it costs nothing while
   the cycle turns, and without it that case leaves the slot empty rather than
   simply un-animated. */
.tab-cycle__img--fc,
.tab-cycle__img--rev { opacity: 1; }
.tab-cycle__img--2 { animation-delay: 4.5s; }
.tab-cycle__img--3 { animation-delay: 9s; }
/* visibility, NOT display: an element in display:none runs no animation, so
   revealing one on click restarts its timeline at 0 while slides 2 and 3 are
   still on the page-load clock, and the slides paint out of order. Hidden
   this way it keeps ticking in sync, and the slot is absolute so nothing moves. */
.programme-tab:not(.is-active) .tab-cycle__img--rev,
.programme-tab.is-active .tab-cycle__img--fc { visibility: hidden; }

/* OCTAVE is one flat colour on transparent, so the filter is an exact white
   reversal — no second asset. The Wolfpack is white-on-navy already; on the
   navy pill only the hairline keeps the disc readable as a shape. */
.programme-tab.is-active .tab-cycle__octave { filter: brightness(0) invert(1); }
.tab-cycle__twp { border-radius: 50%; }
.programme-tab.is-active .tab-cycle__twp { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }

/* 3.7s hold, 0.8s fade, three slides = 13.5s. Deliberately NOT gated on
   prefers-reduced-motion: the three marks are the Festival's billing, and a
   reduce-motion visitor would only ever see the first of them. Nothing here
   moves — it is a slow opacity dissolve, which is what makes leaving it on
   defensible where a slide or parallax would not be. The partner carousel in
   the facts panel keeps its own reduce-motion stop. */
@keyframes tab-cycle {
  0%, 100% { opacity: 0; }
  3%, 30%  { opacity: 1; }
  36%      { opacity: 0; }
}

.programme-tab__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  color: currentColor;
  min-width: 0;
}
.programme-tab__eyebrow {
  font-family: var(--font);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.74;
  white-space: nowrap;
  margin-bottom: 3px;
}
.programme-tab__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  white-space: nowrap;
}

.programme-tab:hover:not(.is-active) { background: var(--glass-80); }
.programme-tab.is-active {
  background: var(--steel-700);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.programme-tab:focus-visible {
  outline: 2px solid var(--steel-500);
  outline-offset: 2px;
}

/* Mobile: stack, do not shrink. Two full-size lockups cannot sit side by side
   below 580px, but one per row fits at full size down to 320px — only the
   horizontal padding and gap come in, which cost nothing visually. */
@media (max-width: 580px) {
  .programme-tabs {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: calc(100% - var(--s-4) * 2);
    margin: 14px auto 15px;
    border-radius: 46px;
  }
  .programme-tab {
    width: 100%;
    gap: 12px;
    padding: 8px 16px;
  }
}

/* ----------------------------------------------------------------------------
   Topbar — sticky. Date pills + controls only (Programme h1 is above).
   --------------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color 200ms ease, box-shadow 200ms ease, backdrop-filter 200ms ease;
}
/* On scroll, give the topbar an opaque glass surface so the content
   scrolling beneath it doesn't bleed through. At the top of the page
   (no scroll), it stays fully transparent. */
.topbar.is-scrolled {
  background: transparent;                     /* no fill at all */
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  backdrop-filter: blur(60px) saturate(200%);  /* pure frosted blur, no tint */
  box-shadow: none;
  border: 0;
}

/* In CALENDAR view, on scroll, collapse the filter half of the secondary row:
   category pills, divider and the All-sessions dropdown hide, so the day
   selector + clear filter stay pinned at the top.
   Search and the list/calendar toggle deliberately stay put — they are how you
   navigate away from whatever you scrolled into, so hiding them meant
   scrolling back to the top just to reach them. The filter chips are
   recoverable from the sidebar; these two are not. */
body.view-calendar .topbar.is-scrolled .cat-filter-row,
body.view-calendar .topbar.is-scrolled .cal-venue-slot,
body.view-calendar .topbar.is-scrolled .topbar__divider {
  display: none;
}
body.view-calendar .topbar.is-scrolled .topbar__row {
  row-gap: 0;                                  /* no leftover gap from the hidden row */
  padding-bottom: 4px;
}
.topbar__inner {
  margin: 0 auto;
  padding: 12px var(--s-6) 12px;
}
.topbar__inner { max-width: 1328px; }
/* Topbar row is identical in both views (same max-width + 24px padding) so its
   elements sit in exactly the same place when toggling list <-> calendar. The
   wider calendar grid keeps its own 40px gutters via .layout below. */
.topbar__row {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}
/* Fills whatever the row has left rather than hugging the right edge, so the
   search bar below can stretch into it. flex-grow supersedes the old
   `margin-left: auto` — grow consumes the free space first, leaving an auto
   margin nothing to absorb. Line-breaking uses this block's max-content width,
   so each committed filter chip makes it measure wider until it no longer fits
   beside the day pills and .topbar__row's flex-wrap moves it to its own row. */
.topbar__controls {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
/* ----------------------------------------------------------------------------
   Date nav — horizontal pill row.
   --------------------------------------------------------------------------- */

.day-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}
.day-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 96px;
  padding: 8px 28px 10px;
  border-radius: 999px;          /* full capsule — previous pill shape */
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-900);
  cursor: pointer;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
  position: relative;
}
.day-pill__top {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 5px;
  line-height: 1;
}
/* Hover applies ONLY when the pill is NOT active. Otherwise .day-pill:hover
   wins on specificity over .day-pill--active and you get the white-on-light
   invisibility bug right after toggling. */
.day-pill:hover:not(.day-pill--active) {
  background: var(--glass-65);
  border-color: var(--hairline);
  transform: translateY(-1px);
}
.day-pill--active:hover,
.day-pill--active:focus-visible {
  background: var(--steel-700);
  color: #fff;
}
/* Dates with no sessions yet — greyed and non-interactive until released. */
.day-pill--disabled {
  pointer-events: none;
  opacity: 0.4;
  cursor: default;
}
.day-pill__wd,
.day-pill__mo {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  line-height: 1;
}
.day-pill__num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.day-pill__mo { display: none; }   /* month hidden — pill shows just the date number + weekday */
.day-pill__mo { color: var(--ink-400); }

.day-pill--active {
  background: var(--steel-700);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 18px rgba(44, 42, 41, 0.22),
    0 0 0 1px rgba(0, 167, 181, 0.30);
}
.day-pill--active .day-pill__wd  { color: rgba(255, 255, 255, 0.65); }
.day-pill--active .day-pill__num { color: #fff; }
.day-pill--active .day-pill__mo  { color: rgba(255, 255, 255, 0.55); }
.day-pill--active::after { content: none; }

/* ----------------------------------------------------------------------------
   Controls: search + mode button
   --------------------------------------------------------------------------- */

.search {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 14px 8px 12px;
  border-radius: 18px;
  background: var(--glass-65);
  border: 1px solid var(--hairline);
  color: var(--ink-500);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  min-width: 240px;
  /* Reserve the chip height up front so committing one doesn't resize the bar.
     min- and not a fixed height: once chips wrap to a second line inside the
     bar (narrow screens) it still has to grow. */
  min-height: var(--control-h);
  /* Takes the whole controls block apart from the view toggle. Once the block
     has wrapped to its own row that means the full topbar width, and the tag
     chips below wrap inside the bar instead of pushing it wider. */
  flex: 1 1 auto;
}
.search:focus-within {
  background: var(--glass-80);
  border-color: var(--steel-500);
  box-shadow: none;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink-900);
  flex: 1 1 140px;
  min-width: 100px;
  padding: 0;
}
.search input::placeholder { color: var(--ink-400); }

/* Tag chips — committed search filters living inside the search bar.
   Sit between the search icon and the text input. Whole chip is clickable
   to remove; the inline x icon is a visual cue. */
.search-tags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.search-tags:empty { display: none; }
.search-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  background: rgba(0, 167, 181, 0.10);
  border: 1px solid rgba(0, 167, 181, 0.35);
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.search-tag:hover {
  background: rgba(0, 167, 181, 0.18);
  border-color: var(--amber-500);
}
.search-tag:focus-visible {
  outline: none;
  box-shadow: none;
}
.search-tag--venue {
  background: rgba(0, 119, 136, 0.10);
  border-color: rgba(0, 119, 136, 0.35);
}
.search-tag--venue:hover {
  background: rgba(0, 119, 136, 0.18);
  border-color: var(--steel-500);
}
.search-tag > svg:first-child { color: var(--steel-700); flex: 0 0 12px; }
.search-tag > svg:last-child  { color: var(--ink-500); flex: 0 0 12px; }
.search-tag:hover > svg:last-child { color: var(--ink-800); }
.search-tag__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* The search input sits inside a wrapper; the dropdown is its sibling so we
   can position it absolutely beneath the input. */
.search { position: relative; }
/* Width is set outright rather than tracked off the bar: `min-width: 100%`
   beat the old `max-width: 360px` (min wins over max), so a full-width search
   bar dragged the suggestion panel out to match and left three short rows
   floating in it. Fixed 420px, shrinking only when the bar is narrower. */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 0;
  width: 420px;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  padding: 6px;
  z-index: 80;
  max-height: 380px;
  overflow-y: auto;
}
.search-dropdown[hidden] { display: none; }
.search-dropdown__group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-400);
  padding: 10px 10px 6px;
}
.search-dropdown__group-label + .search-dropdown__group-label { margin-top: 4px; }
.search-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-800);
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.search-dropdown__item:hover,
.search-dropdown__item.is-active {
  background: rgba(0, 167, 181, 0.10);
  color: var(--ink-900);
}
.search-dropdown__item-icon {
  flex: 0 0 14px;
  color: var(--steel-700);
}
.search-dropdown__item-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-dropdown__item-meta {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--ink-400);
}
/* Speaker rows stack name over "organisation · N sessions". Session rows stay
   single-line, so the column layout is scoped to the speaker modifier. */
.search-dropdown__item--speaker { align-items: flex-start; }
.search-dropdown__item--speaker .search-dropdown__item-icon { margin-top: 2px; }
.search-dropdown__item--speaker .search-dropdown__item-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  white-space: normal;
}
.search-dropdown__item-name,
.search-dropdown__item-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-dropdown__item-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-400);
}
.search-dropdown__empty {
  padding: 14px;
  font-size: 13px;
  color: var(--ink-400);
  text-align: center;
}

/* Venue filter chip — sits before the category chips in the topbar. Uses
   a pin icon prefix and an inline ✕ for one-click clear. */
.venue-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--glass-65);
  border: 1px solid var(--steel-500);
  border-radius: 999px;
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.venue-chip:hover {
  background: var(--glass-80);
  border-color: var(--steel-700);
}
.venue-chip:focus-visible {
  outline: none;
  box-shadow: none;
}
.venue-chip > svg:first-child { color: var(--steel-700); flex: 0 0 12px; }
.venue-chip > svg:last-child { color: var(--ink-500); flex: 0 0 12px; }

/* View toggle (List ↔ Calendar) — segmented pill of two icon buttons. */
.view-toggle {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-h);   /* matches the search bar it sits beside */
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--glass-65);
  padding: 2px;
  gap: 0;
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
}
.view-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Sized to fill --control-h: 40 + 2px padding either side + 1px borders =
     46. At 32px the active circle floated in the middle of the taller pill
     with a ring of dead space around it. Mobile already used 40px. */
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-900);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.view-toggle__btn:hover:not(.is-active) {
  background: var(--glass-80);
  transform: translateY(-1px);
}
.view-toggle__btn.is-active {
  background: var(--steel-700);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.view-toggle__btn svg { display: block; flex: 0 0 auto; }
.view-toggle__btn:focus-visible {
  outline: 3px solid var(--steel-500);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------------------
   Layout — sidebar + schedule
   --------------------------------------------------------------------------- */

.layout {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: var(--s-5) var(--s-6) var(--s-8);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
}
body:not(.view-calendar) .layout { max-width: 1328px; }
body.view-calendar .layout { padding-left: 40px; padding-right: 40px; }

@media (max-width: 1023px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------------------
   Sidebar
   --------------------------------------------------------------------------- */

.sidebar {
  position: sticky;
  top: 100px;                              /* sits just below the sticky topbar */
  align-self: start;
  max-height: calc(100vh - 120px);          /* scrolls internally if chips overflow */
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  padding-right: 4px;
  /* Subtle scrollbar so it doesn't fight the aurora canvas */
  scrollbar-width: thin;
  scrollbar-color: rgba(44, 42, 41, 0.20) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(44, 42, 41, 0.20);
  border-radius: 999px;
}
.sidebar::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 1023px) {
  .sidebar { position: static; max-height: none; overflow: visible; }
}

.filter-group {
  margin-bottom: var(--s-5);
}
.filter-group__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: var(--s-2);
}

/* Venue filter group's head row: label on the left, Clear filter on the
   right. The Clear button moved up from the bottom scope row. */
.filter-group--venue .filter-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: var(--s-2);
}
.filter-group--venue .filter-group__head .filter-group__label {
  margin-bottom: 0;
}

/* Collapsible parent group (Forum / Festival) wrapping subsections. */
.filter-group--parent { margin-bottom: var(--s-5); }
.filter-group--parent .filter-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 4px;
  margin-bottom: var(--s-2);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-800);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: color 160ms ease;
}
.filter-group--parent .filter-group__toggle:hover { color: var(--ink-900); }
/* 12px, not 13: "Well-being Economic Festival" is the longest label the
   sidebar carries and wraps to two lines at 13. Both parents share the rule so
   the pair stays matched. */
.filter-group--parent .filter-group__toggle-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-900);
}
.filter-group--parent .filter-group__caret {
  color: var(--ink-500);
  transition: transform 200ms ease;
}
.filter-group--parent .filter-group__toggle[aria-expanded="true"] .filter-group__caret {
  transform: rotate(180deg);
}
.filter-group__body[hidden] { display: none; }
.filter-group--parent .filter-group__body > .filter-group {
  margin-bottom: var(--s-4);
  padding: 12px 12px 14px;
  background: rgba(44, 42, 41, 0.05);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.filter-group--parent .filter-group__body > .filter-group:last-child {
  margin-bottom: 0;
}
.filter-group--parent .filter-group__body > .filter-group > .filter-group__sub-toggle .filter-group__label,
.filter-group--parent .filter-group__body > .filter-group > .filter-group__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-400);
  margin-bottom: 8px;
}

/* Living Habits — steel blue, matching the Partner-led accent. */
.filter-group--living .chip--active {
  background: linear-gradient(135deg, var(--steel-500), var(--steel-700));
  color: #fff;
  border-color: transparent;
}
.filter-group--living .chip--active .chip__icon  { color: #fff; }
.filter-group--living .chip--active .chip__count { color: rgba(255, 255, 255, 0.80); }
.filter-group--living .chip__icon { color: var(--steel-700); }

/* Format — steel blue, matching Living Habits: both describe a Festival
   session's character rather than its price. */
.filter-group--format .chip--active {
  background: linear-gradient(135deg, var(--steel-500), var(--steel-700));
  color: #fff;
  border-color: transparent;
}
.filter-group--format .chip--active .chip__icon { color: #fff; }
.filter-group--format .chip__icon { color: var(--steel-700); }

/* Credit Cost — amber. Cost is a different axis from the taxonomies, and
   amber is already the warm accent carrying the ecosystem group. */
.filter-group--credit .chip--active {
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%);
  color: #fff;
  border-color: transparent;
}
.filter-group--credit .chip--active .chip__icon { color: #fff; }
.filter-group--credit .chip__icon { color: var(--amber-600); }

/* Partner-led active chip — neutral steel fill to keep it distinct from
   the ecosystem (amber) and infrastructure (green) parents. */
.filter-group--partner .chip--active {
  background: linear-gradient(135deg, var(--steel-500), var(--steel-700));
  color: #fff;
  border-color: transparent;
}
.filter-group--partner .chip--active .chip__icon  { color: #fff; }
.filter-group--partner .chip--active .chip__count { color: rgba(255, 255, 255, 0.80); }
.filter-group--partner .chip__icon { color: var(--steel-700); }
/* China at Scale active chip — crimson fill, distinct from partner (steel),
   ecosystem (amber) and infrastructure (green). */
.filter-group--china .chip--active {
  background: linear-gradient(135deg, #C0392B, #8E2A1F);
  color: #fff;
  border-color: transparent;
}
.filter-group--china .chip--active .chip__icon  { color: #fff; }
.filter-group--china .chip--active .chip__count { color: rgba(255, 255, 255, 0.80); }
.filter-group--china .chip__icon { color: #8E2A1F; }

/* China at Scale language badge — shown only on China at Scale sessions to flag
   whether a session is Chinese-only, English-only, or English with live
   Chinese translation. Glyph pills, sized to sit inline in meta rows. */
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  white-space: nowrap;
  /* Flat solid fills + light ring + shadow: legible over any KV, light or dark,
     without depending on the backdrop's brightness. */
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.30), 0 0 0 0.5px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}
.lang-pill--zh   { background: #C0392B; }
.lang-pill--en   { background: #004F59; }
.lang-pill--enzh { background: #8E3B52; }
.modal__facts-lang { display: flex; align-items: center; gap: 8px; }
.modal__facts-lang-text { font-size: 13px; color: var(--steel-700); }
/* Facts-modal language row: solid pill leads, ink-tint description chip follows. */
.modal__facts-row--lang { flex-wrap: wrap; gap: 8px; }
.modal__facts-row--lang .lang-desc {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  background: rgba(44, 42, 41, 0.07);
  color: var(--ink-700);
  border: 1px solid transparent;
}
.modal__facts--on-image .modal__facts-row--lang .lang-desc {
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--glass-55);
  color: var(--ink-800);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
  text-align: left;
}
/* Hover applies ONLY when chip is not active — otherwise the .chip:hover
   selector wins on specificity over .chip--active and you get white text on
   a near-white hover background (the invisibility bug on toggle). */
.chip:hover:not(.chip--active) {
  background: var(--glass-80);
  transform: translateY(-1px);
}
.chip--active {
  background: linear-gradient(135deg, var(--steel-500), var(--steel-700));
  color: #fff;
  border-color: transparent;
}
.chip--active:hover,
.chip--active:focus-visible {
  /* Keep the active fill on hover so text never sits on light glass. */
  filter: brightness(1.05);
}
.chip--active .chip__icon  { color: #fff; }
.chip--active .chip__count { color: rgba(255, 255, 255, 0.75); }

/* Group-specific active state: Ecosystem → amber gradient (matches the
   amber icon colour of the group), Infrastructure → green gradient. */
.filter-group--ecosystem .chip--active {
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%);
  color: #fff;
}
.filter-group--ecosystem .chip--active .chip__icon  { color: #fff; }
.filter-group--ecosystem .chip--active .chip__count { color: rgba(255, 255, 255, 0.80); }

.filter-group--infrastructure .chip--active {
  background: linear-gradient(135deg, #10654B 0%, #0B4A37 100%);
  color: #fff;
}
.filter-group--infrastructure .chip--active .chip__icon  { color: #fff; }
.filter-group--infrastructure .chip--active .chip__count { color: rgba(255, 255, 255, 0.80); }

.chip-col .chip {
  width: 100%;
  justify-content: flex-start;
}

/* Chip icon — colour-coded per group */
.chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: var(--steel-700);
}
.filter-group--ecosystem      .chip__icon { color: var(--amber-500); }
.filter-group--infrastructure .chip__icon { color: #10654B; }   /* leafy green */

.chip__count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-400);
}
.chip--active .chip__count { color: rgba(255, 255, 255, 0.65); }

/* Chip label — only the text may flex, so the "Free" marker beside it can
   never push a chip wider than its column; a long label ellipses instead.
   Applies to the Format / Credit Cost chips, which are the only ones that
   render a separate label span. */
.chip__label {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* "Free" marker. Community Experiences cost 0 credits, so the chip and the
   card badge both say so outright. Green reads as "no cost" against the
   steel/amber filter accents; on an active chip the fill would swallow it,
   so it flips to translucent white the way .chip__count does. */
.chip__free,
.type-free {
  flex: 0 0 auto;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  background: rgba(16, 101, 75, 0.14);
  color: #10654B;
}
/* Sits directly beside the label, not pinned right: with no count on these
   chips a right-pinned marker would read as a separate metric rather than
   part of what the label says. */
.chip__free { font-size: 9px; padding: 1px 5px; line-height: 1.6; }
.type-free  { font-size: 11px; padding: 2px 6px; line-height: 1.5; }
.chip--active .chip__free { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* Price of a place on a Festival card. Amber, matching the Credit Cost filter
   group, so the badge and the chip that selects it read as the same thing;
   the green "Free" marker sits in the same slot for Experiences. */
.type-credit {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  line-height: 1.5;
  border-radius: 3px;
  background: rgba(0, 167, 181, 0.18);
  /* Was #A2560E, which computed 4.64:1 on the card and only 4.45:1 once the
     badge also had to sit on the facts panel's slightly darker ground
     (rgba(44, 42, 41,.025) over white) — under AA for 10px bold, which is not
     "large text" at any weight. #8A4A0C gives 5.87 on the card and 5.62 on the
     panel, and lands within 0.2 of the green Free badge's 5.42 so the pair
     still reads as one family. */
  color: #8A4A0C;
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------------
   Sidebar Venue multi-select
   Trigger holds selected venues as pills (reuses .search-tag--venue).
   Panel reveals a search input + checkbox list of venues.
   ----------------------------------------------------------------------*/
.venue-select { position: relative; }

.venue-select__trigger {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--s-2);
  width: 100%;
  /* Already reserved its own pill height at 40px, so it never bumped — raised
     to the shared token so it matches the search bar and the view toggle. */
  min-height: var(--control-h);
  padding: 4px 14px 4px 12px;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  background: var(--glass-65);
  color: var(--ink-500);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: text;
  transition: background-color 180ms ease, border-color 180ms ease;
  position: relative;
}
.venue-select__trigger.is-filled { cursor: pointer; }
.venue-select__trigger:hover { background: var(--glass-80); }
.venue-select__trigger[aria-expanded="true"] { background: var(--glass-80); }
.venue-select__pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.venue-select__pills::-webkit-scrollbar { display: none; }
.venue-select__pills:empty { display: none; }
.venue-select__pill { flex: 0 0 auto; }
.venue-select__trigger.is-filled .venue-select__input { display: none; }

/* Inline search input lives inside the trigger and grows to fill remaining
   space so any empty area is effectively the input's hit target. Visual
   parity with .search input. */
/* Specificity has to beat input[type=search]{border:1px solid #ccc;...} from
   the WordPress theme stylesheet — otherwise the input renders an inset
   rectangle inside our pill. */
.venue-select__trigger input.venue-select__input,
.venue-select__trigger input[type="search"].venue-select__input,
.venue-select__trigger input[type="text"].venue-select__input {
  flex: 1 1 100px;
  min-width: 80px;
  border: 0;
  outline: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink-900);
  padding: 0;
  border-radius: 0;
  height: auto;
}
.venue-select__trigger input.venue-select__input:focus,
.venue-select__trigger input.venue-select__input:focus-visible { outline: 0; box-shadow: none; }
.venue-select__trigger input.venue-select__input::placeholder { color: var(--ink-400); }
.venue-select__trigger input.venue-select__input::-webkit-search-cancel-button,
.venue-select__trigger input.venue-select__input::-webkit-search-decoration { display: none; appearance: none; -webkit-appearance: none; }

.venue-select__caret-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ink-500);
  cursor: pointer;
  transition: color 160ms ease;
}
@media (max-width: 720px) {
  /* 18x18 is well under the 44px tap-target guideline. Growing the box
     itself would force the venue-select row taller (it's a flex child
     sized by align-items:center), so instead keep the 18x18 box in flow
     (row geometry untouched) and extend the hit area with an invisible
     absolutely-positioned ::after — clicks anywhere in the 44x44 zone
     still land on the button. */
  .venue-select__caret-btn { position: relative; }
  .venue-select__caret-btn::after {
    content: "";
    position: absolute;
    inset: -13px;
  }
}
.venue-select__caret-btn:hover { color: var(--ink-800); }
.venue-select__caret-btn:focus-visible { outline: none; }
.venue-select__caret {
  transition: transform 180ms ease;
}
.venue-select__trigger[aria-expanded="true"] .venue-select__caret {
  transform: rotate(180deg);
}
.venue-select__trigger[aria-expanded="true"] .venue-select__caret-btn {
  color: var(--steel-700);
}

.venue-select__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 70;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  padding: 8px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
}
.venue-select__panel[hidden] { display: none; }

.venue-select__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1 1 auto;
}
/* Row mirrors .search-dropdown__item from the topbar so the two pickers
   feel identical. Click toggles selection. */
.venue-select__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-800);
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.venue-select__item:hover,
.venue-select__item.is-active {
  background: rgba(0, 167, 181, 0.10);
  color: var(--ink-900);
}
.venue-select__item.is-selected {
  background: rgba(0, 119, 136, 0.10);
  color: var(--ink-900);
  font-weight: 600;
}
.venue-select__item.is-selected:hover { background: rgba(0, 119, 136, 0.18); }
.venue-select__item.is-highlighted { background: rgba(0, 167, 181, 0.18); }
.venue-select__item:active { opacity: 0.7; }

.venue-select__clear-row {
  border-top: 1px solid rgba(44, 42, 41, 0.08);
  margin-top: 4px;
  padding-top: 4px;
  list-style: none;
}
.venue-select__clear {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 8px 14px;
  color: var(--steel-700);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.venue-select__clear:hover { color: var(--steel-900); text-decoration-thickness: 2px; }
.venue-select__clear:active { opacity: 0.7; }
.venue-select__item-icon {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: var(--steel-700);
}
.venue-select__item.is-selected .venue-select__item-icon { color: var(--steel-700); }
.venue-select__item-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.venue-select__item-count {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--ink-400);
}
.venue-select__empty {
  padding: 14px;
  font-size: 13px;
  color: var(--ink-400);
  text-align: center;
}

/* Accordion: venues fold into collapsible families (Sanctuary / Impact Lab /
   Impact Forum / Other). Header toggles its body; selected venues show a count
   badge on the header so a collapsed group still signals what's active. */
.venue-select__group-head {
  list-style: none;
  border-top: 1px solid var(--hairline);
  margin-top: 2px;
  padding-top: 2px;
}
.venue-select__group-head:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.venue-select__group-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.venue-select__group-toggle:hover { background: rgba(0, 167, 181, 0.08); }
.venue-select__group-toggle:active { opacity: 0.7; }
.venue-select__group-caret {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: var(--ink-500);
  transition: transform 160ms ease;
}
.venue-select__group-head.is-open .venue-select__group-caret { transform: rotate(180deg); }
.venue-select__group-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.venue-select__group-badge {
  flex: 0 0 auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--steel-700);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.venue-select__group-count {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--ink-400);
}
.venue-select__group-body { list-style: none; }
.venue-select__group-body[hidden] { display: none; }
.venue-select__group-list {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
}
.venue-select__group-list .venue-select__item { padding-left: 24px; }

/* Hide venue pills inside the topbar search bar: venue selection now lives
   entirely in the sidebar trigger so the topbar stays a pure text search.
   Deliberately no --speaker equivalent: speaker chips have no sidebar picker
   to move to, so the topbar is the only place they can live. */
.search .search-tag--venue { display: none; }

.btn-clear {
  background: transparent;
  border: 0;
  padding: 4px 0;
  color: var(--steel-700);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.btn-clear:hover {
  color: var(--steel-900);
  text-decoration-thickness: 2px;
}
.btn-clear:active { opacity: 0.7; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scope row: amber gradient line above (same vocab as the bucket eyebrow),
   then "Showing X of Y sessions" on the left and "Clear filter" on the right. */
.scope-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: 12px;
}
.scope-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg,
    var(--amber-500) 0%,
    rgba(0, 167, 181, 0.65) 35%,
    rgba(0, 167, 181, 0.18) 65%,
    rgba(0, 167, 181, 0) 100%);
}
.scope {
  font-size: 12px;
  color: var(--ink-500);
}
.scope strong {
  color: var(--ink-900);
  font-weight: 700;
}
/* Set when the empty-day rescue widened the view to the whole week. Quieter
   than the count it trails, because it explains the count rather than competing
   with it — the same amber the scope rule above uses, dropped to a weight that
   reads as an aside. */
.scope__note {
  /* Not --amber-600: at 12px it needs 4.5:1 and lands on 2.92 against the page
     ground. #8A4A0C is the same darkened amber .type-credit already uses for
     exactly this reason — 6.25 here. */
  color: #8A4A0C;
  font-weight: 600;
}

/* ----------------------------------------------------------------------------
   Schedule
   --------------------------------------------------------------------------- */

.schedule {
  min-width: 0;
}

.day {
  padding-top: var(--s-4);
  margin-bottom: var(--s-6);
  border-top: 1px solid var(--hairline);
}
.day:first-child { border-top: 0; padding-top: 0; }

.day__heading {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin: 0 0 var(--s-4);
}
.day__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink-900);
  margin: 0;
}
.day__count {
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 500;
}

/* Time-bucket eyebrow — navy uppercase label followed by an amber gradient line
   that fills the remaining row width and fades to transparent on the right. */
.bucket {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 14px 0 10px;
  margin-top: var(--s-4);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-900);
}
.bucket::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    var(--amber-500) 0%,
    rgba(0, 167, 181, 0.65) 35%,
    rgba(0, 167, 181, 0.18) 65%,
    rgba(0, 167, 181, 0) 100%);
}
.bucket:first-child { margin-top: 0; }

/* ----------------------------------------------------------------------------
   Event card  ★ THE IMPORTANT ONE ★
   Flexbox row: time / content / star. No grid. No revert. No !important.
   --------------------------------------------------------------------------- */

.event {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--s-4);
  margin: 10px 0;
  /* Fixed height so the square KV fills the card with no trailing white space.
     Text is clamped (title/desc) to fit. Released to auto on mobile below. */
  height: 168px;
  overflow: hidden;
  padding: var(--s-4);
  background: var(--glass-65);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  transition: background-color 180ms ease, border-color 180ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.event:hover {
  background: var(--glass-80);
  border-color: rgba(44, 42, 41, 0.12);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

/* Key visual: square type image that stretches to the full card height so its
   bottom edge always aligns with the bottom-anchored meta row — equal white
   space beneath both, regardless of title/description length. Width is pinned
   to the content-box height (168px card − 2×16px padding = 136px) to stay
   square. Released to a fixed 84px on mobile below. */
.event__kv {
  flex: 0 0 136px;
  width: 136px;
  align-self: stretch;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  background: var(--glass-80);
  border: 1px solid var(--hairline);
}
.event__kv img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event__time {
  flex: 0 0 88px;
  width: 88px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Left pad so the left-aligned time + icon block reads as visually centered
     in the 88px column (box-sizing: border-box). Tuned to center a 2-icon row
     (2×30px cat + 6px gap = 66px): (88 − 66) / 2 = 11px. Reset on mobile below. */
  padding-top: 2px;
  padding-left: 11px;
  font-variant-numeric: tabular-nums;
}
/* Start/end wrapper — invisible on desktop (stacks like before); becomes the
   glass time pill overlaid on the banner image on mobile. */
.event__time-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.event__time-start {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.2;
}
.event__time-end {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-500);
  line-height: 1.2;
}

.event__content {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* Fill the full card height so the meta row can pin to the bottom. */
  align-self: stretch;
}
.event__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink-900);
  word-wrap: break-word;
  /* Clamp to 2 lines with ellipsis so the fixed card height holds. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event__desc {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-500);
  /* Clamp teaser to 2 lines with ellipsis to fit the fixed card height. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Type row: [type icon] [bold type label] [eco circle] [infra circle]
              · [pin] [venue text]  — all on one wrap-friendly row */
.event__type-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  /* Pin to the bottom of the content column so it aligns with the KV's bottom
     edge. On mobile (height auto) this resolves to no extra space. */
  margin: 2px 0 0;
  margin-top: auto;
  font-size: 14px;
  color: var(--ink-900);
}
.event__type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-700);
  flex: 0 0 auto;
}
.event__type-icon svg { display: block; width: 16px; height: 16px; flex: 0 0 auto; }
.event__type-label {
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink-900);
  flex: 0 0 auto;
}

/* Category row: lives at the bottom of the time column, circles in a single
   horizontal row (side by side, no wrap). */
.event__cat-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  row-gap: 6px;
  margin: 10px 0 0;
  max-width: 102px;
}

/* Category circle — outlined circle, border colour = icon colour.
   Icon inside is the same 16-px SVG the sidebar chip uses, same stroke
   weight, so the two read as the same component at different scales. */
.event__cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid currentColor;
  flex: 0 0 30px;
  box-sizing: border-box;
}
.event__cat svg,
.event__cat .chip__icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: currentColor;
}
.event__cat--eco    { color: var(--amber-500); }   /* amber border + icon */
.event__cat--infra  { color: #10654B; }            /* green border + icon */
.event__cat--living { color: var(--steel-700); }   /* steel blue border + icon */
.event__cat--china  { color: #8E2A1F; }            /* deep red — matches China at Scale filter chip */
/* Overflow chip shown in place of the 4th+ icons (e.g. "+2"). */
.event__cat--more {
  color: var(--ink-500);
  border-color: var(--hairline);
  background: var(--glass-80);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Inline venue inside the type row */
.event__venue-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-500);
  font-size: 14px;
  font-weight: 400;
}
.event__venue-inline svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: var(--ink-400);
}
.event__venue-text { color: var(--ink-500); }
/* Invitation Only — closed-access tag. One rule for every surface: the list
   tile meta row, the calendar card, the modal header and the static session
   page. Pewter outline rather than the amber badge grammar on purpose — the
   provocative statement and the Register CTA are both already amber, and a
   third amber element on one tile stops any of them reading as emphasis.
   #5F6366 on the tile ground is 7.0:1, so it clears AA at 10px bold. */
.inv-only {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 2px 9px 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
  border-radius: 999px;
  color: #5F6366;
  border: 1px solid rgba(71, 85, 105, 0.42);
  background: rgba(255, 255, 255, 0.5);
}
.inv-only__lock { width: 11px; height: 11px; flex: 0 0 11px; }
/* In the modal the tag sits on its own line under the title, so it needs a
   row of its own — without this it stretches to the header's full width.

   The row is a SIBLING of .modal__header, which carries the 32px horizontal
   inset every other child of the panel shares. Without matching that inset the
   tag sat flush to the modal edge, 32px left of the title it belongs to — the
   same bug already documented for .speaker-modal__live above. Offset with a
   margin rather than padding, because the tag's own 2px/9px padding is its
   pill shape. Mirrored at the 720px breakpoint where the header drops to
   22px. */
.modal__inv-row { display: flex; margin: 0 32px; }

.event__meta-sep {
  width: 1px;
  height: 14px;
  background: var(--hairline);
  flex: 0 0 1px;
  display: inline-block;
}

/* Empty state — transparent container, no border, no fill. */
.empty {
  text-align: center;
  padding: 40px 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 20px 0;
}
.empty h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-900);
}
.empty p {
  margin: 0;
  color: var(--ink-500);
}

/* Footer chrome comes from atone-style.min.css; no overrides needed. */

/* ----------------------------------------------------------------------------
   Calendar view — topbar chip row, layout swap, grid, collapsed cards.
   --------------------------------------------------------------------------- */

/* View-mode visibility */
.cat-filter-row,
.day-selector,
.topbar__divider { display: none; }
/* Day-pills now show in both views — the single-select pill row drives
   state.dayIndex in calendar mode too. The legacy multi-day segment bar is
   retired and renders nothing. */
body.view-calendar .sidebar { display: none; }
body.view-calendar .layout  { grid-template-columns: 1fr; }

/* Calendar topbar shares list view's flex row rather than laying out its own
   grid. It used to be `display: grid` with named areas, which placed things
   correctly but could not wrap: a grid track has no equivalent of a flex line
   break, so past the point where list view drops the search block to its own
   full-width row, the bar stayed pinned in its narrow track here and the chips
   wrapped inside it. Toggling views with chips committed moved the bar 625px
   sideways and 69px down. Inheriting the base row means both views break the
   line at the same content width, for the same reason, with no threshold to
   keep in sync.
   Ordering is explicit because DOM order is not visual order: the venue slot
   sits second in the markup but belongs on the last row. Only .cat-filter-row
   needs width: 100% — it fills its line, so the venue slot after it is pushed
   onto a line of its own and centres there. */
body.view-calendar .day-nav          { order: 1; }
body.view-calendar .btn-clear--cal   { order: 2; }
body.view-calendar .topbar__controls { order: 3; }
body.view-calendar .cat-filter-row   { order: 4; width: 100%; }
body.view-calendar .cal-venue-slot   { order: 5; margin-inline: auto; }
/* Legacy multi-day segment bar retired: stays hidden in both views.
   The single-select day-pills (#dayNav) take its place in the calendar
   topbar row. */
.day-selector-wrap { display: none !important; }
.btn-clear--cal    { display: none; }
.topbar__hr        { display: none !important; }
/* Single topbar Clear-filter button, shown in BOTH views in the same spot
   (right after the day pills). Both rows are now flex, so the row's own gap
   sets the spacing on either side of it — no margin of its own, in either
   view. */
.btn-clear--cal:not([hidden]) {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  /* Underlined text rather than a boxed control, so this only sizes the hit
     area — it reads the same, and lines its target up with its neighbours. */
  min-height: var(--control-h);
}
/* Row 1 mirrors list view: pills hug the left, controls fill what's left. */
body.view-calendar .day-nav        { justify-content: flex-start; }

/* Calendar-view venue slot: empty in list mode; in calendar mode it hosts
   the relocated .venue-select element. Sits centered, on its own row
   directly above the chip stack. */
.cal-venue-slot { display: none; }
body.view-calendar .cal-venue-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(260px, 40vw, 420px);
}
body.view-calendar .cal-venue-slot .venue-select { width: 100%; }
/* Three balanced columns: Ecosystems | Infrastructures | (Partner-led + China
   Track stacked). align-items: stretch makes all three columns share the
   tallest height so the row reads as one tidy band. */
body.view-calendar .cat-filter-row  {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
/* Festival tab (Living Habits only) and the no-tab state span the full width. */
body.view-calendar .cat-filter-row .filter-group--living { grid-column: 1 / -1; }

/* Format + Credit Cost as one slim capsule rather than two stretched cards.
   Two and three values are closer in weight to the day pills above than to the
   eight Living Habits, and a card that size left a third of the row empty. */
body.view-calendar .cat-filter-row__strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 16px;
  background: rgba(44, 42, 41, 0.05);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}
.cat-strip__part {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-strip__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  flex: 0 0 auto;
}
.cat-strip__sep {
  width: 1px;
  height: 22px;
  background: rgba(44, 42, 41, 0.13);
  flex: 0 0 auto;
}

/* Third column: Partner-led + China at Scale as two separate stacked cards that
   split the column height evenly, so they stay visually distinct yet balanced. */
body.view-calendar .cat-filter-row__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
body.view-calendar .cat-filter-row__side .cat-filter-row__group { flex: 1 1 0; }

/* Every group is a card matching the list-view sidebar (bg + hairline border). */
body.view-calendar .cat-filter-row__group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px 12px 14px;
  background: rgba(44, 42, 41, 0.05);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
body.view-calendar .cat-filter-row__group .filter-group__label {
  margin: 0;
  text-align: left;
}
/* Chip block fills the card and centers vertically so stretched cards stay tidy. */
body.view-calendar .cat-filter-row__chips {
  display: grid;
  gap: 6px;
  flex: 1 1 auto;
  align-content: center;
}
/* Ecosystems & Infrastructures: 2x2 grid -> identical height. */
body.view-calendar .cat-filter-row .filter-group--ecosystem .cat-filter-row__chips,
body.view-calendar .cat-filter-row .filter-group--infrastructure .cat-filter-row__chips {
  grid-template-columns: 1fr 1fr;
}
/* Partner-led & Journeys sits in the third column, which is the same 1fr as the
   two beside it — so its two chips on one row come out exactly as wide as an
   eco/infra chip rather than stretching the full card. auto-fit rather than a
   fixed 1fr 1fr: between 1024 and ~1180px the third column narrows enough that
   two tracks can no longer hold "Learning Journey", and a fixed pair overflows
   the card. The 156px floor is that chip's min-content width — below it the
   grid drops to one track and the two chips stack, which is what the other
   cards do at those widths anyway. */
body.view-calendar .cat-filter-row .filter-group--partner .cat-filter-row__chips {
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
}
/* Living habits (festival): wider multi-column grid across the full row. */
body.view-calendar .cat-filter-row .filter-group--living .cat-filter-row__chips {
  grid-template-columns: repeat(4, 1fr);
}
/* Full-width chips inside the cards, mirroring the sidebar .chip-col .chip. */
body.view-calendar .cat-filter-row__chips .chip {
  width: 100%;
  justify-content: flex-start;
  white-space: nowrap;
}
.cat-filter-row__sep { display: none !important; }   /* no longer used */
/* Vertical divider retired in the new 3-row calendar topbar layout. */
body.view-calendar .topbar__divider { display: none; }

/* ----- Day selector: pills inside a glass container ------------------- */
.day-selector {
  display: inline-flex;
  align-items: center;
  gap: 12px;                          /* matches calendar grid column gap */
  border: 1px solid var(--hairline);
  background: var(--glass-65);
  padding: 6px 10px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
}
.day-seg {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;                 /* let the grid cell size the pill */
  width: 100%;
  padding: 8px 12px 10px;        /* moderate padding; pill stretches via grid */
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-900);
  cursor: pointer;
  position: relative;
  font-variant-numeric: tabular-nums;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
/* Hairline divider in the gap between two unselected pills. Auto-hides when
   either neighbour fills navy. */
.day-seg + .day-seg::before {
  content: "";
  position: absolute;
  left: -9px;                /* centre of the 18px gap */
  top: 28%;
  bottom: 28%;
  width: 1px;
  background: rgba(44, 42, 41, 0.18);
  pointer-events: none;
}
.day-seg.is-on::before,
.day-seg.is-on + .day-seg::before {
  content: none;
}
.day-seg:hover:not(.is-on) {
  background: var(--glass-65);
  border-color: var(--hairline);
  transform: translateY(-1px);
}
.day-seg.is-on {
  background: var(--steel-700);
  color: #fff;
}
.day-seg.is-on:hover { background: var(--ink-800); }
/* Same typography as .day-pill in list view */
.day-seg__num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.day-seg__wd {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  line-height: 1;
}
.day-seg.is-on .day-seg__num { color: #fff; }
.day-seg.is-on .day-seg__wd  { color: rgba(255, 255, 255, 0.65); }
.day-seg:focus-visible {
  outline: 3px solid var(--steel-500);
  outline-offset: 2px;
  z-index: 1;
}
.day-seg.shake {
  animation: shakeSeg 360ms ease;
}
@keyframes shakeSeg {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-3px); }
  50%      { transform: translateX(3px); }
  75%      { transform: translateX(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .day-seg.shake { animation: none; }
}

.cat-filter-row__group {
  display: flex;
  flex-direction: column;     /* label sits above the chip row */
  align-items: center;        /* center label + chip row in the group */
  gap: 4px;
}
.cat-filter-row__chips {
  display: flex;
  flex-wrap: wrap;            /* let chips flow to multiple rows when overflow */
  align-items: center;
  justify-content: center;    /* center wrapped chips */
  gap: 6px;
}
/* Each chip stays a single line so chips share the same height even when
   labels are long (e.g. "Emotional Centredness"). Long labels grow the
   chip width and the row wraps to the next line instead. */
.cat-filter-row__chips .chip { white-space: nowrap; }
.cat-filter-row__group .filter-group__label {
  margin: 0;                  /* the parent's gap handles spacing */
}
/* Chips in calendar view match list-view chip dimensions. Search keeps its
   full 220 px width (default rule), no calendar-view override. */
.cat-filter-row__sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--hairline);
  margin: 0 4px;
}

/* 5-column day grid */
/* Calendar view: separate sticky head row + horizontally scrollable body.
   Splitting the two lets the venue titles stick to the viewport (sticky needs
   to live outside any horizontal scroll container) while cards scroll left /
   right beneath. ~3.5 columns visible at typical desktop width.

   - .cal-head-row    sticky, transparent at rest, frosted blur on scroll
   - .cal-head-row__viewport  overflow:hidden, mirrors body scrollLeft via JS
   - .cal-head        grid with the same column template as .cal-grid
   - .cal-head__cell  same look as the old in-column title
   - .cal-body-scroller  overflow-x:auto, the only horizontal scroll container
   - .cal-grid        grid only (no overflow), columns set inline by JS
*/
.cal-schedule { position: relative; }

.cal-head-row {
  position: sticky;
  top: 78px;                       /* sits flush under the collapsed topbar */
  z-index: 50;                     /* below the topbar (100) but above all cards */
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: backdrop-filter 200ms ease;
}
body.is-scrolled .cal-head-row {
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  backdrop-filter: blur(60px) saturate(200%);
}
.cal-head-row__viewport {
  overflow: hidden;
}
.cal-head {
  display: grid;
  gap: 12px;
  padding: 10px 0 12px;
}
.cal-head__cell {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  padding: 0 4px;
}
.cal-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 0 1 auto;
}
.cal-head__count {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0.01em;
  flex: 0 0 auto;
}

.cal-body-scroller {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
}
.cal-grid {
  display: grid;
  gap: 12px;
}
.cal-day {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
/* Day column header — sticks below the (collapsed) topbar when the column
   scrolls. Mirrors the topbar's scroll behaviour: transparent + no blur at
   rest, frosted blur only when the page is scrolled. The `top` accounts
   for the collapsed topbar height (~80 px) plus a small breathing gap. */
/* Venue column header — sticks flush against the collapsed topbar so no
   transparent gap appears above the venue name when scrolling. */
.cal-day__header {
  position: sticky;
  top: 64px;                  /* collapsed topbar bottom, no breathing gap */
  z-index: 6;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 4px 10px;
  margin-bottom: 12px;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  color: var(--ink-900);
  border-radius: 0;
  box-shadow: none;
  transition: backdrop-filter 200ms ease;
}
body.is-scrolled .cal-day__header {
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  backdrop-filter: blur(60px) saturate(200%);
}
.cal-day__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink-900);
}
.cal-day__count {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0.01em;
}

/* Whole-week calendar: one venue grid per day, stacked under a day heading.
   The heading is static here on purpose — .cal-head-row already sticks at
   78px and .cal-day__header would stick at 64px, so with the heading ~46px
   tall the two bands would overlap. Static keeps one sticky row per day. */
.cal-daygroup + .cal-daygroup { margin-top: 44px; }
.cal-daygroup .cal-day__header {
  position: static;
  margin-bottom: 8px;
}
.cal-day__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Time bands ---------------------------------------------------------------
   The day is three grids stacked, not one: Morning, Afternoon, Evening. Every
   venue's Morning cell starts on the same line, so Afternoon begins below the
   longest morning column instead of wherever each column happened to reach.
   The bands keep the .cal-grid class so they inherit the shared template, the
   gap, and the <=1023px single-column collapse.

   A band renders only when it holds sessions, so an early-finishing day shows
   no empty Evening. Sessions are filed by START time (bucketOf in app.js): a
   session running 09:00-18:00 sits in Morning and appears nowhere else. */
.cal-band {
  align-content: start;
}
.cal-band + .cal-band { margin-top: 18px; }
.cal-band--morning   { --tod-hue: var(--tod-morning); }
.cal-band--afternoon { --tod-hue: var(--tod-afternoon); }
.cal-band--evening   { --tod-hue: var(--tod-evening); }

/* The band's one surface: the same soft pewter wash on all three, so the bar
   separates the sections without spending a hue on each. It spans every column,
   so with many venues it runs well past the right edge — hence the label sticks
   to the left of the horizontal scroller. */
.cal-band__head {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  padding: 9px 0;
  border-radius: 10px;
  background: linear-gradient(90deg,
    rgba(var(--pewter-500-rgb), 0.20) 0%,
    rgba(var(--pewter-500-rgb), 0.12) 38%,
    rgba(var(--pewter-500-rgb), 0.05) 100%);
  box-shadow: inset 0 0 0 1px rgba(var(--pewter-500-rgb), 0.26);
}
.cal-band__label {
  position: sticky;
  left: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 0 14px;
  color: var(--tod-hue);
}
.cal-band__label svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  align-self: center;
}
/* The band name sits on its own tint — the one place a mid-saturation hue can
   drop below comfortable contrast — so it takes ink rather than the hue. */
.cal-band__name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-900);
}
.cal-band__meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-700);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
/* Cells hug the top of their band: a venue with one morning session shows one
   card and stops, rather than stretching to the height of the busiest column. */
.cal-band > .cal-day { align-self: start; }
/* A venue with nothing in this band. Kept visible on desktop so the eye can
   follow a column through a band it sits out; hidden below 1024px, where the
   grid is one column and there is no alignment left to carry. */
.cal-day--empty {
  min-height: 46px;
  border-radius: 12px;
  border: 1px dashed rgba(44, 42, 41, 0.10);
  background: repeating-linear-gradient(-45deg,
    rgba(44, 42, 41, 0.04) 0 6px,
    transparent 6px 12px);
}
.cal-day__empty {
  font-size: 12px;
  color: var(--ink-400);
  text-align: center;
  padding: 16px 8px;
  border: 1px dashed var(--hairline);
  border-radius: 12px;
}

/* Calendar event card — collapsed by default */
.cal-event {
  position: relative;
  background: var(--glass-65);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  outline: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 200ms ease;
}
.cal-event:hover {
  background: var(--glass-80);
  border-color: rgba(44, 42, 41, 0.12);
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}
.cal-event:focus-visible {
  outline: 3px solid var(--steel-500);
  outline-offset: 2px;
}
.cal-event__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
/* Time-of-day glyph. It carries its band's hue and it is the only place on the
   card that does — the smallest coloured area that can name the part of day,
   and one already shaped like its meaning, so the card still reads if the
   colour doesn't. Falls back to ink if a card ever renders outside a band. */
.cal-event__tod {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--tod-hue, var(--ink-500));
}
.cal-event__tod svg {
  width: 15px;
  height: 15px;
  display: block;
}
.cal-event__time {
  font-size: 17px;                /* matches list view's .event__time-start */
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.cal-event__title {
  margin: 4px 0 0;
  font-size: 18px;                /* matches list view's .event__title */
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--ink-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Expanded calendar card */
.cal-event.is-expanded {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(44, 42, 41, 0.14);
  box-shadow: var(--shadow-2);
}
.cal-event.is-expanded .cal-event__title {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.cal-event__details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* "Learn more →" — sits on the meta row, pushed to the right edge so it
   sits opposite the category circles + venue. Placeholder link
   (no destination wired yet; click handled inline). */
.cal-event__learn-more {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--steel-700);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 160ms ease, transform 160ms ease;
}
.cal-event__learn-more:hover {
  color: var(--ink-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cal-event__learn-more span {
  display: inline-block;
  text-decoration: none;       /* arrow never underlined, only the text */
  transition: transform 160ms ease;
}
.cal-event__learn-more:hover span { transform: translateX(2px); }
/* "until 5:30 PM" — sits next to the start time on the left, only visible
   when the card is expanded. Star stays on the right. */
.cal-event__time-end {
  display: none;
  margin-left: 6px;
  font-size: 15px;               /* matches list view's .event__time-end */
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.cal-event.is-expanded .cal-event__time-end {
  display: inline;
}
.cal-event__head {
  /* time + time-end huddle on the left */
  justify-content: flex-start;
}
.cal-event__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-500);
  text-align: left;
}
/* Cap calendar-card teaser at 4 lines. The modal's about-card uses the
   same class for prose paragraphs — those reset to natural flow below. */
.cal-event__details > .cal-event__desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Modal about paragraphs override the clamp — they need full flow. */
.modal__about-card .cal-event__desc {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.cal-event__cats { display: inline-flex; gap: 6px; }

/* Combined meta row: category circles + venue on the same line. */
.cal-event__meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-500);
}
.cal-event__meta-row svg { flex: 0 0 auto; color: var(--ink-400); }
.cal-event__meta-row .event__cat svg { color: currentColor; }   /* keep circle icon coloured per category */
/* Type meta — always visible in both collapsed and expanded states */
.cal-event__type {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  row-gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-500);
}
.cal-event__type-icon { display: inline-flex; align-items: center; color: var(--ink-700); flex: 0 0 auto; }
.cal-event__type-icon svg { width: 14px; height: 14px; flex: 0 0 auto; }
.cal-event__type-label { color: var(--ink-900); font-weight: 700; }

/* Venue row — only inside details (expanded state) */
.cal-event__venue-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-500);
}
.cal-event__venue-row svg { flex: 0 0 14px; width: 14px; height: 14px; color: var(--ink-400); }
.cal-event__venue { color: var(--ink-500); }

/* Tablet / narrow desktop: keep the same min-width minmax so column widths
   stay readable. Excess venues scroll horizontally via .cal-grid overflow-x. */
@media (max-width: 720px) {
  /* Sticky day headers sit under the topbar. They're only visibly relevant
     once the page (and topbar) is scrolled, so this targets the collapsed
     scrolled topbar height (~56-60px) rather than the full ~116px bar. */
  .cal-day__header { top: 60px; }
}

/* ----------------------------------------------------------------------------
   Session detail modal
   --------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
/* Embedded: while a modal is open the parent page promotes the iframe itself
   to a fixed fullscreen overlay (see embed-parent.js), so the frame's viewport
   IS the reader's screen and the default `position: fixed` centring — plus all
   the dvh caps and short-viewport media queries below — apply natively. */
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 42, 41, 0.45);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  backdrop-filter: blur(8px) saturate(180%);
  animation: modalBackdropIn 200ms ease-out;
}
.modal__panel {
  position: relative;
  background: rgb(var(--modal-surface-rgb));
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  width: 100%;
  max-width: 1200px;               /* extra-wide modal */
  min-height: min(80vh, 720px);
  min-height: min(80dvh, 720px);
  max-height: min(92vh, 960px);
  max-height: min(92dvh, 960px);
  overflow: hidden;                 /* panel never scrolls; only right column does */
  outline: 0;
  animation: modalPanelIn 220ms cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
}
/* A speaker with no linked sessions has only a portrait + short bio, which
   can't fill the tall session-modal min-height — that left dead space under
   the bio. Let the panel shrink to its content. When sessions are wired up
   the --no-sessions modifier drops off and the fixed height returns. */
.modal__panel:has(.modal__layout--speaker--no-sessions) {
  min-height: 0;
}
.modal__layout {
  flex: 1 1 auto;
  min-height: 0;                    /* allow children with overflow to shrink */
}
.modal__content-scroll {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;                 /* children own their scroll; panel height stays viewport-bound */
}
/* Dividers + speakers stay pinned; only the About body absorbs overflow. */
.modal__content-scroll > .modal__divider,
.modal__content-scroll > .modal__speakers { flex: 0 0 auto; }
/* About body shrinks and scrolls when its content is long, so a heavy
   programme description never pushes the modal past the viewport and the
   Impact Architects row below it stays visible. */
.modal__content-scroll > .modal__body {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
}
/* Short viewports: there isn't enough vertical room to pin the Impact Architects
   row AND keep the programme narrative readable — pinning would squeeze the About
   section to nothing. Below this height the modal becomes ONE scroll: the hero /
   facts column and the content column scroll together as a single unit (rather than
   each scrolling independently). The whole panel is the scroller; the inner scroll
   regions are turned off so nothing is clipped and the About text is never lost. */
@media (max-height: 640px) {
  .modal__panel { overflow-y: auto; }                 /* the panel is the single scroller */
  .modal__layout { min-height: min-content; }         /* grid grows to content → panel scrolls */
  .modal__content-scroll { flex: 0 0 auto; overflow: visible; }
  .modal__content-scroll > .modal__body { flex: 0 0 auto; overflow-y: visible; }
  .modal__facts { overflow: visible; }                /* no separate left-column scroll */
  .speaker-modal__image-col { overflow: visible; }    /* panel is the single scroller */
  /* Keep the title bar (with star / close) pinned while the hero + content
     scroll together beneath it, so the modal stays closable mid-scroll. */
  .modal__top {
    position: sticky;
    top: 0;
    z-index: 4;
    background: rgb(var(--modal-surface-rgb));
  }
}
/* Portrait phones: the hero/facts block and the content column stack
   vertically (see the max-width:720 layout block further down), so combined
   content height regularly exceeds the panel's viewport-bound max-height even
   when the viewport itself is tall. Same fix as the max-height:640 case above:
   make the panel the single scroller instead of a fixed-height box that clips
   most of the content. */
@media (max-width: 720px) {
  .modal__panel { overflow-y: auto; }                 /* the panel is the single scroller */
  .modal__layout { min-height: min-content; }         /* grid grows to content → panel scrolls */
  .modal__content-scroll { flex: 0 0 auto; overflow: visible; }
  .modal__content-scroll > .modal__body { flex: 0 0 auto; overflow-y: visible; }
  .modal__facts { overflow: visible; }                /* no separate left-column scroll */
  .speaker-modal__image-col { overflow: visible; }    /* panel is the single scroller */
  /* The title bar sits mid-content once the hero stacks above it, so sticky
     positioning (used at max-height:640) can't keep it pinned here. Instead
     float the close button at the panel's top-right corner — .modal__panel
     is the nearest positioned ancestor — so it's visible the instant the
     modal opens. It scrolls away as the user reads; backdrop click and Esc
     remain available throughout. */
  .modal__panel .modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: var(--shadow-2, 0 2px 8px rgba(44, 42, 41, 0.18));
  }
  /* The base hover/focus washes are 6–10% dark over transparent — over the
     hero image that erases the pill. Keep the pill opaque in those states. */
  .modal__panel .modal__close:hover { background: #fff; }
  .modal__panel .modal__close:focus-visible { background: #fff; }
}
.modal__layout--with-image .modal__content-col,
.modal__layout--plain .modal__content-col,
.modal__layout--speaker .modal__content-col {
  min-height: 0;
}

/* Brand accent: thin amber gradient stripe pinned to the panel top edge.
   Sticky so it stays visible when modal content scrolls. Same vocabulary
   as the dark prototype's modal accent. */
.modal__panel::before {
  content: "";
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: -1px;
  background: linear-gradient(90deg,
    var(--amber-500) 0%,
    rgba(246, 165, 92, 0.65) 35%,
    rgba(246, 165, 92, 0.18) 65%,
    transparent 100%);
  z-index: 5;
  pointer-events: none;
}
@keyframes modalBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalPanelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .modal__backdrop, .modal__panel { animation: none; }
}

/* Modal layout — reuses calendar card classes throughout. Only modal-specific
   chrome lives here. */

/* Top region: title + meta. */
.modal__top { display: block; }
.modal__top-content { display: block; }

/* With-image variant: 2-column grid wraps the entire modal content. Image
   occupies a tall left column; the right column carries every section
   (title block, body, dividers, speakers, footer). The grid sets a min
   height so the image has presence; the no-image variant stays compact. */
.modal__layout--with-image {
  display: grid;
  grid-template-columns: minmax(280px, 34%) 1fr;
  align-items: stretch;
}

.modal__layout--with-image .modal__content-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Right column uses the same 32px section padding as the plain variant
   so ABOUT / SPEAKERS / Register align across both modals. */

/* Anchor the Register button to the bottom of the column so it sits flush
   with the image's bottom edge when content is shorter than the panel. */
.modal__layout--with-image .modal__footer,
.modal__layout--plain .modal__footer {
  margin-top: auto;
}

/* Plain variant: 2-col grid like the with-image variant, but the left
   column hosts a "facts" panel (type + date/time + venue + categories)
   instead of an image. Same 38/62 split → visual parity. */
.modal__layout--plain {
  display: grid;
  grid-template-columns: minmax(280px, 34%) 1fr;
  align-items: stretch;
}
.modal__layout--plain .modal__content-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Facts column — vertical info stack on the left. Tinted surface +
   right hairline so it reads as a defined aside, not floating text. */
.modal__facts {
  display: flex;
  flex-direction: column;
  padding: 26px 22px 24px 28px;
  gap: 21px;
  min-width: 0;
  background: rgba(44, 42, 41, 0.025);
  border-right: 1px solid var(--hairline-soft);
}
/* Compact type header — horizontal icon + label with a thin amber divider. */
.modal__facts-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  position: relative;
}
.modal__facts-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg,
    var(--amber-500) 0%,
    rgba(246, 165, 92, 0.5) 38%,
    transparent 88%);
}
.modal__facts-head-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--steel-700);
}
.modal__facts-head-icon svg { width: 18px; height: 18px; }
.modal__facts-head-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-900);
}
/* Enlarged date anchor — big date line + time on its own line below. */
.modal__facts-date-main {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.modal__facts-date-time {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-500);
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
/* Labeled section block + small uppercase label (categories has no label). */
.modal__facts-block {
  display: flex;
  flex-direction: column;
}
.modal__facts-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 7px;
}
/* Compact value rows (venue keeps a pin; language is text). */
.modal__facts-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ink-700);
}
.modal__facts-row svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--ink-400);
}
/* Categories as wrapping colored chips (icon + full name); no leading label. */
.modal__facts-cats {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.modal__facts-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink-700);
}
.modal__facts-cat svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
/* Tint the category icon per type to match the event-card color language
   (eco amber, infra green, living steel). Text stays neutral. */
.modal__facts-cat--eco svg    { color: var(--amber-500); }
.modal__facts-cat--infra svg  { color: #10654B; }
.modal__facts-cat--living svg { color: var(--steel-700); }
.modal__facts-cat--china svg  { color: #8E2A1F; }

/* Partner logo — enlarged in the compact layout. */
.modal__facts-partner {
  display: flex;
  align-items: center;
  min-height: 58px;
}
.modal__facts-partner img {
  max-height: 58px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Footer cluster — share icons + Register, pinned to the bottom. */
.modal__facts-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
/* Text fallback when a partner has no logo file. */
.modal__facts-partner-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--steel-700);
  max-width: 100%;
}

/* Partner crossfade carousel — each page of logos occupies the same grid cell
   (so the viewport sizes to the tallest page) and dissolves in place between
   swaps. JS (initPartnerCarousel) builds the pages and toggles .is-active. */
.modal__partners-viewport { overflow: hidden; }
.modal__partners-row { display: grid; }
.modal__partners-page {
  grid-area: 1 / 1;            /* stack every page in one cell */
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transition: opacity 600ms ease;
}
.modal__partners-page.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .modal__partners-page { transition: none; }
}

/* Secondary CTA anchored to the bottom of the facts column. Mirrors the
   Register button's bottom anchor in the content column. */
.modal__facts-cta {
  /* Pinned via .modal__facts-foot now; no own top spacing. */
}
/* Closed session with no link: no button is rendered, but its slot stays
   reserved so the bottom-pinned share block holds the same height as on
   every other session. 45px = .btn-register's rendered box (12px padding
   ×2 + 21px line box); the foot's 13px gap applies to the spacer just as
   it did to the button, restoring the full 58px. */
.modal__facts-cta--reserve { height: 45px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 22px;
  background: transparent;
  color: var(--ink-800);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn-ghost:hover {
  background: rgba(44, 42, 41, 0.04);
  border-color: var(--ink-300);
  color: var(--ink-900);
}
.btn-ghost:focus-visible {
  outline: none;
  box-shadow: none;
}
.btn-ghost svg { color: var(--steel-700); flex: 0 0 14px; }

/* Inline ghost variant for the footer — auto width, light grey border,
   text colour matches the plain variant's Add to Calendar. */
.btn-ghost--soft {
  width: auto;
  color: var(--ink-800);
  border-color: var(--ink-300);
}
.btn-ghost--soft:hover {
  background: rgba(44, 42, 41, 0.04);
  border-color: var(--ink-500);
  color: var(--ink-900);
}
.btn-ghost--soft svg { color: var(--steel-700); }

/* ---- Share section — sits inside the facts column, so it inherits the
   facts column's 40px left padding. No additional padding override here. ---- */
.modal__share-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 12px;
}
.modal__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-700);
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}
.modal__share-btn:hover {
  background: rgba(44, 42, 41, 0.04);
  color: var(--ink-900);
}
.modal__share-btn:focus-visible {
  outline: none;
  background: rgba(0, 167, 181, 0.10);
  box-shadow: none;
}

/* Click-to-copy link pill — the entire pill is the button. Shows the full
   session URL; click copies it and flashes the amber "copied" state. */
.modal__share-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: rgba(44, 42, 41, 0.03);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink-700);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.modal__share-link:hover {
  background: rgba(44, 42, 41, 0.06);
  border-color: var(--ink-300);
  color: var(--ink-900);
}
.modal__share-link.is-copied {
  background: rgba(0, 167, 181, 0.10);
  border-color: var(--amber-500);
  color: var(--ink-900);
}
.modal__share-link:focus-visible {
  outline: none;
  box-shadow: none;
}
.modal__share-link svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: var(--steel-700);
}
.modal__share-link-text {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
/* Default shows the link + trailing copy icons; on copy, swap link→check and
   drop the trailing copy icon (the text reads "Copied to clipboard"). */
.modal__share-link-check { display: none; }
.modal__share-link.is-copied .modal__share-link-ico,
.modal__share-link.is-copied .modal__share-link-copy { display: none; }
.modal__share-link.is-copied .modal__share-link-check { display: block; color: var(--amber-600); }

/* On-image overrides — share lives inside the facts column overlay. */
/* Partner logos over the dark hero scrim: sit each on a white chip so any
   logo (incl. dark-ink marks) stays legible. */
/* The logos are tight-cropped to their alpha bbox, so they carry no internal
   margin — this padding is the only breathing room the plate has, and at the old
   6px a 58px-tall mark sat 6px off the plate edge and read as crammed.
   min-height pins EVERY plate to one height: the tile shrink-wraps its logo (it
   is a row flex item inside .modal__partners-page), so without it the white plate
   changed height as well as width on every crossfade — the most visible motion in
   the panel.
   106px = build_sessions.LOGO_CAP_H (86) + this 20px of vertical padding. The two
   are locked together: raise the cap so squarish and portrait marks can grow and
   this MUST rise with it, or the tallest logo gets no padding at all. */
.modal__facts--on-image .modal__facts-partner {
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 106px;
  /* The card WIDTH stays dynamic — it shrink-wraps its logo, because the tile is
     a row flex item. A fixed full-width card was tried and rejected: it is the
     logos that should read consistently, not the container. What makes a wide
     mark stop dominating is its SIZE, and build_sessions now solves each logo
     for a constant ink so that is handled there rather than here.
     Logos stay left-aligned (flex-start, the default) so every card starts on
     the same edge as the labels above it — do not add justify-content here. */
}
.modal__facts--on-image .modal__share-btn {
  color: rgba(255, 255, 255, 0.85);
}
.modal__facts--on-image .modal__share-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
/* Copy-link pill over the dark hero: white glass so the URL stays legible. */
.modal__facts--on-image .modal__share-link {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.92);
}
.modal__facts--on-image .modal__share-link svg { color: rgba(255, 255, 255, 0.85); }
.modal__facts--on-image .modal__share-link:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.modal__facts--on-image .modal__share-link.is-copied {
  background: rgba(0, 167, 181, 0.28);
  border-color: var(--amber-500);
  color: #fff;
}
.modal__facts--on-image .modal__share-link.is-copied .modal__share-link-check { color: #fff; }

/* --- Facts overlay on a hero image: white text, transparent surface --- */
.modal__facts--on-image {
  background: transparent;
  border-right: 0;
}
.modal__facts--on-image .modal__facts-head-icon { color: #fff; }
.modal__facts--on-image .modal__facts-head-label,
.modal__facts--on-image .modal__facts-date-main,
.modal__facts--on-image .modal__facts-row,
.modal__facts--on-image .modal__facts-cat {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
/* Cost badge on the KV overlay: an OPAQUE chip, not the tinted one.
   Everything else here turns white because it sits on artwork; the badge kept
   its dark ink on a translucent tint, which then composited onto artwork *plus*
   the hero scrim — a dark ground under dark ink. Measured: 1.10:1 on a mid-tone
   KV, 2.13 on a dark one, 1.74 on a white one, and 1.89 on the phone, where the
   scrim is off and the panel is a solid ink-900 card. Every case failed and the
   worst was invisible.
   A white chip swaps an unknown ground for a known one, so the price reads the
   same over any image, at any width, for any future KV: 6.85:1 for credits and
   7.03:1 for Free. The shadow keeps the chip's edge on pale artwork, where a
   white-on-white boundary would otherwise vanish — the text is what carries the
   meaning, so the edge only has to be findable, not measurable.
   Static pages deliberately keep the tinted default: their facts card sits on a
   near-white panel, never on a photo. */
.modal__facts--on-image .type-free,
.modal__facts--on-image .type-credit {
  background: #fff;
  text-shadow: none;
  box-shadow: 0 1px 4px rgba(44, 42, 41, 0.35);
}
.modal__facts--on-image .modal__facts-date-time {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.modal__facts--on-image .modal__facts-label {
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.modal__facts--on-image .modal__facts-row svg {
  color: rgba(255, 255, 255, 0.8);
}
/* Category icons keep a (lifted) colour for legibility on the dark hero. */
.modal__facts--on-image .modal__facts-cat--eco svg    { color: #FFC489; }
.modal__facts--on-image .modal__facts-cat--infra svg  { color: #7FD9BC; }
.modal__facts--on-image .modal__facts-cat--living svg { color: #99DCE1; }
.modal__facts--on-image .modal__facts-cat--china svg  { color: #F0A99E; }

/* Ghost button on a dark image background — uses a translucent dark fill
   plus backdrop blur so contrast holds even where the scrim fades. */
.btn-ghost--on-image {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(44, 42, 41, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-ghost--on-image:hover {
  background: rgba(44, 42, 41, 0.55);
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}
.btn-ghost--on-image svg { color: rgba(255, 255, 255, 0.9); }

/* Plain variant: header padding-top to match with-image rhythm. */
.modal__layout--plain .modal__header { padding-top: 32px; }
.modal__layout--plain .modal__divider { margin-top: 22px; margin-bottom: 22px; }

/* A touch more vertical breathing now that the panel runs taller. */
.modal__layout--with-image .modal__header { padding-top: 32px; }
.modal__layout--with-image .modal__divider { margin-top: 22px; margin-bottom: 22px; }

/* ---- Speaker bio modal ----------------------------------------------------
   Same envelope as the event modal (panel size, amber stripe, border).
   2-column grid: square portrait + sessions on the left, bio on the right. */
.modal__layout--speaker {
  display: grid;
  grid-template-columns: minmax(320px, 38%) 1fr;
  align-items: stretch;
  gap: 0;
}
.speaker-modal__image-col {
  padding: 40px 24px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  /* The session-card list can outgrow the fixed-height panel — let this
     column scroll on its own (desktop; stacked mobile layouts override). */
  min-height: 0;
  overflow-y: auto;
}
.speaker-modal__portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(44, 42, 41, 0.04);
  /* The image column scrolls; without this the portrait is a shrinkable
     flex item and gets squashed flat by a long session list. */
  flex: 0 0 auto;
}
.speaker-modal__portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.speaker-modal__portrait-img--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--steel-700);
  background: var(--glass-65);
}
.speaker-modal__sessions { display: block; }
/* Sessions render twice (image column / after the bio); desktop shows the
   image-column copy, stacked mobile shows the in-body copy. */
.speaker-modal__sessions--mobile { display: none; }
/* Session cards — same design as the static speaker pages: amber date chip
   + clamped title in a glass box. */
.speaker-modal__session-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.speaker-modal__session-link {
  display: block;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--glass-65);
  text-decoration: none;
  transition: background-color 150ms ease;
}
.speaker-modal__session-link:hover { background: var(--glass-80); }
.speaker-modal__session-when {
  display: block;
  font-size: 11px;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--amber-600);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.speaker-modal__session-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink-900);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.4;
}
/* A steward with seven programmes runs them across three rooms; the card gave
   no clue which. */
.speaker-modal__session-room {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-500);
}
/* Speaking / Facilitating groups. Only the ones a person has are rendered, so
   a single-role profile looks exactly as it did, one heading and one list. */
.speaker-modal__group + .speaker-modal__group { margin-top: 22px; }
.modal__about-count {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--amber-600);
  background: rgba(0, 119, 136, 0.11);
  font-variant-numeric: tabular-nums;
}
/* Pin each heading while its own cards scroll under it.
   Scoped to the one case where .speaker-modal__image-col is itself the
   scroller. Below either breakpoint the whole panel scrolls instead (see the
   max-height:640 / max-width:720 blocks), .modal__top is sticky at top:0
   there, and a second sticky element at the same offset would slide under the
   title bar. */
@media (min-width: 721px) and (min-height: 641px) {
  .speaker-modal__sessions--desktop .modal__about-label {
    position: sticky;
    top: 0;
    z-index: 1;
    /* Opaque, or cards show through as they pass beneath. Matches the modal
       surface rather than the glass tokens — this sits on the panel, not on
       the aurora canvas. */
    background: rgb(var(--modal-surface-rgb));
    /* The band is padding, so the text keeps its position; the top margin
       cancels the padding above and the bottom margin absorbs the padding
       below. NOT margin-block: it would overwrite the 12px margin-bottom this
       class already carries and drag the first card up under the heading. */
    padding-block: 6px;
    margin-top: -6px;
    margin-bottom: 6px;
  }
}

.modal__layout--speaker .modal__content-col {
  padding-top: 8px;
  /* Flex column like the other variants, so .modal__content-scroll >
     .modal__body gets a bounded height and a long bio scrolls instead of
     overflowing the panel. */
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.modal__layout--speaker .modal__header { padding-top: 32px; padding-bottom: 4px; }
.modal__top-content > .speaker-modal__bar + .modal__header { padding-top: 10px; }
/* Role (Impact Architect / Practitioner) sits under the name in sentence case:
   TPC keeps tracked capitals to the homepage hero line (DESIGN.md). */
.modal__layout--speaker .speaker-modal__role {
  padding: 6px 32px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-500);
}
.modal__layout--speaker .speaker-modal__role-eyebrow {
  padding: 32px 32px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 4px;
}
.modal__layout--speaker .modal__top-content > .speaker-modal__affil {
  padding: 0 32px 0;
  font-size: 16px;
  color: var(--steel-500);
  margin-top: 2px;
}
/* The participation pill sits below the name + affiliation, above the bio.
   Every other child of .modal__top-content carries its own 32px inset (the bar,
   the eyebrow, .modal__header, the affiliation); the pill had none, so it sat
   flush to the modal edge, out of line with the name/affiliation/bio. Offset
   with a margin rather than padding — the pill's own 5px/12px padding is its
   shape. The 14px top clears the affiliation; note this shorthand also has to
   restate the base rule's margin-top, which a bare `margin: 0 32px` silently
   zeroed and left the pill crowded against its neighbour.
   Scoped to this context because .speaker-modal__live is shared with the static
   speaker page, where .sk-right already provides the inset. */
.modal__layout--speaker .modal__top-content > .speaker-modal__live {
  margin: 14px 32px 0;
}
.modal__layout--speaker .modal__body { padding-top: 24px; padding-bottom: 32px; }
.modal__layout--speaker .modal__footer { margin-top: auto; }

/* Back link — sits in the speaker-modal top bar (Back left, Close right),
   above the eyebrow, so it no longer offsets the title's left alignment.
   Plain underlined text, not a pill. */
.modal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 160ms ease;
  flex: 0 0 auto;
}
.modal__back:hover {
  color: var(--ink-900);
}
.modal__back:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Speaker-modal top bar: Back (left) + Close (right). Keeps the eyebrow, name
   and affiliation below sharing one left edge — Back no longer sits inline with
   the title. Scoped to the modal because the bar element only exists here (the
   routed profile page uses its own .speaker-page__bar instead). */
.speaker-modal__bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 18px 18px 0 32px;
}
.speaker-modal__bar .modal__close { margin-left: auto; }
.modal__top-content > .speaker-modal__bar + .speaker-modal__role-eyebrow {
  padding-top: 10px;
}

/* Hero image — fills the left column at full panel height. Background
   matches the modal surface so the masked image dissolves cleanly into it
   (no fallback gradient peeking through the transparent edge). */
.modal__hero {
  position: relative;
  background: rgb(var(--modal-surface-rgb));
  overflow: hidden;
}
.modal__hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

.modal__layout--with-image .modal__hero {
  height: 100%;
  border-radius: 20px 0 0 20px;
}

/* Dark gradient scrim on the image so overlaid white text reads against
   varying tones. Holds darkness across the left two-thirds (where facts
   content sits), then fades fast so the image's right-edge mask can still
   dissolve into the modal surface. */
.modal__layout--with-image .modal__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(44, 42, 41, 0.58) 0%,
    rgba(44, 42, 41, 0.50) 45%,
    rgba(44, 42, 41, 0.22) 75%,
    rgba(44, 42, 41, 0) 95%);
  z-index: 1;
  pointer-events: none;
}

/* Facts overlay sits above the image + scrim. Uses min-height (not height) so a
   tall facts column (e.g. with categories + partners) grows the hero — and hence
   the modal — instead of clipping Share / Register; still fills the column when
   the content side is taller. */
.modal__layout--with-image .modal__hero .modal__facts {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100%;
}

/* The image ends on a crisp edge against the modal surface (the previous
   right-edge dissolve mask was removed by request); the dark scrim above
   stays so the white facts text remains legible. */

.modal__header {
  padding: 24px 32px 10px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.modal__title {
  flex: 1 1 0%;
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.modal__actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin-top: 2px;
}
.modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--ink-500);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.modal__close:hover { background: rgba(44, 42, 41, 0.06); color: var(--ink-900); }
/* Subtle focus ring only — no glaring blue circle. Matches the hover wash. */
.modal__close:focus-visible {
  outline: none;
  background: rgba(44, 42, 41, 0.10);
  color: var(--ink-900);
}
/* Row 1: type icon + bold label — IDENTICAL to calendar card vocabulary
   (no background circle around the icon, mixed-case bold label). */
.modal .cal-event__type.modal__type-row {
  margin: 0;
  padding: 4px 32px 8px;
  gap: 8px;
}
.modal .cal-event__type-icon {
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: transparent;
  color: var(--ink-700);
}
.modal .cal-event__type-icon svg { width: 16px; height: 16px; }
.modal__type-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink-900);
}

/* Row 2: date · time · venue, mid-dot separators */
.modal__meta-line {
  padding: 0 32px 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-600, var(--ink-500));
  color: var(--ink-500);
  line-height: 1.5;
}
.modal__date { color: var(--ink-700); font-weight: 600; }
.modal__time { color: var(--ink-700); font-weight: 600; font-variant-numeric: tabular-nums; }
.modal__mid-dot {
  display: inline-block;
  color: var(--ink-400);
  font-weight: 600;
}
.modal__meta-line .cal-event__venue {
  color: var(--ink-700);
  font-weight: 500;
}
.modal__meta-line svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: var(--ink-400);
  margin-right: 4px;
  vertical-align: -2px;
}

/* Body */
.modal__body {
  padding: 24px 32px 4px;
}
.modal__body--cats {
  padding-top: 4px;
  padding-bottom: 4px;
}
.modal__about-card {
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 14px;
}
.modal__about-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 12px;
}
.modal__body .cal-event__desc {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 12px;
  color: var(--ink-700);
}
.modal__about-card .cal-event__desc:last-child { margin-bottom: 0; }
/* Provocative Statement — the session's framing question, above About.
   Warm Amber 500 in italics, specified by Sam. Note this is 2.46:1 on the
   modal's white ground, under the 4.5:1 AA minimum for body text — the same
   value already logged against the Register button. Kept deliberately; if it
   is ever revisited, #B85E0F holds the 28deg hue at 4.52:1. */
.modal__provocation-card .cal-event__desc.modal__provocation {
  font-style: italic;
  font-weight: 500;
  color: #00A7B5;
}
.modal__body .cal-event__desc:last-of-type { margin-bottom: 14px; }
/* Provocative Statement spacing. Both declarations have to live down here
   rather than beside the .modal__provocation appearance rule above: the two
   generic rules immediately preceding this are later in the file and tie on
   specificity, so an earlier override silently loses.

   The statement carries no padding of its own — the space that read as padding
   above it is .modal__body's 24px top inset, which it inherits by leading the
   body. Zeroed only when it actually leads: a session with a Location card
   keeps the original inset, because there the statement is not at the top.
   Its 20px bottom margin collapses with the card's 14px to 20px, which is the
   gap to About. */
.modal__body:has(> .modal__provocation-card:first-child) { padding-top: 0; }
.modal__provocation-card .cal-event__desc.modal__provocation { margin-bottom: 20px; }
.modal__body .cal-event__meta-row { margin-top: 6px; gap: 10px; }
.modal__body .event__cat { width: 30px; height: 30px; }

.modal__divider {
  height: 1px;
  background: var(--hairline);
  margin: 18px 32px;
}

/* Speakers — 3-column grid (max 3 per row); wraps to next row beyond 3. */
.modal__speakers {
  padding: 0 32px 22px;
}
/* When MODERATOR and IMPACT ARCHITECTS sections stack, the second one
   keeps its padding-bottom but doesn't double the gap above it. */
.modal__speakers--secondary {
  padding-top: 4px;
}
.modal__speakers-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 14px;
}
.modal__speakers-overflow {
  margin-left: 8px;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--ink-500);
  text-transform: none;
}
/* Single horizontal row of card-less speaker tiles. JS adds .is-carousel when
   the row should scroll (>3 speakers or it overflows the viewport), which turns
   on overflow-x scrolling, the grab cursor, and an edge fade. */
.modal__speakers-viewport {
  overflow-x: hidden;
  scrollbar-width: none;
}
.modal__speakers-viewport::-webkit-scrollbar { display: none; }
.modal__speakers-viewport.is-carousel {
  overflow-x: auto;
  cursor: grab;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.modal__speakers-viewport.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.modal__speakers-viewport.is-dragging .modal__speaker { pointer-events: none; }
.modal__speakers-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.modal__speakers-viewport:not(.is-carousel) .modal__speakers-row { justify-content: flex-start; }
.modal__speakers-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.modal__speaker {
  flex: 0 0 auto;
  width: clamp(190px, 40%, 240px);   /* ~3 fit the content column; >3 or narrow viewport → scroll */
  display: flex;
  align-items: flex-start;            /* top-align so a long multi-line affiliation sits under the name */
  gap: 12px;
  margin: 0;
  min-width: 0;
  position: relative;
  isolation: isolate;                 /* contain the ::before highlight layer behind the content */
  /* Card-less tile button — transparent; the highlight is painted by ::before. */
  appearance: none;
  background: transparent;
  border: 0;
  padding: 20px 8px 8px;              /* uniform top reserve so every name shares one baseline
                                         and the absolutely-placed role badge has headroom */
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}
/* Hover/focus highlight lives on a pseudo-element so it can wrap the role badge
   on moderator/facilitator tiles (inset:0) yet skip the empty top reserve on
   badge-less tiles (inset top) — so no big empty band lights up on hover while
   names stay aligned. */
.modal__speaker::before {
  content: "";
  position: absolute;
  inset: 12px 0 0;
  z-index: -1;
  border-radius: 10px;
  background: transparent;
  transition: background-color 160ms ease;
}
.modal__speaker:has(.modal__speaker-role)::before { inset: 0; }
.modal__speaker:hover::before { background: rgba(44, 42, 41, 0.04); }
.modal__speaker:focus-visible { outline: none; }
.modal__speaker:focus-visible::before {
  background: rgba(0, 167, 181, 0.10);
  box-shadow: none;
}
@media (max-width: 720px) {
  /* Wider tiles on small screens so the row overflows and becomes swipeable. */
  .modal__speaker { width: clamp(200px, 78%, 280px); }
}
.modal__speaker-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal__speaker-avatar--initials {
  background: rgba(44, 42, 41, 0.06);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.modal__speaker-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;                 /* anchor the role badge above the name */
}
.modal__speaker-role {
  position: absolute;
  bottom: 100%;                       /* float above the name, out of flow, so every name shares
                                         one baseline; the tile's ::before highlight (inset:0 when
                                         a badge is present) still wraps it */
  left: 0;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8E2A1F;
  line-height: 1.2;
  white-space: nowrap;
}
/* Remote participation (via live feed / recorded message) rather than a role.
   Steel keeps it distinct from the rust role badge — rust is also the China at
   Scale hue, so a third meaning on it would read as a role. The dot stays
   inline inside the badge, so this does NOT move the badge out of flow and the
   shared name baseline survives. Measured cost: +10px of badge width. */
.modal__speaker-role--remote {
  color: var(--steel-700);
}
.modal__speaker-role--remote::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber-500);
  margin-right: 5px;
  vertical-align: middle;
}
.modal__speaker-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.3;
}
.modal__speaker-affil {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-500);
  line-height: 1.3;
  /* Full wrap, never truncate — long company names grow the tile vertically,
     and the row (hence the whole speakers section) sizes to the tallest one. */
  overflow-wrap: anywhere;
}

/* Modal footer with Register CTA */
.modal__footer {
  padding: 14px 32px 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 0;
  margin-top: 4px;
}
.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  /* TPC deep button: Deep Turquoise, white text (9.3:1); hover Turquoise of
     Truth (5.3:1). Flat, no gradient. */
  background: var(--steel-700);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  /* Sessions with a custom Feishu "Session URL" render this as an <a> linking
     straight out, so suppress the default anchor underline. No effect on the
     <button> form. */
  text-decoration: none;
  transition: background-color 180ms ease;
  box-shadow: none;    /* flat (DESIGN.md) */
}
.btn-register:hover { background: var(--steel-500); }
.btn-register:focus-visible {
  outline: none;
  box-shadow: none;
}
.btn-register svg { width: 14px; height: 14px; }
/* Disabled state — registration not yet open. Greyed, non-interactive. */
.btn-register:disabled,
.btn-register[aria-disabled="true"] {
  background: var(--ink-300, #D3DCDD);
  color: var(--ink-500, #5F6366);
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}
.btn-register:disabled:hover,
.btn-register[aria-disabled="true"]:hover {
  background: var(--ink-300, #D3DCDD);
  transform: none;
  box-shadow: none;
}

@media (max-width: 720px) {
  .modal { padding: 12px; align-items: flex-end; }
  .modal {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .modal__panel { max-height: 92vh; max-height: 92dvh; }
  /* Collapse the 2-column image layout. Image becomes a top banner; the
     facts panel stacks below it. Facts keeps its white-on-dark styling
     (unchanged from desktop) but needs its own dark card here, since the
     panel surface below the banner is light and the facts column is much
     taller than the banner — without a card, most of the white text would
     land on the light panel background. */
  .modal__layout--with-image { display: block; }
  .modal__layout--with-image .modal__hero {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    border-radius: 0;
    overflow: visible;
  }
  .modal__layout--with-image .modal__hero > img {
    position: relative;
    aspect-ratio: 16 / 9;
    height: auto;
    object-position: center;
    border-radius: 20px 20px 0 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* Portrait modal KV (a film poster): the 16/9 banner above would crop it to a
     middle band, cutting the poster's own title off. A 3/4 banner keeps the
     full-width poster readable without pushing the content off the first screen. */
  .modal__layout--with-image .modal__hero--portrait > img { aspect-ratio: 3 / 4; }
  .modal__layout--with-image .modal__hero::after { display: none; }
  /* Dark card for the facts panel — butts directly against the banner
     image above (no gap) so image + card read as one continuous block.
     Keeps the same white-text styling the base --on-image rules already
     set up; this just gives that styling a dark surface to sit on. */
  .modal__layout--with-image .modal__facts--on-image {
    background: var(--steel-700);
    border-right: 0;
  }
  .btn-ghost--on-image {
    color: var(--ink-800);
    border-color: var(--hairline);
    background: transparent;
  }
  .btn-ghost--on-image:hover {
    background: rgba(44, 42, 41, 0.04);
    border-color: var(--ink-300);
    color: var(--ink-900);
  }
  .btn-ghost--on-image svg { color: var(--steel-700); }
  .modal__header { padding: 20px 22px 10px; }
  .modal__inv-row { margin: 0 22px; }
  .modal .cal-event__type.modal__type-row { padding-left: 22px; padding-right: 22px; }
  .modal__meta-line { padding-left: 22px; padding-right: 22px; }
  .modal__body     { padding: 14px 22px 4px; }
  .modal__divider  { margin: 16px 22px; }
  .modal__speakers { padding: 0 22px 16px; }
  .modal__footer { padding: 14px 22px 22px; }
  .modal__title { font-size: 22px; }

  /* Plain event modal — collapse the 2-col grid; facts above content.
     Drop the aside background/border since the side-by-side metaphor
     no longer applies in stacked mode. */
  .modal__layout--plain { display: block; }
  .modal__facts {
    padding: 20px 22px 24px;
    gap: 16px;
    background: transparent;
    border-right: 0;
    border-bottom: 1px solid var(--hairline-soft);
  }
  /* Stacked facts are content-height — the foot was never bottom-pinned here,
     so the closed-session spacer would only add dead space. */
  .modal__facts-cta--reserve { display: none; }
  .modal__facts-cal-day { font-size: 36px; }

  /* Speaker modal — collapse the 2-col grid to a stacked layout, portrait
     at the top, content below. */
  .modal__layout--speaker { display: block; }
  .speaker-modal__image-col { padding: 20px 22px 0; flex-direction: column; }
  .speaker-modal__portrait { width: 100%; aspect-ratio: 1 / 1; flex: 0 0 auto; border-radius: 12px; }
  /* Stacked layout: hide the image-column session list (it would cram into a
     narrow strip beside the portrait and push the name below the fold) and
     show the full-width copy after the bio instead. */
  .speaker-modal__sessions--desktop { display: none; }
  .speaker-modal__sessions--mobile { display: block; margin-top: 20px; }
  .modal__layout--speaker .modal__top-content > .speaker-modal__affil,
  .modal__layout--speaker .modal__top-content > .speaker-modal__role {
    padding-left: 22px; padding-right: 22px;
  }
  /* Track the narrower inset the rest of the block uses at this breakpoint. */
  .modal__layout--speaker .modal__top-content > .speaker-modal__live {
    margin-left: 22px; margin-right: 22px;
  }
  .speaker-modal__bar { padding-left: 22px; padding-right: 14px; }
}

/* ----------------------------------------------------------------------------
   Scroll-to-top button
   --------------------------------------------------------------------------- */

/* Embedded: the iframe never scrolls internally (the host page does), so the
   button's scroll threshold never fires and `fixed` would pin it to the tall
   frame's bottom, not the reader's screen. Not usable in the embed — hide. */
html.is-embedded .scroll-top { display: none !important; }
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--glass-80);
  color: var(--ink-900);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  transition: background-color 180ms ease, transform 200ms ease, box-shadow 220ms ease;
}
.scroll-top:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

/* ----------------------------------------------------------------------------
   Focus rings (consistent across components)
   --------------------------------------------------------------------------- */

.chip:focus-visible,
.day-pill:focus-visible,
.btn-clear:focus-visible,
.scroll-top:focus-visible,
.search:focus-within {
  outline: 3px solid var(--steel-500);
  outline-offset: 2px;
}
.search:focus-within { outline: 0; }   /* search uses its own inner ring */

/* ----------------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ----------------------------------------------------------------------------
   Mobile tightening
   --------------------------------------------------------------------------- */

@media (max-width: 720px) {
  /* Masthead: theme default (atone-style.min.css) renders the logo at
     140px wide with 20px top/bottom margin (~120px) plus #masthead>div
     padding, landing around 127px tall. Shrink the logo and its margin
     so the burger + logo stay intact but the header collapses to ~76px. */
  #masthead .site-branding img.site-logo {
    height: 36px !important;
    margin: 16px 0 !important;
  }
  #masthead > div { padding-top: 0; padding-bottom: 0; }
  .header-menu-burger { margin-bottom: 0 !important; }

  .programme-tabs { margin: 10px auto 15px; }

  .topbar__title { font-size: 32px; }
  .topbar__inner { padding: 8px var(--s-4) 8px; }
  .topbar__inner {
    padding-left: max(var(--s-4), env(safe-area-inset-left));
    padding-right: max(var(--s-4), env(safe-area-inset-right));
  }
  .topbar__row { gap: var(--s-2); }
  .topbar__controls { width: 100%; margin-left: 0; }
  /* Sidebar's 4px scrollbar inset made the venue dropdown 4px narrower than
     its calendar-view twin in the topbar; the mobile sidebar never scrolls
     internally, so drop it for identical widths. */
  .sidebar { padding-right: 0; }
  /* 12px below the venue dropdown = what calendar view has between its
     topbar-hosted dropdown and the filters (8px topbar padding + 4px layout
     top) — keeps the accordions at the same y in both views. */
  #venueGroup { margin-bottom: 12px; }
  .search { flex: 1 1 auto; min-width: 0; }
  .search input { width: 100%; min-width: 0; }
  .view-toggle { flex: 0 0 auto; }
  /* Tap targets: 32x32 buttons measure under the 44px guideline on touch.
     Grow to 40x40 (pill grows to ~86-90px, absorbed by the search's fluid
     flex-basis above — still leaves >170px for the search input at 320px). */
  /* 4px top (+ topbar's 8px bottom) = 12px above the sidebar's venue
     dropdown — the same 12px the stacked calendar topbar puts between the
     search row and the relocated dropdown, so switching views doesn't shift
     the rhythm. */
  .layout { padding: 4px var(--s-4) var(--s-4); gap: var(--s-4); }
  .layout {
    padding-left: max(var(--s-4), env(safe-area-inset-left));
    padding-right: max(var(--s-4), env(safe-area-inset-right));
  }
  /* Calendar view's desktop-oriented 40px side padding (line ~628) beats this
     block on specificity — override explicitly so mobile calendar matches
     list view's 16px side inset instead of wasting 24px/side. */
  body.view-calendar .layout { padding-left: var(--s-4); padding-right: var(--s-4); }
  body.view-calendar .layout {
    padding-left: max(var(--s-4), env(safe-area-inset-left));
    padding-right: max(var(--s-4), env(safe-area-inset-right));
  }
  /* Band name ("Morning"/"Afternoon"...) is 11px on desktop, which reads
     too small on mobile — bump legibility while keeping the uppercase/tracking
     treatment proportionate. */
  .cal-band__name { font-size: 12px; }

  /* Day pills: single-row horizontal scroller instead of wrapping to a
     second row (was costing ~53px of extra height). Bleed to the viewport
     edge so pills aren't clipped mid-capsule at rest, while the first pill
     still lines up with the 16px content inset via matching padding. */
  .day-nav {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    margin: 0 calc(-1 * var(--s-4));
    padding: 0 var(--s-4);
    scrollbar-width: none;
  }
  .day-nav::-webkit-scrollbar { display: none; }
  .day-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  /* Scrolled state: trim the topbar's padding and shrink the day pills, which
     stay >=40px tall for tap targets.
     Search and the list/calendar toggle used to collapse away here via a
     max-height/opacity transition. They now stay pinned: on a phone they are
     the only route back out of a long scrolled list, and hiding them cost a
     full scroll to the top to reach either one. That costs ~46px of a phone
     viewport, which is the deliberate trade.
     Removing the collapse also retires the machinery it needed — the
     `overflow: hidden` + `max-height` cap, the `--controls-h` measurement
     app.js published to animate against, and the `:has(.search-dropdown)` rule
     that had to lift the clip so the search suggestions panel (abspos'd below
     this block) wasn't swallowed. With nothing clipping, the panel shows by
     default. */
  body.is-scrolled .topbar__inner {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  body.is-scrolled .day-pill {
    min-width: 76px;
    padding: 4px 20px 6px;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease,
      padding 200ms ease;
  }
  body.is-scrolled .day-pill__num { font-size: 17px; }


  .event {
    flex-wrap: wrap;
    padding: 14px 16px;
    gap: var(--s-3);
    /* Card stacks here (text wraps below the time row), so let the height
       follow content instead of pinning it — no trailing white space arises. */
    height: auto;
    overflow: visible;
  }
  .event__time {
    flex: 1 1 auto;
    width: auto;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    padding-top: 0;
    padding-left: 0;
  }
  .event__time-pill { flex-direction: row; align-items: baseline; gap: 6px; }
  .event__time-end::before { content: "·"; margin-right: 6px; color: var(--ink-400); }
  .event__content {
    flex: 1 1 100%;
  }
  /* Cards with a key visual become banner tiles: the KV spans the full card
     width; the time pill and category circles overlay its bottom edge
     (pulled up over the image with a negative margin); title/desc/meta sit
     below on a clean text zone. */
  .event.has-kv {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 0;
    gap: 0;
    overflow: hidden;
  }
  .event.has-kv .event__kv {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 8;
    align-self: auto;
    border: 0;
    border-radius: 0;
  }
  /* Zero-height overlay row: takes no space in the card's flow (so the text
     zone below the image keeps its full padding); the pill and circles are
     lifted up onto the image with a translate instead of a negative margin. */
  .event.has-kv .event__time {
    flex: none;
    width: 100%;
    box-sizing: border-box;
    height: 0;
    margin: 0;
    padding: 0 10px;
    position: relative;
    z-index: 1;
    align-items: flex-start;
    justify-content: space-between;
    overflow: visible;
  }
  .event.has-kv .event__time-pill,
  .event.has-kv .event__cat-row {
    transform: translateY(calc(-100% - 10px));
  }
  .event.has-kv .event__time-pill {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 5px 12px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .event.has-kv .event__cat-row { margin: 0; max-width: none; flex-wrap: nowrap; }
  .event.has-kv .event__cat { background: #fff; }
  .event.has-kv .event__content { padding: 16px 18px 16px; gap: 8px; }

  /* Calendar view topbar was 962px tall on mobile: it carried the full
     desktop-oriented #catFilterRow chip strip (whose 2-col chip grids
     overflow their row and clip off-screen) plus a hidden sidebar sitting
     unused below. Drop the chip strip from the topbar and restore the
     sidebar's accordion filters instead — that's the pattern list view
     already uses on mobile, so calendar view now matches it. */
  body.view-calendar #catFilterRow { display: none; }

  /* Undo the desktop/tablet `display:none` on .sidebar (line ~1537) so the
     accordion filters (#forumParent/#festivalParent) render above the
     schedule, stacked single-column same as list view. .layout is already
     single-column here (grid-template-columns: 1fr set at line ~1538 and
     ~630), so the sidebar simply stacks above .schedule with no grid work
     needed. */
  body.view-calendar .sidebar { display: block; }

  /* Sidebar's venue group is an empty shell in calendar view — #venueSelect
     is reparented into the topbar's .cal-venue-slot by applyView() in
     app.js, leaving a dangling "VENUE" header behind. Hide the shell. */
  body.view-calendar .filter-group--venue { display: none; }

  /* Footer links (theme default ~16px text, 20px line-height) sit well
     under the 40px tap-height guideline. Vertical padding + inline-block
     reads as generous line spacing in the stacked widget lists, which
     matches the footer's existing rhythm. */
  #site-footer a {
    display: inline-block;
    padding: 12px 0;
  }
}

/* ----------------------------------------------------------------------------
   Responsive: mobile + tablet fallbacks (DRD v2)
   Breakpoint tiers: xs <640, sm 640-1023, md 1024-1439, lg >=1440
   --------------------------------------------------------------------------- */

/* Mobile venue line on calendar cards: hidden on desktop. */
.cal-event__venue-mobile { display: none; }

/* sm + xs (< 1024px): swimlanes collapse. Hide sticky venue head row.
   Force the inline grid-template-columns from JS to a single column. */
@media (max-width: 1023px) {
  .cal-head-row { display: none; }
  .cal-grid { grid-template-columns: 1fr !important; gap: 8px; }
  .cal-day__list { gap: 6px; }
  /* One column means no alignment to carry, so a venue's empty band cell says
     nothing — and Friday afternoon would otherwise stack a dozen of them. */
  .cal-day--empty { display: none; }

  .cal-event__venue-mobile {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ink-500);
    padding: 0 2px 4px;
  }
  .cal-event__venue-mobile svg {
    width: 12px;
    height: 12px;
    color: var(--ink-400);
    flex: 0 0 12px;
  }

  /* Filter cards: 2 columns (eco | infra), with Partner-led + China at Scale as a
     full-width row of two cards below. */
  body.view-calendar .cat-filter-row { grid-template-columns: 1fr 1fr; }
  body.view-calendar .cat-filter-row__side { grid-column: 1 / -1; flex-direction: row; }
}

/* < 1024px: calendar topbar flattens to a single full-width stack — pills,
   then search + toggle, then venue, then the category cards. One layout for
   everything below desktop, so nothing reflows or jumps mid-range (the old
   desktop grid used to persist down to 783px, wrapping the pills and leaving
   the venue bar centered at partial width). */
@media (max-width: 1023px) {
  /* Calendar keeps inheriting list view's wrap row down here — no override.
     It used to be forced to `flex-direction: column`, which handed the Clear
     filter button a full-width line of its own where list view seats it beside
     the day pills. That dropped the search bar a whole control-height lower in
     calendar view, so toggling views in this range moved it vertically even
     though the horizontal geometry already matched. The column also set an 8px
     gap "to match list view", which list view does not use at these widths —
     it is 16px, which the base row now supplies to both. */
  /* Below this width the row stacks, and the venue picker goes back above the
     category filters — that mirrors the order of the sidebar in list view, so
     the two views still read the same way. Desktop is the other way round: the
     categories form a full-width band with the venue centred underneath it. */
  body.view-calendar .cal-venue-slot { order: 4; }
  body.view-calendar .cat-filter-row { order: 5; }
  /* day-nav deliberately NOT width:100% — list view lets the pill row bleed
     edge-to-edge; forcing a width here made the pills shift on toggle.
     min-width:0 lets the nowrap pill row stretch-fit instead of spilling to
     its 544px min-content width. */
  body.view-calendar .day-nav { min-width: 0; }
  body.view-calendar .topbar__controls,
  body.view-calendar .cal-venue-slot,
  body.view-calendar .cat-filter-row {
    width: 100%;
    justify-content: flex-start;
  }
  /* Keep search + view toggle at the top (right under the day pills), same
     spot as list view — otherwise DOM order sinks them below the venue
     filter when the row goes column. */
  body.view-calendar .day-nav          { order: -2; }
  body.view-calendar .topbar__controls { order: -1; }
  body.view-calendar .cal-venue-slot {
    width: 100%;
    max-width: none;
    /* 8px row gap + 4px = the 12px list view shows between the controls row
       and the sidebar's venue dropdown (measured). */
    margin-top: 4px;
  }
  body.view-calendar .btn-clear--cal:not([hidden]) {
    margin-left: 0;
    align-self: flex-start;
    /* Same order tier as the day pills (DOM puts it right after them), so it
       stays anchored at the top next to the dates instead of sinking below
       the venue filter — matching where list view shows it. */
    order: -2;
  }
  /* Search + toggle take a full-width row in BOTH views (not just calendar),
     so the search bar goes full width at the same 1023px moment the venue
     bar does (list view's sidebar stacks — and its venue dropdown becomes
     full width — at this same breakpoint). */
  .topbar__controls { width: 100%; margin-left: 0; }
  .search { flex: 1 1 auto; min-width: 0; }
  .search input { width: 100%; min-width: 0; }
  /* Once the venue bar is full width its "Venue" heading is dropped — the
     dropdown's "Select venue" placeholder says it, and the calendar view
     (which hosts the dropdown in the topbar) never shows a heading. */
  #venueGroup .filter-group__head { display: none; }
  /* Same 12px between the search row and the venue bar as ≤720 (8px topbar
     bottom + 4px layout top) — the base 12px + 20px pair left a visibly
     taller gap in the 721–1023 range. */
  .topbar__inner { padding-bottom: 8px; }
  .layout { padding-top: 4px; }
  /* Filter cards stay 2 columns (rule above); they're hidden ≤720 where the
     sidebar accordions take over. */
  body.view-calendar .cat-filter-row .filter-group--living .cat-filter-row__chips { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .venue-select__panel { max-height: 60vh; max-height: 60dvh; overflow-y: auto; }
}

/* ----------------------------------------------------------------------------
/* ============================================================================
   Speakers section — independent Architects/Practitioners tabs, alphabetical
   paged grid (5×2 desktop → fewer cols → mobile swipe), and the routed profile
   page (#speaker/<slug>). Mirrors the .programme-tab / speaker-modal patterns.
   ========================================================================== */
.speakers-section {
  /* Match the schedule content box exactly: 1280 grid + 2×24 padding = 1328.
     Arrows overlay the grid edges (absolute), so they don't widen this box. */
  max-width: 1328px;
  margin: 0 auto;
  padding: var(--s-8) var(--s-6);
}
.speakers-tabs {
  display: flex;
  align-items: stretch;  /* equal tab heights */
  gap: 4px;
  /* Definite width so flex:1 children split it exactly in half; max-content
     let each tab size to its own content — never equal, spilling below ~540. */
  width: calc(100% - var(--s-6) * 2);
  max-width: 620px;
  margin: 0 auto var(--s-6);
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--glass-65);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
}
/* `display:flex` above beats the [hidden] UA rule, so hiding the tabs in search
   mode needs this explicit, higher-specificity rule. */
.speakers-tabs[hidden] { display: none; }
/* Ordering note — small, muted line directly under the tabs. Shown on both
   tabs (hidden while searching). */
.speakers-order-note {
  margin: -8px auto var(--s-5);
  text-align: center;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-500);
}
.speakers-order-note[hidden] { display: none; }
/* Impact Architects intro — a collapsible "About" so the copy stays out of the
   way of the speaker grid. Toggled by JS to the architect tab only (hidden
   while searching); the paragraph itself is collapsed until tapped. */
.speakers-intro {
  margin: 0 auto var(--s-6);
  text-align: center;
}
.speakers-intro[hidden] { display: none; }
.speakers-about { display: inline-block; text-align: center; }
.speakers-about__toggle {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--steel-700);
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--glass-65);
  transition: background-color 160ms ease, color 160ms ease;
}
.speakers-about__toggle::-webkit-details-marker { display: none; }
.speakers-about__toggle:hover { background: var(--glass-80); color: var(--ink-900); }
.speakers-about__toggle:focus-visible { outline: 2px solid var(--steel-500); outline-offset: 2px; }
.speakers-about__chev { transition: transform 180ms ease; }
.speakers-about[open] .speakers-about__chev { transform: rotate(180deg); }
.speakers-about__body { max-width: 640px; margin: 14px auto 0; }
.speakers-about__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-700);
}
@media (prefers-reduced-motion: reduce) { .speakers-about__chev { transition: none; } }
.speakers-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  gap: 11px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-900);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.15;
  transition: background-color 160ms ease, color 160ms ease;
}
.speakers-tab__icon { flex: 0 0 24px; width: 24px; height: 24px; color: currentColor; }
/* Roster size on the tab itself, so "how many speakers are there" is answered
   before anyone scrolls. Set once at boot by renderSpeakersTabCounts(). */
.speakers-tab__n {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 119, 136, 0.16);
  color: var(--steel-700);
}
.speakers-tab.is-active .speakers-tab__n { background: rgba(255, 255, 255, 0.22); color: #fff; }
.speakers-tab__n:empty { display: none; }
.speakers-tab:hover:not(.is-active) { background: var(--glass-80); }
.speakers-tab.is-active {
  background: var(--steel-700);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.speakers-tab:focus-visible { outline: 2px solid var(--steel-500); outline-offset: 2px; }

.speakers-deck {
  position: relative;
  margin: 0 auto;
}
/* Arrows overlay the grid edges (tucked ~16px onto the edge cards), vertically
   centred on the 2-row grid so they sit on the row gap, not over a face. They
   are absolute, so the grid keeps the full 1280 schedule width. */
.speakers-deck__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--glass-80);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(44, 42, 41, 0.10);
  color: var(--ink-900);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;                     /* semi-transparent at rest — same whether or not a page exists */
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}
.speakers-deck__arrow--prev { left: -16px; }
.speakers-deck__arrow--next { right: -16px; }
.speakers-deck__arrow[hidden] { display: none; }
/* Only an arrow that leads to another page lights up on hover (dark fill, white
   arrow). A dead-end arrow (disabled) keeps the resting translucent look on
   hover, signalling there are no more speakers that way. */
.speakers-deck__arrow:hover:not(:disabled) {
  opacity: 1;
  background: var(--steel-700);
  border-color: var(--ink-900);
  color: #fff;
}
.speakers-deck__arrow:disabled { cursor: default; }
.speakers-deck__arrow:focus-visible { outline: 2px solid var(--steel-500); outline-offset: 2px; }

.speakers-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  gap: var(--s-4);
}
.speakers-card {
  display: flex;
  flex-direction: column;
  /* stretch, not center: the flex children are shrink-wrapped boxes, so
     text-align alone would left-align text inside a still-centred box. */
  align-items: stretch;
  text-align: left;
  gap: var(--s-2);
  /* One uniform padding value on all four sides — an even ring around the
     portrait that cannot drift out of proportion with itself, at any width.
     Mildly fluid (5% of the card) between fixed floors/caps. */
  padding: clamp(10px, 7%, 16px);
  /* Size container: children below size text/gaps in cqw (1cqw = 1% of card
     width), so the text block shrinks in step with the 1:1 portrait and the
     card's overall proportions hold at every width. */
  container-type: inline-size;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--glass-55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.speakers-card:hover {
  background: var(--glass-80);
  border-color: rgba(44, 42, 41, 0.14);
  transform: translateY(-2px);
}
.speakers-card:focus-visible { outline: 2px solid var(--steel-500); outline-offset: 2px; }
.speakers-card__avatar {
  /* Always the full content width of the card — the portrait scales in
     direct proportion to the card at every size, no fixed cap to drift
     out of sync with. */
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  object-fit: cover;
  object-position: top center;
  background: rgba(44, 42, 41, 0.05);
  display: block;
}
.speakers-card__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--steel-700);
  background: var(--glass-65);
}
.speakers-card__name {
  margin-top: clamp(2px, 1.75cqw, 4px);
  font-family: var(--font-display);
  /* cqw values reproduce the old fixed sizes on a full-width ~230px card
     (15/12/12px) and scale down with the card; clamp floors keep tiny cards
     legible. */
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-900);
}
.speakers-card__org  { font-size: 13px; line-height: 1.3; color: var(--ink-500); }
/* Avatar wrapper so the participation badge can overlay the photo. */
.speakers-card__media {
  position: relative;
  width: 100%;
  max-width: 200px;
  line-height: 0;
}
/* Participation pill overlaid on the bottom of a remote speaker's photo. */
.speakers-card__live {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(44, 42, 41, 0.25);
}
.speakers-card__live svg { width: 12px; height: 12px; }
/* Same status on the speaker profile / pop-up, below the affiliation. */
.speaker-modal__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.speaker-modal__live svg { width: 14px; height: 14px; }
.speakers-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--s-7);
  text-align: center;
  font-size: 15px;
  color: var(--ink-500);
}

/* A-Z jump strip — sits between the search field and the deck. One dot per
   page was unreadable past ~10 pages (36 on the Architects tab, 89 at mobile's
   two columns); a letter index is what an alphabetical roster of 355 people
   actually needs. Built by app.js renderSpeakersAz(). */
.speakers-az {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: var(--s-4);
  padding-bottom: var(--s-2);
}
.speakers-az[hidden] { display: none; }
.speakers-az__btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  flex: 0 0 auto;
  min-width: 28px;
  height: 28px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-900);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.speakers-az__btn:hover:not([disabled]) { background: rgba(0, 119, 136, 0.16); color: var(--ink-900); }
/* Sam, 25 Nov: letters on a square are white (5.3:1 on #007788); every other
   letter takes the ink the squares used to carry, for contrast. */
.speakers-az__btn[aria-current="true"] { background: var(--amber-500); color: #FFFFFF; }
.speakers-az__btn[disabled] { color: var(--ink-900); cursor: default; }
.speakers-az__btn:focus-visible { outline: 2px solid var(--steel-500); outline-offset: 1px; }

/* Count footnote + numbered pager. */
.speakers-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.speakers-foot[hidden] { display: none; }
.speakers-foot__note {
  margin: 0;
  font-size: 13.5px;
  color: var(--steel-700);
  /* Digits sit in fixed columns, so the count doesn't jitter as pages change. */
  font-variant-numeric: tabular-nums;
}
.speakers-foot__note b { color: var(--ink-900); font-weight: 600; }
.speakers-pager { display: flex; align-items: center; gap: 4px; }
.speakers-pg {
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: var(--glass-55);
  color: var(--ink-700);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.speakers-pg:hover:not([aria-current="true"]) { border-color: var(--steel-500); color: var(--ink-900); }
.speakers-pg[aria-current="true"] {
  background: var(--steel-700);
  border-color: var(--ink-900);
  color: var(--bg-base);
  font-weight: 600;
}
.speakers-pg:focus-visible { outline: 2px solid var(--steel-500); outline-offset: 1px; }
.speakers-pg--gap {
  border: 0;
  background: transparent;
  color: var(--ink-400);
  cursor: default;
  min-width: 18px;
  padding: 0;
}

/* Speaker search — matches the sessions search box (.search): rounded-rect glass
   field, same padding / focus ring / icon / type. A non-empty query swaps the
   paged deck for a flat grid of matches (.speakers-grid--flat); see app.js §13c. */
/* Search field and the rows selector share one centred row. */
.speakers-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
/* The field centres itself when it stands alone; inside .speakers-controls the
   row does the centring, so drop its auto margins. */
.speakers-controls .speakers-search { margin: 0; }

/* Rows of speaker cards per page. Same control height as the search field so
   the two read as one row of furniture. */
.speakers-rows {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: var(--control-h);
  padding: 4px 6px 4px 12px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--glass-65);
}
.speakers-rows[hidden] { display: none; }
.speakers-rows__lab {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.speakers-rows__btn {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-700);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.speakers-rows__btn:hover[aria-pressed="false"] { background: rgba(0, 119, 136, 0.16); color: var(--ink-900); }
.speakers-rows__btn[aria-pressed="true"] { background: var(--steel-700); color: #fff; }
.speakers-rows__btn:focus-visible { outline: 2px solid var(--steel-500); outline-offset: 1px; }

.speakers-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  width: 100%;
  max-width: 520px;
  min-height: var(--control-h);   /* same control height as the programme topbar */
  margin: 0 auto var(--s-5);
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--glass-65);
  color: var(--ink-500);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.speakers-search:focus-within {
  background: var(--glass-80);
  border-color: var(--steel-500);
  box-shadow: none;
}
.speakers-search__icon { flex: 0 0 16px; width: 16px; height: 16px; color: currentColor; }
/* Descendant `input` selector (not the BEM class) so it matches the sessions
   `.search input` specificity and, like it, wins over the WordPress theme's
   `input[type="search"]` reset by loading later. */
.speakers-search input {
  flex: 1 1 140px;
  min-width: 100px;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink-900);
}
.speakers-search input::placeholder { color: var(--ink-400); }
/* Hide the native search "×" so only our clear button shows. */
.speakers-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.speakers-search__count { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--ink-500); white-space: nowrap; }
.speakers-search__clear {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(44, 42, 41, 0.08);
  color: var(--ink-700);
  cursor: pointer;
  transition: background-color 160ms ease;
}
.speakers-search__clear:hover { background: rgba(44, 42, 41, 0.16); }
.speakers-search__clear svg { width: 14px; height: 14px; }
.speakers-search__clear[hidden] { display: none; }
.speakers-search__clear:focus-visible { outline: 2px solid var(--steel-500); outline-offset: 2px; }

/* Flat results grid (search mode): auto-fill instead of the deck's fixed --cols. */
.speakers-grid--flat { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

@media (max-width: 540px) {
  .speakers-section { padding: var(--s-6) var(--s-4) var(--s-7); }
  /* Smaller arrows so they overhang the 2-col cards less on a phone. */
  .speakers-deck__arrow { width: 40px; height: 40px; }
  .speakers-deck__arrow svg { width: 20px; height: 20px; }
  .speakers-search { max-width: 100%; }
  .speakers-controls { gap: var(--s-2); }
  .speakers-rows { padding-left: 10px; }
  /* 26 letters won't fit a phone's width, and wrapping them into a block puts
     a second row of furniture above the grid. Scroll the strip instead, and
     keep the buttons at a 34px touch target while it scrolls. */
  .speakers-az {
    /* Scrolls here, so it starts at A rather than centring — a centred
       overflowing flex row puts its first items out of reach. */
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    /* Full-bleed within the section's 16px padding so the row visibly runs to
       both edges — the affordance that tells you it scrolls. */
    margin-inline: calc(var(--s-4) * -1);
    padding-inline: var(--s-4);
    scroll-padding-inline: var(--s-4);
    overscroll-behavior-x: contain;
  }
  .speakers-az::-webkit-scrollbar { display: none; }
  .speakers-az__btn { min-width: 34px; height: 34px; }
  /* Stack the footnote above the pager rather than squeezing both onto one
     line, and centre the pager under the grid. */
  .speakers-foot { flex-direction: column; align-items: center; gap: var(--s-2); }
  .speakers-foot__note { order: 2; text-align: center; }
  .speakers-pager { order: 1; }
}

@media (max-width: 360px) {
  /* Two tabs ("Impact Architects" / "Impact Practitioners") must fit
     side by side in ~288px of content width. Compress padding/font,
     tighten letter-spacing, and drop the icons — the text label is the
     essential part. */
  .speakers-tabs { width: 100%; max-width: 100%; gap: 2px; padding: 3px; }
  .speakers-tab {
    flex: 1 1 0;
    padding: 14px 6px;
    gap: 0;
    font-size: 11.5px;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
  .speakers-tab__icon { display: none; }
}

/* ---- Routed speaker profile page (#speaker/<slug>) ---- */
.speaker-page {
  max-width: 1280px;
  margin: var(--s-6) auto var(--s-8);
  padding: 0 var(--s-6);
}
.speaker-page__back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink-900);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 160ms ease;
}
.speaker-page__back:hover { color: var(--ink-700); }
.speaker-page__back:focus-visible { outline: 2px solid var(--steel-500); outline-offset: 2px; }
.speaker-page__panel {
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--glass-65);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  overflow: hidden;
}
.speaker-page__panel .modal__content-scroll { overflow: visible; }

/* On a speaker route, hide the calendar chrome (header + footer stay for context). */
body.is-speaker-route .programme-tabs,
body.is-speaker-route .pnotice,
body.is-speaker-route .topbar,
body.is-speaker-route .layout,
body.is-speaker-route #speakersSection { display: none !important; }

/* ---------- Iframe embed mode ------------------------------------------
   When the calendar runs inside the WordPress iframe, the host page already
   has a site nav and footer — hide the duplicated ones (html.is-embedded is
   set by an inline script in index.html before first paint). */
.is-embedded #masthead,
.is-embedded #site-footer { display: none; }

/* Bare URLs inside modal/static body text are linkified (app.js linkifyHtml /
   build_static_pages.py linkify). :visited pinned because the WP embed iframe
   loads the atone theme CSS, whose a:visited{color:purple} would leak in. */
.cal-event__desc a, .cal-event__desc a:visited,
.about-card a, .about-card a:visited {
  color: var(--steel-700); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.cal-event__desc a:hover, .about-card a:hover { color: var(--ink-900); }
.cal-event__desc a:focus-visible, .about-card a:focus-visible {
  outline: 2px solid var(--steel-700); outline-offset: 2px; }

/* Speaker-type tab ladder. The two tabs are always the same size and shape
   (flex: 1 1 0 over a definite-width pill, labels nowrap, heights stretched);
   these tiers only step the type down so 2x "Impact Architects 450" keeps
   fitting. Icons (decorative, aria-hidden) go first. Empirically swept
   320-720px at 10px steps: equal widths/heights, no clipping, no overflow. */
@media (max-width: 640px) {
  .speakers-tab { padding: 12px 10px; gap: 8px; font-size: 16px; }
  .speakers-tab__icon { display: none; }
}
@media (max-width: 540px) {
  .speakers-tab { padding: 11px 8px; font-size: 15px; }
  .speakers-tab__n { font-size: 12px; padding: 2px 7px; }
}
@media (max-width: 430px) {
  .speakers-tabs { width: calc(100% - 24px); }
  .speakers-tab { padding: 10px 6px; gap: 7px; font-size: 14px; }
}
@media (max-width: 390px) {
  .speakers-tab { padding: 9px 4px; font-size: 13px; }
  .speakers-tab__n { display: none; }
}



/* ----------------------------------------------------------------------------
   TPC House additions
   --------------------------------------------------------------------------- */
.aurora { display: none !important; }
/* Phase switch (Q20): speakers first, programme hidden. */
.pg-programme-off .programme-tabs,
.pg-programme-off .topbar,
.pg-programme-off main.layout,
.pg-programme-off .scroll-top { display: none !important; }
.pg-programme-off .speakers-section { margin-top: var(--s-7); }
/* Awakening Red: the keyboard focus ring on light grounds, and nothing else. */
:focus-visible { outline: 2px solid var(--tpc-red) !important; outline-offset: 2px; }
::selection { background: var(--tpc-aqua); color: var(--steel-700); }

@media (max-width: 991px) { #masthead #site-navigation { display: none !important; } }
.speakers-tab[hidden] { display: none !important; }
