/* ======================================================================
   Testimonies page body, egw-diaspora theme 3.19.0. Loaded by page-testimonies.php only, after global.css, the kit (egw-kit,
   the site-wide scoped copy, or assets/css/egw-kit-scoped.css), the chrome and the shared flag picker (egw-picker.css).
   Every rule here is limited to .ts-page, the page body's wrapper, so the theme's header, menus, quick links and footer and
   the kit's own rules are untouched.

   Ported from the approved Testimonies preview v1 (source/testimonies.css, md5 6958aed91db7e068346a48f6c783df5e: the page's
   own design on the kit's tokens, kit rules 5, 26, 38, 41 to 49, light and dark, reduced motion, breakpoints 1140 / 1100 /
   960 / 700 / 640 / 480 / 400 / 384), with these changes (the rules that carry one say so in their own comment):
   1. every selector sits inside .ts-page (an html... part stays first), the one mechanical change;
   2. room for the theme's fixed header: the page starts under it (--nav-height, kept up to date by the chrome), and the
      pinned rail, the pinned share intro and the scroll margins use --ts-hdr, which is that same live height where the
      preview measured its 75px compact header;
   3. the form's country field is the theme's shared flag picker (egw-picker.css on the EGWForms markup), restyled to the
      approved field look; the preview's own picker rules (.ct-cbx*) are left out;
   4. the reader sits at z-index 1100 (the preview's header was lower): above the fixed header (1000) and the quick links
      (990), under the "Link copied" toast (1150), which is why the preview's html.ts-reading .note rule is not needed;
   5. the veil's fade is the kit's egwk-fade; the submit spinner's keyframes are tsSpin (the preview's spin);
   6. Show more shows only while the page script runs: html.ts-js, set before the first paint and undone by the 2.5 s
      watchdog (html.js-armed is not set when motion is reduced);
   7. what the preview could not draw (Build decisions of 2026-10-08): the page with no testimony (.is-none), the fallback
      poster of a video without an image (.ts-card-poster .ph: the hatched surface, no words), the cards' scroll margin for
      the shared #t-{slug} address, the featured video's poster button, the reader's text when it carries lists, links,
      quotes or pictures;
   8. answers to global.css, each naming the rule it answers;
   9. left out, as review-only: the review notes and their chips (.rev, .ts-rev*), the "show the form again" link
      (.link.again);
  10. three browser defaults that the preview keeps and the theme's reset would drop are written out, so the page is
      measured as approved: the 2px side margin of the fieldset .ts-seg, line-height normal on button.link (Reset) and
      the padding of a select's option rows (the fidelity run of 3.19.0 found them).
   Every colour is a kit token, so light and dark ship together. Motion uses transform, opacity, translate, scale and grid
   rows only, and stops under prefers-reduced-motion. No ancestor of the pinned rail or the pinned share intro sets overflow
   (html and body keep the theme's overflow-x: clip).
   ====================================================================== */

/* ---------- 00 page frame: the theme's fixed header, global.css ---------- */
.ts-page { padding-top: var(--nav-height, 85px); --ts-hdr: var(--nav-height, 75px); } /* the page starts under the fixed header; --ts-hdr is what the preview called its compact header (85px at rest, 75px once scrolled) */
.ts-page .card.lift:active:not(:hover) { transform: none; } /* global: .lift:active nudges cards on touch */
.ts-page blockquote { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; } /* global: blockquote panel, accent edge, padding, shadow (the quote rules below add back what the design wants) */
.ts-page input:focus-visible, .ts-page select:focus-visible, .ts-page textarea:focus-visible { box-shadow: none; } /* global: input:focus-visible and select:focus-visible draw a 3px ring the preview's fields do not have; .ts-in's own ring below wins at three classes */
.ts-page .ts-sort select:focus-visible { border-color: var(--line-strong); } /* global: select:focus-visible turns the border navy */
.ts-page .ts-submit:disabled { background-color: var(--btn) !important; color: var(--btn-fg) !important; border-color: var(--btn) !important; cursor: progress; } /* global: .btn:disabled greys a disabled button with !important; the button is disabled while it sends (Keeps) and keeps its own look, with the spinner */

/* ---------- 02 page header ---------- */
.ts-page .ts-open { padding-block: clamp(3.25rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); } /* only its small bottom padding (kit rule 41) */
.ts-page .ts-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.ts-page .ts-head-text { display: grid; gap: var(--s-5); justify-items: start; min-width: 0; }
.ts-page .ts-head h1 { font-size: clamp(3rem, 7vw, 5.4rem); font-weight: 700; letter-spacing: -.035em; line-height: .98; }
.ts-page .ts-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.35; color: var(--ink-2); max-width: 32ch; text-wrap: balance; } /* the sub-title sits directly under the H1, 16px below (kit rule 38) */
.ts-page .ts-head .lead { max-width: 52ch; }
.ts-page .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* the praise board: what the page holds, and two ways in (Watch, Read). Each line is a button that sets the browse rail. */
.ts-page .ts-board { display: grid; gap: var(--s-2); justify-self: end; width: 100%; max-width: 400px; min-width: 0; }
.ts-page .ts-board .micro { margin-bottom: var(--s-1); }
.ts-page .ts-board-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; width: 100%; padding: 10px 14px 10px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--card); color: var(--ink); box-shadow: var(--shadow-card); font: inherit; text-align: left; cursor: pointer; transition: transform .3s var(--ease-out), background-color .12s ease, border-color .12s ease, box-shadow .3s ease; }
.ts-page .ts-board-row:hover, .ts-page .ts-board-row:focus-visible { background: var(--well); border-color: var(--muted); }
.ts-page .ts-board-row:hover .ic { transform: scale(1.1) rotate(-4deg); }
.ts-page .ts-board-row b { display: block; font-size: var(--t-base); font-weight: 600; line-height: 1.3; }
.ts-page .ts-board-row small { display: block; font-size: var(--t-xs); color: var(--muted); margin-top: 1px; }
.ts-page .ts-board-row .ts-n { font-size: 1.75rem; font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ts-page .ts-board-row .ts-n .dg { display: inline-block; }
.ts-page .ts-board-row.is-on { border-color: var(--ink); }
.ts-page .ts-board-note { margin-top: var(--s-2); }

/* ---------- 03 browse rail: sticky under the header (kit rule 42: html and body clip, no overflow: hidden ancestor) ---------- */
.ts-page section.ts-browse { --ts-pad: max(calc(var(--section) * .75), 48px); --ts-rail: 74px; padding-top: var(--ts-pad); } /* section.ts-browse: the chrome's section.sec padding-block rule is an element + class selector, so this must be too */ /* the gap to the header is this section's own padding (kit rule 41) */
.ts-page .ts-rail { position: sticky; top: var(--ts-hdr, 75px); z-index: 5; background: var(--page); border-block: 1px solid var(--line); padding-block: var(--s-3); transition: background-color .35s ease; } /* --ts-hdr: the compact header's height (85px full, 75px once scrolled, measured on the kit chrome) */
.ts-page .ts-rail-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; }
.ts-page .ts-rail-a { display: contents; }
.ts-page .ts-search-toggle { display: none; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: 600 var(--t-sm)/1 var(--font); cursor: pointer; flex: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease; } /* phones only (700px and below): a labelled pill, so it reads apart from the header's round site-search button above it */
.ts-page .ts-search-toggle .i { width: 18px; height: 18px; }
.ts-page .ts-rail.search-open .ts-search-toggle, .ts-page .ts-rail:has(.ts-search.has-q) .ts-search-toggle { background: var(--ink); color: var(--page); border-color: var(--ink); } /* "open" while the box shows: opened, or holding a search */
.ts-page .ts-seg { position: relative; display: inline-flex; gap: 2px; margin: 0 2px /* the fieldset's own side margin, kept as in the preview */; padding: 3px; border-radius: var(--r-pill); background: var(--well); box-shadow: var(--well-shadow); isolation: isolate; }
.ts-page .ts-seg .thumb { position: absolute; top: 3px; left: 0; height: calc(100% - 6px); width: 0; border-radius: var(--r-pill); background: var(--inv-bg); border: 1px solid var(--inv-bg); box-shadow: none; z-index: -1; transition: left .35s var(--ease-out), width .35s var(--ease-out); }
.ts-page .ts-seg label { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: color .12s ease; }
.ts-page .ts-seg label .i { width: 16px; height: 16px; }
.ts-page .ts-seg label b { font-weight: 700; font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 1px; }
.ts-page .ts-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
/* the chosen option is inverted, ink under page-coloured text, like the chosen category pill (Dennis 16:25 Oct 4, preview comment: "The selection or slider is not contrasting well") */
.ts-page .ts-seg input:checked + span, .ts-page .ts-seg label:has(input:checked) { color: var(--inv-fg); }
.ts-page .ts-seg label:has(input:checked) b { color: var(--inv-fg-2); }
.ts-page .ts-seg label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.ts-page .ts-seg label:hover { color: var(--ink); }

