/* ============================================================
   components.css — the component library.
   Every component is base class + modifier classes.
   States (hover/focus/disabled) are defined ONCE on the base.
   Catalogue each component in COMPONENTS.md.
   ============================================================ */

/* ---- Button ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font: inherit;
  font-weight: var(--btn-weight);
  text-transform: var(--btn-transform);
  letter-spacing: var(--btn-tracking);
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}
.btn:hover    { transform: translateY(-1px); }
.btn:active   { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn--primary   { background: var(--color-brand); color: var(--color-on-brand); }
.btn--primary:hover { background: var(--color-brand-hover); color: var(--color-on-brand); }
.btn--secondary { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn--secondary:hover { border-color: var(--color-brand); }
.btn--ghost     { background: transparent; color: var(--color-brand); padding-inline: var(--space-2); }
.btn--accent    { background: var(--color-accent); color: var(--color-on-accent); }
.btn--accent:hover { background: color-mix(in srgb, var(--color-accent) 88%, var(--color-on-accent)); color: var(--color-on-accent); }
.btn--danger    { background: var(--color-danger); color: #fff; }
.btn--danger:hover { background: color-mix(in srgb, var(--color-danger) 85%, #000); }

/* Sizes — share the control-height scale so buttons line up with inputs */
.btn--sm { height: var(--control-height-sm); padding-inline: var(--space-3); font-size: var(--text-sm); }
.btn--lg { height: var(--control-height-lg); padding-inline: var(--space-8); font-size: var(--text-lg); }
.btn { height: var(--control-height); }
.btn--block { width: 100%; }

/* ---- Card -------------------------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.card--featured { border-color: var(--color-brand); box-shadow: var(--shadow-md); }
.card__title { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.card__body  { color: var(--color-text-muted); }

/* ---- Pill / badge ------------------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* ---- Nav --------------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.nav__links { display: flex; gap: var(--space-6); align-items: center; }
.nav__brand { font-weight: var(--weight-bold); color: var(--color-text); display: inline-flex; align-items: center; gap: var(--space-2); }
.nav__brand img { display: block; width: auto; height: 28px; border-radius: var(--radius-sm); }
.nav__links a[aria-current="page"] { color: var(--color-text); font-weight: var(--weight-medium); }
/* Hamburger toggle — hidden on desktop, revealed on mobile only once JS
   enhances the nav. Without JS the links simply wrap (see below). */
.nav__toggle {
  display: none; align-items: center; justify-content: center;
  width: var(--control-height); height: var(--control-height); padding: 0;
  color: var(--color-text); background: transparent;
  border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer;
}
.nav__toggle:hover { border-color: var(--color-brand); }
.nav__toggle:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; }
  /* No-JS fallback: the links wrap onto their own row and stay reachable. */
  .nav__links { flex-wrap: wrap; flex-basis: 100%; gap: var(--space-4); }
  /* Enhanced: the toggle controls a stacked disclosure menu. */
  .nav.is-enhanced .nav__toggle { display: inline-flex; }
  .nav.is-enhanced .nav__links { display: none; flex-direction: column; align-items: stretch; flex-basis: 100%; }
  .nav.is-enhanced .nav__links.is-open { display: flex; }
  .nav.is-enhanced .nav__links a { padding-block: var(--space-2); }
}

