/* ==========================================================================
   Star SACCO — design system v1.3
   Colours, radius, shadow and type scale come from the active theme (CSS custom properties injected in
   <style id="theme-vars">). Every other colour on this sheet is derived from those tokens with color-mix(), so all
   twelve themes — including High Contrast and Midnight — stay consistent. The :root fallbacks equal "heritage".
   v2.2.0: themes are generated from the Maleda logo colours (tools/maleda_palette.py); --shade-rgb is emitted per
   theme by Themes::css() from the theme's darkest token. No brand colour is written on this sheet.
   ========================================================================== */

@font-face { font-family: "Noto Sans"; src: url("../fonts/NotoSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/NotoSans-Bold.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans Ethiopic"; src: url("../fonts/NotoSansEthiopic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+1200-139F, U+2D80-2DDF, U+AB00-AB2F; }
@font-face { font-family: "Noto Sans Ethiopic"; src: url("../fonts/NotoSansEthiopic-Bold.woff2") format("woff2"); font-weight: 600 800; font-display: swap; unicode-range: U+1200-139F, U+2D80-2DDF, U+AB00-AB2F; }
/* v2.6.0 — display face for public headings: a sturdy condensed sans that echoes the MALEDA wordmark. Latin only (SIL OFL 1.1, assets/fonts/OFL-SofiaSansCondensed.txt); Amharic falls back to Noto Sans Ethiopic glyph by glyph. */
@font-face { font-family: "Sofia Sans Condensed"; src: url("../fonts/SofiaSansCondensed-Display.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Fallbacks = the "heritage" theme (Maleda Classic) in app/src/Services/ThemeDefaults.php; tests/themes.php checks they match. */
  --primary: #2e318e; --primary-contrast: #ffffff; --accent: #f39e28; --accent-contrast: #24245d;
  --bg: #f9f9fc; --surface: #ffffff; --surface-2: #f0f1f7; --text: #24245d; --muted: #2e318e; --border: #e0e0ee;
  --link: #2e318e; --header-bg: #ffffff; --header-text: #30317e; --footer-bg: #30317e; --footer-text: #f4cf99;
  --success: #2f7a3a; --warning: #8a5a00; --danger: #b42318; --radius: 12px; --shadow: 0 1px 2px rgba(36,36,93,.06), 0 1px 3px rgba(36,36,93,.08);
  --font-scale: 1; --heading-weight: 700;
  --shade-rgb: 36 36 93;

  --font: "Noto Sans", "Noto Sans Ethiopic", "Nyala", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Sofia Sans Condensed", "Noto Sans Ethiopic", "Noto Sans", "Nyala", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem; --space-9: 6rem;
  --container: 1220px;
  --radius-sm: calc(var(--radius) * .6); --radius-lg: calc(var(--radius) * 1.5); --radius-xl: calc(var(--radius) * 2.2); --pill: 999px;

  /* Derived palette */
  --primary-50: color-mix(in srgb, var(--primary) 5%, var(--surface));
  --primary-100: color-mix(in srgb, var(--primary) 10%, var(--surface));
  --primary-200: color-mix(in srgb, var(--primary) 20%, var(--surface));
  --primary-300: color-mix(in srgb, var(--primary) 40%, var(--surface));
  --primary-strong: color-mix(in srgb, var(--primary) 78%, #000);
  /* Text-safe primary: the link token is contrast-checked on surfaces, so light primaries (orange, sun gold) never become low-contrast text. */
  --primary-text: var(--link);
  /* v2.6.0 — text on the light primary tint (--primary-100): the link colour with 25% of the text colour, >= 5.5:1 in all twelve themes. */
  --primary-text-tint: color-mix(in srgb, var(--link) 75%, var(--text));
  --accent-100: color-mix(in srgb, var(--accent) 18%, var(--surface));
  --accent-200: color-mix(in srgb, var(--accent) 35%, var(--surface));
  --line: color-mix(in srgb, var(--border) 85%, transparent);
  --text-soft: color-mix(in srgb, var(--text) 82%, var(--muted));
  --hover: color-mix(in srgb, var(--primary) 6%, transparent);
  --elev-1: var(--shadow);
  --elev-2: 0 6px 16px -4px color-mix(in srgb, var(--text) 14%, transparent), 0 2px 6px -2px color-mix(in srgb, var(--text) 8%, transparent);
  --elev-3: 0 24px 48px -16px color-mix(in srgb, var(--text) 28%, transparent), 0 8px 18px -8px color-mix(in srgb, var(--text) 12%, transparent);
  --focus: 0 0 0 3px color-mix(in srgb, var(--primary) 32%, transparent);
  /* v2.2.0 — brand family, derived from the theme tokens (replaces the fixed v1.5 gold values). */
  --brand-1: color-mix(in srgb, var(--accent) 45%, #fff);
  --brand-2: var(--accent);
  --brand-3: var(--primary);
  --brand-sheen: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 48%, var(--brand-3) 100%);
  --brand-glow: color-mix(in srgb, var(--brand-1) 40%, #fff); /* warm highlight for glass and light effects */
  /* Chart series (assets/js/charts.js) — theme tokens only. */
  --chart-1: var(--primary); --chart-2: var(--accent); --chart-3: var(--success); --chart-4: var(--warning); --chart-5: var(--danger);
  --chart-6: color-mix(in srgb, var(--primary) 50%, var(--surface)); --chart-7: color-mix(in srgb, var(--accent) 55%, var(--text));
  --chart-8: var(--muted); --chart-9: color-mix(in srgb, var(--accent) 45%, var(--surface));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-size: calc(100% * var(--font-scale)); scroll-padding-top: calc(var(--header-h) + 1rem); scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.lang-am { line-height: 1.75; }
img, svg, video { max-width: 100%; height: auto; display: block; }
picture { display: block; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: var(--heading-weight); margin: 0 0 var(--space-3); text-wrap: balance; color: var(--text); letter-spacing: -.015em; }
.lang-am h1, .lang-am h2, .lang-am h3, .lang-am h4 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(1.85rem, 1.25rem + 2.4vw, 2.85rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.95rem); }
h3, .h3 { font-size: 1.16rem; }
h4, .h4 { font-size: 1rem; }
p { margin: 0 0 var(--space-4); }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: color .15s; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--link) 70%, transparent); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-5) 0; }
code, .secret { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .12em .4em; border-radius: 6px; border: 1px solid var(--line); }
address { font-style: normal; }
dl { margin: 0; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.break { overflow-wrap: anywhere; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
input.num { text-align: right; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 200; background: var(--surface); color: var(--text); padding: var(--space-2) var(--space-4); border-radius: var(--radius); box-shadow: var(--elev-2); }
.skip-link:focus { top: var(--space-2); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
::selection { background: var(--accent-200); color: var(--text); }

.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.6rem; height: 1.6rem; }
.icon-xl { width: 2.2rem; height: 2.2rem; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 768px) { .container { padding: 0 var(--space-6); } }
.narrow { max-width: 760px; }
.narrow-prose, .prose-wide { max-width: 860px; }
.section { padding-top: var(--space-8); padding-bottom: var(--space-8); }
@media (max-width: 700px) { .section { padding-top: var(--space-7); padding-bottom: var(--space-7); } }
.section-tight { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.section-alt { background: var(--surface-2); }
.section-tint { background: linear-gradient(180deg, var(--primary-50), var(--bg)); }
.section-head, .row-between { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3) var(--space-5); flex-wrap: wrap; margin-bottom: var(--space-6); }
.section-head h2 { margin: 0; }
.section-head p { margin: var(--space-2) 0 0; color: var(--muted); max-width: 60ch; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center p { margin-inline: auto; }
.row-between { align-items: center; margin-bottom: var(--space-3); }
.two-col { display: grid; gap: var(--space-6); }
.grid-2 { display: grid; gap: var(--space-5); }
.wide-left { display: grid; gap: var(--space-6); }
.two-col > *, .grid-2 > *, .wide-left > * { min-width: 0; }
@media (min-width: 900px) {
  .two-col, .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wide-left { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}
.stack > * + * { margin-top: var(--space-4); }
.list-plain, .link-list, .footer-links, .social, .doc-list, .notif-list, .event-list, .product-list, .check-list, .contact-list { list-style: none; margin: 0; padding: 0; }
.link-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--text); font-weight: 600; }
.link-list a:hover { color: var(--primary-text); }
.link-list .icon { color: var(--primary-text); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; font-weight: 700; color: var(--primary-text); margin-bottom: var(--space-3); }
.eyebrow::before { content: ""; width: 1.4rem; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow.plain::before { display: none; }
.lang-am .eyebrow { text-transform: none; letter-spacing: 0; font-size: .86rem; }
.lead { font-size: 1.14rem; color: var(--muted); line-height: 1.65; }
.kicker { font-size: .92rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn { --btn-bg: var(--primary); --btn-fg: var(--primary-contrast); --btn-bd: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .6rem 1.25rem; font: inherit; font-weight: 650; font-size: .97rem; line-height: 1.2;
  text-decoration: none; color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd); border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 10%, transparent); transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .15s, color .15s, filter .15s; }
.btn:hover { text-decoration: none; filter: brightness(1.06); box-shadow: var(--elev-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-small { min-height: 36px; padding: .35rem .85rem; font-size: .88rem; gap: .4rem; }
.btn-large { min-height: 54px; padding: .8rem 1.6rem; font-size: 1.05rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-accent { --btn-bg: var(--accent); --btn-fg: var(--accent-contrast); --btn-bd: var(--accent); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--primary-text); --btn-bd: color-mix(in srgb, var(--primary) 45%, transparent); box-shadow: none; }
.btn-ghost:hover { --btn-bg: var(--primary-100); filter: none; box-shadow: none; }
.btn-ghost-dark { --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border); }
.btn-ghost-dark:hover { --btn-bg: var(--surface-2); filter: none; }
.btn-light { --btn-bg: #fff; --btn-fg: rgb(var(--shade-rgb)); --btn-bd: #fff; }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); box-shadow: none; }
.btn-outline-light:hover { --btn-bg: rgba(255,255,255,.12); filter: none; }
.btn-danger { --btn-bg: var(--danger); --btn-bd: var(--danger); --btn-fg: #fff; }
.btn-ghost.btn-danger { --btn-bg: transparent; --btn-fg: var(--danger); --btn-bd: color-mix(in srgb, var(--danger) 50%, transparent); }
.btn-icon { width: 42px; min-height: 42px; padding: 0; border-radius: var(--radius-sm); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; text-decoration: none; color: var(--link); }
.link-arrow .icon { transition: transform .2s var(--ease); width: 1.05em; height: 1.05em; }
.link-arrow:hover .icon { transform: translateX(3px); }
.actions, .form-actions, .hero-actions, .row-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.row-actions { gap: var(--space-2); }
.form-actions { margin-top: var(--space-5); }
.inline-form, .action-form { display: inline-flex; gap: var(--space-2); align-items: center; margin: 0; flex-wrap: wrap; }
.card .action-form { display: flex; align-items: flex-end; margin-bottom: var(--space-3); }
.card .action-form .field { flex: 1 1 200px; margin: 0; }
.card form + h2, .card form + h3 { margin-top: var(--space-5); }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: var(--space-3) var(--space-5); margin: var(--space-5) calc(var(--space-5) * -1) calc(var(--space-5) * -1); display: flex; gap: var(--space-2); flex-wrap: wrap; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* --------------------------------------------------------------------------
   Public header
   -------------------------------------------------------------------------- */
.setup-notice { background: var(--accent-100); color: var(--text); font-size: .88rem; padding: .45rem 0; border-bottom: 1px solid var(--accent-200); }
.setup-notice .container { display: flex; align-items: center; gap: var(--space-2); }
.setup-notice .icon { color: color-mix(in srgb, var(--accent) 60%, var(--text)); }
.topbar { background: var(--footer-bg); color: var(--footer-text); font-size: .84rem; }
.topbar-inner { display: flex; align-items: center; gap: var(--space-5); min-height: 38px; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; opacity: .9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar-item { display: inline-flex; align-items: center; gap: .4rem; opacity: .92; }
.topbar-item .icon { width: .95rem; height: .95rem; color: var(--footer-text); opacity: .8; }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: var(--space-4); }
@media (max-width: 760px) { .topbar .hide-sm { display: none; } .topbar-inner { gap: var(--space-3); } }
/* v2.8.0: phone and e-mail stay in the top bar on phones: phone and language on the first line, e-mail below in full. */
.topbar-item .tb-text { white-space: nowrap; }
@media (max-width: 560px) {
  .topbar-inner { row-gap: 0; column-gap: var(--space-3); padding-block: .3rem; min-height: 0; }
  .topbar-item.tb-mail { order: 3; flex: 1 0 100%; padding-block: .1rem .15rem; }
  .topbar-item.tb-mail .tb-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
.site-header { background: color-mix(in srgb, var(--header-bg) 94%, transparent); color: var(--header-text); position: sticky; top: 0; z-index: 60; border-bottom: 1px solid color-mix(in srgb, var(--header-text) 12%, transparent); transition: box-shadow .2s; }
@media (max-width: 1099px) { .site-header { background: var(--header-bg); } }
@media (min-width: 1100px) { .site-header { backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); } }
.site-header.is-scrolled { box-shadow: 0 8px 24px -14px color-mix(in srgb, #000 35%, transparent); }
.header-inner { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: inherit; text-decoration: none; font-weight: 750; font-size: 1.06rem; line-height: 1.2; padding: var(--space-2) 0; min-width: 0; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand-name { overflow-wrap: anywhere; max-width: 22ch; }
.brand-name small { display: block; font-weight: 500; font-size: .76rem; opacity: .72; letter-spacing: .02em; }
.brand-mark { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(140deg, var(--primary), var(--primary-strong)); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 18%, transparent), var(--elev-1); }
.brand-mark svg { width: 26px; height: 26px; }
.brand-logo img, .brand img { height: 48px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; color: inherit; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: var(--radius-sm); cursor: pointer; flex: none; }
.nav-toggle:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.nav-toggle .icon { width: 22px; height: 22px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: .4rem; padding: .6rem .75rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; }
.site-nav a:hover { background: color-mix(in srgb, var(--header-text) 8%, transparent); }
.site-nav a[aria-current="page"] { color: var(--primary-text); background: var(--primary-100); }
.site-header .site-nav a[aria-current="page"] { color: inherit; background: color-mix(in srgb, var(--header-text) 10%, transparent); box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav .caret { width: .9rem; height: .9rem; opacity: .7; transition: transform .2s; }
.nav-actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.nav-actions .link-btn { color: inherit; }
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: var(--pill); }
.lang-switch a, .lang-switch button { padding: .22rem .7rem; font-size: .84rem; border-radius: var(--pill); color: inherit; text-decoration: none; background: none; border: 0; font: inherit; font-size: .84rem; cursor: pointer; line-height: 1.5; }
.lang-switch a:hover, .lang-switch button:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.lang-switch a.active, .lang-switch [aria-current] { background: color-mix(in srgb, currentColor 16%, transparent); font-weight: 700; }
.topbar .lang-switch { border-color: rgba(255,255,255,.22); padding: 2px; }
.topbar .lang-switch a { padding: .08rem .6rem; font-size: .8rem; }

/* Mobile drawer */
.site-nav { position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); background: var(--surface); color: var(--text); z-index: 90; padding: var(--space-5); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .28s var(--ease), visibility .28s; box-shadow: var(--elev-3); display: flex; flex-direction: column; gap: var(--space-4); }
.site-nav.open { transform: none; visibility: visible; }
.site-nav .drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.site-nav .drawer-head strong { font-size: 1.05rem; }
.site-nav > ul > li { border-bottom: 1px solid var(--line); }
.site-nav > ul > li > a { padding: .85rem .25rem; font-size: 1.02rem; }
.site-nav .sub { padding: 0 0 var(--space-3) var(--space-4); }
.site-nav .sub a { font-weight: 500; padding: .45rem .5rem; color: var(--muted); }
.site-nav .nav-actions { flex-direction: column; align-items: stretch; margin-top: auto; padding-top: var(--space-4); }
.site-nav .nav-actions .btn { width: 100%; }
.site-nav .lang-switch { align-self: flex-start; }
.nav-scrim { position: fixed; inset: 0; background: color-mix(in srgb, #000 45%, transparent); z-index: 80; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.nav-scrim.open { opacity: 1; visibility: visible; }
.drawer-close { display: inline-flex; }
@media (min-width: 1100px) {
  .site-header .nav-toggle:not(.admin-toggle) { display: none; }
  .site-header .site-nav { position: static; transform: none; visibility: visible; width: auto; padding: 0; background: none; color: inherit; box-shadow: none; flex-direction: row; align-items: center; gap: var(--space-4); overflow: visible; }
  .site-header .site-nav .drawer-head { display: none; }
  .site-header .site-nav > ul { display: flex; gap: 2px; align-items: center; }
  .site-header .site-nav > ul > li { position: relative; border: 0; }
  .site-header .site-nav > ul > li > a { padding: .55rem .75rem; font-size: .94rem; }
  .site-header .site-nav .sub { position: absolute; top: calc(100% + 10px); left: -8px; min-width: 250px; background: var(--surface); color: var(--text); box-shadow: var(--elev-3); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-2); z-index: 70; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
  .site-header .site-nav .sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
  .site-header .site-nav .has-sub:hover .sub, .site-header .site-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
  .site-header .site-nav .has-sub:hover .caret { transform: rotate(180deg); }
  .site-header .site-nav .sub a { color: var(--text); font-weight: 550; padding: .55rem .7rem; }
  .site-header .site-nav .sub a:hover { background: var(--primary-100); color: var(--primary-text); }
  .site-header .site-nav .nav-actions { flex-direction: row; margin: 0; padding: 0; }
  .site-header .site-nav .nav-actions .btn { width: auto; }
  .nav-scrim { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 60%),
    linear-gradient(180deg, var(--primary-50), var(--bg)); padding: var(--space-8) 0 var(--space-9); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--primary) 16%, transparent) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, #000 0%, transparent 45%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 45%); opacity: .6; pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.9rem); line-height: 1.06; letter-spacing: -.035em; margin-bottom: var(--space-4); max-width: 16ch; }
.lang-am .hero h1 { line-height: 1.25; letter-spacing: 0; font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); }
.hero h1 .hl { color: var(--primary-text); position: relative; white-space: nowrap; }
.hero .lead { font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem); max-width: 52ch; margin-bottom: var(--space-6); }
.hero .eyebrow { background: var(--surface); border: 1px solid var(--line); padding: .35rem .8rem .35rem .45rem; border-radius: var(--pill); box-shadow: var(--elev-1); color: var(--text); letter-spacing: .04em; font-size: .78rem; }
.hero .eyebrow::before { display: none; }
.hero .eyebrow .dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--primary); color: var(--primary-contrast); display: inline-flex; align-items: center; justify-content: center; }
.hero .eyebrow .dot .icon { width: .9rem; height: .9rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); margin: var(--space-6) 0 0; padding: 0; list-style: none; color: var(--text-soft); font-size: .94rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points .icon { color: var(--success); width: 1.1rem; height: 1.1rem; }
.hero-visual { position: relative; min-height: 340px; }
.hero-photo { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--elev-3); aspect-ratio: 4 / 3.4; background: var(--primary-200); transform: rotate(.6deg); }
.hero-photo img, .hero-photo picture { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 55%, color-mix(in srgb, #000 35%, transparent)); }
.hero-photo-sm { position: absolute; width: 38%; aspect-ratio: 1; left: -7%; bottom: -9%; border-radius: var(--radius-lg); overflow: hidden; border: 6px solid var(--surface); box-shadow: var(--elev-3); transform: rotate(-3deg); }
.hero-photo-sm img, .hero-photo-sm picture { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; display: flex; align-items: center; gap: var(--space-3); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem 1rem; box-shadow: var(--elev-3); font-size: .86rem; line-height: 1.3; color: var(--text); animation: floaty 6s ease-in-out infinite; }
.float-card strong { display: block; font-size: 1.05rem; }
.float-card .tile { width: 40px; height: 40px; }
.float-card.fc-1 { top: 8%; left: -6%; }
.float-card.fc-2 { right: -4%; bottom: 14%; animation-delay: -3s; }
@media (max-width: 979px) { .float-card.fc-1 { left: 4%; } .float-card.fc-2 { right: 4%; } .hero-photo-sm { left: 2%; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero.hero-media { color: #fff; background: rgb(var(--shade-rgb)); min-height: 560px; display: flex; align-items: center; }
.hero-media .hero-img { position: absolute; inset: 0; }
.hero-media .hero-img img, .hero-media .hero-img picture { width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; z-index: 1; }

/* Page head (inner pages) */
.page-head { position: relative; overflow: hidden; padding: var(--space-7) 0 var(--space-7); background:
    radial-gradient(700px 300px at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    linear-gradient(135deg, var(--primary-strong), var(--primary)); color: var(--primary-contrast); margin-bottom: 0; }
.page-head::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid color-mix(in srgb, var(--primary-contrast) 6%, transparent); pointer-events: none; }
.page-head h1 { color: inherit; margin-bottom: var(--space-2); max-width: 24ch; }
.page-head .lead { margin: 0; color: inherit; opacity: .88; max-width: 62ch; }
.page-head .eyebrow { color: inherit; opacity: .9; }
.page-head .eyebrow::before { background: var(--accent); }
.page-head .head-icon { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--primary-contrast) 12%, transparent); color: var(--accent); margin-bottom: var(--space-4); border: 1px solid color-mix(in srgb, var(--primary-contrast) 18%, transparent); }
.page-head .head-icon .icon { width: 28px; height: 28px; }
.page-head-inner { position: relative; z-index: 1; display: flex; gap: var(--space-6); align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .85rem; margin: 0 0 var(--space-4); padding: 0; list-style: none; opacity: .85; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }
.page-figure { margin: 0 0 var(--space-6); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--elev-2); }
.page-figure img { width: 100%; }
.page-body { padding-top: var(--space-7); padding-bottom: var(--space-7); }

/* --------------------------------------------------------------------------
   Public content blocks
   -------------------------------------------------------------------------- */
.tile { width: 48px; height: 48px; flex: none; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-100); color: var(--primary-text); }
.tile .icon { width: 24px; height: 24px; }
.tile-accent { background: var(--accent-100); color: color-mix(in srgb, var(--accent) 45%, var(--text)); }
.tile-solid { background: var(--primary); color: var(--primary-contrast); }
.tile-success { background: color-mix(in srgb, var(--success) 12%, var(--surface)); color: var(--success); }
.tile-warn { background: color-mix(in srgb, var(--warning) 12%, var(--surface)); color: var(--warning); }
.tile-danger { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); }
.tile-lg { width: 60px; height: 60px; border-radius: 18px; }
.tile-lg .icon { width: 28px; height: 28px; }
.tile-sm { width: 36px; height: 36px; border-radius: 10px; }
.tile-sm .icon { width: 18px; height: 18px; }

.quick-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.quick-wrap { position: relative; margin-top: calc(var(--space-8) * -1); z-index: 2; }
.quick { position: relative; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--elev-2); color: var(--text); text-decoration: none; transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .2s; overflow: hidden; }
.quick::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.quick:hover { transform: translateY(-4px); box-shadow: var(--elev-3); border-color: var(--primary-300); text-decoration: none; }
.quick:hover::after { transform: scaleX(1); }
.quick strong { font-size: 1.08rem; margin-top: var(--space-2); }
.quick span:not(.quick-icon):not(.tile) { color: var(--muted); font-size: .94rem; }
.quick .go { margin-top: auto; padding-top: var(--space-3); display: inline-flex; align-items: center; gap: .3rem; color: var(--primary-text); font-weight: 650; font-size: .9rem; }
.quick .go .icon { width: 1rem; height: 1rem; transition: transform .2s; }
.quick:hover .go .icon { transform: translateX(3px); }
.quick-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: var(--primary-100); color: var(--primary-text); }
.quick-icon svg { width: 24px; height: 24px; }
.figure { font-size: 2rem; font-weight: 800; color: var(--primary-text); margin: var(--space-2) 0; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.figure small { font-size: .88rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* Split feature (image + text) */
.split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.split-media { position: relative; }
.split-media .frame { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--elev-3); aspect-ratio: 5 / 4; }
.split-media .frame img, .split-media .frame picture { width: 100%; height: 100%; object-fit: cover; }
.split-media .badge-float { position: absolute; right: -12px; bottom: 24px; }
.split-media::before { content: ""; position: absolute; inset: 10% -14px -14px 14%; border-radius: var(--radius-xl); background: repeating-linear-gradient(45deg, var(--primary-100) 0 10px, transparent 10px 20px); z-index: -1; }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; padding: .45rem 0; }
.check-list .icon { color: var(--success); margin-top: .2rem; width: 1.15rem; height: 1.15rem; }
.feature-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: var(--space-5) 0; }
.feature { display: flex; gap: var(--space-3); align-items: flex-start; }
.feature strong { display: block; margin-bottom: .15rem; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Product cards */
.product-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.product-card { position: relative; display: flex; flex-direction: column; gap: var(--space-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--elev-1); transition: transform .22s var(--ease), box-shadow .22s, border-color .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--elev-3); border-color: var(--primary-300); }
.product-card .top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-2); }
.product-card h3 { margin: 0; font-size: 1.15rem; }
.product-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.product-card .rate { display: flex; align-items: baseline; gap: .4rem; margin: var(--space-3) 0 var(--space-2); }
.product-card .rate b { font-size: 2.2rem; line-height: 1; color: var(--primary-text); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.product-card .rate span { color: var(--muted); font-size: .88rem; }
.product-card .meta-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) 0 var(--space-3); }
.product-card .foot { margin-top: auto; padding-top: var(--space-4); border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: var(--pill); background: var(--surface-2); color: var(--text-soft); font-size: .8rem; font-weight: 600; border: 1px solid var(--line); }
.chip .icon { width: .9rem; height: .9rem; color: var(--primary-text); }
.product-detail { margin-bottom: var(--space-6); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.product-detail-head { display: flex; gap: var(--space-4); align-items: center; margin-bottom: var(--space-4); }
.product-detail-head h2 { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-3); margin: var(--space-4) 0; }
.facts > div { margin: 0; padding: var(--space-3) var(--space-4); background: var(--surface-2); border-radius: var(--radius); border: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; }
.facts dt { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2rem; }
.lang-am .facts dt { text-transform: none; letter-spacing: 0; font-size: .86rem; }
.facts dd { font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.card.facts, .facts.card { padding: var(--space-4); }
.product-hints { font-size: .9rem; color: var(--muted); padding-left: 1.2rem; }

/* Flow / steps */
.flow { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: flow; position: relative; list-style: none; padding: 0; margin: 0; }
.flow li { position: relative; counter-increment: flow; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--elev-1); }
.flow li::before { content: counter(flow, decimal-leading-zero); position: absolute; top: var(--space-4); right: var(--space-5); font-size: 2.4rem; font-weight: 800; color: var(--primary-100); line-height: 1; letter-spacing: -.04em; }
.flow li .tile { margin-bottom: var(--space-4); }
.flow li strong { display: block; font-size: 1.05rem; margin-bottom: .3rem; }
.flow li p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (min-width: 980px) {
  .flow::before { content: ""; position: absolute; top: calc(var(--space-5) + 24px); left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--primary-300) 0 8px, transparent 8px 16px); z-index: 0; }
  .flow li { z-index: 1; }
}
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.steps li { counter-increment: step; position: relative; padding: 0 0 var(--space-5) 3.4rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.15rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--primary); color: var(--primary-contrast); display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 0 0 5px var(--primary-100); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(1.15rem - 1px); top: 2.5rem; bottom: .3rem; width: 2px; background: var(--primary-200); }

/* Calculator widget */
.calc { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--elev-3); overflow: hidden; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.1fr .9fr; } }
.calc-form { padding: var(--space-6); }
.calc-out { padding: var(--space-6); background: linear-gradient(150deg, var(--primary-strong), var(--primary)); color: var(--primary-contrast); display: flex; flex-direction: column; gap: var(--space-4); position: relative; overflow: hidden; }
.calc-out::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; bottom: -110px; background: color-mix(in srgb, var(--accent) 30%, transparent); filter: blur(10px); }
.calc-out > * { position: relative; z-index: 1; }
.calc-out .big { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc-out .lbl { font-size: .85rem; opacity: .82; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.lang-am .calc-out .lbl { text-transform: none; letter-spacing: 0; }
.calc-out dl { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-2); }
.calc-out dl div { background: color-mix(in srgb, var(--primary-contrast) 10%, transparent); border-radius: var(--radius); padding: var(--space-3); }
.calc-out dt { font-size: .8rem; opacity: .85; }
.calc-out dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-out .note { font-size: .8rem; opacity: .8; margin: 0; }
.calc-out .btn { align-self: flex-start; }
.range-row { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.range-row .range-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.range-row label { margin: 0; }
.range-row output { font-weight: 800; color: var(--primary-text); font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.range-row .range-ends { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; min-height: 0; padding: 0; border: 0; border-radius: var(--pill); background: linear-gradient(90deg, var(--primary) var(--fill, 50%), var(--primary-200) var(--fill, 50%)); box-shadow: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); box-shadow: var(--elev-2); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); cursor: grab; }
input[type="range"]:focus { box-shadow: var(--focus); }

/* News & events */
.post-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--elev-1); transition: transform .22s var(--ease), box-shadow .22s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--elev-3); }
.post-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--primary-200), var(--accent-100)); display: flex; align-items: center; justify-content: center; color: var(--primary-text); }
.post-card .thumb .icon { width: 42px; height: 42px; opacity: .55; }
.post-card .thumb img, .post-card .thumb picture { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); margin: 0; border-radius: 0; aspect-ratio: auto; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .thumb .chip { position: absolute; left: var(--space-3); top: var(--space-3); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); }
.post-card .body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.post-card .body .meta-line { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.post-card .body .meta-line .icon { width: .9rem; height: .9rem; }
.post-card h2, .post-card h3 { font-size: 1.12rem; margin: 0; line-height: 1.35; }
.post-card h2 a, .post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--primary-text); }
.post-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.post-card picture, .post-card img { margin: 0; }
.post-item, .event-item { display: flex; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.post-item:last-child, .event-item:last-child { border-bottom: 0; }
.post-item time { flex: none; font-size: .84rem; color: var(--muted); min-width: 6.5rem; }
.post-item a { font-weight: 650; }
.post-item p { margin: .25rem 0 0; color: var(--muted); font-size: .92rem; }
.date-chip { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 68px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .72rem; line-height: 1.1; text-align: center; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); box-shadow: var(--elev-1); overflow: hidden; }
.date-chip span { font-size: 1.55rem; color: var(--primary-text); letter-spacing: -.02em; font-weight: 800; }
.date-chip .m { display: block; width: 100%; background: var(--primary); color: var(--primary-contrast); font-size: .68rem; padding: .18rem 0; margin-bottom: .2rem; }
.event-card { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--elev-1); transition: transform .2s var(--ease), box-shadow .2s; position: relative; }
.event-card:hover { transform: translateY(-2px); box-shadow: var(--elev-2); }
.event-card h3 { margin: 0 0 .25rem; font-size: 1.04rem; }
.event-card h3 a { color: var(--text); text-decoration: none; }
.event-card h3 a::after { content: ""; position: absolute; inset: 0; }
.event-card p { margin: 0; color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.event-card .icon { width: .95rem; height: .95rem; }
.event-stack { display: grid; gap: var(--space-3); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--primary-strong), var(--primary)); color: var(--primary-contrast); padding: var(--space-8) 0; }
.cta-band .scene, .cta-band .cta-bg { position: absolute; inset: 0; opacity: .22; mix-blend-mode: luminosity; }
.cta-band .scene img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 50%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%); }
.cta-band h2 { color: inherit; margin-bottom: var(--space-2); }
.cta-band p { opacity: .9; margin: 0; max-width: 56ch; }
.cta-band a:not(.btn) { color: inherit; }
.cta-inner { position: relative; z-index: 1; display: flex; gap: var(--space-5); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-inline { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6); background: linear-gradient(120deg, var(--primary-100), var(--accent-100)); border-radius: var(--radius-lg); margin: var(--space-6) 0; border: 1px solid var(--line); }
.cta-inline strong { font-size: 1.1rem; }

