/* ======================================================================
   Announcements page body, egw-diaspora theme 3.24.0. Loaded by page-announcements.php only (inc/announcements/announcements.php),
   after global.css, the kit (egw-kit, the site-wide scoped copy) and the chrome (egw-chrome.css). Every rule here is limited to
   .an-page, the page body's wrapper (html... and :root parts stay first), so the theme's header, menus, quick links and footer and
   the kit's own rules are untouched.

   Ported from the approved Announcements preview v1, Version 4 (source/announcements.css, md5 a70798a9f796952d0bb0008f5c2d9b0e: the
   page's own design on the kit's tokens, light and dark, reduced motion, breakpoints 1024 / 960 / 860 / 760 / 640), with these changes
   (the rules that carry one say so in their own comment):
   1. every selector sits inside .an-page, the one mechanical change; the 23 .is-board rules (the held Board layout), the review notes
      (.rev, .an-rev) and the section tags (.tag) are left out;
   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 finder,
      the pinned month labels and the scroll margins use --an-hdr, which is that same live height where the preview measured its 75px
      compact header;
   3. section spacing (Dennis's ruling of 2026-10-09, as Salvation and Daily Readings): one page gap, --an-gap, above and below each
      section in place of the kit's --section (and the preview's .75 x --section under the masthead);
   4. the notice viewer sits at z-index 1100: above the fixed header (1000) and the quick links (990), under the toast (1150) and the
      kit's lightbox (1250, egw-chrome.css). It opens centred at every width (R53, Dennis 2026-10-07 13:10, as the Events panel and
      the Testimonies reader in this theme): below 640px the window fills the screen instead of rising as a bottom sheet;
   5. the no-script page: the numbered pager (a.an-pager links, .an-pager-ns) shows only without the page script, the finder and
      Show more only with it (html.an-js, set before the first paint and undone by a 2.5 s watchdog);
   6. what the preview could not draw: the WordPress embed inside the 16:9 holder (.an-video-box iframe), the dark Customizer photo;
   7. answers to global.css, each naming the rule it answers.
   Every colour is a kit token, so light and dark ship together. No ancestor of the pinned finder or month labels sets overflow (html
   and body keep the theme's overflow-x: clip). Scroll locks go on html (html.an-lock).
   ====================================================================== */

/* ---------- 00 page frame: the theme's fixed header, the page gap, global.css ---------- */
.an-page { padding-top: var(--nav-height, 85px); --an-hdr: var(--nav-height, 75px); --an-gap: clamp(var(--s-5), 1vw + 18px, 36px); } /* the page starts under the fixed header; --an-hdr is the preview's compact header (75px), here the header's live height */
.an-page .vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the kit's visually hidden text (preview-style.css), which the theme's scoped kit does not carry */
.an-page .card.lift:active:not(:hover) { transform: none; } /* global: .lift:active nudges cards on touch */
.an-page input:focus-visible { box-shadow: none; } /* global: input:focus-visible draws a 3px ring; .an-in:focus draws the preview's own */
html:not(.an-js) .an-page .an-find, html:not(.an-js) .an-page .an-more { display: none; } /* no script: no finder and no Show more; the numbered pager pages the list */
html.an-js .an-page .an-pager-ns { display: none; }

/* ---------- the preview's page rules ---------- */
/* ---------- Announcements page v1 (brief: announcements/design/brief.md, Fable, 2026-10-07; built by the Opus helper). Prefix an-.
   Colours from the kit's tokens only, light and dark together; black, white and warm grey (R15). New for this page (brief section 9):
   the masthead ledger, the urgent strip, the pinned lead cards, the finder (sticky bar, drawn pickers, segmented sort, chips with counts),
   the month groups with the sticky month label and spine, the notice rows, the board grid, Show more and the pager, the two empty panels,
   and the notice viewer with its share row and Previous / Next. Pinned parts (the finder, the month labels) have no overflow: hidden
   ancestor; html and body keep the kit's overflow-x: clip (preview-style.css). ---------- */
