/* =========================================================================
   CISOSE 2027 — Shared components (all nine sites)
   Header/nav · buttons · cards · TBC badge · section heading · notice ·
   footer · reveal motion. Requires design-system/tokens.css + base.css.
   No conference data is hard-coded here.
   ========================================================================= */

/* ---------- Status notice (site-wide preview banner) ---------- */
.notice {
  background: var(--c-amber-50);
  border-bottom: 1px solid #f1d6a6;
  color: var(--c-amber-800);
  font-size: var(--fs-sm);
}
.notice__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-block: var(--sp-2);
}
.notice__icon { flex: none; width: 1.125rem; height: 1.125rem; }

/* ---------- TBC badge: unverified content marker ---------- */
.tbc {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.15em 0.6em;
  border: 1px dashed var(--c-amber-400);
  border-radius: var(--radius-pill);
  background: var(--c-amber-50);
  color: var(--c-amber-800);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: middle;
}
.tbc::before {
  content: "";
  width: 0.5em; height: 0.5em;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}
.tbc-text { color: var(--color-text-muted); font-style: italic; }

/* ---------- Site header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgb(255 255 255 / 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--color-heading);
  text-decoration: none;
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  flex: none;
}
.brand:hover { color: var(--color-heading); }
.brand__mark { width: 2rem; height: 2rem; flex: none; }
.brand__name { font-size: 1.0625rem; line-height: 1.1; }
.brand__sub {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ---------- Multi-level navigation (all nine sites) ----------
   Markup is generated by shared-components/site-chrome/render.mjs from each site's config.
   Levels: .nav__list (1) → .nav__sub[data-level="2"] → [data-level="3"] → [data-level="4"].
   Parent with its own page: .nav__row = link + chevron button (.nav__expander).
   Parent without a page: one button (.nav__parent.nav__expander). Unavailable page: .nav__link--pending.
   Behaviour (hover, click, keyboard, touch, Back, edge flip): components.js. */
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
}
.nav__item { position: relative; }
.nav__row { display: inline-flex; align-items: center; }
.nav__sub { list-style: none; }
.nav__link,
.nav__parent {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0 var(--sp-3);
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: var(--sp-3); right: var(--sp-3); bottom: 0.45rem;
  height: 2px;
  border-radius: 2px;
  background: var(--site-accent, var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__link:hover, .nav__parent:hover, .nav__expander:hover { color: var(--color-heading); background: var(--color-bg-soft); }
.nav__link:hover::after,
.nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__link[aria-current="true"] { color: var(--color-heading); }
/* Chevron-only submenu button next to a parent link (≥ 24px target). */
.nav__expander:not(.nav__parent) {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.75rem; min-height: 2.75rem; padding: 0;
  border: 0; border-radius: var(--radius-sm); background: none; color: var(--color-text); cursor: pointer;
}
.nav__chevron { width: 0.75rem; height: 0.75rem; flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.nav__expander[aria-expanded="true"] > .nav__chevron { transform: rotate(180deg); }
.nav__parent[aria-expanded="true"], .nav__expander[aria-expanded="true"] { color: var(--color-heading); }
/* No confirmed page yet: plain text, clearly marked, never a link. */
.nav__link--pending { color: var(--color-text-muted); cursor: default; }
.nav__link--pending::after { display: none; }
.nav__link--pending:hover { color: var(--color-text-muted); background: none; }
.nav__note { font-size: var(--fs-xs); font-weight: var(--fw-regular); font-style: italic; }
/* Mobile "Back" row: only in the stacked menu. */
.nav__back-item { display: none; }
.nav__back {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 2.75rem; padding: 0 var(--sp-2);
  border: 0; background: none; color: var(--site-accent, var(--color-accent));
  font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer;
}
.nav__back .nav__chevron { transform: rotate(90deg); }

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 var(--sp-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  color: var(--color-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}
.nav__toggle-icon { width: 1.25rem; height: 1.25rem; }
.nav__toggle-icon line { transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast); transform-origin: center; }
.nav__toggle[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .l2 { opacity: 0; }
.nav__toggle[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

.header-cta { flex: none; }

/* Breakpoints: --bp-nav-desktop (71.25rem) and --bp-header-cta (86.25rem) in tokens.css.
   "not all and (min-width: X)" is the exact complement of "(min-width: X)" — no fractional-pixel gap. */

/* Header CTA only when brand + full nav + CTA fit; below that the menu (or the CTA inside the
   mobile menu) reaches the same section. */
@media not all and (min-width: 86.25rem) {
  .btn.header-cta { display: none; } /* .btn sets display later in this file; raise specificity */
}

/* ---- Stacked menu (tablet / phone): one panel, levels expand in place, each with a Back row ---- */
@media not all and (min-width: 71.25rem) {
  .nav__toggle { display: inline-flex; }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--c-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  /* Hidden only once JS has enhanced the toggle; without JS the list stays visible in flow. */
  .js .nav:not(.is-open) { display: none; }
  .no-js .site-header { position: static; }
  .no-js .site-header__inner { flex-wrap: wrap; }
  .no-js .nav { position: static; flex-basis: 100%; box-shadow: none; border: 0; max-height: none; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-3) var(--gutter) var(--sp-5);
  }
  .nav__row { display: flex; }
  .nav__row > .nav__link { flex: 1 1 auto; }
  .nav__link, .nav__parent {
    display: flex; width: 100%; justify-content: space-between;
    min-height: 3rem; font-size: var(--fs-base);
    border-bottom: 1px solid var(--color-border); border-radius: 0;
    overflow-wrap: anywhere;
  }
  .nav__expander:not(.nav__parent) { min-width: 3rem; min-height: 3rem; border-bottom: 1px solid var(--color-border); border-left: 1px solid var(--color-border); border-radius: 0; }
  .nav__link::after { display: none; }
  .nav__link[aria-current="true"] { color: var(--site-accent, var(--color-accent)); }
  .nav__link--pending { flex-wrap: wrap; justify-content: flex-start; column-gap: 0.35rem; }
  .nav__sub {
    margin: 0 0 var(--sp-2) var(--sp-3);
    padding-left: var(--sp-3);
    border-left: 2px solid var(--c-ice-200);
  }
  .nav__sub .nav__link, .nav__sub .nav__parent { min-height: 2.75rem; font-size: var(--fs-sm); }
  .js .nav__sub:not(.is-open) { display: none; }
  .js .nav__back-item { display: block; }
  /* Without JS the stacked menu shows every level (submenus ship with the hidden attribute). */
  .no-js .nav__sub { display: block; }
  .nav__item--cta { padding-top: var(--sp-4); }
  .nav__item--cta .btn { width: 100%; }
}

/* ---- Desktop: inline bar + dropdown panels; deeper levels fly out to the side ---- */
@media (min-width: 71.25rem) {
  .nav__item--cta { display: none; }
  /* Never squeeze or wrap top-level items to fit: overflow must be solved by the breakpoints above. */
  .nav { flex: none; }
  .nav__list > .nav__item > .nav__link,
  .nav__list > .nav__item > .nav__parent,
  .nav__list > .nav__item > .nav__row > .nav__link { white-space: nowrap; }
  .nav__list > .nav__item > .nav__row > .nav__link { padding-right: var(--sp-1); }
  /* Top-level unavailable item: the note is read out, not shown (keeps the bar compact). */
  .nav__list > .nav__item > .nav__link--pending .nav__note {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .nav__sub {
    position: absolute;
    z-index: 2;
    top: 100%;
    left: 0;
    min-width: 15rem;
    max-width: 22rem;
    width: max-content;
    padding: var(--sp-2);
    background: var(--c-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
  /* Level 3+ flies out to the right of its item; .is-flip mirrors it near the viewport's right edge. */
  .nav__sub .nav__sub { top: calc(-1 * var(--sp-2) - 1px); left: calc(100% + var(--sp-2)); }
  .nav__sub.is-flip { left: auto; right: 0; }
  .nav__sub .nav__sub.is-flip { left: auto; right: calc(100% + var(--sp-2)); }
  /* Hover bridge: the gap between an item and its flyout never closes the menu. */
  .nav__sub .nav__item--parent::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: var(--sp-2); }
  .nav__sub .nav__link, .nav__sub .nav__parent {
    display: flex; width: 100%; justify-content: space-between;
    min-height: 2.5rem; padding: var(--sp-2) var(--sp-3);
    white-space: normal; line-height: var(--lh-snug);
  }
  .nav__sub .nav__link::after { display: none; }
  .nav__sub .nav__link--pending { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
  .nav__sub .nav__parent > .nav__chevron { transform: rotate(-90deg); }
  .nav__sub .nav__parent[aria-expanded="true"] > .nav__chevron { transform: rotate(-90deg); }
  .nav__sub .nav__parent[aria-expanded="true"] { background: var(--color-bg-soft); }
  .js .nav__sub:not(.is-open) { display: none; }
  /* Without JS: open on hover / keyboard focus (CSS only). */
  .no-js .nav__sub { display: none; }
  .no-js .nav__item--parent:hover > .nav__sub,
  .no-js .nav__item--parent:focus-within > .nav__sub { display: block; }
}
.no-js .nav__toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--color-accent);
  --btn-fg: var(--c-white);
  --btn-bd: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 2.875rem;
  padding: 0 var(--sp-5);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.btn:hover { --btn-bg: var(--color-accent-strong); --btn-bd: var(--color-accent-strong); color: var(--btn-fg); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn__icon { width: 1rem; height: 1rem; flex: none; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--secondary { --btn-bg: var(--c-white); --btn-fg: var(--color-heading); --btn-bd: var(--color-border-strong); }
.btn--secondary:hover { --btn-bg: var(--color-bg-soft); --btn-fg: var(--color-heading); --btn-bd: var(--color-heading); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--color-accent); --btn-bd: transparent; padding-inline: var(--sp-3); }
.btn--ghost:hover { --btn-bg: var(--color-bg-accent); --btn-fg: var(--color-accent-strong); --btn-bd: transparent; box-shadow: none; }
.btn--lg { min-height: 3.25rem; padding-inline: var(--sp-6); font-size: var(--fs-base); }

/* Unavailable action (e.g. link not yet confirmed): not focusable, clearly labelled */
.btn[aria-disabled="true"],
.btn:disabled {
  --btn-bg: var(--c-ice-50);
  --btn-fg: var(--color-text-muted);
  --btn-bd: var(--c-ice-300);
  border-style: dashed;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ---------- Card ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}
.card--interactive:hover,
.card--interactive:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-ice-300); }
.card__title { font-size: var(--fs-lg); }
.card__meta { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ---------- Section heading ---------- */
.section-head { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-7); }
.section-head__title { max-width: 20ch; }
.section-head__intro { color: var(--color-text-muted); font-size: var(--fs-lg); max-width: 58ch; }
.section-head--split {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}
@media (min-width: 56rem) {
  .section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: var(--sp-8); }
  .section-head--split .eyebrow { grid-column: 1 / -1; }
}
.section-head__index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

/* ---------- Brand logo: the one shared CISOSE mark (all nine sites) ----------
   Template: shared-components/brand-logo.template.html. Single source file:
   design-system/brand/cisose-logo.png (471 × 247, opaque white background).
   Original proportions, never upscaled past the file's native width, no crop,
   no filter / opacity / blend / transform effects, never a background watermark. */
.brand-logo {
  display: inline-block;
  line-height: 0;
  border-radius: var(--radius-sm);
}
.brand-logo__img {
  display: block;
  width: 100%;
  max-width: 471px;   /* native width: scaling up would blur the full-name line */
  height: auto;       /* width/height attributes keep the 471:247 ratio */
}
/* Compact variant (design-system/brand/cisose-logo-compact.png, 526 × 201) for header brand areas:
   fixed height, width follows the original ratio (44px → ≈ 115px). */
.brand-logo--compact { flex: none; }
.brand-logo--compact .brand-logo__img { width: auto; max-width: none; height: 44px; }
@media (max-width: 30rem) { .brand-logo--compact .brand-logo__img { height: 36px; } }

/* ---------- Footer: compact three-group quick navigation (all nine sites) ----------
   Markup template: shared-components/site-footer.template.html
   Navy background · white group titles · light blue-grey links · teal hover (+ underline,
   so hover is not colour-only). Three columns on desktop, two on tablet, one on small phones. */
.site-footer {
  background: var(--site-footer-bg, var(--c-navy-900));   /* per-site theme override (site config: theme.footerBg) */
  color: #c9dcec;          /* 10.9:1 on navy */
  font-size: var(--fs-sm);
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;     /* ≥ 24px target (WCAG 2.5.8) */
  min-width: 1.5rem;       /* short labels such as "JCC" stay ≥ 24px wide */
  color: #c9dcec;
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-footer a:hover { color: #7fe0dc; text-decoration: underline; }   /* teal, 9.96:1 on navy */
.site-footer :focus-visible { outline-color: var(--c-teal-400); }
.site-footer__grid {
  display: grid;
  gap: var(--sp-6) var(--sp-7);
  padding-block: var(--sp-7) var(--sp-6);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 30rem) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__group:last-child { grid-column: 1 / -1; }
}
@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__group:last-child { grid-column: auto; }
}
.site-footer__title {
  margin-bottom: var(--sp-3);
  color: var(--c-white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.site-footer__list { list-style: none; display: grid; gap: var(--sp-1); }
.site-footer__list--cols { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: var(--sp-7); }
.site-footer__pending { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 1.75rem; color: #c9dcec; }
/* Optional bottom bar (only when a site config sets footer.brand / footer.note; the Congress footer has none). */
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2) var(--sp-5);
  padding-block: var(--sp-4);
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: #a9c4dc;
  font-size: var(--fs-xs);
}
.site-footer__brand { display: inline-flex; align-items: center; gap: var(--sp-2); color: #c9dcec; }
.site-footer__mark { width: 1.25rem; height: 1.25rem; flex: none; }
.site-footer .tbc { background: transparent; color: #ffd796; border-color: #c98a2e; }

/* ---------- Tech waves: decorative teal / ice-blue flow lines (all nine sites) ----------
   Markup template: shared-components/tech-waves.template.html (inline SVG, no images, no libraries).
   Purely decorative: aria-hidden, never clickable, always painted behind content.
   Variants: --hero (bottom of a positioned hero), --side + --left/--right (inside a .tech-waves-host),
   --footer (a band placed directly before .site-footer; its last layer is the footer navy).
   Every path stays inside its viewBox, so no layer can widen the page. */
/* contain: strict isolates each layer's layout and paint; fades are drawn in the SVG (gradients),
   not with CSS masks, which keeps repaints cheap (no delay to focus / smooth scrolling). */
.tech-waves { position: absolute; z-index: 0; overflow: hidden; contain: strict; pointer-events: none; user-select: none; }
.tech-waves * { pointer-events: none; }
.tech-waves__svg { display: block; width: 100%; height: 100%; max-width: none; }

/* Hero band: grows with the viewport; the host keeps its content above it (z-index 1). */
.tech-waves--hero { left: 0; right: 0; bottom: 0; height: clamp(7.5rem, 4.5rem + 9vw, 11rem); }
@media (min-width: 62rem) { .tech-waves--hero { height: 15rem; } }   /* two-column heroes: the stream rises into the illustration on the right */

/* Side strips: fine contour lines along both page edges, fading toward the content and at both ends. */
.tech-waves-host { position: relative; isolation: isolate; }
.tech-waves-host > :not(.tech-waves) { position: relative; z-index: 1; }
.tech-waves--side {
  top: 0; bottom: 0;
  width: clamp(3.5rem, 0.5rem + 15vw, 17rem);
  opacity: 0.85;
}
.tech-waves--left { left: 0; }
.tech-waves--right { right: 0; }
.tech-waves--right .tech-waves__svg { transform: scaleX(-1); }   /* mirror: dense edge stays at the page edge */
/* Phones: off. With a 16px gutter the strips sit almost entirely under the cards, yet a page-tall translucent
   layer still has to be painted on every scroll — enough to delay focus scrolling on low-end phones.
   The hero and footer bands carry the wave motif on small screens. */
@media (max-width: 40rem) { .tech-waves--side { display: none; } }

/* Footer band (V6.6): fine light strands over a white → navy field, descending into the footer navy
   (no seam: overlaps the footer by 1px). Moderate height: 72px on phones, at most 136px on desktop. */
.tech-waves--footer {
  position: relative;
  display: block;
  height: clamp(4.5rem, 2.5rem + 6vw, 8.5rem);
  margin-top: calc(-1 * var(--sp-6));   /* starts inside the preceding section's bottom padding (decoration only) */
  margin-bottom: -1px;
}

/* Flow: the dotted streams (.tech-waves__flow) sit in their own overlay (.tech-waves__drift), which
   drifts left → right once, slowly, then rests exactly in line with the bundle. Transform + opacity
   only (compositor), never a per-frame SVG repaint, so scrolling and focus are never delayed.
   Scaling from the left edge keeps the layer inside the band (no horizontal overflow at any frame).
   Under 5 s, so no pause control is needed (WCAG 2.2.2); starts when the band scrolls into view (components.js). */
.tech-waves__flow { stroke-dasharray: 2 12; }
.tech-waves__drift { position: absolute; inset: 0; transform-origin: 0 50%; }
.js .tech-waves.is-flowing .tech-waves__drift { animation: techWavesDrift 4.8s cubic-bezier(0.3, 0.1, 0.3, 1) both; }
@keyframes techWavesDrift { from { transform: scaleX(0.965); opacity: 0.3; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .tech-waves.is-flowing .tech-waves__drift, .tech-waves__drift { animation: none; transform: none; opacity: 1; }
}
@media print { .tech-waves { display: none; } }

/* ---------- Reveal-on-scroll (progressive enhancement) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-shift));
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* Keyboard focus inside a not-yet-revealed region shows it at once — no fade, no delay.
   components.js then marks it .is-visible (+ .is-revealed-instant) so it stays shown after blur. */
.js [data-reveal]:focus-within,
.js [data-reveal].is-revealed-instant { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
@media print {
  .js [data-reveal] { opacity: 1; transform: none; }
  .site-header, .notice { position: static; }
}