/* People, FAQ, gallery, docs, branches */
.person { text-align: center; }
.person img, .person picture img, .avatar-ph { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; margin: 0 auto var(--space-4); box-shadow: 0 0 0 5px var(--primary-100); }
.avatar-ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-200), var(--accent-100)); color: var(--primary-text); font-weight: 800; font-size: 2rem; letter-spacing: .02em; }
.person h2, .person h3 { margin-bottom: .2rem; }
.faq { display: grid; gap: var(--space-3); }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--elev-1); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--primary-300); box-shadow: var(--elev-2); }
.faq-item summary { cursor: pointer; padding: var(--space-4) var(--space-5); font-weight: 650; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-100) center / 14px no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > div { padding: 0 var(--space-5) var(--space-5); color: var(--text-soft); }
.gallery { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-flow: dense; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--elev-1); }
.gallery figure:nth-child(5n + 1) { grid-row: span 2; }
.gallery img, .gallery picture { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .5s var(--ease); }
.gallery figure:nth-child(5n + 1) img { aspect-ratio: auto; min-height: 100%; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: var(--space-5) var(--space-3) var(--space-3); color: #fff; font-size: .88rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.doc-list { display: grid; gap: var(--space-3); }
.doc-list li, .doc { display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; padding: var(--space-4); flex-wrap: wrap; }
.card.doc { padding: var(--space-4) var(--space-5); margin: 0; }
.doc .doc-main { display: flex; gap: var(--space-4); align-items: flex-start; min-width: 0; flex: 1 1 320px; }
.doc h2, .doc h3 { margin: 0 0 .2rem; font-size: 1.04rem; }
.doc p { margin: 0; }
.branch { margin-bottom: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.branch .map, .map iframe, iframe.map { width: 100%; min-height: 240px; border: 0; border-radius: var(--radius); margin-top: var(--space-2); }
.contact-list li { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .tile { width: 40px; height: 40px; border-radius: 12px; }
.contact-list .tile .icon { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.lang-am .contact-list small { text-transform: none; letter-spacing: 0; }
.contact-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--primary-text); text-decoration: underline; }
.disclaimer { display: flex; gap: var(--space-3); align-items: flex-start; font-size: .9rem; color: var(--muted); border: 1px solid var(--accent-200); padding: var(--space-3) var(--space-4); background: var(--accent-100); border-radius: var(--radius); }
.disclaimer .icon { color: color-mix(in srgb, var(--accent) 50%, var(--text)); margin-top: .1rem; }
.search-form { display: flex; gap: var(--space-2); margin-bottom: var(--space-5); flex-wrap: wrap; align-items: flex-end; }
.search-form .field { flex: 1 1 260px; margin: 0; }
.search-form input { flex: 1 1 240px; }
.prose { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: var(--space-6); }
.prose h3 { margin-top: var(--space-5); }
.prose img { border-radius: var(--radius); margin: var(--space-4) 0; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote { margin: var(--space-5) 0; padding: var(--space-3) var(--space-5); border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: var(--space-2); }
.empty, .empty-state { color: var(--muted); padding: var(--space-6) var(--space-5); text-align: center; background: var(--surface); border-radius: var(--radius-lg); border: 1.5px dashed var(--border); }
.empty::before { content: ""; display: block; width: 52px; height: 52px; margin: 0 auto var(--space-3); border-radius: 16px; background: var(--primary-100) center / 24px no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E"); }
.empty-state .tile { margin: 0 auto var(--space-4); }
.empty-state h2 { color: var(--text); font-size: 1.25rem; }
.verify-box { border: 1px dashed var(--warning); border-radius: var(--radius); padding: var(--space-3) var(--space-4); font-size: .92rem; background: color-mix(in srgb, var(--warning) 6%, var(--surface)); }
.attention { border-left: 4px solid var(--warning) !important; }

/* Stats strip (public) */
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); }
.stats-strip .s { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--elev-1); }
.stats-strip b { display: block; font-size: 1.5rem; line-height: 1.1; letter-spacing: -.02em; }
.stats-strip span { color: var(--muted); font-size: .88rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { position: relative; background: var(--footer-bg); color: var(--footer-text); padding: var(--space-8) 0 var(--space-5); margin-top: 0; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary)); }
.site-footer a { color: inherit; text-decoration: none; opacity: .86; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-grid { display: grid; gap: var(--space-7); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.footer-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.footer-brand .brand-mark { width: 46px; height: 46px; }
.footer-name, .footer-head { font-weight: 750; font-size: 1.04rem; margin-bottom: var(--space-3); }
.footer-head { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.lang-am .footer-head { text-transform: none; letter-spacing: 0; font-size: .92rem; }
.footer-links { columns: 2; column-gap: var(--space-5); }
.footer-links li, .social li { padding: .3rem 0; break-inside: avoid; }
.footer-contact { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.footer-contact > * { display: flex; gap: var(--space-3); align-items: flex-start; }
.footer-contact .icon { color: var(--footer-text); opacity: .8; margin-top: .2rem; }
.social { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-4); }
.social a { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .45rem .8rem; border-radius: var(--pill); border: 1px solid color-mix(in srgb, var(--footer-text) 22%, transparent); opacity: 1; font-size: .88rem; }
.social a:hover { background: color-mix(in srgb, var(--footer-text) 10%, transparent); text-decoration: none; }
.footer-search { display: flex; gap: 0; margin-top: var(--space-4); background: color-mix(in srgb, var(--footer-text) 8%, transparent); border: 1px solid color-mix(in srgb, var(--footer-text) 20%, transparent); border-radius: var(--radius-sm); padding: 4px; }
.footer-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--footer-text); min-height: 40px; box-shadow: none; }
.footer-search input::placeholder { color: color-mix(in srgb, var(--footer-text) 65%, transparent); }
.footer-search input:focus { box-shadow: none; }
.footer-search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; border-top: 1px solid color-mix(in srgb, var(--footer-text) 16%, transparent); margin-top: var(--space-7); padding-top: var(--space-4); font-size: .86rem; opacity: .85; }
.footer-bottom p { margin: 0; }
.muted-on-dark { opacity: .78; }
.site-footer .btn { --btn-bg: var(--accent); --btn-fg: var(--accent-contrast); --btn-bd: var(--accent); }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: var(--primary-contrast); box-shadow: var(--elev-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--elev-1); padding: var(--space-5); margin-bottom: var(--space-5); }
@media (min-width: 768px) { .card { padding: var(--space-6); } }
.card > :last-child { margin-bottom: 0; }
.card h2 { font-size: 1.18rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; display: flex; align-items: center; gap: var(--space-3); }
.card-head .tile { width: 38px; height: 38px; border-radius: 11px; }
.card-head .tile .icon { width: 19px; height: 19px; }
.card-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid .card { margin: 0; }
.card-hover { transition: transform .2s var(--ease), box-shadow .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--elev-2); }
.product h3 { margin-bottom: var(--space-2); }

/* --------------------------------------------------------------------------
   Alerts, badges, counts
   -------------------------------------------------------------------------- */
.flash-wrap { padding-top: var(--space-4); }
.admin .flash-wrap, .portal .flash-wrap { padding: 0; }
.alert { --al: var(--link); position: relative; display: block; padding: var(--space-3) var(--space-4) var(--space-3) 3rem; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--al) 32%, transparent); margin-bottom: var(--space-4); background: color-mix(in srgb, var(--al) 7%, var(--surface)); color: var(--text); }
.alert::before { content: ""; position: absolute; left: var(--space-4); top: calc(var(--space-3) + .15rem); width: 1.2rem; height: 1.2rem; background: var(--al); -webkit-mask: var(--al-icon) center / contain no-repeat; mask: var(--al-icon) center / contain no-repeat;
  --al-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E"); }
.alert-success { --al: var(--success); }
.alert-success::before { --al-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.alert-warn, .alert-warning { --al: var(--warning); }
.alert-warn::before, .alert-warning::before { --al-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.alert-error { --al: var(--danger); }
.alert-error::before { --al-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m15 9-6 6M9 9l6 6'/%3E%3C/svg%3E"); }
.alert > :last-child { margin-bottom: 0; }
.alert.is-leaving { opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .14rem .6rem; border-radius: var(--pill); font-size: .78rem; font-weight: 650; line-height: 1.5; white-space: nowrap; border: 1px solid transparent; background: var(--surface-2); color: var(--text-soft); }
.badge::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; opacity: .85; }
.badge-ok { color: var(--success); background: color-mix(in srgb, var(--success) 11%, var(--surface)); border-color: color-mix(in srgb, var(--success) 28%, transparent); }
.badge-warn { color: var(--warning); background: color-mix(in srgb, var(--warning) 11%, var(--surface)); border-color: color-mix(in srgb, var(--warning) 28%, transparent); }
.badge-bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 28%, transparent); }
.badge-neutral { color: var(--muted); border-color: var(--line); }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .38rem; border-radius: var(--pill); background: var(--accent); color: var(--accent-contrast); font-size: .72rem; font-weight: 800; line-height: 1; }
.count-bad { background: var(--danger); color: #fff; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
label { font-weight: 600; display: block; margin-bottom: .35rem; font-size: .93rem; color: var(--text); }
input, select, textarea { font: inherit; font-size: .97rem; color: var(--text); background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--text) 16%, var(--border)); border-radius: var(--radius-sm); padding: .62rem .8rem; min-height: 46px; width: 100%; max-width: 100%; transition: border-color .15s, box-shadow .15s, background .15s; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--text) 28%, var(--border)); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 1.05rem; }
select[multiple] { background-image: none; padding-right: .8rem; min-height: 8rem; }
input[type="checkbox"], input[type="radio"] { width: 1.2rem; height: 1.2rem; min-height: 0; padding: 0; accent-color: var(--primary); cursor: pointer; flex: none; }
input[type="color"] { width: 3rem; padding: .15rem; flex: none; cursor: pointer; }
input[type="file"] { padding: .5rem; background: var(--surface-2); border-style: dashed; cursor: pointer; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; font-size: .88rem; margin-right: .8rem; padding: .4rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
textarea { min-height: 7rem; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
input:disabled, select:disabled, textarea:disabled, input[readonly] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); margin: 0 0 var(--space-5); background: var(--surface); }
legend { font-weight: 750; padding: 0 var(--space-2); font-size: 1rem; display: inline-flex; align-items: center; gap: var(--space-2); }
legend .tile { width: 32px; height: 32px; border-radius: 10px; }
legend .tile .icon { width: 17px; height: 17px; }
.field { margin-bottom: var(--space-4); min-width: 0; }
.field .help { font-size: .84rem; color: var(--muted); margin: .35rem 0 0; }
.field-check { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.field-check label { margin: 0; font-weight: 500; order: 2; flex: 1 1 0; cursor: pointer; }
.field-check input { order: 1; margin-top: .2rem; }
.field-check .help, .field-check .field-error { order: 3; width: 100%; margin-left: calc(1.2rem + var(--space-3)); }
.req { color: var(--danger); }
.field-error { color: var(--danger); font-size: .86rem; margin: .35rem 0 0; font-weight: 600; display: flex; gap: .3rem; align-items: center; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 4%, var(--surface)); }
.form-grid { display: grid; gap: 0 var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid.one { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.form-grid .full, .form-grid fieldset, .form-grid .form-actions { grid-column: 1 / -1; }
.form-grid.compact .field { margin-bottom: var(--space-2); }
.narrow-form { max-width: 640px; }
.narrow-form.wide { max-width: 860px; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; width: 1.1rem; height: 1.1rem; }
.input-icon input { padding-left: 2.6rem; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3rem; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--muted); border-radius: var(--radius-sm); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pw-toggle:hover { background: var(--surface-2); color: var(--text); }
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; margin-bottom: var(--space-5); padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--elev-1); }
.filter-bar .field { margin: 0; flex: 1 1 170px; }
.filter-bar label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.lang-am .filter-bar label { text-transform: none; letter-spacing: 0; }
.filter-bar input, .filter-bar select { min-height: 40px; padding-top: .45rem; padding-bottom: .45rem; }
.filter-bar .btn { min-height: 40px; }
.filter-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--space-5); padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--pill); }
.filter-tabs a { padding: .4rem 1rem; border-radius: var(--pill); text-decoration: none; color: var(--text-soft); font-size: .9rem; font-weight: 600; transition: background .15s, color .15s; }
.filter-tabs a:hover { background: var(--surface); color: var(--text); }
.filter-tabs a[aria-current], .filter-tabs a.active { background: var(--surface); color: var(--primary-text); box-shadow: var(--elev-1); }
.org-form .org-field { border-bottom: 1px solid var(--line); padding: var(--space-4) 0; }
.lang-block { border-left: 3px solid var(--primary-200); padding-left: var(--space-4); margin-bottom: var(--space-3); }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); background: color-mix(in srgb, var(--danger) 3%, var(--surface)); }
.form-section-title { display: flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-4); font-size: 1.05rem; }
.progress { height: 8px; border-radius: var(--pill); background: var(--primary-100); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: inherit; transition: width .6s var(--ease); }

/* Tabs */
.tabs { margin-bottom: var(--space-5); }
nav.tabs, .tabs [role="tablist"] { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
nav.tabs a, .tabs [role="tab"] { padding: .7rem 1rem; white-space: nowrap; text-decoration: none; color: var(--muted); border: 0; background: none; font: inherit; font-weight: 650; font-size: .94rem; cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
nav.tabs a:hover, .tabs [role="tab"]:hover { color: var(--text); }
nav.tabs a[aria-current="page"], .tabs [role="tab"][aria-selected="true"] { color: var(--primary-text); border-bottom-color: var(--primary); }
.tabs [role="tabpanel"] { padding-top: var(--space-4); }

/* Tables */
.table-wrap { position: relative; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); margin-bottom: var(--space-5); box-shadow: var(--elev-1); }
.card .table-wrap { border-radius: var(--radius); box-shadow: none; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .93rem; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; font-weight: 700; position: sticky; top: 0; z-index: 1; }
.lang-am thead th { text-transform: none; letter-spacing: 0; font-size: .84rem; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--primary-50); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td a { font-weight: 600; }
tfoot th, tfoot td { border-top: 2px solid var(--line); font-weight: 750; background: var(--surface-2); }
th.num, td.num { text-align: right; }
.row-header th { background: var(--surface-2); }
.row-muted { color: var(--muted); }
.row-muted td { text-decoration-color: var(--muted); }
.unread { font-weight: 600; background: color-mix(in srgb, var(--accent) 9%, var(--surface)) !important; border-left: 3px solid var(--accent) !important; }
.journal-lines td { padding: .4rem; }
.journal-lines select, .journal-lines input { min-width: 120px; }
.tr-table td { min-width: 200px; }
.tr-table textarea { min-height: 3rem; }
.pager { display: flex; gap: var(--space-2); align-items: center; justify-content: space-between; flex-wrap: wrap; margin: var(--space-5) 0; }
.pager a, .pager span { display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; background: var(--surface); font-size: .9rem; font-weight: 600; color: var(--text); }
.pager a:hover { border-color: var(--primary-300); color: var(--primary-text); }
.table-tools { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: var(--space-3); }
.table-filter { max-width: 320px; }
.table-filter input { min-height: 40px; }
.cell-user { display: flex; align-items: center; gap: var(--space-3); }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-200), var(--accent-100)); color: var(--primary-text); font-weight: 800; font-size: .82rem; letter-spacing: .02em; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; }

/* Meta lists */
.meta { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: var(--space-3) var(--space-5); }
.meta dt { color: var(--muted); font-size: .9rem; }
.meta dd { margin: 0; overflow-wrap: anywhere; font-weight: 550; }
@media (min-width: 900px) { .meta.two-col { grid-template-columns: max-content 1fr max-content 1fr; } }
@media (max-width: 520px) { .meta, .meta.two-col { grid-template-columns: 1fr; gap: 0; } .meta dd { margin-bottom: var(--space-3); } }

/* --------------------------------------------------------------------------
   Admin shell
   -------------------------------------------------------------------------- */
