/* ======================================================================
   Online Service page body, egw-diaspora theme 3.21.0. Loaded by page-online-service.php only, after global.css, the kit
   (egw-kit, the site-wide scoped copy, or assets/css/egw-kit-scoped.css) and the chrome. Every rule here is limited to
   .os-page, the page body's wrapper (a rule that reads a state on html keeps html first), so the theme's header, menus,
   quick links and footer and the kit's own rules are untouched.

   Ported from the approved Online Service preview v1 (source/online-service.css, md5 97148599aeb4606ea3cac11ed28c351c: the page's own design on
   the kit's tokens; the Stage black in both themes; light and dark, reduced motion, breakpoints 960 / 860 / 640 / 420), with
   these changes:
   1. room for the theme's fixed header: the page starts under it (--nav-height: its real height, kept up to date by the
      chrome);
   2. #os-hero, the old page's anchor (main.js still offers it as "Service Countdown"): a zero-size span at the top of the
      Stage section, landing where #s-stage lands;
   3. the theme's group photo (assets/images/egw-family.jpg, the same photo as the preview's stand-in) standing in for an
      empty Testimony Promo Image, in the preview's 4:5 frame, cropped as the preview's testimony.jpg is;
   4. answers to global.css, each naming the rule it answers;
   5. left out, as review-only: the review notes and their wrappers (.rev, .os-revs, .os-rev-head, .os-rev-week, .os-rev-cal,
      .os-after-revs) and the player mock (.os-player-mock, .os-play-glyph).
   States on html (set before the first paint by the template's inline script, from the server's state): os-waiting (also the
   look with no class), is-live, os-ended; os-swap only while a change plays (.6s); os-line-scroll when the Customizer's
   "Notice scrolling" is ticked. The notice line's parts are os-line-in, -track, -run, -text and -clone (the preview's os-notice-*)
   and the html class is os-line-scroll (the handoff's os-notice-scroll): functions.php hides every front-end element whose class
   contains "notice-" (egw_suppress_frontend_wp_notices, display: none !important), which hid the line, and with Notice scrolling
   ticked the whole page. Motion uses transform, opacity, scale, translate and height only, and stops under
   prefers-reduced-motion. No ancestor of the sticky header sets overflow: the Stage clips only itself.
   ====================================================================== */

/* ---------- 00 page frame: the theme's fixed header, the old anchor ---------- */
.os-page { padding-top: var(--nav-height, 85px); }
.os-page .os-anchor { position: absolute; top: 0; left: 0; width: 0; height: 0; overflow: hidden; } /* out of the flow (the kit's sections are relative): beside the Stage's wrap, never before it */
.os-page #os-hero { scroll-margin-top: calc(88px + var(--s-5)); }


/* helpers */
.os-page .os-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* in-page links land under the sticky header by the chrome's rule ([id^="s-"] 88px: the header is 85px at the top of the page and 75px once
   scrolled); the Stage has no top padding of its own, so its frame keeps a gap under the header */
.os-page #s-stage { scroll-margin-top: calc(88px + var(--s-5)); }