/* ---- Nav dropdown ----------------------------------------- */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--color-link); font-size: inherit; font-family: inherit;
  display: inline-flex; align-items: center; gap: var(--space-1);
}
.nav__dropdown-toggle:hover { color: var(--color-brand-hover); }
.nav__dropdown-toggle:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; border-radius: 2px; }
.nav__dropdown-toggle svg { transition: transform 0.2s; }
.nav__dropdown-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__dropdown-menu {
  position: absolute; top: calc(100% + var(--space-2)); left: 0;
  min-width: 14rem; background: var(--color-surface, #1a1a1a);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: var(--space-2);
  display: none; flex-direction: column; gap: 0; z-index: 100;
}
.nav__dropdown-menu.is-open { display: flex; }
.nav__dropdown-menu a {
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  color: var(--color-text-muted); font-size: var(--text-sm);
  display: block;
}
.nav__dropdown-menu a:hover { background: var(--color-surface-2); color: var(--color-text); }
@media (max-width: 640px) {
  .nav__dropdown-menu { position: static; box-shadow: none; border: none; padding: var(--space-1) 0 var(--space-1) var(--space-4); background: transparent; }
  .nav__dropdown-menu a { padding-block: var(--space-1); }
}

/* ---- Nav overlay (fixed, transparent-to-solid on scroll) --
   Opt-in via client.json's "nav": { "variant": "overlay" }
   (see build.js's nav.variant token). Meant to sit over a
   full-bleed .hero-photo section on the same page. JS in ui.js
   toggles .is-solid past a small scroll offset. With no JS the
   header just stays in its transparent starting state — that's
   why .hero-photo__scrim (below) darkens the top of the photo
   too, so nav text is readable either way. */
.site-header--overlay {
  position: fixed; inset-inline: 0; top: 0; z-index: var(--z-dropdown);
  background: transparent;
  /* Deliberately slower than --transition-base (200ms): this fade
     covers the whole header, so a quick snap reads as a flicker —
     give the eye time to register it. */
  transition: background 700ms ease, box-shadow 700ms ease, backdrop-filter 700ms ease, color 700ms ease;
}
.site-header--overlay .nav__brand,
.site-header--overlay .nav__links a:not(.btn) { color: #fff; }
.site-header--overlay .nav__toggle { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.site-header--overlay.is-solid {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header--overlay.is-solid .nav__brand,
.site-header--overlay.is-solid .nav__links a:not(.btn) { color: var(--color-text); }
.site-header--overlay.is-solid .nav__toggle { color: var(--color-text); border-color: var(--color-border); }
@media (max-width: 640px) {
  /* The stacked mobile disclosure menu has no background of its own
     (see .nav.is-enhanced .nav__links.is-open); give it one here so
     open links aren't floating unreadably over the photo before the
     header has gone solid. */
  .site-header--overlay .nav.is-enhanced .nav__links.is-open {
    background: rgba(10, 8, 6, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-inline: calc(-1 * var(--space-4));
    padding: var(--space-4);
  }
  .site-header--overlay.is-solid .nav.is-enhanced .nav__links.is-open {
    background: var(--color-surface);
  }
}

/* ---- Hero photo (full-bleed image hero) --------------------
   Pairs with .site-header--overlay: the header floats over this
   section. Structure:
     <section class="hero-photo">
       <div class="hero-photo__media" style="background-image:url(...)"></div>
       <div class="hero-photo__scrim"></div>
       <div class="hero-photo__content container"> ... </div>
     </section>
   The scroll parallax (ui.js sets --parallax-y as the visitor
   scrolls) is skipped entirely under prefers-reduced-motion —
   see ui.js's own matchMedia guard — so motion-sensitive visitors
   just get the still, scaled photo below with no JS required. */
.hero-photo {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero-photo__media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: sepia(0.15) brightness(0.82);
  /* Scaled up beyond the section bounds so the parallax translate
     (ui.js) has headroom to move without exposing bare edges. */
  transform: scale(1.15) translate3d(0, calc(var(--parallax-y, 0) * 1px), 0);
  will-change: transform;
}
.hero-photo__scrim {
  position: absolute; inset: 0;
  /* Darkened at both ends on purpose: top protects nav-over-photo
     legibility even before .is-solid kicks in (or with no JS at
     all), bottom protects the headline/actions. */
  background: linear-gradient(180deg,
    rgba(10, 8, 6, 0.55) 0%,
    rgba(10, 8, 6, 0.08) 20%,
    rgba(10, 8, 6, 0.15) 55%,
    rgba(10, 8, 6, 0.88) 100%);
}
.hero-photo__content {
  position: relative; z-index: 1;
  padding-block: var(--space-24) var(--space-16);
  color: #fff;
}
.hero-photo__content .eyebrow { color: rgba(255, 255, 255, 0.75); }

/* ---- Grid -------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

/* ---- Grid system (12 columns) -----------------------------
   .grid-12 is the container; .col-span-N (1–12) sets width.
   Gap uses tokens. Below 640px every column goes full-width so
   layouts stay mobile-first without per-column breakpoints. */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
}
.grid-12.gap-sm { gap: var(--space-3); }
.grid-12.gap-lg { gap: var(--space-12); }

.col-span-1  { grid-column: span 1; }
.col-span-2  { grid-column: span 2; }
.col-span-3  { grid-column: span 3; }
.col-span-4  { grid-column: span 4; }
.col-span-5  { grid-column: span 5; }
.col-span-6  { grid-column: span 6; }
.col-span-7  { grid-column: span 7; }
.col-span-8  { grid-column: span 8; }
.col-span-9  { grid-column: span 9; }
.col-span-10 { grid-column: span 10; }
.col-span-11 { grid-column: span 11; }
.col-span-12 { grid-column: span 12; }
.col-start-2 { grid-column-start: 2; }  /* offset helper example */
.col-start-3 { grid-column-start: 3; }
.col-start-4 { grid-column-start: 4; }

@media (max-width: 640px) {
  .grid-12 > [class*="col-span"] { grid-column: 1 / -1; }
}

/* Responsive tiers (Bootstrap-style): col-md-N applies ≥768px,
   col-lg-N ≥1024px. Combine with a base .col-span-N for the
   small-screen width, e.g. class="col-span-12 col-md-6 col-lg-4". */
@media (min-width: 768px) {
  .col-md-1{grid-column:span 1}.col-md-2{grid-column:span 2}.col-md-3{grid-column:span 3}
  .col-md-4{grid-column:span 4}.col-md-5{grid-column:span 5}.col-md-6{grid-column:span 6}
  .col-md-7{grid-column:span 7}.col-md-8{grid-column:span 8}.col-md-9{grid-column:span 9}
  .col-md-10{grid-column:span 10}.col-md-11{grid-column:span 11}.col-md-12{grid-column:span 12}
}
@media (min-width: 1024px) {
  .col-lg-1{grid-column:span 1}.col-lg-2{grid-column:span 2}.col-lg-3{grid-column:span 3}
  .col-lg-4{grid-column:span 4}.col-lg-5{grid-column:span 5}.col-lg-6{grid-column:span 6}
  .col-lg-7{grid-column:span 7}.col-lg-8{grid-column:span 8}.col-lg-9{grid-column:span 9}
  .col-lg-10{grid-column:span 10}.col-lg-11{grid-column:span 11}.col-lg-12{grid-column:span 12}
}

/* ---- Icon -------------------------------------------------
   <svg class="icon"><use href="assets/icons.svg#icon-NAME"></use></svg>
   Sizes in em so an icon scales with its surrounding text. */
.icon {
  width: 1.25em; height: 1.25em;
  flex: 0 0 auto;
  vertical-align: -0.18em;   /* optical alignment with text baseline */
  color: inherit;            /* strokes use currentColor */
}
.icon--sm { width: 1em;   height: 1em;   vertical-align: -0.12em; }
.icon--lg { width: 1.5em; height: 1.5em; vertical-align: -0.25em; }
.icon--xl { width: 2rem;  height: 2rem; }

/* ---- External icon utility (Lucide / Iconoir) -------------
   Renders any monochrome SVG via CSS mask so it inherits
   currentColor — works with Lucide & Iconoir CDN files alike:
   <i class="ico" style="--ico:url('…/coffee.svg')" aria-hidden="true"></i>
   Stroke icons stay crisp; multicolour icons aren't supported (by design). */
.ico {
  display: inline-block;
  width: 1.25em; height: 1.25em;
  flex: 0 0 auto;
  vertical-align: -0.18em;
  background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
          mask: var(--ico) center / contain no-repeat;
}
.ico--sm { width: 1em;   height: 1em;   vertical-align: -0.12em; }
.ico--lg { width: 1.5em; height: 1.5em; vertical-align: -0.25em; }
.ico--xl { width: 2rem;  height: 2rem; }

/* ---- Hero -------------------------------------------------- */
.hero { text-align: center; padding-block: var(--space-24); }
.hero__title    { max-width: 18ch; margin-inline: auto; }
.hero__subtitle { max-width: var(--max-width-prose); margin-inline: auto; font-size: var(--text-lg); color: var(--color-text-muted); }
.hero__actions  { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* Fluid headline: scales without breakpoints */
.hero__title { font-size: clamp(var(--text-3xl), 6vw, var(--text-4xl)); }

/* ============================================================
   The 10 most important components continue below.
   Patterns adapted from Tailwind UI + Chakra UI, expressed in
   token-driven vanilla CSS. Interactivity lives in scripts/ui.js.
   ============================================================ */

/* ---- 2. Form field ---------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); max-width: var(--max-width-prose); }
.field__label { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text); }
.field__label .req { color: var(--color-danger); }
.field__hint  { font-size: var(--text-xs); color: var(--color-text-muted); }
.field__error { font-size: var(--text-xs); color: var(--color-danger); }

.input {
  height: var(--control-height);
  padding: 0 var(--space-3);
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
textarea.input { height: auto; padding-block: var(--space-3); resize: vertical; min-height: 6rem; }
.input::placeholder { color: var(--color-text-muted); }
.input:hover { border-color: color-mix(in srgb, var(--color-border) 60%, var(--color-text-muted)); }
.input:focus-visible {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand) 30%, transparent);
}
.input:disabled { opacity: 0.5; cursor: not-allowed; }
/* Invalid state — paired with .field__error text, never colour alone */
.field--invalid .input,
.input[aria-invalid="true"] {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-danger) 25%, transparent);
}

/* ---- 5. Modal / dialog (native <dialog>) ------------------ */
.modal {
  width: min(32rem, calc(100vw - var(--space-8)));
  padding: 0;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.modal::backdrop { background: var(--color-overlay); backdrop-filter: blur(2px); }
.modal__header { display: flex; align-items: start; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) var(--space-6) 0; }
.modal__title  { font-size: var(--text-lg); }
.modal__body   { padding: var(--space-4) var(--space-6); color: var(--color-text-muted); }
.modal__footer { display: flex; gap: var(--space-3); justify-content: flex-end; padding: 0 var(--space-6) var(--space-6); }
.modal__close  {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border: 0; border-radius: var(--radius-md);
  background: transparent; color: var(--color-text-muted); cursor: pointer; font-size: var(--text-lg);
}
.modal__close:hover { background: var(--color-surface-2); color: var(--color-text); }

/* ---- 6. Dropdown menu ------------------------------------- */
.menu { position: relative; display: inline-block; }
.menu__list {
  position: absolute; top: calc(100% + var(--space-2)); left: 0; z-index: var(--z-dropdown);
  min-width: 12rem; padding: var(--space-2); margin: 0; list-style: none;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.menu__list[hidden] { display: none; }
.menu__item {
  display: flex; align-items: center; gap: var(--space-2); width: 100%;
  padding: var(--space-2) var(--space-3); font: inherit; text-align: left;
  color: var(--color-text); background: transparent; border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.menu__item:hover, .menu__item:focus-visible { background: var(--color-surface-2); outline: none; }
.menu__item--danger { color: var(--color-danger); }
.menu__sep { height: 1px; margin: var(--space-2) 0; background: var(--color-border); border: 0; }

/* ---- 7. Alert (static) + Toast (transient) ---------------- */
.alert {
  display: flex; gap: var(--space-3); align-items: start;
  padding: var(--space-4); border: 1px solid var(--color-border);
  border-left-width: 4px; border-radius: var(--radius-md);
  background: var(--color-surface);
}
.alert__title { font-weight: var(--weight-medium); }
.alert__body  { color: var(--color-text-muted); font-size: var(--text-sm); }
.alert--info    { border-left-color: var(--color-brand);   background: color-mix(in srgb, var(--color-brand) 8%, var(--color-surface)); }
.alert--success { border-left-color: var(--color-success); background: color-mix(in srgb, var(--color-success) 8%, var(--color-surface)); }
.alert--warn    { border-left-color: var(--color-warn);    background: color-mix(in srgb, var(--color-warn) 8%, var(--color-surface)); }
.alert--danger  { border-left-color: var(--color-danger);  background: color-mix(in srgb, var(--color-danger) 8%, var(--color-surface)); }

.toast-region {
  position: fixed; bottom: var(--space-6); right: var(--space-6); z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: var(--space-3); width: min(22rem, calc(100vw - var(--space-8)));
}
.toast {
  display: flex; gap: var(--space-3); align-items: start;
  padding: var(--space-4); background: var(--color-surface-2);
  border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  animation: toast-in var(--transition-base);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(var(--space-2)); } }

/* ---- 8. Table --------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table caption { padding: var(--space-3) var(--space-4); text-align: left; color: var(--color-text-muted); }
.table th, .table td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--color-border); }
.table thead th { font-weight: var(--weight-medium); color: var(--color-text-muted); background: var(--color-surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--color-surface); }
.table--zebra tbody tr:nth-child(even) { background: color-mix(in srgb, var(--color-surface) 50%, transparent); }

/* ---- 9. Tabs ---------------------------------------------- */
.tabs__list { display: flex; gap: var(--space-2); border-bottom: 1px solid var(--color-border); }
.tabs__tab {
  padding: var(--space-3) var(--space-4); font: inherit; font-weight: var(--weight-medium);
  color: var(--color-text-muted); background: transparent; border: 0; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs__tab:hover { color: var(--color-text); }
.tabs__tab[aria-selected="true"] { color: var(--color-brand); border-bottom-color: var(--color-brand); }
.tabs__panel { padding-block: var(--space-6); }
.tabs__panel[hidden] { display: none; }

/* ---- Site footer — .site-footer --------------------------- */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-surface); }
.site-footer__top {
  display: grid; gap: var(--space-8) var(--space-12);
  grid-template-columns: 1.5fr repeat(3, 1fr);
  grid-auto-rows: auto;
  padding-block: var(--space-16);
}
.site-footer__brand {
  display: flex; flex-direction: column; gap: var(--space-3); max-width: 22rem;
  grid-column: 1; grid-row: 1 / 3;
}
.site-footer__brandname { font-weight: var(--weight-bold); color: var(--color-text); display: inline-flex; align-items: center; gap: var(--space-2); }
.site-footer__brandname img { display: block; width: auto; height: 28px; border-radius: var(--radius-sm); }
.site-footer__tagline { color: var(--color-text-muted); font-size: var(--text-sm); }
.site-footer__col { display: flex; flex-direction: column; gap: var(--space-3); }
.site-footer__heading {
  margin: 0;
  font-size: var(--text-xs); font-weight: var(--weight-medium);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted);
}
.site-footer__links { display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__col a { color: var(--color-text-muted); font-size: var(--text-sm); }
.site-footer__col a:hover { color: var(--color-text); }
.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  flex-wrap: wrap; padding-block: var(--space-6);
  border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: var(--text-sm);
}
.site-footer--slim .site-footer__bottom { border-top: 0; justify-content: center; padding-block: var(--space-4); font-size: var(--text-xs); }
.site-footer__social { display: flex; gap: var(--space-3); }
.site-footer__social a { color: var(--color-text-muted); }
.site-footer__social a:hover { color: var(--color-brand); }
@media (max-width: 768px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .site-footer__brand { grid-column: 1 / -1; grid-row: auto; }
}

/* ---- Sidebar nav / table of contents — .sidenav ----------
   A sticky vertical nav for in-page or cross-page wayfinding.
   Active item marked with aria-current (set in markup or by the
   scrollspy in ui.js). */
.sidenav { position: sticky; top: var(--space-6); align-self: start; }
.sidenav__title {
  font-size: var(--text-xs); font-weight: var(--weight-medium);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-text-muted); padding: 0 var(--space-3) var(--space-2);
}
.sidenav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.sidenav__link {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
  font-size: var(--text-sm); color: var(--color-text-muted);
  border-left: 2px solid transparent;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.sidenav__link:hover { color: var(--color-text); background: var(--color-surface); }
.sidenav__link[aria-current="true"], .sidenav__link[aria-current="page"] {
  color: var(--color-brand); font-weight: var(--weight-medium);
  background: color-mix(in srgb, var(--color-brand) 10%, transparent);
  border-left-color: var(--color-brand);
}
.sidenav__num { font-variant-numeric: tabular-nums; color: var(--color-text-muted); }
.sidenav__link[aria-current="true"] .sidenav__num, .sidenav__link[aria-current="page"] .sidenav__num { color: var(--color-brand); }

/* ---- 10. Badge (semantic; supersedes plain .pill) --------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-3); font-size: var(--text-xs); font-weight: var(--weight-medium);
  border-radius: var(--radius-full); background: var(--color-surface-2);
  color: var(--color-text-muted); border: 1px solid var(--color-border);
}
.badge--brand   { background: color-mix(in srgb, var(--color-brand) 15%, transparent);   color: var(--color-link);   border-color: transparent; }
.badge--success { background: color-mix(in srgb, var(--color-success) 15%, transparent); color: var(--color-success); border-color: transparent; }
.badge--warn    { background: color-mix(in srgb, var(--color-warn) 15%, transparent);    color: var(--color-warn);    border-color: transparent; }
.badge--danger  { background: color-mix(in srgb, var(--color-danger) 15%, transparent);  color: var(--color-danger);  border-color: transparent; }
.badge--dot::before { content: ""; width: 0.5em; height: 0.5em; border-radius: var(--radius-full); background: currentColor; }

/* ============================================================
   PHASE 1 — Integrations (Irish SMB). See specs/integrations.md
   and specs/personas.md. Three components ship together:
   .enquiry (lead form) · .pay (Stripe deposit) · .consent (banner)
   ============================================================ */

/* ---- Choice control (checkbox / radio row) ----------------
   Used for the consent + marketing opt-ins. The control is a row,
   not a column, so the label sits beside the box. Consent boxes
   are NEVER pre-checked — that's enforced in markup, not CSS. */
.choice { display: flex; gap: var(--space-3); align-items: flex-start; cursor: pointer; }
.choice input[type="checkbox"], .choice input[type="radio"] {
  flex: 0 0 auto; width: 1.15em; height: 1.15em; margin-top: 0.15em;
  accent-color: var(--color-brand); cursor: pointer;
}
.choice__text { font-size: var(--text-sm); color: var(--color-text); }
.choice__text a { color: var(--color-brand); text-decoration: underline; }
.choice__hint { display: block; color: var(--color-text-muted); font-size: var(--text-xs); margin-top: var(--space-1); }
.choice:has(input:focus-visible) .choice__text {
  outline: 2px solid var(--color-brand); outline-offset: 3px; border-radius: var(--radius-sm);
}

/* ---- Enquiry form — .enquiry ------------------------------
   A token-styled lead form. Works with zero JS (native validation +
   a normal POST); ui.js only adds inline errors + a success state.
   The honeypot field is visually hidden but reachable by bots. */
.enquiry { display: grid; gap: var(--space-4); max-width: 34rem; }
.enquiry__form { display: grid; gap: var(--space-5); }
.enquiry__row { display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .enquiry__row--2 { grid-template-columns: 1fr 1fr; } }
.enquiry .field { max-width: none; }
/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.enquiry__pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry__consent { display: grid; gap: var(--space-3); padding: var(--space-4);
  background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.enquiry__status { font-size: var(--text-sm); }
.enquiry[data-state="sent"] .enquiry__form { display: none; }
.enquiry__sent { display: none; }
.enquiry[data-state="sent"] .enquiry__sent { display: flex; }

/* ---- Pay block — .pay ------------------------------------
   A deposit / fixed-price call to action. Card data never touches
   the page: the button is a link to a Stripe-hosted Payment Link.
   Price is shown inclusive of Irish VAT (specs/integrations.md). */
.pay {
  display: grid; gap: var(--space-4); max-width: 24rem;
  padding: var(--space-6); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
}
.pay__amount { display: flex; align-items: baseline; gap: var(--space-2); }
.pay__price { font-size: var(--text-3xl); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }
.pay__vat { font-size: var(--text-sm); color: var(--color-text-muted); }
.pay__desc { color: var(--color-text-muted); font-size: var(--text-sm); }
.pay__methods { display: flex; gap: var(--space-2); align-items: flex-start;
  font-size: var(--text-xs); color: var(--color-text-muted); }

/* ---- Consent banner — .consent ---------------------------
   GDPR/ePrivacy gate. No third-party script with cookies loads
   until the visitor accepts. Hidden by default; ui.js reveals it
   when no prior choice is stored, and re-hides on a decision. */
.consent {
  position: fixed; inset: auto var(--space-4) var(--space-4) var(--space-4);
  z-index: var(--z-overlay); margin-inline: auto; max-width: 40rem;
  display: none; gap: var(--space-4); align-items: center; flex-wrap: wrap;
  padding: var(--space-6); background: var(--color-surface-2);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.consent[data-open] { display: flex; }
.consent__text { flex: 1 1 16rem; font-size: var(--text-sm); color: var(--color-text-muted); }
.consent__text strong { color: var(--color-text); }
.consent__text a { color: var(--color-brand); text-decoration: underline; }
.consent__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
/* A consent-gated embed shows its façade until consent is granted. */
.embed-gate__facade { display: grid; place-items: center; gap: var(--space-3); min-height: 16rem;
  padding: var(--space-6); text-align: center; background: var(--color-surface);
  border: 1px dashed var(--color-border); border-radius: var(--radius-lg); color: var(--color-text-muted); }
[data-consent-granted] .embed-gate__facade { display: none; }
.embed-gate__live { display: none; }
[data-consent-granted] .embed-gate__live { display: block; }
/* Demo stand-in shown in place of a real iframe on the reference pages. */
.embed-gate__placeholder { display: grid; place-items: center; min-height: 8rem; margin: 0;
  padding: var(--space-6); text-align: center; font-size: var(--text-sm); color: var(--color-text-muted);
  background: var(--color-surface); border: 1px dashed var(--color-border); border-radius: var(--radius-lg); }

/* ============================================================
   PHASE 2 — Scheduling + Maps & reviews (Irish SMB).
   ============================================================ */

/* ---- Scheduler — .scheduler -------------------------------
   A consent-gated booking embed. Reuses .embed-gate, adding a
   provider-branded façade so the page stays fast/cookie-free
   until the visitor chooses to load Acuity / Calendly / Cal.com. */
.scheduler { max-width: 44rem; }
.scheduler__facade { display: grid; gap: var(--space-4); justify-items: center; text-align: center;
  min-height: 18rem; padding: var(--space-8); background: var(--color-surface);
  border: 1px dashed var(--color-border); border-radius: var(--radius-lg); }
.scheduler__provider { display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); color: var(--color-text-muted); }
.scheduler__provider .badge { text-transform: none; }

/* ---- Star rating — .rating --------------------------------
   Accessible: the visual stars are decorative; the accessible name
   comes from aria-label on the container. --rating (0–5) sets fill. */
.rating { display: inline-flex; align-items: center; gap: var(--space-1); }
.rating__stars { --rating: 0; position: relative; display: inline-block;
  font-size: var(--text-lg); line-height: 1; color: var(--color-border); }
.rating__stars::before { content: "★★★★★"; }
.rating__stars::after { content: "★★★★★"; position: absolute; inset: 0; overflow: hidden;
  width: calc(var(--rating) / 5 * 100%); color: var(--color-warn); }
.rating__count { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---- Review card — .review --------------------------------
   Rendered from CACHED Google review data, not a live cookie-heavy
   widget. Plain content; no third-party script needed. */
.reviews { display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .reviews--grid { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); } }
.review { display: grid; gap: var(--space-3); padding: var(--space-6);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.review__head { display: flex; align-items: center; gap: var(--space-3); }
.review__avatar { width: 2.25rem; height: 2.25rem; flex: 0 0 auto; border-radius: var(--radius-full);
  display: grid; place-items: center; font-weight: var(--weight-bold);
  background: color-mix(in srgb, var(--color-brand) 18%, var(--color-surface-2)); color: var(--color-text); }
.review__who { display: grid; }
.review__name { font-weight: var(--weight-medium); }
.review__date { font-size: var(--text-xs); color: var(--color-text-muted); }
.review__body { color: var(--color-text); font-size: var(--text-sm); }
.review__source { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ---- Map block — .mapblock --------------------------------
   Consent-gated map with a static address + Eircode fallback that
   ALWAYS shows (works with no JS, no consent, no network to Google). */
.mapblock { display: grid; gap: var(--space-4); }
.mapblock__address { display: grid; gap: var(--space-1); font-size: var(--text-sm);
  padding: var(--space-4); background: var(--color-surface-2);
  border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.mapblock__address dt { color: var(--color-text-muted); font-size: var(--text-xs); }
.mapblock__eircode { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* ============================================================
   PHASE 3 — Point of sale (Square / SumUp deep links).
   The site CONNECTS to the trader's existing PoS; it never
   duplicates the checkout. Buttons are links, not forms.
   ============================================================ */
.pos { display: grid; gap: var(--space-4); max-width: 32rem; }
.pos__options { display: grid; gap: var(--space-3); }
@media (min-width: 520px) { .pos__options { grid-template-columns: 1fr 1fr; } }
.pos__option { display: flex; align-items: center; gap: var(--space-3); text-align: left;
  padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); color: var(--color-text); text-decoration: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast); }
.pos__option:hover { border-color: var(--color-brand); transform: translateY(-1px); }
.pos__option:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.pos__icon { font-size: var(--text-2xl); color: var(--color-brand); flex: 0 0 auto; }
.pos__label { display: grid; gap: var(--space-1); }
.pos__name { font-weight: var(--weight-medium); }
.pos__sub { font-size: var(--text-xs); color: var(--color-text-muted); }
.pos__provider { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ============================================================
   EXTENDED COMPONENTS — carousel, accordion, pricing, stats,
   timeline, team, features, cta, steps, testimonial, progress,
   avatar-group, divider, skip-link.
   ============================================================ */

/* ---- A. Carousel — .carousel ------------------------------
   Horizontal scroll-snap container. Zero JS for basic function.
   ui.js wires the prev/next buttons: put a .carousel__controls block straight after the
   .carousel, with buttons carrying data-carousel-step="-1" and "1". */
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: var(--space-4); scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  padding-block: var(--space-2); }
.carousel::-webkit-scrollbar { display: none; }
.carousel { scrollbar-width: none; }
.carousel__slide { scroll-snap-align: start; flex: 0 0 min(20rem, 80vw); }
.carousel__controls { display: flex; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); }
.carousel--peek { padding-inline: var(--space-4); }

/* ---- B. Accordion / FAQ — .accordion ---------------------
   Native <details>/<summary>. Zero JS required. */
.accordion { display: grid; gap: 1px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.accordion__item { background: var(--color-surface); }
.accordion__trigger { display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding: var(--space-5) var(--space-6);
  font-weight: var(--weight-medium); cursor: pointer; list-style: none;
  color: var(--color-text); }
.accordion__trigger::-webkit-details-marker { display: none; }
.accordion__trigger::marker { display: none; }
.accordion__trigger::after { content: "+"; font-size: var(--text-lg); line-height: 1;
  color: var(--color-text-muted); flex: 0 0 auto;
  transition: transform var(--transition-fast); }
details[open] > .accordion__trigger::after { content: "×"; }
.accordion__body { padding: 0 var(--space-6) var(--space-5);
  color: var(--color-text-muted); font-size: var(--text-sm); }

/* ---- C. Pricing table — .pricing -------------------------*/
.pricing { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.pricing__plan { background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-8); display: grid; gap: var(--space-4); }
.pricing__plan--featured { border-color: var(--color-brand); box-shadow: var(--shadow-md); }
.pricing__name { font-weight: var(--weight-bold); font-size: var(--text-lg); }
.pricing__price { font-size: var(--text-3xl); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }
.pricing__period { font-size: var(--text-sm); color: var(--color-text-muted); }
.pricing__desc { color: var(--color-text-muted); font-size: var(--text-sm); }
.pricing__features { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.pricing__feature { display: flex; gap: var(--space-2); font-size: var(--text-sm); align-items: flex-start; }
.pricing__feature::before { content: "✓"; color: var(--color-brand); font-weight: var(--weight-bold); flex: 0 0 auto; }
.pricing__feature--unavailable { color: var(--color-text-muted); }
.pricing__feature--unavailable::before { content: "–"; color: var(--color-text-muted); }

/* ---- D. Stats / numbers — .stats -------------------------*/
.stats { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); text-align: center; }
.stat__value { font-size: var(--text-3xl); font-weight: var(--weight-bold); color: var(--color-brand);
  font-variant-numeric: tabular-nums; line-height: var(--leading-tight); }
.stat__label { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-1); }
.stat__sub { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ---- E. Timeline — .timeline -----------------------------*/
.timeline { display: grid; gap: 0; position: relative; }
.timeline__item { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4) var(--space-6); padding-bottom: var(--space-8); }
.timeline__marker { display: flex; flex-direction: column; align-items: center; gap: 0; }
.timeline__dot { width: 0.75rem; height: 0.75rem; border-radius: var(--radius-full);
  background: var(--color-brand); flex: 0 0 auto; margin-top: 0.25rem; }
.timeline__dot--muted { background: var(--color-border); }
.timeline__line { flex: 1; width: 2px; background: var(--color-border); margin-top: var(--space-2); }
.timeline__item:last-child .timeline__line { display: none; }
.timeline__content { padding-bottom: var(--space-2); }
.timeline__date { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-1); }
.timeline__title { font-weight: var(--weight-medium); }
.timeline__body { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-1); }

/* ---- F. Team grid — .team --------------------------------*/
.team { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.team__member { display: grid; gap: var(--space-3); text-align: center; }
.team__avatar { width: 5rem; height: 5rem; border-radius: var(--radius-full); margin-inline: auto;
  background: color-mix(in srgb, var(--color-brand) 18%, var(--color-surface-2));
  display: grid; place-items: center; font-size: var(--text-2xl); font-weight: var(--weight-bold);
  color: var(--color-text); overflow: hidden; }
.team__avatar img { width: 100%; height: 100%; object-fit: cover; }
.team__name { font-family: var(--font-heading); font-weight: var(--weight-medium); }
.team__role { font-size: var(--text-sm); color: var(--color-text-muted); }
.team__bio { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---- G. Feature grid — .features -------------------------*/
.features { display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.feature { display: grid; gap: var(--space-3); }
.feature__icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-brand) 15%, transparent);
  display: grid; place-items: center; color: var(--color-brand); font-size: var(--text-xl); }
.feature__title { font-weight: var(--weight-medium); }
.feature__body { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ---- H. CTA section — .cta -------------------------------*/
.cta { text-align: center; padding-block: var(--space-20); display: grid; gap: var(--space-6); place-items: center; }
.cta--filled { background: color-mix(in srgb, var(--color-brand) 8%, var(--color-surface));
  border: 1px solid color-mix(in srgb, var(--color-brand) 25%, transparent);
  border-radius: var(--radius-lg); padding: var(--space-16); }
.cta__title { font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl)); font-weight: var(--weight-bold); max-width: 22ch; }
.cta__body { color: var(--color-text-muted); max-width: var(--max-width-prose); }
.cta__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }

/* ---- I. Steps / process — .steps -------------------------*/
.steps { display: grid; gap: var(--space-8); counter-reset: steps; }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); counter-increment: steps; }
.step__num { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--color-brand) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-brand) 40%, transparent);
  color: var(--color-brand); font-weight: var(--weight-bold); display: grid;
  place-items: center; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.step__num::before { content: counter(steps); }
.step__title { font-weight: var(--weight-medium); margin-bottom: var(--space-1); }
.step__body { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ---- J. Testimonial — .testimonial -----------------------
   Large pull-quote style. Distinct from .review (card-sized). */
.testimonial { display: grid; gap: var(--space-6); max-width: var(--max-width-prose); }
.testimonial__quote { font-size: var(--text-xl); color: var(--color-text); line-height: var(--leading-normal); }
.testimonial__quote::before { content: "\201C"; color: var(--color-brand); font-size: var(--text-4xl);
  line-height: 0.8; vertical-align: -0.3em; margin-right: var(--space-1); }
.testimonial__cite { display: flex; align-items: center; gap: var(--space-4); }
.testimonial__avatar { width: 3rem; height: 3rem; border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--color-brand) 18%, var(--color-surface-2));
  display: grid; place-items: center; font-size: var(--text-lg); font-weight: var(--weight-bold);
  color: var(--color-text); overflow: hidden; flex: 0 0 auto; }
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__who { display: grid; }
.testimonial__name { font-weight: var(--weight-medium); }
.testimonial__company { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---- K. Progress bar — .progress -------------------------*/
.progress { display: grid; gap: var(--space-2); }
.progress__label { display: flex; justify-content: space-between; font-size: var(--text-sm); }
.progress__track { height: 0.5rem; background: var(--color-surface-2); border-radius: var(--radius-full); overflow: hidden; }
.progress__fill { height: 100%; background: var(--color-brand); border-radius: var(--radius-full);
  transition: width var(--transition-base); width: var(--progress, 0%); }
.progress__fill--success { background: var(--color-success); }
.progress__fill--warn { background: var(--color-warn); }

/* ---- L. Avatar group — .avatar-group ---------------------
   Stacked overlapping avatars — "3 people doing X". */
.avatar-group { display: flex; align-items: center; }
.avatar-group__item { width: 2.25rem; height: 2.25rem; border-radius: var(--radius-full);
  border: 2px solid var(--color-bg);
  background: color-mix(in srgb, var(--color-brand) 18%, var(--color-surface-2));
  display: grid; place-items: center; font-size: var(--text-xs);
  font-weight: var(--weight-bold); overflow: hidden; margin-left: -0.5rem; }
.avatar-group__item:first-child { margin-left: 0; }
.avatar-group__item img { width: 100%; height: 100%; object-fit: cover; }
.avatar-group__count { background: var(--color-surface-2); color: var(--color-text-muted); }

/* ---- M. Divider — .divider --------------------------------*/
.divider { display: flex; align-items: center; gap: var(--space-4);
  color: var(--color-text-muted); font-size: var(--text-sm); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }
.divider--vertical { width: 1px; height: 100%; background: var(--color-border);
  margin-inline: var(--space-4); align-self: stretch; }
.divider--vertical::before, .divider--vertical::after { display: none; }

/* ---- N. Skip link — .skip-link ---------------------------
   Accessibility: visible only on keyboard focus. */
.skip-link { position: absolute; top: var(--space-2); left: var(--space-2); z-index: 9999;
  padding: var(--space-2) var(--space-4); background: var(--color-brand); color: var(--color-on-brand);
  border-radius: var(--radius-md); font-weight: var(--weight-medium);
  transform: translateY(-200%); transition: transform var(--transition-fast); }
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   SECTION KIT — the page-building blocks a local-business site
   is assembled from. Every look-and-feel decision reads a theme
   knob (see tokens.css "THEME KNOBS"), so a client re-skins these
   from theme.css alone. Catalogued in COMPONENTS.md.
   ============================================================ */

/* ---- Site header sticky — .site-header--sticky ---------------
   Opt-in via client.json "nav": { "variant": "sticky" }. The header
   element is also the .container, so the full-bleed bar is painted
   with border-image outset (no extra wrapper, no overflow). */
.site-header--sticky {
  position: sticky; top: 0; z-index: var(--z-dropdown);
  border-image: conic-gradient(var(--header-bg) 0 0) fill 0 / 0 / 0 100vmax;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.site-header--sticky .nav__brand { font-family: var(--font-heading); font-stretch: var(--heading-stretch);
  text-transform: var(--heading-transform); font-weight: var(--heading-weight); font-size: var(--text-lg); }
.site-header--sticky .nav__brand .ico { color: var(--color-brand); }
.site-header--sticky .nav__links a:not(.btn) { color: var(--color-text-muted); font-size: var(--text-sm);
  font-weight: var(--weight-medium); transition: color var(--transition-fast); }
.site-header--sticky .nav__links a:not(.btn):hover { color: var(--color-text); }
.site-header--sticky ~ main [id] { scroll-margin-top: var(--space-20); }

/* ---- Section head — .section-head ----------------------------
   Eyebrow + headline + optional intro above any section.
   --split puts the intro beside the headline on wide screens. */
.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-12); }
.section-head h2 { font-size: var(--text-section); text-wrap: balance; max-width: 20ch; }
.section-head p:not(.eyebrow) { color: var(--color-text-muted); font-size: var(--text-lg); text-wrap: pretty; }
.section-head p a { text-decoration: underline; text-underline-offset: 0.2em; }
.section-head--center { justify-items: center; text-align: center; }
@media (min-width: 860px) {
  .section-head--split { grid-template-columns: 1fr 1fr; column-gap: var(--space-12); align-items: end; }
  .section-head--split .eyebrow { grid-column: 1 / -1; }
}