.ts-page .ts-topics { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 2px; margin: -2px; min-width: 0; scroll-snap-type: x proximity; }
.ts-page .ts-topics::-webkit-scrollbar { display: none; }
.ts-page .ts-topic { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--page); color: var(--ink); font: 600 var(--t-sm)/1 var(--font); cursor: pointer; white-space: nowrap; scroll-snap-align: start; transition: background-color .12s ease, color .12s ease, border-color .12s ease; }
.ts-page .ts-topic b { font-size: var(--t-xs); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .12s ease; }
.ts-page .ts-topic:hover { border-color: var(--muted); background: var(--tint-1); }
.ts-page .ts-topic.is-on { background: var(--ink); color: var(--page); border-color: var(--ink); }
.ts-page .ts-topic.is-on b { color: var(--page); opacity: .8; }

.ts-page .ts-search { position: relative; display: flex; align-items: center; min-width: 0; }
.ts-page .ts-search .i.lens { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.ts-page .ts-search input { width: 260px; min-width: 0; height: 44px; padding: 0 42px 0 42px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: 500 max(1rem, 16px)/1 var(--font); transition: border-color .12s ease, background-color .12s ease; }
.ts-page .ts-search input::placeholder { color: var(--muted); }
.ts-page .ts-search input:focus { outline: 0; border-color: var(--ink); background: var(--page); }
.ts-page .ts-search input::-webkit-search-cancel-button, .ts-page .ts-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.ts-page .ts-search .ts-clear { position: absolute; right: 6px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .15s ease, background-color .12s ease; }
.ts-page .ts-search .ts-clear .i { width: 16px; height: 16px; }
.ts-page .ts-search.has-q .ts-clear { opacity: 1; pointer-events: auto; }
.ts-page .ts-search .ts-clear:hover { background: var(--tint-2); }

/* ---------- 03 featured testimony: one inverted panel (black on the light page, light on the dark page), the page's signature block ---------- */
.ts-page .ts-feature-sec { padding-top: max(calc(var(--section) * .75), 48px); padding-bottom: 0; } /* the gap to the page header is this section's own padding (kit rule 41) */
.ts-page .ts-feature-panel { background: var(--inv-bg); color: var(--inv-fg); border-radius: var(--r-xl); padding: clamp(1.75rem, 4vw, 3.5rem); transition: background-color .35s ease, color .35s ease; }
.ts-page .ts-feature-panel:not([data-mode]) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; } /* One: the panel itself is the grid, as in 3.19.0 to 3.32.0 */
.ts-page .ts-feature-slides { display: grid; min-width: 0; }
.ts-page .ts-feature-slide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; min-width: 0; }
.ts-page .ts-feature-ctrl[hidden] { display: none; }
.ts-page .ts-feature-panel .eyebrow { color: var(--inv-fg); }
.ts-page .ts-feature-panel .pill.star { background: rgba(127,127,127,.22); color: var(--inv-fg); }
.ts-page .ts-feature-panel h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; max-width: 20ch; }
.ts-page .ts-feature-panel .ts-who .mt { color: var(--inv-fg-2); }
.ts-page .ts-feature-panel .ts-who .av { background: rgba(127,127,127,.25); color: var(--inv-fg); }
.ts-page .ts-feature-panel .btn.inv { box-shadow: none; }
.ts-page .ts-feature-panel .btn.inv:hover { box-shadow: 0 8px 22px -10px rgba(0,0,0,.5); }
.ts-page .ts-feature-quote { position: relative; margin: 0; padding-left: clamp(1.5rem, 3vw, 2.5rem); font-size: clamp(1.35rem, 2.3vw, 1.9rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.3; text-wrap: pretty; max-width: 30ch; justify-self: end; }
.ts-page .ts-feature-quote::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 2px; background: currentColor; opacity: .45; transform-origin: top; transition: transform 1.1s var(--ease-out) .2s; }
html.js-armed .ts-page .ts-feature-quote.rv:not(.in)::before { transform: scaleY(0); }
.ts-page .ts-feature-quote footer { margin-top: var(--s-4); font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--inv-fg-2); }
.ts-page .ts-feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ts-page .ts-feature-media { min-width: 0; }
.ts-page .ts-feature-media .frame { transition: translate .8s var(--ease-out), opacity .8s var(--ease-out), scale 1.1s var(--ease-out), box-shadow .4s ease; }
.ts-page .ts-feature-media .frame-in { aspect-ratio: 16 / 9; background: var(--well); }
.ts-page .ts-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.6s var(--ease-out); }
html.js-armed .ts-page .ts-feature-media.rv:not(.in) .frame { scale: .97; }
html.js-armed .ts-page .ts-feature-media.rv:not(.in) img { scale: 1.06; }
.ts-page .ts-play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(to top, rgba(20,20,18,.45), rgba(20,20,18,0) 55%); color: #FFFFFF; cursor: pointer; padding: 0; }
.ts-page .ts-play .ts-play-btn { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; color: #1A1A1A; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); transition: transform .35s var(--ease-spring); }
.ts-page .ts-play .ts-play-btn .i { width: 28px; height: 28px; fill: currentColor; stroke: none; margin-left: 3px; }
.ts-page .ts-play:hover .ts-play-btn, .ts-page .ts-play:focus-visible .ts-play-btn { transform: scale(1.08); }
.ts-page .ts-play .ts-dur { position: absolute; left: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.92); color: #1A1A1A; font-size: var(--t-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
.ts-page .ts-play .ts-dur .i { width: 14px; height: 14px; }
.ts-page .ts-feature-text { display: grid; gap: var(--s-5); justify-items: start; min-width: 0; }
.ts-page .ts-feature-text blockquote { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); text-wrap: balance; max-width: 22ch; }
.ts-page .ts-feature-text blockquote::before { content: "\201C"; display: block; font-size: 3.2rem; line-height: .5; height: .55em; color: var(--dot); font-weight: 700; margin-bottom: 12px; }

/* a person line: avatar initials, the name, the country with its flag, the date. Used under the featured quote, on every card and in the reader. */
.ts-page .ts-who { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.ts-page .ts-who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--pill); color: var(--pill-fg); display: grid; place-items: center; font-size: var(--t-xs); font-weight: 700; letter-spacing: .04em; flex: none; overflow: hidden; }
.ts-page .ts-who .av img { width: 100%; height: 100%; object-fit: cover; }
.ts-page .ts-who .av.sm { width: 32px; height: 32px; font-size: .62rem; }
.ts-page .ts-who .nm { display: block; font-size: var(--t-sm); font-weight: 600; line-height: 1.3; }
.ts-page .ts-who .mt { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: var(--t-xs); color: var(--muted); line-height: 1.4; }
.ts-page .ts-who .mt .flag { width: 18px; height: 12px; }
.ts-page .ts-who .mt .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--dot); }
.ts-page .ts-who .mt time { white-space: nowrap; }