.admin { background: color-mix(in srgb, var(--bg) 70%, var(--surface-2)); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side { --side-fg: var(--header-text); background: var(--header-bg); color: var(--side-fg); width: 272px; flex: none; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 90; transform: translateX(-100%); transition: transform .25s var(--ease); border-right: 1px solid color-mix(in srgb, var(--side-fg) 12%, transparent); }
.admin-side.open { transform: none; box-shadow: var(--elev-3); }
.side-head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-4) var(--space-3); }
.admin-brand { display: flex; align-items: center; gap: var(--space-3); font-weight: 750; color: inherit; text-decoration: none; font-size: .98rem; line-height: 1.25; min-width: 0; }
.admin-brand .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
.admin-brand .brand-mark svg { width: 22px; height: 22px; }
.admin-brand span:last-child { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.side-search { padding: 0 var(--space-4) var(--space-3); position: relative; }
.side-search .icon { position: absolute; left: calc(var(--space-4) + .7rem); top: calc(50% - var(--space-3) / 2); transform: translateY(-50%); width: 1rem; height: 1rem; opacity: .6; pointer-events: none; }
.side-search input { min-height: 38px; padding: .4rem .7rem .4rem 2.2rem; font-size: .88rem; background: color-mix(in srgb, var(--side-fg) 7%, transparent); border: 1px solid color-mix(in srgb, var(--side-fg) 14%, transparent); color: inherit; border-radius: var(--radius-sm); }
.side-search input::placeholder { color: color-mix(in srgb, var(--side-fg) 60%, transparent); }
.side-search input:focus { border-color: color-mix(in srgb, var(--side-fg) 40%, transparent); box-shadow: none; }
.side-search kbd { position: absolute; right: calc(var(--space-4) + .5rem); top: calc(50% - var(--space-3) / 2); transform: translateY(-50%); font-family: var(--mono); font-size: .7rem; padding: .05rem .35rem; border-radius: 5px; border: 1px solid color-mix(in srgb, var(--side-fg) 25%, transparent); opacity: .7; }
.side-nav { flex: 1; overflow-y: auto; padding: 0 var(--space-3) var(--space-4); scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--side-fg) 25%, transparent) transparent; }
.admin-side ul { list-style: none; margin: 0 0 var(--space-2); padding: 0; }
.admin-side a { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; padding: .5rem .7rem; border-radius: var(--radius-sm); font-size: .9rem; opacity: .82; position: relative; transition: background .12s, opacity .12s; }
.admin-side a .icon { width: 1.08rem; height: 1.08rem; opacity: .9; }
.admin-side a .lbl { flex: 1; min-width: 0; }
.admin-side a:hover { background: color-mix(in srgb, var(--side-fg) 9%, transparent); opacity: 1; }
.admin-side a[aria-current="page"] { background: color-mix(in srgb, var(--side-fg) 14%, transparent); font-weight: 700; opacity: 1; }
.admin-side a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.nav-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; opacity: .58; margin: var(--space-4) .7rem var(--space-2); font-weight: 750; }
.lang-am .nav-group { text-transform: none; letter-spacing: 0; font-size: .82rem; }
.side-group summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; border-radius: 6px; }
.side-group summary::-webkit-details-marker { display: none; }
.side-group summary .icon { width: .9rem; height: .9rem; margin-right: .5rem; transition: transform .2s; opacity: .55; }
.side-group:not([open]) summary .icon { transform: rotate(-90deg); }
.side-group summary:hover { opacity: .9; }
.side-foot { padding: var(--space-3) var(--space-4); border-top: 1px solid color-mix(in srgb, var(--side-fg) 12%, transparent); display: flex; align-items: center; gap: var(--space-3); font-size: .86rem; }
.side-foot .avatar { background: color-mix(in srgb, var(--side-fg) 14%, transparent); color: inherit; }
.side-foot .who { min-width: 0; flex: 1; line-height: 1.3; }
.side-foot .who strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who span { opacity: .7; font-size: .78rem; }
.side-empty { padding: var(--space-3) .7rem; opacity: .7; font-size: .86rem; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top { display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-5); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; min-height: 64px; }
.admin-toggle { color: var(--text); border-color: var(--line); }
.top-crumbs { display: flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--muted); min-width: 0; }
.top-crumbs strong { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-crumbs .icon { width: .95rem; height: .95rem; opacity: .6; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.top-link { color: var(--text); text-decoration: none; font-size: .9rem; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .7rem; border-radius: var(--radius-sm); position: relative; font-weight: 550; }
.top-link:hover { background: var(--surface-2); text-decoration: none; }
.top-link .icon { width: 1.15rem; height: 1.15rem; color: var(--muted); }
.top-link .count { position: absolute; top: 2px; right: 0; min-width: 1.1rem; height: 1.1rem; font-size: .64rem; padding: 0 .25rem; }
.top-sep { width: 1px; height: 24px; background: var(--line); margin: 0 var(--space-1); }
.user-menu { position: relative; }
.user-menu summary { cursor: pointer; font-weight: 600; font-size: .9rem; list-style: none; padding: .25rem .6rem .25rem .25rem; border: 1px solid var(--line); border-radius: var(--pill); display: inline-flex; align-items: center; gap: .5rem; background: var(--surface); }
.user-menu summary:hover { border-color: var(--primary-300); }
.user-menu summary .avatar { width: 30px; height: 30px; font-size: .72rem; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary .icon { width: .95rem; height: .95rem; color: var(--muted); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--elev-3); padding: var(--space-2); min-width: 240px; z-index: 70; animation: pop .16s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.menu-pop .menu-head { padding: var(--space-2) var(--space-3) var(--space-3); border-bottom: 1px solid var(--line); margin-bottom: var(--space-2); font-size: .86rem; }
.menu-pop .menu-head strong { display: block; font-size: .95rem; }
.menu-pop a, .menu-pop .link-btn { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; color: var(--text); text-decoration: none; width: 100%; text-align: left; border-radius: var(--radius-sm); font-size: .9rem; }
.menu-pop a:hover, .menu-pop .link-btn:hover { background: var(--surface-2); }
.menu-pop .icon { width: 1.05rem; height: 1.05rem; color: var(--muted); }
.menu-pop form { margin: 0; }
.menu-pop hr { margin: var(--space-2) 0; }
.admin-content { padding: var(--space-5) var(--space-4) var(--space-8); max-width: 1440px; width: 100%; margin: 0 auto; }
.side-scrim { position: fixed; inset: 0; background: color-mix(in srgb, #000 40%, transparent); z-index: 85; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.side-scrim.open { opacity: 1; visibility: visible; }
@media (min-width: 1100px) {
  .admin-side { position: sticky; top: 0; height: 100vh; transform: none; }
  .admin-toggle { display: none; }
  .admin-content { padding: var(--space-6) var(--space-7) var(--space-8); }
  .side-scrim { display: none; }
}
@media (max-width: 640px) { .top-link .lbl { display: none; } .admin-top { padding: 0 var(--space-3); } .top-crumbs .hide-sm { display: none; } }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-3) var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.page-title h1 { font-size: clamp(1.45rem, 1.15rem + 1vw, 1.95rem); margin: 0; letter-spacing: -.02em; }
.page-title p { margin: 0; flex-basis: 100%; color: var(--muted); }
.page-title > a.btn, .page-title > .actions, .page-title > form { margin-left: auto; }

/* Dashboard stats & charts */
.stat-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: var(--space-5); }
.stat { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--elev-1); display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: var(--text); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
a.stat:hover { border-color: var(--primary-300); transform: translateY(-2px); box-shadow: var(--elev-2); text-decoration: none; }
.stat .tile { position: absolute; right: var(--space-4); top: var(--space-4); width: 42px; height: 42px; border-radius: 12px; }
.stat .tile .icon { width: 21px; height: 21px; }
.stat-label { font-size: .84rem; color: var(--muted); font-weight: 650; padding-right: 52px; }
.stat-value { font-size: 1.65rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; letter-spacing: -.02em; line-height: 1.2; margin-top: .25rem; }
.stat-sub { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: .3rem; }
.stat-alert { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--danger) 5%, var(--surface)), var(--surface)); }
.stat-alert .stat-value { color: var(--danger); }
.stat-hero { background: linear-gradient(135deg, var(--primary-strong), var(--primary)); color: var(--primary-contrast); border: 0; }
.stat-hero .stat-label, .stat-hero .stat-sub { color: inherit; opacity: .85; }
.stat-hero .tile { background: color-mix(in srgb, var(--primary-contrast) 14%, transparent); color: var(--primary-contrast); }
.dash-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; margin-bottom: var(--space-5); }
@media (min-width: 1000px) { .dash-grid { grid-template-columns: 1.6fr 1fr; } }
.dash-grid > .card { margin: 0; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .bar-a { fill: var(--primary); }
.chart .bar-b { fill: var(--accent); }
.chart .bar-a, .chart .bar-b { transition: opacity .15s; }
.chart g.col:hover .bar-a, .chart g.col:hover .bar-b { opacity: .8; }
.chart .line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .area { fill: url(#areaGrad); }
.chart .dot { fill: var(--surface); stroke: var(--primary); stroke-width: 2.5; }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: .84rem; color: var(--muted); margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend .la { background: var(--primary); } .legend .lb { background: var(--accent); }
.donut-wrap { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.donut { width: 150px; height: 150px; flex: none; }
.donut circle { fill: none; stroke-width: 16; }
.donut .track { stroke: var(--surface-2); }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); flex: 1; min-width: 160px; font-size: .9rem; }
.donut-legend li { display: flex; align-items: center; gap: var(--space-2); }
.donut-legend li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.donut-legend i { width: 10px; height: 10px; border-radius: 50%; }
.c1 { stroke: var(--primary); background: var(--primary); } .c2 { stroke: var(--accent); background: var(--accent); } .c3 { stroke: var(--success); background: var(--success); }
.c4 { stroke: var(--warning); background: var(--warning); } .c5 { stroke: var(--danger); background: var(--danger); } .c6 { stroke: var(--primary-300); background: var(--primary-300); }
.welcome { position: relative; overflow: hidden; display: flex; gap: var(--space-5); align-items: center; justify-content: space-between; flex-wrap: wrap; padding: var(--space-6); border-radius: var(--radius-xl); background: radial-gradient(500px 200px at 100% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), linear-gradient(135deg, var(--primary-strong), var(--primary)); color: var(--primary-contrast); margin-bottom: var(--space-5); box-shadow: var(--elev-2); }
.welcome h1, .welcome h2 { color: inherit; margin: 0 0 .3rem; }
.welcome p { margin: 0; opacity: .88; }
.welcome .actions .btn-ghost { --btn-fg: var(--primary-contrast); --btn-bd: color-mix(in srgb, var(--primary-contrast) 45%, transparent); }
.welcome .actions .btn-ghost:hover { --btn-bg: color-mix(in srgb, var(--primary-contrast) 12%, transparent); }
.welcome::after { content: ""; position: absolute; right: 8%; bottom: -70px; width: 180px; height: 180px; border-radius: 50%; border: 30px solid color-mix(in srgb, var(--primary-contrast) 7%, transparent); }
.welcome > * { position: relative; z-index: 1; }
.activity { list-style: none; padding: 0; margin: 0; position: relative; }
.activity li { position: relative; padding: .55rem 0 .55rem 1.6rem; font-size: .9rem; border-bottom: 1px solid var(--line); }
.activity li:last-child { border-bottom: 0; }
.activity li::before { content: ""; position: absolute; left: .25rem; top: 1rem; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: .7rem 0 .7rem 2.4rem; position: relative; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .7rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); }
.checklist li.done::before, .checklist li.ok::before { border-color: var(--success); background: var(--success) center / 70% no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.checklist li.done a, .checklist li.ok a { color: var(--muted); }
.checklist li.fail::before, .checklist li.bad::before { border-color: var(--danger); background: var(--danger) center / 60% no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.checklist li.warn::before { border-color: var(--warning); background: var(--warning) center / 60% no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M12 6v7M12 18h.01'/%3E%3C/svg%3E"); }
.log-row { font-family: var(--mono); font-size: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.message { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-3); background: var(--surface); box-shadow: var(--elev-1); }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Media library */
.media-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.media-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); box-shadow: var(--elev-1); transition: transform .2s var(--ease), box-shadow .2s; }
.media-tile:hover { transform: translateY(-2px); box-shadow: var(--elev-2); text-decoration: none; }
.media-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--surface-2); }
.media-placeholder { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); font-size: .85rem; padding: var(--space-2); text-align: center; }
.media-name { font-size: .84rem; padding: var(--space-3); overflow-wrap: anywhere; }
.media-preview img { max-height: 420px; width: auto; border-radius: var(--radius); }
.dropzone { position: relative; border: 2px dashed var(--primary-300); background: var(--primary-50); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-4); text-align: center; transition: background .15s, border-color .15s; }
.dropzone.drag { background: var(--primary-100); border-color: var(--primary); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .tile { margin: 0 auto var(--space-3); }
.dropzone strong { display: block; }
.dropzone small { color: var(--muted); }
.dropzone .picked { margin-top: var(--space-2); font-weight: 600; color: var(--primary-text); font-size: .9rem; }

/* --------------------------------------------------------------------------
   Auth & minimal pages
   -------------------------------------------------------------------------- */
.minimal { background: radial-gradient(900px 500px at 100% 0%, var(--primary-100), transparent 70%), var(--bg); }
.minimal-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-6) var(--space-4); }
.auth-shell { display: grid; min-height: calc(100vh - var(--header-h)); }
@media (min-width: 980px) { .auth-shell { grid-template-columns: 1fr 1fr; } }
.auth-aside { position: relative; display: none; overflow: hidden; background: linear-gradient(160deg, var(--primary-strong), var(--primary)); color: var(--primary-contrast); }
@media (min-width: 980px) { .auth-aside { display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-7); } }
.auth-aside .scene { position: absolute; inset: 0; }
.auth-aside .scene img { width: 100%; height: 100%; object-fit: cover; }
.auth-aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--primary-strong) 35%, transparent) 0%, color-mix(in srgb, var(--primary-strong) 92%, transparent) 75%); }
.auth-aside > div { position: relative; z-index: 1; max-width: 460px; }
.auth-aside h2 { color: inherit; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.auth-aside p { opacity: .9; }
.auth-aside .check-list .icon { color: currentColor; opacity: .85; }
.auth-wrap { width: 100%; display: flex; align-items: center; justify-content: center; padding: var(--space-7) var(--space-4); }
.auth-card, .setup-card, .success-card { width: 100%; max-width: 460px; }
.auth-card { padding: var(--space-6); border-radius: var(--radius-xl); box-shadow: var(--elev-3); }
@media (min-width: 980px) { .auth-shell .auth-card { box-shadow: none; border: 0; background: transparent; padding: 0; } }
.auth-card .tile { margin-bottom: var(--space-4); }
.auth-card h1 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); margin-bottom: var(--space-2); }
.auth-card .muted { margin-bottom: var(--space-5); }
.auth-alt { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: .92rem; display: grid; gap: var(--space-2); }
.auth-alt a { font-weight: 600; }
.secure-note { display: flex; gap: var(--space-2); align-items: center; font-size: .82rem; color: var(--muted); margin-top: var(--space-4); }
.secure-note .icon { color: var(--success); width: 1rem; height: 1rem; }
.setup-card { max-width: 780px; }
.success-card { text-align: center; max-width: 620px; margin: var(--space-6) auto; }
.success-card .tile { margin: 0 auto var(--space-4); }
.error-page { text-align: center; padding: var(--space-8) var(--space-4); }
.error-code { font-size: clamp(4.5rem, 3rem + 6vw, 8rem); font-weight: 800; margin: 0 auto; width: fit-content; line-height: 1; letter-spacing: -.05em; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.portal-main { padding-top: var(--space-5); padding-bottom: var(--space-8); }

/* --------------------------------------------------------------------------
   Member portal shell
   -------------------------------------------------------------------------- */
.portal { background: color-mix(in srgb, var(--bg) 70%, var(--surface-2)); }
.portal-shell { display: grid; min-height: 100vh; grid-template-rows: auto 1fr; }
.portal-top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--header-bg) 94%, transparent); color: var(--header-text); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--header-text) 12%, transparent); }
.portal-top .header-inner { min-height: 66px; gap: var(--space-3); }
.portal-body { display: grid; gap: var(--space-6); align-items: start; padding-top: var(--space-6); padding-bottom: calc(var(--space-8) + 64px); }
@media (min-width: 1000px) { .portal-body { grid-template-columns: 250px minmax(0, 1fr); padding-bottom: var(--space-8); } }
.portal-side { display: none; position: sticky; top: calc(66px + var(--space-5)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-3); box-shadow: var(--elev-1); }
@media (min-width: 1000px) { .portal-side { display: block; } }
.portal-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.portal-side a { display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; border-radius: var(--radius-sm); color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: .93rem; }
.portal-side a .lbl { flex: 1; }
.portal-side a:hover { background: var(--surface-2); color: var(--text); }
.portal-side a[aria-current="page"] { background: var(--primary-100); color: var(--primary-text); }
.portal-side a .icon { width: 1.12rem; height: 1.12rem; }
.portal-side hr { margin: var(--space-2) 0; }
.portal-member { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); margin-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
.portal-member strong { display: block; font-size: .95rem; line-height: 1.25; }
.portal-member span { font-size: .8rem; color: var(--muted); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) { .tabbar { display: none; } }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .35rem .2rem; text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 650; border-radius: var(--radius-sm); text-align: center; line-height: 1.2; }
.tabbar a .icon { width: 1.35rem; height: 1.35rem; }
.tabbar a[aria-current="page"] { color: var(--primary-text); background: var(--primary-100); }
.balance-cards { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: var(--space-5); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin: var(--space-6) 0 var(--space-3); flex-wrap: wrap; }
.section-title h2 { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: var(--space-3); }
.section-title h2 .tile { width: 34px; height: 34px; border-radius: 10px; }
.section-title h2 .tile .icon { width: 17px; height: 17px; }
.acct-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--elev-1); text-decoration: none; color: var(--text); transition: transform .2s var(--ease), box-shadow .2s; }
.acct-card:hover { transform: translateY(-2px); box-shadow: var(--elev-2); text-decoration: none; }
.acct-card .top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.acct-card .no { font-family: var(--mono); font-size: .85rem; color: var(--muted); letter-spacing: .04em; }
.acct-card .amt { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.acct-card .sub { font-size: .84rem; color: var(--muted); }
.acct-card.primary { background: linear-gradient(135deg, var(--primary-strong), var(--primary)); color: var(--primary-contrast); border: 0; }
.acct-card.primary .no, .acct-card.primary .sub { color: inherit; opacity: .8; }
.acct-card.primary::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.acct-card > * { position: relative; z-index: 1; }
.txn-list { list-style: none; margin: 0; padding: 0; }
.txn-list li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.txn-list li:last-child { border-bottom: 0; }
.txn-list .t-main { flex: 1; min-width: 0; }
.txn-list .t-main strong { display: block; font-size: .94rem; }
.txn-list .t-main span { font-size: .8rem; color: var(--muted); }
.txn-list .t-amt { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.txn-list .t-amt small { display: block; font-weight: 500; }
.amt-in { color: var(--success); }
.amt-out { color: var(--text); }
.loan-progress { margin: var(--space-3) 0; }
.loan-progress .row-between { margin-bottom: .35rem; font-size: .84rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Themes
   -------------------------------------------------------------------------- */
.theme-card { display: flex; flex-direction: column; gap: var(--space-3); }
.theme-card.is-active { outline: 3px solid var(--primary); outline-offset: 2px; }
.theme-swatch { display: flex; height: 48px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.theme-swatch span { flex: 1; }
.theme-live { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: calc(.95rem * var(--font-scale)); position: sticky; top: 80px; }
.tl-header { background: var(--header-bg); color: var(--header-text); padding: var(--space-3) var(--space-4); font-weight: 700; }
.tl-body { padding: var(--space-4); }
.tl-body h3 { font-weight: var(--heading-weight); color: var(--text); }
.tl-body a { color: var(--link); }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-3); margin: var(--space-3) 0; }
.tl-muted { color: var(--muted); }
.tl-btn { display: inline-block; background: var(--primary); color: var(--primary-contrast); border-radius: var(--radius); padding: .4rem .9rem; font-weight: 600; margin: 0 var(--space-2) var(--space-2) 0; }
.tl-accent { display: inline-block; background: var(--accent); color: var(--accent-contrast); border-radius: var(--radius); padding: .4rem .9rem; font-weight: 600; margin: 0 var(--space-2) var(--space-2) 0; }
.tl-ok { color: var(--success); font-weight: 600; }
.tl-warn { color: var(--warning); font-weight: 600; }
.tl-bad { color: var(--danger); font-weight: 600; }
.tl-footer { background: var(--footer-bg); color: var(--footer-text); padding: var(--space-3) var(--space-4); font-size: .9rem; }

/* --------------------------------------------------------------------------
   Printable documents (receipts, statements, reports)
   -------------------------------------------------------------------------- */
.print-doc { background: #fff; color: #000; }
.print-actions { display: flex; gap: var(--space-2); justify-content: center; padding: var(--space-3); background: #f2f2f2; border-bottom: 1px solid #ccc; }
.print-page { max-width: 820px; margin: 0 auto; padding: var(--space-6) var(--space-5); }
.doc-head { display: flex; justify-content: space-between; gap: var(--space-4); align-items: flex-start; border-bottom: 2px solid #000; padding-bottom: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.doc-head img { max-height: 64px; width: auto; }
.doc-title { font-size: 1.4rem; margin: var(--space-3) 0; text-transform: uppercase; letter-spacing: .05em; }
.lang-am .doc-title { text-transform: none; letter-spacing: 0; }
.doc-table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-4); }
.doc-table th, .doc-table td { border: 1px solid #555; padding: .35rem .5rem; color: #000; background: #fff; position: static; }
.doc-table thead th { background: #eee; color: #000; }
.signatures { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-6); margin-top: var(--space-7); }
.sig-line { border-top: 1px solid #000; padding-top: var(--space-1); font-size: .9rem; }
.stamp-reversed { display: inline-block; border: 3px solid var(--danger); color: var(--danger); font-weight: 800; padding: .2rem .8rem; transform: rotate(-6deg); text-transform: uppercase; letter-spacing: .1em; }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal-stagger].in > * { opacity: 1; transform: none; }
.js [data-reveal-stagger].in > *:nth-child(2) { transition-delay: .07s; }
.js [data-reveal-stagger].in > *:nth-child(3) { transition-delay: .14s; }
.js [data-reveal-stagger].in > *:nth-child(4) { transition-delay: .21s; }
.js [data-reveal-stagger].in > *:nth-child(5) { transition-delay: .28s; }
.js [data-reveal-stagger].in > *:nth-child(n+6) { transition-delay: .32s; }

@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .no-print, .print-actions, .site-header, .site-footer, .topbar, .admin-side, .admin-top, .skip-link, .setup-notice, .actions, .filter-bar, .pager, .nav-toggle, .portal-side, .portal-top, .tabbar, .to-top { display: none !important; }
  .print-page, .admin-content { padding: 0; max-width: none; }
  .card, .table-wrap, .stat, .acct-card { box-shadow: none !important; border-color: #999; }
  .acct-card.primary, .welcome, .stat-hero { background: #fff !important; color: #000 !important; border: 1px solid #999; }
  a { color: #000; text-decoration: none; }
  thead { display: table-header-group; }
  thead th { position: static; }
  tr, .signatures { break-inside: avoid; }
  .js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   Setup / diagnostics helpers (kept from v1.2)
   -------------------------------------------------------------------------- */
.setup-table { table-layout: fixed; width: 100%; }
.setup-table .c-status { width: 7.5rem; } .setup-table .c-detail { width: 9rem; } .setup-table .c-open { width: 4.5rem; }
.show-sm { display: none; }
@media (max-width: 40rem) { .setup-table .hide-sm { display: none; } .setup-table .show-sm { display: inline; } .setup-table .c-status { width: 6rem; } }
.code-list { list-style: none; padding: 0; margin: var(--space-3) 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: var(--space-2); }
.code-list code { display: block; padding: var(--space-2); font-size: 1.05rem; letter-spacing: .06em; text-align: center; border: 1px dashed currentColor; border-radius: 8px; }
.code-block { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .85rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; font-size: .85rem; margin: .5rem 0; font-family: var(--mono); }
#selfcheck .checklist { margin: .5rem 0; }
.copied { outline: 2px solid var(--success); }
.footer-brand .footer-name { margin: 0; }
.footer-cta { margin-top: var(--space-4); }
.flow-cta { margin-top: var(--space-6); display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.m0 { margin: 0 !important; }
.menu-pop .link-btn { text-decoration: none; }
.portal-top .lang-switch { margin-left: auto; }
.portal-top .top-link { color: inherit; }
.portal-top .top-link .icon { color: inherit; opacity: .8; }
.portal-top .user-menu summary { background: transparent; border-color: color-mix(in srgb, currentColor 22%, transparent); color: inherit; }
.portal-top .user-menu summary .icon { color: inherit; }
@media (max-width: 560px) { .portal-top .brand-name { display: none; } }
.side-logout { display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: .93rem; width: 100%; border-radius: var(--radius-sm); }
.side-logout:hover { background: color-mix(in srgb, var(--danger) 8%, transparent); color: var(--danger); }
.side-logout .icon { width: 1.12rem; height: 1.12rem; }
.portal-main { padding: 0; min-width: 0; }
.site-nav .nav-actions { flex-wrap: nowrap; }
@media (min-width: 1100px) and (max-width: 1320px) { .brand-name small { display: none; } .site-header .site-nav > ul > li > a { padding: .5rem .55rem; font-size: .9rem; } .site-header .site-nav .nav-actions .btn-ghost { padding-inline: .6rem; } }
.apply-aside { position: sticky; top: calc(var(--header-h) + 1rem); }
.apply-form fieldset { scroll-margin-top: calc(var(--header-h) + 1rem); }
.dropzone .field { margin: 0; }
.dropzone .field label { font-weight: 500; color: var(--muted); font-size: .88rem; }
.dropzone .field .help { margin-top: .2rem; }
.dropzone input[type="file"] { z-index: 2; }
.side-figure { margin-top: var(--space-5); aspect-ratio: 4/3; } .side-figure img { height: 100%; object-fit: cover; }
.mt { margin-top: var(--space-4); }
.past-head { margin-top: var(--space-7); }
.faq-search { margin-bottom: var(--space-5); }
.faq-cat { margin: var(--space-6) 0 var(--space-3); font-size: 1.2rem; }
.faq-cat:first-of-type { margin-top: 0; }
.article { font-size: 1.06rem; }
.hint-row { display: flex; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.hint-row:last-child { border: 0; }
.hint-row .icon { color: var(--primary-text); margin-top: .2rem; }
.facts-hero dd { font-size: 1.35rem; color: var(--primary-text); }
@media (min-width: 1000px) { .page-with-aside:has(> aside) { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-7); align-items: start; } .page-aside { position: sticky; top: calc(var(--header-h) + 1rem); } .page-aside .side-figure { margin-top: 0; } }
.center-actions { justify-content: center; } .check-list { list-style: none; padding: 0; display: grid; gap: .6rem; } .check-list li { display: flex; gap: .6rem; align-items: flex-start; } .check-list .icon { flex: none; margin-top: .15rem; color: var(--success); }
.acct-cards { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.acct-card .sub { display: flex; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.acct-card .go { display: inline-flex; align-items: center; gap: .25rem; font-weight: 650; }
.acct-card .go .icon { width: .95rem; height: .95rem; }
.txn-list .t-amt .badge { display: block; margin-top: .2rem; }
.txn-list .t-main span { display: block; }
.dash-grid > div { display: grid; gap: var(--space-5); align-content: start; }
.loan-progress + .loan-progress { border-top: 1px solid var(--line); padding-top: var(--space-4); }
.page-title:has(> .tile) { align-items: center; justify-content: flex-start; }
.page-title > .pt-text { flex: 1; min-width: 12rem; }
.page-title > .pt-text p { margin-top: .25rem; }
.filter-bar.card { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; }
.filter-bar.card .field { margin: 0; }
.chart { color: var(--primary-text); }
.donut-total { font-size: 26px; font-weight: 800; fill: var(--text); font-family: var(--font); }
.donut-cap { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.donut circle:not(.track) { transition: stroke-width .15s; }
.donut circle:not(.track):hover { stroke-width: 20; }
@media (min-width: 1100px) { .site-header .brand { flex: 0 0 auto; } .site-header .brand-name { max-width: 19ch; font-size: .98rem; } }
@media (min-width: 1100px) and (max-width: 1440px) { .brand-name small { display: none; } }
.lbl-short { display: none; }
@media (min-width: 1100px) and (max-width: 1439px) {
  .site-nav .lbl-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-nav .lbl-short { display: inline; }
  .site-nav .nav-actions { gap: .4rem; }
  .site-nav .nav-actions .btn { padding-inline: .8rem; }
}
.post-card .thumb .icon { width: auto; height: auto; opacity: 1; }
.post-card .thumb > .icon { width: 42px; height: 42px; opacity: .55; }
.post-card .thumb .chip .icon { width: .95rem; height: .95rem; }
.product-card .rate-money b { font-size: 1.6rem; white-space: nowrap; } .product-card .rate-money { flex-wrap: wrap; }
.site-footer a.btn { color: var(--btn-fg); opacity: 1; text-decoration: none; }
.side-figure { padding: 0; }
.side-figure picture, .side-figure img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; margin: 0; }
.product-intro { margin-bottom: var(--space-7); }
.auth-aside .eyebrow { color: inherit; opacity: .85; }
.auth-aside::after { background: linear-gradient(180deg, color-mix(in srgb, var(--primary-strong) 10%, transparent) 0%, color-mix(in srgb, var(--primary-strong) 55%, transparent) 45%, color-mix(in srgb, var(--primary-strong) 94%, transparent) 85%); }
.count-zero { background: var(--surface-2) !important; color: var(--muted) !important; }
.welcome .eyebrow { color: var(--accent); }
.welcome .eyebrow::before { background: var(--accent); }
.dash-grid { align-items: start; }
@media (min-width: 1000px) { .dash-grid.dash-even { grid-template-columns: 1fr; } }
@media (min-width: 1280px) { .dash-grid.dash-even { grid-template-columns: 1.15fr 1fr; } }
.txn-list .t-amt { font-size: .95rem; }

html, body { overflow-x: clip; }
@media (max-width: 640px) {
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: var(--space-3); }
  .quick { padding: var(--space-4); }
  .quick span:not(.tile):not(.go) { font-size: .82rem; }
  .quick .go { display: none; }
  .balance-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .balance-cards .stat:first-child { grid-column: 1 / -1; }
  .balance-cards .stat-value { font-size: 1.3rem; }
}
.site-nav a.btn, .site-header a.btn { color: var(--btn-fg); }
section.setup-card[aria-labelledby="setup-h"] { max-width: none; }

/* v1.3.1 — FAQ topic chips */
.chip-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--space-4) 0 var(--space-2); }
.chip-nav .chip { font-size: .875rem; padding: .4rem .85rem; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.chip-nav .chip:hover, .chip-nav .chip:focus-visible { background: var(--primary); color: var(--primary-contrast); border-color: var(--primary); }
.faq-cat { scroll-margin-top: 6rem; }

/* v1.3.1 — starter content card */
.starter-card { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 6%, var(--surface)), var(--surface)); }
.starter-card .starter-body { display: flex; gap: var(--space-4); align-items: flex-start; flex: 1 1 28rem; }
.starter-card h2 { margin: 0 0 .35rem; font-size: 1.15rem; }
.starter-counts { list-style: none; margin: var(--space-3) 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-weight: 600; font-size: .9rem; }
.starter-counts li { display: inline-flex; align-items: center; gap: .4rem; }
.starter-counts .icon { color: var(--primary-text); width: 1.05rem; height: 1.05rem; }

/* ===== v1.3.1 — fluid navigation, gallery viewer, planner, article tools ===== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

.fade-img { opacity: 0; transition: opacity .45s var(--ease); }
.fade-img.loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .fade-img { opacity: 1; transition: none; } }

/* Home news without events: three across */
.news-only .post-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* Gallery grid + viewer */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.g-item { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--elev-1); aspect-ratio: 4 / 3; outline-offset: 3px; }
.g-item picture, .g-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.06); }
.g-cap { position: absolute; inset: auto 0 0; padding: var(--space-6) var(--space-3) var(--space-3); color: #fff; font-size: .85rem; line-height: 1.35; background: linear-gradient(transparent, rgba(0,0,0,.75)); transform: translateY(35%); opacity: 0; transition: opacity .25s, transform .3s var(--ease); }
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }
@media (hover: none) { .g-cap { opacity: 1; transform: none; } }
.g-zoom { position: absolute; top: var(--space-3); right: var(--space-3); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--primary-text); opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; }
.g-zoom .icon { width: 18px; height: 18px; }
.g-item:hover .g-zoom, .g-item:focus-visible .g-zoom { opacity: 1; transform: none; }
html.lb-open { overflow: hidden; }
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgb(var(--shade-rgb) / .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .2s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: var(--radius); opacity: 0; transform: scale(.98); transition: opacity .3s, transform .3s var(--ease); }
.lightbox img.in { opacity: 1; transform: none; }
.lightbox figcaption { margin-top: var(--space-3); font-size: .95rem; opacity: .9; }
.lb-count { position: absolute; top: 1.1rem; left: 1.25rem; margin: 0; opacity: .8; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .15s; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255,255,255,.22); }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-close { top: .85rem; right: .85rem; }
.lb-prev { left: .85rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .85rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } }

/* On-this-page navigation */
.toc { padding: var(--space-4) var(--space-5); }
.page-aside .toc { position: sticky; top: calc(var(--header-h) + 1rem); }
.toc-title { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin: 0 0 var(--space-2); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-soft); }
.toc-title .icon { width: 1rem; height: 1rem; color: var(--primary-text); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li a { display: block; padding: .4rem .6rem; margin-left: -.6rem; border-left: 2px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-soft); text-decoration: none; font-size: .92rem; line-height: 1.35; transition: color .15s, background-color .15s, border-color .15s; }
.toc li a:hover { color: var(--primary-text); background: var(--primary-100); }
.toc li a[aria-current="true"] { color: var(--primary-text); border-left-color: var(--primary); background: var(--primary-100); font-weight: 600; }
.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 1.25rem); }

/* Article reading progress + share */
.read-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transform-origin: 0 50%; transform: scaleX(0); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: var(--space-6); }
.share-status { color: var(--success, var(--primary)); font-weight: 600; }

/* Savings planner */
.input-suffix { display: flex; align-items: stretch; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.input-suffix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.input-suffix input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent; font-variant-numeric: tabular-nums; font-weight: 600; }
.input-suffix span { display: grid; place-items: center; padding: 0 .85rem; background: var(--surface-2); color: var(--text-soft); font-weight: 600; font-size: .9rem; border-left: 1px solid var(--line); }
.plan-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--primary-contrast) 15%, transparent); }
.plan-bar span { display: block; height: 100%; transition: width .35s var(--ease); }
.pb-start { background: color-mix(in srgb, var(--primary-contrast) 55%, transparent); }
.pb-dep { background: var(--primary-contrast); }
.pb-int { background: var(--accent); }
@media (min-width: 1000px) {
  .page-with-aside:has(.toc) { align-items: stretch; }
  .page-with-aside .page-aside:has(.toc) { position: static; display: flex; flex-direction: column; gap: var(--space-4); }
  .page-aside .toc { position: sticky; top: calc(var(--header-h) + 1rem); }
}
.plan-legend { list-style: none; margin: -.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .8rem; opacity: .9; }
.plan-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.plan-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
@media (max-width: 559px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); } .g-cap { font-size: .75rem; padding: var(--space-4) var(--space-2) var(--space-2); } .g-zoom { display: none; } }

/* ---- v1.4 home hero layouts (Admin → System → Settings → General) ---------------------------- */
.hero-preview-note { background: var(--accent); color: var(--accent-contrast); font-size: .9rem; position: relative; z-index: 3; }
.hero-preview-note .container { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-top: .55rem; padding-bottom: .55rem; }
.hero-preview-note a { color: inherit; font-weight: 700; }
.preview-links { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: calc(var(--space-2) * -1); }
.preview-links a { display: inline-flex; align-items: center; gap: .25rem; }
.preview-links .icon { width: .85em; height: .85em; }

/* Slideshow */
.hero-slides { position: relative; color: #fff; background: rgb(var(--shade-rgb)); min-height: clamp(540px, 82vh, 760px); overflow: hidden; isolation: isolate; }
.hs-track { position: absolute; inset: 0; }
.hs-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.hs-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; z-index: 1; }
.hs-media { position: absolute; inset: 0; z-index: -1; }
.hs-media picture, .hs-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-media img { transform: scale(1.08); transition: transform 9s linear; }
.hs-slide.is-active .hs-media img { transform: scale(1); }
.hs-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--shade-rgb) / .86) 0%, rgb(var(--shade-rgb) / .62) 42%, rgb(var(--shade-rgb) / .18) 75%), linear-gradient(0deg, rgb(var(--shade-rgb) / .65) 0%, transparent 38%); }
.hs-body { position: relative; width: 100%; padding-bottom: calc(var(--space-9) + 3rem); padding-top: var(--space-7); }
.hs-copy { max-width: 620px; }
.hs-copy > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hs-slide.is-active .hs-copy > * { opacity: 1; transform: none; }
.hs-slide.is-active .hs-copy > :nth-child(2) { transition-delay: .12s; }
.hs-slide.is-active .hs-copy > :nth-child(3) { transition-delay: .22s; }
.hs-slide.is-active .hs-copy > :nth-child(4) { transition-delay: .32s; }
.hs-count { font-size: .85rem; letter-spacing: .14em; color: rgba(255,255,255,.75); margin-bottom: var(--space-3); }
.hs-count span { color: var(--accent); font-weight: 800; }
.hs-title { color: #fff; font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem); line-height: 1.06; letter-spacing: -.03em; margin-bottom: var(--space-4); max-width: 15ch; }
.lang-am .hs-title { line-height: 1.28; letter-spacing: 0; font-size: clamp(1.9rem, 1.1rem + 3vw, 3.1rem); }
.hs-text { font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem); color: rgba(255,255,255,.9); max-width: 50ch; margin-bottom: var(--space-6); }
.hs-controls { position: absolute; left: 0; right: 0; bottom: calc(var(--space-8) + var(--space-4)); z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.hs-dots { display: flex; gap: var(--space-3); flex: 1; max-width: 760px; }
.hs-dot { flex: 1; min-width: 0; background: none; border: 0; padding: .5rem 0; color: rgba(255,255,255,.7); text-align: left; cursor: pointer; font: inherit; font-size: .82rem; }
.hs-dot-label { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .45rem; transition: color .2s; }
.hs-dot[aria-current="true"], .hs-dot:hover { color: #fff; }
.hs-bar { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; }
.hs-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.hs-dot[aria-current="true"] .hs-bar i { width: 100%; }
.hero-slides.is-timing .hs-dot[aria-current="true"] .hs-bar i { width: 0; animation: hs-fill var(--hs-dur, 7s) linear forwards; }
.hero-slides.is-paused .hs-dot[aria-current="true"] .hs-bar i { animation: none; width: 100%; }
@keyframes hs-fill { to { width: 100%; } }
.hs-nav { display: flex; gap: var(--space-2); }
.hs-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); background: rgb(var(--shade-rgb) / .35); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, border-color .2s, transform .15s var(--ease); }
.hs-btn:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.hs-btn:active { transform: scale(.94); }
.hs-btn .icon { width: 1.2rem; height: 1.2rem; }
.hs-btn .i-play { display: none; }
.hs-btn[aria-pressed="true"] .i-play { display: inline-flex; }
.hs-btn[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 700px) {
  .hs-dot-label { display: none; }
  .hs-dots { gap: .4rem; }
  .hs-controls { bottom: calc(var(--space-8) + var(--space-3)); }
  .hs-body { padding-bottom: calc(var(--space-9) + 4rem); }
  .hs-media::after { background: linear-gradient(0deg, rgb(var(--shade-rgb) / .92) 0%, rgb(var(--shade-rgb) / .6) 55%, rgb(var(--shade-rgb) / .35) 100%); }
  .hs-btn { width: 42px; height: 42px; }
}

/* Goal picker */
.hero-goals .hero-grid { align-items: start; }
@media (min-width: 980px) { .hero-goals .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.hg-photo { display: none; position: relative; margin-top: var(--space-6); border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--elev-2); max-width: 560px; }
@media (min-width: 980px) { .hg-photo { display: block; } }
.hg-photo picture, .hg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--elev-3); padding: var(--space-5); position: relative; }
@media (min-width: 768px) { .goal-card { padding: var(--space-6); } }
.goal-q { font-weight: 700; font-size: 1.15rem; margin-bottom: var(--space-4); }
.goal-tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--radius); margin-bottom: var(--space-5); }
.goal-tabs [role="tab"] { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; border-radius: calc(var(--radius) - 3px); cursor: pointer; transition: color .2s; }
.goal-tabs [role="tab"][aria-selected="true"] { color: var(--primary-text); }
.goal-tabs [role="tab"] .icon { width: 1.15rem; height: 1.15rem; }
.goal-ink { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; background: var(--surface); border-radius: calc(var(--radius) - 3px); box-shadow: var(--elev-1); transition: transform .3s var(--ease), width .3s var(--ease); }
.goal-panel.is-in { animation: goal-in .35s var(--ease); }
@keyframes goal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.goal-panel .field { margin-bottom: var(--space-4); }
.goal-panel .range-row { margin-bottom: var(--space-4); }
.qs-result { display: flex; flex-direction: column; gap: .15rem; padding: var(--space-4); border-radius: var(--radius); background: var(--primary); color: var(--primary-contrast); margin-bottom: var(--space-3); }
.qs-result .muted { color: inherit; opacity: .85; }
.qs-result strong { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); line-height: 1.15; }
.qs-result strong.bump { animation: bump .3s var(--ease); }
@keyframes bump { 50% { transform: scale(1.04); } }
.ready-list { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-2); }
.ready-list label { display: flex; align-items: center; gap: var(--space-3); padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .2s, background .2s; }
.ready-list label:hover { border-color: var(--primary-300); }
.ready-list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ready-list .rk { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--primary-300); display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.ready-list .rk .icon { width: 15px; height: 15px; }
.ready-list input:checked + .rk { background: var(--primary); border-color: var(--primary); color: var(--primary-contrast); transform: scale(1.06); }
.ready-list input:focus-visible + .rk { outline: 3px solid var(--focus, var(--accent)); outline-offset: 2px; }
.ready-list label:has(input:checked) { background: var(--primary-50); border-color: var(--primary-300); }
.ready-meter { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.ready-track { flex: 1; height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.ready-track i { display: block; height: 100%; width: 0; background: var(--success); border-radius: 8px; transition: width .35s var(--ease); }
[data-ready].is-ready [data-ready-out] { color: var(--success); font-weight: 700; }
.join-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); counter-reset: none; }
.join-steps a { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.join-steps a:hover { border-color: var(--primary-300); transform: translateX(4px); box-shadow: var(--elev-1); }
.join-steps .js-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-contrast); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.join-steps .js-t { flex: 1; display: flex; flex-direction: column; gap: .1rem; }
.join-steps a > .icon { color: var(--primary-text); transition: transform .2s var(--ease); }
.join-steps a:hover > .icon { transform: translateX(3px); }
@media (max-width: 420px) { .join-steps .tile { display: none; } .goal-tabs [role="tab"] { flex-direction: column; gap: .15rem; font-size: .85rem; min-height: 56px; } }

/* Photo mosaic */
.hero-mosaic { text-align: center; padding-bottom: calc(var(--space-8) + var(--space-6)); }
.hm-head { display: flex; flex-direction: column; align-items: center; }
.hero-mosaic h1 { margin-left: auto; margin-right: auto; max-width: 20ch; }
.hm-rotate { font-size: clamp(1.4rem, 1.05rem + 1.6vw, 2.2rem); font-weight: 700; color: var(--text-soft, var(--muted)); margin-bottom: var(--space-4); line-height: 1.3; }
.hm-word { display: inline-block; color: var(--primary-text); position: relative; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.hm-word::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .14em; border-radius: 4px; background: var(--accent); opacity: .7; }
.hm-word.out { opacity: 0; transform: translateY(-.35em); }
.hero-mosaic .lead { margin-left: auto; margin-right: auto; }
.hm-search { display: flex; align-items: center; gap: var(--space-2); width: min(620px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); box-shadow: var(--elev-2); padding: .35rem .35rem .35rem 1.1rem; margin-bottom: var(--space-4); transition: box-shadow .2s, border-color .2s; }
.hm-search:focus-within { border-color: var(--primary); box-shadow: var(--elev-3); }
.hm-search > .icon { color: var(--muted); flex: none; }
.hm-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; padding: .6rem .2rem; color: var(--text); }
.hm-search input:focus { outline: none; }
.hm-search .btn { border-radius: var(--pill); }
.hm-chips { list-style: none; padding: 0; margin: 0 0 var(--space-7); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.hm-chips a { display: inline-block; padding: .4rem .9rem; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 600; transition: border-color .2s, color .2s, transform .15s var(--ease); }
.hm-chips a:hover { border-color: var(--primary); color: var(--primary-text); transform: translateY(-2px); }
.hm-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(2, 1fr); text-align: left; }
.hm-tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--elev-2); transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .5s var(--ease), box-shadow .3s; }
.hm-tile.hm-t1 { grid-column: span 2; aspect-ratio: 16 / 9; }
.hm-tile a { display: block; height: 100%; color: #fff; text-decoration: none; }
.hm-tile picture, .hm-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.hm-tile a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(var(--shade-rgb) / .78) 0%, rgb(var(--shade-rgb) / .1) 55%, transparent 100%); }
.hm-tile:hover img { transform: scale(1.06); }
.hm-tile:hover { box-shadow: var(--elev-3); }
.hm-label { position: absolute; z-index: 1; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); display: flex; align-items: center; gap: var(--space-2); font-weight: 700; font-size: .95rem; }
.hm-label .tile { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); }
.hm-label > .icon:last-child { margin-left: auto; opacity: .8; transition: transform .2s var(--ease); }
.hm-tile:hover .hm-label > .icon:last-child { transform: translate(2px, -2px); opacity: 1; }
@media (min-width: 900px) {
  .hm-grid { grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: repeat(2, clamp(190px, 17vw, 240px)); gap: var(--space-4); }
  .hm-tile { height: 100%; }
  .hm-tile, .hm-tile.hm-t1 { aspect-ratio: auto; grid-column: auto; }
  .hm-tile.hm-t1 { grid-row: span 2; }
  .hm-label { font-size: 1.02rem; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); }
}
@media (min-width: 900px) { .hm-grid:has(.hm-t5) { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .hm-grid:has(.hm-t5) .hm-t2, .hm-grid:has(.hm-t5) .hm-t5 { grid-column: span 2; } }
@media (max-width: 899px) {
  .hm-tile:not(.hm-t1) .hm-label { left: var(--space-2); right: var(--space-2); bottom: var(--space-2); font-size: .86rem; line-height: 1.25; }
  .hm-tile:not(.hm-t1) .hm-label .tile, .hm-tile:not(.hm-t1) .hm-label > .icon:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-slide, .hs-copy > *, .hs-media img, .hm-tile, .hm-word, .goal-ink { transition: none !important; }
  .hs-media img { transform: none; }
}

/* =============================================================================================
 * v1.5.0 — layout fit, navigation fix, consent manager, install-app prompt, passkeys, exports,
 * developer credit. Appended last so it refines (not replaces) the existing design system.
 * ============================================================================================= */

/* ---- Desktop fit: the page now uses the full screen width instead of a narrow centred column. */
:root { --container: 2200px; --gutter: clamp(1rem, 4vw, 5rem); }
.container { padding-left: var(--gutter); padding-right: var(--gutter); }
.admin-content { max-width: none; }
@media (min-width: 1100px) { .admin-content { padding-left: clamp(1.5rem, 2.6vw, 3.5rem); padding-right: clamp(1.5rem, 2.6vw, 3.5rem); } }
@media (min-width: 1000px) { .portal-body { grid-template-columns: 270px minmax(0, 1fr); } }
@media (min-width: 1600px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 5vw, 7rem); }
  .hero h1, .hero .display { font-size: clamp(3.4rem, 3.6vw, 4.6rem); }
}
/* Long-form text keeps a comfortable reading measure even on wide screens. */
.prose, .lead, .hero-lead { max-width: 72ch; }