/* ---------- 01 page header: breadcrumb, H1 with its sub-title 16px under it (kit rule 38), lead; only the small bottom padding (kit 41) ---------- */
.os-page .os-head { padding-block: clamp(3.25rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.os-page .os-head h1 span { display: block; margin-top: 16px; font-size: clamp(1.2rem, 1.9vw, 1.5rem); font-weight: 400; letter-spacing: -.01em; line-height: 1.4; color: var(--ink); max-width: 32ch; text-wrap: balance; }
.os-page .os-head .lead { max-width: 62ch; margin-top: var(--s-5); }
@media (max-width: 960px) { .os-page .os-head h1 span, .os-page .os-head .lead { margin-inline: auto; } }

/* ---------- 02 the Stage ----------
   A black screen in both themes: the kit's dark tokens are scoped to the frame, so pills, buttons, rounds and labels take their dark
   variants here in the light theme too, and every label is at full contrast on #0B0B0A. The frame is the wrap's width. */
.os-page #s-stage { padding-block: 0 clamp(2rem, 4vw, 3rem); }
.os-page .os-stage {
  --page: #0B0B0A; --stage: #121211; --card: #1A1A18; --well: #232220; --well-2: #2A2926; --frame: #1A1A18;
  --ink: #F8F8F6; --ink-2: #C6C3B9; --muted: #B2AFA5;
  --line: rgba(255,255,255,.14); --line-strong: rgba(255,255,255,.24); --dot: #8A8983;
  --btn: #F8F8F6; --btn-fg: #1A1A1A; --pill: #3A3936; --pill-fg: #F8F8F6;
  --ok: #81C995; --ok-bg: #243428; --live: #F28B82; --live-bg: #3A2725;
  --inv-btn: #F8F8F6; --inv-btn-fg: #0B0B0A;
  --tint-1: rgba(255,255,255,.06); --tint-2: rgba(255,255,255,.10);
  --shadow-btn: 0 8px 22px -10px rgba(0,0,0,.7);
  --os-edge: rgba(248,248,246,.6); /* the white edge of the Stage's ghost buttons (6.1:1 on the black) */
  color-scheme: dark;
  position: relative; border-radius: var(--r-xl); overflow: clip; background: #0B0B0A; color: var(--ink);
  border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow-card);
}
.os-page .os-stage .btn.ghost { border-color: var(--os-edge); }
.os-page .os-stage .btn.ghost:hover { border-color: var(--ink); background: var(--tint-1); }
.os-page .os-stage .btn.inv:hover { box-shadow: 0 8px 22px -10px rgba(255,255,255,.35); }
.os-page .os-stage .round { background: transparent; border-color: var(--os-edge); }
.os-page .os-stage .round:hover { border-color: var(--ink); background: var(--tint-1); }
.os-page .os-label { font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; line-height: 1.6; text-transform: uppercase; color: var(--ink); }
.os-page .os-btns { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* three faces, each at its own height (round 1): the face shown is in the flow and sets the frame's height; the other two lie over it,
   out of the flow, while they fade. A state change crossfades the faces (.6s) and glides the frame from the old face's height to the
   new one's (.6s --ease-out; page.js measures both). No state class reads as waiting (the theme prints html.os-waiting). */
.os-page .os-faces { position: relative; }
.os-page .os-face { position: absolute; inset: 0 0 auto; min-width: 0; opacity: 0; visibility: hidden; }
html:not(.is-live):not(.os-ended) .os-page .os-face-wait, html.is-live .os-page .os-face-live, html.os-ended .os-page .os-face-end { position: relative; opacity: 1; visibility: visible; }
html.os-swap .os-page .os-faces { overflow: clip; transition: height .6s var(--ease-out); }
html.os-swap .os-page .os-face { transition: opacity .6s var(--ease-out), visibility 0s linear .6s; }
html.os-swap:not(.is-live):not(.os-ended) .os-page .os-face-wait, html.os-swap.is-live .os-page .os-face-live, html.os-swap.os-ended .os-page .os-face-end { transition: opacity .6s var(--ease-out), visibility 0s; }

/* waiting face: text 54% | photo 46%; at least 560px tall above 960px, the text vertically centred */
.os-page .os-face-wait { display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); min-height: 560px; }
.os-page .os-wait-text { grid-column: 1; grid-row: 1; align-self: center; position: relative; z-index: 1; display: grid; justify-items: start; padding: var(--s-8); }
.os-page .os-title { margin-top: var(--s-3); font-size: var(--t-h2); font-weight: 400; color: var(--ink); max-width: 18ch; }
.os-page .os-when { display: grid; gap: 2px; margin-top: var(--s-4); }
.os-page .os-when-gmt { font-size: var(--t-lead); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.os-page .os-when-local { font-size: var(--t-base); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.os-page .os-when-local:empty { display: none; }
/* countdown: no boxes; digits on the black, a 1px rule under each pair, 24px apart; kit rolling digits (.dg, .55s) */
.os-page .os-cd { display: flex; gap: 24px; margin-top: var(--s-6); font-variant-numeric: tabular-nums; }
.os-page .os-cd-cell { display: grid; justify-items: start; gap: var(--s-2); }
.os-page .os-cd-num { display: flex; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -.02em; line-height: 1; padding-bottom: var(--s-2); border-bottom: 1px solid var(--line-strong); }
.os-page .os-cd small { font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; line-height: 1.6; text-transform: uppercase; color: var(--ink); }
.os-page .os-face-wait .os-btns { margin-top: var(--s-6); }
/* the photo. backdrop (default, round 1): it lies under the whole face; the black stays solid to 35% of the frame's width and eases out
   (sine in-out stops) to clear at 70%; a top vignette (black 35% to clear over the top 28%); and a 10% black layer, the photo at
   brightness .9, drawn as a layer so the kit's dark-theme grayscale filter on .photo stays as it is */
.os-page .os-wait-media { grid-column: 2; grid-row: 1; position: relative; margin: 0; overflow: clip; }
.os-page .os-stage[data-photo="backdrop"] .os-wait-media { position: absolute; inset: 0; grid-area: auto; }
.os-page .os-wait-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,11,10,.35) 0%, rgba(11,11,10,0) 28%),
    linear-gradient(90deg, #0B0B0A 0%, #0B0B0A 35%, rgba(11,11,10,.962) 39.375%, rgba(11,11,10,.854) 43.75%, rgba(11,11,10,.691) 48.125%, rgba(11,11,10,.5) 52.5%, rgba(11,11,10,.309) 56.875%, rgba(11,11,10,.146) 61.25%, rgba(11,11,10,.038) 65.625%, rgba(11,11,10,0) 70%),
    linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.1)); }
