/* ======================================================================
   Extras page body, egw-diaspora theme 3.24.0. Loaded by page-extras.php only (inc/extras/extras.php), after global.css, the
   kit (egw-kit, the site-wide scoped copy) and the chrome. Every rule here is limited to .x-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 Extras preview (source/extras.css of the preview's Version 6, 2026-10-07: the page's own design on
   the kit's tokens, light and dark, reduced motion, breakpoints 1279/961, 1100, 960, 859, 800, 640, 560, 480), with these
   changes (the rules that carry one say so in their own comment):
   1. every selector sits inside .x-page (an :root[...] part stays first), the one mechanical change; the kit's scoped
      .egw-kit p / h2 / h3 / a rules are more specific than a bare class, so no page rule is a bare class;
   2. room for the theme's fixed header: the page starts under it (--nav-height, kept up to date by the chrome);
   3. one tight section rhythm (--x-gap), as Salvation and Daily Readings (Dennis, 2026-10-09): the kit's --section above AND
      below every section doubled each break; the photo band between the page header and the catalogue takes the same gap;
   4. left out, as review-only: the section tags, the review notes and chips (.rev, .chip), the review dock and the hero
      band's placeholder; the live service is keyed to .x-page.svc-live (the template at render, extras.js from Home's rules).
   Kit rules the preview's kit-current.css copied (the breadcrumb, the photo block) are already in the theme's kit. Every
   colour is a kit token, so light and dark ship together. Motion uses transform, opacity, translate, scale and widths only,
   and stops under prefers-reduced-motion. No ancestor of the pinned category row sets overflow (html and body keep the
   theme's overflow-x: clip).
   ====================================================================== */

/* ---------- 00 page frame: the theme's fixed header, and the section rhythm ---------- */
.x-page { padding-top: var(--nav-height, 85px); --x-gap: clamp(var(--s-5), 1vw + 18px, 36px); } /* the page starts under the fixed header (85px at rest, 75px once scrolled); --x-gap is each side of a section break: about 32px at 1440 (65px between), 24px on a phone (48px), 36px from 1800 (72px) */
.x-page section.sec { position: relative; padding-block: var(--x-gap); } /* section.sec: the kit's .egw-kit section.sec (0,2,1) beats .x-page .sec; the kit gave --section above and below */
.x-page .card.lift:active:not(:hover) { transform: none; } /* global: .lift:active nudges cards on touch */

/* tiles stand off the stage (Dennis 21:10, "contrast the cards a little bit"): the kit's v1.6 card (change log 45, in kit-v13.css: --card #EEEEEC in
   light, the --line-strong edge and the soft card shadow at rest on every .card); coming-soon tiles sit on the deeper well tone with a dashed line, a
   visible step down from the available ones */
.x-page section[id] { scroll-margin-top: calc(var(--nav-height, 85px) + var(--s-5)); } /* same-page links land under the header */
.x-page section.x-shelf { scroll-margin-top: calc(var(--x-hdr, 66px) + var(--x-row, 45px) + 12px); } /* a jump to a shelf lands under the header and the pinned index row (page.js sets both heights) */