/* ---------- 05 the wall ---------- */
.ts-page .ts-wall-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4) var(--s-6); padding-top: clamp(2.5rem, 4vw, 4rem); margin-bottom: var(--s-6); }
.ts-page .ts-wall-head .lead { max-width: 48ch; }
.ts-page .ts-wall-head h2 { margin-top: var(--s-3); }
.ts-page .ts-count { font-size: var(--t-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.ts-page .ts-sort { display: inline-flex; align-items: center; gap: var(--s-2); }
.ts-page .ts-sort label { font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ts-page .ts-sort .ts-sel { position: relative; display: inline-flex; align-items: center; }
.ts-page .ts-sort select { appearance: none; -webkit-appearance: none; width: auto; min-width: 0; height: 40px; padding: 0 38px 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--page); color: var(--ink); font: 600 var(--t-sm)/1 var(--font); cursor: pointer; }
.ts-page .ts-sort .chev { position: absolute; right: 12px; width: 16px; height: 16px; pointer-events: none; color: var(--ink-2); }

.ts-page .ts-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); align-items: stretch; } /* cards in one row share a level bottom edge (Dennis 06:37) */
.ts-page .ts-card { position: relative; display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5); min-width: 0; text-decoration: none; color: inherit; } /* compact (kit rule 26): 24px padding, small type; the excerpt grows so the person line and the footer sit level across a row */
.ts-page .ts-card.lift { cursor: pointer; }
.ts-page .ts-card-t { font-size: 1.125rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; text-wrap: balance; }
.ts-page .ts-card-q { flex: 1 0 auto; }
.ts-page .ts-card .ts-full { display: none; }
.ts-page .ts-card.is-featured .ts-card-top .pill.star { gap: 5px; }
.ts-page .pill.star .i { width: 13px; height: 13px; }
.ts-page .ts-card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; }
.ts-page .ts-card-top .pill.soft[title] { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 28px; } /* Content managers in Setup (TX): a long label ("A · B +1") ends in an ellipsis inside its card; the title holds every name */
.ts-page .ts-kind { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ts-page .ts-kind .i { width: 16px; height: 16px; }
.ts-page .ts-card-q { margin: 0; font-size: 1.0625rem; line-height: 1.5; color: var(--ink); text-wrap: pretty; } /* the excerpt is already cut to 35 words by the theme; no clamp (a clamp on a growing flex item left text after its ellipsis) */
.ts-page .ts-card-q b { font-weight: 600; }
.ts-page .ts-card .ts-who { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.ts-page .ts-card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.ts-page .ts-card-foot .link { text-decoration: none; }
.ts-page .ts-card-foot .link .i { transition: transform .3s var(--ease-spring); }
.ts-page .ts-card:hover .ts-card-foot .link .i { transform: translateX(3px); }
.ts-page .ts-card-open { position: absolute; inset: 0; border-radius: inherit; background: transparent; border: 0; cursor: pointer; z-index: 1; } /* the whole card opens the reader; the buttons inside sit above it */
.ts-page .ts-card-open:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ts-page .ts-card > :not(.ts-card-open) { position: relative; z-index: 0; }
.ts-page .ts-card .ts-card-foot, .ts-page .ts-card .ts-share-btn { z-index: 2; }
.ts-page .ts-card .ts-card-foot { pointer-events: none; } /* clicks on the Read / Watch words fall through to the card's open button; only the share button catches them */
.ts-page .ts-card .ts-share-btn { pointer-events: auto; }
.ts-page .ts-who .av .flag { border-radius: 0; box-shadow: none; }
.ts-page .ts-card-poster { position: relative; margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) 0; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--well); }
.ts-page .ts-card-poster img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease-out); }
.ts-page .ts-card:hover .ts-card-poster img { scale: 1.04; }
.ts-page .ts-card-poster .ts-play { background: linear-gradient(to top, rgba(20,20,18,.5), rgba(20,20,18,0) 60%); }
.ts-page .ts-card-poster .ts-play .ts-play-btn { width: 52px; height: 52px; }
.ts-page .ts-card-poster .ts-play .ts-play-btn .i { width: 22px; height: 22px; }
.ts-page .ts-card.is-video { grid-template-rows: auto auto 1fr auto auto; }
.ts-page .ts-share-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-2); cursor: pointer; transition: background-color .12s ease, color .12s ease, border-color .12s ease; }
.ts-page .ts-share-btn .i { width: 16px; height: 16px; }
.ts-page .ts-share-btn:hover, .ts-page .ts-share-btn:focus-visible { color: var(--ink); border-color: var(--muted); background: var(--well); }
.ts-page .ts-card.is-out { display: none; }
.ts-page .ts-card.is-hid { display: none; }
html.js-armed .ts-page .ts-card.swap { animation: tsIn .45s var(--ease-out) both; }
@keyframes tsIn { from { opacity: 0; translate: 0 10px; } }

.ts-page .ts-more { display: grid; justify-items: center; gap: var(--s-3); margin-top: var(--s-7); }
.ts-page .ts-empty { display: none; padding: var(--s-7) var(--s-5); text-align: center; color: var(--ink-2); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.ts-page .ts-empty b { display: block; color: var(--ink); font-weight: 600; margin-bottom: var(--s-1); }
.ts-page .ts-empty.show { display: block; }
/* the two sets of the wall: video testimonies, then written ones, each under a small heading with its count (so a row never mixes a poster card with text cards, and cards in a row stay level and compact) */
.ts-page .ts-set { display: grid; gap: var(--s-4); }
.ts-page .ts-set + .ts-set { margin-top: var(--s-7); }
.ts-page .ts-set.is-empty { display: none; }
.ts-page .ts-group-head { display: flex; align-items: center; gap: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.ts-page .ts-group-head h3 { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 1rem; font-weight: 600; letter-spacing: -.005em; }
.ts-page .ts-group-head h3 .i { width: 18px; height: 18px; color: var(--ink-2); }
.ts-page .ts-group-head .ts-count b { font-weight: 600; color: var(--ink-2); }
.ts-page button.link { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; line-height: normal /* the button's own, as in the preview (a taller line would add 5px to the head on a phone) */; }

/* ---------- 06 reader: a sheet from the right edge with the whole testimony, share links and previous / next ---------- */
/* ---------- the reader: a centred stage (Dennis 16:36 Oct 4, preview comment: "a centred, elegant and catchy display with unique features and
   controls", not a side sheet). The stage sits in the middle of the screen over a blurred veil: a top bar (kind and position, the Aa text-size
   button, close), a body that scrolls (the video, or the category, title and author, the story in a 60ch measure with a drop capital, an
   invitation to add your own testimony, the share row) and a bottom bar with Previous / Next; round arrows stand at the sides of the screen
   from 1141px; a reading line along the top edge fills as the story scrolls. On phones the stage fills the screen. ---------- */
.ts-page .ts-reader { position: fixed; inset: 0; z-index: 1100; /* theme: above the fixed header (1000) and quick links (990), below the toast (1150) */ display: grid; place-items: center; padding: var(--s-6) max(var(--gutter), 96px); }
.ts-page .ts-reader[hidden] { display: none; }
.ts-page .ts-veil { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(20,20,18,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; animation: egwk-fade .35s ease; }
.ts-page .ts-stage { position: relative; z-index: 1; width: min(920px, 100%); max-height: calc(100vh - 2 * var(--s-6)); max-height: calc(100dvh - 2 * var(--s-6)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--page); color: var(--ink); border-radius: var(--r-xl); box-shadow: 0 40px 100px -30px rgba(0,0,0,.7); overflow: hidden; animation: tsPop .5s var(--ease-spring); }
@keyframes tsPop { from { scale: .96; opacity: 0; translate: 0 12px; } }
.ts-page .ts-progress { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--ink); z-index: 3; transition: width .15s linear; }
.ts-page .ts-stage-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4) var(--s-3) var(--s-6); border-bottom: 1px solid var(--line); background: var(--page); }
.ts-page .ts-stage-top .micro { margin: 0; }
.ts-page .ts-stage-tools { display: flex; gap: var(--s-2); }
.ts-page .ts-stage-tools .round { width: 40px; height: 40px; }
.ts-page .ts-textsize span { font-size: .8rem; font-weight: 700; letter-spacing: -.02em; }
.ts-page .ts-textsize[aria-pressed="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
.ts-page .ts-stage-body { overflow-y: auto; overscroll-behavior: contain; padding: var(--s-7) clamp(1.25rem, 5vw, 4rem) var(--s-7); display: grid; gap: var(--s-6); justify-items: center; text-align: center; }
.ts-page .ts-stage-media { width: 100%; }
.ts-page .ts-stage-media .frame { width: 100%; }
.ts-page .ts-stage-media .frame-in { aspect-ratio: 16 / 9; background: var(--well); }
.ts-page .ts-stage-media .frame-in img, .ts-page .ts-stage-media .frame-in video, .ts-page .ts-stage-media .frame-in iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.ts-page .ts-stage-head { display: grid; gap: var(--s-4); justify-items: center; width: 100%; }
.ts-page .ts-stage-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; max-width: 22ch; }
.ts-page .ts-stage-head .ts-who { justify-content: center; text-align: left; }
.ts-page .ts-stage { --ts-read: 1.0625rem; }
.ts-page .ts-stage.big-text { --ts-read: 1.25rem; }
.ts-page .ts-stage-text { display: grid; gap: var(--s-4); width: 100%; max-width: 60ch; text-align: left; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.ts-page .ts-stage-text p { color: var(--ink-2); line-height: 1.75; text-wrap: pretty; font-size: var(--ts-read); }
.ts-page .ts-stage-text p.first { font-size: calc(var(--ts-read) * 1.15); color: var(--ink); line-height: 1.6; }
.ts-page .ts-stage-text p.first::first-letter { float: left; font-size: 3.1em; line-height: .82; font-weight: 500; margin: .06em .14em 0 0; color: var(--ink); } /* a drop capital opens the story */
.ts-page .ts-stage-cta { display: grid; justify-items: center; gap: var(--s-3); width: 100%; max-width: 60ch; padding: var(--s-5) var(--s-6); text-align: center; }
.ts-page .ts-stage-cta-q { margin: 0; font-size: var(--t-lead); font-weight: 500; letter-spacing: -.01em; }
.ts-page .ts-share-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--s-2); width: 100%; }
.ts-page .ts-share-row .micro { width: 100%; text-align: center; margin: 0 0 var(--s-1); }
.ts-page .ts-share-row .round { width: 44px; height: 44px; text-decoration: none; }
.ts-page .ts-share-row .round .i { width: 19px; height: 19px; }
.ts-page .ts-share-row .round:hover, .ts-page .ts-share-row .round:focus-visible { background: var(--ink); color: var(--page); border-color: var(--ink); }

