/* Layout: branded masthead, sticky day tabs + search, then a timeline (time + room in a left rail, sessions on the right; parallel sessions side by side).
   Phones (<700px) get a short masthead ("More about the conference" opens the rest), a one-row day control,
   larger text, stacked slots and bottom-sheet dialogs. During the event the current slot carries a gold "Happening now" rail. */
/* Barlow (SIL OFL, assets/fonts/OFL.txt), Latin subset, self-hosted so the page never waits on another server.
   Only 400, 600 and the condensed display weights are loaded (light on slow phones); italics are drawn by the browser. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/barlow-condensed-700.woff2") format("woff2"); }
:root {
  --bg: #F6F8FA;
  --surface: #FFFFFF;
  --fg: #232A30;
  --muted: #5E6C78;
  --line: #D5DEE4;
  --brand: #03549D;
  --teal: #00777C;
  --gold: #E9A813;
  --now-bg: #FFF7E0;
  --now-ink: #7A4E00;
  --break-bg: #EEF2F5;
  --cat-plenary: #FFFFFF;
  --cat-summit: #E3F2F2;
  --cat-summit-ink: #006166;
  --cat-abstract: #FDF3D8;
  --cat-abstract-ink: #8A5A00;
  --cat-side: #E6EEF8;
  --cat-side-ink: #234E86;
  /* Strong colour per session type: the dots on the filter pills */
  --dot-plenary: #03549D;
  --dot-summit: #00898F;
  --dot-abstract: #E0A100;
  --dot-side: #6A95D8;
  --overlay: rgba(20, 30, 40, .55);
  --link-bg: rgba(3, 84, 157, .08);
  --mast-pattern: .55;
  --control-line: #7F8E9A;
  --tap: 44px;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--body); -webkit-tap-highlight-color: transparent; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.hide { display: none !important; }
[hidden] { display: none !important; }

/* Small labels: sentence case, semibold, coloured — never tracked-out caps. */
.eyebrow { font: 600 14px/1.25 var(--body); color: var(--teal); margin: 0; }