/* ---------- 02 page header: breadcrumb, page name, lead and the tally on the left; the most-visited switchboard on the right ---------- */
.x-page section.x-head { padding-top: clamp(2.75rem, 4vw, 3rem); padding-bottom: var(--x-gap); overflow-x: clip; } /* Dennis 18:25 (Contact): a page header keeps only its small bottom padding; the gap is the next section's own padding */
.x-page .x-head-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.x-page .x-id { display: grid; gap: var(--s-5); justify-items: start; align-content: start; }
.x-page .x-id h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.x-page .x-id .lead { max-width: 46ch; }
.x-page .x-id .lead, .x-page .x-mv-lead, .x-page .x-sec-head .lead, .x-page .x-tile .x-body p, .x-page .x-more .lead, .x-page .x-empty p { text-wrap: pretty; }
/* the tally reads as a ledger total: a ruled line under the lead, numbers in ink */
.x-page .x-tally { margin: 0; width: min(100%, 46ch); padding-top: var(--s-4); border-top: 1px solid var(--line-strong); font-size: var(--t-sm); line-height: 1.5; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.x-page .x-tally strong { color: var(--ink); font-weight: 700; }

/* the switchboard: six keys, three by two; each a flat tile with an outline icon over its label (no bevels, no keycaps) */
.x-page .x-mv { display: grid; gap: var(--s-2); align-content: start; }
.x-page .x-mv .micro { margin: 0; }
.x-page .x-mv-lead { margin: 0 0 var(--s-3); font-size: var(--t-sm); color: var(--ink-2); }
.x-page .x-keys { --kcols: 4; --kgap: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--kgap); }
.x-page .x-key { flex: 0 0 calc((100% - (var(--kcols) - 1) * var(--kgap)) / var(--kcols)); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1279px) and (min-width: 961px) { .x-page .x-keys { --kcols: 3; } } /* "Announcements" needs the wider key here; rows 3 + 3 + 2, centred */
.x-page .x-key { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 94px; padding: 16px 3px 14px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .72rem; font-weight: 600; letter-spacing: .02em; line-height: 1.2; text-align: center; text-wrap: balance; position: relative; transition: transform .25s var(--ease-out), border-color .12s ease, background-color .12s ease, box-shadow .25s ease, opacity .7s var(--ease-out), translate .7s var(--ease-out); }
.x-page .x-key .i { width: 22px; height: 22px; transition: transform .35s var(--ease-spring); }
.x-page .x-key:hover, .x-page .x-key:focus-visible { transform: translateY(-2px); border-color: var(--line-strong); background: var(--page); box-shadow: var(--shadow-float); }
.x-page .x-key:hover .i, .x-page .x-key:focus-visible .i { transform: scale(1.12) rotate(-4deg); }
.x-page .x-key:active { transform: translateY(0) scale(.98); box-shadow: none; }
.x-page .x-ext { position: absolute; top: 7px; right: 7px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: var(--page); color: var(--ink-2); } /* a key that opens another Ephesus site */
.x-page .x-ext .i { width: 10px; height: 10px; }
.x-page .x-key:hover .x-ext { background: var(--well); color: var(--ink); }
.x-page .x-site { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); font-weight: 500; color: var(--ink-2); white-space: nowrap; } /* a tile that is another Ephesus site: named at the foot's right, where a wrap never moves the title */
.x-page .x-site .i { width: 11px; height: 11px; }
.x-page .x-shelves.is-list .x-site { margin-left: 0; flex-basis: auto; }
@media (min-width: 641px) { .x-page .x-shelves.is-list .x-foot { flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; } } /* list view: the marker sits under the action, so the pill and action columns keep their line */


/* the Customizer hero image (the light slot only; one colour photo): a photo band under the page header; page-extras.php always prints it (the Customizer photo, else the theme's group photo, W10) */
.x-page .x-band { padding-block: var(--x-gap); } /* 3.24.0: the same gap above and below the band as between two sections (the preview: 24px above, none below) */
.x-page .x-band-in { height: clamp(160px, 22vw, 260px); border-radius: var(--r-xl); overflow: hidden; background: var(--frame); box-shadow: var(--shadow-frame); }
/* 00:43 (Dennis, 2026-10-04, on the About preview, for the whole site): in the dark theme every photo is black and white. The hero band's image
   follows the kit's photos block (kit change log 48 and 49; in the theme the band's img also carries the kit's photo class); icons and logos
   keep their colours. One colour original per photo, no dark version (his 00:45). */