/* ---- Navigation fix: on tablets / phones the dark overlay was stacked ABOVE the menu drawer
 *      (the drawer lives inside the sticky header's stacking context), so taps on menu links
 *      never reached them. Lift the header above the overlay while the drawer is open. */
body.nav-open .site-header { z-index: 95; }
.nav-scrim { cursor: pointer; }
.site-nav a { -webkit-tap-highlight-color: transparent; }
@media (max-width: 1099.98px) {
  .site-nav { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; }
}

/* ---- Small UI/UX refinements */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h, 72px) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:focus-visible { outline: 3px solid var(--focus, var(--primary)); outline-offset: 2px; }
.btn { transition: transform .15s var(--ease), box-shadow .2s, background-color .2s, border-color .2s; }
.btn:active { transform: translateY(1px); }
.section-head-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.section-head-row h2, .section-head-row h3 { margin: 0; }
.mt { margin-top: var(--space-6); }

/* ---- Footer: legal row + developer credit */
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.footer-legal a, .footer-legal .link-btn { color: inherit; display: inline-flex; align-items: center; gap: .35rem; font: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.footer-legal .link-btn:hover, .footer-legal a:hover { text-decoration-color: currentColor; }
.footer-legal .icon { width: 1rem; height: 1rem; }
.dev-credit { margin-top: var(--space-4); background: color-mix(in srgb, #000 22%, var(--footer-bg)); border-top: 1px solid color-mix(in srgb, var(--footer-text) 12%, transparent); margin-bottom: calc(-1 * var(--space-5)); }
.dev-credit-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding-top: .85rem; padding-bottom: .85rem; font-size: .84rem; }
.dev-credit p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .9rem; }
.dev-credit a { color: inherit; font-weight: 700; text-decoration: none; border-bottom: 1px dashed color-mix(in srgb, currentColor 45%, transparent); }
.dev-credit a:hover { border-bottom-style: solid; }
.dev-credit-meta a { font-weight: 500; display: inline-flex; align-items: center; gap: .3rem; }
.dev-credit .icon { width: .95rem; height: .95rem; }
.dev-badge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: var(--accent-contrast); margin-right: .25rem; }
.dev-badge .icon { width: .9rem; height: .9rem; }
.dev-version { padding: .05rem .5rem; border-radius: var(--pill); border: 1px solid color-mix(in srgb, var(--footer-text) 25%, transparent); font-size: .74rem; letter-spacing: .02em; }
.dev-credit-app { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: var(--space-7) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); text-align: center; }
.dev-credit-app a { color: var(--text-soft); font-weight: 650; }
.dev-credit-app .icon { width: .9rem; height: .9rem; }
.minimal-main .dev-credit-app { border-top: 0; margin-top: var(--space-5); }

/* ---- Consent manager */
.consent { position: fixed; z-index: 120; inset: auto 0 0 0; padding: var(--space-3); pointer-events: none; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent-required { inset: 0; align-items: center; }
.consent-scrim { position: fixed; inset: 0; background: rgb(var(--shade-rgb) / .55); backdrop-filter: blur(3px); pointer-events: auto; }
.consent-card { position: relative; pointer-events: auto; width: min(100%, 980px); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .35); padding: var(--space-5); animation: consent-in .35s var(--ease) both; }
.consent-required .consent-card { width: min(100%, 620px); }
@keyframes consent-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.consent-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.consent-head h2 { font-size: 1.15rem; margin: 0; }
.consent-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-100, var(--surface-2)); color: var(--primary-text); flex: none; }
.consent-icon .icon { width: 22px; height: 22px; }
.consent-card p { margin: 0 0 var(--space-4); color: var(--text-soft); font-size: .94rem; }
.consent-card p a { font-weight: 650; }
.consent-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; }
@media (max-width: 560px) { .consent-actions .btn { flex: 1 1 100%; justify-content: center; } .consent-card { padding: var(--space-4); } }
.consent-cats { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-2); max-height: 52vh; overflow: auto; }
.consent-cats li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--surface-2); border-radius: var(--radius); }
.consent-cats li div { display: grid; gap: .15rem; }
.consent-cats li span:not(.badge):not(.switch-ui) { font-size: .86rem; color: var(--muted); }
.switch { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch-ui { width: 46px; height: 26px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 45%, var(--surface)); position: relative; transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.switch input:checked + .switch-ui { background: var(--primary); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--focus, var(--primary)); outline-offset: 2px; }

/* ---- Install-app (PWA) prompt + connectivity toast */
.pwa-prompt { position: fixed; z-index: 110; right: var(--space-4); bottom: var(--space-4); width: min(calc(100% - 2 * var(--space-4)), 420px); display: grid; grid-template-columns: 48px 1fr; gap: var(--space-3); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .35); padding: var(--space-4); transform: translateY(20px); opacity: 0; transition: transform .3s var(--ease), opacity .3s; }
.pwa-prompt.in { transform: none; opacity: 1; }
.pwa-prompt[hidden] { display: none; }
.pwa-prompt img { border-radius: 12px; }
.pwa-text { display: grid; gap: .15rem; font-size: .9rem; }
.pwa-text span { color: var(--muted); }
.pwa-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: var(--space-2); }
body.has-tabbar .pwa-prompt, .portal-shell ~ .pwa-prompt { bottom: calc(var(--space-4) + 64px); }
@media (min-width: 1000px) { .portal-shell ~ .pwa-prompt { bottom: var(--space-4); } }
.net-toast { position: fixed; z-index: 130; left: 50%; bottom: var(--space-5); transform: translateX(-50%); display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: var(--pill); background: rgb(var(--shade-rgb)); color: #fff; font-size: .88rem; box-shadow: var(--elev-3); }
.net-toast[hidden] { display: none; }
.net-toast.is-ok { background: var(--success); }
.net-toast.is-ok .icon { display: none; }
.offline-card { text-align: center; margin: 10vh auto; }
.offline-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--surface-2); color: var(--primary-text); margin-bottom: var(--space-3); }
.offline-icon .icon { width: 30px; height: 30px; }

/* ---- Download (Excel / PDF / CSV) menu */
.export-menu { position: relative; display: inline-block; }
.export-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.export-menu > summary::-webkit-details-marker { display: none; }
.export-menu > summary .caret { width: .9rem; height: .9rem; transition: transform .2s; }
.export-menu[open] > summary .caret { transform: rotate(180deg); }
.export-menu .dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 75; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--elev-3); padding: .35rem; display: grid; animation: pop .16s var(--ease); }
.export-menu .dropdown-menu a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 600; }
.export-menu .dropdown-menu a:hover, .export-menu .dropdown-menu a:focus-visible { background: var(--surface-2); }
.export-menu .dropdown-menu .icon { width: 1.05rem; height: 1.05rem; color: var(--primary-text); }

/* ---- Passkeys */
.or-divider { display: flex; align-items: center; gap: var(--space-3); color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: var(--space-4) 0 var(--space-3); }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.passkey-btn { gap: .6rem; }
.passkey-btn .icon { width: 1.35rem; height: 1.35rem; color: var(--primary-text); }
.passkey-hint { text-align: center; margin: .5rem 0 0; }
.passkey-status { margin: .5rem 0 0; min-height: 1.2em; text-align: center; }
.passkey-status.is-error { color: var(--danger); }
.passkeys-page h1 { display: flex; align-items: center; gap: .5rem; }
.passkeys-page h1 .icon { color: var(--primary-text); }
.passkeys-page .card { margin-top: var(--space-4); }
.passkey-add .passkey-status { text-align: left; }
.passkey-benefits { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; gap: var(--space-2); }
.passkey-benefits li { display: flex; gap: .6rem; align-items: flex-start; font-size: .94rem; }
.passkey-benefits .icon { color: var(--primary-text); flex: none; margin-top: .15rem; }
.passkey-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.passkey-list li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); }
.passkey-list .pk-meta { flex: 1; display: grid; gap: .1rem; min-width: 0; }
.passkey-list form { margin: 0; }

/* ---- Consent report */
.consent-report-grid { display: grid; gap: var(--space-4); }
@media (min-width: 1100px) { .consent-report-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.consent-report-grid .card { padding: var(--space-5); }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 220px; padding: var(--space-3) 0 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.bar-col { flex: 1 0 14px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar-stack { width: 100%; max-width: 34px; min-height: 2px; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 0 0; overflow: hidden; }
.bar-stack .seg { display: block; min-height: 0; }
.seg-accept { background: var(--primary); }
.seg-custom { background: var(--accent); }
.seg-reject { background: color-mix(in srgb, var(--danger) 70%, var(--surface)); }
.bar-x { font-size: .62rem; color: var(--muted); white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-3); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.meter-list { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-3); }
.meter-list li { display: grid; grid-template-columns: 110px 1fr 52px; align-items: center; gap: var(--space-3); font-size: .9rem; }
.meter-list b { text-align: right; font-variant-numeric: tabular-nums; }
.meter { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--accent))); }
.split-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--space-4); }
.split-cols h3 { font-size: .86rem; margin: 0 0 .4rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .9rem; }
.kv-list li { display: flex; justify-content: space-between; gap: var(--space-2); border-bottom: 1px dashed var(--line); padding-bottom: .25rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 35%, var(--surface)); }
.dot-on { background: var(--success); }

@media print { .consent, .pwa-prompt, .net-toast, .dev-credit, .export-menu { display: none !important; } }
@media (max-width: 640px) { .dev-credit-inner { padding-right: 76px; } .dev-credit-main { font-size: .8rem; } }
.passkeys-page h1 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.15; }
.passkeys-page h1 .icon { width: 1.6rem; height: 1.6rem; }

/* ==========================================================================
   v1.5.1 — brand layer: logo emblem + the two brand themes (slugs star-gold / star-noir).
   v2.2.0 — colours come only from the active theme tokens (generated from the Maleda logo): --brand-1/2/3 and
   --brand-sheen are defined in :root from --accent and --primary, overlays use --shade-rgb.
   ========================================================================== */
.brand-mark:has(> .brand-emblem) { background: none; box-shadow: none; border-radius: 0; width: 48px; height: 48px; }
.brand-mark > .brand-emblem { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .18)); }
.footer-brand .brand-mark:has(> .brand-emblem) { width: 54px; height: 54px; }
.admin-brand .brand-mark:has(> .brand-emblem) { width: 40px; height: 40px; }
.badge-brand { background: linear-gradient(135deg, var(--brand-1), var(--brand-2) 55%, color-mix(in srgb, var(--brand-2) 80%, #000)); color: var(--accent-contrast); border: 0; font-weight: 700; }

html[data-theme] {
  --focus: 0 0 0 3px color-mix(in srgb, var(--brand-2) 45%, transparent);
}
html[data-theme] ::selection { background: color-mix(in srgb, var(--brand-2) 40%, transparent); color: inherit; }

/* Primary buttons get a soft metallic sheen (the flat token colour stays underneath for contrast). */
html[data-theme] .btn:not(.btn-ghost):not(.btn-ghost-dark):not(.btn-light):not(.btn-outline-light):not(.btn-danger):not(.btn-icon) {
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--btn-bg) 88%, #fff) 0%, var(--btn-bg) 52%, color-mix(in srgb, var(--btn-bg) 84%, #000) 100%);
  border-color: color-mix(in srgb, var(--btn-bg) 80%, #000);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 1px 2px rgb(0 0 0 / .18);
}
html[data-theme] .btn:not(.btn-ghost):not(.btn-ghost-dark):not(.btn-light):not(.btn-outline-light):not(.btn-danger):not(.btn-icon):hover {
  filter: brightness(1.05) saturate(1.05); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 8px 20px -8px color-mix(in srgb, var(--brand-2) 70%, transparent);
}

/* Brand hairlines: header underline, footer crown, eyebrow rule. */
html[data-theme] .site-header { border-bottom: 1px solid color-mix(in srgb, var(--brand-2) 38%, transparent); }
html[data-theme] .site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand-sheen); }
html[data-theme] .eyebrow::before { background: var(--brand-sheen); height: 2px; width: 1.8rem; }
html[data-theme] h1, html[data-theme] h2 { letter-spacing: -.02em; }
html[data-theme] .site-footer h2, html[data-theme] .site-footer h3, html[data-theme] .site-footer h4 { color: var(--footer-text); }
html[data-theme] .site-footer a:hover { color: var(--footer-text); text-decoration-color: var(--accent); }

/* Admin + portal: brand indicator on the current menu item. */
html[data-theme] .admin-nav a[aria-current="page"], html[data-theme] .portal-nav a[aria-current="page"], html[data-theme] .side-nav a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--brand-2);
}
html[data-theme] .card, html[data-theme] .stat, html[data-theme] .kpi { border-color: color-mix(in srgb, var(--border) 80%, var(--brand-2) 20%); }

/* Brand light theme (slug star-gold, "Maleda Brand"). */
html[data-theme="star-gold"] .site-header { background: color-mix(in srgb, var(--header-bg) 94%, transparent); }
html[data-theme="star-gold"] .admin-side { background: linear-gradient(180deg, var(--surface), var(--bg)); }

/* Dark themes (slugs star-noir "Maleda Night", midnight "Before Dawn"). */
:is(html[data-theme="star-noir"], html[data-theme="midnight"]) { color-scheme: dark; }
:is(html[data-theme="star-noir"], html[data-theme="midnight"]) body { background: radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--brand-2) 9%, transparent), transparent 60%), var(--bg); background-attachment: fixed; }
:is(html[data-theme="star-noir"], html[data-theme="midnight"]) .site-header { background: color-mix(in srgb, var(--header-bg) 96%, transparent); } /* no backdrop-filter: it would trap the fixed menu drawer inside the header */
:is(html[data-theme="star-noir"], html[data-theme="midnight"]) .eyebrow { color: var(--brand-1); }
/* v2.2.0 — eyebrows on primary-coloured bands (page head, sign-in panel, welcome banner) keep the band's own text colour. */
:is(html[data-theme="star-noir"], html[data-theme="midnight"]) :is(.page-head, .auth-aside, .welcome) .eyebrow { color: var(--primary-contrast); }
:is(html[data-theme="star-noir"], html[data-theme="midnight"]) .brand-mark > .brand-emblem { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--brand-2) 25%, transparent)); }
:is(html[data-theme="star-noir"], html[data-theme="midnight"]) .btn-ghost { --btn-fg: var(--brand-1); --btn-bd: color-mix(in srgb, var(--brand-2) 55%, transparent); }
:is(html[data-theme="star-noir"], html[data-theme="midnight"]) .btn-light { --btn-bg: var(--text); --btn-fg: var(--bg); --btn-bd: var(--text); }
:is(html[data-theme="star-noir"], html[data-theme="midnight"]) input, :is(html[data-theme="star-noir"], html[data-theme="midnight"]) select, :is(html[data-theme="star-noir"], html[data-theme="midnight"]) textarea { color-scheme: dark; }
/* Outline buttons on the primary-coloured call-to-action band follow the band's text colour (fixes light-on-accent in dark themes). */
.cta-band .btn-outline-light { --btn-fg: var(--primary-contrast); --btn-bd: color-mix(in srgb, var(--primary-contrast) 55%, transparent); }
.cta-band .btn-outline-light:hover { --btn-bg: color-mix(in srgb, var(--primary-contrast) 10%, transparent); }
/* Welcome banner (admin / portal): eyebrow and accent button follow the banner's own text colour, so they stay readable on every theme. */
.welcome .eyebrow { color: var(--primary-contrast); opacity: .85; }
.welcome .eyebrow::before { background: var(--primary-contrast); }
.welcome .actions .btn-accent { --btn-bg: var(--primary-contrast); --btn-fg: var(--primary); --btn-bd: var(--primary-contrast); }
/* v1.5.2 — brand family refinements (v2.2.0: token-derived) */
/* Login photo: the message sits on a frosted panel of the theme colour, so its text keeps AA contrast over any photo. */
.auth-aside > div { background: color-mix(in srgb, var(--primary) 84%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg, 16px); border: 1px solid color-mix(in srgb, var(--primary-contrast) 16%, transparent); box-shadow: 0 18px 40px -18px rgb(0 0 0 / .45); }
.auth-aside .eyebrow { opacity: 1; }
/* Footer emblem sits on a disc of the theme's darkest colour so the logo stays visible on light and dark footers alike. */
.site-footer .brand-mark:has(> .brand-emblem) { background: rgb(var(--shade-rgb)); border-radius: 50%; padding: 7px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-2) 55%, transparent); }
/* Decorative ticks and the "Shares" tile use the brand family instead of status green (status badges keep green / amber / red). */
.hero-points .icon, .check-list .icon, .secure-note .icon { color: var(--primary-text); }
.quick .tile-success { background: color-mix(in srgb, var(--brand-2) 16%, var(--surface)); color: var(--primary-text); }
html[data-theme="star-noir"] .quick .tile-success, html[data-theme="midnight"] .quick .tile-success { color: var(--brand-1); }

/* ==========================================================================
   v1.5.3 — Slideshow styles (Admin → Settings → General → Slideshow style)
   fade (default: cross-fade + slow zoom) · slide · parallax · stack · curtain · zoom
   JS sets data-dir="fwd|back" on .hero-slides and .is-leaving on the outgoing slide.
   Inactive slides have no transition, so they jump to their start position invisibly;
   only the incoming (.is-active) and outgoing (.is-leaving) slides animate.
   ========================================================================== */
.hero-slides { --hs-ease: cubic-bezier(.77, 0, .18, 1); --hs-move: .95s; }
.hero-slides:not(.hs-style-fade) .hs-slide { opacity: 1; transition: none; z-index: 0; }
.hero-slides:not(.hs-style-fade) .hs-slide.is-active { z-index: 2; }
.hero-slides:not(.hs-style-fade) .hs-slide.is-leaving { visibility: visible; z-index: 1; }

/* 1. Slide — the whole slide pushes across, like turning a page. */
.hs-style-slide .hs-slide { transform: translate3d(100%, 0, 0); }
.hs-style-slide[data-dir="back"] .hs-slide { transform: translate3d(-100%, 0, 0); }
.hs-style-slide .hs-slide.is-active { transform: none; transition: transform var(--hs-move) var(--hs-ease); }
.hs-style-slide .hs-slide.is-leaving { transform: translate3d(-100%, 0, 0); transition: transform var(--hs-move) var(--hs-ease); }
.hs-style-slide[data-dir="back"] .hs-slide.is-leaving { transform: translate3d(100%, 0, 0); }

/* 2. Parallax — slides push across while the photo inside moves at half speed for depth. */
.hs-style-parallax .hs-slide { overflow: hidden; transform: translate3d(100%, 0, 0); }
.hs-style-parallax[data-dir="back"] .hs-slide { transform: translate3d(-100%, 0, 0); }
.hs-style-parallax .hs-slide .hs-media { transform: translate3d(-50%, 0, 0); }
.hs-style-parallax[data-dir="back"] .hs-slide .hs-media { transform: translate3d(50%, 0, 0); }
.hs-style-parallax .hs-slide.is-active, .hs-style-parallax .hs-slide.is-active .hs-media { transform: none; transition: transform 1.1s var(--hs-ease); }
.hs-style-parallax .hs-slide.is-leaving { transform: translate3d(-100%, 0, 0); transition: transform 1.1s var(--hs-ease); }
.hs-style-parallax .hs-slide.is-leaving .hs-media { transform: translate3d(50%, 0, 0); transition: transform 1.1s var(--hs-ease); }
.hs-style-parallax[data-dir="back"] .hs-slide.is-leaving { transform: translate3d(100%, 0, 0); }
.hs-style-parallax[data-dir="back"] .hs-slide.is-leaving .hs-media { transform: translate3d(-50%, 0, 0); }
.hs-style-parallax .hs-media img { transform: scale(1.04); }

/* 3. Stack — the new photo rises over the old one, which sinks back and dims like a card in a deck. */
.hs-style-stack .hs-slide { transform: translate3d(0, 100%, 0); }
.hs-style-stack[data-dir="back"] .hs-slide { transform: translate3d(0, -100%, 0); }
.hs-style-stack .hs-slide.is-active { transform: none; transition: transform var(--hs-move) var(--hs-ease); box-shadow: 0 -30px 60px -20px rgb(0 0 0 / .55); }
.hs-style-stack .hs-slide.is-leaving { transform: scale(.9); filter: brightness(.45); border-radius: 22px; overflow: hidden; transition: transform var(--hs-move) var(--hs-ease), filter var(--hs-move) var(--hs-ease), border-radius var(--hs-move); }
.hs-style-stack[data-dir="back"] .hs-slide.is-leaving { transform: scale(.9); }

/* 4. Curtain — a diagonal wipe with a brand-colour edge reveals the next photo over the current one. */
.hs-style-curtain .hs-slide { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
.hs-style-curtain[data-dir="back"] .hs-slide { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
.hs-style-curtain .hs-slide.is-active { clip-path: polygon(-20% 0, 100% 0, 100% 100%, 0 100%); transition: clip-path 1.15s cubic-bezier(.65, 0, .35, 1); }
.hs-style-curtain[data-dir="back"] .hs-slide.is-active { clip-path: polygon(0 0, 120% 0, 100% 100%, 0 100%); }
.hs-style-curtain .hs-slide.is-leaving { clip-path: polygon(-20% 0, 100% 0, 100% 100%, 0 100%); }
.hs-style-curtain .hs-slide.is-leaving .hs-media img { transform: scale(1.06); transition: transform 1.15s var(--hs-ease); }
.hs-style-curtain .hs-slide::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; z-index: 3; background: linear-gradient(180deg, var(--brand-1), var(--brand-2) 50%, var(--brand-3)); box-shadow: 0 0 24px 4px color-mix(in srgb, var(--brand-2) 55%, transparent); opacity: 0; transform: translateX(100vw) skewX(-8deg); pointer-events: none; }
.hs-style-curtain .hs-slide.is-active::before { animation: hs-curtain-edge 1.15s cubic-bezier(.65, 0, .35, 1); }
.hs-style-curtain[data-dir="back"] .hs-slide.is-active::before { animation-name: hs-curtain-edge-back; }
@keyframes hs-curtain-edge { 0% { opacity: 1; transform: translateX(100vw) skewX(-8deg); } 92% { opacity: 1; } 100% { opacity: 0; transform: translateX(-2vw) skewX(-8deg); } }
@keyframes hs-curtain-edge-back { 0% { opacity: 1; transform: translateX(-2vw) skewX(8deg); } 92% { opacity: 1; } 100% { opacity: 0; transform: translateX(100vw) skewX(8deg); } }

/* 5. Cinematic zoom — the next photo pulls into focus from a soft, enlarged blur, framed by letterbox bars. */
.hs-style-zoom .hs-slide { opacity: 0; transform: scale(1.18); filter: blur(14px); }
.hs-style-zoom .hs-slide.is-active { opacity: 1; transform: none; filter: none; transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.16, 1, .3, 1), filter 1.2s ease; }
.hs-style-zoom .hs-slide.is-leaving { opacity: 0; transform: scale(.94); filter: blur(6px); transition: opacity 1s ease, transform 1.2s ease, filter 1s ease; }
.hs-style-zoom .hs-media img { transform: none; }
.hs-style-zoom::before, .hs-style-zoom::after { content: ""; position: absolute; left: 0; right: 0; height: clamp(10px, 3.2vh, 30px); background: rgb(var(--shade-rgb)); z-index: 4; pointer-events: none; }
.hs-style-zoom::before { top: 0; } .hs-style-zoom::after { bottom: 0; }

/* Copy animation follows the movement direction in the moving styles. */
.hs-style-slide .hs-copy > *, .hs-style-parallax .hs-copy > * { transform: translateX(40px); }
.hs-style-slide[data-dir="back"] .hs-copy > *, .hs-style-parallax[data-dir="back"] .hs-copy > * { transform: translateX(-40px); }
.hs-style-slide .hs-slide.is-active .hs-copy > *, .hs-style-parallax .hs-slide.is-active .hs-copy > * { transform: none; transition-delay: .35s; }
.hs-style-zoom .hs-copy > * { transform: scale(.96); letter-spacing: .02em; }
.hs-style-zoom .hs-slide.is-active .hs-copy > * { transform: none; letter-spacing: normal; transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  .hero-slides .hs-slide, .hero-slides .hs-slide.is-active, .hero-slides .hs-slide.is-leaving, .hero-slides .hs-media { transition: none !important; animation: none !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .hero-slides:not(.hs-style-fade) .hs-slide:not(.is-active) { visibility: hidden; }
  .hero-slides .hs-slide::before { display: none; }
}
.field-with-links > .preview-links { margin-top: calc(var(--space-2) * -1); display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }

/* ==========================================================================
   v1.5.4 — Slideshow style 7: Prismatic glass refractor (crystalline prism depth)
   · Each change: the new photo resolves from a soft, saturated blur while six frosted
     crystal shards (backdrop-filter glass with brand-tint edges) sweep across at
     different speeds and angles, refracting the photos underneath.
   · At rest: the copy sits on a multi-layer frosted glass card (two offset glass
     layers behind it), with a brand prismatic rim, a light sheen sweep, and a soft
     highlight that follows the pointer while the card tilts slightly (desktop only).
   ========================================================================== */
.hs-style-prism { --px: 0; --py: 0; --mx: 30%; --my: 20%; perspective: 1400px; }
.hs-style-prism .hs-slide { opacity: 0; transform: scale(1.06); filter: blur(10px) saturate(1.35) brightness(1.08); }
.hs-style-prism .hs-slide.is-active { opacity: 1; transform: none; filter: none; transition: opacity 1.1s ease, transform 1.4s cubic-bezier(.16, 1, .3, 1), filter 1.2s ease; }
.hs-style-prism .hs-slide.is-leaving { opacity: 0; transform: scale(1.02); filter: blur(6px) saturate(1.2); transition: opacity 1.2s ease .1s, transform 1.3s ease, filter 1s ease; }
.hs-style-prism .hs-slide .hs-media img { transform: scale(1.04) translate3d(calc(var(--px) * -10px), calc(var(--py) * -8px), 0); transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
/* photo highlight that follows the pointer */
.hs-style-prism .hs-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(38% 46% at var(--mx) var(--my), color-mix(in srgb, var(--brand-glow) 22%, transparent), transparent 70%); mix-blend-mode: soft-light; }

/* Crystal shards */
.hs-prism { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.hs-prism i { position: absolute; top: -12%; bottom: -12%; left: 0; width: var(--w, 14%); opacity: 0; transform: translateX(-140%) skewX(-16deg);
  background: linear-gradient(100deg, color-mix(in srgb, var(--brand-glow) 26%, transparent), color-mix(in srgb, var(--brand-1) 8%, transparent) 38%, color-mix(in srgb, var(--brand-2) 14%, transparent) 62%, rgb(255 255 255 / .02));
  border-left: 1px solid color-mix(in srgb, var(--brand-glow) 75%, transparent); border-right: 1px solid color-mix(in srgb, var(--brand-2) 45%, transparent);
  box-shadow: inset 12px 0 24px -12px color-mix(in srgb, var(--brand-glow) 55%, transparent), inset -10px 0 22px -12px color-mix(in srgb, var(--brand-2) 60%, transparent), 0 0 30px color-mix(in srgb, var(--brand-2) 18%, transparent);
  -webkit-backdrop-filter: blur(9px) saturate(1.6) brightness(1.12); backdrop-filter: blur(9px) saturate(1.6) brightness(1.12); }
.hs-prism i:nth-child(1) { --w: 9%;  --a: -16deg; --d: 0s;   --t: 1.25s; }
.hs-prism i:nth-child(2) { --w: 18%; --a: -10deg; --d: .06s; --t: 1.5s; }
.hs-prism i:nth-child(3) { --w: 6%;  --a: -20deg; --d: .14s; --t: 1.1s; }
.hs-prism i:nth-child(4) { --w: 22%; --a: -13deg; --d: .1s;  --t: 1.6s; }
.hs-prism i:nth-child(5) { --w: 11%; --a: -18deg; --d: .2s;  --t: 1.3s; }
.hs-prism i:nth-child(6) { --w: 15%; --a: -8deg;  --d: .26s; --t: 1.45s; }
.hs-style-prism.is-refracting .hs-prism i { animation: hs-shard var(--t) cubic-bezier(.55, .05, .2, 1) var(--d) both; }
.hs-style-prism.is-refracting[data-dir="back"] .hs-prism i { animation-name: hs-shard-back; }
@keyframes hs-shard { 0% { opacity: 0; transform: translateX(108vw) skewX(var(--a)); } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(-30vw) skewX(var(--a)); } }
@keyframes hs-shard-back { 0% { opacity: 0; transform: translateX(-30vw) skewX(calc(var(--a) * -1)); } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(108vw) skewX(calc(var(--a) * -1)); } }

/* Layered glass card */
.hs-style-prism .hs-copy { position: relative; isolation: isolate; max-width: 640px; padding: clamp(1.25rem, 2.6vw, 2.25rem) clamp(1.25rem, 3vw, 2.5rem);
  border-radius: 24px; border: 1px solid color-mix(in srgb, var(--brand-glow) 50%, transparent);
  background:
    radial-gradient(60% 80% at calc(50% + var(--px) * 40%) calc(30% + var(--py) * 40%), color-mix(in srgb, var(--brand-glow) 20%, transparent), transparent 70%),
    linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--brand-glow) 28%, transparent) 45%, transparent 58%) no-repeat,
    linear-gradient(140deg, rgb(255 255 255 / .16), rgb(var(--shade-rgb) / .38) 55%, rgb(var(--shade-rgb) / .5));
  background-size: 100% 100%, 260% 100%, 100% 100%; background-position: 0 0, 160% 0, 0 0;
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), inset 0 -1px 0 color-mix(in srgb, var(--brand-2) 45%, transparent), inset 1px 0 0 color-mix(in srgb, var(--brand-glow) 20%, transparent), 0 40px 80px -30px rgb(0 0 0 / .65), 0 0 0 1px rgb(0 0 0 / .08);
  transform: rotateY(calc(var(--px) * 5deg)) rotateX(calc(var(--py) * -4deg)) translate3d(calc(var(--px) * 6px), calc(var(--py) * 4px), 0);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .9s ease, filter .9s ease; transform-style: preserve-3d; opacity: 0; filter: blur(8px); }