.an-page section.sec { position: relative; padding-block: var(--an-gap); } /* theme (Dennis's ruling 2026-10-09): one page gap each side of a section break, in place of the kit's --section; section.sec: the kit's .egw-kit section.sec (0,2,1) beats .an-page .sec */
.an-page section.sec.an-record { padding-bottom: calc(2 * var(--an-gap)); } /* the closing area above the footer, as Salvation's last section */
.an-page [id] { scroll-margin-top: calc(var(--an-hdr) + var(--s-5)); } /* --an-hdr: the header's live height */

/* ---------- 02 page header: the masthead (kit page-header pattern, only its small bottom padding, R16) ---------- */
.an-page .an-head { position: relative; padding-top: clamp(3rem, 4vw, 3.5rem); padding-bottom: var(--an-gap); } /* theme: the page gap below the masthead (was clamp(1.5rem, 3vw, 2.5rem)) */
.an-page .an-head + section.sec, .an-page .an-head + section.an-board[hidden] + section.an-record { padding-top: var(--an-gap); } /* theme: the page gap (was .75 x --section) */ /* with the band hidden (Empty, or nothing urgent or pinned) the record keeps the band's gap under the masthead (round 2, item 3) */
.an-page .an-mast { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 4rem); row-gap: var(--s-5); align-items: center; }
.an-page .an-mast > .crumb { grid-column: 1 / -1; }
.an-page .an-mast-text { display: grid; gap: var(--s-4); justify-items: start; align-content: start; min-width: 0; }
.an-page .an-deck { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.4; color: var(--ink); max-width: 40rem; text-wrap: pretty; } /* page sub-title (R38): directly under the H1, 16px below; one run of text, 40rem (round 1, item 1) */
.an-page .an-ledger { width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-5); padding-block: var(--s-3); border-block: 1px solid var(--line); margin-top: var(--s-2); }
.an-page .an-ledger-n { font-size: var(--t-base); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.an-page .an-ledger-n .an-dgs { display: inline-flex; vertical-align: -.12em; }
.an-page .an-ledger-u { font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.an-page .an-mast-photo { margin: 0; min-width: 0; }
.an-page .an-mast-photo .frame-in { aspect-ratio: 3 / 2; }
.an-page .an-mast-photo img { width: 100%; height: 100%; object-fit: cover; }
.an-page .an-mast.has-photo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 960px) {
  .an-page .an-mast.has-photo { grid-template-columns: minmax(0, 1fr); }
  .an-page .an-mast-text { justify-items: center; }
  .an-page .an-mast-photo { width: min(100%, 560px); margin-inline: auto; }
}
@media (max-width: 760px) { .an-page .an-ledger { flex-direction: column; align-items: center; text-align: center; } }

/* ---------- shared: section heads, meta rows, pills, titles, excerpts, actions ---------- */
.an-page .an-sec-head { display: grid; gap: var(--s-3); justify-items: start; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.an-page .an-sec-head .lead { max-width: 52ch; }
.an-page .an-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.an-page .an-meta .pill { height: 26px; padding: 0 10px; font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase; }
.an-page .an-meta .pill .i { width: 14px; height: 14px; }
.an-page .pill.an-p-urgent { background: var(--ink); color: var(--page); }
.an-page .an-pinpill .i { transition: transform .35s var(--ease-spring); }
.an-page .card:hover .an-pinpill .i, .an-page .an-strip:hover .an-pinpill .i { transform: scale(1.1) rotate(-8deg); }
.an-page .an-title { font-size: var(--t-h3); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; margin: 0; text-wrap: balance; }
.an-page .an-ex { color: var(--ink-2); font-size: var(--t-base); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.an-page .an-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-1); }
.an-page .an-acts .btn, .an-page .an-strip .btn, .an-page .an-view-acts .btn, .an-page .an-view-rail .btn, .an-page .an-panel .btn, .an-page .an-more .btn, .an-page .an-clear { min-height: 44px; }
.an-page .an-ext .i { width: 16px; height: 16px; }
.an-page .an-ext:hover .i { transform: translate(2px, -2px); }
.an-page .an-dpill { display: none; }

/* ---------- 03 on the board now (stage band) ---------- */
.an-page .an-board { background: var(--stage); }
.an-page .an-urgent { display: grid; gap: var(--s-4); }
.an-page .an-urgent:empty, .an-page .an-pins:empty { display: none; }
.an-page .an-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 24px; border-radius: var(--r-lg); background: var(--ink); color: var(--page); box-shadow: var(--shadow-card); cursor: pointer; transition: transform .3s var(--ease-out), box-shadow .3s ease, opacity .8s var(--ease-out), translate .8s var(--ease-out); }
.an-page .an-strip:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.an-page .an-strip-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--page) 16%, var(--ink)); color: var(--page); transition: transform .35s var(--ease-spring); }
.an-page .an-strip-ic .i { width: 24px; height: 24px; }
.an-page .an-strip:hover .an-strip-ic { transform: scale(1.1) rotate(-4deg); }
.an-page .an-strip-text { display: grid; gap: 4px; min-width: 0; }
.an-page .an-strip-micro { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--inv-fg-2); }
.an-page .an-strip .an-title { color: var(--page); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.an-page .an-strip-ex { color: var(--inv-fg-2); font-size: var(--t-sm); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; } /* one line (brief 5.2); page.js cuts the text to fit */
.an-page .an-strip .btn.inv { white-space: nowrap; }
@media (max-width: 640px) {
  .an-page .an-strip { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .an-page .an-strip-micro { justify-content: center; }
}
.an-page .an-pins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); align-items: stretch; }
.an-page .an-urgent:not(:empty) + .an-pins { margin-top: var(--s-5); }
.an-page .an-pins > .an-pin:only-child { grid-column: 1 / -1; }
.an-page .an-pin { padding: var(--s-5); display: grid; grid-template-columns: minmax(200px, 40%) minmax(0, 1fr); gap: var(--s-5); align-items: start; cursor: pointer; }
.an-page .an-pin:not(.has-media) { grid-template-columns: minmax(0, 1fr); align-content: center; } /* beside a taller card it stretches to the row, its text centred (R33; round 1, item 5) */
.an-page .an-pin-media { display: flex; justify-content: center; border-radius: var(--r-md); background: var(--well); overflow: hidden; }
.an-page .an-pin-media img { display: block; max-width: 100%; max-height: 320px; width: auto; height: auto; object-fit: contain; }
.an-page .an-pin-text { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
@media (max-width: 860px) {
  .an-page .an-pin { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .an-page .an-pin-media { width: 100%; }
  .an-page .an-pin-media img { max-height: 260px; }
  .an-page .an-pin-text { justify-items: center; }
  .an-page .an-pin .an-meta, .an-page .an-pin .an-acts { justify-content: center; }
}
@media (max-width: 639px) { .an-page .an-pins { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 04 the record: the finder ---------- */
.an-page .an-find { display: grid; gap: var(--s-3); padding: 16px 20px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-card); margin-block: var(--s-4) clamp(2rem, 4vw, 3rem); z-index: 20; --line: var(--line-strong); --well: var(--well-2); }
@media (min-width: 1024px) { .an-page .an-find { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--an-hdr) + 12px); } }
.an-page .an-find-r1 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.an-page .an-find-r2 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.an-page .an-search { position: relative; flex: 1 1 280px; min-width: min(280px, 100%); }
.an-page .an-search > .i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ink-2); pointer-events: none; }
.an-page .an-in { width: 100%; min-height: 44px; padding: 0 44px; 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); -webkit-appearance: none; appearance: none; transition: border-color .12s ease, box-shadow .12s ease; }
.an-page .an-in::-webkit-search-cancel-button, .an-page .an-in::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.an-page .an-in:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px var(--tint-2); }
.an-page .an-in::placeholder { color: var(--muted); font-weight: 400; opacity: 1; }
.an-page .an-qx { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; transition: background-color .12s ease, color .12s ease; }
.an-page .an-qx:hover { background: var(--tint-2); color: var(--ink); }
.an-page .an-qx .i { width: 18px; height: 18px; }
/* the drawn pickers (kit .picker-list, plain words, R48): a 44px trigger with a chevron, the list on --card, 40px rows, the chosen row inverted (R36) */
.an-page .an-pick { position: relative; flex: 0 0 auto; }
.an-page .an-pick-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: var(--s-3); width: 100%; min-width: 9.25rem; min-height: 44px; padding: 0 12px 0 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--page); color: var(--ink); font: 500 var(--t-sm)/1.2 var(--font); white-space: nowrap; cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease; }
.an-page .an-pick-btn:hover { border-color: var(--muted); }
.an-page .an-pick-btn .chev { width: 18px; height: 18px; color: var(--ink-2); transition: transform .3s var(--ease-spring); }
.an-page .an-pick.open .an-pick-btn { border-color: var(--ink); box-shadow: 0 0 0 3px var(--tint-2); }
.an-page .an-pick.open .an-pick-btn .chev { transform: rotate(180deg); }
.an-page .an-pick-list { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; min-width: 100%; margin: 0; padding: 6px; list-style: none; display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow-card), var(--shadow-float); max-height: min(60vh, 23rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; outline: 0; }
.an-page .an-pick-list.to-left { left: auto; right: 0; }
.an-page .an-pick-list:not([hidden]) { animation: an-rise .2s var(--ease-out); }
@keyframes an-rise { from { opacity: 0; translate: 0 6px; } }
.an-page .an-pick-list .row { min-height: 40px; padding: 0 12px; border-radius: var(--r-sm); font-size: var(--t-sm); font-weight: 500; color: var(--ink); cursor: pointer; white-space: nowrap; }
.an-page .an-pick-list .row:hover, .an-page .an-pick-list .row.on { background: var(--tint-2); }
.an-page .an-pick-list .row:focus-visible { outline-offset: -2px; }
.an-page .an-pick-list .row[aria-selected="true"] { background: var(--ink); color: var(--page); }
.an-page .an-pick-list .row .tick { width: 16px; height: 16px; margin-left: auto; padding-left: 8px; box-sizing: content-box; opacity: 0; }
.an-page .an-pick-list .row[aria-selected="true"] .tick { opacity: 1; }
/* the segmented sort: a sliding ink thumb (250ms), the chosen label inverted at once (R22, R36) */
.an-page .an-seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--page); isolation: isolate; flex: 0 0 auto; }
.an-page .an-seg button { position: relative; z-index: 1; min-height: 34px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); font: 600 var(--t-sm)/1 var(--font); white-space: nowrap; cursor: pointer; }
.an-page .an-seg button[aria-pressed="true"] { color: var(--page); }
.an-page .an-seg-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); border-radius: var(--r-pill); background: var(--ink); transition: translate .25s var(--ease-out); }
.an-page .an-seg[data-v="oldest"] .an-seg-thumb { translate: 100% 0; }
/* the priority chips (real buttons with aria-pressed, counts live) and the result line */
.an-page .an-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.an-page .an-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; 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); white-space: nowrap; cursor: pointer; transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.an-page .an-chip:hover { border-color: var(--muted); }
.an-page .an-chip .n { font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.an-page .an-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--page); }
.an-page .an-chip[aria-pressed="true"] .n { color: var(--page); }
.an-page .an-result { margin: 0 0 0 auto; font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 760px) { /* search full width; Year and Month side by side; Sort full width; the chips centred; Clear and the result line under them */
  .an-page .an-find { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px; }
  .an-page .an-find-r1, .an-page .an-find-r2 { display: contents; }
  .an-page .an-search { grid-column: 1 / -1; order: 1; min-width: 0; }
  .an-page #anYear { order: 2; } .an-page #anMonth { order: 3; }
  .an-page .an-pick-btn { min-width: 0; }
  .an-page .an-seg { grid-column: 1 / -1; order: 4; }
  .an-page .an-chips { grid-column: 1 / -1; order: 5; justify-content: center; }
  .an-page .an-clear { grid-column: 1 / -1; order: 6; justify-self: center; }
  .an-page .an-result { grid-column: 1 / -1; order: 7; margin: 0; text-align: center; }
}