.x-page .x-band-in img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .3s ease; }
:root[data-theme="dark"] .x-page .x-band-in img { filter: grayscale(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .x-page .x-band-in img { filter: grayscale(1); } }
@media (prefers-reduced-motion: reduce) { .x-page .x-band-in img { transition: none; } }

/* ---------- 03 catalogue: section head, the finder, the category index, the Showing line, two shelves ---------- */
.x-page section.x-cat { padding-top: var(--x-gap); } /* 3.24.0: the preview gave it three quarters of --section (kit entry 41); now the page gap */
.x-page .x-sec-head { display: grid; gap: var(--s-3); justify-items: start; margin-bottom: var(--s-6); }
.x-page .x-sec-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.x-page .x-sec-head .lead { max-width: 56ch; }

/* finder: the search line and the Tiles | List switch */
.x-page .x-finder { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s-3) var(--s-4); align-items: center; }
/* Sort (Dennis 21:07, "lets include sort system"): a native select in a kit pill, so every option shows in full on every device */
.x-page .x-sort { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-2); font-size: var(--t-sm); cursor: pointer; transition: border-color .12s ease, box-shadow .2s ease; }
.x-page .x-sort:hover { border-color: var(--ink); }
.x-page .x-sort:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--tint-1); }
.x-page .x-sort-l { font-weight: 500; white-space: nowrap; }
.x-page .x-sort select { appearance: none; -webkit-appearance: none; border: 0; background: none; color: var(--ink); font: 600 var(--t-sm)/1 var(--font); padding: 0 22px 0 0; cursor: pointer; outline: none; }
.x-page .x-sort .i { position: absolute; right: 12px; width: 16px; height: 16px; pointer-events: none; color: var(--ink-2); }
.x-page .x-search { position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--card); transition: border-color .12s ease, box-shadow .2s ease, background-color .2s ease; }
.x-page .x-search > .i { width: 20px; height: 20px; color: var(--ink-2); flex: none; }
.x-page .x-search:focus-within { border-color: var(--ink); background: var(--page); box-shadow: 0 0 0 4px var(--tint-1); }
.x-page .x-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink); font: 500 1rem/1 var(--font); outline: none; }
.x-page .x-search input { padding: 1px 2px; min-height: 0; } /* the kit's newer field rules (padding-inline: 12px, min-height: 44px) answered: the preview's search box keeps the browser's own padding and sits in its 52px pill, which is the target */
.x-page .x-sort select { min-height: 0; border-radius: 0; } /* answers: the kit's newer min-height: 44px (the preview's Sort list is one text line inside its 52px label) and global.css's select { border-radius } */
.x-page .x-sort option { padding: 0 2px 1px; } /* answers global.css's * { padding: 0 }, which also reset the list items' own (browser) padding */
.x-page .x-search input:focus-visible { box-shadow: none; } /* answers global.css's input:focus-visible ring: the pill (.x-search:focus-within) draws the focus */
.x-page .x-search input::placeholder { color: var(--muted); opacity: 1; }
.x-page .x-search input::-webkit-search-cancel-button, .x-page .x-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.x-page .x-clear { width: 38px; height: 38px; }
.x-page .x-clear .i { width: 16px; height: 16px; }
.x-page .x-view { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: var(--r-pill); background: var(--well); box-shadow: var(--well-shadow); isolation: isolate; }
.x-page .x-view button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: none; color: var(--ink-2); font: 600 var(--t-sm)/1 var(--font); cursor: pointer; white-space: nowrap; transition: color .12s ease; }
.x-page .x-view button .i { width: 17px; height: 17px; }
.x-page .x-view button:hover { color: var(--ink); }
.x-page .x-view button.is-on { color: var(--btn-fg); }
.x-page .x-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--r-pill); background: var(--btn); box-shadow: var(--shadow-btn); transition: left .3s var(--ease-out); }
.x-page .x-view[data-view="list"] .x-thumb { left: 50%; }

/* the category index: an underlined row of ALL-CAPS tabs with a count each; the ink line slides to the chosen one */
/* pinned (Dennis 18:50, 2026-10-03: "make sure the pinning is always remember where ever its need on any part of the site"): the index row sticks under the
   header while the shelves scroll, on the stage colour so tiles pass beneath it; --x-hdr is the header's current height, kept by page.js */
.x-page .x-tabs { position: sticky; top: var(--x-hdr, 66px); z-index: 20; display: flex; gap: 4px; margin-top: var(--s-5); padding-block: 6px; background: var(--stage); border-bottom: 1px solid var(--line-strong); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.x-page .x-tabs::-webkit-scrollbar { display: none; }
.x-page .x-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: var(--r-pill); background: none; color: var(--ink-2); font: 700 .72rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: color .12s ease, background-color .12s ease; }
.x-page .x-tab:hover { color: var(--ink); background: var(--tint-1); }
.x-page .x-tab.is-on, .x-page .x-tab.is-on:hover { background: var(--inv-bg); color: var(--inv-fg); } /* R36 (Dennis 16:25 Oct 4): the chosen category is an inverted pill in both themes, as Testimonies does; the sliding underline is gone */
.x-page .x-tab .n { padding: 3px 7px; border-radius: var(--r-pill); background: var(--well); color: var(--ink-2); font-size: .66rem; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; transition: background-color .12s ease, color .12s ease; }
.x-page .x-tab.is-on .n { background: var(--inv-fg); color: var(--inv-bg); }
.x-page .x-ink { display: none; }