/* ---- Hero split — .hero--split -------------------------------
   Left-aligned copy beside a photo. Structure:
     <section class="hero hero--split">
       <div class="container hero__grid">
         <div class="hero__content"> eyebrow, .hero__title, .hero__subtitle,
              .hero__actions, .hero__proof </div>
         <figure class="hero__media media"> <img> <figcaption class="media__card"> </figure>
       </div>
     </section> */
.hero--split { text-align: left; padding-block: var(--space-16) var(--space-20);
  background-image: var(--surface-texture); overflow: clip; }
.hero__grid { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.2fr 0.8fr; gap: var(--space-16); } }
.hero--split .stats--strip { margin-top: var(--space-16); }
@media (max-width: 959px) { .hero__media.media--portrait img { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) {
  .hero--split .hero__actions { width: 100%; }
  .hero--split .hero__actions .btn { flex: 1 1 100%; }
}
.hero__content { display: grid; gap: var(--space-6); justify-items: start; }
.hero--split .hero__title { font-size: var(--text-display); margin-inline: 0; max-width: 12ch; text-wrap: balance; }
.hero__title em, .section-head h2 em, .cta__title em { font-style: var(--emphasis-style); color: var(--emphasis-color); }
.hero--split .hero__subtitle { margin-inline: 0; max-width: 46ch; text-wrap: pretty; }
.hero--split .hero__actions { justify-content: flex-start; }
.hero__proof { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6);
  font-size: var(--text-sm); color: var(--color-text-muted); }
.hero__proof strong { color: var(--color-text); font-weight: var(--weight-medium); }

/* ---- Hero centred — .hero--center ----------------------------
   A landing page: centred copy and two prominent buttons, with an
   optional .mockup below. Structure:
     <section class="hero hero--center">
       <div class="container hero__content">
         <div class="hero__badges"> .badge … </div>
         .hero__title, .hero__subtitle, .hero__actions, .hero__proof
       </div>
     </section>
   The glow behind it is --surface-texture. The page is a full-height
   column, so a .site-footer--slim sits at the bottom of the screen. */
body:has(.hero--center) { min-height: 100svh; display: flex; flex-direction: column; }
body:has(.hero--center) > main { flex: 1; }
.hero--center { background-image: var(--surface-texture); padding-block: var(--space-20) var(--space-12); overflow: clip; }
.hero--center .hero__content { justify-items: center; text-align: center; gap: var(--space-8); }
.hero--center .hero__title { font-size: var(--text-display); max-width: 20ch; text-wrap: balance; }
.hero--center .hero__subtitle { max-width: 52ch; text-wrap: pretty; }
.hero--center .hero__actions { justify-content: center; }
.hero--center .hero__actions .btn { min-width: 12rem; }
.hero__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
@media (max-width: 520px) {
  .hero--center .hero__actions { width: 100%; }
  .hero--center .hero__actions .btn { flex: 1 1 100%; }
}

/* ---- Mockup — .mockup ----------------------------------------
   An app window drawn in HTML, so it follows the theme. Decorative:
   mark it aria-hidden and describe it in a <figcaption>. Structure:
     <figure class="mockup">
       <div class="mockup__window" aria-hidden="true">
         <div class="mockup__bar"><span class="mockup__dots"><i></i><i></i><i></i></span> title </div>
         <div class="mockup__body">
           <nav class="mockup__side"> <span class="mockup__nav [is-active]"> </nav>
           <div class="mockup__main">
             <div class="mockup__head"> <strong class="mockup__title"> + .badge </div>
             <div class="mockup__row"> .mockup__cell (--name has a __sub line), badges, .mockup__when </div>
           </div>
         </div>
       </div>
       <figcaption class="mockup__caption"> </figcaption>
     </figure>
   Use sample data that is plainly fictional (example domains). */
.mockup { margin: 0; width: 100%; max-width: 60rem; margin-inline: auto; }
.mockup__window { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface);
  box-shadow: var(--shadow-md); overflow: hidden; text-align: left; font-size: var(--text-sm); }
.mockup__bar { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border); color: var(--color-text-muted); font-size: var(--text-xs); }
.mockup__dots { display: flex; gap: var(--space-2); }
.mockup__dots i { width: 0.6rem; height: 0.6rem; border-radius: var(--radius-full); background: var(--color-surface-2); }
.mockup__body { display: grid; grid-template-columns: 11rem 1fr; }
.mockup__side { display: grid; align-content: start; gap: var(--space-1); padding: var(--space-4);
  border-right: 1px solid var(--color-border); }
.mockup__nav { padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); color: var(--color-text-muted); }
.mockup__nav.is-active { background: var(--color-surface-2); color: var(--color-text); }
.mockup__main { padding: var(--space-5); display: grid; gap: var(--space-2); align-content: start; min-width: 0; }
.mockup__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
  padding-bottom: var(--space-3); }
.mockup__title { font-size: var(--text-base); color: var(--color-text); }
.mockup__row { display: grid; grid-template-columns: 1.6fr auto auto 1fr; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-bg); }
.mockup__cell--name { display: grid; min-width: 0; color: var(--color-text); font-weight: var(--weight-medium); }
.mockup__sub { color: var(--color-text-muted); font-weight: var(--weight-normal); font-size: var(--text-xs); }
.mockup__row .badge { justify-self: start; }
.mockup__when { color: var(--color-text-muted); font-size: var(--text-xs); text-align: right; }
.mockup__caption { margin-top: var(--space-3); color: var(--color-text-muted); font-size: var(--text-xs); text-align: center; }
@media (max-width: 720px) {
  .mockup__body { grid-template-columns: 1fr; }
  .mockup__side { display: none; }
  .mockup__row { grid-template-columns: 1fr auto; }
  .mockup__cell--name + .badge, .mockup__when { display: none; }
}

/* ---- Media frame — .media ------------------------------------
   A cropped photo with an optional floating fact card. Always give
   the <img> width/height (no layout shift) and real alt text. */
.media { position: relative; margin: 0; border-radius: var(--radius-lg); }
.media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; aspect-ratio: 4 / 3;
  background: var(--color-surface-2);
  filter: var(--media-filter); }
.media--portrait img { aspect-ratio: 4 / 5; }
.media--wide img { aspect-ratio: 16 / 9; }
.media--natural img { filter: none; }
.media__card { position: absolute; left: var(--space-4); bottom: var(--space-4); max-width: calc(100% - var(--space-8));
  display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-5);
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border); border-radius: var(--radius-md); }
@media (min-width: 960px) { .media__card { left: calc(-1 * var(--space-8)); bottom: var(--space-8); } }
/* Small screens: the card tucks under the photo instead of covering it. */
@media (max-width: 599px) {
  .media__card { position: relative; left: auto; bottom: auto; max-width: none;
    margin: calc(-1 * var(--space-8)) var(--space-4) 0; background: var(--color-surface); }
}
.media__label { font-family: var(--eyebrow-font); font-size: var(--text-xs); letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase; color: var(--color-text-muted); }
.media__value { font-family: var(--font-data); font-size: var(--text-2xl); font-weight: var(--weight-bold);
  line-height: 1; color: var(--color-brand); font-variant-numeric: tabular-nums; }
.media__note { font-size: var(--text-sm); color: var(--color-text); }

/* ---- Stat strip — .stats--strip ------------------------------
   .stats laid out as a ruled, left-aligned band of figures. */
.stats--strip { text-align: left; gap: 0; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--color-border); }
@media (min-width: 720px) { .stats--strip { grid-template-columns: repeat(4, 1fr); } }
.stats--strip .stat { padding: var(--space-6) var(--space-6) var(--space-6) 0; }
.stats--strip .stat + .stat { padding-left: var(--space-6); border-left: 1px solid var(--color-border); }
@media (max-width: 719px) {
  .stats--strip .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats--strip .stat:nth-child(n + 3) { border-top: 1px solid var(--color-border); }
}
.stats--strip .stat__value { font-family: var(--font-data); color: var(--color-text); }

/* ---- Ticker — .ticker ----------------------------------------
   A slow horizontal band of short phrases. Pure CSS. The track holds
   the list TWICE (second copy aria-hidden) so the loop is seamless.
   Reduced motion → base.css stops the animation; it reads as a row. */
.ticker { overflow: hidden; border-block: 1px solid var(--color-border); background: var(--color-surface);
  padding-block: var(--space-4); }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; flex: 0 0 auto; margin: 0; padding: 0; list-style: none; }
.ticker__item { display: inline-flex; align-items: center; gap: var(--space-6); padding-right: var(--space-6);
  font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: var(--heading-weight);
  text-transform: var(--heading-transform); font-size: var(--text-lg); white-space: nowrap; color: var(--color-text-muted); }
.ticker__item::after { content: ""; width: 0.5rem; height: 0.5rem; background: var(--color-accent); flex: 0 0 auto; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---- Tiles — .tiles ------------------------------------------
   A ruled grid of short numbered facts: services, stations, steps
   of a treatment, what's included. */
.tiles { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  background: var(--color-border); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .tiles--4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 899px) {
  .tiles--4 { grid-template-columns: repeat(2, 1fr); }
  .tiles--4 .tile { padding: var(--space-4); }
  .tiles--4 .tile__title { font-size: var(--text-lg); }
}
.tile { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-6);
  background: var(--color-surface); transition: background var(--transition-base); }
.tile:hover { background: var(--color-surface-2); }
.tile__index { font-family: var(--font-data); font-size: var(--text-sm); color: var(--color-brand);
  font-variant-numeric: tabular-nums; }
.tile__title { font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: var(--heading-weight);
  text-transform: var(--heading-transform); font-size: var(--text-xl); line-height: var(--leading-tight); }
.tile__meta { font-family: var(--font-data); font-size: var(--text-sm); color: var(--color-text-muted); }
.tile__body { font-size: var(--text-sm); color: var(--color-text-muted); }
.tiles__note { margin-top: var(--space-4); max-width: none; font-family: var(--font-data); font-size: var(--text-sm); color: var(--color-text-muted); }
.tiles__note strong { color: var(--color-brand); font-weight: var(--weight-medium); }

/* ---- Steps row — .steps--row ---------------------------------
   .steps laid out across the page on wide screens. */
.steps--row { margin: 0; padding: 0; list-style: none; }
@media (min-width: 860px) {
  .steps--row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--space-8); }
  .steps--row .step { grid-template-columns: 1fr; padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
}
.steps--row .step__num { font-family: var(--font-data); border-radius: var(--radius-md); }
.steps--row .step__title { font-family: var(--font-heading); font-stretch: var(--heading-stretch);
  font-weight: var(--heading-weight); text-transform: var(--heading-transform); font-size: var(--text-xl); }

/* ---- Timetable — .timetable ----------------------------------
   A week of classes or sessions, one column per day. Scrolls
   sideways with snap on small screens. Each day is a list, so it
   reads correctly with no CSS at all. */
.timetable { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(11rem, 1fr); gap: var(--space-3);
  overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: var(--space-3);
  margin-inline: calc(-1 * var(--space-6)); padding-inline: var(--space-6); scroll-padding-inline: var(--space-6); }