.os-page .os-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.os-page .os-stage[data-photo="backdrop"] .os-photo { animation: os-drift 30s ease-in-out infinite alternate; }
html:is(.is-live, .os-ended) .os-page .os-photo { animation-play-state: paused; }
@keyframes os-drift { from { scale: 1; } to { scale: 1.05; } }
/* poster: an image taller than wide (a flyer) sits whole as a card on the right, at its own proportion, never cropped */
.os-page .os-stage[data-photo="poster"] .os-wait-media::after { content: none; }
.os-page .os-stage[data-photo="poster"] .os-photo { inset: 0; margin: auto; width: auto; height: auto; max-width: calc(100% - 2 * var(--s-6)); max-height: calc(100% - 2 * var(--s-6)); object-fit: contain; border-radius: var(--r-lg); box-shadow: 0 24px 60px -24px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
/* none: text only, centred */
.os-page .os-stage[data-photo="none"] .os-face-wait { grid-template-columns: minmax(0, 1fr); }
.os-page .os-stage[data-photo="none"] .os-wait-media { display: none; }
.os-page .os-stage[data-photo="none"] .os-wait-text { justify-self: center; justify-items: center; text-align: center; }
.os-page .os-stage[data-photo="none"] :is(.os-cd, .os-btns) { justify-content: center; }
.os-page .os-stage[data-photo="none"] .os-title { margin-inline: auto; }

/* live face: the top bar and the player box at its own 16:9 height (the frame's full width) */
.os-page .os-face-live { display: flex; flex-direction: column; }
.os-page .os-live-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); min-height: 56px; padding: 6px var(--s-4) 6px var(--s-5); border-bottom: 1px solid var(--line); }
.os-page .os-live-pill { text-transform: uppercase; letter-spacing: .08em; }
html.is-live .os-page .os-live-pill { animation: os-spring .6s var(--ease-spring) backwards; }
@keyframes os-spring { from { scale: .6; opacity: 0; } }
.os-page .os-live-title { font-size: var(--t-base); font-weight: 600; color: var(--ink); min-width: 0; }
.os-page .os-live-for { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.os-page .os-live-tools { display: flex; gap: var(--s-2); margin-left: auto; }
html:not(.is-live) .os-page .os-face-live .pill.live i { animation-play-state: paused; }
.os-page .os-player { position: relative; flex: none; width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; background: #000; overflow: clip; }
.os-page .os-player:focus { outline: none; }
.os-page .os-player:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.os-page .os-player:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; }
.os-page .os-player-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.os-page .os-stage[data-photo="poster"] .os-player-photo { object-fit: contain; }
.os-page .os-stage[data-photo="none"] .os-player-photo { display: none; }
.os-page .os-watch { position: relative; z-index: 1; min-height: 60px; padding-inline: var(--s-6); font-size: 1rem; }
.os-page .os-watch .i { width: 18px; height: 18px; }
/* Home's halo (home-sections, v3.15: Join live service while live), made visible (round 1): a soft ring 6px outside the button. At rest
   and under reduced motion it is a still ring; while live it pulses out to 1.12 as it fades, every 2.4s */
.os-page .os-watch::after { content: ""; position: absolute; inset: -7px; border: 2px solid rgba(248,248,246,.5); border-radius: inherit; pointer-events: none; }
html.is-live .os-page .os-watch::after { animation: os-halo 2.4s ease-out infinite; }
@keyframes os-halo { from { opacity: 1; scale: 1; } to { opacity: 0; scale: 1.12; } }
.os-page .os-player.is-built :is(.os-player-photo, .os-watch) { display: none; }
.os-page .os-player iframe, .os-page .os-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.os-page .os-player video { object-fit: contain; } /* a vertical video is never squeezed */

/* the on-air bars (round 1): four bars 3px wide, 2px apart, centred on the text line. At rest and under reduced motion they stand at
   mid heights; while live each runs from 4 to 14px in a 1s loop, a quarter of a beat after the one before */
.os-page .os-eq { display: inline-flex; align-items: center; gap: 2px; height: 14px; flex: none; }
.os-page .os-eq i { display: block; width: 3px; height: 9px; border-radius: 1.5px; background: currentColor; }
.os-page .os-eq i:nth-child(1) { height: 7px; } .os-page .os-eq i:nth-child(2) { height: 12px; } .os-page .os-eq i:nth-child(3) { height: 9px; } .os-page .os-eq i:nth-child(4) { height: 11px; }
html.is-live .os-page .os-eq i { animation: os-eq 1s ease-in-out infinite; }
html.is-live .os-page .os-eq i:nth-child(2) { animation-delay: -.25s; } html.is-live .os-page .os-eq i:nth-child(3) { animation-delay: -.5s; } html.is-live .os-page .os-eq i:nth-child(4) { animation-delay: -.75s; }
@keyframes os-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ended face (round 1): centred text over the same photo, covered and dimmed to 30% brightness (a 70% black layer, so .photo still turns
   it black and white in dark); at least 440px tall above 960px. Backdrop mode only: a flyer is not a backdrop, so poster and none keep
   the plain black */
.os-page .os-face-end { display: grid; align-content: center; justify-items: center; gap: var(--s-4); min-height: 440px; padding: var(--s-8) var(--s-6); text-align: center; isolation: isolate; }
.os-page .os-end-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.os-page .os-face-end::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.7); pointer-events: none; }
.os-page .os-stage:not([data-photo="backdrop"]) .os-end-photo, .os-page .os-stage:not([data-photo="backdrop"]) .os-face-end::before { display: none; }
.os-page .os-next-when { display: grid; justify-items: center; gap: 2px; }
.os-page .os-end-title { font-size: var(--t-h2); font-weight: 400; color: var(--ink); max-width: 22ch; }
.os-page .os-next { font-size: var(--t-lead); color: var(--ink-2); max-width: 46ch; text-wrap: balance; font-variant-numeric: tabular-nums; }
.os-page .os-next-local { font-size: var(--t-base); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.os-page .os-next-local:empty { display: none; }
.os-page .os-face-end .os-btns { justify-content: center; margin-top: var(--s-3); }

/* action bar: the frame's bottom band on every face */
.os-page .os-bar { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); }
.os-page .os-bar .btn { min-height: 44px; padding-inline: var(--s-4) var(--s-5); font-size: var(--t-sm); }
.os-page .os-bar .btn .i { width: 18px; height: 18px; }

