/* EGW site-wide chrome (theme 3.13.0): the header, mega menu, phone menu sheet, quick links drawer, search stage, back-to-top,
   skip link and footer of the design kit on every page, as in the Home preview Dennis approved on 2026-10-03 (20:28 UTC).
   3.41.0: the mega menu and the accordion phone menu are gone; the Focus menu (kit v1.23, Dennis 13:14 on 2026-10-15) draws the menu.
   Loads after egw-kit (the kit's scoped copy, every rule inside .egw-kit), which draws the chrome; this file adds what the
   theme needs around it: the fixed header and --nav-height for the pages built for the old 72px nav, the WordPress toolbar,
   the stacking order beside the old pages, the footer and the menu fitting from the preview, the kit rules the scoper leaves
   out (view transitions), and answers to the old global.css rules that reach the chrome. Colours come from the kit's tokens
   only, light and dark together. Markup: header.php, footer.php; behaviour: assets/js/egw-chrome.js. */

/* ---------- wrappers: the two .egw-kit.egw-chrome boxes add no box of their own ---------- */
.egw-chrome { display: contents; }

/* ---------- header: fixed at the top on every page (PLAN decision 1), under the WordPress toolbar when it shows ---------- */
.egw-kit.egw-chrome header.site { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; width: 100%; z-index: 1000; }
body.admin-bar .egw-kit.egw-chrome header.site { top: calc(env(safe-area-inset-top, 0px) + 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar .egw-kit.egw-chrome header.site { top: calc(env(safe-area-inset-top, 0px) + 46px); }
}

/* --nav-height: the header's real height (85px at rest with its hairline, 75px once compact), kept up to date by the chrome
   script; these are the values for the first paint and without JavaScript. Where the toolbar is fixed (above 600px) the header
   sits under it, so the toolbar's height is part of --nav-height and WordPress's html margin is dropped; at 600px and below the
   toolbar scrolls away with the page (position: absolute) and keeps its margin. */
:root { --nav-height: 85px; }
:root:has(> body.admin-bar) { --nav-height: 117px; }
@media screen and (max-width: 782px) { :root:has(> body.admin-bar) { --nav-height: 131px; } }
@media screen and (max-width: 600px) { :root:has(> body.admin-bar) { --nav-height: 85px; } }
@media screen and (min-width: 601px) { html:has(> body.admin-bar) { margin-top: 0 !important; } }
/* the parts that cover the screen start under the toolbar too: --egw-bar is the toolbar's bottom edge on screen (the chrome
   script keeps it up to date, 0 without the toolbar or once it has scrolled away); these are the values before the script runs */
:root:has(> body.admin-bar) { --egw-bar: 32px; }
@media screen and (max-width: 782px) { :root:has(> body.admin-bar) { --egw-bar: 46px; } }
.egw-kit.egw-chrome .sheet, .egw-kit.egw-chrome .srch { top: var(--egw-bar, 0px); }
.egw-kit.egw-chrome .skip { top: calc(var(--egw-bar, 0px) + env(safe-area-inset-top, 0px) + 12px); }

/* ---------- stacking beside the old pages: the header takes the old nav's place (z-index 1000), so the pages' sticky bars
   (z-index 50 to 100) and their menus stay under it and under its mega panel and popovers; the drawer and back-to-top sit just
   under it, the phone sheet, the status note, the search stage and the skip link above it (the kit's order, scaled up), and the
   kit's photo lightbox (Home) above them as in the kit. ---------- */
.egw-kit.egw-chrome .ql, .egw-kit.egw-chrome .btt { z-index: 990; }
.egw-kit.egw-chrome .sheet { z-index: 1100; }
/* 3.43.0 (R55): the status note is the site notice now; its own z-index (2900, above every window) is in egw-notice.css */
.egw-kit.egw-chrome .srch { z-index: 1200; }
.egw-kit .lb { z-index: 1250; }
.egw-kit.egw-chrome .skip { z-index: 1300; }

/* ---------- appearance control (3.27.0, Dennis approved the preview 2026-10-10 18:00): the button shows the MODE (Auto half-filled circle,
   Light sun, Dark moon, System monitor), keyed to html[data-theme-mode] that the head engine sets, so the right icon is there from the
   first paint. Auto and System add a dot: filled when dark is applied. The menu is a popover; at 640px and below a bottom sheet. ---------- */
html[data-theme-mode] .egw-kit #themeBtn svg { display: none; }
html[data-theme-mode="auto"] .egw-kit #themeBtn .m-auto, html[data-theme-mode="system"] .egw-kit #themeBtn .m-system,
html[data-theme-mode="light"] .egw-kit #themeBtn .m-light, html[data-theme-mode="dark"] .egw-kit #themeBtn .m-dark { display: block; }
.egw-kit #themeBtn { position: relative; }
.egw-kit .tdot { display: none; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; box-shadow: 0 0 0 2px var(--page); transition: background-color .3s ease; pointer-events: none; }
html[data-theme-mode="auto"] .egw-kit .tdot, html[data-theme-mode="system"] .egw-kit .tdot { display: block; }
html[data-theme="dark"] .egw-kit .tdot { background: var(--ink); }
.egw-kit #themeMenu { width: 316px; }
.egw-kit .pop-row.t-row { align-items: flex-start; min-height: 56px; padding: 10px 12px; }
.egw-kit .t-row > .i:first-child { margin-top: 2px; }
.egw-kit .t-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.egw-kit .t-txt b { font-weight: 600; font-size: var(--t-sm); }
.egw-kit .t-txt small { font-size: var(--t-xs); font-weight: 400; color: var(--ink-2); line-height: 1.4; }
.egw-kit .t-rec { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--ink); color: var(--page); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.egw-kit .t-row .tick { margin-top: 2px; }
.egw-kit .pop-row.t-row.is-on { background: var(--tint-1); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.egw-kit .pop-row.t-row.is-on b { font-weight: 700; }
.egw-kit #themeMenu .pop-link { width: 100%; min-height: 44px; border: 0; background: none; font-family: inherit; cursor: pointer; color: var(--ink); margin-top: 2px; }
.egw-kit #themeMenu .pop-foot { padding-top: 2px; }
.egw-kit .pop.t-open { opacity: 1; scale: 1; translate: 0 0; }
/* 3.28.0: the old rule put a 300ms transition on every element at once (about 1,100 animations: dropped frames, and it overrode the menu's own slide and the scrim fade). Now the colours swap in one style pass (theme-swap lives for a single tick): instant, no half-way colours. A View Transitions cross-fade was tried and dropped: it cost more dropped frames than it gave. */
html.theme-swap *, html.theme-swap *::before, html.theme-swap *::after { transition: none !important; }
.egw-kit .t-scrim { position: fixed; inset: 0; z-index: 1090; background: rgba(10,10,9,.5); opacity: 0; transition: opacity .25s ease; }
.egw-kit .t-scrim.on { opacity: 1; }
.egw-kit #themeMenu.sheet-mode { width: auto; }
.egw-kit .pop.sheet-mode { position: fixed; z-index: 1091; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 86vh; overflow-y: auto; padding: 6px 12px calc(12px + env(safe-area-inset-bottom, 0px)); border-radius: var(--r-lg) var(--r-lg) 0 0; transform-origin: bottom center; opacity: 1; scale: 1; translate: 0 100%; transition: translate .32s var(--ease-out); }
.egw-kit .pop.sheet-mode.t-open { translate: 0 0; }
.egw-kit .pop.sheet-mode::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 4px auto 6px; }
.egw-kit .pop.sheet-mode .micro, .egw-kit .pop.sheet-mode .pop-foot { text-align: center; }
.egw-kit .pop.sheet-mode .pop-row.t-row { min-height: 60px; }
@media (max-width: 640px) { .egw-kit .tools #themeWrap { display: block; } } /* the kit hides every .tool-pop on phones; this one stays (the other two live in the menu sheet) */
@media (prefers-reduced-motion: reduce) {
  .egw-kit .t-scrim, .egw-kit .pop.sheet-mode, .egw-kit .tdot { transition: none; }
  .egw-kit #themeBtn svg { animation: none; }
}

/* ---------- Page Chrome box (Edit Page > Page Chrome): the editor picks Show, Collapse or Hide for the site header and for the
   quick links of one page; inc/cms/class-egw-page-chrome.php adds the body class for the page's mode, these rules draw it.
   The collapsed bar and its buttons show only in that mode. ---------- */
.egw-kit.egw-chrome .hdr-peek, .egw-kit.egw-chrome .tools > .peek-close { display: none; }

/* Header, Hide: no header (the skip link stays, it still leads past the quick links); --nav-height is 0, or the toolbar alone
   where the toolbar is fixed. */
body.egw-hide-site-header .egw-kit.egw-chrome header.site { display: none !important; }
:root:has(> body.egw-hide-site-header) { --nav-height: 0px; }
:root:has(> body.egw-hide-site-header.admin-bar) { --nav-height: 32px; }
@media screen and (max-width: 782px) { :root:has(> body.egw-hide-site-header.admin-bar) { --nav-height: 46px; } }
@media screen and (max-width: 600px) { :root:has(> body.egw-hide-site-header.admin-bar) { --nav-height: 0px; } }

/* Header, Collapse: a 36px bar (35px row and the header's hairline) with the emblem, which leads Home, and a round button that
   opens the full header; the header's own fold button closes it again (egw-chrome.js). Only while JavaScript runs (html.egw-js,
   set by the head script): without it the button could not open anything, so the full header shows. */
.egw-kit.egw-chrome .hdr-peek { width: 100%; max-width: var(--max); height: 35px; margin-inline: auto; padding-inline: var(--gutter); align-items: center; justify-content: space-between; gap: var(--s-3); }
html.egw-js body.egw-collapse-site-header:not(.egw-collapse-site-header--open) .egw-kit.egw-chrome .hdr { display: none; }
html.egw-js body.egw-collapse-site-header:not(.egw-collapse-site-header--open) .egw-kit.egw-chrome .hdr-peek { display: flex; }
html.egw-js body.egw-collapse-site-header.egw-collapse-site-header--open .egw-kit.egw-chrome .tools > .peek-close { display: grid; }
html.egw-js body.egw-collapse-site-header.egw-collapse-site-header--open .egw-kit.egw-chrome .hdr { animation: egwc-peek-in .35s var(--ease-out); }
@keyframes egwc-peek-in { from { translate: 0 -8px; } } /* a slide only: the row is readable and clickable from the first frame */
.egw-kit .peek-brand { display: inline-flex; align-items: center; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; transition: opacity .12s ease; }
.egw-kit .peek-brand:hover { opacity: .7; }
/* the emblem: the same mask crop as the lockup's .mark (egw-kit-scoped.css), at 26px */
.egw-kit .peek-mark { --lk: calc(26px / .9922); display: block; width: 26px; height: 26px; flex: none; background: var(--ink); -webkit-mask: url(brand/egw-diaspora-logo-black.svg) no-repeat; mask: url(brand/egw-diaspora-logo-black.svg) no-repeat; -webkit-mask-size: calc(2.4303 * var(--lk)) var(--lk); mask-size: calc(2.4303 * var(--lk)) var(--lk); -webkit-mask-position: calc(-.00525 * 2.4303 * var(--lk)) calc(-.004 * var(--lk)); mask-position: calc(-.00525 * 2.4303 * var(--lk)) calc(-.004 * var(--lk)); }
.egw-kit .peek-btn { width: 28px; height: 28px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-2); cursor: pointer; transition: background-color .12s ease, border-color .12s ease, color .12s ease, transform .3s var(--ease-out); }
.egw-kit .peek-btn:hover, .egw-kit .peek-btn:focus-visible { background: var(--tint-1); border-color: var(--ink); color: var(--ink); }
.egw-kit .peek-btn:active { transform: scale(.94); }
.egw-kit .peek-btn .i { width: 14px; height: 14px; }
html.egw-js:has(> body.egw-collapse-site-header) { --nav-height: 36px; }
html.egw-js:has(> body.egw-collapse-site-header.admin-bar) { --nav-height: 68px; }
@media screen and (max-width: 782px) { html.egw-js:has(> body.egw-collapse-site-header.admin-bar) { --nav-height: 82px; } }
@media screen and (max-width: 600px) { html.egw-js:has(> body.egw-collapse-site-header.admin-bar) { --nav-height: 36px; } }

/* Quick links, Hide: no drawer. Collapse: a short tab with the link icon and the arrow only (the name stays for screen readers),
   without the light sweep; it opens the same drawer. */
body.egw-hide-quicklinks .egw-kit.egw-chrome .ql { display: none !important; }
body.egw-collapse-quicklinks .egw-kit.egw-chrome .ql-tab { min-height: 0; padding-block: 14px; gap: 12px; }
body.egw-collapse-quicklinks .egw-kit.egw-chrome .ql-tab span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
body.egw-collapse-quicklinks .egw-kit.egw-chrome .ql-tab::after { display: none; }

/* ---------- menu fitting (the preview's rule for long languages): the nav's spacing tightens (the kit's --fm-g, egw-kit-scoped.css), then the
   menu folds into the burger whenever it does not fit beside the tools (measured in the chrome script, nothing guessed per language).
   3.41.0: the Focus menu's own rules (kit v1.23) draw the tightened bar; the folded bar is drawn here as before. ---------- */
html.nav-fold .egw-kit .nav, html.nav-fold .egw-kit .tools .btn.give, html.nav-fold .egw-kit .fm { display: none; }
html.nav-fold .egw-kit .burger { display: grid; }
html.nav-fold .egw-kit .tools { margin-left: auto; }

/* ---------- Focus menu (3.41.0): the page veil sits over the page and under the header (the pages' sticky bars stay under it, z-index 50 to 100;
   the quick links drawer and back to top, 990, too); the panel hangs from the header ---------- */
html:root .egw-kit.egw-chrome .fm-veil { z-index: 995; }

/* ---------- Simplified Chinese (3.41.0, kit v1.24): the kit's rules for lang="zh-CN" that the scoper cannot place (":lang(zh) body" is the
   .egw-kit wrapper here), and the same system-font stack for the older pages' own font variables. No CJK web font. ---------- */
.egw-kit:lang(zh) { line-height: 1.75; line-break: strict; }
:root:lang(zh) { --font-body: "Figtree", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif; --font-heading: var(--font-body); }

/* ---------- appearance wipe (the kit's view-transition rules; the scoper keeps only rules inside .egw-kit) ---------- */
html.vt body, html.vt body * { transition: none !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* ---------- search stage: one column when the page has no On this page list ---------- */
.egw-kit .srch-cols.one { grid-template-columns: minmax(0, 1fr); }

/* ---------- footer (from the approved preview) ---------- */
.egw-kit footer.site { border-top: 1px solid var(--line); padding-block: var(--s-7) calc(var(--s-6) + 64px); }
/* Follow-us strip: monochrome at rest, each network's own colour on hover (--c set per link). */
.egw-kit .f-top { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--s-3) var(--s-4); padding-bottom: var(--s-6); margin-bottom: var(--s-7); border-bottom: 1px solid var(--line); }
.egw-kit .f-top .micro { margin: 0; }
.egw-kit .f-social { display: flex; gap: var(--s-2); }
.egw-kit .f-social .round { text-decoration: none; transition: transform .3s var(--ease-out), border-color .25s ease, background-color .3s ease, color .3s ease, opacity .7s var(--ease-out), translate .7s var(--ease-out); }
.egw-kit .f-social .round:hover, .egw-kit .f-social .round:focus-visible { background: var(--c); border-color: var(--c); color: #FFFFFF; }
/* four columns that hug their content with equal air between them, the brand column first; the three labels sit on the same
   line as the first line of the brand name (--f-lbl measured against the lockup), lists share one rhythm */
.egw-kit .f-grid { display: grid; grid-template-columns: auto auto auto auto; justify-content: space-between; align-items: start; column-gap: var(--s-7); row-gap: var(--s-6); --f-lbl: 10px; }
.egw-kit .f-grid > * { min-width: 0; }
.egw-kit .f-col > .micro { line-height: 1; padding-top: var(--f-lbl); }
.egw-kit .f-grid ul { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.egw-kit .f-grid a { text-decoration: none; font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); }
.egw-kit .f-grid a:hover { color: var(--ink); }
.egw-kit .f-brand { max-width: 34ch; }
.egw-kit .f-brand .brand { --mark: 80px; --txt: 60px; }
.egw-kit .f-brand p { color: var(--ink-2); font-size: var(--t-sm); margin: var(--s-4) 0 0; }
.egw-kit .f-contact ul { gap: var(--s-3); }
.egw-kit .f-contact li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.45; }
.egw-kit .f-contact li > .i { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--muted); }
.egw-kit .f-contact li a { overflow-wrap: anywhere; }
.egw-kit .f-contact address { font-style: normal; }
.egw-kit .f-contact .lbl { display: block; font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.egw-kit .f-base { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3) var(--s-5); flex-wrap: wrap; font-size: var(--t-xs); color: var(--muted); }
.egw-kit .f-legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.egw-kit .f-legal a { color: inherit; text-decoration: none; font-weight: 500; }
.egw-kit .f-legal a:hover { color: var(--ink); }
@media (max-width: 1000px) {
  .egw-kit .f-grid { grid-template-columns: auto auto auto; column-gap: var(--s-6); }
  .egw-kit .f-brand { grid-column: 1 / -1; max-width: none; display: flex; align-items: center; gap: var(--s-6); padding-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
  .egw-kit .f-brand p { margin: 0; max-width: 46ch; }
  .egw-kit .f-col > .micro { padding-top: 0; }
}
@media (max-width: 640px) {
  .egw-kit footer.site { text-align: center; }
  .egw-kit .f-grid { grid-template-columns: 1fr 1fr; justify-items: center; column-gap: var(--s-5); }
  .egw-kit .f-brand, .egw-kit .f-contact { grid-column: 1 / -1; }
  .egw-kit .f-brand { flex-direction: column; justify-self: stretch; }
  .egw-kit .f-brand p { margin-inline: auto; }
  .egw-kit .f-grid ul { justify-items: center; }
  .egw-kit .f-contact ul, .egw-kit .f-contact li, .egw-kit .f-base, .egw-kit .f-legal { justify-content: center; }
}

/* ---------- reduced motion: every chrome effect stops (the marquee, the tab's light sweep, the entrances, the glides) ---------- */
@media (prefers-reduced-motion: reduce) {
  .egw-chrome, .egw-chrome *, .egw-chrome *::before, .egw-chrome *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- answers to the old global.css (loaded on every page) where its rules reach the chrome; each line names the rule ---------- */
/* global: :where(a, button, input, select, textarea, [tabindex]):focus-visible { border-radius: var(--border-radius-sm) }; the
   kit's own radii (0,2,0) still win over this (0,1,0) answer */
:where(.egw-chrome) :where(a, button, input, select, textarea, [tabindex]):focus-visible { border-radius: 0; }
/* global: *, *::before, *::after { padding: 0 } and input, button, textarea, select { font: inherit }: in the preview the chrome's
   buttons keep the browser's own padding and font wherever the kit sets none (the language badge, the quick links tab's label, the
   boxes of the round buttons' icons); (0,0,1) after global.css, so every kit rule still wins */
:where(.egw-kit.egw-chrome) button { padding: revert; font: revert; }
/* global: input:focus-visible { box-shadow: 0 0 0 3px ... } and, on touch screens, input[type="search"] { min-height: 44px }: the
   search line's own ink rule is its focus mark, and the line keeps the preview's height on phones */
.egw-kit.egw-chrome .srch-line input { min-height: 0; }
.egw-kit.egw-chrome .srch-line input:focus-visible { box-shadow: none; }

/* ---------- outside sites on Coming soon (3.34.0, R54): no href, aria-disabled, the Extras page's Coming soon look ----------
   The switch is egw_site_soon() (inc/sites/sites.php); header.php, the Extras page and the Online Service page draw these. The tag is
   the kit's soft pill; a link that cannot open is drawn dashed and flat, never lifted, with a "not allowed" cursor. */
.egw-kit .egw-soon-tag { height: 22px; padding: 0 9px; border: 1px dashed var(--line-strong); font-size: var(--t-micro, .68rem); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; flex: none; }
.egw-kit .ql-panel a.is-soon, .egw-kit .sheet-ql a.is-soon { cursor: not-allowed; color: var(--ink-2); }
.egw-kit .ql-panel a.is-soon { background: transparent; }
.egw-kit .ql-panel a.is-soon .egw-soon-tag { margin-left: auto; }
.egw-kit .ql-panel a.is-soon:hover, .egw-kit .ql-panel a.is-soon:focus-visible { background: transparent; color: var(--ink-2); }
.egw-kit .ql-panel a.is-soon:hover .i, .egw-kit .ql-panel a.is-soon:focus-visible .i { color: var(--ink-2); transform: none; }
.egw-kit .sheet-ql a.is-soon { display: inline-flex; align-items: center; gap: 8px; border-style: dashed; background: var(--well); }
.egw-kit .btn.egw-soon { cursor: not-allowed; gap: 10px; }
.egw-kit .btn.egw-soon:hover, .egw-kit .btn.egw-soon:active { transform: none; box-shadow: none; }

/* ---------- Email updates (3.52.0, EU-4; RULINGS Q6): the footer sign-up band on every page, the page links on Events and
   Announcements, and the parts the band shares with /email-updates/ (the field, the topic chips, the reply). Markup:
   template-parts/email-updates/band.php; behaviour: assets/js/eu-band.js; the page's own rules: assets/css/email-updates.css.
   Kit tokens only, light and dark together. Selected = the inverse pair (--btn / --btn-fg, R36); nothing dims text (R20). ---------- */
.egw-kit .eu-band { margin-bottom: var(--s-7); text-align: left; }
.egw-kit .eu-band-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-5) clamp(32px, 4.5vw, 72px); align-items: start; padding: clamp(24px, 3vw, 40px); }
.egw-kit .eu-band-card:hover { transform: none; }
.egw-kit .eu-band-text { display: grid; gap: 12px; align-content: start; min-width: 0; padding-top: 2px; }
.egw-kit .eu-band-micro { margin: 0; }
.egw-kit .eu-band-h { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 400; line-height: 1.12; }
.egw-kit .eu-band-lead { margin: 0; max-width: 42ch; font-size: var(--t-base); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.egw-kit .eu-band-slot { min-width: 0; container-type: inline-size; }
.egw-kit .eu-band-form { display: grid; gap: 16px; margin: 0; }
/* R29: the field and Subscribe share one row; where the row is narrow Subscribe wraps under the field at full width, so neither
   shrinks and a long address shows whole */
.egw-kit .eu-band-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.egw-kit .eu-band-email, .egw-kit .eu-band-me { flex: 1 1 16rem; min-width: 0; }
.egw-kit .eu-band-me { display: grid; gap: 8px; }
.egw-kit .eu-band-go { flex: none; margin-top: 30px; } /* level with the field: its label is 22px and 8px above it */
.egw-kit .eu-band-go.is-busy .i { animation: eu-fly .9s var(--ease-out) infinite; }
@container (max-width: 440px) {
  .egw-kit .eu-band-row { flex-direction: column; align-items: stretch; }
  .egw-kit .eu-band-email, .egw-kit .eu-band-me { flex: none; }
  .egw-kit .eu-band-go { width: 100%; margin-top: 0; }
}
.egw-kit .eu-band-fine, .egw-kit .eu-band-dr { margin: 0; font-size: var(--t-xs); line-height: 1.55; color: var(--ink-2); }
.egw-kit .eu-band-dr { display: flex; align-items: flex-start; gap: 8px; }
.egw-kit .eu-band-dr .i { width: 16px; height: 16px; margin-top: 1px; color: var(--ink); }
.egw-kit :is(.eu-band-fine, .eu-band-dr) a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.egw-kit .eu-band-done:focus { outline: none; }

/* the field (the demo's form layer, 52px, 16px text; the fx-* rules are page-scoped in 3.51.0, so the band has its own) */
.egw-kit .eu-fx { --eu-fill: var(--well); }
.egw-kit .eu-group { display: grid; gap: 8px; min-width: 0; position: relative; align-content: start; margin: 0; padding: 0; border: 0; }
.egw-kit .eu-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; padding: 0; min-height: 22px; font-size: var(--t-sm); font-weight: 600; line-height: 22px; color: var(--ink); text-align: left; }
.egw-kit .eu-in { box-sizing: border-box; width: 100%; min-height: 52px; margin: 0; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid transparent; background: var(--eu-fill, var(--well)); box-shadow: var(--well-shadow); color: var(--ink); font: 500 var(--t-base)/1.3 var(--font); text-align: left; outline: none; -webkit-appearance: none; appearance: none; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.egw-kit .eu-in::placeholder { color: var(--muted); opacity: 1; font-weight: 400; }
.egw-kit .eu-in:hover { border-color: var(--line-strong); }
.egw-kit .eu-in:focus, .egw-kit .eu-in:focus-visible { border-color: var(--ink); background: var(--page); box-shadow: 0 0 0 4px var(--tint-2); outline: none; }
.egw-kit .eu-in:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: inset 0 0 0 1000px var(--eu-fill, var(--well)), var(--well-shadow); }
.egw-kit .eu-group.is-err .eu-in, .egw-kit .eu-group.is-err .eu-in:focus { border-color: var(--live); }
.egw-kit .eu-err { display: grid; grid-template-rows: 0fr; margin: 0; transition: grid-template-rows .3s var(--ease-out); }
.egw-kit .eu-err > span { display: flex; align-items: center; gap: 6px; min-height: 0; overflow: hidden; font-size: var(--t-xs); font-weight: 600; color: var(--live); text-align: left; }
.egw-kit .eu-err .i { width: 14px; height: 14px; flex: none; }
.egw-kit .is-err > .eu-err { grid-template-rows: 1fr; }
.egw-kit .is-err > .eu-err > span { padding-top: 2px; }