.hs-style-prism .hs-slide.is-active .hs-copy { opacity: 1; filter: none; transition-delay: 0s, .35s, .35s; animation: hs-sheen 1.8s ease .55s both; }
@keyframes hs-sheen { from { background-position: 0 0, 160% 0, 0 0; } to { background-position: 0 0, -60% 0, 0 0; } }
/* two deeper glass layers behind the card — they shift further with the pointer for depth */
.hs-style-prism .hs-copy::before, .hs-style-prism .hs-copy::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--brand-1) 30%, transparent); background: linear-gradient(150deg, rgb(255 255 255 / .1), color-mix(in srgb, var(--brand-2) 8%, transparent));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.hs-style-prism .hs-copy::before { transform: translate3d(calc(14px + var(--px) * 10px), calc(14px + var(--py) * 8px), -40px); opacity: .85; }
.hs-style-prism .hs-copy::after { transform: translate3d(calc(28px + var(--px) * 22px), calc(28px + var(--py) * 16px), -80px); opacity: .55; }
/* prismatic brand rim on the card's top edge */
.hs-style-prism .hs-count { position: relative; }
.hs-style-prism .hs-count::after { content: ""; display: block; height: 2px; width: 72px; margin-top: .6rem; border-radius: 2px; background: linear-gradient(90deg, var(--brand-glow), var(--brand-2) 45%, var(--brand-3) 75%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--brand-2) 60%, transparent); }
.hs-style-prism .hs-copy > * { transform: translateY(14px); }
.hs-style-prism .hs-slide.is-active .hs-copy > * { transform: none; transition-delay: .5s; }
.hs-style-prism .hs-slide.is-active .hs-copy > :nth-child(2) { transition-delay: .6s; }
.hs-style-prism .hs-slide.is-active .hs-copy > :nth-child(3) { transition-delay: .7s; }
.hs-style-prism .hs-slide.is-active .hs-copy > :nth-child(4) { transition-delay: .8s; }
/* lighter darkening behind the glass card so the photo stays luminous */
.hs-style-prism .hs-media::after { background: linear-gradient(90deg, rgb(var(--shade-rgb) / .55) 0%, rgb(var(--shade-rgb) / .3) 45%, rgb(var(--shade-rgb) / .08) 80%), linear-gradient(0deg, rgb(var(--shade-rgb) / .6) 0%, transparent 34%); }
@media (max-width: 720px) {
  .hs-style-prism .hs-copy::after { display: none; }
  .hs-style-prism .hs-copy::before { transform: translate3d(8px, 8px, 0); }
  .hs-style-prism .hs-media::after { background: linear-gradient(0deg, rgb(var(--shade-rgb) / .85) 0%, rgb(var(--shade-rgb) / .4) 60%, rgb(var(--shade-rgb) / .2) 100%); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hs-style-prism .hs-copy { background: linear-gradient(140deg, rgb(var(--shade-rgb) / .78), rgb(var(--shade-rgb) / .9)); }
}
@media (prefers-reduced-motion: reduce) {
  .hs-prism { display: none; }
  .hs-style-prism .hs-copy, .hs-style-prism .hs-copy::before, .hs-style-prism .hs-copy::after, .hs-style-prism .hs-media img { transform: none !important; animation: none !important; transition: none !important; }
  .hs-style-prism .hs-slide.is-active .hs-copy { opacity: 1; filter: none; }
}

/* v1.5.4 — Login/admin sign-in responsiveness: the single grid column grew to the
   min-content width of the passkey button (nowrap), pushing the card off the right edge
   on phones. Let the column shrink, wrap long button labels, and keep the card centred. */
.auth-shell { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.auth-wrap, .auth-card { min-width: 0; }
.auth-wrap { padding-inline: clamp(var(--space-3), 4vw, var(--space-7)); }
.auth-card { margin-inline: auto; }
.auth-card .btn { white-space: normal; text-align: center; line-height: 1.25; min-height: 3rem; height: auto; }
.auth-card .passkey-btn { gap: .5rem; padding-inline: var(--space-3); }
.auth-card .passkey-btn .icon { flex: none; }
.auth-card .auth-alt { flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.auth-card input { min-width: 0; max-width: 100%; }
@media (max-width: 420px) {
  .auth-wrap { padding: var(--space-5) var(--space-3); align-items: flex-start; }
  .auth-card { padding: var(--space-5) var(--space-4); border-radius: var(--radius-lg, 16px); }
}
/* v1.5.4 prism: keep the layered glass card (and its offset back layers) clear of the slide dots */
.hero-slides.hs-style-prism { min-height: clamp(740px, 92vh, 880px); }
@media (max-width: 720px) { .hero-slides.hs-style-prism { min-height: clamp(620px, 90vh, 780px); } }
.hs-style-prism .hs-body { padding-top: var(--space-7); padding-bottom: calc(var(--space-9) + 6.5rem); }
@media (max-width: 720px) { .hs-style-prism .hs-body { padding-bottom: calc(var(--space-9) + 5rem); } }

/* ==========================================================================
   v1.6 — branded dialogs, toasts, searchable dropdowns, rich text, maps, permission matrix
   ========================================================================== */
html.sd-open { overflow: hidden; }
.sd-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: var(--space-4); background: rgb(var(--shade-rgb) / .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .16s var(--ease); }
.sd-backdrop.is-in { opacity: 1; }
.sd-box { width: min(460px, 100%); max-height: calc(100vh - 2rem); overflow: auto; background: var(--surface); color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--elev-3); padding: var(--space-6) var(--space-5) var(--space-5); text-align: center; transform: translateY(12px) scale(.97); transition: transform .2s var(--ease); outline: none; border-top: 5px solid var(--primary); }
.sd-backdrop.is-in .sd-box { transform: none; }
.sd-icon { width: 64px; height: 64px; margin: 0 auto var(--space-4); border-radius: 50%; display: grid; place-items: center; background: var(--primary-100); color: var(--primary-text); }
.sd-icon .icon { width: 34px; height: 34px; }
.sd-danger { border-top-color: var(--danger); }
.sd-danger .sd-icon, .sd-error .sd-icon { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.sd-warning .sd-icon { background: color-mix(in srgb, var(--warning) 14%, var(--surface)); color: var(--warning); }
.sd-success .sd-icon { background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success); }
.sd-title { font-size: 1.3rem; margin: 0 0 var(--space-2); overflow-wrap: anywhere; }
.sd-text { color: var(--text-soft); margin: 0 0 var(--space-5); overflow-wrap: anywhere; }
.sd-field { text-align: left; margin-bottom: var(--space-4); }
.sd-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.sd-actions .btn { min-width: 120px; }
@media (max-width: 480px) { .sd-actions { flex-direction: column-reverse; } .sd-actions .btn { width: 100%; } }
.sd-toasts { position: fixed; z-index: 1001; right: var(--space-4); bottom: var(--space-4); display: grid; gap: var(--space-2); max-width: min(380px, calc(100vw - 2rem)); }
.sd-toast { display: flex; gap: var(--space-2); align-items: center; background: var(--surface); color: var(--text); border-left: 4px solid var(--success); border-radius: var(--radius-sm); box-shadow: var(--elev-3); padding: .8rem 1rem; transform: translateY(10px); opacity: 0; transition: all .2s var(--ease); }
.sd-toast.is-in { transform: none; opacity: 1; }
.sd-toast.sd-error { border-left-color: var(--danger); }
.sd-toast .icon { width: 20px; height: 20px; flex: none; color: var(--success); }
.sd-toast.sd-error .icon { color: var(--danger); }
@media (prefers-reduced-motion: reduce) { .sd-backdrop, .sd-box, .sd-toast { transition: none; } }

/* Searchable dropdown */
.ss { position: relative; width: 100%; }
.ss-native { position: absolute !important; opacity: 0 !important; pointer-events: none; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; left: 0; bottom: 0; }
.ss-control { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; width: 100%; min-height: 46px; text-align: left; font: inherit; font-size: .97rem; color: var(--text); background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--text) 16%, var(--border)); border-radius: var(--radius-sm); padding: .45rem 2.4rem .45rem .8rem; cursor: pointer; position: relative; }
.ss-control:hover { border-color: color-mix(in srgb, var(--text) 28%, var(--border)); }
.ss-control:focus-visible, .ss.is-open .ss-control { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
.ss-control:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.ss-control > .icon { position: absolute; right: .75rem; top: 50%; width: 1.05rem; height: 1.05rem; transform: translateY(-50%); color: var(--muted); transition: transform .15s; }
.ss.is-open .ss-control > .icon { transform: translateY(-50%) rotate(180deg); }
.ss-control.is-invalid, .has-error .ss-control { border-color: var(--danger); }
.ss-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ss-ph { color: var(--muted); }
.ss-chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--primary-100); color: var(--primary-text); border-radius: var(--pill); padding: .1rem .3rem .1rem .65rem; font-size: .86rem; font-weight: 600; }
.ss-chip-x { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; }
.ss-chip-x:hover { background: var(--primary-200); }
.ss-panel { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--elev-3); padding: .4rem; min-width: 220px; }
.ss.ss-up .ss-panel { top: auto; bottom: calc(100% + 4px); }
.ss-search { min-height: 40px; margin-bottom: .35rem; }
.ss-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.ss-opt { padding: .5rem .7rem; border-radius: calc(var(--radius-sm) * .8); cursor: pointer; display: flex; align-items: center; gap: .5rem; }
.ss-opt[aria-selected="true"] { font-weight: 700; color: var(--primary-text); }
.ss-opt[aria-selected="true"]::after { content: "✓"; margin-left: auto; }
.ss-opt.is-active, .ss-opt:hover { background: var(--primary-100); }
.ss-opt[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.ss-opt-empty { color: var(--muted); }
.ss-opt-custom { font-style: normal; color: var(--primary-text); border-top: 1px dashed var(--border); margin-top: .25rem; }
.ss-empty { padding: .6rem .7rem; color: var(--muted); }
.filter-bar .ss { min-width: 180px; width: auto; flex: 1 1 180px; }
.filter-bar .ss-control { min-height: 40px; }

/* Rich text editor container and stored rich content */
.jodit-container:not(.jodit_inline) { border-radius: var(--radius-sm) !important; border-color: color-mix(in srgb, var(--text) 16%, var(--border)) !important; }
.jodit-container .jodit-wysiwyg { font-family: var(--font); line-height: 1.65; color: var(--text); background: var(--surface); }
.prose table, .rt-content table { width: 100%; border-collapse: collapse; margin: var(--space-4) 0; }
.prose td, .prose th, .rt-content td, .rt-content th { border: 1px solid var(--border); padding: .45rem .6rem; vertical-align: top; }
.prose th, .rt-content th { background: var(--surface-2); text-align: left; }
.prose img { border-radius: var(--radius-sm); height: auto; }
.prose blockquote { border-left: 4px solid var(--accent); margin: var(--space-4) 0; padding: .4rem 1rem; background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Interactive map */
.map-box { width: 100%; height: 380px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); box-shadow: var(--elev-1); z-index: 0; }
.map-box:focus-visible { outline: none; box-shadow: var(--focus); }
.map-box.map-failed::before { content: attr(data-failed-text); display: grid; place-items: center; height: 100%; color: var(--muted); padding: var(--space-4); text-align: center; }
.map-box .leaflet-popup-content { font-family: var(--font); line-height: 1.5; }
@media (max-width: 640px) { .map-box { height: 300px; } }

/* Permission matrix & lookup admin */
.perm-tools { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-bottom: var(--space-4); }
.perm-tools input[type="search"] { max-width: 320px; }
.perm-module-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.perm-module-head .count { font-size: .85rem; color: var(--muted); font-weight: 600; }
.matrix-wrap { position: relative; overflow: auto; max-height: 75vh; border: 1px solid var(--border); border-radius: var(--radius); }
.matrix { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .88rem; }
.matrix th, .matrix td { padding: .45rem .6rem; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; background: var(--surface); }
.matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); }
.matrix th:first-child, .matrix td:first-child { position: sticky; left: 0; z-index: 1; text-align: left; white-space: normal; min-width: 260px; }
.matrix thead th:first-child { z-index: 3; }
.matrix .mod-row td { background: var(--primary-50); font-weight: 700; text-align: left; }
.matrix .yes { color: var(--success); font-weight: 800; }
.matrix .no { color: var(--muted); opacity: .5; }
.lookup-items td input[type="text"] { min-height: 38px; padding: .35rem .6rem; }
.lookup-items .code { font-family: var(--mono); font-size: .85rem; }
.nowrap { white-space: nowrap; }
.lookup-items .inline-form { display: inline-flex; }

/* v1.6 printing: letterhead shown only on paper when a screen is printed with Ctrl+P */
.print-only { display: none; }
@media print { .print-only { display: block; } .admin-content, .portal-main { padding: 0 !important; } .sd-backdrop, #sd-print-frame, .ss-panel { display: none !important; } }
.page-title > .print-btn { order: 9; align-self: center; }
.table-scroll { overflow-x: auto; max-width: 100%; margin: 0 0 var(--space-4, 1rem); } .table-scroll > table { margin: 0; }

/* ---------------------------------------------------------------- v1.6.1 visitor counter (home page) */
.vc { padding: var(--space-6); display: grid; gap: var(--space-5); position: relative; overflow: hidden; }
.vc::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); pointer-events: none; }
.vc-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-3); }
.vc-head h2 { margin: 0; }
.vc-live { margin: 0; display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: var(--pill, 999px); background: var(--surface-2); border: 1px solid var(--line); font-size: .95rem; }
.vc-live strong { font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.vc-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--muted); flex: none; }
.vc-has-online .vc-dot { background: var(--success); box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); animation: vc-pulse 2s infinite; }
@keyframes vc-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent); } 70% { box-shadow: 0 0 0 .55rem transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.vc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.vc-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: var(--space-3); align-items: center; padding: var(--space-4); border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); transition: transform .2s var(--ease, ease), box-shadow .2s var(--ease, ease); }
.vc-stat:hover { transform: translateY(-2px); box-shadow: var(--elev-2); }
.vc-stat .tile { grid-row: span 2; }
.vc-num { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; line-height: 1.1; color: var(--primary-text); font-variant-numeric: tabular-nums; }
.vc-lbl { color: var(--muted); font-size: .9rem; }
.vc-chart p { margin: 0 0 var(--space-2); }
.vc-bars { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-2); height: 120px; align-items: end; }
.vc-bar { all: unset; box-sizing: border-box; height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 4px; cursor: pointer; text-align: center; }
.vc-bar-fill { align-self: end; height: var(--h, 4%); min-height: 4px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), var(--primary)); opacity: .78; transition: height .8s var(--ease, ease), opacity .2s; }
.vc-bar:hover .vc-bar-fill, .vc-bar.is-on .vc-bar-fill, .vc-bar:focus-visible .vc-bar-fill { opacity: 1; }
.vc-bar:focus-visible { outline: 2px solid var(--focus, var(--primary)); outline-offset: 2px; border-radius: 6px; }
.vc-bar-lbl { font-size: .75rem; color: var(--muted); }
.vc-tip { position: absolute; top: -.6rem; transform: translate(-50%, -100%); background: var(--text); color: var(--surface); padding: .3rem .6rem; border-radius: var(--radius-sm); font-size: .8rem; white-space: nowrap; pointer-events: none; box-shadow: var(--elev-2); z-index: 2; }
.vc-note { margin: 0; display: flex; gap: .4rem; align-items: center; }
.vc-note svg { width: 1rem; height: 1rem; flex: none; }
@media (max-width: 640px) { .vc { padding: var(--space-4); } .vc-grid { grid-template-columns: 1fr; } .vc-stat { padding: var(--space-3); } }
@media (prefers-reduced-motion: reduce) { .vc-has-online .vc-dot { animation: none; } .vc-bar-fill, .vc-stat { transition: none; } }

/* ---------------------------------------------------------------- v1.6.1 visitor report + StarCharts */
.vs-filter { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: end; padding: var(--space-3) var(--space-4); margin-bottom: var(--space-5); }
.vs-filter .seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.vs-filter .seg a { padding: .35rem .75rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); font-size: .9rem; }
.vs-filter .seg a[aria-current="page"] { background: var(--primary); color: var(--primary-contrast); }
.vs-custom { display: flex; gap: var(--space-2); align-items: end; flex-wrap: wrap; }
.vs-custom .field { margin: 0; }
.vs-period { margin: 0 0 .4rem auto; }
.vs-kpis .stat { gap: 2px; }
.vs-chg { display: block; }
.vs-chg.is-good { color: var(--success); }
.vs-chg.is-bad { color: var(--danger); }
.vs-card { margin-bottom: var(--space-5); }
.vs-card h2 { display: flex; align-items: center; gap: .5rem; margin-top: 0; }
.vs-grid { display: grid; gap: var(--space-5); }
.vs-grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.vs-grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.vs-grid > .vs-card { margin-bottom: 0; }
.vs-grid { margin-bottom: var(--space-5); }
.vs-table td.num, .vs-table th.num, .table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-bar-cell { position: relative; max-width: 320px; }
.vs-bar-cell::before { content: ""; position: absolute; inset: 15% auto 15% 0; width: var(--w, 0); background: color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 4px; }
.vs-bar-cell > span { position: relative; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-live-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--success); margin-right: .35rem; animation: vc-pulse 2s infinite; vertical-align: middle; }
.vs-live-dot.is-paused { animation: none; background: var(--muted); }
.vs-online .stat-value { color: var(--success); }
.vs-flash { animation: vs-flash .8s ease; }
@keyframes vs-flash { 0% { transform: scale(1.18); } 100% { transform: none; } }
.vs-active { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vs-active li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: .45rem .6rem; border-radius: var(--radius-sm); }
.vs-active li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0); background: color-mix(in srgb, var(--success) 14%, transparent); border-radius: var(--radius-sm); transition: width .6s ease; }
.vs-active a { position: relative; min-width: 0; display: grid; text-decoration: none; color: var(--text); }
.vs-active .vs-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.vs-active small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-active b { position: relative; font-variant-numeric: tabular-nums; }
.vs-dev { display: grid; grid-template-columns: 7rem 1fr 3rem; gap: var(--space-3); align-items: center; padding: .4rem 0; }
.vs-dev b { text-align: right; }
.vs-meter { height: .6rem; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.vs-meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .6s ease; }
.vs-feed td { vertical-align: top; }

.sc { position: relative; }
.sc svg { display: block; max-width: 100%; overflow: visible; }
.sc-grid { stroke: var(--line); stroke-width: 1; }
.sc-axis { fill: var(--muted); font-size: 11px; }
.sc-area { opacity: .14; }
.sc-stroke { stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.sc-dash { stroke-dasharray: 5 4; }
.sc-cross { stroke: var(--muted); stroke-dasharray: 3 3; }
.sc-hot { stroke: var(--surface); stroke-width: 2; }
.sc-hit { cursor: crosshair; outline: none; }
.sc-hit:focus-visible { stroke: var(--focus, var(--primary)); stroke-width: 2; }
.sc-tip { position: absolute; z-index: 5; pointer-events: none; display: grid; gap: 2px; min-width: 8rem; padding: .45rem .65rem; border-radius: var(--radius-sm); background: var(--text); color: var(--surface); font-size: .8rem; box-shadow: var(--elev-3); }
.sc-tip i, .sc-key i, .sc-dlist i { display: inline-block; width: .65rem; height: .65rem; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }
.sc-legend { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.sc-key { all: unset; cursor: pointer; padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; }
.sc-key:focus-visible { outline: 2px solid var(--focus, var(--primary)); }
.sc-key.is-off { opacity: .45; text-decoration: line-through; }
.sc-donut-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.sc-donut-num { font-size: 22px; font-weight: 700; fill: var(--text); }
.sc-seg { cursor: pointer; transition: transform .2s ease, opacity .2s; transform-origin: 90px 90px; outline: none; }
.sc-donut svg:hover .sc-seg:not(.is-on) { opacity: .55; }
.sc-seg.is-on { transform: scale(1.05); }
.sc-dlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; flex: 1; min-width: 9rem; font-size: .9rem; }
.sc-dlist li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .3rem; padding: .15rem .3rem; border-radius: var(--radius-sm); }
.sc-dlist li.is-on { background: var(--surface-2); }
.sc-heat { overflow-x: auto; }
.sc-heat-grid { display: grid; grid-template-columns: 3rem repeat(24, minmax(14px, 1fr)); gap: 3px; min-width: 520px; }
.sc-heat-h { font-size: 10px; color: var(--muted); text-align: center; }
.sc-heat-r { font-size: 11px; color: var(--muted); align-self: center; }
.sc-cell { aspect-ratio: 1; border-radius: 3px; background: color-mix(in srgb, var(--primary) calc(var(--a, 0) * 100%), var(--surface-2)); border: 1px solid var(--line); cursor: pointer; }
.sc-cell:hover { outline: 2px solid var(--accent); }
@media print { .sc-key, .sc-hit { display: none; } .vs-filter .seg, .vs-custom { display: none; } }
.vs-table { table-layout: fixed; width: 100%; }
.vs-table th.num { width: 5.2rem; white-space: normal; line-height: 1.2; }
.vs-table th.num:last-child { width: 6.4rem; }
.vs-table td, .vs-table th { padding-left: .5rem; padding-right: .5rem; }
.vs-bar-cell { max-width: none; }
.stat-grid.vs-kpis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.vs-grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

/* --------------------------------------------------------------------------
   v2.4.0 detail pages: aligned key/value grids, summary hero, two-column
   layout with a sticky decision panel, document gallery, vertical steps.
   -------------------------------------------------------------------------- */
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--kv-min, 340px)), 1fr)); gap: 0 var(--space-6); margin: 0; }
.kv-1 { grid-template-columns: 1fr; } .kv-3 { --kv-min: 250px; }
.kv-item { display: grid; grid-template-columns: minmax(8.5rem, 40%) 1fr; gap: var(--space-3); align-items: baseline; padding: var(--space-3) 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.kv-item.kv-wide { grid-column: 1 / -1; }
.kv dt { color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.lang-am .kv dt, html[lang="am"] .kv dt { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.kv-empty { color: var(--muted); font-weight: 400; }
@media (max-width: 760px) { .kv-item, .kv-item.kv-wide { grid-template-columns: minmax(7rem, 38%) 1fr; } }
.card-head-aside { display: flex; gap: var(--space-2); align-items: center; }

.profile-hero { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); flex-wrap: wrap;
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 9%, var(--surface)), var(--surface) 55%, color-mix(in srgb, var(--accent) 10%, var(--surface))); }
.profile-hero-id { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.profile-hero h2 { margin: 0 0 var(--space-2); font-size: 1.35rem; }
.profile-photo { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); }
.avatar-xl { width: 76px; height: 76px; border-radius: 18px; font-size: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-facts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-2) var(--space-4); min-width: 150px; }
.hero-facts span { display: flex; align-items: center; gap: var(--space-2); color: var(--muted); font-size: .8rem; }
.hero-facts .icon { width: .95rem; height: .95rem; color: var(--primary-text); }
.hero-facts b { display: block; font-size: 1rem; margin-top: 2px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: var(--space-5); align-items: start; }
.detail-main > .card, .detail-side > .card { margin-bottom: var(--space-5); }
.detail-side { position: sticky; top: calc(var(--space-5) + 56px); }
@media (max-width: 1080px) { .detail-layout { grid-template-columns: 1fr; } .detail-side { position: static; } }
.card.action-card { border-top: 3px solid var(--line); }
.card.action-card.is-positive { border-top-color: var(--success); }
.card.action-card.is-negative { border-top-color: var(--danger); }
.action-card .card-head { margin-bottom: var(--space-3); }
.note-quote { margin: var(--space-3) 0; padding: var(--space-3) var(--space-4); border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; }

.doc-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--space-4); }
.doc-gallery a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); background: var(--surface); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.doc-gallery a:hover { box-shadow: var(--elev-2, 0 6px 18px rgba(0,0,0,.08)); transform: translateY(-1px); }
.doc-gallery img, .doc-file { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.doc-file { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); color: var(--primary-text); }
.doc-file .icon { width: 36px; height: 36px; }
.doc-file small { font-weight: 800; letter-spacing: .08em; }
.doc-cap { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3); border-top: 1px solid var(--line); }
.doc-cap small { color: var(--muted); overflow-wrap: anywhere; }

.steps-v { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.steps-v li { position: relative; padding: 0 0 var(--space-4) 2rem; display: flex; flex-direction: column; }
.steps-v li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); box-sizing: border-box; }
.steps-v li::after { content: ""; position: absolute; left: calc(.55rem - 1px); top: 1.35rem; bottom: .1rem; width: 2px; background: var(--line); }
.steps-v li:last-child { padding-bottom: 0; } .steps-v li:last-child::after { display: none; }
.steps-v li.done::before { background: var(--success); border-color: var(--success); }
.steps-v li.done::after { background: var(--success); }
.steps-v li.current::before { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); }
.steps-v li.is-rejected.done::before { background: var(--danger); border-color: var(--danger); }
.steps-v li:not(.done):not(.current) b { color: var(--muted); font-weight: 600; }
.steps-v small { color: var(--muted); }

/* v2.4.0: older detail lists (.meta) get aligned rows and a dash for empty values */
.meta { gap: 0; }
.meta > dt { padding-right: var(--space-5) !important; }
.meta.two-col > dd { padding-right: var(--space-6); }
.meta > dt, .meta > dd { padding: var(--space-3) 0; border-bottom: 1px dashed var(--line); }
.meta > dd:empty::before { content: "—"; color: var(--muted); font-weight: 400; }
@media (max-width: 520px) { .meta > dt { border-bottom: 0; padding-bottom: 0; } .meta > dd { margin-bottom: 0; } }
/* v2.4.0: disclosure sections inside admin cards look like expandable panels, not bare browser triangles */
.admin-main .card details:not(.side-group):not(.faq-item):not(.export-menu) { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 var(--space-3); background: var(--surface); }
.admin-main .card details:not(.side-group):not(.faq-item):not(.export-menu) > summary { cursor: pointer; list-style: none; padding: var(--space-3) var(--space-4); font-weight: 650; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.admin-main .card details:not(.side-group):not(.faq-item):not(.export-menu) > summary::-webkit-details-marker { display: none; }
.admin-main .card details:not(.side-group):not(.faq-item):not(.export-menu) > summary::after { content: ""; width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); flex: none; opacity: .6; }
.admin-main .card details[open]:not(.side-group):not(.faq-item):not(.export-menu) > summary::after { transform: rotate(-135deg); }
.admin-main .card details:not(.side-group):not(.faq-item):not(.export-menu)[open] > :not(summary) { margin-left: var(--space-4); margin-right: var(--space-4); }
.admin-main .card details:not(.side-group):not(.faq-item):not(.export-menu)[open] > :last-child { margin-bottom: var(--space-4); }