/* ---------- 04 the record: month groups, the sticky month label and its spine, the notice rows ---------- */
.an-page .an-groups { display: grid; gap: clamp(2.5rem, 4vw, 3rem); }
.an-page .an-groups:empty { display: none; }
.an-page .an-month { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.an-page .an-mcol { display: none; }
.an-page .an-mlabel { display: grid; gap: 2px; }
.an-page .an-mname { font-size: var(--t-h3); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin: 0; }
.an-page .an-myear { color: var(--ink-2); font-size: var(--t-base); }
.an-page .an-mdiv { display: flex; align-items: center; gap: var(--s-4); text-align: center; font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
.an-page .an-mdiv::before, .an-page .an-mdiv::after { content: ""; flex: 1 1 0; min-width: var(--s-5); height: 1px; background: var(--line-strong); }
.an-page .an-rows { display: grid; gap: var(--s-4); align-items: stretch; }
@media (min-width: 1024px) {
  .an-page .an-record:not(.is-board) .an-month { grid-template-columns: 220px minmax(0, 1fr); gap: 0; }
  .an-page .an-record:not(.is-board) .an-mcol { display: block; border-right: 1px solid var(--line-strong); padding-right: var(--s-5); }
  .an-page .an-record:not(.is-board) .an-mdiv { display: none; }
  .an-page .an-record:not(.is-board) .an-rows { padding-left: 32px; }
  .an-page .an-mlabel { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--an-hdr) + 12px + var(--an-find-h, 124px) + 16px); transition: opacity .2s ease; }
  .an-page .an-mlabel.is-leaving { opacity: 0; }
}
.an-page .an-note { padding: 20px 24px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "body"; gap: var(--s-4) var(--s-5); align-items: start; cursor: pointer; }
.an-page .an-note.has-media { grid-template-areas: "media" "body"; }
.an-page .an-date { grid-area: date; position: relative; display: none; justify-items: center; align-content: start; gap: 4px; padding-right: var(--s-4); border-right: 1px solid var(--line); text-align: center; }
.an-page .an-date .micro { line-height: 1.4; }
.an-page .an-day { display: inline-flex; font-size: var(--t-h2); font-weight: 400; line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.an-page .an-dot { display: none; position: absolute; top: calc(50% - 4px); left: -61.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); } /* on the spine: 32px of row gutter, the card's 1px edge and 24px padding, the dot's 4px and half the 1px spine */
.an-page .an-body { grid-area: body; display: grid; gap: var(--s-2); align-content: start; min-width: 0; }
.an-page .an-body .an-title { margin-top: var(--s-1); }
.an-page .an-media { grid-area: media; display: flex; justify-content: center; width: 100%; border-radius: var(--r-md); background: var(--well); overflow: hidden; }
.an-page .an-media img { display: block; max-width: 100%; max-height: 240px; width: auto; height: auto; object-fit: contain; }
@media (min-width: 640px) {
  .an-page .an-record:not(.is-board) .an-note { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "date body"; }
  .an-page .an-record:not(.is-board) .an-note.has-media { grid-template-areas: "date media" "date body"; }
  .an-page .an-record:not(.is-board) .an-date { display: grid; }
}
@media (min-width: 1024px) {
  .an-page .an-record:not(.is-board) .an-note { grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "date body"; gap: var(--s-5); }
  .an-page .an-record:not(.is-board) .an-note.has-media { grid-template-columns: 88px minmax(0, 1fr) auto; grid-template-areas: "date body media"; }
  .an-page .an-record:not(.is-board) .an-media { position: relative; width: 200px; height: 150px; align-self: center; }
  .an-page .an-record:not(.is-board) .an-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }
  .an-page .an-record:not(.is-board) .an-dot { display: block; }
}
@media (max-width: 639px) {
  .an-page .an-note { justify-items: center; text-align: center; }
  .an-page .an-note .an-body { justify-items: center; }
  .an-page .an-note .an-meta, .an-page .an-note .an-acts { justify-content: center; }
  .an-page .an-record .an-dpill { display: inline-flex; }
}
/* the Board option: the same cards in a grid of three (two at 1023, one at 639), bottoms level (R33), content centred (R25) */ /* stretched to a taller row, its content centred (R33; round 2, item 1) */