/* Masthead */
.mast { position: relative; background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.mast::before { content: ""; position: absolute; inset: 0; background: url("../assets/masthead-background-web.jpg") center/cover; opacity: var(--mast-pattern); }
.mast .wrap { position: relative; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; padding-block: 24px 20px; }
.mast-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex: 0 0 auto; }
.mast img.logo { width: 220px; height: auto; display: block; }
.mast-btns { display: flex; gap: 8px; }
.mast #share-open { display: none; }
#text-size b { font: 700 18px/1 var(--display); }
.t-short, #about-toggle { display: none; }
.mast .text { flex: 1 1 360px; min-width: 0; }
h1 { font: 700 clamp(26px, 4.2vw, 44px)/1.05 var(--display); color: var(--brand); margin: 4px 0 8px; text-wrap: balance; letter-spacing: .005em; }
.theme { font-style: italic; color: var(--fg); margin: 0 0 8px; max-width: 62ch; }
.meta { color: var(--muted); margin: 0 0 2px; }
.meta strong { color: var(--fg); font-weight: 600; }
.textlink { font: inherit; color: var(--brand); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.meta .textlink { font-weight: 600; min-height: 32px; }
.strip { height: 14px; background: url("../assets/pattern-strip.png") left center/auto 100% repeat-x; }

/* Controls: only day tabs and search stay pinned. */
.controls { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.controls .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding-block: 8px; }
.tabs { display: flex; gap: 4px; }
.tab { font: 700 16px/1 var(--display); letter-spacing: .02em; min-height: var(--tap); padding: 7px 16px; border-radius: 8px; border: 1px solid var(--control-line); background: var(--surface); color: var(--fg); cursor: pointer; text-align: center; }
.tab small { display: block; font: 400 12px/1.2 var(--body); letter-spacing: 0; color: var(--muted); margin-top: 3px; }
.tab:hover, .chip:hover, .close:hover, .share:hover { border-color: var(--brand); }
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.tab[aria-selected="true"] small { color: inherit; opacity: .85; }
.tab .today { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-left: 5px; vertical-align: 2px; }
.find { flex: 1 1 320px; min-width: 0; display: flex; gap: 8px; }
.search-box { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.search { flex: 1 1 auto; min-width: 0; }
.times-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 14px; border: 1px solid var(--brand); border-radius: 8px; background: var(--surface); color: var(--brand); font: 700 17px/1 var(--display); letter-spacing: .02em; cursor: pointer; }
.times-btn svg { width: 20px; height: 20px; }
.search input { width: 100%; font: 16px var(--body); min-height: var(--tap); padding: 8px 12px; border: 1px solid var(--control-line); border-radius: 8px; background: var(--surface); color: var(--fg); -webkit-appearance: none; appearance: none; }
.search input:not(:placeholder-shown) { padding-right: 46px; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.q-clear { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 6px; background: none; color: var(--fg); font: 400 26px/1 var(--body); cursor: pointer; }
.q-clear:hover { color: var(--brand); }

.subbar { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding-block: 12px 4px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 400 14px/1 var(--body); min-height: 38px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--control-line); background: var(--surface); color: var(--fg); cursor: pointer; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.chip i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.chip[aria-pressed="true"] { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); font-weight: 600; }
/* The selected pill takes its session type's colours, like the cards it shows */
.chip[data-c="plenary"][aria-pressed="true"] { border-color: var(--dot-plenary); box-shadow: inset 0 0 0 1px var(--dot-plenary); }
.chip[data-c="summit"][aria-pressed="true"] { background: var(--cat-summit); border-color: var(--dot-summit); box-shadow: inset 0 0 0 1px var(--dot-summit); }
.chip[data-c="abstract"][aria-pressed="true"] { background: var(--cat-abstract); border-color: var(--dot-abstract); box-shadow: inset 0 0 0 1px var(--dot-abstract); }
.chip[data-c="side"][aria-pressed="true"] { background: var(--cat-side); border-color: var(--dot-side); box-shadow: inset 0 0 0 1px var(--dot-side); }
.rooms { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 13px; color: var(--muted); }
.home-tip { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; margin-block: 10px 0; padding-block: 12px; background: var(--link-bg); border-radius: 10px; font-size: 16px; }
.home-tip p { margin: 0; flex: 1 1 240px; }
.home-tip b { color: var(--brand); }
.offline { margin-block: 10px 0; padding-block: 10px; font-size: 14px; color: var(--now-ink); background: var(--now-bg); border-radius: 8px; }

/* Timeline */
main { padding-block: 6px 48px; }
/* Until app.js fills it, keep the footer off-screen so its 29 lazy logos don't load on a first visit. */
#prog:empty { min-height: 200vh; }
.slot { position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.slot .when { font: 700 18px/1.2 var(--display); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.slot .when .par { display: block; font: 400 13px/1.3 var(--body); color: var(--muted); margin-top: 4px; }
.slot .when .rail-hall { display: block; margin-top: 6px; }
.flag { display: block; font: 700 15px/1.2 var(--display); letter-spacing: .02em; color: var(--now-ink); margin-bottom: 4px; }
.flag.next, .flag.done { color: var(--muted); }
/* Finished: greyed out, still readable and tappable */
.slot.done, .break.done, .card.done, .tgo.done { opacity: .55; }
.slot.done .card, .card.done, .item.done { filter: grayscale(1); }
.item.done { opacity: .5; }

/* The live rail: a gold band edged with the conference textile, only while a slot is happening. */
.slot.now { background: var(--now-bg); margin-inline: -16px; padding-inline: 16px 16px; border-bottom-color: var(--gold); }
.slot.now::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--gold); }
.slot.now::after { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 7px; background: url("../assets/pattern-strip.png") left top/auto 100% repeat-y; background-size: 28px auto; opacity: .9; }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { background: var(--cat-plenary); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.card.summit { background: var(--cat-summit); }
.card.abstract { background: var(--cat-abstract); }
.card.side { background: var(--cat-side); }
.card.plain { background: transparent; border: 0; padding: 0; }
/* A session link (#s12) scrolls to the card and flashes it. */
.card { position: relative; scroll-margin-top: 84px; }
.card.hl { animation: hl 2.6s ease-out; }
@keyframes hl { 0%, 45% { box-shadow: 0 0 0 3px var(--gold); } 100% { box-shadow: 0 0 0 3px transparent; } }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 8px; }
.cat { font: 600 13px/1 var(--body); }
.ctime { font: 700 13px/1 var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
.summit .cat { color: var(--cat-summit-ink); }
.abstract .cat { color: var(--cat-abstract-ink); }
.side .cat { color: var(--cat-side-ink); }
.hall { display: inline-block; font: 600 12px/1 var(--body); color: #fff; padding: 5px 8px; border-radius: 4px; white-space: nowrap; }
.note { font-size: 13px; color: var(--muted); font-style: italic; }
.card h3 { font: 600 18px/1.3 var(--body); margin: 0 0 4px; text-wrap: balance; }
.card.plain h3 { font-weight: 400; }
.desc p, .spk p, .chair p, .sec p, .item p { margin: 2px 0; }
.desc { color: var(--muted); font-size: 15px; }
.spk { margin-top: 8px; font-size: 15px; }
.spk ul, .item ul, .chair ul { margin: 4px 0; padding-left: 18px; }
.spk li, .item li { margin-block: 3px; }
/* Session chair: a labelled block with the name prominent. */
.chair { margin-top: 12px; padding: 8px 12px; border-left: 3px solid var(--brand); background: var(--link-bg); border-radius: 0 8px 8px 0; font-size: 14px; color: var(--muted); }
.chair .lbl { display: block; font: 600 13px/1.2 var(--body); color: var(--brand); margin-bottom: 2px; }
.chair > div p:first-child { font-size: 17px; font-weight: 600; color: var(--fg); }
.item .chair > div p:first-child { font-size: 15px; }
.card.plain .chair { display: inline-block; }
.sec { margin-top: 8px; font-size: 14px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.sec .lbl { font-weight: 600; color: var(--fg); }
.items { margin-top: 10px; border-top: 1px dashed var(--line); }
.item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding-block: 9px; border-bottom: 1px dashed var(--line); font-size: 15px; }
.item:last-child { border-bottom: 0; }
.item.nt { grid-template-columns: minmax(0, 1fr); }
/* untimed items after a timed one are its sub-items (e.g. breakaway groups): indent under the activity column */
.item:not(.nt) ~ .item.nt { margin-left: 122px; padding-left: 12px; border-left: 3px solid var(--line); }
.item .t { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.item .who { margin-top: 2px; }
.break { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 10px 16px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--break-bg); margin-inline: -16px; }
.break b { font: 700 16px/1.2 var(--display); color: var(--fg); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.break.now { background: var(--now-bg); box-shadow: inset 6px 0 0 var(--gold); }
.empty { padding: 40px 0; color: var(--muted); text-align: center; }
.empty p { margin: 0 0 10px; }
.suggest { font: 600 15px/1 var(--body); min-height: 38px; padding: 8px 14px; margin: 4px 2px; border-radius: 999px; border: 1px solid var(--brand); background: var(--surface); color: var(--brand); cursor: pointer; }
.suggest:hover { background: var(--link-bg); }
.results-head { margin: 16px 0 12px; font-size: 14px; color: var(--muted); }
.results { display: grid; gap: 12px; padding-bottom: 24px; }
#prog mark { background: rgba(233, 168, 19, .38); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Person links: inline, but with a generous hit area. */
.person { font: inherit; color: var(--brand); background: var(--link-bg); border: 0; border-radius: 3px; padding: 2px 2px; margin: -2px 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-align: left; }
.person:hover { text-decoration-thickness: 2px; }

/* Dialogs: centred cards on wide screens, bottom sheets on phones. */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); background: var(--surface); color: var(--fg); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); overscroll-behavior: contain; }
dialog[open] { display: flex; flex-direction: column; }
/* Pop-ups: the programme behind is dimmed and blurred, so the eye goes to the pop-up */
dialog::backdrop { background: rgba(20, 30, 40, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html:has(dialog[open]) { overflow: hidden; }
.sheet-bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; gap: 8px; padding: 10px 10px 0; height: 0; overflow: visible; }
.close, .share { min-width: var(--tap); height: var(--tap); border-radius: 22px; border: 1px solid var(--control-line); background: var(--surface); color: var(--fg); cursor: pointer; }
.close { width: var(--tap); font-size: 24px; line-height: 1; padding: 0; }
.share { font: 600 14px/1 var(--body); padding: 0 14px; color: var(--brand); }
.bio-head { display: flex; gap: 18px; align-items: center; padding: 22px 22px 16px; padding-right: 150px; border-bottom: 1px solid var(--line); flex: none; }
.photo { flex: 0 0 136px; width: 136px; height: 136px; border-radius: 50%; overflow: hidden; position: relative; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--teal); background: var(--break-bg); }
.photo svg, .photo img { width: 100%; height: 100%; display: block; }
.photo img { object-fit: cover; object-position: center 20%; }
.bio-head h2:focus { outline: none; }
.bio-head h2 { font: 700 27px/1.05 var(--display); color: var(--brand); margin: 0 0 4px; text-wrap: balance; }
.bio-head .role { margin: 0; color: var(--muted); font-size: 15px; }
.bio-body { min-height: 0; padding: 16px 22px 22px; padding-bottom: max(22px, env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain; }
.bio-body h4 { font: 600 15px/1.2 var(--body); color: var(--teal); margin: 14px 0 6px; }
#bio-text p { margin: 0 0 14px; max-width: 66ch; font-size: 16px; line-height: 1.6; }
#bio-text p:last-child { margin-bottom: 4px; }
.eng { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.eng li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: 15px; }
.eng .d { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.eng .r { font-weight: 600; }

/* Abstract links and downloads */
.abs { font: inherit; color: var(--fg); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: underline dotted; text-decoration-color: var(--cat-abstract-ink); text-underline-offset: 3px; }
.abs:hover { color: var(--brand); text-decoration-style: solid; }
.spk .abs + .dl { margin-left: 6px; }
.res { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dl { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1.15 var(--body); min-height: 40px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--control-line); background: var(--surface); color: var(--brand); text-decoration: none; cursor: pointer; }
.dl svg { width: 15px; height: 15px; flex: none; }
.dl:hover { border-color: var(--brand); }
.dl.launch { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.dl.launch:hover { filter: brightness(1.1); }
.gallery { margin: 24px 0 8px; }
.gallery h2 { font: 700 19px/1.2 var(--display); letter-spacing: .01em; color: var(--brand); margin: 0 0 10px; }
.gallery .shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.gallery .shots a { display: block; border-radius: 8px; overflow: hidden; background: var(--break-bg); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery .shots a:hover img { filter: brightness(1.08); }
.qr-body { text-align: center; }
.qr-body img { display: block; width: min(320px, 100%); height: auto; margin: 4px auto 10px; background: #fff; border-radius: 10px; padding: 8px; }
.qr-body p { margin: 0 0 12px; }
.qr-body a:not(.dl) { color: var(--brand); font-weight: 600; }
.qr-body .res { justify-content: center; }
#abs .bio-head { display: block; }
#abs .eyebrow { margin-bottom: 6px; }
#abs h2 { font: 700 24px/1.15 var(--display); color: var(--brand); margin: 0 0 8px; text-wrap: balance; }
#abs .role { margin: 2px 0; }
#abs .bio-body p { margin: 0 0 8px; font-size: 15px; max-width: 68ch; }
#abs .bio-body p b { color: var(--fg); }
#abs .res { margin-top: 14px; }
#com .bio-head, #qr .bio-head { padding-right: 70px; }
dialog.wide { width: min(760px, calc(100vw - 32px)); }
.com-group h4 { margin-top: 18px; }
.com-group:first-child h4 { margin-top: 4px; }
.com { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.com li { display: flex; gap: 10px; align-items: center; font-size: 15px; line-height: 1.3; }
.com .ini { flex: none; width: 55px; height: 55px; border-radius: 50%; display: grid; place-items: center; font: 700 18px/1 var(--display); letter-spacing: .03em; color: var(--surface); background: var(--teal); }
img.ini { object-fit: cover; background: var(--line); }
.com li.tbc .ini { background: transparent; color: var(--muted); border: 2px dashed var(--line); }
.com li.tbc b { font-weight: 400; font-style: italic; color: var(--muted); }
.com small { display: block; color: var(--muted); font-size: 13px; }
.com .member { all: unset; box-sizing: border-box; display: flex; gap: 10px; align-items: center; width: calc(100% + 8px); margin: -4px; padding: 4px; border-radius: 6px; cursor: pointer; }
.com .member b { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.com .member:hover b { text-decoration-thickness: 2px; }
.com .member:hover { background: var(--link-bg); }
.com .member:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.role-tag { font: 600 12px/1 var(--body); color: var(--brand); border: 1px solid currentColor; border-radius: 4px; padding: 2px 5px; vertical-align: 1px; white-space: nowrap; }

/* Floating "Jump to now" (bottom left, opposite "Ask & more") and the copy-link toast */
#now-jump { position: fixed; z-index: 6; left: max(16px, env(safe-area-inset-left)); bottom: max(22px, env(safe-area-inset-bottom)); min-height: 50px; padding: 0 20px; border: 0; border-radius: 22px; background: var(--gold); color: #3A2600; font: 700 17px/1 var(--display); letter-spacing: .02em; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); cursor: pointer; }
#toast { position: fixed; z-index: 20; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 12px); padding: 10px 16px; border-radius: 8px; background: var(--fg); color: var(--bg); font: 600 14px/1.2 var(--body); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Times sheet */
#times .bio-head { padding-right: 70px; }
.times { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tgo { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 10px; width: 100%; min-height: 56px; padding: 10px 12px; border: 1px solid var(--control-line); border-radius: 10px; background: var(--surface); color: var(--fg); font: 16px/1.3 var(--body); text-align: left; cursor: pointer; }
.tgo:hover { border-color: var(--brand); }
.tgo .tt { font: 700 18px/1.2 var(--display); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.tgo .tx { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tgo small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.tgo .flag { margin-bottom: 2px; }
.tgo.now { background: var(--now-bg); border-color: var(--gold); box-shadow: inset 6px 0 0 var(--gold); }
.tgo.go-now { display: block; text-align: center; min-height: 56px; background: var(--gold); border-color: var(--gold); color: #3A2600; font: 700 21px/1.1 var(--display); letter-spacing: .02em; margin-bottom: 6px; }

/* Bigger text (A+): zoom the programme and pop-ups; the pinned bar keeps its size so it still fits. */
html.big main, html.big .subbar, html.big .bio-head, html.big .bio-body, html.big .fab-menu { zoom: 1.2; }

footer.site { border-top: 1px solid var(--line); background: var(--surface); }
footer.site .wrap.funders { display: block; padding-block: 22px 8px; border-bottom: 1px solid var(--line); }
.funders h2 { font: 600 15px/1.2 var(--body); color: var(--teal); margin: 0 0 14px; text-align: center; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; align-items: center; }
.logos li { display: flex; align-items: center; justify-content: center; height: 64px; padding: 6px 10px; background: #fff; border-radius: 8px; }
footer.site .logos img { height: 52px; width: auto; max-width: 150px; object-fit: contain; }
footer.site .logos .wide img { max-width: 230px; }
footer.site .foot { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 14px max(20px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
footer.site .foot img { height: 54px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links .textlink { font-size: 15px; min-height: var(--tap); display: inline-flex; align-items: center; }

/* Phones */
@media (max-width: 700px) {
  html { scroll-padding-top: 120px; }
  body { font-size: 16px; }
  .mast .wrap { padding-block: 12px; gap: 8px; }
  .mast-top { flex: 1 1 100%; align-items: center; }
  .mast img.logo { width: 112px; }
  .mast #share-open { display: inline-flex; }
  .mast-btns .dl { min-height: var(--tap); }
  .t-long { display: none; }
  .t-short { display: inline; }
  #about-toggle { display: inline; font-size: 15px; }
  .mast:not(.open) .more { display: none; }
  .mast .text { flex-basis: 100%; }
  .eyebrow { font-size: 13px; }
  h1 { font-size: clamp(24px, 7vw, 30px); margin: 2px 0 6px; }
  .theme { font-size: 15px; line-height: 1.4; margin-bottom: 6px; }
  .meta { font-size: 15px; line-height: 1.45; }
  .strip { height: 10px; }
  /* Partner logos: a compact 3-column grid instead of two loose logos per row. */
  .logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .logos li { height: 54px; padding: 4px 6px; }
  .logos li.wide { grid-column: span 2; }
  footer.site .logos img { height: 40px; max-width: 100%; }
  footer.site .logos .wide img { max-width: 100%; }

  .controls .wrap { gap: 8px; padding-block: 8px; }
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .tab { padding: 6px 4px; font-size: 16px; }
  .tab small { font-size: 13px; }
  .find { flex-basis: 100%; }

  .subbar { padding-block: 10px 2px; }
  .chip { min-height: var(--tap); font-size: 15px; }
  .rooms { display: none; }

  .slot, .break { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .slot { padding-block: 14px; }
  .slot .when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 19px; }
  .slot .when .par { display: inline; margin: 0; font-size: 15px; }
  .slot .when .rail-hall { display: inline-block; margin: 0; }
  .slot .when .flag { flex-basis: 100%; margin: 0; }
  .slot.now { padding-left: 24px; }
  .card { padding: 14px; scroll-margin-top: 124px; }
  .card h3 { font-size: 19px; }
  /* Larger small print: nothing under 15px in the programme. */
  .cat, .ctime { font-size: 15px; }
  .hall { font-size: 14px; padding: 6px 8px; }
  .note, .sec, .item .t, .dl, .ask, #toast { font-size: 15px; }
  .item .t { font-weight: 600; color: var(--fg); }
  .desc, .spk, .item { font-size: 16px; }
  .chair { font-size: 16px; }
  .chair .lbl { font-size: 14px; }
  .chair > div p:first-child { font-size: 18px; }
  .item { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .item:not(.nt) ~ .item.nt { margin-left: 8px; padding-left: 10px; }
  .chair { padding: 6px 10px; }
  .eng li { grid-template-columns: minmax(0, 1fr); gap: 0; }

  dialog, dialog.wide { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .bio-head { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 16px 14px; padding-right: 16px; }
  .bio-head .photo { flex-basis: 120px; width: 120px; height: 120px; }
  #bio .bio-head > div:last-child, #abs .bio-head { padding-right: 0; }
  #abs .bio-head { padding-top: 64px; }
  #bio .bio-head { padding-top: 18px; }
  #com .bio-head, #qr .bio-head { padding-right: 64px; }
  .bio-body { padding-inline: 16px; }
  .gallery > .dl { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: pop .18s ease-out; }
  @keyframes pop { from { transform: translateY(8px); opacity: .6; } to { transform: none; opacity: 1; } }
  @media (max-width: 700px) {
    dialog[open] { animation: sheet .22s cubic-bezier(.2, .8, .2, 1); }
    @keyframes sheet { from { transform: translateY(40%); } to { transform: none; } }
  }
  html { scroll-behavior: smooth; }
}

/* "Ask & more" button (bottom right): opens Ask a Question, Conference Feedback and the books.
   A gold pill with a dark ring, a "+" and a label, so it stands out on the light page and says what it is;
   60px tall, well above the 44px minimum tap size. */
.fab { position: fixed; z-index: 8; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); height: 60px; padding: 0 20px 0 14px; gap: 6px; border-radius: 30px; font: 700 21px/1 var(--display); letter-spacing: .02em; border: 3px solid var(--fab-ring); background: var(--gold); color: #1B2126; box-shadow: 0 6px 18px rgba(0, 0, 0, .3), 0 0 0 3px var(--bg); cursor: pointer; display: flex; align-items: center; }
.fab svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; transition: transform .18s ease; }
.fab[aria-expanded="true"] svg { transform: rotate(45deg); }
.fab:hover { filter: brightness(1.05); box-shadow: 0 8px 22px rgba(0, 0, 0, .35), 0 0 0 3px var(--bg); }
.fab:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
:root { --fab-ring: #1B2126; }
.fab-scrim { position: fixed; inset: 0; z-index: 7; background: var(--overlay); opacity: .6; }
.fab-menu { position: fixed; z-index: 8; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 80px); width: min(340px, calc(100vw - 32px)); display: grid; gap: 4px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .3); transform-origin: bottom right; }
.fab-item { display: flex; gap: 14px; align-items: center; min-height: 64px; padding: 10px 12px; border-radius: 10px; color: var(--fg); text-decoration: none; }
.fab-item:hover, .fab-item:focus-visible { background: var(--link-bg); }
.fab-item:focus-visible { outline: 3px solid var(--brand); outline-offset: 0; }
.fab-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--surface); }
.fab-ico-fb { background: var(--teal); }
.fab-item[hidden] { display: none; }
.fab-dl { position: relative; margin-top: 5px; }
.fab-dl::before { content: ""; position: absolute; left: 12px; right: 12px; top: -5px; border-top: 1px solid var(--line); }
.fab-ico-dl { background: var(--surface); color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.fab-ico svg { width: 24px; height: 24px; }
.fab-txt { display: grid; gap: 2px; }
.fab-txt b { font: 700 20px/1.1 var(--display); color: var(--brand); }
.fab-txt small { font-size: 14px; color: var(--muted); line-height: 1.3; }
/* Room under the footer so the button never sits on its links. */
footer.site .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: no-preference) {
  .fab-menu:not([hidden]) { animation: fab-pop .16s ease-out; }
  @keyframes fab-pop { from { transform: scale(.9) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* "Ask a question" link on programme cards */
.ask { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 10px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--brand); color: var(--brand); background: var(--surface); font: 600 14px/1.15 var(--body); text-decoration: none; }
.ask:hover { background: var(--link-bg); }
.ask svg { width: 16px; height: 16px; flex: none; }

/* Conference Feedback page (feedback.html) */
.fb-mast { background: var(--surface); border-bottom: 1px solid var(--line); }
.fb-mast .wrap { padding-block: 12px 18px; }
.fb-mast h1 { margin-top: 2px; }
.fb-back { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; color: var(--brand); text-decoration: none; }
.fb-back:hover { text-decoration: underline; }
.fb-lede { margin: 0; color: var(--muted); max-width: 56ch; }
.fb { max-width: 720px; padding-block: 8px 64px; }
.fb-q { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 16px 0 0; padding: 14px 16px 16px; min-width: 0; }
.fb-q legend, .fb-label { font: 600 17px/1.3 var(--body); color: var(--fg); padding: 0; }
.fb-q legend { float: left; width: 100%; margin-bottom: 12px; }
.fb-q legend + * { clear: both; }
.fb-label { display: block; margin-bottom: 8px; }
.fb-about .fb-label { font-size: 15px; margin: 12px 0 6px; }
.req, .opt { font: 600 12px/1 var(--body); padding: 3px 6px; border-radius: 4px; vertical-align: 2px; margin-left: 6px; white-space: nowrap; }
.req { color: var(--now-ink); background: var(--now-bg); }
.opt { color: var(--muted); background: var(--break-bg); }
.fb-hint { margin: 0; color: var(--muted); font-size: 14px; }
.fb-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.fb-scale label, .fb-pills label { position: relative; }
.fb-scale input, .fb-pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fb-scale span { display: grid; place-items: center; gap: 2px; min-height: 64px; padding: 6px 2px; border: 1px solid var(--control-line); border-radius: 10px; background: var(--bg); font-size: 12px; line-height: 1.15; text-align: center; color: var(--muted); cursor: pointer; }
.fb-scale span b { font: 700 24px/1 var(--display); color: var(--fg); }
.fb-scale input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.fb-scale input:checked + span b { color: var(--surface); }
.fb-scale input:focus-visible + span, .fb-pills input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.fb-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-pills span { display: inline-flex; align-items: center; justify-content: center; min-width: 88px; min-height: var(--tap); padding: 0 18px; border: 1px solid var(--control-line); border-radius: 22px; background: var(--bg); font-weight: 600; cursor: pointer; }
.fb-pills input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.fb select, .fb textarea, .fb input:not([type="radio"]) { width: 100%; font: 16px/1.4 var(--body); color: var(--fg); background: var(--bg); border: 1px solid var(--control-line); border-radius: 8px; padding: 10px 12px; min-height: var(--tap); }
.fb textarea { resize: vertical; }
.fb select:focus, .fb textarea:focus, .fb input:focus { outline: 3px solid var(--brand); outline-offset: 1px; }
.fb-count { margin: 4px 0 0; font-size: 13px; color: var(--muted); min-height: 1em; }
.fb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.fb-missing { border-color: #B3261E; box-shadow: 0 0 0 1px #B3261E; }
.fb-error { margin: 16px 0 0; padding: 10px 14px; border-radius: 8px; background: #FDECEA; color: #8C1D18; font-weight: 600; }
.fb-note { margin: 16px 0 0; padding: 10px 14px; border-radius: 8px; background: var(--now-bg); color: var(--now-ink); }
.fb-submit { display: block; width: 100%; min-height: 56px; margin-top: 20px; border: 0; border-radius: 12px; background: var(--brand); color: var(--surface); font: 700 22px/1 var(--display); letter-spacing: .02em; cursor: pointer; }
.fb-submit:disabled { opacity: .6; cursor: progress; }
.fb-done { margin-top: 24px; padding: 24px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.fb-done h2 { font: 700 34px/1.1 var(--display); color: var(--brand); margin: 0 0 8px; }
@media (max-width: 480px) {
  .fb-two { grid-template-columns: 1fr; }
  .fb-scale { gap: 4px; }
  .fb-scale span { font-size: 11px; min-height: 60px; }
}