/* v2.4.0 — follow-up timeline (member page), sub-cards, policy overview */
.timeline { list-style: none; margin: var(--space-3) 0; padding: 0 0 0 var(--space-5); border-left: 2px solid var(--line); }
.timeline-item { position: relative; padding: 0 0 var(--space-4) var(--space-2); }
.timeline-item::before { content: ""; position: absolute; left: calc(-1 * var(--space-5) - 6px); top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--surface); }
.timeline-item p { margin: var(--space-1) 0; }
.timeline-head { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.timeline-item .inline-form { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: flex-end; }
.timeline-item .inline-form .field { margin: 0; min-width: 16rem; }
.card-sub { margin-top: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.card-sub > summary { cursor: pointer; padding: var(--space-3) var(--space-4); font-weight: 600; }
.card-sub > form { padding: 0 var(--space-4) var(--space-4); }
.policy-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.policy-card { display: flex; flex-direction: column; gap: var(--space-2); }
.policy-card h2 { font-size: 1rem; margin: 0; display: flex; gap: var(--space-2); align-items: center; }
.policy-card .policy-code { font: 600 .75rem/1 var(--font-mono, monospace); color: var(--muted); }
.policy-card ul { margin: 0; padding-left: var(--space-4); }
.policy-card .actions { margin-top: auto; }

/* v2.4.0 S5: phone widths (also the Android app) — the language switch stays on one line and leaves room for the page title */
@media (max-width: 560px) {
  .lang-switch { flex-wrap: nowrap; flex-shrink: 0; }
  .lang-switch a, .lang-switch button { white-space: nowrap; padding: .14rem .45rem; font-size: .76rem; }
  .top-sep { display: none; }
}

/* ==== v2.5 — six more hero layouts (Admin → System → Settings → General → Home page hero layout) ==== */
/* Spotlight: full photo + quick-actions bar */
.hero-spot { color: #fff; background: rgb(var(--shade-rgb)); padding: 0; min-height: clamp(560px, 80vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.hero-spot::before { display: none; }
.sp-media { position: absolute; inset: 0; z-index: -1; }
.sp-media picture, .sp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-media img { animation: sp-drift 18s var(--ease) both; }
@keyframes sp-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.sp-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--shade-rgb) / .88) 0%, rgb(var(--shade-rgb) / .6) 45%, rgb(var(--shade-rgb) / .15) 80%), linear-gradient(0deg, rgb(var(--shade-rgb) / .8) 0%, transparent 45%); }
.hero-spot.no-photo { background: linear-gradient(135deg, rgb(var(--shade-rgb)), var(--primary-strong)); }
.sp-body { padding-top: var(--space-8); padding-bottom: var(--space-7); }
.sp-copy { max-width: 640px; }
.hero-spot h1 { color: #fff; }
.hero-spot .lead { color: rgba(255,255,255,.9); }
.hero-spot .eyebrow { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; box-shadow: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sp-bar-wrap { padding-bottom: var(--space-6); }
.sp-bar { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--elev-3); }
@media (min-width: 640px) { .sp-bar { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sp-bar { grid-template-columns: repeat(4, 1fr); } }
.sp-act { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); background: var(--surface); color: var(--text); text-decoration: none; transition: background .2s, transform .2s var(--ease); min-height: 76px; }
.sp-act:hover { background: var(--primary-50); }
.sp-act .tile { width: 44px; height: 44px; transition: transform .25s var(--ease); }
.sp-act:hover .tile { transform: translateY(-2px) rotate(-4deg); }
.sp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.sp-t strong { font-size: 1rem; }
.sp-t span { font-size: .86rem; color: var(--muted); }
.sp-go { color: var(--primary-text); transition: transform .2s var(--ease); flex: none; }
.sp-act:hover .sp-go { transform: translateX(4px); }

/* Service cards: a fan that opens on hover / focus */
@media (min-width: 980px) { .hero-cards .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hc-fan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.hc-card a { position: relative; display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); color: var(--text); text-decoration: none; box-shadow: var(--elev-2); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.hc-card a:hover, .hc-card a:focus-visible { border-color: var(--primary-300); box-shadow: var(--elev-3); }
.hc-title { font-size: 1.12rem; margin-top: .35rem; }
.hc-fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem; }
.hc-fig .small { width: 100%; }
.hc-fig b { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.1; color: var(--primary-text); letter-spacing: -.02em; }
.hc-text { color: var(--muted); font-size: .92rem; }
.hc-go { margin-top: auto; padding-top: .4rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .9rem; color: var(--primary-text); }
.hc-go .icon { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.hc-card a:hover .hc-go .icon { transform: translateX(4px); }
.hc-c4 a { background: var(--primary); color: var(--primary-contrast); border-color: transparent; }
.hc-c4 .hc-text, .hc-c4 .hc-go { color: inherit; opacity: .92; }
.hc-c4 .tile { background: color-mix(in srgb, var(--primary-contrast) 16%, transparent); color: var(--primary-contrast); }
.quick-wrap.quick-wrap-flat { margin-top: var(--space-7); }
@media (min-width: 980px) {
  .hc-fan { gap: var(--space-4); padding: var(--space-4) 0 var(--space-6); }
  .hc-card { transition: transform .5s var(--ease); }
  .hc-c1 { transform: rotate(-4deg) translateY(6px); }
  .hc-c2 { transform: rotate(3deg) translateY(34px); }
  .hc-c3 { transform: rotate(-2.5deg) translateY(-4px); }
  .hc-c4 { transform: rotate(4deg) translateY(24px); }
  .hc-fan:hover .hc-card, .hc-fan:focus-within .hc-card { transform: none; }
  .hc-fan:hover .hc-c2, .hc-fan:focus-within .hc-c2, .hc-fan:hover .hc-c4, .hc-fan:focus-within .hc-c4 { transform: translateY(20px); }
  .hc-card a { min-height: 230px; }
  .hc-card:hover a, .hc-card:focus-within a { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) { .hc-card, .hc-card a { transform: none !important; transition: none; } }
@media (max-width: 420px) { .hc-fan { grid-template-columns: 1fr; } }

/* Membership journey: timeline of joining steps */
@media (min-width: 980px) { .hero-journey .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.hj-photo { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--elev-3); }
.hj-photo picture, .hj-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hj-track { position: relative; margin-top: var(--space-7); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--elev-2); padding: var(--space-5); }
@media (min-width: 768px) { .hj-track { padding: var(--space-6); } }
.hj-head { font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); margin: 0 0 var(--space-5); }
.hj-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); position: relative; counter-reset: none; }
.hj-steps::before { content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 3px; border-radius: 3px; background: linear-gradient(var(--primary), var(--accent)); opacity: .35; }
.hj-step a { position: relative; display: grid; grid-template-columns: 52px 1fr; column-gap: var(--space-4); row-gap: .15rem; color: var(--text); text-decoration: none; padding: .35rem; border-radius: var(--radius); transition: background .2s; }
.hj-step a > :not(.hj-node) { grid-column: 2; }
.hj-step a:hover { background: var(--primary-50); }
.hj-node { grid-row: 1 / span 4; width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: var(--primary-contrast); box-shadow: 0 0 0 6px var(--surface), var(--elev-2); position: relative; z-index: 1; transition: transform .3s var(--ease); }
.hj-step:nth-child(2) .hj-node { background: var(--accent); color: var(--accent-contrast); }
.hj-step:nth-child(3) .hj-node { background: var(--success); color: #fff; }
.hj-step a:hover .hj-node { transform: scale(1.08); }
.hj-n { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hj-step strong { font-size: 1.05rem; }
.hj-go { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; font-size: .88rem; color: var(--primary-text); margin-top: .2rem; }
.hj-go .icon { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.hj-step a:hover .hj-go .icon { transform: translateX(4px); }
@media (min-width: 860px) {
  .hj-steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
  .hj-steps::before { left: 40px; right: 40px; top: 31px; bottom: auto; width: auto; height: 3px; }
  .hj-step a { display: flex; flex-direction: column; align-items: flex-start; padding: var(--space-2); }
  .hj-node { margin-bottom: var(--space-3); }
}
.js .hj-track:not(.in) .hj-node { transform: scale(.6); opacity: 0; }
.hj-track.in .hj-node { animation: hj-pop .5s var(--ease) both; }
.hj-track.in .hj-step:nth-child(2) .hj-node { animation-delay: .15s; }
.hj-track.in .hj-step:nth-child(3) .hj-node { animation-delay: .3s; }
@keyframes hj-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Newsroom: latest news + next event */
@media (min-width: 980px) { .hero-news .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.hn-board { display: grid; gap: var(--space-3); }
.hn-lead { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--elev-3); }
.hn-img { aspect-ratio: 16 / 8; overflow: hidden; background: var(--primary-100); }
.hn-img picture, .hn-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.hn-lead:hover .hn-img img { transform: scale(1.04); }
.hn-body { padding: var(--space-5); }
.hn-kicker { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text, var(--primary-text)); }
.hn-kicker .icon { width: .95rem; height: .95rem; }
.hn-title { font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem); margin: .4rem 0 .4rem; line-height: 1.25; }
.hn-title a { color: var(--text); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.hn-title a:hover, .hn-title a:focus-visible { background-size: 100% 2px; }
.hn-body p { color: var(--muted); margin: 0; }
.hn-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.hn-list li + li { border-top: 1px solid var(--line); }
.hn-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); padding: .8rem var(--space-4); color: var(--text); text-decoration: none; font-weight: 600; }
.hn-list a:hover { background: var(--primary-50); }
.hn-list time { font-size: .8rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.hn-list .icon { color: var(--primary-text); width: 1rem; height: 1rem; }
.hn-event { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4); border-radius: var(--radius-lg); background: var(--primary); color: var(--primary-contrast); text-decoration: none; box-shadow: var(--elev-2); transition: transform .2s var(--ease); }
.hn-event:hover { transform: translateY(-2px); }
.hn-event .hn-kicker, .hn-event .muted { color: inherit; opacity: .9; }
.hn-ev-t { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.hn-ev-t strong { font-size: 1.05rem; }
.hn-ev-t .small .icon { width: .9rem; height: .9rem; vertical-align: -2px; }
.hn-photo .frame { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--elev-3); }
.hn-photo picture, .hn-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hn-photo p { margin-top: var(--space-3); }
@media (max-width: 420px) { .hn-list a { grid-template-columns: 1fr auto; } .hn-list time { grid-column: 1 / -1; } }

/* Bold type: no photos, theme colours */
.hero-type { padding: var(--space-9) 0 0; text-align: center; background: var(--bg); }
.hero-type::before { mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 70%); }
.ht-glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ht-glow i { position: absolute; width: 42vw; max-width: 560px; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: .32; }
.ht-glow i:nth-child(1) { background: var(--primary); left: -8%; top: -18%; }
.ht-glow i:nth-child(2) { background: var(--accent); right: -10%; top: 6%; }
.ht-glow i:nth-child(3) { background: var(--brand-1); left: 32%; bottom: -30%; opacity: .22; }
@media (prefers-reduced-motion: no-preference) { .ht-glow i { animation: ht-float 16s ease-in-out infinite alternate; } .ht-glow i:nth-child(2) { animation-duration: 20s; animation-direction: alternate-reverse; } .ht-glow i:nth-child(3) { animation-duration: 24s; } }
@keyframes ht-float { to { transform: translate(6%, 8%) scale(1.12); } }
.ht-body { position: relative; display: flex; flex-direction: column; align-items: center; padding-bottom: var(--space-8); }
.hero-type .ht-title { max-width: 18ch; margin-inline: auto; font-size: clamp(2.6rem, 1.2rem + 6vw, 6rem); line-height: 1; letter-spacing: -.045em; font-weight: 800; background: linear-gradient(120deg, var(--text) 0%, var(--primary-text) 45%, color-mix(in srgb, var(--accent) 72%, var(--text)) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.lang-am .hero-type .ht-title { line-height: 1.2; letter-spacing: 0; font-size: clamp(2.2rem, 1.1rem + 4.6vw, 4.6rem); }
@media (forced-colors: active) { .hero-type .ht-title { color: CanvasText; background: none; } }
.ht-rotate { font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); font-weight: 700; color: var(--text-soft); margin-bottom: var(--space-4); }
.hero-type .lead { margin-inline: auto; }
.hero-type .hero-actions { justify-content: center; }
.ht-ribbon { position: relative; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); overflow: hidden; padding: .9rem 0; }
.ht-run { display: flex; width: max-content; }
.ht-run ul { list-style: none; margin: 0; padding: 0 var(--space-4) 0 0; display: flex; gap: var(--space-6); }
.ht-run li { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: clamp(1rem, .9rem + .5vw, 1.3rem); letter-spacing: -.01em; white-space: nowrap; color: var(--primary-text); }
.ht-run li .icon { width: 1rem; height: 1rem; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .ht-run { animation: ht-marquee 38s linear infinite; } .ht-ribbon:hover .ht-run { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .ht-run { flex-wrap: wrap; width: auto; justify-content: center; } .ht-run ul[aria-hidden] { display: none; } .ht-run ul { flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-6); } }
@keyframes ht-marquee { to { transform: translateX(-50%); } }

/* Split screen: save | borrow */
.hero-duo { padding: var(--space-7) 0 0; }
.hd-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: var(--space-6); }
.hero-duo h1 { margin-inline: auto; max-width: 20ch; }
.hero-duo .lead { margin-inline: auto; margin-bottom: 0; }
.hd-split { position: relative; display: flex; flex-direction: column; min-height: 520px; }
@media (min-width: 900px) { .hd-split { flex-direction: row; min-height: clamp(460px, 62vh, 620px); } }
.hd-half { position: relative; flex: 1 1 0; display: flex; align-items: flex-end; min-height: 300px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; background: rgb(var(--shade-rgb)); transition: flex-grow .6s var(--ease); }
.hd-borrow { background: var(--primary-strong); }
@media (min-width: 900px) { .hd-split:hover .hd-half:hover, .hd-half:focus-visible { flex-grow: 1.45; } }
.hd-media { position: absolute; inset: 0; z-index: -1; }
.hd-media picture, .hd-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.hd-half:hover .hd-media img { transform: scale(1.05); }
.hd-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(var(--shade-rgb) / .9) 0%, rgb(var(--shade-rgb) / .45) 50%, rgb(var(--shade-rgb) / .12) 100%); }
.hd-borrow .hd-media::after { background: linear-gradient(0deg, color-mix(in srgb, var(--primary-strong) 92%, transparent) 0%, color-mix(in srgb, var(--primary-strong) 45%, transparent) 50%, transparent 100%); }
.hd-copy { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; padding: var(--space-6) clamp(1.25rem, 4vw, 3.5rem); max-width: 560px; }
.hd-copy .tile { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hd-title { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); line-height: 1.05; letter-spacing: -.03em; }
.hd-text { color: rgba(255,255,255,.9); font-size: 1.02rem; max-width: 44ch; }
.hd-fig { font-weight: 800; color: var(--accent); background: rgba(0,0,0,.25); padding: .2rem .65rem; border-radius: var(--pill); font-size: .9rem; }
.hd-copy .btn { margin-top: .4rem; pointer-events: none; }
.hd-half:hover .hd-copy .btn .icon { transform: translateX(4px); }
.hd-copy .btn .icon { transition: transform .2s var(--ease); }
.hd-or { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; box-shadow: var(--elev-3); pointer-events: none; }
@media (max-width: 899.98px) { .hd-or { display: none; } }
@media (prefers-reduced-motion: reduce) { .hd-half, .hd-media img, .sp-media img { transition: none; animation: none; } }

/* ==== v2.5 — public menu drawer: smoother open/close, accordion submenus, clearer type ==== */
.nav-burger { gap: .5rem; width: auto; min-width: 44px; padding: 0 .7rem; border-radius: var(--pill); }
.burger { position: relative; width: 20px; height: 14px; display: inline-block; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease), width .3s var(--ease); }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; width: 70%; }
.burger i:nth-child(3) { top: 12px; }
.nav-burger:hover .burger i:nth-child(2) { width: 100%; }
.nav-burger[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: translateX(6px); }
.nav-burger[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.burger-txt { font-weight: 700; font-size: .88rem; letter-spacing: .02em; }
@media (max-width: 380px) { .burger-txt { display: none; } .nav-burger { padding: 0; width: 44px; } }
.sub-toggle { display: none; }
.drawer-foot { display: none; }
.drawer-brand { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; }
.drawer-brand strong { font-size: 1rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.drawer-brand .brand-logo, .drawer-brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.drawer-brand .brand-mark { width: 40px; height: 40px; flex: none; }

@media (max-width: 1099.98px) {
  .site-nav { width: min(400px, 92vw); padding: 0; gap: 0; border-radius: 22px 0 0 22px; transform: translateX(104%); transition: transform .42s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .42s; box-shadow: -24px 0 60px -20px rgb(0 0 0 / .35); overflow: hidden; }
  .site-nav.open { transform: none; transition: transform .42s cubic-bezier(.32, .72, 0, 1), visibility 0s; }
  @media (max-width: 479.98px) { .site-nav { width: 100vw; border-radius: 0; } }
  .site-nav .drawer-head { position: sticky; top: 0; z-index: 1; gap: var(--space-3); padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5); background: var(--surface); border-bottom: 1px solid var(--line); }
  .site-nav .drawer-close { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); border-color: transparent; transition: transform .3s var(--ease), background .2s; }
  .site-nav .drawer-close:hover { background: var(--primary-100); transform: rotate(90deg); }
  .site-nav .nav-list { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-3) var(--space-4) var(--space-4); }
  .site-nav .nav-list > li { position: relative; border-bottom: 0; }
  .site-nav .nav-list > li + li { border-top: 1px solid var(--line); }
  .site-nav .nav-list > li > a { font-size: 1.08rem; font-weight: 650; letter-spacing: -.005em; padding: .95rem .75rem; min-height: 54px; border-radius: var(--radius); transition: background .2s, color .2s, padding-left .25s var(--ease); }
  .site-nav .nav-list > li > a:hover { padding-left: 1rem; }
  .site-nav .nav-list > li > a[aria-current="page"] { color: var(--primary-text); background: var(--primary-100); box-shadow: inset 3px 0 0 var(--accent); }
  .site-nav .has-sub > a { padding-right: 3.6rem; }
  .site-nav .has-sub > a .caret { display: none; }
  .site-nav .sub-toggle { display: inline-flex; align-items: center; justify-content: center; position: absolute; right: .25rem; top: 5px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
  .site-nav .sub-toggle:hover { background: var(--surface-2); color: var(--text); }
  .site-nav .sub-toggle .icon { width: 20px; height: 20px; transition: transform .35s var(--ease); }
  .site-nav .sub-toggle[aria-expanded="true"] { color: var(--primary-text); background: var(--primary-100); }
  .site-nav .sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .js .site-nav .sub { max-height: 0; overflow: hidden; visibility: hidden; padding: 0; transition: max-height .38s var(--ease), visibility 0s linear .38s; }
  .js .site-nav .sub-open > .sub { visibility: visible; transition: max-height .38s var(--ease), visibility 0s; }
  .site-nav .sub { margin: 0 0 0 1.1rem; border-left: 2px solid var(--line); }
  .site-nav .sub li:first-child { padding-top: .2rem; }
  .site-nav .sub li:last-child { padding-bottom: .55rem; }
  .site-nav .sub a { font-size: .98rem; font-weight: 550; color: var(--text-soft); padding: .6rem .85rem; margin-left: -2px; border-left: 2px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
  .site-nav .sub a:hover { color: var(--primary-text); background: var(--primary-50); border-left-color: var(--primary-300); }
  .site-nav .sub a[aria-current="page"] { color: var(--primary-text); background: var(--primary-100); border-left-color: var(--accent); font-weight: 700; }
  .site-nav .nav-actions { margin-top: 0; padding: var(--space-4) var(--space-5); border-top: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: var(--space-3); }
  .site-nav .nav-actions .btn { width: 100%; min-width: 0; min-height: 48px; justify-content: center; font-size: .98rem; white-space: normal; text-align: center; line-height: 1.2; }
  .site-nav .nav-actions .btn:only-child { grid-column: 1 / -1; }
  .site-nav .nav-actions .lbl-long { position: static; width: auto; height: auto; clip: auto; }
  .site-nav .nav-actions .lbl-short { display: none; }
  .drawer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem var(--space-4); padding: 0 var(--space-5) calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); background: var(--surface); font-size: .88rem; }
  .drawer-foot a:not(.lang-switch a) { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); text-decoration: none; min-height: 36px; }
  .drawer-foot a:not(.lang-switch a):hover { color: var(--primary-text); }
  .drawer-foot .icon { width: 1rem; height: 1rem; }
  .drawer-foot .lang-switch { margin-left: auto; }
  /* Items glide in one after another when the drawer opens. */
  .site-nav .nav-list > li, .site-nav .nav-actions, .site-nav .drawer-foot { opacity: 0; transform: translateX(22px); transition: opacity .25s, transform .25s var(--ease); }
  .site-nav.open .nav-list > li, .site-nav.open .nav-actions, .site-nav.open .drawer-foot { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .5s cubic-bezier(.32, .72, 0, 1); }
  .site-nav.open .nav-list > li:nth-child(1) { transition-delay: .08s; } .site-nav.open .nav-list > li:nth-child(2) { transition-delay: .11s; }
  .site-nav.open .nav-list > li:nth-child(3) { transition-delay: .14s; } .site-nav.open .nav-list > li:nth-child(4) { transition-delay: .17s; }
  .site-nav.open .nav-list > li:nth-child(5) { transition-delay: .2s; } .site-nav.open .nav-list > li:nth-child(6) { transition-delay: .23s; }
  .site-nav.open .nav-list > li:nth-child(7) { transition-delay: .26s; } .site-nav.open .nav-list > li:nth-child(8) { transition-delay: .29s; }
  .site-nav.open .nav-list > li:nth-child(n+9) { transition-delay: .32s; }
  .site-nav.open .nav-actions { transition-delay: .3s; } .site-nav.open .drawer-foot { transition-delay: .36s; }
  .nav-scrim { background: rgb(var(--shade-rgb) / .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition: opacity .38s var(--ease), visibility 0s linear .38s; }
  .nav-scrim.open { transition: opacity .38s var(--ease), visibility 0s; }
}
@media (max-width: 1099.98px) and (prefers-reduced-motion: reduce) {
  .site-nav, .site-nav.open, .site-nav .nav-list > li, .site-nav .nav-actions, .site-nav .drawer-foot, .js .site-nav .sub, .nav-scrim { transition-duration: .01s !important; transition-delay: 0s !important; }
  .site-nav .nav-list > li, .site-nav .nav-actions, .site-nav .drawer-foot { transform: none; }
}
@media (min-width: 1100px) { .burger-txt { display: none; } .site-header .site-nav .drawer-foot { display: none; } }

/* ==========================================================================
   v2.6.0 — public typography (frontend-design pass)
   Headings on public pages use the condensed display face, so the type itself carries the Maleda wordmark.
   Small labels on public pages are set in sentence case without wide tracking, so headings lead and labels support.
   Scoped to .site (public layout); the admin and member areas keep Noto Sans.
   ========================================================================== */
.site h1, .site h2, .site h3, .site .display { font-family: var(--font-display); letter-spacing: -.005em; font-stretch: normal; }
.site h1 { line-height: 1.04; }
.site h2 { line-height: 1.1; }
.site h3 { letter-spacing: 0; line-height: 1.18; }
.site .hero h1 { letter-spacing: -.01em; line-height: 1.0; }
.site.lang-am h1, .site.lang-am h2, .site.lang-am h3, .site.lang-am .hero h1 { line-height: 1.3; letter-spacing: 0; }
.site .eyebrow, .site .hn-kicker, .site .hj-n, .site .footer-head, .site .or-divider, .site .split-cols h3, .site .contact-list small, .site .facts dt {
  text-transform: none; letter-spacing: 0; }
.site .eyebrow { font-size: .9rem; font-weight: 700; }
.site .hn-kicker { font-size: .88rem; }
.site .hj-n { font-family: var(--font-display); font-size: .95rem; font-weight: 700; }
.site .footer-head { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; opacity: .85; }
.site .hd-or { text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-size: .95rem; }
/* v2.6.0 — the desktop "Log in" button sits on the header colour, so it takes the header text colour (contrast-checked as
   header-text on header-bg) instead of the link colour, which is only checked on light surfaces. In the mobile drawer it
   sits on the surface and keeps the link colour. */
@media (min-width: 1100px) {
  .site-header .site-nav .nav-actions .btn-ghost { --btn-fg: var(--header-text); --btn-bd: color-mix(in srgb, var(--header-text) 42%, transparent); }
  .site-header .site-nav .nav-actions .btn-ghost:hover { --btn-bg: color-mix(in srgb, var(--header-text) 10%, transparent); }
}
/* v2.6.0 — current/active items on the primary tint use the tint-safe text colour (themes whose primary is amber). */
.site-nav a[aria-current="page"], .site-header .site-nav .sub a:hover, .portal-side a[aria-current="page"], .tabbar a[aria-current="page"],
.toc li a:hover, .toc li a[aria-current="true"], .ss-chip { color: var(--primary-text-tint); }
@media (max-width: 1099.98px) {
  .site-nav .nav-list > li > a[aria-current="page"], .site-nav .sub-toggle[aria-expanded="true"], .site-nav .sub a[aria-current="page"] { color: var(--primary-text-tint); }
}

/* ==========================================================================
   v2.7.0 — public site, editorial pass
   Bigger display type, calmer surfaces, a rising-sun motif taken from the Maleda logo, and a new footer.
   Every colour is a theme token or a color-mix() of tokens, so all twelve themes keep working; scoped to .site.
   ========================================================================== */
.site { --ink-line: color-mix(in srgb, var(--text) 10%, transparent); --sun: var(--accent); }

/* Type scale */
.site .hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.2vw, 5rem); line-height: .98; letter-spacing: -.01em; max-width: 18ch; margin-bottom: var(--space-5); }
.site .hero .lead { font-size: clamp(1.06rem, .98rem + .35vw, 1.28rem); line-height: 1.55; max-width: 46ch; }
.site .hero:not(.hero-spot) .lead { color: var(--text-soft); }
.site .section-head h2, .site .two-col h2, .site .split h2 { font-size: clamp(2rem, 1.25rem + 2.7vw, 3.35rem); line-height: 1.02; letter-spacing: -.008em; }
.site .section-head p { font-size: 1.05rem; }
.site.lang-am .hero h1 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.6rem); line-height: 1.22; }
.site.lang-am .section-head h2, .site.lang-am .two-col h2, .site.lang-am .split h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.3; }
.site .eyebrow { padding: .3rem .8rem .3rem .65rem; border-radius: var(--pill); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--primary-text-tint); font-size: .84rem; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
html[data-theme] .site .eyebrow::before, html[data-theme] .site .eyebrow.plain::before, html[data-theme] .site .hero .eyebrow::before { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }
.site .eyebrow .dot { display: none; }
.site .section { padding-top: clamp(2.75rem, 2rem + 2.5vw, 4.5rem); padding-bottom: clamp(2.75rem, 2rem + 2.5vw, 4.5rem); }
/* v2.8.0: two sections with the same background share one gap instead of two. */
.site .section:not(.section-alt):not(.section-tint) + .section:not(.section-alt):not(.section-tint) { padding-top: 0; }

/* Header */
.site .topbar { font-size: .8rem; }
/* The blur sits on a pseudo-element: backdrop-filter on the header itself would become the containing block of the fixed mobile drawer. */
.site .site-header { background: transparent; }
.site .site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: color-mix(in srgb, var(--header-bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); }
.site .site-header::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--brand-sheen); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.site .site-header.is-scrolled::after { transform: scaleX(1); }
.site .brand-name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 800; letter-spacing: .005em; line-height: 1.05; }
.site.lang-am .brand-name { font-size: 1.12rem; }
.site .brand-logo img, .site .brand > picture img { border-radius: 50%; box-shadow: 0 0 0 2px var(--header-bg), 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }
@media (min-width: 1100px) {
  .site .site-header .nav-list > li > a { position: relative; background: transparent; box-shadow: none; }
  .site .site-header .nav-list > li > a::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .3rem; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
  .site .site-header .nav-list > li > a:hover { background: transparent; }
  .site .site-header .nav-list > li > a:hover::after, .site .site-header .nav-list > li > a[aria-current="page"]::after, .site .site-header .nav-list > li.is-current > a::after { transform: scaleX(1); }
  .site .site-header .nav-list > li > a[aria-current="page"] { color: inherit; background: transparent; box-shadow: none; }
}

/* Hero: rising-sun rays behind the text column + trust list */
.site .hero { isolation: isolate; }
.site .hero-cards::before, .site .hero-news::before, .site .hero:not([class*="hero-"])::before {
  content: ""; position: absolute; z-index: -1; left: -18vmax; bottom: -42vmax; width: 84vmax; height: 84vmax; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--sun) 13%, transparent) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 18%, transparent 72%); mask: radial-gradient(closest-side, #000 18%, transparent 72%); }
.hero-trust { list-style: none; margin: var(--space-6) 0 0; padding: var(--space-4) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); border-top: 1px solid var(--ink-line, var(--line)); font-size: .92rem; font-weight: 600; color: var(--text-soft); max-width: 40rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-trust .icon { width: 1.05rem; height: 1.05rem; color: var(--primary-text); }
.hero-spot .hero-trust { color: inherit; border-color: color-mix(in srgb, #fff 26%, transparent); }
.hero-spot .hero-trust .icon { color: var(--accent); }
.site .hc-fan .hc-card a { border-radius: calc(var(--radius) * 1.8); }
.site .hc-fig b { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.7rem); line-height: 1; }

/* Product cards */
.site .product-card { border-radius: calc(var(--radius) * 1.6); padding: var(--space-6) var(--space-5) var(--space-5); overflow: hidden; }
.site .product-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand-sheen); transform: scaleX(.18); transform-origin: left; transition: transform .45s var(--ease); }
.site .product-card:hover::before, .site .product-card:focus-within::before { transform: scaleX(1); }
.site .product-card h3 { font-size: 1.32rem; }
.site .product-card .rate b { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 1.6vw, 3.4rem); letter-spacing: -.01em; }
.site .product-card .foot { border-top: 1px dashed var(--line); }

/* Membership flow: connected numbered steps */
.site .flow li { padding-top: var(--space-6); border-radius: calc(var(--radius) * 1.6); }
.site .flow li::before { font-family: var(--font-display); font-size: 3.4rem; color: color-mix(in srgb, var(--accent) 34%, var(--surface)); top: var(--space-3); }
.site .flow li strong { font-family: var(--font-display); font-size: 1.35rem; }

/* Quick links row */
.site .quick { border-radius: calc(var(--radius) * 1.6); }
.site .quick strong { font-family: var(--font-display); font-size: 1.22rem; }

/* Visitor counter: a quiet strip instead of a large card */
.site .vc-section { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.site .vc { background: transparent; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: var(--space-5) 0; display: grid; gap: var(--space-4); }
.site .vc::after, .site .vc::before { display: none; }
.site .vc-head h2 { font-size: 1.15rem; }
.site .vc-grid { gap: var(--space-3); }
.site .vc-stat { background: transparent; border: 0; padding: 0; }
.site .vc-stat:hover { transform: none; box-shadow: none; }
.site .vc-num { font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); }
.site .vc-chart { max-width: 34rem; }
.site .vc-bars { height: 64px; }
@media (min-width: 900px) { .site .vc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; } .site .vc-note { grid-column: 1 / -1; margin: 0; } }

/* Inner page head: rays instead of the plain ring */
.site .page-head h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.9rem); line-height: 1; }
.site.lang-am .page-head h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); line-height: 1.25; }
.site .page-head::after { right: -14vmax; top: auto; bottom: -38vmax; width: 60vmax; height: 60vmax; border: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--primary-contrast) 9%, transparent) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 72%); mask: radial-gradient(closest-side, #000 20%, transparent 72%); }

/* --------------------------------------------------------------------------
   v2.7.0 footer
   -------------------------------------------------------------------------- */
.site-footer.sf { padding: clamp(2.5rem, 1.75rem + 2.5vw, 4rem) 0 0; isolation: isolate; }
.sf::before { z-index: 1; }
.sf-glow { position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(60rem 30rem at 85% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
              radial-gradient(40rem 26rem at 0% 100%, color-mix(in srgb, var(--footer-text) 7%, transparent), transparent 70%); }
.sf a { opacity: 1; }
.sf a:hover { text-decoration: none; }

/* Call-to-action card */
.sf-cta { position: relative; overflow: hidden; display: grid; gap: var(--space-5); align-items: center; padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); margin-bottom: clamp(2.25rem, 1.5rem + 2vw, 3.5rem);
  background: var(--accent); color: var(--accent-contrast); border-radius: calc(var(--radius) * 2.4); box-shadow: 0 30px 60px -30px color-mix(in srgb, #000 55%, transparent); }
@media (min-width: 900px) { .sf-cta { grid-template-columns: minmax(0, 1.4fr) auto; } }
.sf-cta > * { position: relative; z-index: 1; }
html[data-theme] .sf-cta h2 { color: var(--accent-contrast); font-size: clamp(2.1rem, 1.3rem + 3vw, 3.9rem); line-height: .98; margin: 0 0 var(--space-3); max-width: 16ch; }
.lang-am .sf-cta h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.25; }
.sf-cta p { margin: 0; max-width: 52ch; font-size: 1.05rem; line-height: 1.55; }
.sf-kicker { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; margin-bottom: var(--space-3) !important; }
.sf-kicker::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.sf-cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.sf .sf-btn-solid { --btn-bg: var(--accent-contrast); --btn-fg: var(--accent); --btn-bd: var(--accent-contrast); }
.sf .sf-btn-solid:hover { --btn-bg: color-mix(in srgb, var(--accent-contrast) 86%, var(--accent)); }
.sf .sf-btn-line { --btn-bg: transparent; --btn-fg: var(--accent-contrast); --btn-bd: color-mix(in srgb, var(--accent-contrast) 55%, transparent); }
.sf .sf-btn-line:hover { --btn-bg: color-mix(in srgb, var(--accent-contrast) 10%, transparent); }
.sf-cta a.btn { color: var(--btn-fg); }
.sf-sun { position: absolute; z-index: 0 !important; right: -6rem; bottom: -15rem; width: 30rem; height: 30rem; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--accent-contrast) 12%, transparent) 0deg 6deg, transparent 6deg 16deg);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 100%); mask: radial-gradient(closest-side, #000 30%, transparent 100%); }
.sf-sun i { position: absolute; inset: 31%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, #fff 45%, var(--accent)), var(--accent) 70%); box-shadow: 0 0 0 1.4rem color-mix(in srgb, var(--accent-contrast) 7%, transparent), 0 0 0 2.8rem color-mix(in srgb, var(--accent-contrast) 4%, transparent); }
@media (max-width: 899.98px) { .sf-sun { right: -12rem; bottom: -18rem; opacity: .7; } }

/* Main grid */
.sf-main { display: grid; gap: var(--space-7) var(--space-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-brand { grid-column: 1 / -1; }
.sf-contact { grid-column: 1 / -1; }
@media (min-width: 760px) { .sf-contact { grid-column: auto; } .sf-main { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sf-main { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } .sf-brand { grid-column: auto; padding-right: var(--space-6); } }
.sf-logo { display: inline-flex; align-items: center; gap: var(--space-4); color: inherit; }
.sf-logo-img { flex: none; width: 88px; height: 88px; border-radius: 50%; padding: 5px; background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 70%, transparent), 0 18px 34px -16px color-mix(in srgb, #000 60%, transparent); overflow: hidden; }
.sf-logo-img img, .sf-logo-img picture { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.sf-logo .brand-mark { width: 72px; height: 72px; border-radius: 20px; }
.sf-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1; letter-spacing: .005em; color: var(--footer-text); }
.lang-am .sf-name { font-size: 1.5rem; line-height: 1.25; }
.sf-name small { display: block; margin-top: .4rem; font-family: var(--font); font-size: .86rem; font-weight: 500; letter-spacing: 0; opacity: .8; }
.sf-about { margin: var(--space-5) 0; max-width: 44ch; color: color-mix(in srgb, var(--footer-text) 84%, var(--footer-bg)); line-height: 1.65; }
.sf-search { align-items: center; max-width: 26rem; border-radius: var(--pill); padding: 4px 4px 4px 1rem; margin-top: 0; }
.sf-search > .icon { width: 1.05rem; height: 1.05rem; opacity: .7; flex: none; }
.sf-search input { padding-left: .6rem; }
.sf-search-go { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-contrast); transition: transform .2s var(--ease); }
.sf-search-go:hover { transform: translateX(2px); }
.sf-search-go:focus-visible { outline: 2px solid var(--footer-text); outline-offset: 2px; }
.sf-social { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sf-social a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--footer-text) 28%, transparent); color: var(--footer-text); transition: background .2s, color .2s, transform .2s var(--ease); }
.sf-social a:hover { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); transform: translateY(-2px); }
.sf-social .icon { width: 1.15rem; height: 1.15rem; }
.sf-head { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; margin: 0 0 var(--space-4); color: var(--footer-text); display: flex; align-items: center; gap: .55rem; }
.sf-head::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); flex: none; }
.lang-am .sf-head { font-size: 1.05rem; }
.sf-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.sf-links a { display: inline-flex; align-items: center; gap: .6rem; padding: .38rem 0; color: color-mix(in srgb, var(--footer-text) 86%, var(--footer-bg)); transition: color .2s, transform .2s var(--ease); }
.sf-links a .icon { width: 1rem; height: 1rem; opacity: .7; flex: none; }
.sf-links a span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.sf-links a:hover { color: var(--footer-text); transform: translateX(3px); }
.sf-links a:hover span { background-size: 100% 1px; }
.sf-address { font-style: normal; display: grid; gap: var(--space-3); margin-bottom: var(--space-4); }
.sf-address:empty { display: none; }
.sf-address > span { display: flex; gap: .6rem; align-items: flex-start; color: color-mix(in srgb, var(--footer-text) 86%, var(--footer-bg)); }
.sf-address .icon { width: 1rem; height: 1rem; margin-top: .25rem; flex: none; opacity: .75; }
.sf-login { margin-top: var(--space-5); display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--footer-text) 22%, transparent); background: color-mix(in srgb, var(--footer-text) 6%, transparent); color: var(--footer-text); font-weight: 700; max-width: 18rem; transition: background .2s, border-color .2s; }
.sf-login:hover { background: color-mix(in srgb, var(--footer-text) 12%, transparent); border-color: var(--accent); }
.sf-login .icon { width: 1.05rem; height: 1.05rem; }
.sf-login .sf-login-go { margin-left: auto; transition: transform .2s var(--ease); }
.sf-login:hover .sf-login-go { transform: translate(2px, -2px); }
.sf-reg { display: flex; gap: .6rem; align-items: flex-start; margin: var(--space-7) 0 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius); background: color-mix(in srgb, var(--footer-text) 6%, transparent); font-size: .9rem; color: color-mix(in srgb, var(--footer-text) 88%, var(--footer-bg)); }
.sf-reg .icon { width: 1.1rem; height: 1.1rem; flex: none; margin-top: .15rem; }