/* ---------- 04 the record: Show more, the pager, the two empty panels ---------- */
.an-page .an-more { display: grid; justify-items: center; gap: var(--s-3); margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }
.an-page .an-more-line { font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.an-page .an-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(2rem, 4vw, 3rem); }
.an-page .an-pager a, .an-page .an-pager span[aria-current], .an-page .an-pager button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; height: 32px; min-width: 32px; padding: 0 12px; 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); font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .25s var(--ease-out); }
.an-page .an-pager a:hover, .an-page .an-pager button:hover { border-color: var(--muted); }
.an-page .an-pager [aria-current="page"], .an-page .an-pager button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--page); cursor: default; }
.an-page .an-panel { max-width: 560px; margin-inline: auto; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--r-lg); background: var(--well); box-shadow: var(--well-shadow); display: grid; justify-items: center; gap: var(--s-3); text-align: center; }
.an-page .an-panel h3 { font-size: var(--t-h3); }
.an-page .an-panel p { color: var(--ink-2); max-width: 46ch; }
.an-page .an-panel .btn { margin-top: var(--s-2); }
.an-page .an-bell { width: 40px; height: 40px; color: var(--ink-2); }
.an-page .an-record.is-empty .an-sec-head { margin-bottom: var(--s-5); }

/* ---------- 05 the notice viewer: a centred dialog, a full-height sheet on phones ---------- */
.an-page .an-view { position: fixed; inset: 0; z-index: 1100; /* theme: above the fixed header (1000) and the quick links (990), under the toast (1150) and the lightbox (1250) */ display: grid; place-items: center; padding: var(--s-5); }
.an-page .an-view-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease; }
.an-page .an-view.open .an-view-back { opacity: 1; }
.an-page .an-view-dlg { position: relative; display: flex; flex-direction: column; width: min(920px, 100%); max-height: 88vh; max-height: 88dvh; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-xl); box-shadow: var(--shadow-card), 0 40px 80px -30px rgba(0, 0, 0, .45); outline: 0; --line: var(--line-strong); --well: var(--well-2); }
.an-page .an-view-x { position: absolute; z-index: 3; top: 12px; right: 12px; }
.an-page .an-view-body { overflow-y: auto; overscroll-behavior: contain; border-radius: inherit; }
.an-page .an-view-media { margin: 0; }
.an-page .an-view-well { display: flex; justify-content: center; background: var(--well); border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden; }
.an-page .an-view-well img { display: block; max-width: 100%; max-height: 56vh; max-height: 56dvh; width: auto; height: auto; object-fit: contain; }
.an-page .an-view-media figcaption { display: flex; justify-content: flex-end; padding: var(--s-3) var(--s-5) 0; }
.an-page .an-full .i { width: 16px; height: 16px; }
.an-page .an-full { background: none; border: 0; padding: 6px 0; cursor: pointer; font-family: var(--font); }
.an-page .an-view-col { display: grid; gap: var(--s-4); width: 100%; max-width: 680px; margin-inline: auto; padding: 32px; transition: opacity .45s ease, translate .45s var(--ease-out); }
.an-page .an-view-media + .an-view-col { padding-top: var(--s-5); }
.an-page .an-view:not(.open) .an-view-col { opacity: 0; translate: 0 12px; }
.an-page .an-view-t { font-size: var(--t-h2); }
.an-page .an-prose { font-size: var(--t-base); line-height: 1.7; color: var(--ink); }
.an-page .an-prose > * { margin: 0; }
.an-page .an-prose > * + * { margin-top: var(--s-4); }
.an-page .an-prose ul, .an-page .an-prose ol { padding-left: 1.3em; display: grid; gap: var(--s-2); }
.an-page .an-prose a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.an-page .an-prose .an-nodet { color: var(--ink-2); }
.an-page .an-video { margin: 0; }
.an-page .an-video-box { aspect-ratio: 16 / 9; display: grid; place-items: center; border-radius: var(--r-md); background: var(--well); box-shadow: var(--well-shadow); }
.an-page .an-play { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--card); border: 1px solid var(--line-strong); color: var(--ink); box-shadow: var(--shadow-card); }
.an-page .an-play .i { width: 26px; height: 26px; margin-left: 3px; }
.an-page .an-video figcaption { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--ink-2); }
.an-page .an-view-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-2); }
.an-page .an-share { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-left: auto; }
.an-page .an-share-b { display: grid; justify-items: center; gap: 4px; font-size: var(--t-xs); font-weight: 600; color: var(--ink); text-decoration: none; }
.an-page .an-share-b .round { transition: transform .3s var(--ease-out), border-color .3s ease; }
.an-page .an-share-b:hover .round { transform: translateY(-2px); border-color: var(--line-strong); }
.an-page .an-share-b:focus-visible { outline: 0; }
.an-page .an-share-b:focus-visible .round { outline: 2px solid var(--ink); outline-offset: 3px; }
.an-page .an-view-rail { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) 32px var(--s-5); border-top: 1px solid var(--line); }
.an-page .an-view-rail #anNext { margin-left: auto; } /* the unavailable direction is hidden (R20; round 2, item 2): a lone Next notice keeps its side; on phones each takes the row */
@media (max-width: 760px) { .an-page .an-share { margin-left: 0; } }
@media (max-width: 639px) {
  /* theme (R53, Dennis 2026-10-07 13:10: popups open centred at every width; one too big for a phone fills it): the window fills the
     screen and scales in, as the Events panel; the preview rose here as a bottom sheet (translate .6s) */
  .an-page .an-view { padding: 0; place-items: stretch; }
  .an-page .an-view-dlg { width: 100%; height: 100vh; height: 100dvh; max-height: none; border: 0; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); }
  .an-page .an-view-body { border-radius: 0; }
  .an-page .an-view-well { border-radius: 0; }
  .an-page .an-view-well img { max-height: 40vh; max-height: 40dvh; }
  .an-page .an-view-col { padding: var(--s-5) 20px; justify-items: center; text-align: center; }
  .an-page .an-view-col .an-meta { justify-content: center; }
  .an-page .an-prose { text-align: left; justify-self: stretch; }
  .an-page .an-view-acts { flex-direction: column; align-items: center; width: 100%; }
  .an-page .an-view-acts .btn { width: min(100%, 320px); }
  .an-page .an-share { justify-content: center; }
  .an-page .an-view-media figcaption { justify-content: center; padding-inline: 20px; }
  .an-page .an-view-rail { padding: var(--s-4) 20px calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); }
  .an-page .an-view-rail .btn { flex: 1 1 0; min-width: 0; padding-inline: var(--s-3); white-space: normal; text-align: center; line-height: 1.2; }
}
html.an-lock { overflow: hidden; overflow: clip; } /* the viewer's scroll lock goes on html (R40), never on body alone. clip on the root works as
   hidden for the viewport (no scrolling) and keeps html's overflow-x at clip, as the kit's width rule wants; hidden is the fallback */