.ts-page .ts-stage-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); background: var(--card); }
.ts-page .ts-stage-nav button { display: grid; gap: 2px; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border: 1px solid transparent; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-width: 0; transition: background-color .15s ease, border-color .15s ease; }
.ts-page .ts-stage-nav .next { text-align: right; }
.ts-page .ts-stage-nav button:hover { background: var(--well); border-color: var(--line-strong); }
.ts-page .ts-stage-nav small { font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ts-page .ts-stage-nav b { font-size: var(--t-sm); font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ts-page .ts-stage-nav [disabled] { opacity: .45; pointer-events: none; }
.ts-page .ts-stage-arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.14); color: #FFFFFF; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .15s ease, transform .3s var(--ease-spring); }
.ts-page .ts-stage-arrow.prev { left: max(var(--gutter), 24px); }
.ts-page .ts-stage-arrow.next { right: max(var(--gutter), 24px); }
.ts-page .ts-stage-arrow .i { width: 24px; height: 24px; }
.ts-page .ts-stage-arrow:hover, .ts-page .ts-stage-arrow:focus-visible { background: rgba(255,255,255,.26); transform: scale(1.06); }
.ts-page .ts-stage-arrow:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.ts-page .ts-stage-arrow[disabled] { opacity: .3; pointer-events: none; }
@media (max-width: 1140px) {
  .ts-page .ts-stage-arrow { display: none; }
  .ts-page .ts-reader { padding: var(--s-5) var(--gutter); }
}

/* ---------- 07 share your testimony ---------- */
.ts-page .ts-share-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.ts-page .ts-share-intro { display: grid; gap: var(--s-5); justify-items: start; min-width: 0; position: sticky; top: calc(var(--ts-hdr, 75px) + var(--s-6)); }
.ts-page .ts-share-intro h2 { max-width: 14ch; }
.ts-page .ts-steps { width: 100%; }
.ts-page .ts-steps .row { grid-template-columns: 40px minmax(0, 1fr); }
.ts-page .ts-steps .row small { white-space: normal; }
.ts-page .ts-form { display: grid; gap: var(--s-6); padding: clamp(1.5rem, 3vw, 2.5rem); --form-pad: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 400px) { .ts-page .ts-form { padding-inline: var(--form-pad); --form-pad: 16px; } }
@media (max-width: 384px) { .ts-page .ts-form { --form-pad: 8px; } }
.ts-page .ts-form-head { display: grid; gap: var(--s-2); }
.ts-page .ts-form-head h3 { font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; }
.ts-page .ts-form-head p { color: var(--ink-2); font-size: var(--t-sm); }
/* 3.60.1 r2 (MB m1): the moved form's intro is one line shorter (no "Fields marked *"), so at 960px and below the kit's
   .c-sm p { margin-inline: auto } would centre it under the left-aligned heading; it stays left-aligned as 3.60.0's reads */
.ts-page.egw-kit .ts-form[data-fmv-key] .ts-form-head p { margin-inline: 0; }
.ts-page .ts-fset { display: grid; gap: var(--s-4); }
.ts-page .ts-fset > .micro { margin: 0; }
.ts-page .ts-row { display: grid; gap: var(--s-4); }
.ts-page .ts-row.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ts-page .ts-group { display: grid; gap: 6px; min-width: 0; align-content: start; position: relative; } 

.ts-page .ts-label { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); font-size: var(--t-sm); font-weight: 600; }
.ts-page .ts-label .opt { font-weight: 500; color: var(--muted); }
.ts-page .ts-label .req { font-style: normal; color: var(--live); margin-left: 2px; }
/* 3.60.1: the Form Manager's form says "(required)" in words, as quiet as "(optional)" (the star of the page's own form keeps its look) */
.ts-page .ts-label span.req { font-weight: 500; color: var(--muted); margin-left: 0; }
.ts-page .ts-label .cnt { font-size: var(--t-xs); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.ts-page .ts-in { width: 100%; min-height: 48px; padding: 0 var(--field-pad); border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--page); color: var(--ink); font: 500 max(1rem, 16px)/1.4 var(--font); transition: border-color .12s ease, box-shadow .12s ease; }
.ts-page .ts-in:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px var(--tint-2); }
.ts-page .ts-in::placeholder { color: var(--muted); font-weight: 400; }
.ts-page .ts-in.area { min-height: 180px; padding-block: 12px; resize: vertical; line-height: 1.55; }
.ts-page .ts-sel { position: relative; }
.ts-page .ts-sel select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.ts-page .ts-sel option { padding: 0 2px 1px; } /* the browser's own padding on a list row, which the preview keeps and the theme's reset would drop: the opened list reads as approved */
.ts-page .ts-sel .chev { position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; pointer-events: none; color: var(--ink-2); }
.ts-page .ts-err { display: none; align-items: flex-start; gap: 6px; font-size: var(--t-xs); color: var(--live); line-height: 1.4; }
.ts-page .ts-err .i { width: 14px; height: 14px; margin-top: 2px; }
.ts-page .ts-group.is-bad .ts-err { display: flex; }
.ts-page .ts-group.is-bad .ts-in { border-color: var(--live); }
.ts-page .ts-seg2 { display: flex; flex-wrap: wrap; gap: 6px; }
.ts-page .ts-seg2 label { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--page); color: var(--ink); font-size: var(--t-sm); font-weight: 600; cursor: pointer; transition: background-color .12s ease, border-color .12s ease, color .12s ease; }
.ts-page .ts-seg2 label .i { width: 16px; height: 16px; }
.ts-page .ts-seg2 input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ts-page .ts-seg2 label:hover { border-color: var(--muted); background: var(--tint-1); }
.ts-page .ts-seg2 label:has(input:checked) { background: var(--ink); color: var(--page); border-color: var(--ink); }
.ts-page .ts-seg2 label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.ts-page .ts-consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s-3); align-items: start; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.ts-page .ts-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ts-page .ts-consent .bx { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--page); display: grid; place-items: center; color: var(--page); margin-top: 1px; transition: background-color .15s ease, border-color .15s ease; }
.ts-page .ts-consent .bx .i { width: 14px; height: 14px; opacity: 0; transform: scale(.6); transition: opacity .15s ease, transform .25s var(--ease-spring); }
.ts-page .ts-consent input:checked + .bx { background: var(--ink); border-color: var(--ink); }
.ts-page .ts-consent input:checked + .bx .i { opacity: 1; transform: none; }
.ts-page .ts-consent input:focus-visible + .bx { outline: 2px solid var(--ink); outline-offset: 2px; }
.ts-page .ts-consent a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.ts-page .ts-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts-page .ts-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); }
.ts-page .ts-foot .micro { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.ts-page .ts-foot .micro .i { width: 14px; height: 14px; }
.ts-page .ts-submit { position: relative; min-width: 200px; }
.ts-page .ts-submit > span { display: inline-flex; align-items: center; gap: var(--s-2); }
.ts-page .ts-submit .busy, .ts-page .ts-submit .done { position: absolute; inset: 0; justify-content: center; opacity: 0; }
.ts-page .ts-submit[data-state="busy"] .lbl, .ts-page .ts-submit[data-state="done"] .lbl { opacity: 0; }
.ts-page .ts-submit[data-state="busy"] .busy, .ts-page .ts-submit[data-state="done"] .done { opacity: 1; }
.ts-page .ts-submit .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: tsSpin .8s linear infinite; }
@keyframes tsSpin { to { transform: rotate(360deg); } }
.ts-page .ts-alert { display: none; padding: var(--s-4); border-radius: var(--r-md); background: var(--live-bg); color: var(--live); font-size: var(--t-sm); }
.ts-page .ts-alert.show { display: flex; gap: var(--s-3); align-items: flex-start; }
.ts-page .ts-alert b { display: block; color: inherit; }
.ts-page .ts-done { display: grid; gap: var(--s-4); justify-items: start; padding: clamp(1.5rem, 3vw, 2.5rem); }
.ts-page .ts-done .ic { width: 56px; height: 56px; border-radius: 16px; }
.ts-page .ts-done .ic .i { width: 26px; height: 26px; }
.ts-page .ts-done h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.ts-page .ts-done p { color: var(--ink-2); max-width: 48ch; }