/* a text link drawn as a button or a link (the demo's su-textlink): 44px to tap, underlined */
.egw-kit .eu-tl { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font: 600 var(--t-sm)/1.3 var(--font); text-align: left; text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; transition: text-decoration-color .15s ease; }
.egw-kit .eu-tl:hover { text-decoration-color: var(--ink); }
.egw-kit .eu-tl:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.egw-kit .eu-tl:disabled, .egw-kit .eu-tl[aria-disabled="true"] { color: var(--muted); text-decoration: none; cursor: default; }
.egw-kit .eu-tl .i { width: 16px; height: 16px; }
.egw-kit .eu-btn-44 { min-height: 44px; padding-inline: 18px; }
.egw-kit .eu-btn-40 { min-height: 40px; padding-inline: 16px; }

/* signed in: who it will go to (proposal 4) */
.egw-kit .eu-me-line { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 4px 12px; min-height: 52px; margin: 0; padding: 8px 14px 8px 10px; border-radius: var(--r-sm); background: var(--well); box-shadow: var(--well-shadow); text-align: left; }
.egw-kit .eu-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--btn); color: var(--btn-fg); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.egw-kit .eu-me-t { display: grid; min-width: 0; line-height: 1.35; }
.egw-kit .eu-me-t b { font-size: var(--t-sm); font-weight: 600; overflow-wrap: anywhere; }
.egw-kit .eu-me-t span { font-size: var(--t-xs); color: var(--ink-2); overflow-wrap: anywhere; }
.egw-kit .eu-me-other { grid-column: 2; justify-self: start; min-height: 32px; font-size: var(--t-xs); }