/* ---------- the calendar menu (round 2): the kit's popover card (.pop, .pop-row) under every Set a reminder and Remind me; page.js
   keeps it under its button (fixed, following the button each frame; under the sticky header, z 45). Rows 44px tall for touch ---------- */
.os-page .os-cal-pop { position: fixed; top: 0; left: 0; right: auto; width: min(292px, calc(100vw - 32px)); transform-origin: top left; z-index: 45; }
.os-page .os-cal-pop.open { opacity: 1; scale: 1; translate: 0 0; }
.os-page .os-cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 0 0 4px 10px; }
.os-page .os-cal-head .micro { padding: 0; min-width: 0; overflow-wrap: anywhere; }
.os-page .os-cal-x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: background-color .12s ease; }
.os-page .os-cal-x:hover, .os-page .os-cal-x:focus-visible { background: var(--tint-1); }
.os-page .os-cal-x .i { width: 16px; height: 16px; }
.os-page .os-cal-pop .pop-row { min-height: 44px; }

/* ---------- 03 notice line: one quiet band, still by default; scrolling (dock) only when wider than the band ---------- */
.os-page .os-notice { background: var(--stage); border-block: 1px solid var(--line-strong); padding-block: var(--s-4); }
.os-page .os-line-in { display: flex; align-items: center; justify-content: center; gap: var(--s-3); min-width: 0; }
.os-page .os-line-in > .i { width: 18px; height: 18px; color: var(--ink); }
.os-page .os-line-track { min-width: 0; overflow: clip; }
.os-page .os-line-text { font-size: var(--t-sm); font-weight: 500; line-height: 1.5; color: var(--ink); text-align: center; text-wrap: balance; }
.os-page .os-line-run.is-measuring > .os-line-text { white-space: nowrap; width: max-content; }
.os-page .os-notice.is-scrolling .os-line-in { justify-content: flex-start; }
.os-page .os-notice.is-scrolling .os-line-track { flex: 1 1 auto; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.os-page .os-notice.is-scrolling .os-line-run { display: flex; width: max-content; animation: os-mq var(--os-mq-dur, 20s) linear infinite; }
.os-page .os-notice.is-scrolling .os-line-text { white-space: nowrap; padding-right: 4rem; text-align: start; }
.os-page .os-notice.is-scrolling:hover .os-line-run, .os-page .os-notice.is-scrolling .os-line-track:focus-visible .os-line-run, .os-page .os-notice.is-scrolling:focus-within .os-line-run { animation-play-state: paused; }
@keyframes os-mq { to { translate: -50% 0; } }

/* ---------- 04 Every week: three compact tickets, level bottoms ---------- */
.os-page .os-sec-head { display: grid; justify-items: center; gap: var(--s-4); text-align: center; margin-bottom: var(--s-7); }
.os-page .os-sec-head .lead { max-width: 50ch; }
.os-page .os-tickets { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: var(--s-5); max-width: 1040px; margin-inline: auto; } /* the row stays centred whatever the count of services (R25) */
.os-page .os-ticket { flex: 0 1 calc((100% - 2 * var(--s-5)) / 3); min-width: 0; }
.os-page .os-ticket { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--s-5); }
.os-page .os-t-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); align-self: stretch; }
.os-page .os-t-day { display: grid; line-height: 1.2; }
.os-page .os-t-dow { font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.os-page .os-t-date { font-size: var(--t-h3); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.os-page .os-t-pill { display: inline-grid; justify-items: end; } /* no reserved row: empty, it takes no room */
.os-page .os-t-pill > .pill { grid-area: 1 / 1; display: none; }
.os-page .os-ticket.is-next .os-p-next, html.is-live .os-page .os-ticket.is-live .os-p-live { display: inline-flex; }
.os-page .os-ticket h3 { font-size: var(--t-h3); font-weight: 600; }
.os-page .os-t-time { display: grid; }
.os-page .os-t-time > * { grid-area: 1 / 1; }
.os-page .os-t-gmt { font-size: var(--t-lead); font-weight: 500; font-variant-numeric: tabular-nums; }
.os-page .os-t-local { font-size: var(--t-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.os-page .os-t-local:empty { display: none; }
.os-page .os-t-air { display: inline-flex; align-items: center; gap: var(--s-2); align-self: center; visibility: hidden; color: var(--live); }
.os-page .os-t-air b { font-size: var(--t-lead); font-weight: 500; color: var(--ink); }
html.is-live .os-page .os-ticket.is-live .os-t-sched { visibility: hidden; }
html.is-live .os-page .os-ticket.is-live .os-t-air { visibility: visible; }
.os-page .os-ticket .btn { margin-top: auto; min-height: 44px; padding-inline: var(--s-4) var(--s-5); font-size: var(--t-sm); }
.os-page .os-week-note { margin-top: var(--s-5); text-align: center; font-size: var(--t-sm); color: var(--ink-2); }

/* ---------- 05 How to join: the title and lead | the kit rows ---------- */
.os-page .os-join-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.os-page .os-join-head { display: grid; justify-items: start; gap: var(--s-4); }
.os-page .os-join-head .lead { max-width: 30ch; }
.os-page .os-rows { padding: var(--s-3) var(--s-5); }
.os-page .os-rows .row { align-items: center; }
.os-page .os-rows .row small { font-size: var(--t-sm); line-height: 1.5; color: var(--ink-2); margin-top: 4px; }
.os-page .os-rows .ctl .btn { min-height: 44px; padding-inline: var(--s-4) var(--s-5); font-size: var(--t-sm); }
.os-page .os-rows .ctl .btn .i { width: 16px; height: 16px; }
.os-page .os-need { margin-top: var(--s-4); font-size: var(--t-sm); color: var(--muted); }

/* ---------- 06 Your next step: two feature cards, bottoms level, buttons on the foot ---------- */
.os-page .os-after-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); align-items: stretch; max-width: 1040px; margin-inline: auto; }
.os-page .os-feature { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--s-5); }
.os-page .os-kicker { font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.os-page .os-feature h3 { font-size: var(--t-h3); font-weight: 600; }
.os-page .os-feature p:not(.os-kicker):not(.rev) { font-size: var(--t-sm); line-height: 1.6; color: var(--ink-2); max-width: 52ch; margin-bottom: var(--s-2); }
.os-page .os-feature .btn { margin-top: auto; min-height: 44px; } /* on the card foot in both cards */
.os-page .os-feature-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.os-page .os-feature-photo { margin: 0 0 var(--s-2); }
.os-page .os-feature-photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 240px; border-radius: var(--r-md); }
/* above 860 (round 1) the testimony card is a row: the photo at the left in a holder at its own proportion (at most 240px tall and 42%
   of the card), the text at the right */
@media (min-width: 861px) {
  .os-page .os-feature-row { flex-direction: row; align-items: stretch; gap: var(--s-5); }
  .os-page .os-feature-row .os-feature-photo { flex: none; max-width: 42%; align-self: flex-start; margin: 0; }
}

/* ---------- 07 Watch again: a slim band card ---------- */
.os-page section.sec.os-broadcast { padding-top: 0; } /* a coda to 06: the band sits one section rhythm under the cards */
.os-page .os-band { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5) var(--s-6); padding: var(--s-5) var(--s-6); }
.os-page .os-band h2 { font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; line-height: 1.6; text-transform: uppercase; color: var(--ink); }
.os-page .os-band p { margin-top: var(--s-2); color: var(--ink-2); max-width: 66ch; }
.os-page .os-band .btn { flex: none; }