/* ---------- 05 why we share: the two paragraphs beside a card of three rows (kit rule: organised text sections) ---------- */
.ts-page .ts-why { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ts-page .ts-why-text { display: grid; gap: var(--s-4); justify-items: start; min-width: 0; }
.ts-page .ts-why-text h2 { max-width: 16ch; margin-bottom: var(--s-2); }
.ts-page .ts-why-text .lead { max-width: 52ch; }
.ts-page .ts-why-p { color: var(--ink-2); max-width: 52ch; line-height: 1.7; text-wrap: pretty; }
.ts-page .ts-why-rows { width: 100%; max-width: 520px; justify-self: end; }
.ts-page .ts-why-rows .row { grid-template-columns: 40px minmax(0, 1fr); }
.ts-page .ts-why-rows .row small { white-space: normal; line-height: 1.5; }
.ts-page .ts-badge { margin: 0; }
.ts-page .ts-badge .pill { height: 34px; padding: 0 14px 0 10px; background: var(--well); color: var(--ink); font-weight: 600; letter-spacing: .02em; font-size: var(--t-sm); }
.ts-page .ts-badge .pill .i { width: 16px; height: 16px; }

/* share section: the confidentiality note and the policy line */
.ts-page .ts-note { padding: var(--s-4) var(--s-5); font-size: var(--t-sm); color: var(--ink-2); line-height: 1.6; width: 100%; }
.ts-page .ts-note a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; display: inline-block; max-width: 100%; } /* inline-block: the address takes a line of its own before it would break inside */
.ts-page .ts-steps .row small a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; display: inline-block; max-width: 100%; }
/* small phones: each way-to-share row puts its description under the icon and title, full width, so the email address has room to stay whole */
@media (max-width: 400px) {
  .ts-page .ts-steps .row { row-gap: var(--s-1); }
  .ts-page .ts-steps .row > span:not(.ic) { display: contents; }
  .ts-page .ts-steps .row b { grid-column: 2; }
  .ts-page .ts-steps .row small { grid-column: 1 / -1; margin-top: 0; }
  .ts-page .ts-note { padding-inline: var(--s-4); }
}
.ts-page .ts-policy { font-size: var(--t-xs); color: var(--muted); line-height: 1.5; }
.ts-page .ts-policy a { color: var(--ink-2); font-weight: 600; text-underline-offset: 3px; }
.ts-page .ts-form-col { min-width: 0; display: grid; gap: var(--s-5); }
.ts-page .ts-form-head .req { font-style: normal; color: var(--live); }

@media (max-width: 960px) {
  .ts-page .ts-why { grid-template-columns: 1fr; }
  .ts-page .ts-why-rows { justify-self: center; text-align: left; }
  .ts-page .ts-why-rows .row { text-align: left; }
  .ts-page .ts-note { text-align: left; }
}