/* Wordmark */
.sf-word { margin: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 1rem + 9.4vw, 10.4rem); line-height: .82; letter-spacing: -.01em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: clip; user-select: none;
  color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--footer-text) 26%, transparent) 0%, color-mix(in srgb, var(--footer-text) 4%, transparent) 92%); -webkit-background-clip: text; background-clip: text; }
.lang-am .sf-word { line-height: 1.1; font-size: clamp(2.4rem, 1rem + 7vw, 7.5rem); }
@media (max-width: 559.98px) { .sf-word { white-space: normal; text-wrap: balance; font-size: clamp(2.6rem, 15vw, 4.4rem); line-height: .9; } }

/* Bottom bar */
.sf-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3) var(--space-5); margin-top: var(--space-5); padding: var(--space-5) 0; border-top: 1px solid color-mix(in srgb, var(--footer-text) 16%, transparent); font-size: .88rem; color: color-mix(in srgb, var(--footer-text) 86%, var(--footer-bg)); }
.sf-bottom p { margin: 0; }
.sf-top { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .55rem .5rem 1rem; border-radius: var(--pill); border: 1px solid color-mix(in srgb, var(--footer-text) 26%, transparent); background: transparent; color: var(--footer-text); font: inherit; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s; }
.sf-top .icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--accent); color: var(--accent-contrast); transition: transform .25s var(--ease); }
.sf-top:hover { border-color: var(--accent); background: color-mix(in srgb, var(--footer-text) 6%, transparent); }
.sf-top:hover .icon { transform: translateY(-3px); }
.sf-top:focus-visible, .sf a:focus-visible, .sf .link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sf .dev-credit { margin: 0; }
@media (max-width: 759.98px) { .sf-bottom { flex-direction: column; align-items: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  .site .site-header::after, .site .product-card::before, .sf-links a, .sf-links a span, .sf-social a, .sf-top .icon, .sf-search-go, .sf-login .sf-login-go { transition: none; }
}
@media (max-width: 559.98px) {
  .sf-cta-actions { flex-direction: column; align-items: stretch; }
  .sf-cta-actions .btn { width: 100%; justify-content: center; }
  .site .vc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site .vc-stat { grid-template-columns: 1fr; text-align: left; }
  .site .vc-stat .tile { display: none; }
  .site .vc-lbl { font-size: .8rem; line-height: 1.3; }
}

/* ==========================================================================
   v2.7.1 — logo sizing. The uploaded logo is drawn in a fixed square box with object-fit: contain, so it can
   never be squeezed by the header flex row (100% zoom on 1100–1440px screens) or distorted by a non-square file.
   ========================================================================== */
.site .site-header .brand > img, .site .site-header .brand > picture, .site .site-header .brand > picture img, .site .site-header .brand .brand-logo {
  flex: 0 0 auto; width: 48px; height: 48px; min-width: 48px; max-width: none; object-fit: contain; aspect-ratio: 1 / 1; }
.site .site-header .brand > picture { display: inline-flex; }
@media (min-width: 1100px) and (max-width: 1440px) {
  .site .site-header .brand > img, .site .site-header .brand > picture, .site .site-header .brand > picture img, .site .site-header .brand .brand-logo { width: 42px; height: 42px; min-width: 42px; }
  .site .site-header .brand-name { font-size: 1.12rem; }
}
.drawer-brand .brand-logo, .drawer-brand picture img { flex: 0 0 auto; aspect-ratio: 1 / 1; }
.sf-logo-img { width: 64px; height: 64px; padding: 4px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent), 0 12px 24px -14px color-mix(in srgb, #000 60%, transparent); }
.sf-logo-img img, .sf-logo-img picture { display: block; aspect-ratio: 1 / 1; }
.sf-logo .brand-mark { width: 56px; height: 56px; border-radius: 16px; }
.sf-logo .sf-name { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.6rem); }
@media (max-width: 560px) { .sf-logo-img { width: 56px; height: 56px; } }

/* ==========================================================================
   v2.7.2 — brand signature on every public page. Two devices from the footer are carried through the site:
   the giant faded wordmark and the logo watermark. The watermark is a silhouette of the organisation's own
   logo (/brand/watermark.png, built from the uploaded file) used as a CSS mask, so it is painted in the
   surrounding text colour and follows every theme. With no logo configured, .has-wm is absent and no
   watermark is drawn.
   ========================================================================== */
.wm { display: none; }
.has-wm .wm { display: block; position: absolute; pointer-events: none; aspect-ratio: 1 / 1; background: currentColor;
  -webkit-mask: var(--wm) center / contain no-repeat; mask: var(--wm) center / contain no-repeat; }

/* Inner page head */
.site .page-head { padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0 clamp(4.5rem, 2.5rem + 6vw, 8.5rem); isolation: isolate; }
.site .page-head::before { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--brand-sheen); z-index: 2; }
.site .ph-wm { right: max(-4rem, calc((100vw - var(--container, 1200px)) / 2 - 6rem)); top: 50%; width: clamp(15rem, 10rem + 18vw, 30rem); transform: translateY(-50%) rotate(-8deg); opacity: .1; z-index: 0; }
.ph-word { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; margin: 0; transform: translateY(34%); text-align: center; white-space: nowrap; overflow: hidden; user-select: none;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 1rem + 10vw, 11.5rem); line-height: .9; letter-spacing: -.01em;
  color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--primary-contrast) 16%, transparent), color-mix(in srgb, var(--primary-contrast) 2%, transparent) 80%); -webkit-background-clip: text; background-clip: text; }
.lang-am .ph-word { font-size: clamp(2.6rem, 1rem + 7vw, 8rem); line-height: 1.15; transform: translateY(30%); }
.site .page-head .head-icon { color: var(--primary-contrast); border-radius: 50%; width: 52px; height: 52px; background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.site .page-head .crumbs a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.site .page-head .crumbs a:hover { background-size: 100% 1px; }
@media (max-width: 759.98px) {
  .site .ph-wm { right: -5rem; top: auto; bottom: -2rem; width: 16rem; transform: rotate(-8deg); opacity: .08; }
  .ph-word { font-size: 11.5vw; transform: translateY(16%); }
  .lang-am .ph-word { font-size: 9vw; transform: translateY(12%); }
}

/* Footer: a large watermark behind the link columns */
.site .sf-wm { color: var(--footer-text); right: -6rem; top: clamp(16rem, 12rem + 10vw, 24rem); width: clamp(18rem, 12rem + 22vw, 34rem); transform: rotate(-10deg); opacity: .045; z-index: -1; }
@media (max-width: 759.98px) { .site .sf-wm { right: -8rem; top: auto; bottom: 10rem; width: 20rem; } }

/* Tinted home sections (calculator, plan): watermark tucked into the right edge */
.site .section-tint { position: relative; overflow: hidden; isolation: isolate; }
.has-wm .site .section-tint::after, .has-wm.site .section-tint::after { content: ""; position: absolute; z-index: -1; pointer-events: none; right: -7rem; top: 2.5rem; width: clamp(16rem, 10rem + 18vw, 28rem); aspect-ratio: 1 / 1;
  background: var(--primary-text); opacity: .05; transform: rotate(12deg); -webkit-mask: var(--wm) center / contain no-repeat; mask: var(--wm) center / contain no-repeat; }

/* News and event cards without a photo: the logo stands in, quietly */
.has-wm .post-card .thumb-wm { background: radial-gradient(120% 90% at 80% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), linear-gradient(140deg, var(--primary-strong, var(--primary)), var(--primary)); color: var(--primary-contrast); }
.has-wm .post-card .thumb-wm::before { content: ""; position: absolute; width: 58%; aspect-ratio: 1 / 1; background: currentColor; opacity: .2; -webkit-mask: var(--wm) center / contain no-repeat; mask: var(--wm) center / contain no-repeat; transition: transform .5s var(--ease); }
.has-wm .post-card:hover .thumb-wm::before { transform: scale(1.05) rotate(-4deg); }
.has-wm .post-card .thumb-wm > .icon { display: none; }

/* FAQ group headings carry the same accent dot as the footer headings */
.site .faq-cat { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); margin-top: var(--space-7); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.site .faq-cat::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); flex: none; }
.site .faq-cat:first-of-type { margin-top: var(--space-4); }

@media (prefers-reduced-motion: reduce) { .has-wm .post-card .thumb-wm::before, .site .page-head .crumbs a { transition: none; } }
@media print { .wm, .ph-word { display: none !important; } }
/* The high-contrast theme keeps text backgrounds plain: no watermark behind content. */
html[data-theme="contrast"] .wm, html[data-theme="contrast"] .site .section-tint::after { display: none; }

/* v2.8.0 — page blocks (Admin → Website → Page blocks): promotions, shortcuts, information, notices and key figures.
   Colours come only from the theme tokens, so every theme styles them. */
.pb-band { padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.pb-band + .section:not(.section-alt):not(.section-tint) { padding-top: clamp(1rem, .5rem + 1vw, 2rem); }
.pb-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.pb-grid.pb-n1 { grid-template-columns: minmax(0, 1fr); }
.pb { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--elev-1); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.pb.is-link:hover { transform: translateY(-3px); box-shadow: var(--elev-2); border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }
.pb.is-link:focus-within { box-shadow: 0 0 0 3px var(--focus); }
.pb-body { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-5); flex: 1; flex-wrap: wrap; }
.pb-copy { flex: 1 1 12rem; min-width: 0; }
.pb-title { font-size: 1.12rem; line-height: 1.3; margin: 0 0 .3rem; overflow-wrap: anywhere; }
.pb-text { margin: 0; color: var(--text-soft); font-size: .95rem; line-height: 1.55; overflow-wrap: anywhere; }
.pb-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; flex-basis: 100%; font-weight: 600; color: var(--primary-text-tint); text-decoration: none; }
.pb-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pb-link .icon { width: 1rem; height: 1rem; transition: transform .2s ease; }
.pb.is-link:hover .pb-link .icon { transform: translateX(3px); }
.pb-link:focus-visible { outline: none; }
.tile-neutral { background: var(--surface-2); color: var(--text-soft); }
/* Promotion: a coloured card with an optional picture. */
.pb-promo { background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: var(--primary-contrast); border-color: transparent; }
.pb-promo.pb-tone-accent { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--primary))); color: var(--accent-contrast); }
.pb-promo.pb-tone-success { background: linear-gradient(135deg, var(--success), color-mix(in srgb, var(--success) 70%, var(--primary))); color: #fff; }
.pb-promo.pb-tone-neutral { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.pb-promo:not(.pb-tone-neutral) .pb-text, .pb-promo:not(.pb-tone-neutral) .pb-link { color: inherit; }
.pb-promo:not(.pb-tone-neutral) .pb-text { opacity: .9; }
.pb-promo:not(.pb-tone-neutral) .pb-icon { background: color-mix(in srgb, currentColor 16%, transparent); color: inherit; }
.pb-promo::before { content: ""; position: absolute; width: 14rem; height: 14rem; right: -5rem; top: -6rem; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, currentColor 14%, transparent), transparent); pointer-events: none; }
.pb-promo .pb-title { font-size: 1.3rem; }
.pb-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.pb-media img, .pb-media picture { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .pb-grid:not(.pb-n1) .pb-promo { grid-column: span 2; }
  .pb-grid .pb-promo.has-media { flex-direction: row; }
  .pb-grid .pb-promo.has-media .pb-media { flex: 0 0 42%; aspect-ratio: auto; min-height: 12rem; }
}
/* Shortcut: compact and quick to scan. */
.pb-shortcut .pb-body { align-items: center; }
.pb-shortcut .pb-title { font-size: 1.02rem; margin: 0; }
.pb-shortcut .pb-text { font-size: .88rem; }
.pb-shortcut .pb-link { flex-basis: auto; margin-top: 0; margin-left: auto; }
.pb-shortcut .pb-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Information: a left accent rule. */
.pb-info { border-left: 4px solid var(--primary); }
.pb-info.pb-tone-accent { border-left-color: var(--accent); }
.pb-info.pb-tone-success { border-left-color: var(--success); }
.pb-info.pb-tone-neutral { border-left-color: var(--border); }
/* Notice: a full-width tinted bar. */
.pb-notice { grid-column: 1 / -1; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 22%, var(--line)); box-shadow: none; }
.pb-notice.pb-tone-accent { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.pb-notice.pb-tone-success { background: color-mix(in srgb, var(--success) 10%, var(--surface)); border-color: color-mix(in srgb, var(--success) 30%, var(--line)); }
.pb-notice.pb-tone-neutral { background: var(--surface-2); }
.pb-notice .pb-body { align-items: center; padding: var(--space-4) var(--space-5); }
.pb-notice .pb-link { flex-basis: auto; margin: 0 0 0 auto; }
/* Key figure: a large number entered by the administrator. */
.pb-figure .pb-body { flex-direction: column; gap: var(--space-2); }
.pb-fig { display: flex; align-items: center; gap: .55rem; margin: 0 0 .35rem; font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); line-height: 1; color: var(--primary-text-tint); }
.pb-fig b { font-weight: var(--heading-weight); letter-spacing: -.01em; }
.pb-fig .icon { width: 1.6rem; height: 1.6rem; color: var(--accent); }
.pb-figure.pb-tone-accent .pb-fig { color: color-mix(in srgb, var(--accent) 55%, var(--text)); }
.pb-figure.pb-tone-success .pb-fig { color: var(--success); }
.pb-figure .pb-link { margin-top: var(--space-2); }
/* Inner-page sidebar. */
.pb-stack { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-4); }
.pb-stack:first-child { margin-top: 0; }
.pb-stack .pb-body { padding: var(--space-4) var(--space-5); }
.pb-stack .pb-promo .pb-title { font-size: 1.15rem; }
.pb-stack .pb-fig { font-size: 2.1rem; }
.page-aside > * + .pb-stack, aside > * + .pb-stack { margin-top: var(--space-4); }
.pb-band-page_bottom { padding-top: 0; }
@media (max-width: 560px) {
  .pb-body { padding: var(--space-4); gap: var(--space-3); }
  .pb-notice .pb-link { margin-left: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pb, .pb-link .icon { transition: none; } .pb.is-link:hover { transform: none; } }

/* v2.8.0 — one-step image field (admin): preview, one upload button, library list folded away. */
.media-field .mf-label { display: block; font-weight: 600; margin-bottom: var(--space-2); }
.mf-row { display: flex; gap: var(--space-4); align-items: flex-start; flex-wrap: wrap; }
.mf-preview { flex: none; width: 120px; height: 90px; border-radius: var(--radius); border: 1px dashed var(--border); background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mf-preview img { width: 100%; height: 100%; object-fit: cover; }
.mf-preview.mf-logo { background: var(--surface); }
.mf-preview.mf-logo img { object-fit: contain; padding: .4rem; }
.mf-preview.is-new { border-style: solid; border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus); }
.mf-empty .icon { width: 2rem; height: 2rem; color: var(--muted); }
.mf-body { flex: 1 1 14rem; min-width: 0; }
.mf-upload { cursor: pointer; }
.mf-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.mf-body:has(.mf-file:focus-visible) .mf-upload { outline: 2px solid var(--focus); outline-offset: 2px; }
.mf-library, .mf-more { margin-top: var(--space-2); }
.mf-library > summary, .mf-more > summary { cursor: pointer; color: var(--link); font-size: .9rem; }
.mf-library .field { margin-top: var(--space-2); }
.mf-more { grid-column: 1 / -1; }

/* ==========================================================================
   v2.8.0 — public mobile menu: a compact card that drops from the menu button, as tall as its content.
   Pages are icon tiles in two columns; sections with sub-pages span the row and open their pages as chips.
   Public layout only (.site); colours come from the theme tokens.
   ========================================================================== */
@media (max-width: 1099.98px) {
  .site .site-nav { --nav-top: 76px; inset: var(--nav-top) max(10px, env(safe-area-inset-right, 0px)) auto auto; width: min(420px, calc(100vw - 20px)); height: auto;
    max-height: calc(100dvh - var(--nav-top) - 12px); display: flex; flex-direction: column; overflow: hidden; padding: 0; border-radius: 26px;
    background: var(--surface); border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--line));
    box-shadow: var(--elev-3), 0 30px 60px -20px rgb(var(--shade-rgb) / .35);
    transform-origin: calc(100% - 28px) 0; transform: translateY(-12px) scale(.92); opacity: 0; visibility: hidden;
    transition: transform .42s cubic-bezier(.32, .72, 0, 1), opacity .22s ease, visibility 0s linear .42s; }
  .site .site-nav.open { transform: none; opacity: 1; visibility: visible; transition: transform .5s cubic-bezier(.32, .72, 0, 1), opacity .25s ease, visibility 0s; }
  .site .site-nav::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; pointer-events: none; z-index: 0;
    background: radial-gradient(120% 100% at 100% 0, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
                radial-gradient(90% 100% at 0 0, color-mix(in srgb, var(--primary) 14%, transparent), transparent 65%); }
  .site .site-nav > * { position: relative; z-index: 1; }
  /* Head: a small "Menu" label and the close button. The logo already shows in the header. */
  .site .site-nav .drawer-head { position: relative; padding: .7rem .7rem .35rem 1rem; background: none; border: 0; }
  .site .site-nav .drawer-brand { display: none; }
  .site .drawer-title { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem .3rem .55rem; border-radius: var(--pill);
    background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--primary-text-tint); font-family: var(--font-display); font-weight: 700; font-size: .92rem; }
  .site .drawer-title .icon { width: 1rem; height: 1rem; color: color-mix(in srgb, var(--accent) 60%, var(--text)); }
  .site .site-nav .drawer-close { width: 38px; height: 38px; background: var(--surface-2); }
  /* Pages: icon tiles. */
  .site .site-nav .nav-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; flex: 0 1 auto; overflow-y: auto; padding: .35rem .75rem .75rem; }
  .site .site-nav .nav-list > li, .site .site-nav .nav-list > li + li { border: 0; min-width: 0; }
  .site .site-nav .nav-list > li > a { flex-direction: column; align-items: flex-start; gap: .55rem; min-height: 0; height: 100%; padding: .75rem .8rem .8rem;
    border-radius: 18px; background: var(--surface-2); border: 1px solid transparent; font-size: .95rem; font-weight: 650; line-height: 1.2;
    transition: background .2s, border-color .2s, transform .2s var(--ease); }
  .site .site-nav .nav-list > li > a:hover { padding-left: .8rem; background: var(--primary-50); border-color: color-mix(in srgb, var(--primary) 18%, transparent); transform: translateY(-1px); }
  .site .site-nav .nav-list > li > a:active { transform: scale(.97); }
  .site .site-nav .nav-list > li > a[aria-current="page"] { background: var(--primary-100); border-color: color-mix(in srgb, var(--primary) 35%, transparent); box-shadow: none; }
  .site .nl-ico { width: 38px; height: 38px; border-radius: 12px; }
  .site .nl-ico .icon { width: 20px; height: 20px; }
  .site .nl-txt { overflow-wrap: anywhere; }
  /* A section with sub-pages spans the row; its pages open below as chips. */
  .site .site-nav .nav-list > li.has-sub { grid-column: 1 / -1; }
  .site .site-nav .nav-list > li.has-sub > a { flex-direction: row; align-items: center; padding-right: 3.4rem; }
  .site .site-nav .sub-toggle { top: 50%; right: .45rem; transform: translateY(-50%); width: 40px; height: 40px; }
  .site .site-nav li.has-sub > .sub-toggle { top: 29px; }
  .site .site-nav .sub { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; border: 0; padding: 0 .15rem; }
  .site .site-nav .sub-open > .sub { padding-top: .5rem; padding-bottom: .15rem; }
  .site .site-nav .sub li:first-child, .site .site-nav .sub li:last-child { padding: 0; }
  .site .site-nav .sub a { gap: .4rem; min-height: 38px; margin: 0; padding: .4rem .8rem .4rem .6rem; border: 1px solid var(--line); border-radius: var(--pill);
    background: var(--surface); font-size: .88rem; font-weight: 600; color: var(--text-soft); }
  .site .site-nav .sub a:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); background: var(--primary-50); }
  .site .site-nav .sub a[aria-current="page"] { border-color: var(--primary); background: var(--primary-100); }
  .site .sub-ico { width: 1rem; height: 1rem; color: color-mix(in srgb, var(--accent) 55%, var(--text)); }
  /* Sign-in and apply buttons side by side, then contact icons and the language switch on one row. */
  .site .site-nav .nav-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding: .7rem .75rem; border-top: 1px solid var(--line); background: none; }
  .site .site-nav .nav-actions .btn { min-height: 44px; border-radius: var(--pill); font-size: .92rem; }
  .site .drawer-foot { padding: 0 .75rem calc(.7rem + env(safe-area-inset-bottom, 0px)); gap: .4rem; background: none; }
  .site .drawer-foot a:not(.lang-switch a) { width: 40px; height: 40px; min-height: 0; justify-content: center; border-radius: 50%; background: var(--surface-2); color: var(--primary-text-tint); }
  .site .drawer-foot a:not(.lang-switch a) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site .drawer-foot a:not(.lang-switch a):hover { background: var(--primary-100); }
  /* Opening: tiles rise in one after another. */
  .site .site-nav .nav-list > li, .site .site-nav .nav-actions, .site .site-nav .drawer-foot { opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .2s, transform .2s; }
  .site .site-nav.open .nav-list > li, .site .site-nav.open .nav-actions, .site .site-nav.open .drawer-foot { opacity: 1; transform: none;
    transition: opacity .35s var(--ease), transform .5s cubic-bezier(.32, .72, 0, 1); transition-delay: calc(.05s + min(var(--i, 8), 10) * .03s); }
  .site .site-nav.open .nav-actions { transition-delay: .3s; }
  .site .site-nav.open .drawer-foot { transition-delay: .34s; }
  .site .nav-scrim { background: rgb(var(--shade-rgb) / .32); backdrop-filter: blur(5px) saturate(1.1); -webkit-backdrop-filter: blur(5px) saturate(1.1); }
}
@media (max-width: 479.98px) { .site .site-nav { width: calc(100vw - 20px); border-radius: 24px; } }
@media (max-width: 339.98px) { .site .site-nav .nav-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1099.98px) and (prefers-reduced-motion: reduce) { .site .site-nav, .site .site-nav.open { transform: none; } }
@media (min-width: 1100px) { .site .nl-ico, .site .drawer-title, .site .sub-ico { display: none; } }
/* v2.8.0 — compact tiles: icon beside the label, so the card stays short. The in-card head is kept for keyboard users only. */
@media (max-width: 1099.98px) {
  .site .site-nav .drawer-head { position: absolute; top: .4rem; right: .4rem; padding: 0; z-index: 2; }
  .site .site-nav .drawer-head .drawer-title { display: none; }
  .site .site-nav .drawer-head .drawer-close { opacity: 0; pointer-events: none; }
  .site .site-nav .drawer-head .drawer-close:focus-visible { opacity: 1; pointer-events: auto; }
  .site .site-nav .nav-list { padding: .75rem .65rem .6rem; gap: .45rem; }
  .site .site-nav .nav-list > li > a { flex-direction: row; align-items: center; gap: .6rem; padding: .5rem .6rem; min-height: 54px; border-radius: 16px; font-size: .93rem; }
  .site .site-nav .nav-list > li > a:hover { padding-left: .6rem; }
  .site .nl-ico { width: 34px; height: 34px; border-radius: 11px; flex: none; }
  .site .nl-ico .icon { width: 18px; height: 18px; }
  .site .site-nav .nav-list > li.has-sub { grid-column: auto; }
  .site .site-nav .nav-list > li.has-sub.sub-open { grid-column: 1 / -1; }
  .site .site-nav .nav-list > li.has-sub > a { padding-right: 2.6rem; }
  .site .site-nav li.has-sub > .sub-toggle { top: 27px; right: .2rem; width: 36px; height: 36px; }
  .site .site-nav .nav-actions { padding: .6rem .65rem; }
  .site .site-nav .nav-actions .btn { min-height: 42px; font-size: .88rem; padding-inline: .6rem; }
  .site .drawer-foot { padding-inline: .65rem; }
}
@media (max-width: 1099.98px) {
  .site .site-nav .drawer-head { pointer-events: none; }
  .site .site-nav .nl-txt { min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: manual; line-height: 1.2; }
  .site .site-nav .nav-list > li.has-sub > a { padding-right: 2.2rem; gap: .5rem; }
  .site .site-nav li.has-sub > .sub-toggle { width: 32px; right: .15rem; }
}
@media (max-width: 379.98px) { .site .site-nav .nav-list > li > a { font-size: .86rem; gap: .45rem; } .site .nl-ico { width: 30px; height: 30px; } }
@media (max-width: 1099.98px) {
  .site .site-nav .nav-list > li.has-sub > a { height: auto; }
  .site .site-nav .nav-list > li.has-sub.sub-open { background: var(--surface-2); border-radius: 18px; padding-bottom: .5rem; }
  .site .site-nav .nav-list > li.has-sub.sub-open > .sub { padding-inline: .5rem; }
}
/* ---- v2.8.0 — guide pages as step cards ---------------------------------------------------------- */
.rs-intro { margin-bottom: var(--space-5); }
.rs-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); position: relative; }
.rs-steps::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, var(--primary), color-mix(in srgb, var(--accent) 70%, transparent)); opacity: .35; }
.rs-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-4); align-items: start; position: relative; }
.rs-num { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px;
  background: linear-gradient(145deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--accent))); color: var(--primary-contrast);
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; box-shadow: 0 0 0 5px var(--bg, var(--surface)), var(--elev-2); }
.rs-ico { background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 65%, var(--primary))); color: var(--accent-contrast, var(--primary-contrast)); }
.rs-ico .icon { width: 22px; height: 22px; }
.rs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-5) var(--space-4);
  box-shadow: var(--elev-1); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.rs-card::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--primary); opacity: 0; transition: opacity .25s; }
.rs-step:hover .rs-card { transform: translateY(-2px); box-shadow: var(--elev-2); border-color: color-mix(in srgb, var(--primary) 25%, var(--line)); }
.rs-step:hover .rs-card::after { opacity: 1; }
.rs-card h2 { margin: 0 0 .5rem; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); scroll-margin-top: 110px; }
.rs-card .prose { max-width: none; }
.rs-card .prose > :last-child { margin-bottom: 0; }
.rs-card .prose ul { list-style: none; padding: 0; display: grid; gap: .55rem; margin: .4rem 0 0; }
.rs-card .prose ul li { position: relative; padding: .6rem .8rem .6rem 2.4rem; margin: 0; background: var(--surface-2); border-radius: var(--radius); }
.rs-card .prose ul li::before { content: ""; position: absolute; left: .75rem; top: .78rem; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: color-mix(in srgb, var(--success, var(--primary)) 85%, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.6 17.2-5-5 1.7-1.7 3.3 3.3 7-7 1.7 1.7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.6 17.2-5-5 1.7-1.7 3.3 3.3 7-7 1.7 1.7z'/%3E%3C/svg%3E") center / contain no-repeat; }
.rs-note .rs-card { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 60%); }
@media (min-width: 900px) {
  .rs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
  .rs-steps::before { display: none; }
  .rs-step { grid-template-columns: 1fr; gap: 0; }
  .rs-num { position: absolute; top: -14px; left: var(--space-5); width: 44px; height: 44px; font-size: 1.15rem; }
  .rs-card { padding-top: calc(var(--space-5) + 22px); height: 100%; }
  .rs-note { grid-column: 1 / -1; }
  .rs-wrap { padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) { .rs-card, .rs-card::after { transition: none; } .rs-step:hover .rs-card { transform: none; } }

/* ---- v2.8.0 — filter bars: one line that scrolls sideways, never wraps or stretches ------------- */
.filter-tabs { display: flex; width: max-content; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.filter-tabs::-webkit-scrollbar, .chip-nav::-webkit-scrollbar { display: none; }
.filter-tabs a { flex: none; white-space: nowrap; scroll-snap-align: start; display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; }
.filter-tabs a .icon { width: 1rem; height: 1rem; }
@media (max-width: 719.98px) {
  .chip-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--space-4) * -1); padding: 2px var(--space-4) 6px; scroll-snap-type: x proximity; }
  .chip-nav .chip { flex: none; white-space: nowrap; scroll-snap-align: start; }
}