/* ---------- reduced motion: instant changes or a plain fade (R17) ---------- */
@media (prefers-reduced-motion: reduce) {
  .an-page .an-seg-thumb, .an-page .an-chip, .an-page .an-pager button, .an-page .an-mlabel, .an-page .an-strip, .an-page .an-strip-ic, .an-page .an-pinpill .i, .an-page .an-pick-btn .chev, .an-page .an-view-dlg, .an-page .an-view-col, .an-page .an-share-b .round { transition: none !important; }
  .an-page .an-view-back { transition: opacity .2s ease; }
  .an-page .an-pick-list:not([hidden]) { animation: none; }
  .an-page .card:hover .an-pinpill .i, .an-page .an-strip:hover .an-pinpill .i, .an-page .an-strip:hover .an-strip-ic, .an-page .an-strip:hover { transform: none; }
  .an-page .an-view:not(.open) .an-view-col { translate: none; }
}

/* ---------- theme additions ---------- */
/* a WordPress embed (YouTube, Vimeo, a video file) in a notice's text fills the preview's 16:9 holder (inc/announcements: egw_announcements_wrap_embed) */
.an-page .an-video-box { overflow: hidden; }
.an-page .an-video-box > iframe, .an-page .an-video-box > video, .an-page .an-video-box .wp-block-embed__wrapper, .an-page .an-video-box .wp-block-embed__wrapper > iframe { display: block; width: 100%; height: 100%; border: 0; }
.an-page .an-prose .wp-block-embed.is-type-video .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.an-page .an-prose .wp-block-embed.is-type-video iframe { width: 100%; height: 100%; border: 0; border-radius: var(--r-md); }
.an-page .an-prose img { max-width: 100%; height: auto; }
/* the dark Customizer photo (egw_hero_announcements_dark), when set: shown in the dark theme in place of the light one, by the kit's theme state */
.an-page .an-mast-photo .an-ph-dark { display: none; }
:root[data-theme="dark"] .an-page .an-mast-photo.has-dark .an-ph-light { display: none; }
:root[data-theme="dark"] .an-page .an-mast-photo.has-dark .an-ph-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .an-page .an-mast-photo.has-dark .an-ph-light { display: none; }
  :root:not([data-theme="light"]) .an-page .an-mast-photo.has-dark .an-ph-dark { display: block; }
}
.an-page .an-share-b .an-ig-dot { fill: currentColor; stroke: none; } /* the Instagram glyph's dot (the preview's inline style, here a class: no inline styles, §H.27) */
.an-page .an-full { line-height: normal; } /* the preview's button keeps the browser's line height; global.css gives buttons the body's 1.6 (the caption would be 5.4px taller) */