/* ---------- 08 the word of their testimony: a verse band ---------- */
.ts-page .ts-verse { display: grid; justify-items: center; text-align: center; gap: var(--s-4); max-width: 60ch; margin-inline: auto; }
.ts-page .ts-verse blockquote { margin: 0; font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.25; text-wrap: balance; }
.ts-page .ts-verse cite { font-style: normal; font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ts-page .ts-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-page .ts-rail-in { grid-template-columns: auto minmax(0, 1fr); }
  .ts-page .ts-rail-in .ts-search { grid-column: 1 / -1; }
  .ts-page .ts-search input { min-width: 0; }
}
@media (max-width: 960px) {
  .ts-page .ts-head { grid-template-columns: 1fr; align-items: start; }
  .ts-page .ts-head-text { justify-items: center; text-align: center; } /* the stacked header centres everything (kit rule 5) */
  .ts-page .ts-head h1 span { margin-inline: auto; }
  .ts-page .ts-feature-quote { padding-left: 0; } /* the kit's .c-sm gives a stacked quote a top rule; the side rule goes */
  .ts-page .ts-feature-quote::before { display: none; }
  .ts-page .ts-form { text-align: left; } /* a form keeps its labels and boxes left-aligned (table-like rows); only the submit row centres on phones */
  .ts-page .ts-form .micro, .ts-page .ts-form .ts-label { justify-content: flex-start; }
  .ts-page .ts-form .ts-label { justify-content: space-between; }
  .ts-page .ts-board { justify-self: center; max-width: 480px; }
  .ts-page .ts-board-row { text-align: left; }
  .ts-page .ts-feature { grid-template-columns: 1fr; }
  .ts-page .ts-feature-text blockquote { max-width: 28ch; margin-inline: auto; }
  .ts-page .ts-feature-text .ts-who { justify-content: center; }
  .ts-page .ts-share-grid { grid-template-columns: 1fr; }
  .ts-page .ts-share-intro { position: static; justify-items: center; }
  .ts-page .ts-steps .row { text-align: left; }
  .ts-page .ts-wall-head { justify-content: center; text-align: center; }
  .ts-page .ts-wall-head > * { width: 100%; }
  .ts-page .ts-wall-head .lead { margin-inline: auto; }
  .ts-page .ts-wall-head .ts-tools { justify-content: center; }
  .ts-page .ts-browse { --ts-rail: 134px; }
}
@media (max-width: 700px) {
  .ts-page .ts-wall { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .ts-page .ts-set { max-width: 520px; width: 100%; margin-inline: auto; }
  /* the phone rail: one row with the type control and a search button, the categories row under it; the search field opens as its own row from the button (or stays open while it holds a search) */
  .ts-page .ts-rail-in { grid-template-columns: 1fr; justify-items: stretch; gap: var(--s-3); }
  .ts-page .ts-rail-a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); width: 100%; } /* wraps only when a translated Search label cannot share the row (French at 360px) */
  .ts-page .ts-search-toggle { margin-left: auto; }
  .ts-page .ts-search-toggle { display: inline-flex; }
  .ts-page .ts-search { display: none; width: 100%; }
  .ts-page .ts-rail.search-open .ts-search, .ts-page .ts-rail .ts-search.has-q { display: flex; }
  .ts-page .ts-search input { width: 100%; }
  .ts-page .ts-topics-wrap { width: 100%; }
  .ts-page .ts-topics { width: 100%; justify-content: flex-start; }
  .ts-page .ts-seg { max-width: calc(100% - 112px); }
  .ts-page .ts-browse { --ts-rail: 124px; }
  /* the Country / Year / Sort rows as one small table: labels end on one line, the lists start on one line, the block centred (kit rule 5: table-like rows stay rows) */
  .ts-page .ts-wall-head .ts-tools { display: grid; grid-template-columns: auto minmax(0, 1fr); justify-content: center; justify-items: start; align-items: center; gap: var(--s-3); max-width: 360px; margin-inline: auto; }
  .ts-page .ts-tools .ts-sort { display: contents; }
  .ts-page .ts-tools .ts-sort label { justify-self: end; }
  .ts-page .ts-tools .ts-sel, .ts-page .ts-tools .ts-sel select { width: 100%; }
  .ts-page .ts-tools > .link { grid-column: 1 / -1; justify-self: center; }
  /* the stage fills a phone screen */
  .ts-page .ts-reader { padding: 0; }
  .ts-page .ts-stage { width: 100%; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; }
  .ts-page .ts-stage-top { padding-left: var(--gutter); }
  .ts-page .ts-stage-body { padding: var(--s-6) var(--gutter) var(--s-7); gap: var(--s-5); }
  .ts-page .ts-stage-head h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .ts-page .ts-stage-cta { padding: var(--s-4) var(--s-4); }
  .ts-page .ts-stage-nav b { -webkit-line-clamp: 1; }
  .ts-page .ts-row.two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ts-page .ts-card { text-align: left; }
  .ts-page .ts-foot { justify-content: center; text-align: center; }
  .ts-page .ts-foot .ts-submit { width: 100%; }
  .ts-page .ts-done { justify-items: center; text-align: center; }
  .ts-page .ts-done .actions { justify-content: center; }

  
}
@media (max-width: 480px) {
  .ts-page .ts-seg label { padding: 0 11px; }
  .ts-page .ts-seg label .i { display: none; }
  .ts-page .ts-feature-media .frame { padding: 10px; }
}
.ts-page .ts-tools { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }

/* the verse line under the sub-title (the old hero's Psalm 66:5 line) */
.ts-page .ts-verse-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-2) var(--s-3); font-size: var(--t-base); color: var(--ink-2); }
.ts-page .ts-verse-line q { quotes: "\201C" "\201D"; font-style: italic; }
.ts-page .ts-verse-line cite { font-style: normal; font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* active-filter chips under the wall heading (the old page's chips, one per filter; click one to remove it) */
.ts-page .ts-chips { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.ts-page .ts-chips:empty { display: none; }
.ts-page .ts-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 12px; border-radius: var(--r-pill); background: var(--well); color: var(--ink); border: 1px solid var(--line-strong); font: 600 var(--t-xs)/1 var(--font); cursor: pointer; transition: background-color .12s ease, border-color .12s ease; }
.ts-page .ts-chip .i { width: 14px; height: 14px; color: var(--ink-2); }
.ts-page .ts-chip:hover { border-color: var(--muted); background: var(--tint-2); }
.ts-page .ts-chip em { font-style: normal; color: var(--muted); font-weight: 500; margin-right: 2px; }

/* edge cues on the topic scroller (the old pills ran off the bar with no cue at every width) */
.ts-page .ts-topics-wrap { position: relative; min-width: 0; }
.ts-page .ts-topics-wrap::before, .ts-page .ts-topics-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 28px; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .2s ease; }
.ts-page .ts-topics-wrap::before { left: 0; background: linear-gradient(to right, var(--page), transparent); }
.ts-page .ts-topics-wrap::after { right: 0; background: linear-gradient(to left, var(--page), transparent); }
.ts-page .ts-topics-wrap.can-l::before, .ts-page .ts-topics-wrap.can-r::after { opacity: 1; }
.ts-page .ts-topics-arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.ts-page .ts-topics-arrow .i { width: 14px; height: 14px; }
.ts-page .ts-topics-arrow.l { left: -4px; } .ts-page .ts-topics-arrow.r { right: -4px; }
.ts-page .ts-topics-wrap.can-l .ts-topics-arrow.l, .ts-page .ts-topics-wrap.can-r .ts-topics-arrow.r { opacity: 1; pointer-events: auto; }
@media (hover: none) { .ts-page .ts-topics-arrow { display: none; } }

/* anchors land with their heading in view under the sticky header and rail (the old pinned bar hid the headings #share scrolled to) */
.ts-page #share, .ts-page #testimony-form, .ts-page #s-why, .ts-page #s-featured, .ts-page #s-verse { scroll-margin-top: calc(var(--ts-hdr, 75px) + var(--s-4)); } /* the rail pins only inside the browse section, so elsewhere the header alone is in the way */
.ts-page #s-browse { scroll-margin-top: calc(var(--ts-hdr, 75px) - var(--ts-pad) - 1px); } /* 1px short of the pin, so the rail is always held at the header's edge (a smooth scroll stops on whole pixels) */ /* Browse lands with its rail flush under the header */
.ts-page .ts-wall-head, .ts-page .ts-set { scroll-margin-top: calc(var(--ts-hdr, 75px) + var(--ts-rail) + var(--s-4)); } /* --ts-rail: the rail's height at each width */

/* Cycle mode (3.33.0; Version 5 of the preview, Dennis 01:01 Oct 11): the slides share one grid cell, so the panel keeps the height of its tallest slide */
.ts-page .ts-feature-panel[data-mode="cycle"] .ts-feature-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; translate: 0 12px; transition: opacity .35s var(--ease-out), translate .35s var(--ease-out), visibility 0s linear .35s; }
.ts-page .ts-feature-panel[data-mode="cycle"] .ts-feature-slide.is-on { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .5s var(--ease-out) .15s, translate .5s var(--ease-out) .15s, visibility 0s; }
.ts-page .ts-feature-panel[data-mode="cycle"] .ts-feature-slide:not(.is-on) .ts-feature-quote::before { transform: scaleY(0); transition: transform 0s linear .4s; } /* the side rule draws again on every change */
.ts-page .ts-feature-poster { position: relative; display: block; width: 100%; max-width: 520px; justify-self: end; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--well); color: #FFFFFF; cursor: pointer; }
.ts-page .ts-feature-poster img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease-out); }
.ts-page .ts-feature-poster:hover img { scale: 1.04; }
.ts-page .ts-feature-poster .ts-play { background: linear-gradient(to top, rgba(20,20,18,.5), rgba(20,20,18,0) 60%); }
.ts-page .ts-feature-poster .ts-play .ts-play-btn { width: 60px; height: 60px; }
.ts-page .ts-feature-poster .ts-play .ts-play-btn .i { width: 24px; height: 24px; }
.ts-page .ts-feature-poster:focus-visible, .ts-page .ts-feature-btn:focus-visible, .ts-page .ts-feature-dots button:focus-visible { outline: 2px solid var(--inv-fg); outline-offset: 2px; }
.ts-page .ts-feature-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-5); margin-top: var(--s-6); text-align: left; }
.ts-page .ts-feature-nav { display: flex; align-items: center; gap: var(--s-3); }
.ts-page .ts-feature-dots { display: flex; align-items: center; }
.ts-page .ts-feature-dots button { position: relative; width: 36px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--r-pill); } /* 36 x 44 hit area around a 8px dot */
.ts-page .ts-feature-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; translate: -50% -50%; border-radius: var(--r-pill); background: var(--inv-fg-2); transition: width .35s var(--ease-spring), background-color .3s ease; } /* --inv-fg-2 is at least 3:1 on --inv-bg in both themes */
.ts-page .ts-feature-dots button[aria-current="true"]::before { width: 26px; background: var(--inv-fg); }
.ts-page .ts-feature-pos { font-size: var(--t-sm, .9rem); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--inv-fg-2); }
.ts-page .ts-feature-btns { display: flex; gap: var(--s-2); }
.ts-page .ts-feature-btn { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--inv-fg-2); background: transparent; color: var(--inv-fg); cursor: pointer; transition: background-color .2s ease; }
.ts-page .ts-feature-btn:hover { background: rgba(127,127,127,.22); }
.ts-page .ts-feature-btn .i { width: 18px; height: 18px; }
.ts-page .ts-feature-btn .ic-play { fill: currentColor; stroke: none; }
.ts-page .ts-feature-btn:not(.is-paused) .ic-play, .ts-page .ts-feature-btn.is-paused .ic-pause { display: none; }
.ts-page .ts-feature-btn[hidden] { display: none; }