/* ---- v2.8.0 — events, search and empty states -------------------------------------------------- */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--space-4); }
.ev-grid .event-card { padding: var(--space-5); min-height: 120px; align-items: center; }
.ev-grid .event-card h3 { font-size: 1.12rem; }
.search-hero { max-width: 760px; margin: 0 auto; }
.search-hero .search-form { position: relative; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); box-shadow: var(--elev-2); }
.search-hero .search-form .field { flex: 1 1 auto; min-width: 0; }
.search-hero .search-form .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-hero .search-form input { border: 0; background: transparent; box-shadow: none; min-height: 48px; padding-left: 1.1rem; font-size: 1.02rem; }
.search-hero .search-form input:focus { outline: none; }
.search-hero .search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent), var(--elev-2); }
.search-hero .search-form .btn { border-radius: var(--pill); flex: none; padding-inline: 1.3rem; }
.search-hero .search-form .field-help, .search-hero .search-form .field-error { display: none; }
.search-quick { margin-top: var(--space-6); }
.search-quick h2 { font-size: 1rem; color: var(--muted); font-weight: 650; margin: 0 0 var(--space-3); }
.search-quick ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .6rem; }
.search-quick a { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 650; text-decoration: none; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.search-quick a:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); box-shadow: var(--elev-1); }
.search-quick .tile { width: 36px; height: 36px; border-radius: 11px; flex: none; }
.search-results { margin-top: var(--space-5); }
.search-results .post-item { padding: var(--space-4); }
.site .empty { max-width: 640px; margin-inline: auto; padding: var(--space-7) var(--space-5); background: linear-gradient(160deg, var(--surface), var(--surface-2)); border-style: dashed; font-weight: 550; }
.site .empty::before { width: 60px; height: 60px; border-radius: 18px; background-color: var(--primary-100); box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary) 6%, transparent); }
.site aside .empty, .site .card .empty { padding: var(--space-4); max-width: none; background: none; border: 0; }
.site aside .empty::before, .site .card .empty::before { width: 40px; height: 40px; box-shadow: none; }
.post-card .thumb-wm:not(:has(img)) > .icon { width: 44px; height: 44px; opacity: .55; }
.post-card .thumb-wm { display: grid; place-items: center; }
.site .wide-left .empty, .site .ev-grid + .empty { max-width: none; }
@media (max-width: 559.98px) { .search-quick ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .search-quick a { padding: .6rem; gap: .5rem; font-size: .9rem; } .search-quick .tile { width: 32px; height: 32px; } }
.pending-card { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-4); margin-bottom: var(--space-4); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); }
.pending-card .tile { flex: none; }
/* ---- v2.8.0 — website name: top line, then a smaller second line (Admin → Settings → Website title) ---- */
.site .brand-name.bt, .site .site-header .brand-name.bt { display: flex; flex-direction: column; justify-content: center; gap: .18em; max-width: none; overflow-wrap: normal; line-height: 1; font-size: var(--bt-top); }
.bt .bt-line { display: block; white-space: nowrap; }
.bt .bt-l1 { font-size: var(--bt-top); line-height: 1; }
.bt.bt-multi .bt-line + .bt-line { font-size: var(--bt-bottom); line-height: 1.1; }
.bt.bt-w-heavy .bt-l1 { font-weight: 800; } .bt.bt-w-bold .bt-l1 { font-weight: 700; } .bt.bt-w-medium .bt-l1 { font-weight: 600; }
.bt.bt-spaced .bt-line + .bt-line { text-transform: uppercase; letter-spacing: .32em; font-weight: 700; font-family: var(--font); opacity: .85; }
.bt.bt-plain .bt-line + .bt-line { font-weight: 600; font-family: var(--font); opacity: .8; }
.bt.bt-accent .bt-line + .bt-line { display: inline-flex; align-self: flex-start; padding: .22em .6em; border-radius: var(--pill); font-family: var(--font); font-weight: 700; letter-spacing: .08em;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: color-mix(in srgb, var(--accent) 55%, currentColor); }
.bt .bt-hl { color: color-mix(in srgb, var(--accent) 70%, currentColor); }
.site .brand-name.bt small { font-size: .72rem; margin-top: .1em; }
.site.lang-am .brand-name.bt { font-size: var(--bt-top); }
@media (max-width: 1099.98px) {
  .site .site-header .brand-name.bt .bt-l1 { font-size: calc(var(--bt-top) * var(--bt-m)); }
  .site .site-header .brand-name.bt.bt-multi .bt-line + .bt-line { font-size: calc(var(--bt-bottom) * var(--bt-m)); }
  .site .site-header .brand-name.bt.bt-spaced .bt-line + .bt-line { letter-spacing: .24em; }
}
@media (max-width: 359.98px) { .site .site-header .brand-name.bt .bt-line { white-space: normal; } }
/* Footer: the same lines, larger. */
.sf-name.bt { display: flex; flex-direction: column; gap: .3em; }
.sf-name.bt .bt-l1 { font-size: calc(var(--bt-top) * 1.25); }
.sf-name.bt.bt-multi .bt-line + .bt-line { font-size: calc(var(--bt-bottom) * 1.15); }
.sf-name.bt small { margin-top: .5rem; }
/* Admin editor of the website name */
.bt-editor { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); background: var(--surface-2); display: grid; gap: var(--space-3); }
.bt-editor .bt-tools { display: flex; flex-wrap: wrap; gap: .4rem; }
.bt-preview { display: flex; align-items: center; gap: .75rem; padding: var(--space-4); border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--border); color: var(--primary-text, var(--text)); font-family: var(--font-display); min-height: 84px; }
.bt-preview .bt-pv-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-100); flex: none; display: grid; place-items: center; }
.bt-preview .bt-pv-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.bt-preview-label { font-size: .8rem; color: var(--muted); font-weight: 650; margin: 0; }
/* ---- v2.8.0 — Admin → Modules ---------------------------------------------------------------- */
.mod-presets { margin: var(--space-4) 0 var(--space-5); }
.mod-preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-4); }
.mod-preset { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; transition: border-color .2s, box-shadow .2s; }
.mod-preset h3 { margin: .25rem 0 0; font-size: 1.05rem; }
.mod-preset p { margin: 0; flex: 1; }
.mod-preset.is-active { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent), var(--elev-1); }
.mod-group { border: 0; padding: 0; margin: var(--space-4) 0 0; }
.mod-group legend { display: flex; align-items: center; gap: .45rem; font-weight: 700; margin-bottom: var(--space-3); }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .65rem; }
.mod-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: start; padding: .85rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s; }
.mod-item:hover { border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }
.mod-item.is-on { background: color-mix(in srgb, var(--primary) 5%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.mod-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mod-item:focus-within { outline: 2px solid var(--focus, var(--primary)); outline-offset: 2px; }
.mod-body { display: grid; gap: .2rem; }
.mod-deps { display: inline-flex; align-items: center; gap: .3rem; color: var(--text-soft); }
.mod-deps .icon { width: .85rem; height: .85rem; }
.mod-switch { width: 38px; height: 22px; border-radius: 999px; background: var(--border); position: relative; transition: background .2s; margin-top: .15rem; }
.mod-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: var(--elev-1); transition: transform .2s var(--ease); }
.mod-item.is-on .mod-switch { background: var(--primary); }
.mod-item.is-on .mod-switch::after { transform: translateX(16px); }
.mod-prompt { position: sticky; bottom: var(--space-4); z-index: 5; display: flex; gap: var(--space-3); align-items: flex-start; margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--elev-3, var(--elev-2)); }
.mod-prompt.pop { animation: modPop .35s var(--ease); }
@keyframes modPop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.mod-prompt-list { margin: .5rem 0; padding-left: 1.1rem; }
.mod-prompt-list .check { display: inline-flex; gap: .4rem; align-items: center; }
.mod-confirm { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.mod-confirm .field { flex: 1 1 260px; margin: 0; }
.mod-review .mod-suggest { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin: var(--space-4) 0; display: grid; gap: .5rem; }
@media (prefers-reduced-motion: reduce) { .mod-prompt.pop { animation: none; } .mod-switch, .mod-switch::after { transition: none; } }
.mod-item { font-weight: 400; } .mod-body .small { font-weight: 450; }

/* v2.8.0 — installer: what to install */
.install-modules .radio-cards{display:grid;gap:.5rem;margin:.6rem 0}
.install-modules .radio-cards .check{display:block;padding:.7rem .85rem;border:1px solid var(--line);border-radius:12px;background:var(--surface);cursor:pointer}
.install-modules .radio-cards .check:has(input:checked){border-color:var(--primary);box-shadow:0 0 0 2px rgba(var(--shade-rgb),.08)}
.install-modules .radio-cards .check .small{display:block;margin:.2rem 0 0 1.6rem;font-weight:400}
.install-custom{margin-top:.4rem}
.install-custom summary{cursor:pointer;font-weight:600;padding:.3rem 0}
.install-custom .form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.35rem .8rem;margin-top:.5rem}

/* ==========================================================================
   v2.8.1 — four more built-in hero layouts and four slideshow styles, all drawn from the brand signature
   (the logo watermark, the faded wordmark and the brand colours). Colours come only from theme tokens.
   ========================================================================== */
/* Shared: dark brand heroes */
.hero-emblem, .hero-film { color: var(--primary-contrast); background:
  radial-gradient(900px 520px at 88% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%),
  linear-gradient(160deg, var(--primary-strong, var(--primary)), var(--primary) 60%, color-mix(in srgb, var(--primary) 82%, #000)); }
.hero-emblem::before, .hero-film::before { display: none; }
.hero-emblem h1, .hero-film h1 { color: var(--primary-contrast); }
.hero-emblem .lead, .hero-film .lead, .site .hero.hero-emblem .lead, .site .hero.hero-film .lead { color: color-mix(in srgb, var(--primary-contrast) 88%, transparent); }
.hero-emblem .eyebrow, .hero-film .eyebrow { background: color-mix(in srgb, #fff 12%, transparent); border-color: color-mix(in srgb, #fff 24%, transparent); color: var(--primary-contrast); box-shadow: none; }
.hero-emblem .hero-trust { color: inherit; border-color: color-mix(in srgb, #fff 24%, transparent); }
.hero-emblem .hero-trust .icon { color: var(--accent); }

/* 1. Emblem: logo seal */
.hero-emblem { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(5rem, 3rem + 7vw, 9rem); }
.em-grid { position: relative; z-index: 1; display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); align-items: center; }
@media (min-width: 980px) { .em-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.has-wm .em-wm { color: var(--primary-contrast); left: -8rem; top: -4rem; width: clamp(18rem, 12rem + 20vw, 34rem); opacity: .06; transform: rotate(-12deg); z-index: 0; }
.em-seal { position: relative; width: min(100%, 460px); aspect-ratio: 1 / 1; justify-self: center; display: grid; place-items: center; }
.em-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: em-turn 60s linear infinite; }
.em-ring text { fill: color-mix(in srgb, var(--primary-contrast) 70%, transparent); font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .32em; }
.em-seal::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.em-disc { position: relative; width: 70%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--primary-contrast) 10%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 85%, transparent), 0 30px 60px -24px color-mix(in srgb, #000 70%, transparent); }
.em-disc picture, .em-disc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.has-wm .em-print { color: var(--accent); right: -14%; bottom: -14%; width: 62%; opacity: .55; mix-blend-mode: screen; transform: rotate(-14deg); }
.em-mark { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: var(--surface); box-shadow: 0 0 0 4px var(--primary), 0 10px 24px -10px color-mix(in srgb, #000 60%, transparent); }
.em-mark > *, .em-mark img, .em-mark picture { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.em-chip { position: absolute; display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .9rem .45rem .45rem; border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 700; font-size: .92rem; text-decoration: none;
  box-shadow: 0 14px 30px -14px color-mix(in srgb, #000 60%, transparent); transition: transform .25s var(--ease); white-space: nowrap; }
.em-chip .tile { width: 34px; height: 34px; border-radius: 50%; }
.em-chip:hover { transform: translateY(-3px); }
.em-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.em-c1 { top: 8%; left: -4%; } .em-c2 { top: 30%; right: -8%; } .em-c3 { bottom: 26%; left: -10%; } .em-c4 { bottom: 4%; right: -2%; }
.em-word { color: transparent; }
@keyframes em-turn { to { transform: rotate(360deg); } }
@media (max-width: 979.98px) { .em-seal { width: min(100%, 380px); } .em-c1 { left: 0; } .em-c2 { right: 0; } .em-c3 { left: 0; } .em-c4 { right: 0; } }
@media (max-width: 520px) { .em-chip { font-size: .82rem; padding: .35rem .7rem .35rem .35rem; } .em-chip .tile { width: 28px; height: 28px; } .em-mark { width: 52px; height: 52px; } }

/* 2. Arch window */
.hero-arch { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3.5rem, 2rem + 5vw, 7rem); }
.ar-grid { position: relative; z-index: 1; display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); align-items: end; }
@media (min-width: 980px) { .ar-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; } }
.has-wm .ar-wm { color: var(--primary); left: -6rem; bottom: -8rem; width: clamp(20rem, 14rem + 20vw, 36rem); opacity: .06; transform: rotate(10deg); z-index: 0; }
.ar-tibeb, .ar-sill { display: block; height: 12px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--primary) 0 18px, var(--accent) 18px 24px, var(--brand-3, var(--primary)) 24px 30px, var(--accent) 30px 36px, var(--primary) 36px 54px); }
.ar-tibeb { width: 11rem; margin: 0 0 var(--space-5); }
.ar-visual { position: relative; width: min(100%, 440px); justify-self: center; padding-bottom: 1.5rem; }
.ar-window { aspect-ratio: 4 / 5.4; border-radius: 999px 999px 18px 18px; overflow: hidden; border: 6px solid var(--surface); box-shadow: 0 0 0 1px var(--line), 0 34px 70px -30px color-mix(in srgb, var(--primary) 60%, #000); }
.ar-window picture, .ar-window img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-sill { position: absolute; left: -6%; right: -6%; bottom: .6rem; height: 14px; box-shadow: 0 10px 20px -10px color-mix(in srgb, #000 50%, transparent); }
.ar-small { position: absolute; left: -16%; bottom: 18%; width: 38%; aspect-ratio: 1 / 1.2; border-radius: 999px 999px 12px 12px; overflow: hidden; border: 5px solid var(--surface); box-shadow: var(--elev-2); }
.ar-small picture, .ar-small img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-badge { position: absolute; right: -4%; top: 12%; width: 82px; height: 82px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 5px var(--accent), var(--elev-2); }
.ar-badge > *, .ar-badge img, .ar-badge picture { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
@media (max-width: 560px) { .ar-small { left: -4%; width: 34%; } .ar-badge { right: 0; width: 64px; height: 64px; } }

/* 3. Photo strip (sliding) */
.hero-film { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.has-wm .fm-wm { color: var(--primary-contrast); right: -5rem; top: -3rem; width: clamp(16rem, 10rem + 18vw, 30rem); opacity: .07; transform: rotate(-10deg); z-index: 0; }
.fm-head { position: relative; z-index: 1; display: grid; gap: var(--space-5) var(--space-8); align-items: end; }
@media (min-width: 980px) { .fm-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.fm-head h1 { max-width: 14ch; margin-bottom: 0; font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.6rem); }
.fm-side .lead { margin-bottom: var(--space-5); }
.fm-strip { position: relative; z-index: 1; margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.fm-track { display: flex; width: max-content; animation: fm-glide calc(var(--fm-n, 6) * 6s) linear infinite; }
.fm-strip:hover .fm-track, .fm-strip:focus-within .fm-track { animation-play-state: paused; }
.fm-set { display: flex; gap: var(--space-4); padding: 0 var(--space-4) 0 0; margin: 0; list-style: none; }
.fm-card { position: relative; display: block; width: clamp(200px, 150px + 10vw, 280px); aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; box-shadow: 0 24px 40px -24px color-mix(in srgb, #000 75%, transparent); }
.fm-set li:nth-child(even) .fm-card { transform: translateY(1.5rem); }
.fm-img, .fm-img picture, .fm-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.fm-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(var(--shade-rgb) / .85)); }
.fm-card:hover .fm-img img { transform: scale(1.06); }
.fm-card:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.fm-cap { position: absolute; z-index: 1; left: .9rem; right: .9rem; bottom: .9rem; display: flex; align-items: center; gap: .55rem; font-weight: 700; line-height: 1.2; }
.fm-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-contrast); }
.fm-go { margin-left: auto; flex: none; opacity: .8; }
@keyframes fm-glide { to { transform: translateX(-50%); } }

/* 4. Expanding panels (sliding) */
.hero-panels { padding: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) 0 clamp(3rem, 2rem + 3vw, 5rem); }
.pn-head { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-3) var(--space-6); margin-bottom: var(--space-6); }
.pn-head h1 { margin: 0; max-width: 18ch; }
.pn-head .eyebrow { order: -1; flex-basis: 100%; margin: 0; width: max-content; }
.pn-row { position: relative; z-index: 1; display: flex; gap: var(--space-3); height: clamp(420px, 58vh, 560px); }
.pn { position: relative; flex: 1 1 0; min-width: 0; border-radius: 24px; overflow: hidden; cursor: pointer; color: #fff; isolation: isolate; outline: none;
  transition: flex-grow .7s cubic-bezier(.65, 0, .35, 1), box-shadow .3s; box-shadow: var(--elev-1); }
.pn.is-open { flex-grow: 4.2; cursor: default; box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--primary) 70%, #000); }
.pn:focus-visible { box-shadow: 0 0 0 3px var(--focus); }
.pn-img, .pn-img picture, .pn-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: -2; }
.pn-img img { transform: scale(1.12); transition: transform 1.2s var(--ease); }
.pn.is-open .pn-img img { transform: scale(1); }
.pn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(var(--shade-rgb) / .15), rgb(var(--shade-rgb) / .82)); transition: background .5s; }
.pn:not(.is-open)::after { background: linear-gradient(180deg, rgb(var(--shade-rgb) / .45), rgb(var(--shade-rgb) / .88)); }
.has-wm .pn-wm { color: #fff; right: -2.5rem; top: -2.5rem; width: 10rem; opacity: .14; transform: rotate(-14deg); z-index: -1; transition: opacity .5s; }
.pn-tab { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .75rem; transition: opacity .3s; }
.pn-tab-t { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700; white-space: nowrap; max-height: 16rem; overflow: hidden; text-overflow: ellipsis; }
.pn-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-contrast); flex: none; }
.pn.is-open .pn-tab { opacity: 0; pointer-events: none; }
.pn-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); max-width: 34rem; opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .5s var(--ease); pointer-events: none; }
.pn.is-open .pn-body { opacity: 1; transform: none; transition-delay: .3s; pointer-events: auto; }
.pn-title { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.3rem); line-height: 1.1; margin: 0 0 .5rem; }
.pn-body p { color: color-mix(in srgb, #fff 88%, transparent); margin: 0 0 var(--space-4); }
@media (max-width: 759.98px) {
  .pn-row { flex-direction: column; height: auto; }
  .pn { flex: none; height: 76px; transition: height .6s cubic-bezier(.65, 0, .35, 1); }
  .pn.is-open { height: 360px; }
  .pn-tab { left: 1rem; right: 1rem; top: 50%; bottom: auto; transform: translateY(-50%); flex-direction: row; }
  .pn-tab-t { writing-mode: horizontal-tb; transform: none; }
}

/* Slideshow style "reveal": the next slide opens through the logo silhouette (a circle when no logo is set). */
.hs-style-reveal .hs-slide { opacity: 1; transition: visibility 0s 1.2s; }
.hs-style-reveal .hs-slide.is-active { z-index: 2; transition: none; animation: hs-reveal-c 1.2s cubic-bezier(.7, 0, .25, 1) both; }
.has-wm .hs-style-reveal .hs-slide.is-active { animation-name: hs-reveal-wm; -webkit-mask: var(--wm) center / 0% no-repeat; mask: var(--wm) center / 0% no-repeat; }
.hs-style-reveal .hs-slide.is-leaving { visibility: visible; z-index: 1; }
.hs-style-reveal .hs-slide.is-leaving .hs-media img { transform: scale(1.1); transition: transform 1.2s var(--hs-ease); }
@keyframes hs-reveal-c { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
@keyframes hs-reveal-wm { 0% { -webkit-mask-size: 0%; mask-size: 0%; } 99% { -webkit-mask-size: 900%; mask-size: 900%; } 100% { -webkit-mask: none; mask: none; } }
.hero-slides.hs-style-reveal:not(.is-changing) .hs-slide.is-active { animation: none; -webkit-mask: none; mask: none; }

/* Slideshow style "weave": six woven bands in the brand colours cross the picture, like a tibeb border. */
.hs-weave { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-columns: repeat(6, 1fr); pointer-events: none; }
.hs-weave i { transform: scaleY(0); transform-origin: top; background: var(--primary); }
.hs-weave i:nth-child(3n+2) { background: var(--accent); }
.hs-weave i:nth-child(3n) { background: var(--brand-3, var(--primary)); }
.hs-weave i:nth-child(even) { transform-origin: bottom; }
.hero-slides.is-changing .hs-weave i { animation: hs-weave 1.2s cubic-bezier(.7, 0, .3, 1) both; }
.hero-slides.is-changing .hs-weave i:nth-child(2) { animation-delay: .05s; } .hero-slides.is-changing .hs-weave i:nth-child(3) { animation-delay: .1s; }
.hero-slides.is-changing .hs-weave i:nth-child(4) { animation-delay: .15s; } .hero-slides.is-changing .hs-weave i:nth-child(5) { animation-delay: .2s; }
.hero-slides.is-changing .hs-weave i:nth-child(6) { animation-delay: .25s; }
.hs-style-weave .hs-slide { transition: opacity 0s .55s, visibility 0s .9s; }
.hs-style-weave .hs-slide.is-active { transition: opacity 0s .55s, visibility 0s; }
@keyframes hs-weave { 0% { transform: scaleY(0); } 45%, 55% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.hero-slides.is-changing .hs-weave i:nth-child(odd) { animation-name: hs-weave-o; }
@keyframes hs-weave-o { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Slideshow style "wordmark": the organisation name sweeps across in giant outlined letters as the slides push. */
.hs-style-wordmark .hs-slide { opacity: 1; transform: translate3d(100%, 0, 0); }
.hs-style-wordmark[data-dir="back"] .hs-slide { transform: translate3d(-100%, 0, 0); }
.hs-style-wordmark .hs-slide.is-active { transform: none; transition: transform 1.1s var(--hs-ease); }
.hs-style-wordmark .hs-slide.is-leaving { visibility: visible; transform: translate3d(-35%, 0, 0); transition: transform 1.1s var(--hs-ease); }
.hs-style-wordmark[data-dir="back"] .hs-slide.is-leaving { transform: translate3d(35%, 0, 0); }
.hs-word { position: absolute; inset: auto 0 9%; z-index: 3; margin: 0; overflow: hidden; pointer-events: none; white-space: nowrap; }
.hs-word span { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 2rem + 12vw, 13rem); line-height: 1; color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--accent) 80%, transparent); opacity: 0; transform: translateX(100vw); }
.hero-slides.is-changing .hs-word span { animation: hs-word 1.4s cubic-bezier(.6, 0, .3, 1) both; }
.hero-slides.is-changing[data-dir="back"] .hs-word span { animation-name: hs-word-back; }
@keyframes hs-word { 0% { opacity: 0; transform: translateX(100vw); } 20%, 75% { opacity: .9; } 100% { opacity: 0; transform: translateX(-110%); } }
@keyframes hs-word-back { 0% { opacity: 0; transform: translateX(-110%); } 20%, 75% { opacity: .9; } 100% { opacity: 0; transform: translateX(100vw); } }

/* Slideshow style "peek": a card carousel; the neighbouring slides show at the sides, framed with the logo watermark. */
.hs-style-peek { background: radial-gradient(900px 500px at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%), rgb(var(--shade-rgb)); }
.hs-style-peek .hs-track { inset: clamp(1rem, .5rem + 2vw, 2rem) 0 clamp(4.5rem, 3rem + 4vw, 6.5rem); }
.hs-style-peek .hs-slide { left: 9%; right: 9%; border-radius: 28px; overflow: hidden; opacity: 0; transform: translate3d(0, 0, 0) scale(.8); transition: transform 1s var(--hs-ease), opacity .6s, visibility 0s 1s, filter 1s; }
.hs-style-peek .hs-slide.is-active { opacity: 1; transform: none; z-index: 2; transition: transform 1s var(--hs-ease), opacity .6s, visibility 0s, filter 1s; box-shadow: 0 40px 80px -40px color-mix(in srgb, #000 80%, transparent); }
.hs-style-peek .hs-slide.is-prev, .hs-style-peek .hs-slide.is-next { visibility: visible; opacity: .55; filter: saturate(.6); z-index: 1; transition: transform 1s var(--hs-ease), opacity .6s, visibility 0s, filter 1s; }
.hs-style-peek .hs-slide.is-prev { transform: translate3d(-88%, 0, 0) scale(.82); }
.hs-style-peek .hs-slide.is-next { transform: translate3d(88%, 0, 0) scale(.82); }
.hs-style-peek .hs-slide.is-prev .hs-copy, .hs-style-peek .hs-slide.is-next .hs-copy { opacity: 0; }
.hs-style-peek .hs-body { padding-inline: clamp(1.25rem, .5rem + 3vw, 3.5rem); }
.has-wm .hs-style-peek .hs-slide::after { content: ""; position: absolute; right: -3rem; bottom: -3rem; width: clamp(10rem, 6rem + 10vw, 18rem); aspect-ratio: 1 / 1; background: var(--accent); opacity: .35; mix-blend-mode: screen; transform: rotate(-12deg);
  -webkit-mask: var(--wm) center / contain no-repeat; mask: var(--wm) center / contain no-repeat; pointer-events: none; }
.hs-style-peek .hs-controls { bottom: clamp(1rem, .5rem + 1vw, 1.75rem); }
@media (max-width: 759.98px) { .hs-style-peek .hs-slide { left: 4%; right: 4%; } .hs-style-peek .hs-slide.is-prev { transform: translate3d(-96%, 0, 0) scale(.86); } .hs-style-peek .hs-slide.is-next { transform: translate3d(96%, 0, 0) scale(.86); } }

@media (prefers-reduced-motion: reduce) {
  .em-ring, .fm-track { animation: none; }
  .fm-strip { overflow-x: auto; }
  .pn, .pn-img img, .pn-body { transition: none; }
  .hero-slides.is-changing .hs-weave i, .hero-slides.is-changing .hs-word span, .hs-style-reveal .hs-slide.is-active { animation: none; }
}
html[data-theme="contrast"] .em-print, html[data-theme="contrast"] .hs-style-peek .hs-slide::after { display: none; }
@media print { .em-ring, .fm-strip, .hs-weave, .hs-word { display: none !important; } }

/* v2.8.1 — top bar: phone, email and hours always share one row, whatever their length. Each item may shrink and
   ends in "…" (the full value is in its tooltip and still opens the phone or mail app); the language switch never shrinks. */
.site .topbar-inner { flex-wrap: nowrap; min-height: 36px; padding-block: .25rem; column-gap: clamp(.75rem, .4rem + 1.2vw, 1.5rem); row-gap: 0; }
.site .topbar-item { min-width: 0; flex: 0 1 auto; max-width: 100%; }
.site .topbar-item.tb-mail { order: 0; flex: 0 1 auto; padding-block: 0; }
.site .topbar-item.tb-phone { flex-shrink: 0.4; }
.site .topbar-item .icon { flex: none; }
.site .topbar-item > span, .site .topbar-item .tb-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site .topbar-item + .topbar-item { position: relative; }
.site .topbar-item + .topbar-item::before { content: ""; position: absolute; left: calc(clamp(.75rem, .4rem + 1.2vw, 1.5rem) / -2); top: 50%; width: 1px; height: .9rem; transform: translateY(-50%); background: currentColor; opacity: .25; }
.site .topbar-end { flex: none; margin-left: auto; padding-left: var(--space-3); }
@media (max-width: 760px) { .site .topbar-item.tb-phone { flex-shrink: 0; max-width: 46%; } .site .topbar-inner { column-gap: .9rem; } }
@media (max-width: 400px) { .site .topbar { font-size: .76rem; } .site .topbar-item .icon { width: .85rem; height: .85rem; } }

/* v2.8.1 — designed content pages (About, Mission, Benefits, Governance, legal pages): rich_sections() */
.rx-wrap { display: grid; gap: var(--space-5); }
.rx-intro { font-size: 1.08rem; }
.rx-grid { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .rx-grid:not(.rx-doc) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rx-grid .rx-wide { grid-column: 1 / -1; } }
.rx-sec { position: relative; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.15rem, .9rem + 1vw, 1.75rem); box-shadow: var(--elev-1); overflow: hidden; }
.rx-sec::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand-sheen); opacity: .9; }
.rx-head { display: flex; align-items: center; gap: .85rem; margin-bottom: var(--space-3); }
.rx-head h2 { margin: 0; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); line-height: 1.2; scroll-margin-top: 6rem; }
.rx-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary-text, var(--primary)); border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent); }
.rx-ico .icon { width: 1.3rem; height: 1.3rem; }
.rx-sec:nth-child(4n+2) .rx-ico { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.rx-no { font-family: var(--font-display); font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; }
.rx-sec .prose { max-width: none; }
.rx-sec .prose > :last-child { margin-bottom: 0; }
.has-wm .rx-sec.rx-has-feats::after { content: ""; position: absolute; right: -3rem; bottom: -3rem; width: 12rem; aspect-ratio: 1 / 1; background: var(--primary-text, var(--primary)); opacity: .045; transform: rotate(-12deg); pointer-events: none;
  -webkit-mask: var(--wm) center / contain no-repeat; mask: var(--wm) center / contain no-repeat; }
/* Feature lists ("**Lead.** text" items) */
.prose ul.rx-feats { list-style: none; padding: 0; margin: var(--space-3) 0 var(--space-4); display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.prose ul.rx-feats > li { position: relative; z-index: 1; display: flex; gap: .75rem; align-items: flex-start; margin: 0; padding: .9rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--primary) 4%, var(--surface)); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.prose ul.rx-feats > li:hover { border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); transform: translateY(-2px); }
.prose ul.rx-feats > li::before { display: none; }
.rx-ck { flex: none; position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); margin-top: .05rem; }
.rx-ck::after { content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px; border: solid var(--accent-contrast); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.rx-ft { display: grid; gap: .2rem; min-width: 0; }
.rx-ft-t { font-weight: 700; color: var(--text); line-height: 1.3; }
.rx-ft-d { color: var(--text-soft); font-size: .95rem; line-height: 1.5; }
/* Legal pages ("doc"): numbered, quieter cards */
.rx-doc .rx-sec { box-shadow: none; }
.rx-doc .rx-sec::before { width: 3px; }
.rx-doc .prose ul.rx-feats { grid-template-columns: minmax(0, 1fr); }
@media (prefers-reduced-motion: reduce) { .prose ul.rx-feats > li { transition: none; } }
@media (max-width: 560px) {
  .site .topbar-item.tb-phone, .site .topbar-item.tb-mail { flex: 1 1 0; max-width: max-content; }
  .site .topbar-item.tb-phone:only-of-type { flex: 0 1 auto; }
  .site .topbar .lang-switch a { padding: .08rem .45rem; }
  .site .topbar-end { padding-left: .25rem; }
}
/* Hours give way first, so the phone and e-mail stay readable; below 900px the hours move out of the top bar. */
.site .topbar-item.hide-sm { flex-shrink: 8; }
@media (max-width: 899.98px) { .site .topbar .topbar-item.hide-sm { display: none; } }
@media (min-width: 900px) { .site .topbar-item.tb-phone, .site .topbar-item.tb-mail { flex-shrink: 0; max-width: 36%; } }