@media (min-width: 1100px) {
  .timetable { grid-auto-columns: minmax(0, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.timetable__day { scroll-snap-align: start; display: grid; gap: var(--space-2); align-content: start; }
.timetable__name { font-family: var(--eyebrow-font); font-size: var(--text-xs); letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase; color: var(--color-text-muted); font-weight: var(--weight-medium);
  padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-border); }
.timetable__list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.timetable__slot { display: grid; gap: var(--space-1); padding: var(--space-3);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  border-left: 3px solid var(--color-border); }
.timetable__slot--accent { border-left-color: var(--color-brand); }
.timetable__time { font-family: var(--font-data); font-size: var(--text-xs); color: var(--color-text-muted);
  font-variant-numeric: tabular-nums; }
.timetable__class { font-size: var(--text-sm); font-weight: var(--weight-medium); }
.timetable__meta { font-size: var(--text-xs); color: var(--color-text-muted); }
.timetable__legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-4);
  font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---- Pricing extras — .pricing__badge ------------------------
   Additions to .pricing: a badge on the featured plan, a CTA
   pinned to the bottom, theme-driven type. */
.pricing__plan { position: relative; }
.pricing__plan:has(.pricing__cta) { grid-template-rows: auto auto auto 1fr auto; }
.pricing__plan--featured:has(.pricing__badge) { background: color-mix(in srgb, var(--color-brand) 6%, var(--color-surface)); }
.pricing__badge { position: absolute; top: 0; right: var(--space-6); transform: translateY(-50%);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm);
  background: var(--color-brand); color: var(--color-on-brand);
  font-family: var(--eyebrow-font); font-size: var(--text-xs); font-weight: var(--weight-bold);
  letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; }
.pricing__name { font-family: var(--font-heading); font-stretch: var(--heading-stretch);
  text-transform: var(--heading-transform); }
.pricing__price { font-family: var(--font-data); }
.pricing__cta { align-self: end; }

/* ---- Team cards — .team--cards -------------------------------
   .team as side-by-side cards with a photo or monogram. */
.team--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.team--cards .team__member { grid-template-columns: auto 1fr; gap: var(--space-5); align-items: start; text-align: left;
  padding: var(--space-6); background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); }
.team--cards .team__avatar { margin: 0; border-radius: var(--radius-md); background: var(--gradient-brand);
  color: var(--color-on-brand); font-family: var(--font-heading); font-stretch: var(--heading-stretch); }
.team--cards .team__name { font-family: var(--font-heading); font-stretch: var(--heading-stretch);
  font-weight: var(--heading-weight); text-transform: var(--heading-transform); font-size: var(--text-xl); }
.team--cards .team__role { font-family: var(--eyebrow-font); font-size: var(--text-xs); letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase; color: var(--color-brand); }
.team--cards .team__bio { margin-top: var(--space-2); }

/* ---- Hours — .hours ------------------------------------------
   Opening hours as a ruled list. build.js renders it from
   client.json "business.hours" ({{business.hoursList}}), the same
   data that feeds the JSON-LD. ui.js marks today's row. */
.hours { display: grid; margin: 0; font-size: var(--text-sm); }
.hours__row { display: flex; justify-content: space-between; gap: var(--space-6);
  padding-block: var(--space-3); border-bottom: 1px solid var(--color-border); }
.hours__row dt { font-weight: var(--weight-medium); }
.hours__row dd { margin: 0; font-family: var(--font-data); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.hours__row.is-today dt, .hours__row.is-today dd { color: var(--color-brand); }
.hours__row.is-today dt::after { content: " · today"; font-weight: var(--weight-normal); }

/* ---- Split — .split ------------------------------------------
   Two columns that stack on small screens. */
.split { display: grid; gap: var(--space-12); align-items: start; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
  .split--wide-end { grid-template-columns: 1fr 1.25fr; }
  .split--wide-start { grid-template-columns: 1.25fr 1fr; }
  .split--center { align-items: center; }
}
.split__title { font-size: var(--text-lg); margin-bottom: var(--space-4); }

/* ---- Checklist — .checklist ----------------------------------
   Icon-led list of short points: <li><i class="ico …"></i><div><strong>…</strong><span>…</span></div></li> */
.checklist { display: grid; gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; }
.checklist .ico { color: var(--color-brand); margin-top: 0.15em; }
.checklist strong { display: block; font-weight: var(--weight-medium); }
.checklist span { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ---- CTA band — .cta--band -----------------------------------
   .cta as a brand-filled closing band: copy left, action right. */
.cta--band { text-align: left; place-items: start; grid-template-columns: 1fr; gap: var(--space-6);
  padding: var(--space-12) var(--space-8); border-radius: var(--radius-lg);
  background: var(--gradient-brand); color: var(--color-on-brand); }
@media (min-width: 860px) { .cta--band { grid-template-columns: 1fr auto; align-items: center; padding: var(--space-16); } }
.cta--band .cta__title { font-size: var(--text-section); max-width: 18ch; text-wrap: balance; }
.cta--band .cta__title em { color: inherit; }
.cta--band .cta__body { color: inherit; opacity: 0.85; margin-top: var(--space-3); }
.cta--band .btn { background: var(--color-on-brand); color: var(--color-brand); border-color: transparent; }
.cta--band .btn:hover { background: color-mix(in srgb, var(--color-on-brand) 88%, var(--color-brand)); }

/* ---- Spotlight — .spotlight ----------------------------------
   A brand-filled panel for the one special thing a business sells
   beyond the everyday: a retreat, a wedding package, gift vouchers,
   a resale shop. Optional wide photo, copy, and a details card.
     <div class="spotlight">
       <figure class="spotlight__media"><img …></figure>
       <div class="spotlight__body">
         <div class="spotlight__copy"> eyebrow, h2, p, .btn </div>
         <div class="spotlight__card"> .spotlight__price, dl.spotlight__meta, .btn </div>
       </div>
     </div> */
.spotlight { background: var(--color-brand); color: var(--color-on-brand);
  border-radius: var(--radius-lg); overflow: hidden; }
.spotlight__media { margin: 0; }
.spotlight__media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; filter: var(--media-filter); }
.spotlight__body { display: grid; gap: var(--space-8); align-items: center; padding: var(--space-8); }
@media (min-width: 860px) { .spotlight__body { grid-template-columns: 1.3fr 1fr; gap: var(--space-16); padding: var(--space-16); } }
.spotlight__copy { display: grid; gap: var(--space-5); justify-items: start; }
.spotlight h2 { font-size: var(--text-section); text-wrap: balance; }
.spotlight .eyebrow { color: var(--color-on-brand); }
.spotlight p:not(.eyebrow) { color: color-mix(in srgb, var(--color-on-brand) 82%, var(--color-brand)); }
.spotlight .btn--primary { background: var(--color-on-brand); color: var(--color-brand); }
.spotlight__card { display: grid; gap: var(--space-5); padding: var(--space-6);
  background: color-mix(in srgb, var(--color-on-brand) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-on-brand) 22%, transparent); border-radius: var(--radius-md); }
.spotlight__price { font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-size: var(--text-3xl); line-height: 1; }
.spotlight__price small { font-family: var(--font-sans); font-size: var(--text-sm); opacity: 0.75; }
.spotlight__meta { display: grid; gap: var(--space-2); margin: 0; font-size: var(--text-sm); }
.spotlight__meta div { display: flex; gap: var(--space-3); align-items: baseline; }
.spotlight__meta dt { min-width: 5.5rem; opacity: 0.7; }
.spotlight__meta dd { margin: 0; }

/* ---- Action bar — .actionbar ---------------------------------
   Phone-only bar pinned to the bottom with the one or two actions
   that matter (call, WhatsApp, book). Hidden on wider screens. */
.actionbar { display: none; }
@media (max-width: 640px) {
  .actionbar { position: fixed; inset: auto 0 0 0; z-index: var(--z-dropdown); display: grid;
    grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-2);
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
    background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border); }
  body:has(.actionbar) { padding-bottom: calc(var(--control-height) + var(--space-8)); }
}

/* ---- Booking — .booking --------------------------------------
   Visitor-facing booking flow for the Kleaver booking service:
   date grid (ARIA grid), time radios, details form, confirmation,
   and manage mode. Driven by the booking script on [data-booking].
   Without JS only the fallback contact shows. Every selector here
   names booking classes only, so the tree-shaker keeps this block
   for booking pages alone. States: data-state on the root. */
.booking { display: grid; gap: var(--space-6); max-width: 56rem; margin-inline: auto; }
.booking [hidden] { display: none; }
.booking__head { display: grid; gap: var(--space-3); }
.booking__title { font-size: var(--text-section); letter-spacing: var(--heading-tracking); }
.booking__intro { color: var(--color-text-muted); font-size: var(--text-lg); }
.booking__status { max-width: none; min-height: 1.5em; font-size: var(--text-sm); color: var(--color-text-muted); }
.booking__status:empty { min-height: 0; margin-block: calc(var(--space-6) / -2); }
.booking__status:not(:empty):not(.booking__status--sr) { padding: var(--space-3) var(--space-4); color: var(--color-text);
  background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.booking__sr, .booking__pot, .booking__status--sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
/* Honeypot: off-screen as well as clipped, so neither people nor layout ever see it. */
.booking__pot { left: -9999px; }

/* Fallback contact: shown without JS, and whenever the service can't help. */
.booking__fallback {
  display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-5);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-brand); border-radius: var(--radius-md);
}
.booking__fallback-title { font-weight: var(--weight-bold); }
.booking__fallback a, .booking__summary a, .booking__done a { color: var(--color-link); text-decoration: underline; text-underline-offset: 0.15em; }
.booking__noscript { color: var(--color-text-muted); }

/* Summary of what is being booked (and, in manage mode, the booking). */
.booking__summary { display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-5);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.booking__summary-title { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: var(--text-lg); }
.booking__summary-meta, .booking__summary-when { color: var(--color-text-muted); overflow-wrap: anywhere; }
.booking__summary-when { color: var(--color-text); font-family: var(--font-data); }

/* Event types (only when there is more than one). */
.booking__fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--space-3); }
.booking__legend { padding: 0; font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: var(--text-lg); }
.booking__type-list { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.booking__type { position: relative; display: flex; gap: var(--space-3); align-items: center; min-height: 44px;
  padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; }
.booking__type input { accent-color: var(--color-brand); width: 1.15em; height: 1.15em; }
.booking__type:has(input:checked) { border-color: var(--color-brand); box-shadow: inset 0 0 0 1px var(--color-brand); }
.booking__type-text { display: grid; }
.booking__type-title { font-weight: var(--weight-medium); }
.booking__type-meta { font-size: var(--text-sm); color: var(--color-text-muted); }

/* Date and time picker: side by side on wide screens, stacked on phones. */
.booking__picker { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 768px) { .booking__picker { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); } }
.booking__calendar { padding: var(--space-3); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
@media (min-width: 480px) { .booking__calendar { padding: var(--space-4); } }
.booking__month { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.booking__month-label { font-size: var(--text-base); font-weight: var(--weight-bold); }
.booking__nav { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  font: inherit; font-size: var(--text-xl); line-height: 1; color: var(--color-text); background: transparent;
  border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; }
.booking__nav:hover:not(:disabled) { border-color: var(--color-brand); }
.booking__nav:disabled { opacity: 0.35; cursor: not-allowed; }
.booking__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.booking__grid th { padding-block: var(--space-2); font-size: var(--text-xs); font-weight: var(--weight-medium);
  color: var(--color-text-muted); text-align: center; }
.booking__day { height: 44px; min-width: 44px; padding: 0; text-align: center; font-family: var(--font-data);
  font-size: var(--text-sm); color: var(--color-text-muted); border-radius: var(--radius-md); }
/* Free dates: filled and bold. Dates without times: plain and muted. Chosen: solid brand, no ring. */
.booking__day--open { color: var(--color-text); font-weight: var(--weight-bold); cursor: pointer;
  background: var(--color-brand-soft); background-clip: padding-box; border: 2px solid var(--color-surface); }
.booking__day--open:hover { box-shadow: inset 0 0 0 2px var(--color-brand); }
.booking__day[aria-disabled="true"] { cursor: default; }
.booking__day[aria-selected="true"] { background: var(--color-brand); color: var(--color-on-brand); box-shadow: none; }
.booking__day--today { text-decoration: underline; text-underline-offset: 0.25em; }
.booking__day:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 1px; position: relative; z-index: 1; }
.booking__day[aria-selected="true"]:focus-visible { outline: none; }

.booking__times { display: grid; gap: var(--space-3); min-width: 0; }
.booking__time-list { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); }
.booking__time { position: relative; display: flex; }
.booking__time input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.booking__time-text { flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--space-1); min-height: 44px;
  padding-inline: var(--space-3); font-family: var(--font-data); font-weight: var(--weight-medium);
  border: 1px solid var(--color-border); border-radius: var(--btn-radius); background: var(--color-bg); }
.booking__time:hover .booking__time-text { border-color: var(--color-brand); }
.booking__time input:checked + .booking__time-text { background: var(--color-brand); color: var(--color-on-brand); border-color: var(--color-brand); }
.booking__time input:checked + .booking__time-text::before { content: "✓"; }
.booking__time input:focus-visible + .booking__time-text { outline: 3px solid var(--color-brand); outline-offset: 2px; }
.booking__hint, .booking__zone { font-size: var(--text-sm); color: var(--color-text-muted); }
.booking__reschedule { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-5); border: 1px solid var(--color-brand); border-radius: var(--radius-md); }