/* a plain "Watch" chip on the featured panel for a video testimony */
.ts-page .ts-feature-panel .ts-feature-media .frame { padding: 10px; background: rgba(127,127,127,.18); box-shadow: none; }

/* no-JS: the kit shows everything; the Show more button needs the script, so it stays hidden until it runs (html.ts-js is set before the first paint and undone by the 2.5 s watchdog; html.js-armed would also be missing when motion is reduced) */
html:not(.ts-js) .ts-page .ts-more { display: none; }

/* reduced motion: the kit switches off reveals and transitions; the page's own animations follow */
@media (prefers-reduced-motion: reduce) {
  .ts-page .ts-stage, .ts-page .ts-veil, html.js-armed .ts-page .ts-card.swap { animation: none; }
  .ts-page .ts-progress { transition: none; }
  .ts-page .ts-seg .thumb, .ts-page .ts-card-poster img, .ts-page .ts-feature-media img, .ts-page .ts-feature-quote::before { transition: none; }
  .ts-page .ts-feature-panel[data-mode] .ts-feature-slide, .ts-page .ts-feature-panel[data-mode] .ts-feature-slide:not(.is-on) .ts-feature-quote::before, .ts-page .ts-feature-poster img, .ts-page .ts-feature-dots button::before, .ts-page .ts-feature-btn { transition: none !important; }
}
@media (max-width: 960px) {
  .ts-page .ts-feature-panel:not([data-mode]) { grid-template-columns: 1fr; }
  .ts-page .ts-feature-slide { grid-template-columns: 1fr; justify-items: center; justify-content: center; text-align: center; } /* the stacking rule moved from the panel to the slide; the kit's .c-sm centring is kept by hand */
  .ts-page .ts-feature-quote { justify-self: center; max-width: 34ch; }
  .ts-page .ts-feature-poster { justify-self: center; }
  .ts-page .ts-feature-panel h2 { margin-inline: auto; }
}

/* ---------- list view (Dennis 16:21 Oct 4, preview comment: "Lets also include a list view option for users") ----------
   A Grid / List switch (the rail's segmented control again) at the right of the tools row; page.js puts .is-list on the browse section and
   remembers the choice. In List every card is one full-width row: for a video testimony the poster at the left as a thumbnail, then the
   category, title and a two-line excerpt, and at the right the person and the Read / Watch and share controls. The sets, filters, paging,
   counts and the reader are the same in both views. */
.ts-page .ts-view { margin-left: auto; }
.ts-page .ts-browse.is-list .ts-wall { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); max-width: none; }
.ts-page .ts-browse.is-list .ts-set { max-width: none; }
.ts-page .ts-browse.is-list .ts-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: var(--s-6); row-gap: var(--s-2); align-items: center; padding: var(--s-4) var(--s-5); }
.ts-page .ts-browse.is-list .ts-card.is-video { grid-template-columns: 184px minmax(0, 1fr) auto; grid-template-rows: auto auto auto; }
.ts-page .ts-browse.is-list .ts-card-poster { grid-column: 1; grid-row: 1 / span 3; margin: 0; border-radius: var(--r-md); align-self: center; }
.ts-page .ts-browse.is-list .ts-card-poster .ts-play .ts-play-btn { width: 40px; height: 40px; }
.ts-page .ts-browse.is-list .ts-card-poster .ts-play .ts-play-btn .i { width: 18px; height: 18px; margin-left: 2px; }
.ts-page .ts-browse.is-list .ts-play .ts-dur { left: 8px; bottom: 8px; height: 24px; padding: 0 8px; }

.ts-page .ts-browse.is-list .ts-card-top, .ts-page .ts-browse.is-list .ts-card-t, .ts-page .ts-browse.is-list .ts-card-q { grid-column: 1; }
.ts-page .ts-browse.is-list .ts-card.is-video .ts-card-top, .ts-page .ts-browse.is-list .ts-card.is-video .ts-card-t, .ts-page .ts-browse.is-list .ts-card.is-video .ts-card-q { grid-column: 2; }
.ts-page .ts-browse.is-list .ts-card-top { grid-row: 1; justify-content: flex-start; gap: var(--s-3); }
.ts-page .ts-browse.is-list .ts-card-t { grid-row: 2; font-size: 1.0625rem; text-wrap: pretty; }
.ts-page .ts-browse.is-list .ts-card-q { grid-row: 3; font-size: var(--t-base); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* a two-line excerpt: here the excerpt does not grow, so the clamp ends cleanly */
.ts-page .ts-browse.is-list .ts-card .ts-who { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: center; padding-top: 0; border-top: 0; min-width: 200px; }
.ts-page .ts-browse.is-list .ts-card.is-video .ts-who { grid-column: 3; }
.ts-page .ts-browse.is-list .ts-card-foot { grid-column: 2; grid-row: 3; justify-self: end; justify-content: flex-end; gap: var(--s-4); min-width: 200px; }
.ts-page .ts-browse.is-list .ts-card.is-video .ts-card-foot { grid-column: 3; }
.ts-page .ts-browse.is-list .ts-card.is-out, .ts-page .ts-browse.is-list .ts-card.is-hid { display: none; } 

@media (max-width: 960px) {
  .ts-page .ts-view { margin-left: 0; }
}
@media (max-width: 700px) {
  .ts-page .ts-tools > .ts-view { grid-column: 1 / -1; justify-self: center; }
  .ts-page .ts-browse.is-list .ts-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; column-gap: var(--s-4); row-gap: var(--s-2); padding: var(--s-4); }
  .ts-page .ts-browse.is-list .ts-card.is-video { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto; }
  .ts-page .ts-browse.is-list .ts-card-poster { grid-row: 1 / span 3; align-self: start; }
  .ts-page .ts-browse.is-list .ts-card-poster .ts-play .ts-play-btn { width: 32px; height: 32px; }
  .ts-page .ts-browse.is-list .ts-card-poster .ts-play .ts-play-btn .i { width: 14px; height: 14px; }
  .ts-page .ts-browse.is-list .ts-play .ts-dur { display: none; }

  .ts-page .ts-browse.is-list .ts-card-q { -webkit-line-clamp: 3; font-size: var(--t-sm); }
  .ts-page .ts-browse.is-list .ts-card .ts-who, .ts-page .ts-browse.is-list .ts-card.is-video .ts-who { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; min-width: 0; margin-top: var(--s-1); padding-top: var(--s-3); border-top: 1px solid var(--line); }
  .ts-page .ts-browse.is-list .ts-card-foot, .ts-page .ts-browse.is-list .ts-card.is-video .ts-card-foot { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; justify-content: space-between; min-width: 0; }
}