/* ---------- small screens: whenever a holder stacks into one column, everything in it is centred; rows stay rows ---------- */
@media (max-width: 960px) {
  .os-page .os-face-wait { grid-template-columns: minmax(0, 1fr); }
  .os-page .os-face-wait, .os-page .os-face-end { min-height: 0; } /* each face at its natural height */
  .os-page .os-wait-media, .os-page .os-stage[data-photo="backdrop"] .os-wait-media { position: relative; inset: auto; grid-column: 1; grid-row: 1; min-height: 0; aspect-ratio: 16 / 9; }
  .os-page .os-wait-media::after { /* the same softening on the upward feather: solid at the text edge, eased out to clear by 60% of the band */
    background:
      linear-gradient(180deg, rgba(11,11,10,.35) 0%, rgba(11,11,10,0) 28%),
      linear-gradient(0deg, #0B0B0A 0%, #0B0B0A 6%, rgba(11,11,10,.962) 12.75%, rgba(11,11,10,.854) 19.5%, rgba(11,11,10,.691) 26.25%, rgba(11,11,10,.5) 33%, rgba(11,11,10,.309) 39.75%, rgba(11,11,10,.146) 46.5%, rgba(11,11,10,.038) 53.25%, rgba(11,11,10,0) 60%),
      linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.1)); }
  .os-page .os-wait-text { grid-column: 1; grid-row: 2; justify-self: stretch; justify-items: center; text-align: center; padding: var(--s-5) var(--s-8) var(--s-8); }
  .os-page .os-title { margin-inline: auto; }
  .os-page .os-face-wait :is(.os-cd, .os-btns) { justify-content: center; }
  .os-page .os-cd-cell { justify-items: center; }
  .os-page .os-stage[data-photo="poster"] .os-wait-media { aspect-ratio: auto; display: flex; justify-content: center; padding: var(--s-6) var(--s-6) 0; }
  .os-page .os-stage[data-photo="poster"] .os-photo { position: static; margin: 0; width: auto; max-width: min(60vw, 100%); max-height: none; }
  .os-page .os-stage[data-photo="none"] .os-wait-text { padding-top: var(--s-8); }
  .os-page .os-join-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .os-page .os-join-head { justify-items: center; text-align: center; }
  .os-page .os-need { text-align: center; justify-content: center; display: flex; }
}
@media (max-width: 860px) {
  .os-page .os-bar { justify-content: center; }
  .os-page .os-tickets { max-width: 440px; }
  .os-page .os-ticket { flex-basis: 100%; }
  .os-page .os-ticket { align-items: center; text-align: center; }
  .os-page .os-t-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; } /* the day centred, the pill at the right end of the same row */
  .os-page .os-t-day { grid-column: 2; }
  .os-page .os-t-pill { grid-column: 3; justify-self: end; }
  .os-page .os-t-time > * { justify-self: center; }
  .os-page .os-after-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .os-page .os-feature, .os-page .os-feature-text { align-items: center; text-align: center; }
  .os-page .os-feature p:not(.os-kicker) { margin-inline: auto; }
  .os-page .os-band { flex-direction: column; text-align: center; }
  .os-page .os-band p { margin-inline: auto; }
  
}
@media (max-width: 640px) {
  .os-page .os-wait-text { padding: var(--s-5) var(--s-6) var(--s-6); }
  .os-page .os-stage[data-photo="none"] .os-wait-text { padding-top: var(--s-6); }
  /* the live bar in two rows, at most 104px (round 1): Live now, the bars with the minutes, Share and Fullscreen; then the title */
  .os-page .os-live-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "pill for tools" "title title title"; align-items: center; gap: var(--s-2); padding: 8px 12px 10px; }
  .os-page .os-live-pill { grid-area: pill; }
  .os-page .os-live-for { grid-area: for; font-size: var(--t-xs); line-height: 1.3; } /* at 360px the minutes may take two lines, still inside the 44px row */
  .os-page .os-live-tools { grid-area: tools; margin-left: 0; }
  .os-page .os-live-title { grid-area: title; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .os-page .os-face-end { padding: var(--s-7) var(--s-5); }
  .os-page .os-bar { padding: var(--s-4); }
}
@media (max-width: 420px) {
  .os-page .os-cd { gap: 18px; }
}