/* ---------- image captions (3.35.0): a flyer with a saved caption; a flyer without one is drawn exactly as before ---------- */
.an-page .an-capmedia { position: relative; display: block; width: 100%; height: auto; background: none; border-radius: 0; overflow: visible; }
.an-page .an-capmedia .an-mi { display: flex; justify-content: center; border-radius: var(--r-md); background: var(--well); overflow: hidden; }
.an-page .an-capmedia .an-mi img { display: block; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.an-page .an-pin-media.an-capmedia .an-mi img { max-height: 300px; }
.an-page .an-media.an-capmedia .an-mi img { max-height: 240px; }
.an-page .an-capmedia .cap-btn, .an-page .an-capmedia .cap { pointer-events: auto; }
@media (min-width: 1024px) {
  .an-page .an-record:not(.is-board) .an-media.an-capmedia { width: 200px; height: auto; align-self: center; }
  .an-page .an-record:not(.is-board) .an-media.an-capmedia .an-mi { position: relative; width: 200px; height: 150px; }
  .an-page .an-record:not(.is-board) .an-media.an-capmedia .an-mi img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }
}
@media (max-width: 639px) { .an-page .an-pin-media.an-capmedia .an-mi img { max-height: 240px; } }
.an-page .an-view-media > .cap { padding-inline: var(--s-5); padding-bottom: var(--s-1); }
.an-page .an-view-media .cap-text.clamp { display: block; -webkit-line-clamp: unset; overflow: visible; }