/* ======================================================================
   Theme additions (not in the preview)
   ====================================================================== */

/* ---------- the form's country field: the theme's shared flag picker in the approved field look ---------- */
/* egw-picker.css dresses the picker's button and search in the kit's well look (page-coloured text on a tinted well, 44px);
   this form's fields are the approved .ts-in look (page surface, strong border, 48px, the ring on focus), so the button and the
   search take it here. The list, the flags and the rows are the picker's own. The group (.ts-group) is position: relative, so
   the list is as wide as the field and bounded by the form card. */
.ts-page .ts-form .egw-picker .egw-country-trigger { min-height: 48px; padding: 0 var(--field-pad); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--page); box-shadow: none; font: 500 max(1rem, 16px)/1.4 var(--font); transition: border-color .12s ease, box-shadow .12s ease; }
.ts-page .ts-form .egw-picker .egw-country-trigger:hover { background: var(--page); border-color: var(--line-strong); }
.ts-page .ts-form .egw-picker .egw-country-trigger:focus-visible, .ts-page .ts-form .egw-picker .egw-country-trigger.open { border-color: var(--ink); background: var(--page); box-shadow: 0 0 0 3px var(--tint-2); }
.ts-page .ts-form .egw-picker .egw-country-search { min-height: 44px; padding: 0 var(--field-pad); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--page); box-shadow: none; font: 500 max(1rem, 16px)/1.4 var(--font); }
.ts-page .ts-form .egw-picker .egw-country-search:focus { border-color: var(--ink); background: var(--page); box-shadow: 0 0 0 3px var(--tint-2); }
.ts-page .ts-form .egw-picker .egw-country-dropdown { max-width: 100%; } /* under a full-row field the list is the field's width (egw-picker.css caps it at 440px) */

/* ---------- what the preview could not draw (Build decisions of 2026-10-08) ---------- */
/* 1. no testimony published: the board, the rail, the wall's heading and tools, its two sets, Show more and the Featured panel are
   hidden; the approved no-results card (.ts-empty.show) with "No testimonies yet" and a button to the form takes the wall's
   place. The header, Why We Share, the invitation, the form and the verse stay as they are. */
.ts-page.is-none .ts-board, .ts-page.is-none .ts-rail, .ts-page.is-none .ts-wall-head, .ts-page.is-none .ts-set, .ts-page.is-none .ts-more, .ts-page.is-none .ts-feature-sec { display: none; }
.ts-page.is-none .ts-head { grid-template-columns: minmax(0, 1fr); } /* the board is gone: the header text takes the row */
/* 3. a video with a link but no image (a Bunny Stream or a bare .mp4): the hatched surface of the kit's .ph, with the play button
   and no words (preview-style.css:130, copied; the kit's .egw-kit .ph is the same rule) */
.ts-page .ts-card-poster .ph, .ts-page .ts-feature-media .ph, .ts-page .ts-feature-poster .ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%; background: repeating-linear-gradient(135deg, var(--tint-2) 0 8px, transparent 8px 16px), var(--well); color: var(--muted); border: 1px dashed var(--line-strong); border-radius: inherit; }
/* 5. the shared address /testimony/{slug}/ lands on its card (#t-{slug}): the card clears the fixed header and the pinned rail when the
   browser scrolls to it (the script opens the reader on it; without JavaScript this scroll is all there is) */
.ts-page .ts-card { scroll-margin-top: calc(var(--ts-hdr, 75px) + var(--ts-rail, 74px) + var(--s-4)); }
/* the Featured panel of a video testimony: the poster is a button that opens the reader */
.ts-page .ts-feature-media .ts-play:focus-visible { outline: 2px solid #FFFFFF; outline-offset: -4px; } /* the kit's outline would be clipped by the frame */

/* ---------- the reader's text: what the editor's content may carry beyond paragraphs ---------- */
.ts-page .ts-stage-text > * { margin: 0; }
.ts-page .ts-stage-text ul, .ts-page .ts-stage-text ol { display: grid; gap: var(--s-2); padding-left: 1.4em; color: var(--ink-2); font-size: var(--ts-read); line-height: 1.7; } /* global: ul, ol { list-style: none } */
.ts-page .ts-stage-text ul { list-style: disc; }
.ts-page .ts-stage-text ol { list-style: decimal; }
.ts-page .ts-stage-text a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; } /* global: a { text-decoration: none; color: inherit } */
.ts-page .ts-stage-text blockquote { padding-left: var(--s-4); border-left: 2px solid var(--line-strong); color: var(--ink-2); font-size: var(--ts-read); line-height: 1.7; }
.ts-page .ts-stage-text h2, .ts-page .ts-stage-text h3, .ts-page .ts-stage-text h4 { color: var(--ink); font-size: calc(var(--ts-read) * 1.2); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; text-wrap: balance; }
.ts-page .ts-stage-text img, .ts-page .ts-stage-text video, .ts-page .ts-stage-text iframe { max-width: 100%; height: auto; border-radius: var(--r-md); }
.ts-page .ts-stage-text figure { display: grid; gap: var(--s-2); justify-items: center; }
.ts-page .ts-stage-text figcaption { color: var(--muted); font-size: var(--t-xs); text-align: center; }
.ts-page .ts-stage-text table { display: block; max-width: 100%; overflow-x: auto; }
/* theme: one long unbroken word (a web address pasted as text, a one-word name) wraps inside its box. anywhere, not global.css's
   break-word, so the word no longer sets the box's smallest width: the reader's head and text sit in auto grid columns, which
   would otherwise widen to the word (on a phone the reader then scrolls sideways) */
.ts-page .ts-who, .ts-page .ts-feature-quote, .ts-page .ts-stage-head h2, .ts-page .ts-stage-text, .ts-page .ts-stage-text * { overflow-wrap: anywhere; }

/* ---------- image captions (3.35.0): a video testimony whose poster has a saved caption; every other card is unchanged ----------
   The card's controls sit under .ts-card-open (z-index 1) so the whole card opens the reader. The figure that holds a captioned
   poster rises above it but lets every click through (pointer-events: none) except the enlarge button, so the poster, the caption
   and the rest of the card still open the reader. In the Featured panel the caption is text only (the poster opens the reader). */
.ts-page .ts-card > .ts-capfig { margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) 0; z-index: 2; pointer-events: none; }
.ts-page .ts-capfig .ts-card-poster { margin: 0; }
.ts-page .ts-capfig .cap-btn { pointer-events: auto; }
.ts-page .ts-capfig.egw-capfig > .cap { padding-inline: var(--s-5); padding-bottom: 2px; }
.ts-page .ts-browse.is-list .ts-card > .ts-capfig { grid-column: 1; grid-row: 1 / span 3; margin: 0; align-self: center; }
.ts-page .ts-browse.is-list .ts-capfig.egw-capfig > .cap { padding-inline: 0; }
@media (max-width: 700px) { .ts-page .ts-browse.is-list .ts-card > .ts-capfig { align-self: start; } }
.ts-page .ts-feature-panel .ts-feature-cap.egw-capfig > .cap, .ts-page .ts-feature-panel .ts-feature-cap .cap-title, .ts-page .ts-feature-panel .ts-feature-cap .cap-source { color: var(--inv-fg); }
.ts-page .ts-feature-panel .ts-feature-cap .cap-source { opacity: .8; }
.ts-page .ts-feature-panel .ts-feature-cap.egw-capfig > .cap { padding-inline: 2px; }
.ts-page .ts-feature-panel .ts-feature-pw { min-width: 0; width: 100%; max-width: 520px; justify-self: end; }
.ts-page .ts-feature-panel .ts-feature-pw .ts-feature-poster { max-width: none; }
@media (max-width: 960px) { .ts-page .ts-feature-panel .ts-feature-pw { justify-self: center; } }
.ts-page .ts-capfig .cap-more { pointer-events: auto; }