/* Details form. */
.booking__form { display: grid; gap: var(--space-5); padding: var(--space-6);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
@media (max-width: 479px) { .booking__form { padding: var(--space-4); } }
.booking__form-title { font-size: var(--text-xl); }
.booking__when { font-family: var(--font-data); overflow-wrap: anywhere; }
.booking__row, .booking__questions { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .booking__row { grid-template-columns: 1fr 1fr; } }
.booking__field { max-width: none; }
.booking__field input, .booking__field textarea { min-height: 44px; }
.booking__optional { font-weight: var(--weight-normal); color: var(--color-text-muted); }
.booking__consent { display: grid; gap: var(--space-2); padding: var(--space-4);
  background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.booking__submit { justify-self: start; min-height: 44px; }
@media (max-width: 479px) { .booking__submit { justify-self: stretch; } }
.booking__submit[aria-busy="true"] { cursor: progress; }

/* Confirmation and manage mode. */
.booking__done, .booking__manage { display: grid; gap: var(--space-4); padding: var(--space-6);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.booking__done { border-left: 4px solid var(--color-success); }
.booking__done-title, .booking__manage-title { font-size: var(--text-xl); }
.booking__done-what { font-weight: var(--weight-bold); }
.booking__done-when { font-family: var(--font-data); }
.booking__done-note, .booking__manage-note { color: var(--color-text-muted); overflow-wrap: anywhere; }
.booking__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.booking__actions > * { min-height: 44px; }
.booking__confirm { display: grid; gap: var(--space-3); padding: var(--space-4);
  border: 1px solid var(--color-danger); border-radius: var(--radius-md); }
.booking__confirm-title { font-weight: var(--weight-medium); }
.booking__done:focus, .booking__manage :focus:not(:focus-visible), .booking__legend:focus { outline: none; }

/* ---- Beam — [data-beam] > .beam ---------------------------------
   An effect: a beam of light from a point on the top edge, through the primary button, onto a
   surface. scripts/beam.js draws it (WebGL2) and is loaded only by pages that use it; the look is
   the --beam-* tokens. Without JS or WebGL2 you get a static cone. Built for dark themes: it adds
   light, so on a light background it will barely show. */
[data-beam] { position: relative; isolation: isolate; }
[data-beam] > :not(.beam) { position: relative; z-index: 1; }
.beam {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* Fades out into the page at the bottom of the host. */
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
          mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.beam__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity var(--beam-fade) ease; }
/* Off until beam.js sets data-beam-on on the host (after data-beam-delay); then the canvas fades in. */
[data-beam-on] .beam[data-ready] .beam__canvas { opacity: 1; }
/* Fallback: a soft static cone while the shader is not running (no JS-capable GPU path). */
.beam::before {
  content: ""; position: absolute; inset: 0 0 auto 50%; width: min(70%, 44rem); height: 78%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--beam-color) 34%, transparent), transparent 90%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  filter: blur(14px);
  opacity: 0; transition: opacity var(--beam-fade) ease;
}
[data-beam-on] .beam:not([data-ready])::before { opacity: 1; }
/* The button the beam passes through is lit by it. beam.js sets --beam-lit from the intensity. */
[data-beam-target] {
  box-shadow: 0 0 0 1px transparent, 0 0 0 transparent, 0 0 0 transparent;
  transition: box-shadow var(--beam-fade) ease;
}
[data-beam-on] [data-beam-target] {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--beam-color) calc(var(--beam-lit, 0.5) * 45%), transparent),
    0 0 26px color-mix(in srgb, var(--beam-color) calc(var(--beam-lit, 0.5) * 50%), transparent),
    0 0 84px color-mix(in srgb, var(--beam-color) calc(var(--beam-lit, 0.5) * 28%), transparent);
  animation: beam-breathe 3.6s ease-in-out infinite;
}
@keyframes beam-breathe { 50% { filter: brightness(1.12); } }
@media (prefers-reduced-motion: reduce) {
  [data-beam-target], .beam__canvas, .beam::before { transition: none; }
  [data-beam-on] [data-beam-target] { animation: none; }
}

/* ---- Re: Animator — .reanimator[data-reanimator] ----------------
   A phrase inside a line of text that swaps for others: <span class="reanimator" data-reanimator
   data-reanimator-words="b|c">a</span>. Without JavaScript, or with reduced motion, it is just "a".
   scripts/reanimator.js wraps it in a one-cell grid holding an invisible copy of every phrase, so the
   box is always the size of the longest and nothing around it moves. The live layer is size-contained
   so it can never change the box. Look: --reanimator-* tokens. */
.reanimator__box { display: inline-grid; }
.reanimator__ghost { grid-area: 1 / 1; visibility: hidden; }
.reanimator__live { grid-area: 1 / 1; display: grid; contain: size; }
.reanimator__live--text { display: block; }
.reanimator__live > .reanimator__word { grid-area: 1 / 1; }
.reanimator__live[data-clip] { overflow: hidden; padding: 0.12em 0.06em; margin: -0.12em -0.06em; }
.reanimator__live[data-flip] { perspective: 700px; }
.reanimator__letter { display: inline-block; white-space: pre; }
.reanimator__text {
  background: linear-gradient(var(--reanimator-select), var(--reanimator-select)) 0 0 / 0% 100% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 0.38s ease;
}
.reanimator__text[data-selected] { background-size: 100% 100%; color: var(--reanimator-select-text); }
.reanimator__caret { display: inline-block; width: 0.07em; height: 0.9em; margin-left: 0.04em; vertical-align: -0.08em; background: currentColor; animation: reanimator-blink 1s steps(1) infinite; }
.reanimator__caret[data-busy] { animation: none; }
@keyframes reanimator-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .reanimator__caret { animation: none; } }

/* ---- Card Stack — .cardstack[data-cardstack] ---------------------
   A list of steps whose cards slide up and stack over one another as the page scrolls:
   <div class="cardstack" data-cardstack="grouped"> <section data-cardstack-step> … </section> … </div>
   The steps must be direct children. Without JavaScript, with reduced motion, or for a card taller than the
   viewport, it is a plain list: everything below the ready gate is sticky positioning and nothing else.
   scripts/cardstack.js sets --i on each step, [data-cardstack-ready] on the host, and [data-state]
   (buried | active | upcoming). Look: --cardstack-* tokens. */
.cardstack { display: block; }
.cardstack > [data-cardstack-step] {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--cardstack-gap);
}
.cardstack[data-cardstack-ready] > [data-cardstack-step] {
  position: sticky;
  top: calc(var(--cardstack-offset) + var(--i, 0) * var(--cardstack-peek));
}
.cardstack[data-cardstack-ready] > [data-cardstack-tall] { position: static; }
@media (prefers-reduced-motion: no-preference) {
  .cardstack > [data-state="buried"] {
    filter: brightness(var(--cardstack-dim));
    transform: scale(var(--cardstack-scale));
  }
}
.cardstack > [data-cardstack-step] {
  scroll-margin-top: calc(var(--cardstack-offset) + var(--i, 0) * var(--cardstack-peek));
}
/* Rail variant: the titles sit in a rail that stays put while the cards stack beside it. The rail is a column as tall
   as the stack, and its list is sticky inside it, so the list leaves with the last card (a grid cannot be used: a
   sticky item cannot leave its own grid area). The gutter only exists once the script has built the rail. */
.cardstack__rail { display: none; }
@media (min-width: 800px) {
  .cardstack[data-cardstack="rail"][data-cardstack-ready] { position: relative; }
  .cardstack[data-cardstack="rail"][data-cardstack-ready] > [data-cardstack-step] { margin-left: calc(var(--cardstack-rail-width) + var(--space-8)); }
  .cardstack[data-cardstack="rail"] > .cardstack__rail { display: block; position: absolute; top: 0; bottom: 0; left: 0; width: var(--cardstack-rail-width); }
  .cardstack[data-cardstack="rail"][data-cardstack-ready] > [data-cardstack-step] [data-cardstack-title] {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;   /* the rail shows it */
  }
  .cardstack__list {
    position: sticky; top: var(--cardstack-offset);
    list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1);
  }
  .cardstack__link {
    display: block; padding: var(--space-2) var(--space-3); border-left: 2px solid var(--color-border);
    color: var(--color-text-muted); text-decoration: none;
  }
  .cardstack__link:hover { color: var(--color-text); }
  .cardstack__link[aria-current="step"] { color: var(--color-text); border-left-color: var(--color-brand); font-weight: var(--weight-semibold, 600); }
  .cardstack__link:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
}

/* ---- Searchlight — [data-searchlight] > .searchlight ---------------
   An effect: a cone of light rises from a lamp point and ends in a bright disc on hazy cloud, with a
   silhouette (usually a logo) cut out of the disc. scripts/searchlight.js draws it (WebGL2) and is loaded
   only by pages that use it; the look is the --searchlight-* tokens; the placement is data-searchlight-*
   attributes. Without JS or WebGL2 you get a static cone and disc. The script writes the placement as
   --sl-* (unitless fractions of the host) for that fallback; with no JS the defaults below are used.
   It adds light, so it is for dark themes, and it can wash out text it crosses: put it where there is none. */
[data-searchlight] { position: relative; isolation: isolate; }
[data-searchlight] > :not(.searchlight) { position: relative; z-index: 1; }
.searchlight {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  /* The base of the cone dissolves into the page instead of ending on the edge of the host. */
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
          mask-image: linear-gradient(to bottom, #000 82%, transparent);
}
.searchlight__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity var(--searchlight-fade) ease; }
/* Off until searchlight.js sets data-searchlight-on on the host (after data-searchlight-delay); then the canvas fades in. */
[data-searchlight-on] .searchlight[data-ready] .searchlight__canvas { opacity: 1; }
/* Fallback: a soft static cone (::before) and disc (::after) while the shader is not running. The blur is on the layer, not on
   the clipped cone: a filter is applied before clip-path, so blurring the cone itself would be cut off into hard edges. */
.searchlight:not([data-ready]) { filter: blur(10px); }
.searchlight::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, transparent, color-mix(in srgb, var(--searchlight-color) calc(var(--searchlight-intensity) * 30%), transparent) 35%,
    color-mix(in srgb, var(--searchlight-color) calc(var(--searchlight-intensity) * 30%), transparent) 62%, transparent);   /* fades at both ends: no hard edge */
  clip-path: polygon(
    calc(var(--sl-src-x, 0.12) * 100% - 3%) calc(var(--sl-src-y, 1.06) * 100%),
    calc(var(--sl-src-x, 0.12) * 100% + 3%) calc(var(--sl-src-y, 1.06) * 100%),
    calc(var(--sl-at-x, 0.8) * 100% + var(--sl-size, 0.13) * 70%) calc(var(--sl-at-y, 0.26) * 100%),
    calc(var(--sl-at-x, 0.8) * 100% - var(--sl-size, 0.13) * 70%) calc(var(--sl-at-y, 0.26) * 100%));
  transition: opacity var(--searchlight-fade) ease;
}
.searchlight::after {
  content: ""; position: absolute; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  left: calc(var(--sl-at-x, 0.8) * 100%); top: calc(var(--sl-at-y, 0.26) * 100%); width: calc(var(--sl-size, 0.13) * 200%);
  background: radial-gradient(circle, color-mix(in srgb, var(--searchlight-color) calc(var(--searchlight-intensity) * 60%), transparent) 0,
    color-mix(in srgb, var(--searchlight-color) calc(var(--searchlight-intensity) * 22%), transparent) 55%, transparent 72%);
  transition: opacity var(--searchlight-fade) ease;
}
.searchlight::before, .searchlight::after { opacity: 0; }
/* No JavaScript: nothing will switch it on, so the glow is simply there. With JavaScript it fades in at the switch-on,
   and only while the shader is not running. */
@media (scripting: none) { .searchlight::before, .searchlight::after { opacity: 1; } }
[data-searchlight-on] .searchlight:not([data-ready])::before,
[data-searchlight-on] .searchlight:not([data-ready])::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .searchlight__canvas, .searchlight::before, .searchlight::after { transition: none; }
}


/* ---- Status — .status ----------------------------------------
   The status page and its private dashboard (demo/status). One row per service: a name, a text
   badge (Up, Degraded, Down or Status unavailable: never colour alone), a 30-day strip and the
   uptime. Colours are the success, warn and danger tokens; no knobs of its own. */