/* the Showing line and the Reset button */
.x-page .x-count { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 48px; padding: var(--s-3) 0; font-size: var(--t-sm); color: var(--ink-2); }
.x-page .x-count p { margin: 0; }
.x-page .x-count strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.x-page .x-reset { min-height: 40px; padding: 0 16px; font-size: var(--t-sm); gap: 8px; }
.x-page .x-reset .i { width: 16px; height: 16px; }

/* shelves: a title, its count and a rule that runs to the edge */
.x-page .x-shelves { display: grid; gap: var(--s-7); margin-top: var(--s-3); }
.x-page .x-shelf[hidden] { display: none; }
.x-page .x-shelf-head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); }
.x-page .x-shelf-head h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.x-page .x-shelf-n { font-size: var(--t-sm); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.x-page .x-shelf-n strong { color: var(--ink); font-weight: 600; }
.x-page .x-rule { flex: 1; height: 1px; background: var(--line-strong); }

/* tiles: compact cards (change log 26), four across, the row centred so a short last row sits in the middle (change log 30) */
.x-page .x-tiles { --cols: 4; --gap: 16px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.x-page .x-tile { position: relative; flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.x-page .x-tile.card { padding: 24px; }
/* 23:31 (Dennis, on the Calendar tile): every tile under Available now looks like the Coming soon ones: the deeper well tone, a --line-strong
   edge and no shadow at rest; the icon square and the Available pill sit on the page tone so they still show on the well. The dashed edge stays
   the Coming soon mark, and hover keeps its lift. In list view the rows stay flat on the stage, so the icon square and pill keep the well tone there. */
.x-page .x-tile.card { background: var(--well-2); border-color: var(--line-strong); box-shadow: none; }
.x-page .x-tile.card .ic { background: var(--page); }
.x-page .x-tile.card .x-state.avail { background: var(--page); }
.x-page .x-tiles.group > .x-tile { transition: transform .3s var(--ease-out), border-color .3s ease, box-shadow .3s ease, background-color .3s ease, opacity .7s var(--ease-out), translate .7s var(--ease-out); }
.x-page .x-tiles.group > .x-tile.is-out { opacity: 0; translate: 0 8px; transition-duration: .3s, .3s, .3s, .3s, .22s, .22s; }
.x-page .x-tile[hidden] { display: none; }
.x-page .x-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.x-page .x-tile .ic { position: relative; }
.x-page .x-tile:hover .ic { transform: scale(1.1) rotate(-4deg); }
.x-page .x-body { display: grid; gap: 6px; }
.x-page .x-body .micro { margin: 0; }
.x-page .x-tile h4 { margin: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.x-page .x-body p:not(.micro) { margin: 0; font-size: var(--t-sm); line-height: 1.55; color: var(--ink-2); }
.x-page .x-foot { margin-top: auto; padding-top: var(--s-2); display: flex; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); flex-wrap: wrap; }
/* the action link: the whole tile is its target, as the old card was; the label underlines on hover, the arrow nudges */
.x-page .x-go { position: static; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: var(--t-sm); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color .2s ease; }
.x-page .x-go::before { content: ""; position: absolute; inset: -1px; border-radius: var(--r-lg); } /* -1px: the cover matches the tile's border box, so its rounded corners hit the link too */
.x-page .x-tile:hover .x-go, .x-page .x-go:focus-visible { text-decoration-color: var(--ink); }
.x-page .x-go .i { width: 16px; height: 16px; transition: transform .3s var(--ease-spring); }
.x-page .x-tile:hover .x-go .i { transform: translateX(3px); }
.x-page .x-go:focus-visible { outline: none; }
.x-page .x-tile:has(.x-go:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.x-page .x-next { margin-left: auto; font-size: var(--t-xs); font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.x-page .x-soon { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: var(--t-sm); font-weight: 600; }
.x-page .x-soon .i { width: 16px; height: 16px; }

/* state pills: Available (soft), New (ink), Coming soon (dashed), Live now (the kit's ok pill with its blinking dot) */
.x-page .x-state { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--t-micro); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.x-page .x-state.avail { background: var(--well); color: var(--ink-2); }
.x-page .x-state.new { background: var(--btn); color: var(--btn-fg); }
.x-page .x-state.soon { border: 1px dashed var(--line-strong); color: var(--ink-2); }
.x-page .x-state.pill.ok { height: 24px; padding: 0 10px; font-size: var(--t-micro); letter-spacing: .08em; }

/* coming-soon tiles: outlined on the stage, full-contrast text, no lift and nowhere to go */
.x-page .x-tile[data-state="soon"] { background: var(--well-2); border: 1px dashed var(--line-strong); box-shadow: none; }
.x-page .x-tile[data-state="soon"] .ic { background: var(--page); }
.x-page .x-tile[data-state="soon"]:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
.x-page .x-tile[data-state="soon"].lift::after { display: none; }
.x-page .x-tile[data-state="soon"]:hover .ic { transform: none; }

/* live service (Dennis 06:51): while the service is live the Online Service tile shows its live state and no start or end time (.svc-live on #x-page:
   page-extras.php at render, extras.js from the Home live rules) */
.x-page .x-when-live { display: none; }
.x-page.svc-live .x-when-live { display: inline-flex; }
.x-page.svc-live .x-when-off { display: none; }
.x-page.svc-live .is-service { border-color: var(--ok); }
.x-page.svc-live .is-service .ic { color: var(--ok); background: var(--ok-bg); }
.x-page .is-service .ic::after { content: ""; position: absolute; inset: -5px; border-radius: 16px; border: 1.5px solid var(--ok); opacity: 0; pointer-events: none; }
.x-page.svc-live .is-service .ic::after { animation: x-ring 2s var(--ease-out) infinite; }
@keyframes x-ring { 0% { opacity: .9; transform: scale(.84); } 70%, 100% { opacity: 0; transform: scale(1.2); } }
.x-page.svc-live .x-next.x-when-live { color: var(--ok); font-weight: 600; }

/* list view: the same tiles as table-like rows (icon | text | state | action), which stay rows on phones */
.x-page .x-shelves.is-list .x-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.x-page .x-shelves.is-list .x-tile { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(112px, auto) minmax(164px, auto); grid-template-areas: "ic body state foot"; /* the foot column holds the longest action in any language (Swahili Online Service, 162px), so every row's pill lines up */ gap: var(--s-3) var(--s-4); align-items: center; padding: var(--s-4) var(--s-3); border: 0; border-top: 1px solid var(--line); border-radius: var(--r-sm); background: transparent; box-shadow: none; text-align: left; }
.x-page .x-shelves.is-list .x-tile:first-child { border-top: 0; }
.x-page .x-shelves.is-list .x-tile:hover { transform: none; box-shadow: none; background: var(--tint-1); border-color: var(--line); }
.x-page .x-shelves.is-list .x-tile.lift::after { display: none; }
.x-page .x-shelves.is-list .x-top { display: contents; }
.x-page .x-shelves.is-list .ic { grid-area: ic; background: var(--well-2); }
.x-page .x-shelves.is-list .x-state { grid-area: state; justify-self: end; }
.x-page .x-shelves.is-list .x-state.avail { background: var(--well-2); }
.x-page .x-shelves.is-list .x-body { grid-area: body; gap: 2px; justify-items: start; }
.x-page .x-shelves.is-list .x-tile h4 { font-size: 1rem; }
.x-page .x-shelves.is-list .x-body p:not(.micro) { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.x-page .x-shelves.is-list .x-foot { grid-area: foot; margin: 0; padding: 0; justify-content: flex-end; flex-wrap: nowrap; }
.x-page .x-shelves.is-list .x-next { display: none; }
.x-page .x-shelves.is-list .x-tile[data-state="soon"] { background: transparent; border-style: solid; }
.x-page .x-shelves.is-list .x-tile[data-state="soon"]:hover { background: var(--tint-1); }
.x-page .x-shelves.is-list .x-go::before { border-radius: var(--r-sm); }

/* nothing matched */
.x-page .x-empty { display: grid; justify-items: center; text-align: center; gap: var(--s-3); padding: clamp(2.5rem, 6vw, 4rem) var(--s-4); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.x-page .x-empty[hidden] { display: none; }
.x-page .x-empty h3 { font-size: 1.25rem; }
.x-page .x-empty p { margin: 0; color: var(--ink-2); max-width: 44ch; }
.x-page .x-empty .btn { margin-top: var(--s-2); min-height: 44px; }

/* ---------- 04 still looking: one quiet band ---------- */
.x-page section.x-more { padding-top: var(--x-gap); padding-bottom: calc(2 * var(--x-gap)); } /* the closing band above the footer, as Salvation's last section */
.x-page .x-more-in { display: grid; justify-items: center; text-align: center; gap: var(--s-4); padding: clamp(2rem, 4vw, 3.5rem) var(--s-5); border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); }
.x-page .x-more-in h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.x-page .x-more-in .lead { max-width: 48ch; }
.x-page .x-more-in .actions { display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; margin-top: var(--s-2); }

/* ---------- widths ---------- */
@media (max-width: 1100px) { .x-page .x-tiles { --cols: 3; } }
@media (max-width: 960px) {
  .x-page .x-head-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .x-page .x-id { justify-items: center; }
  .x-page .x-tally { width: auto; max-width: 46ch; }
  .x-page .x-mv { width: 100%; max-width: 560px; margin-inline: auto; justify-items: center; text-align: center; }
  .x-page .x-keys { width: 100%; }
  .x-page .x-sec-head { justify-items: center; text-align: center; }
}
@media (max-width: 800px) { .x-page .x-tiles { --cols: 2; } }
@media (max-width: 859px) {
  .x-page .x-tabs { flex-wrap: wrap; justify-content: center; overflow: visible; } /* below 860px the index wraps into centred rows, so nothing is cut off at the edge or scrolled sideways (the old page's pills were cut off below 566px) */
  .x-page .x-tab { padding: 9px 10px; }
  .x-page .x-tab .n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the counts leave the tabs (the Showing line and shelf headings carry them) so the row stays one or two lines; screen readers still hear them */
  .x-page .x-tab.is-on .n { background: none; color: inherit; } /* Rebuild 12: the hidden count of the chosen pill takes the pill's own text colour (inv-fg on inv-bg), not the flipped one, which the checker read as 1:1 on the pill (R20) */
  .x-page .x-count { flex-direction: column; align-items: center; text-align: center; gap: var(--s-3); } /* the Showing line and Reset centre under the centred row */
}
@media (max-width: 640px) {
  .x-page .x-finder { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .x-page .x-search { width: 100%; }
  .x-page .x-view { justify-self: center; }
  .x-page .x-tabs { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .x-page .x-tab { padding: 8px 9px; font-size: .68rem; letter-spacing: .08em; }
  .x-page .x-shelf-head { flex-wrap: wrap; justify-content: center; text-align: center; gap: var(--s-2) var(--s-3); }
  .x-page .x-rule { flex-basis: 100%; order: 3; }
  .x-page .x-shelves.is-list .x-tile { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ic body state" "ic foot foot"; }
  .x-page .x-shelves.is-list .x-foot { justify-content: flex-start; flex-wrap: wrap; } /* the marker may drop under a long action here */
  .x-page .x-shelves.is-list .x-body p:not(.micro) { -webkit-line-clamp: 2; }
}
@media (max-width: 560px) {
  .x-page .x-tiles { --cols: 1; }
  .x-page .x-tile { align-items: center; text-align: center; }
  .x-page .x-top { flex-direction: column; gap: var(--s-3); }
  .x-page .x-body { justify-items: center; }
  .x-page .x-foot { justify-content: center; }
  .x-page .x-site { margin-left: 0; flex-basis: 100%; justify-content: center; }
}
@media (max-width: 480px) { .x-page .x-keys { --kcols: 2; } }


/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .x-page .x-tile, .x-page .x-key, .x-page .x-thumb, .x-page .x-ink, .x-page .x-go, .x-page .x-go .i, .x-page .x-tile .ic, .x-page .x-key .i { transition: none; }
  .x-page.svc-live .is-service .ic::after { animation: none; opacity: .9; transform: none; }
  .x-page .x-tiles.group > .x-tile.is-out { opacity: 0; translate: none; }
}

/* Most visited, an Ephesus site on Coming soon (3.34.0, R54): the key does not open (no href), drawn as the Coming soon tiles are */
.x-page .x-key.is-soon { background: var(--well-2); border: 1px dashed var(--line-strong); color: var(--ink-2); cursor: not-allowed; box-shadow: none; }
.x-page .x-key.is-soon:hover, .x-page .x-key.is-soon:focus-visible, .x-page .x-key.is-soon:active { transform: none; background: var(--well-2); border-color: var(--line-strong); box-shadow: none; }
.x-page .x-key.is-soon:hover .i { transform: none; }
.x-page .x-key.is-soon .egw-soon-tag { height: 20px; padding: 0 8px; }