/* ---------- reduced motion: loops, rolls and drifts off; states swap at once (the kit's own rule stops transitions) ---------- */
@media (prefers-reduced-motion: reduce) {
  .os-page .os-photo, .os-page .os-stage[data-photo="backdrop"] .os-photo { animation: none; }
  html.is-live .os-page .os-live-pill { animation: none; }
  html.is-live .os-page .os-watch::after { animation: none; } /* the still ring */
  html.is-live .os-page .os-eq i { animation: none; } /* the bars at their mid heights */
  .os-page .os-notice.is-scrolling .os-line-run { animation: none; }
  html.os-swap .os-page .os-face, html.os-swap .os-page .os-faces { transition: none; }
}

/* ---------- the kit's phone rule for its rows (the preview's preview-style.css, line 564), which egw-kit-scoped.css does not carry
   (home.css and give.css add it for their own rows the same way): below 641px How to join's controls go under their text ---------- */
@media (max-width: 640px) {
  .os-page .row { grid-template-columns: 40px minmax(0, 1fr); }
  .os-page .row .ctl { grid-column: 2; justify-content: flex-start; }
}

/* ---------- the testimony card's photo keeps the browser's fill, as in the preview (global.css gives every .card img object-fit:
   cover; the photo is shown at its own proportion, so the two draw the same) ---------- */
.os-page .os-feature-photo img { object-fit: fill; }

/* ---------- the theme's group photo in the testimony card (no Testimony Promo Image set): the preview's frame, 4:5 at most 240px
   tall (its testimony.jpg, 800 x 1000, shown at 192 x 240), cropped where testimony.jpg crops the same photo (669 x 836 at x 10 of
   community.jpg's 1400 x 836: 1.4% across); black and white in the dark theme through .photo, as every photo ---------- */
.os-page .os-feature-photo img.os-fb { aspect-ratio: 4 / 5; width: auto; height: 240px; max-height: 240px; object-fit: cover; object-position: 1.4% 50%; }
