/* The 48-hour agenda. It reuses the relay's type and colour; what it adds is
   a timeline that stays readable at 1,700 blocks and at 375 pixels wide. */

.agenda-page main { max-width: 68rem; margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.agenda-live { border: 1px solid var(--rule, #ddd); border-left: 4px solid currentColor; padding: 1rem 1.25rem; margin: 1rem 0 1.5rem; }
.agenda-live[data-state="live"] { border-left-color: #b3261e; }
.agenda-live h3 { margin: .25rem 0; }
.agenda-next { margin: .35rem 0 0; font-size: .95rem; }
.agenda-countdown { margin: .25rem 0; font-weight: 600; }
.agenda-countdown[data-remaining]::after { content: " (" attr(data-remaining) " to go)"; font-weight: 400; }

.agenda-key { border: 1px solid var(--rule, #ddd); border-left: 4px solid currentColor; padding: .75rem 1.25rem; margin: 1rem 0 1.5rem; }
.agenda-key > summary { font-weight: 600; cursor: pointer; }
.agenda-key > p { margin: .6rem 0 0; font-size: .95rem; color: var(--ink-soft, #4b5560); }
.agenda-key[open] > summary { margin-bottom: .25rem; }

.agenda-zone { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0; }
.agenda-zone label { font-weight: 600; }
.agenda-zone select { padding: .4rem .5rem; font: inherit; max-width: 100%; }
.agenda-zone-note { flex-basis: 100%; margin: .25rem 0 0; font-size: .9rem; color: var(--ink-soft,#4b5560); }

.agenda-views { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.agenda-views button { font: inherit; padding: .4rem .75rem; border: 1px solid var(--rule, #ddd); background: transparent; cursor: pointer; }
.agenda-views button[aria-pressed="true"] { border-color: currentColor; font-weight: 600; }
.agenda-jump { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9rem; margin: .25rem 0 1.5rem; }
.agenda-jump span { color: var(--ink-soft,#4b5560); }
.agenda-jump a { color:var(--accent-text,#87401d); }

.agenda-section { margin: 2rem 0; }
.agenda-group { margin: 1.25rem 0; }
.agenda-group h3 { margin: 0 0 .25rem; }
.agenda-group[data-state="not-built"] { border-left: 3px dashed var(--rule, #ddd); padding-left: 1rem; }
.agenda-list { list-style: none; margin: .5rem 0 0; padding: 0; }

.agenda-item { border-top: 1px solid var(--rule, #eee); padding: .5rem 0; }
.agenda-item[data-live="now"] { border-left: 4px solid #b3261e; padding-left: .75rem; }
.agenda-item[data-live="now"] .agenda-title::after { content: " · Live now"; font-weight: 600; }
.agenda-detail > summary { display: grid; grid-template-columns: 11rem 1fr auto; gap: .25rem 1rem; align-items: baseline; cursor: pointer; list-style: none; }
.agenda-detail > summary::-webkit-details-marker { display: none; }
.agenda-detail > summary::before { content: "+"; position: absolute; margin-left: -1rem; color: var(--ink-soft,#4b5560); }
.agenda-detail[open] > summary::before { content: "\2212"; }
.agenda-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.agenda-title { font-weight: 600; }
.agenda-format { grid-column: 2; font-size: .9rem; color: var(--ink-soft,#4b5560); }
.agenda-duration { font-size: .85rem; color: var(--ink-soft,#4b5560); white-space: nowrap; }
.agenda-body { padding: .5rem 0 .5rem 11rem; }
.agenda-body .session-question { font: 600 1.02rem/1.45 Georgia, "Times New Roman", serif; margin: .25rem 0; }
.agenda-contributors { margin: .35rem 0 0; }

/* A baton handover reads as a transition, never as another conversation: one
   compact line, lighter than the rooms either side, closed until asked. */
.agenda-handover { font-size: .9rem; color: var(--ink-soft,#4b5560); padding: .25rem 0; }
.agenda-handover:not(:has(.agenda-baton-detail)) { display: grid; grid-template-columns: 11rem 1fr auto; gap: 1rem; align-items: baseline; }
.agenda-handover .agenda-title { font-weight: 600; }
.agenda-handover .agenda-duration { font-style: italic; }
.agenda-baton-detail > .agenda-body { padding-top: .35rem; padding-bottom: .5rem; }
.handover-carries { margin: .25rem 0 0; display: grid; gap: .4rem; }
.handover-carries dt { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted,#5b656f); }
.handover-carries dd { margin: .1rem 0 0; }
/* A float is the shortest thing on the clock and the quietest row on the page:
   real time, visible, and never mistaken for the conversation either side. */
.agenda-float { display: grid; grid-template-columns: 11rem 1fr auto; gap: 1rem; align-items: baseline; font-size: .85rem; color: var(--muted,#5b656f); padding: .15rem 0; font-style: italic; }

.agenda-review table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.agenda-review th, .agenda-review td { text-align: left; padding: .3rem .5rem; border-bottom: 1px solid var(--rule, #eee); font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .agenda-detail > summary, .agenda-float, .agenda-handover:not(:has(.agenda-baton-detail)) { grid-template-columns: 1fr; }
  .agenda-body { padding-left: 0; }
  .agenda-duration { justify-self: start; }
  .agenda-detail > summary::before { position: static; margin: 0 .35rem 0 0; }
}

/* The trimmed head: a compact heading, one quiet status line, then the
   programme. The review table sits under the agenda, not over it. */
.agenda-intro { padding-top: 28px; padding-bottom: 8px; }
.agenda-intro h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 4px 0 0; }
.agenda-live-quiet { margin: .25rem 0 .75rem; font-size: .95rem; color: var(--ink-soft,#4b5560); }
.agenda-live-quiet[data-remaining]::after { content: " (" attr(data-remaining) " to go)"; }
.agenda-review { margin-top: 2.5rem; }

/* The Toronto Return: the last hour, shown as one thing. The beats are inside
   it, not beside it, and the two questions sit where a reader meets them. */
.agenda-return-hour { border-top-width: 2px; }
.agenda-return-detail > summary .agenda-format { font-style: italic; }
.return-questions { margin: .75rem 0; display: grid; gap: .5rem; }
.return-questions dt { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted,#5b656f); }
.return-questions dd { margin: .1rem 0 0; font: 600 1.02rem/1.45 Georgia, "Times New Roman", serif; }
.agenda-beats { margin-top: .75rem; border-top: 1px solid var(--rule,#eee); }
.agenda-beat { display: grid; grid-template-columns: 11rem 1fr auto; gap: .25rem 1rem; align-items: baseline; }
.agenda-beat-body { grid-column: 2 / -1; margin: .1rem 0 .35rem; }
.agenda-beat-body .session-purpose { margin: 0; }
.beat-prompts { margin: .35rem 0 0; padding-left: 1.1rem; font-size: .95rem; color: var(--ink-soft,#4b5560); }
@media (max-width: 640px) {
  .agenda-beat { grid-template-columns: 1fr; }
  .agenda-beat-body { grid-column: 1; }
}

/* Targets and focus.
   Every control on this page is something a reader taps or tabs to on a long
   scroll: the jump links, the view buttons, the timezone select and every
   disclosure. WCAG 2.2 asks for 24 by 24 CSS pixels; the jump links and the
   handover rows were landing at 23, so they get the height explicitly rather
   than inheriting whatever the line box happens to be. */
.agenda-jump a,
.agenda-views button { min-height: 24px; display: inline-flex; align-items: center; }
.agenda-detail > summary { min-height: 24px; }
/* A focus ring the page owns, so it reads the same on a summary, a button and
   a link, and does not depend on the browser's default. */
.agenda-jump a:focus-visible,
.agenda-views button:focus-visible,
.agenda-detail > summary:focus-visible,
#agenda-timezone:focus-visible { outline: 2px solid var(--accent-text,#87401d); outline-offset: 2px; }

/* Who is speaking, on the row itself (owner decision, 2026-11-10). */
.agenda-speakers { grid-column: 2; font-size: .9rem; font-weight: 600; color: var(--accent-text,#87401d); }
.agenda-share { margin-top: .75rem; font-size: .9rem; }

/* One conversation, at /s/<slug>. */
.session-page .session-intro h1 { margin-bottom: .5rem; }
.session-when { font-size: 1.1rem; font-weight: 600; margin: .25rem 0; }
.session-utc { font-weight: 400; color: var(--ink-soft,#4b5560); }
.session-format { color: var(--ink-soft,#4b5560); margin: 0; }
.session-body { max-width: 46rem; }
.session-people h2 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.session-people ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.session-people li { display: grid; gap: .1rem; }
.session-people li span { color: var(--ink-soft,#4b5560); font-size: .95rem; }
.session-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; }
.session-note { font-size: .9rem; color: var(--ink-soft,#4b5560); }