/* A column: the footer is pushed to the bottom of a short page (min-height), but scrolls with the page. */
.status {
  display: flex; flex-direction: column; gap: var(--space-8);
  max-width: var(--max-width-prose); margin-inline: auto;
  min-height: calc(100vh - 2 * var(--section-space));
  min-height: calc(100dvh - 2 * var(--section-space));
}
.status__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.status__brand { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-bold); color: var(--color-text); text-decoration: none; }
.status__head { display: grid; gap: var(--space-2); }
.status__title { margin: 0; }
.status__summary { margin: 0; font-size: var(--text-xl); font-weight: var(--weight-bold); }
.status__summary[data-state="up"] { color: var(--color-success); }
.status__summary[data-state="degraded"] { color: var(--color-warn); }
.status__summary[data-state="down"] { color: var(--color-danger); }
.status__summary[data-state="unknown"] { color: var(--color-warn); }
.status__checked, .status__uptime { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.status__banner, .status__stale, .status__noscript {
  margin: 0; padding: var(--space-4) var(--space-5); background: var(--color-surface);
  border: 1px solid var(--color-border); border-left-width: 4px; border-radius: var(--radius-md);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.status__banner[data-level="info"] { border-left-color: var(--color-brand); }
.status__banner[data-level="minor"] { border-left-color: var(--color-warn); }
.status__banner[data-level="major"] { border-left-color: var(--color-danger); }
.status__stale, .status__noscript { border-left-color: var(--color-warn); }
.js .status__noscript { display: none; }
.status__banner[hidden], .status__stale[hidden], .status__summary[hidden], .status__checked[hidden],
.status__panel[hidden], .status__message:empty { display: none; }
.status__list, .status__plain, .status__checks { list-style: none; margin: 0; padding: 0; }
.status__list { display: grid; gap: var(--space-3); }
.status__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-4); align-items: center;
  padding: var(--space-4) var(--space-5); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
}
.status__name { font-weight: var(--weight-medium); overflow-wrap: anywhere; }
.status__badge { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.status__dot { flex: none; width: 0.65rem; height: 0.65rem; border-radius: var(--radius-full); background: var(--color-text-muted); }
.status__badge[data-state="up"] .status__dot { background: var(--color-success); }
.status__badge[data-state="degraded"] .status__dot { background: var(--color-warn); }
.status__badge[data-state="down"] .status__dot { background: var(--color-danger); }
.status__strip { grid-column: 1 / -1; }  /* the cells themselves are the shared Strip component (.strip) */
.status__uptime { grid-column: 1 / -1; }
.status__checks { grid-column: 1 / -1; display: grid; gap: var(--space-1); color: var(--color-text-muted); font-size: var(--text-sm); }
.status__check[data-ok="false"] { color: var(--color-danger); }
.status__alert { grid-column: 1 / -1; color: var(--color-warn); font-size: var(--text-sm); }
.status__panel { display: grid; gap: var(--space-4); }
.status__footer {
  margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  color: var(--color-text-muted); font-size: var(--text-sm);
}
/* The passphrase field and its Show/Hide button. Larger, spaced dots; and the browser's autofill paint
   (light) is overridden so light text never lands on a light field. Element selectors only. */
.status__reveal { display: flex; gap: var(--space-2); align-items: stretch; }
.status__reveal input { flex: 1 1 auto; min-width: 0; }
.status input[type="password"] { font-size: var(--text-lg); letter-spacing: 0.12em; }
.status input:-webkit-autofill, .status input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-text); caret-color: var(--color-text);
  box-shadow: 0 0 0 100px var(--color-surface) inset; transition: background-color 9999s ease-out 0s;
}
.status__loading { margin: 0; display: flex; align-items: center; gap: var(--space-3); color: var(--color-text-muted); font-size: var(--text-sm); }
.status__loading[hidden] { display: none; }
html:not(.js) .status__loading { display: none; }   /* no script, nothing is loading */
.status__spinner {
  display: inline-block; flex: none; width: 1em; height: 1em; margin-right: 0.5em; vertical-align: -0.15em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: var(--radius-full);
  animation: status-spin 0.8s linear infinite;
}
.status__loading .status__spinner { margin-right: 0; }
@keyframes status-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .status__spinner { animation: none; border-right-color: currentColor; opacity: 0.6; } }
.status__panel-title { margin: 0; font-size: var(--text-lg); }
.status__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.status__message { margin: 0; min-height: 1.5em; font-size: var(--text-sm); }
.status__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--space-4); }
.status__stat { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-4) var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); min-width: 0; }
.status__stat-label { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.status__stat-number { margin: 0; font-size: var(--text-2xl); font-weight: var(--weight-bold); }
.status__plain { display: grid; gap: var(--space-1); font-size: var(--text-sm); overflow-wrap: anywhere; }

/* ---- Marquee — .marquee-section ------------------------------
   A strip of logos that scrolls by itself in a loop (partners, integrations, "as seen in").
   Put every item in .marquee__track twice (the copy with empty alt text) so the loop is
   seamless: the track slides left by half its width. Pauses on hover; stopped for good under
   prefers-reduced-motion (base.css). Logos are drawn dark and inverted on dark themes. */
.marquee-section { overflow: hidden; padding-block: var(--space-8);
  border-block: 1px solid var(--color-border); background: var(--color-surface-raised); }
.marquee-section__label { text-align: center; font-size: var(--text-sm); color: var(--color-text-muted);
  margin-bottom: var(--space-5); letter-spacing: 0.05em; text-transform: uppercase; }
.marquee { display: flex; overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.marquee__track { display: flex; gap: var(--space-4); width: max-content; animation: marquee-scroll 30s linear infinite; }
.marquee__track:hover { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee__item { display: inline-flex; align-items: center; white-space: nowrap; padding-inline: var(--space-6); }
.marquee__item img { display: block; height: clamp(1.25rem, 4vw, 3rem); width: auto; max-width: 100px;
  object-fit: contain; filter: brightness(0) invert(1); opacity: 0.85; }
[data-theme="light"] .marquee__item img { filter: brightness(0); opacity: 0.75; }

/* ---- Chart — .chart ------------------------------------------
   The figure every chart shares: title, plot, legend (two or more series), a table view
   (a native <details>, so it works with no JS) and the tooltip charts.js adds. Marks are SVG
   drawn at build time; series colour comes from data-series="1".."8" -> --chart-1..8.
   Light or dark follows data-theme (see THEMING.md). Per-type blocks follow this one. */
.chart { display: grid; gap: var(--space-4); margin: 0; padding: var(--space-5);
  background: var(--chart-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.chart__head { display: grid; gap: var(--space-1); }
.chart__title { margin: 0; font-size: var(--text-lg); }
.chart__caption { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.chart__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.chart__plot { min-width: 0; overflow-x: auto; }
/* Natural size from the width attribute (so text stays 12px), shrinking to fit a narrow screen. */
.chart__plot svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.chart [data-series="1"] { --series: var(--chart-1); }
.chart [data-series="2"] { --series: var(--chart-2); }
.chart [data-series="3"] { --series: var(--chart-3); }
.chart [data-series="4"] { --series: var(--chart-4); }
.chart [data-series="5"] { --series: var(--chart-5); }
.chart [data-series="6"] { --series: var(--chart-6); }
.chart [data-series="7"] { --series: var(--chart-7); }
.chart [data-series="8"] { --series: var(--chart-8); }
/* Chrome: hairline solid grid, muted ticks, text in text tokens (never the series colour). */
.chart__grid { stroke: var(--chart-grid); stroke-width: 1; fill: none; }
.chart__axis { stroke: var(--chart-axis); stroke-width: 1; fill: none; opacity: 0.6; }
.chart__tick, .chart__cat { fill: var(--chart-muted); font-size: 12px; font-family: var(--font-data); }
.chart__value { fill: var(--color-text); font-size: 12px; font-weight: var(--weight-bold); font-family: var(--font-data); }
.chart__hit { fill: transparent; cursor: default; }
.chart__legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0; padding: 0; list-style: none;
  font-size: var(--text-sm); color: var(--color-text); }
.chart__legend-item { display: inline-flex; align-items: center; gap: var(--space-2); }
.chart__key { flex: none; width: 0.75rem; height: 0.75rem; border-radius: 2px; background: var(--series, var(--chart-1)); }
.chart__data { font-size: var(--text-sm); }
.chart__data summary { display: inline-flex; align-items: center; min-height: 2rem; padding-inline: var(--space-3); cursor: pointer;
  color: var(--color-text-muted); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.chart__data summary:hover { color: var(--color-text); border-color: var(--color-brand); }
.chart__data[open] summary { margin-bottom: var(--space-3); }
.chart__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chart__table th, .chart__table td { padding: var(--space-2) var(--space-3); text-align: left; border-bottom: 1px solid var(--color-border); }
.chart__table thead th { color: var(--color-text-muted); font-weight: var(--weight-medium); }
.chart__table tbody th { font-weight: var(--weight-normal); }
.chart__tip { position: fixed; z-index: var(--z-dropdown); pointer-events: none; max-width: 16rem; padding: var(--space-2) var(--space-3);
  background: var(--color-bg); color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); font-size: var(--text-sm); }
.chart__tip[hidden] { display: none; }
.chart__tip-row { display: flex; align-items: center; gap: var(--space-2); }
.chart__tip-row strong { font-weight: var(--weight-bold); }
.chart__tip-key { flex: none; width: 0.9rem; height: 2px; background: var(--series, var(--chart-1)); }
.chart__tip-label { color: var(--color-text-muted); }

/* Palette knobs, set on <html> like data-theme (and so kept with the Chart block, which only pages
   with charts load). data-chart-palette="dark2" swaps the series colours for ColorBrewer Dark2
   (its grey slot replaced by Set1 blue, its mustard snapped into the lightness band, re-ordered;
   checked with validate_palette.js, see THEMING.md). The default, ggplot2, is in tokens.css.
   data-chart-ordinal="viridis" swaps the brand ramp used by ordered charts (funnel, waffle) for
   viridis steps: lightness still runs least → most, but across hues, by design. */
:root[data-chart-palette="dark2"] {
  --chart-1: #1b9e77; --chart-2: #d95f02; --chart-3: #7570b3; --chart-4: #66a61e;
  --chart-5: #e7298a; --chart-6: #c28800; --chart-7: #377eb8; --chart-8: #a6761d;
}
:root[data-theme="light"][data-chart-palette="dark2"] { --chart-6: #e1a600; }
:root[data-chart-ordinal="viridis"] {
  --chart-seq-1: #355f8d; --chart-seq-2: #21918c; --chart-seq-3: #44bf70; --chart-seq-4: #bddf26; --chart-seq-5: #fde725;
}
:root[data-theme="light"][data-chart-ordinal="viridis"] {
  --chart-seq-1: #44bf70; --chart-seq-2: #22a884; --chart-seq-3: #2a788e; --chart-seq-4: #414487; --chart-seq-5: #440154;
}

/* ---- Chart bar — .chart--bar ---------------------------------
   One series, thin bars (at most 24 units) with a rounded data end, growing from zero.
   The full-width hit rect is the hover and focus target, wider than the bar. */
/* Wide charts keep readable text on a phone: they scroll inside the card rather than shrink. */
.chart--bar .chart__plot svg { min-width: 36rem; }
.chart--bar .chart__bar { fill: var(--series, var(--chart-1)); }
.chart--bar .chart__hit:hover { fill: color-mix(in srgb, var(--color-text) 7%, transparent); }
.chart--bar .chart__hit:focus-visible { outline: none; stroke: var(--color-brand); stroke-width: 2; fill: color-mix(in srgb, var(--color-text) 7%, transparent); }

/* ---- Chart line — .chart--line -------------------------------
   One to four series, 2px lines, an end dot ringed in the surface colour, a wash under a single
   series. The hit columns carry every series' value for one shared tooltip. */
.chart--line .chart__plot svg { min-width: 36rem; }
.chart--line .chart__line { stroke: var(--series, var(--chart-1)); }
.chart--line .chart__area { fill: var(--series, var(--chart-1)); opacity: 0.1; }
.chart--line .chart__dot { fill: var(--series, var(--chart-1)); stroke: var(--chart-surface); stroke-width: 2; }
.chart--line .chart__cross { stroke: var(--chart-axis); stroke-width: 1; pointer-events: none; }
.chart--line .chart__cross[hidden] { display: none; }
.chart--line .chart__hit:focus-visible { outline: none; fill: color-mix(in srgb, var(--color-text) 7%, transparent); stroke: var(--color-brand); stroke-width: 2; }

/* ---- Chart funnel — .chart--funnel ---------------------------
   A centred funnel whose AREA is the count (widths follow the square root of each count, heights
   are solved so each stage's area is exact), fitted to a fixed box so steep drops stay readable.
   One hue stepped by tone (data-tone 5 = the first stage, the most). Names and numbers sit in a
   column on the right, joined by leaders. Two drawings ship; the container picks one: wide from
   40rem, else narrow, so a phone never scrolls sideways and the text never shrinks. */
.chart--funnel .chart__plot { container-type: inline-size; overflow: visible; }
.chart--funnel .funnel__narrow { display: none; }
@container (max-width: 39.99rem) {
  .chart--funnel .funnel__wide { display: none; }
  .chart--funnel .funnel__narrow { display: block; }
}
.chart--funnel .chart__stage { fill: var(--chart-seq-3); }
.chart--funnel .chart__stage[data-tone="5"] { fill: var(--chart-seq-5); }
.chart--funnel .chart__stage[data-tone="4"] { fill: var(--chart-seq-4); }
.chart--funnel .chart__stage[data-tone="3"] { fill: var(--chart-seq-3); }
.chart--funnel .chart__stage[data-tone="2"] { fill: var(--chart-seq-2); }
.chart--funnel .chart__stage[data-tone="1"] { fill: var(--chart-seq-1); }
.chart--funnel .chart__leader { fill: none; stroke: var(--chart-grid); stroke-width: 1; }
.chart--funnel .funnel__name { fill: var(--color-text); font-size: 14px; font-family: var(--font-data); }
.chart--funnel .funnel__nums { fill: var(--chart-muted); font-size: 13px; font-family: var(--font-data); }
.chart--funnel .funnel__count { fill: var(--color-text); font-weight: var(--weight-bold); }
.chart--funnel .funnel__overall { margin: var(--space-3) 0 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.chart--funnel .funnel__overall strong { color: var(--color-text); }
.chart--funnel .chart__hit:hover { fill: color-mix(in srgb, var(--color-text) 6%, transparent); }
.chart--funnel .chart__hit:focus-visible { outline: none; stroke: var(--color-brand); stroke-width: 2; }

/* ---- Hero stat — .hero-stat ----------------------------------
   The one number a view leads with: at least 48px, in the body sans with proportional figures
   (never a display face, never tabular), an optional delta (arrow + sign + period, so direction is
   never colour alone) and a sparkline. Use one per view. */
.hero-stat { display: grid; gap: var(--space-2); justify-items: start; }
.hero-stat__label { margin: 0; color: var(--color-text-muted); font-size: var(--text-base); }
.hero-stat__value { margin: 0; font-family: var(--font-sans); font-weight: var(--weight-bold); font-variant-numeric: normal;
  font-size: clamp(3rem, 8vw, 4.5rem); line-height: 1; letter-spacing: -0.02em; color: var(--color-text); }
.hero-stat__delta { margin: 0; display: inline-flex; align-items: baseline; gap: var(--space-2); font-size: var(--text-base); font-weight: var(--weight-medium); }
.hero-stat__arrow { font-size: 0.8em; }
.hero-stat__delta[data-good="true"] .hero-stat__arrow { color: var(--chart-state-up); }
.hero-stat__delta[data-good="false"] .hero-stat__arrow { color: var(--chart-state-down); }
.hero-stat__delta[data-good="neutral"] .hero-stat__arrow { color: var(--color-text-muted); }
.hero-stat__period { color: var(--color-text-muted); font-weight: var(--weight-normal); }
.hero-stat__trend { display: block; width: 10rem; height: auto; }
.hero-stat__spark { stroke: var(--chart-muted); }
.hero-stat__end { fill: var(--chart-emphasis); stroke: var(--chart-surface); stroke-width: 2; }

/* ---- Chart pie — .chart--pie ---------------------------------
   Three to six parts of a whole, a 2px surface gap between slices, percentages in the legend. */
.chart--pie .chart__pie { margin-inline: auto; }
.chart--pie .chart__slice { fill: var(--series, var(--chart-1)); stroke: var(--chart-surface); stroke-width: 2; }
.chart--pie .chart__slice:hover, .chart--pie .chart__slice:focus-visible { outline: none; filter: brightness(1.12); }
.chart--pie .chart__slice:focus-visible { stroke: var(--color-text); }

/* ---- Waffle — .waffle ----------------------------------------
   A GitHub-style calendar: weeks across, Monday at the top, five levels of one hue (level 0 is an
   empty day). The scale underneath runs Less to More. */
.waffle .chart__cell { fill: color-mix(in srgb, var(--color-text) 8%, transparent); }
.waffle .chart__cell[data-level="1"], .waffle__swatch[data-level="1"] { fill: var(--chart-seq-2); background: var(--chart-seq-2); }
.waffle .chart__cell[data-level="2"], .waffle__swatch[data-level="2"] { fill: var(--chart-seq-3); background: var(--chart-seq-3); }
.waffle .chart__cell[data-level="3"], .waffle__swatch[data-level="3"] { fill: var(--chart-seq-4); background: var(--chart-seq-4); }
.waffle .chart__cell[data-level="4"], .waffle__swatch[data-level="4"] { fill: var(--chart-seq-5); background: var(--chart-seq-5); }
.waffle .chart__cell:hover { stroke: var(--color-text); stroke-width: 1.5; }
.waffle__scale { display: inline-flex; align-items: center; gap: var(--space-1); justify-self: end; font-size: var(--text-xs); color: var(--color-text-muted); }
.waffle__swatch { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 2px; background: color-mix(in srgb, var(--color-text) 8%, transparent); }

/* ---- Strip — .strip ------------------------------------------
   One row of small state cells in time order (uptime, daily status). States use the success, warn
   and danger steps (--chart-state-*) and are always named in words too (legend, title, table view). Built at build
   time by the chart renderer or in the browser by status.js, with the same markup. */
.strip { display: flex; gap: 2px; height: 1.5rem; }
.strip__cell { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--color-border); }
.strip__cell[data-state="up"], .strip__legend[data-state="up"] { --state: var(--chart-state-up); }
.strip__cell[data-state="degraded"], .strip__legend[data-state="degraded"] { --state: var(--chart-state-warn); }
.strip__cell[data-state="down"], .strip__legend[data-state="down"] { --state: var(--chart-state-down); }
.strip__cell[data-state="none"], .strip__legend[data-state="none"] { --state: var(--color-border); }
.strip__cell { background: var(--state, var(--color-border)); }
.strip__cell:hover { outline: 2px solid var(--color-text); outline-offset: 1px; }
.strip__legend .chart__key { background: var(--state, var(--color-border)); }

/* ---- Chart sankey — .chart--sankey ---------------------------
   Flows between points, left to right; band thickness is the flow. Starting points take series
   colours in order and each band carries the colour of the one start feeding it (neutral when
   several do). Points are neutral bars; flow that stops in the middle is a pale stub. */
.chart--sankey .chart__plot svg { min-width: 36rem; }
.chart--sankey .chart__link { fill: var(--series, var(--chart-muted)); opacity: var(--chart-link-opacity, 0.42); transition: opacity 120ms; }
.chart--sankey .chart__link:hover { opacity: 0.8; }
.chart--sankey .chart__stub { fill: var(--chart-muted); opacity: 0.22; }
.chart--sankey .chart__stub:hover { opacity: 0.45; }
.chart--sankey .chart__node { fill: var(--color-text); rx: 2px; }
.chart--sankey .chart__node:hover, .chart--sankey .chart__node:focus-visible { outline: none; fill: var(--color-brand); }
.chart--sankey .chart__node-name { fill: var(--color-text); }
/* Labels can sit over bands, so they carry a surface-coloured halo. */
.chart--sankey .chart__cat { paint-order: stroke; stroke: var(--chart-surface); stroke-width: 3px; stroke-linejoin: round; }

/* ---- Chart gantt — .chart--gantt -----------------------------
   Tasks on a shared date axis, one row each. Bars are at most 24 units thick with a 4px radius;
   a group colours its bars (no group: the brand). Progress fills part of a pale track and is also
   written as text; a single-day task is a diamond; the marker is a dated line given in the data. */
.chart--gantt .chart__plot svg { min-width: 36rem; }
.chart--gantt .chart__task, .chart--gantt .chart__milestone { fill: var(--series, var(--chart-emphasis)); }
.chart--gantt .chart__task--track { opacity: 0.35; }
.chart--gantt .chart__task--done { opacity: 1; }
.chart--gantt .chart__milestone { stroke: var(--chart-surface); stroke-width: 2; }
.chart--gantt .gantt__marker { stroke: var(--color-text); stroke-width: 1.5; stroke-dasharray: 3 3; }
.chart--gantt .gantt__marker-label { fill: var(--color-text); font-size: 12px; font-weight: var(--weight-bold); font-family: var(--font-data); }
.chart--gantt .chart__hit:hover { fill: color-mix(in srgb, var(--color-text) 6%, transparent); }
.chart--gantt .chart__hit:focus-visible { outline: none; stroke: var(--color-brand); stroke-width: 2; fill: color-mix(in srgb, var(--color-text) 6%, transparent); }

/* ---- Chart treemap — .chart--treemap -------------------------
   Parts of a whole as rectangles; area is the value, so colour only names the group (a tint of
   the series colour, which keeps text in the text colour readable). Two drawings ship and the
   container picks one: wide 640x360 or narrow 340x440, so text never shrinks on a phone. */
.chart--treemap .chart__plot { container-type: inline-size; overflow: visible; }
.chart--treemap .treemap__narrow { display: none; }
@container (max-width: 39.99rem) {
  .chart--treemap .treemap__wide { display: none; }
  .chart--treemap .treemap__narrow { display: block; margin-inline: auto; }
}
.chart--treemap .treemap__block { fill: color-mix(in srgb, var(--series, var(--chart-emphasis)) 12%, var(--chart-surface)); }
.chart--treemap .treemap__cell { fill: color-mix(in srgb, var(--series, var(--chart-emphasis)) 32%, var(--chart-surface));
  stroke: var(--series, var(--chart-emphasis)); stroke-opacity: 0.5; stroke-width: 1; }
.chart--treemap .treemap__cell:hover, .chart--treemap .treemap__cell:focus-visible { outline: none;
  fill: color-mix(in srgb, var(--series, var(--chart-emphasis)) 50%, var(--chart-surface)); stroke-opacity: 1; stroke-width: 2; }
.chart--treemap .treemap__group { fill: var(--color-text); font-size: 12px; font-weight: var(--weight-bold); font-family: var(--font-data); }
.chart--treemap .treemap__label { fill: var(--color-text); font-size: 12px; font-weight: var(--weight-medium); font-family: var(--font-data); pointer-events: none; }
.chart--treemap .treemap__value { fill: var(--color-text); font-size: 12px; font-family: var(--font-data); opacity: 0.8; pointer-events: none; }

/* ---- Chart venn — .chart--venn -------------------------------
   Two or three sets as circles. Two sets are drawn to scale (areas exact); three are equal circles
   marked "Not to scale". Light fills with a solid outline in the set's series colour; every region
   carries its count, in the text colour on a surface halo so it reads over any overlap. */
.chart--venn .chart__plot svg { margin-inline: auto; }
.chart--venn .venn__set { fill: var(--series, var(--chart-1)); fill-opacity: 0.18; stroke: var(--series, var(--chart-1)); stroke-width: 2; }
.chart--venn .venn__name { fill: var(--color-text); font-size: 13px; font-weight: var(--weight-bold); font-family: var(--font-data);
  paint-order: stroke; stroke: var(--chart-surface); stroke-width: 4px; stroke-linejoin: round; }
.chart--venn .venn__total { fill: var(--chart-muted); font-weight: var(--weight-normal); }
.chart--venn .venn__count { fill: var(--color-text); font-size: 13px; font-weight: var(--weight-bold); font-family: var(--font-data);
  paint-order: stroke; stroke: var(--chart-surface); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.chart--venn .chart__hit:hover, .chart--venn .chart__hit:focus-visible { outline: none; fill: color-mix(in srgb, var(--color-text) 10%, transparent); }
.chart--venn .venn__note { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--color-text-muted); text-align: center; }

/* ---- Chart quadrant — .chart--quadrant -----------------------
   Items placed by two scores on a 2x2 grid split at the middle of each scale, each corner named
   (the eisenhower preset: Do first, Schedule, Delegate, Drop). One colour for every dot, because
   position already says the box. Two drawings; the container picks wide (from 40rem, names beside
   the dots) or narrow (numbered dots, names listed underneath). Labels never cover a dot. */
.chart--quadrant .chart__plot { container-type: inline-size; overflow: visible; }
.chart--quadrant .quadrant__narrow { display: none; }
/* Narrow only: dots carry numbers and the names are listed here. */
.chart--quadrant .quadrant__key { display: none; margin: var(--space-3) 0 0; padding-left: 1.5rem; font-size: var(--text-sm); color: var(--color-text); }
.chart--quadrant .quadrant__key span { color: var(--color-text-muted); }
@container (max-width: 39.99rem) {
  .chart--quadrant .quadrant__wide { display: none; }
  .chart--quadrant .quadrant__narrow { display: block; margin-inline: auto; }
  .chart--quadrant .quadrant__key { display: block; }
}
.chart--quadrant .quadrant__box { fill: color-mix(in srgb, var(--color-text) 3%, transparent); }
.chart--quadrant .quadrant__box[data-corner="tr"] { fill: color-mix(in srgb, var(--chart-emphasis) 9%, transparent); }
.chart--quadrant .quadrant__name { fill: var(--chart-muted); font-size: 12px; font-weight: var(--weight-bold); font-family: var(--font-data);
  text-transform: uppercase; letter-spacing: 0.04em; }
.chart--quadrant .quadrant__dot { fill: var(--series, var(--chart-1)); stroke: var(--chart-surface); stroke-width: 2; }
.chart--quadrant .quadrant__label { fill: var(--color-text); font-size: 12px; font-family: var(--font-data); }
.chart--quadrant .chart__leader { stroke: var(--chart-grid); stroke-width: 1; }
.chart--quadrant .chart__hit:hover, .chart--quadrant .chart__hit:focus-visible { outline: none; fill: color-mix(in srgb, var(--color-text) 10%, transparent); }

/* ---- Chart radar — .chart--radar -----------------------------
   One to three series across 3 to 8 axes on one shared scale from zero. Rings at clean ticks,
   series as a 2px outline with a light fill and a dot at each value (ringed in the surface). */
.chart--radar .chart__plot svg { margin-inline: auto; }
.chart--radar .radar__ring { fill: none; }
.chart--radar .radar__tick { font-size: 11px; paint-order: stroke; stroke: var(--chart-surface); stroke-width: 3px; stroke-linejoin: round; }
.chart--radar .radar__axis { fill: var(--color-text); font-size: 12px; }
.chart--radar .radar__shape { fill: var(--series, var(--chart-1)); fill-opacity: 0.14; stroke: var(--series, var(--chart-1)); stroke-width: 2; stroke-linejoin: round; }
.chart--radar .radar__dot { fill: var(--series, var(--chart-1)); stroke: var(--chart-surface); stroke-width: 2; }
.chart--radar .chart__hit:hover, .chart--radar .chart__hit:focus-visible { outline: none; fill: color-mix(in srgb, var(--color-text) 10%, transparent); }