/* the topic chips: toggle buttons, a drawn tick and the inverse pair when on (R36) */
.egw-kit .eu-topics { min-width: 0; margin: 0; padding: 0; border: 0; }
.egw-kit .eu-topics > legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; }
.egw-kit .eu-topics > legend + * { clear: both; }
.egw-kit .eu-topics.is-err > .eu-err { grid-template-rows: 1fr; }
.egw-kit .eu-topics.is-err > .eu-err > span { padding-top: 8px; }
.egw-kit .eu-topics.is-err .eu-chip[aria-pressed="false"] { border-color: var(--live); }
.egw-kit .eu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.egw-kit .eu-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 0 16px 0 7px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--page); color: var(--ink); font: 600 var(--t-sm)/1.2 var(--font); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.egw-kit .eu-chip:hover { border-color: var(--ink-2); }
.egw-kit .eu-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.egw-kit .eu-chip-b { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--well); color: var(--btn); transition: background-color .2s ease, border-color .2s ease; }
.egw-kit .eu-chip-b .i { width: 14px; height: 14px; stroke-width: 2.4; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s var(--ease-spring); }
.egw-kit .eu-chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-fg); }
.egw-kit .eu-chip[aria-pressed="true"] .eu-chip-b { background: var(--btn-fg); border-color: var(--btn-fg); }
.egw-kit .eu-chip[aria-pressed="true"] .eu-chip-b .i { stroke-dashoffset: 0; }
.egw-kit .eu-chips-site { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.egw-kit .eu-chips-sub { flex: 1 1 100%; margin: 0; font-size: var(--t-xs); font-weight: 600; line-height: 1.4; color: var(--ink-2); }
.egw-kit .eu-chip-soon { flex: none; margin-left: -2px; padding: 1px 7px; border: 1px solid currentColor; border-radius: var(--r-pill); font-size: var(--t-micro); font-weight: 700; letter-spacing: .06em; line-height: 1.45; text-transform: uppercase; }

/* the reply in the slot: check your inbox, you're subscribed (ok green), paused */
.egw-kit .eu-done { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; text-align: left; }
.egw-kit .eu-done .eu-done-ic { background: var(--page); }
.egw-kit .eu-done.is-on .eu-done-ic { background: var(--ok-bg); color: var(--ok); }
.egw-kit .eu-done-t { display: grid; gap: 4px; min-width: 0; }
.egw-kit .eu-done-h { margin: 0; font-size: var(--t-h3); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.egw-kit .eu-done-t > p { margin: 0; font-size: var(--t-sm); line-height: 1.55; color: var(--ink-2); }
.egw-kit .eu-done-t b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.egw-kit .eu-done-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 12px; }
.egw-kit .eu-done .eu-done-fine { margin-top: 10px; font-size: var(--t-xs); color: var(--muted); }

/* hidden for the eye only; the honeypot sits off screen (never display: none, which some robots skip) */
.egw-kit .eu-vh, .eu-plink .eu-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.egw-kit .eu-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* the page link on Events and Announcements (proposal 5): it opens the band with its topic ticked */
.eu-plink { margin: 14px 0 0; font-size: .875rem; line-height: 1.4; }
.eu-plink-a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.eu-plink-a svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.eu-plink-a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }

@keyframes eu-fly { 0% { transform: none; } 45% { transform: translate(6px, -6px); opacity: 0; } 46% { transform: translate(-6px, 6px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes eu-flash { 0% { box-shadow: var(--shadow-card), 0 0 0 0 transparent; } 30% { box-shadow: var(--shadow-card), 0 0 0 6px var(--tint-2); border-color: var(--ink); } 100% { box-shadow: var(--shadow-card), 0 0 0 0 transparent; } }
.egw-kit .eu-flash { animation: eu-flash 1.4s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .egw-kit .eu-flash, .egw-kit .eu-band-go.is-busy .i { animation: none !important; }
  .egw-kit :is(.eu-chip, .eu-chip-b, .eu-chip-b .i, .eu-err, .eu-in) { transition: none !important; }
}

/* small screens: 1000 (the band's two columns become one), 960 (stacked holders centre, R24), 400 and 384 (R29 at 360) */
@media (max-width: 1000px) {
  .egw-kit .eu-band-card { grid-template-columns: minmax(0, 1fr); }
  .egw-kit .eu-band-lead { max-width: 56ch; }
}
@media (max-width: 960px) {
  .egw-kit .eu-band-text { justify-items: center; text-align: center; }
  .egw-kit .eu-band-lead { margin-inline: auto; }
  .egw-kit .eu-topics > legend { justify-content: center; text-align: center; }
  .egw-kit .eu-topics .eu-chips, .egw-kit .eu-topics .eu-chips-site { justify-content: center; }
  .egw-kit .eu-chips-sub { text-align: center; }
  .egw-kit .eu-topics .eu-err > span { justify-content: center; }
  .egw-kit .eu-band-fine { text-align: center; }
  .egw-kit .eu-band-dr { justify-content: center; text-align: center; }
  .egw-kit .eu-done { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .egw-kit .eu-done .eu-done-t { justify-items: center; }
  .egw-kit .eu-done-acts { justify-content: center; }
}
@media (max-width: 400px) {
  .egw-kit .eu-band-card { padding: 20px 16px; }
}
@media (max-width: 384px) {
  .egw-kit .eu-band-card { padding-inline: 12px; }
  .egw-kit .eu-band .eu-in { padding-inline: 10px; } /* 3.60.0 (queue 47) */
}
.egw-kit .eu-band .eu-ns-note { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--well); font-size: var(--t-sm); line-height: 1.5; color: var(--ink); }
