/* =========================================================================
   CISOSE 2027 — Shared design tokens (all nine sites)
   Contrast values are verified by tests/contrast.test.mjs (WCAG 2.2 AA).
   Change values here only; sites and components consume the variables.
   ========================================================================= */

:root {
  /* ---- Colour: ice blue (surfaces) ---- */
  --c-white: #ffffff;
  --c-ice-50: #f3f9fd;
  --c-ice-100: #e6f2fa;
  --c-ice-200: #cfe6f5;
  --c-ice-300: #9fcbe8;   /* decorative only (1.7:1 on white) */
  --c-sky-50: #edf7fd;    /* info-card gradient mid stop (V6.6.2) */
  --c-sky-100: #ddeff8;   /* info-card gradient end stop (V6.6.2) */

  /* ---- Colour: teal (accent & interaction) ---- */
  --c-teal-50: #e8f7f6;
  --c-teal-400: #2bc4bf;  /* decorative only */
  --c-teal-600: #0a8c8f;  /* large text / graphics only (4.07:1) */
  --c-teal-700: #08757a;  /* text, links, buttons (5.47:1 on white) */
  --c-teal-800: #065f63;

  /* ---- Colour: deep blue (text & structure) ---- */
  --c-navy-900: #0b2545;  /* headings (15.4:1) */
  --c-navy-800: #1e3a5f;  /* body text (11.5:1) */
  --c-navy-600: #4a6283;  /* secondary text (6.2:1) */
  --c-blue-700: #0f5c99;  /* secondary accent text (7.0:1) */

  /* ---- Colour: status ---- */
  --c-amber-50: #fff7e6;
  --c-amber-800: #8a4b00; /* TBC label text (≥ 6:1 on amber-50) */
  --c-amber-400: #e9a23b;

  /* ---- Semantic aliases ---- */
  --color-bg: var(--c-white);
  --color-bg-soft: var(--c-ice-50);
  --color-bg-tint: var(--c-ice-100);
  --color-bg-accent: var(--c-teal-50);
  --color-bg-inverse: var(--c-navy-900);
  --color-heading: var(--c-navy-900);
  --color-text: var(--c-navy-800);
  --color-text-muted: var(--c-navy-600);
  --color-text-inverse: #eaf4fb;
  --color-link: var(--c-teal-700);
  --color-link-hover: var(--c-teal-800);
  --color-accent: var(--c-teal-700);
  --color-accent-strong: var(--c-teal-800);
  --color-border: var(--c-ice-200);
  --color-border-strong: var(--c-navy-600); /* control boundaries ≥ 3:1 */
  --color-focus: var(--c-blue-700);

  /* ---- Typography ---- */
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, "SFMono-Regular", monospace;

  --fs-xs: 0.8125rem;   /* 13px */
  --fs-sm: 0.9375rem;   /* 15px */
  --fs-base: 1.0625rem; /* 17px */
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.3vw, 2.375rem);
  --fs-3xl: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
  --fs-display: clamp(2.75rem, 1.8rem + 4.4vw, 5.25rem);

  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-body: 1.65;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --tracking-caps: 0.12em;
  --measure: 68ch;

  /* ---- Spacing (4px base) ---- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 8rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --container: 75rem;      /* 1200px */
  --container-wide: 85rem; /* 1360px */

  /* ---- Shape & depth ---- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(11 37 69 / 0.06), 0 1px 3px rgb(11 37 69 / 0.05);
  --shadow-md: 0 6px 20px -6px rgb(11 37 69 / 0.14), 0 2px 6px rgb(11 37 69 / 0.05);
  --shadow-lg: 0 24px 48px -18px rgb(11 37 69 / 0.22);

  /* ---- Surfaces ----
     V6.6.2: one static light gradient for the homepage info cards (Conference Venue · Call for Papers ·
     Important Dates). Text contrast on its darkest stop (sky-100) is verified by tests/contrast.test.mjs. */
  --gradient-info-card: linear-gradient(145deg, var(--c-white) 0%, var(--c-sky-50) 58%, var(--c-sky-100) 100%);

  /* ---- Motion ---- */
  --dur-fast: 150ms;
  --dur-base: 260ms;
  --dur-slow: 600ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --reveal-shift: 18px;

  /* ---- Breakpoints ----
     Media queries cannot read var(), so these values are repeated literally in
     shared-components/components.css; components.js reads them from here.
     tests/congress-home.test.mjs asserts all three stay identical. */
  --bp-nav-desktop: 71.25rem;   /* 1140px: inline nav (V6.3: logo + 6 top-level items of the original menu ≈ 900px, + margin) */
  --bp-header-cta: 86.25rem;    /* 1380px: + header CTA (≈ 1307px incl. scrollbar, + ~70px font margin) */

  /* ---- Layers ---- */
  --z-header: 50;
  --z-skip: 100;
  --header-h: 4.25rem;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
    --reveal-shift: 0px;
  }
}

.cisose-chrome { display: contents; font-family: var(--font-sans); font-size: var(--fs-base); line-height: var(--lh-body); color: var(--color-text); }
@scope (.cisose-chrome) {
/* =========================================================================
   CISOSE 2027 — Base styles: reset, typography, layout primitives, a11y.
   Requires tokens.css.
   ========================================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* No overflow-x clipping here on purpose: horizontal overflow must be fixed at its source,
     and tests/congress-home.test.mjs fails on any element wider than the viewport. */
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--color-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-3xl); line-height: var(--lh-tight); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0; max-width: var(--measure); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--color-link-hover); }

/* ---- Focus: always visible, never colour-only ---- */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Layout primitives ---- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--soft { background: var(--color-bg-soft); }
.section--tint { background: var(--color-bg-tint); }
.section--inverse { background: var(--color-bg-inverse); color: var(--color-text-inverse); }
/* :where() keeps specificity at (0,1,0) so light surfaces nested in an inverse
   section (e.g. a white card) can restore dark headings with a single class. */
.section--inverse :where(h2, h3, h4) { color: var(--c-white); }

.stack > * + * { margin-top: var(--stack-gap, var(--sp-4)); }

/* ---- Text helpers ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-accent);
}
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--color-text); }
.muted { color: var(--color-text-muted); }
.mono { font-family: var(--font-mono); }

/* ---- Accessibility helpers ---- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-3);
  z-index: var(--z-skip);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  background: var(--c-navy-900);
  color: var(--c-white);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--c-white); }

/* ---- Reduced motion: switch off all non-essential animation ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================================
   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 :scope .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 :scope .nav__sub:not(.is-open) { display: none; }
  .js :scope .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 :scope .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; }

@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; }
}

/* =========================================================================
   CISOSE 2027 Congress — V6.0 homepage (compact) + details page composition
   Site-specific layout only. Colours, type, spacing and motion come from
   design-system/tokens.css; shared UI from shared-components/.
   ========================================================================= */

/* ======================= 1. HERO — left copy / right image ======================= */
/* V6.0: minimal hero — full logo + "CISOSE 2027" on the left; the confirmed hero image
   (assets/congress-hero-v6.*, illustrative only) on the right, bleeding to the page edge and fading
   softly into the white logo zone. The image carries its own teal light waves, so the hero has no SVG
   wave band (the footer band is unchanged). The logo PNG is opaque white: its zone stays pure white. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --hero-pt: clamp(1.25rem, 0.5rem + 2vw, 2.25rem);
  --hero-pb: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  padding-block: var(--hero-pt) var(--hero-pb);
  /* white where the logo sits, then fading out to transparent so the bottom edge shows <main>'s own light-blue
     wash (V6.6.3: it used to end on a solid ice-50, a shade lighter than the wash at that height — a visible step) */
  background: linear-gradient(180deg, var(--c-white) 0%, var(--c-white) 68%, rgb(255 255 255 / 0) 100%);
}
.hero__grid {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0; }
}
/* Layers inside the hero: image (0) → logo + title (2). */
.hero__copy { position: relative; z-index: 2; }
/* V6.2 desktop: the logo + title group is centred vertically in the full hero height (flex, no offsets). */
@media (min-width: 62rem) {
  .hero { --hero-pb: var(--hero-pt); }   /* equal top / bottom padding: the centre of the copy row is the centre of the hero */
  .hero__copy { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
}
/* Full shared logo, first item of the left column — no card, border or shadow; never upscaled (native 471px). */
.hero__brand { width: min(100%, 26rem); }
.hero__brand .brand-logo { display: block; width: 100%; }
.hero__title {
  margin-top: 1.25rem;
  font-size: clamp(2.75rem, 1.5rem + 3.8vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  /* V6.2: the title box hugs the capitals (no empty leading above / below), so the logo + title group is
     centred on what is actually visible. Unsupported browsers ignore it (previous rendering). */
  text-box: trim-both cap alphabetic;
}
.hero__title-main { color: var(--c-navy-900); }
.hero__title-year {
  background: linear-gradient(100deg, var(--c-teal-700) 5%, var(--c-blue-700) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero image. Stacked layouts (< 62rem): building-focused crop as a rounded panel. */
.hero__visual { position: relative; margin: 0; }
.hero__media { display: block; }
.hero__img {
  position: relative; z-index: 0;
  display: block; width: 100%; height: auto;
  aspect-ratio: 640 / 500;            /* matches the crop sources; prevents layout shift */
  object-fit: cover; object-position: 60% 50%;
  border-radius: var(--radius-lg);
}
/* V6.1 tablet (stacked, 40–62rem): a wider 3:2 frame so the hero does not dominate the first screen;
   anchored to the top so the dome stays whole (only the lower lawn is trimmed). */
@media (min-width: 40rem) and (max-width: 61.99rem) {
  .hero__img { aspect-ratio: 3 / 2; object-position: 50% 0%; }
}
@media (min-width: 62rem) {
  /* Bleed to the viewport edge (also beyond the 1360px container), from the top of the hero to its
     bottom edge. Left edge and bottom edge fade into the white page (masks intersected). */
  .hero__visual {
    margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--container-wide)) / 2 - var(--gutter))));
    margin-block: calc(-1 * var(--hero-pt)) calc(-1 * var(--hero-pb));
    align-self: stretch;
  }
  .hero__img {
    aspect-ratio: 2 / 1; height: auto;
    object-position: 100% 50%;
    border-radius: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%), linear-gradient(180deg, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 20%), linear-gradient(180deg, #000 86%, transparent 100%);
    mask-composite: intersect;
  }
}

/* V6.4 — one layout frame from laptop to 34" ultra-wide (two-column hero, ≥ 62rem).
   • Frame: the shared container (same left edge as the header logo and the info cards).
   • Image: 2:1, anchored to the browser's right edge, width = the V6.0 size but capped at 90rem (1440px)
     and at 124vh (never taller than ~62% of the screen) — it no longer grows without limit on wide screens.
   • Left column = everything between the container's left edge and the image; the logo + title group is
     centred in it horizontally and vertically (grid centring, no offsets), keeping its own left alignment. */
@media (min-width: 62rem) {
  .hero {
    --hero-cw: min(100vw - 2 * var(--gutter), var(--container-wide));            /* container content width */
    --hero-bleed: calc((100vw - var(--hero-cw)) / 2);                              /* container edge → browser edge */
    --hero-img-w: min(calc(var(--hero-cw) * 0.6 + var(--hero-bleed)), 90rem, 124vh);
  }
  .hero__grid { grid-template-columns: minmax(0, 1fr) max(0px, calc(var(--hero-img-w) - var(--hero-bleed))); }
  .hero__visual { width: var(--hero-img-w); justify-self: end; margin-right: calc(-1 * var(--hero-bleed)); }
  .hero__copy {
    display: grid;
    grid-template-columns: minmax(0, max-content);
    align-content: center;      /* vertical centre (the column is stretched to the hero height) */
    justify-content: center;    /* horizontal centre of the group within the left column */
    justify-items: start;       /* logo and title keep their shared left edge */
  }
  .hero__brand { width: 26rem; max-width: 100%; }   /* same 416px logo (never upscaled), shrinks only if the column is narrower */
}
/* V6.4.4 (desktop ≥ 80rem / 1280px; tablet and phone layouts unchanged): the hero no longer uses the browser
   edge as its end. One centred frame (max 90rem / 1440px), split 45 : 55 between the logo group and the
   picture, all by grid / percentages — no pixel offsets.
   • The image stays 2:1 and unstretched. Its left 20% is the asset's own fade into white, so the image box
     reaches back under the white column by exactly that much (width 125% of the picture column, left margin
     -25%): the visible picture starts at the 45% line and ends at the frame's right edge.
   • The fade is fully transparent for its first 12% (the logo PNG is opaque white: no white box may show) and
     reaches full opacity at 28%.
   • Beyond the frame only a soft background tint remains (no building). The right edge of the picture fades
     out over its last 6% so the frame boundary never reads as a cut line. */
@media (min-width: 80rem) {
  .hero {
    background:
      radial-gradient(42% 70% at 100% 38%, rgb(159 208 238 / 0.28), transparent 72%),
      linear-gradient(180deg, var(--c-white) 0%, var(--c-white) 68%, rgb(255 255 255 / 0) 100%);
  }
  .hero > .hero__grid { max-width: calc(90rem + 2 * var(--gutter)); }
  .hero__grid { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); }
  .hero__visual { width: auto; justify-self: stretch; margin-left: 0; margin-right: 0; }
  /* V6.4.5: the picture ends on the content edge used by the cards below (1360px container), not on the wider
     1440px hero frame — shifted left by half the difference of the two widths (40px when both are at their max,
     less on narrower screens). Same size, so the hero height and the logo group stay exactly where they were. */
  .hero { --hero-shift: calc((min(100vw - 2 * var(--gutter), 90rem) - var(--hero-cw)) / 2); }
  .hero__img {
    width: 125%; max-width: none; margin-left: calc(-25% - var(--hero-shift));
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 12%, #000 28%, #000 94%, transparent 100%), linear-gradient(180deg, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 12%, #000 28%, #000 94%, transparent 100%), linear-gradient(180deg, #000 86%, transparent 100%);
  }
}

/* ======================= 1b. OVERVIEW — About · Call for Papers · Important Dates ======================= */
.overview { padding-block: var(--sp-6) var(--sp-5); }
.overview__grid { display: grid; gap: clamp(1rem, 0.6rem + 1vw, 1.5rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) {
  .overview__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov--dates { grid-column: 1 / -1; }
}
@media (min-width: 75rem) {
  .overview__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.6fr); }
  .ov--dates { grid-column: auto; }
}
.ov {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(1.25rem, 0.9rem + 0.9vw, 1.75rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  /* V6.6.2: all three info cards share one static light gradient (design-system/tokens.css --gradient-info-card),
     the same border, radius and shadow — no per-card surface overrides below. */
  background-color: var(--c-white);
  background-image: var(--gradient-info-card);
  box-shadow: inset 0 1px 0 var(--c-white), 0 1px 2px rgb(11 37 69 / 0.05), 0 16px 36px -20px rgb(15 92 153 / 0.32);
}
.ov > p { font-size: var(--fs-sm); position: relative; }
.ov__title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xl);
}
.ov__title::before { content: ""; flex: none; width: 4px; height: 1.15em; border-radius: 2px; background: var(--c-teal-700); }
.ov--dates .ov__title::before, .ov--venue .ov__title::before { display: none; }
.ov__more { align-self: flex-start; margin-top: auto; position: relative; }
.ov__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 2.75rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
.ov__link:hover { text-decoration: underline; }
/* V6.2 — Conference Venue (was About). V6.6.2: surface comes from the shared .ov gradient. */
/* University name (prominent) and city on its own line; long names wrap, never overflow. */
.ov__venue { position: relative; display: flex; flex-direction: column; gap: var(--sp-1); overflow-wrap: anywhere; }
.ov__venue-name { font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: var(--lh-snug); color: var(--color-heading); }
.ov__venue-city { font-size: var(--fs-sm); color: var(--color-text-muted); }
.ov__venue-date { font-size: var(--fs-sm); font-weight: var(--fw-semibold, 600); color: var(--c-teal-700); } /* confirmed congress dates */
/* V6.5 — venue image slot, in the flow between the address and the link (never behind text).
   Side by side (≥ 48rem) it takes the card's spare height, so the three cards keep one shared height;
   stacked it has a fixed banner ratio. Holds an <svg> placeholder now, an <img> once one is approved. */
.ov__media {
  position: relative;
  margin: 0;   /* the slot is a <figure> once it holds an image */
  flex: 1 1 auto;
  min-height: 6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--c-ice-100);
  overflow: hidden;
}
.ov__media-art, .ov__media-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 47.99rem) { .ov__media { flex: none; min-height: 0; aspect-ratio: 16 / 7; } }

/* V6.6.1 — Call for Papers: navy title, navy-blue body text, solid teal button. V6.6.2: surface, border, radius
   and shadow come from the shared .ov gradient card; the research data network art (with its own bloom and halo)
   keeps its cyan-teal accent (art colours in congress/index.html). */
.ov--cfp > :not(.ov__art) { position: relative; z-index: 1; }
.ov--cfp .ov__title::before { display: none; }   /* no bar / icon: left-aligned title like Venue and Important Dates */
.ov--cfp > p { color: var(--color-text); max-width: 30ch; line-height: 1.55; }
.ov--cfp .ov__link {
  padding-inline: var(--sp-4);
  border-radius: var(--radius-pill);
  background: var(--c-teal-700);
  color: var(--c-white);
  box-shadow: 0 6px 16px -8px rgb(8 117 122 / 0.55);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.ov--cfp .ov__link:hover { background: var(--c-teal-800); color: var(--c-white); }
.ov--cfp .ov__link:focus-visible { outline: 3px solid var(--c-blue-700); outline-offset: 3px; }

/* V5.9 — homepage page background: a light blue wash behind the content (the hero and footer bands
   carry their own colour). Ends in white so the footer band starts without a seam. */
main.tech-waves-host { background: linear-gradient(180deg, var(--c-white) 0%, var(--c-ice-50) 30%, #e8f3fa 75%, var(--c-white) 100%); }
/* V6.6.3 — side contour lines start below the hero. They used to span all of <main> (top: 0) underneath the opaque
   hero, so their built-in top fade was spent hidden behind it and the lines appeared at full strength, cut straight,
   at the hero's bottom edge. <main> is now a one-column grid (sections in source order, one per row) and each
   absolutely positioned strip is placed from row 2 (the info cards) to the end: its box — and its own top fade —
   begins at the hero's bottom edge. Same sections, widths and positions; nothing else is laid out differently. */
main.tech-waves-host { display: grid; grid-template-columns: minmax(0, 1fr); }
main.tech-waves-host > .tech-waves--side { grid-row: 2 / auto; grid-column: 1; }
.ov__art { position: absolute; right: -0.5rem; bottom: -0.75rem; width: min(58%, 14rem); height: auto; pointer-events: none; }

/* ---- V6.6 CFP research data network (inside the aria-hidden .ov__art SVG; markup in congress/index.html) ----
   Breathing node glows (6 s, staggered), light dots travelling along three links (6.5 s) and a soft halo behind the
   paper (7 s). Only opacity and stroke-dashoffset animate (no filters, no layout), so scrolling and clicks are
   unaffected. Desktop: full network · tablet: drawn closer around the paper · phone: simplified (.cfp-net__x hidden). */
.cfp-net { transform-box: view-box; transform-origin: 156px 88px; }
.cfp-net__glows circle { opacity: 0.7; animation: cfp-breathe 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.75s); }
.cfp-net__flow { stroke-dashoffset: 0; animation: cfp-flow 6.5s linear infinite; animation-delay: calc(var(--i, 0) * -2.2s); }
.cfp-net__halo { opacity: 0.7; animation: cfp-halo 7s ease-in-out infinite; }



@media (min-width: 40rem) and (max-width: 74.99rem) { .cfp-net { transform: scale(0.9); } }
@media (max-width: 39.99rem) { .cfp-net__x { display: none; } .cfp-net { transform: scale(0.94); } }
/* V6.6.1: on narrow phones the longer invitation text reaches the art's top edge — the art box is a little smaller
   there (same anchor bottom-right, same network), so text, paper and nodes never overlap and the card does not grow. */
@media (max-width: 29.99rem) { .ov--cfp .ov__art { width: min(46%, 11rem); } .ov--cfp > p { max-width: 28ch; } }
/* Reduced motion: the network stays as a static pattern (glows half-lit, one resting dot per link). */
@media (prefers-reduced-motion: reduce) {
  .cfp-net__glows circle, .cfp-net__flow, .cfp-net__halo { animation: none; }
  .cfp-net__flow { stroke-dashoffset: 30; }
}

/* Important Dates. V6.6.2: surface comes from the shared .ov gradient. */

/* ---- V6.6.3 Academic Milestone Step Chart (markup and coordinate notes in congress/index.html) ----
   One <ol> carries the content (stage + date per milestone); each <li> sets --x (time, to scale: days since Feb 1
   ÷ 150, the Feb 1 → Jul 1 window) and --y (stage row, order only). Wide cards (≥ 36rem): an X–Y chart — stage names
   form the Y axis, months the X axis, one teal node per milestone on a horizontal/vertical step line, and each date
   once, as a small tag just above its node (above-left, the first above-right: the free corner of every step).
   Phones (< 36rem): the same list as a vertical four-stage timeline. Static: no script, no animation needed. */
.ms-chart { position: relative; margin: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.ms-chart__list { list-style: none; position: relative; }
.ms__stage { color: var(--color-heading); font-weight: var(--fw-semibold); line-height: 1.25; }
.ms__date { font-weight: var(--fw-bold); color: var(--color-heading); white-space: nowrap; }
.ms__node {
  position: absolute;
  width: 0.875rem; height: 0.875rem;
  border-radius: 50%;
  background: var(--c-teal-600);
  border: 3px solid var(--c-white);
  box-shadow: 0 0 0 1.5px var(--c-teal-600), 0 2px 6px rgb(8 117 122 / 0.35);
}
/* Phones: vertical four-stage timeline (date, then stage), nodes on a teal rail. */
.ms-chart__frame { display: none; }
.ms-chart__list { display: grid; gap: var(--sp-4); margin-top: var(--sp-1); padding-left: 1.75rem; }
.ms { position: relative; display: flex; flex-direction: column; gap: 0.125rem; }
.ms .ms__date { order: -1; font-size: var(--fs-base); }
.ms .ms__stage { font-size: var(--fs-sm); font-weight: var(--fw-regular); color: var(--color-text); }
.ms .ms__node { left: -1.75rem; top: 0.3rem; }
/* rail: from each node down to the next one (none after the last) */
.ms:not(:last-child)::before { content: ""; position: absolute; left: calc(-1.75rem + 0.4375rem - 1px); top: 0.75rem; height: calc(100% + var(--sp-4)); width: 2px; background: var(--c-teal-600); }

@media (min-width: 36rem) {
  .ms-chart {
    /* plot box inside the chart: left gutter = Y-axis stage names, bottom gutter = months */
    --gl: 8.5rem; --gr: 0.5rem; --gt: 1.25rem; --gb: 1.75rem;
    min-height: 13.75rem;
  }
  .ms-chart__frame { display: block; }
  .ms-chart__plot {
    position: absolute; left: var(--gl); top: var(--gt);
    width: calc(100% - var(--gl) - var(--gr)); height: calc(100% - var(--gt) - var(--gb));
    overflow: visible;
  }
  .ms-chart__grid path { stroke: var(--c-ice-200); stroke-width: 1; }
  .ms-chart__grid .ms-chart__rows { stroke: var(--c-ice-300); stroke-dasharray: 2 5; opacity: 0.7; }
  .ms-chart__axes { stroke: var(--c-ice-300); stroke-width: 1.5; }
  .ms-chart__step { stroke: var(--c-teal-600); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
  .ms-chart__months { list-style: none; }
  .ms-chart__months li,
  .ms-chart__axis-title { position: absolute; font-size: var(--fs-xs); line-height: 1.2; color: var(--color-text-muted); white-space: nowrap; }
  .ms-chart__months li { left: calc(var(--gl) + var(--x) * (100% - var(--gl) - var(--gr))); top: calc(100% - var(--gb) + 0.375rem); transform: translateX(-50%); }
  .ms-chart__axis-title { font-weight: var(--fw-semibold); letter-spacing: 0.02em; }
  .ms-chart__axis-title--y { left: 0; top: 0; }
  .ms-chart__axis-title--x { right: calc(100% - var(--gl) + 0.75rem); top: calc(100% - var(--gb) + 0.375rem); }
  .ms-chart__axis-note { font-weight: var(--fw-regular); }

  .ms-chart__list { position: absolute; inset: 0; display: block; margin: 0; padding: 0; }
  .ms:not(:last-child)::before { content: none; }
  .ms { position: static; display: block; }
  .ms {
    --px: calc(var(--gl) + var(--x) * (100% - var(--gl) - var(--gr)));
    --py: calc(var(--gt) + var(--y) * (100% - var(--gt) - var(--gb)));
  }
  .ms .ms__node { left: var(--px); top: var(--py); margin: -0.4375rem 0 0 -0.4375rem; }
  /* Y axis: stage name, right-aligned against the axis on its row */
  .ms .ms__stage {
    position: absolute; right: calc(100% - var(--gl) + 0.75rem); top: var(--py); transform: translateY(-50%);
    width: calc(var(--gl) - 0.75rem); text-align: right;
    font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--color-heading);
  }
  /* Date tag: just above its node, ending at the node (the free upper-left corner of each step) */
  .ms .ms__date {
    position: absolute; left: var(--px); top: var(--py);
    transform: translate(calc(-100% + 0.625rem), calc(-100% - 0.75rem));
    padding: 0.125rem 0.5rem;
    border: 1px solid var(--c-ice-200);
    border-radius: var(--radius-pill);
    background: var(--c-white);
    box-shadow: var(--shadow-sm);
    font-size: var(--fs-xs); line-height: 1.35;
  }
  /* First milestone sits on the Y axis: its tag opens to the right (above its own horizontal step) */
  .ms[data-anchor="start"] .ms__date { transform: translate(-0.625rem, calc(-100% - 0.75rem)); }
}

/* ======================= 1c. SUB-CONFERENCES — eight cards ======================= */
/* V6.6.2: no visible section title — the heading is screen-reader only (.visually-hidden in index.html), so the
   cards follow the info cards directly; the top padding alone separates the two groups. */
.subconf { padding-block: var(--sp-5) var(--sp-8); }
.sc-grid { list-style: none; display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .sc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 75rem) { .sc-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.sc-card { display: flex; }
.sc-card__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.sc-card__link:hover,
.sc-card__link:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-ice-300); color: inherit; }
.sc-card__art { display: block; }
.sc-card__art svg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
/* Approved raster artwork (registry cardImage) uses the same 16:9 box as the SVG, cropped from the centre. */
.sc-card__art { background: var(--c-navy-900); overflow: hidden; }
/* Trim a light band along a source image's top edge: uniform zoom anchored at the bottom centre, so the
   top (and a sliver of each side) leaves the clipped box. Never stretched; --trim-top is a 0–0.1 fraction. */
.img-trim-top { transform-origin: 50% 100%; transform: scale(calc(1 / (1 - var(--trim-top, 0)))); }
.sc-card__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 50%; }
/* V6.7: one name line per card ("IEEE JCC"): same font, weight, padding and left alignment on every card. */
.sc-card__body { padding: var(--sp-2) var(--sp-3); }
.sc-card__acr {
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--color-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Card entrance animation (states switched by congress/congress.js) ----
   V6.6.3: a calm fade-up instead of the sideways converge. Each card rises 12px and fades in over 900ms on a smooth
   ease-out curve; neighbours start 150ms apart in reading order (card 8 finishes at ~1.95s). Only opacity and
   transform animate. Hidden only under .is-armed, which congress.js sets itself once it can show the cards again:
   without JavaScript, if the script fails, or without IntersectionObserver the cards are simply visible. */
.subconf { overflow-x: clip; }   /* belt and braces: nothing in flight may ever cause a horizontal scrollbar */
.sc-grid { --sc-rise: 12px; --sc-dur: 900ms; --sc-step: 150ms; --sc-ease: cubic-bezier(0.22, 0.61, 0.36, 1); }
.sc-card { --i: 0; }
.sc-card:nth-child(2) { --i: 1; } .sc-card:nth-child(3) { --i: 2; } .sc-card:nth-child(4) { --i: 3; }
.sc-card:nth-child(5) { --i: 4; } .sc-card:nth-child(6) { --i: 5; } .sc-card:nth-child(7) { --i: 6; }
.sc-card:nth-child(8) { --i: 7; }
.sc-grid[data-converge].is-armed .sc-card { opacity: 0; transform: translateY(var(--sc-rise)); }
.sc-grid[data-converge].is-armed.is-in .sc-card {
  opacity: 1;
  transform: none;
  transition: opacity var(--sc-dur) var(--sc-ease) calc(var(--i) * var(--sc-step)),
              transform var(--sc-dur) var(--sc-ease) calc(var(--i) * var(--sc-step));
}
.sc-grid[data-converge].is-armed.is-instant .sc-card { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .sc-grid[data-converge].is-armed .sc-card,
  .sc-grid[data-converge].is-armed.is-in .sc-card { opacity: 1; transform: none; transition: none; }
}
@media print { .sc-grid[data-converge].is-armed .sc-card { opacity: 1; transform: none; } }

/* ---- V6.6.4 Technology Matrix (accepted Demo B, demos/subconference-matrix-v6.6.4.html) ----
   Interaction layer on .sc-grid--matrix. Layers never fight the entrance animation: the entrance animates the
   <li> (.sc-card: opacity + translateY), the hover lift moves the inner link, and the halo / click ring are the
   <li>'s own pseudo-elements, so they follow the entrance offset and simply add to it.
   Motion is transform / opacity only; the glow is a pre-painted shadow layer that fades in (no animated
   box-shadow, no filters). Hover visuals apply only on devices that can hover (no sticky hover after a tap);
   keyboard focus gets the same look everywhere. Without JS: CSS :hover / :focus-visible still glow and scan;
   congress.js only lets a started scan finish, adds the click ring and pauses the rail off-screen. */
.sc-grid--matrix {
  --mx-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --mx-dur: 300ms;
  --mx-lift: -4px;
  --mx-scan: 1.2s;
  --mx-cyan: 95 210 224;    /* #5fd2e0 */
  --mx-teal: 43 196 191;    /* #2bc4bf (teal-400) */
  position: relative;
}
.sc-grid--matrix .sc-card { position: relative; }
.sc-grid--matrix .sc-card__link {
  position: relative; z-index: 1;
  transition: transform var(--mx-dur) var(--mx-ease), border-color var(--mx-dur) var(--mx-ease), box-shadow var(--mx-dur) var(--mx-ease);
}
/* 1. Lift + glowing border. Halo: a layer behind the card with its shadow already painted; only opacity / position change. */
.sc-grid--matrix .sc-card::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px rgb(var(--mx-teal) / 0.55), 0 0 18px 2px rgb(var(--mx-cyan) / 0.32), 0 12px 26px -12px rgb(15 92 153 / 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--mx-dur) var(--mx-ease), transform var(--mx-dur) var(--mx-ease);
}
.sc-grid--matrix .sc-card__link:focus-visible { transform: translateY(var(--mx-lift)); border-color: rgb(var(--mx-teal) / 0.7); box-shadow: var(--shadow-sm); }
.sc-grid--matrix .sc-card:has(.sc-card__link:focus-visible)::after { opacity: 1; transform: translateY(var(--mx-lift)); }
/* Keyboard: the shared 3px focus outline stays (clearer than colour alone). */
.sc-grid--matrix .sc-card__link:focus-visible { outline: 3px solid var(--c-blue-700); outline-offset: 3px; border-radius: var(--radius-md); }
@media (hover: hover) {
  .sc-grid--matrix .sc-card:hover .sc-card__link { transform: translateY(var(--mx-lift)); border-color: rgb(var(--mx-teal) / 0.7); box-shadow: var(--shadow-sm); }
  .sc-grid--matrix .sc-card:hover::after { opacity: 1; transform: translateY(var(--mx-lift)); }
}
/* Touch-only devices: no hover look at all (the base .sc-card__link:hover lift would stick after a tap). */
@media (hover: none) { .sc-grid--matrix .sc-card__link:hover:not(:focus-visible) { transform: none; box-shadow: var(--shadow-sm); border-color: var(--color-border); } }

/* 2. Image: slight brightening (overlay opacity, no filter) + one top-to-bottom scan band. */
.sc-grid--matrix .sc-card__art { position: relative; }
.sc-grid--matrix .sc-card__art::before,
.sc-grid--matrix .sc-card__art::after { content: ""; position: absolute; pointer-events: none; }
.sc-grid--matrix .sc-card__art::before {
  inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.10), rgb(var(--mx-cyan) / 0.06));
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity var(--mx-dur) var(--mx-ease);
}
.sc-grid--matrix .sc-card:has(.sc-card__link:focus-visible) .sc-card__art::before { opacity: 1; }
@media (hover: hover) { .sc-grid--matrix .sc-card:hover .sc-card__art::before { opacity: 1; } }
/* Scan band: 38% of the image tall, starts just above the image, ends just below it (translateY in its own height). */
.sc-grid--matrix .sc-card__art::after {
  left: 0; right: 0; top: -38%; height: 38%; z-index: 2;
  background: linear-gradient(180deg,
    rgb(var(--mx-cyan) / 0) 0%,
    rgb(var(--mx-cyan) / 0.10) 40%,
    rgb(var(--mx-teal) / 0.30) 78%,
    rgb(220 250 252 / 0.42) 88%,
    rgb(var(--mx-cyan) / 0) 100%);
  opacity: 0;
  transform: translateY(0);
}

/* Without JS: CSS hover / focus starts the scan. With JS (.is-enhanced) a class runs it once to the end, so leaving
   mid-scan lets the band finish and fade instead of snapping away, and re-entering does not restart it. */
.sc-grid--matrix:not(.is-enhanced) .sc-card__link:focus-visible .sc-card__art::after,
.sc-grid--matrix.is-enhanced .sc-card.is-scanning .sc-card__art::after { animation: mx-scan var(--mx-scan) var(--mx-ease) 1 both; }
@media (hover: hover) { .sc-grid--matrix:not(.is-enhanced) .sc-card:hover .sc-card__art::after { animation: mx-scan var(--mx-scan) var(--mx-ease) 1 both; } }

/* 3. Click / Enter feedback: a soft ring that opens and fades (~200ms); navigation is never delayed. */
.sc-grid--matrix .sc-card::before {
  content: "";
  position: absolute; inset: -3px; z-index: 2;
  border-radius: calc(var(--radius-md) + 3px);
  border: 2px solid rgb(var(--mx-teal) / 0.85);
  opacity: 0;
  pointer-events: none;
}
.sc-grid--matrix .sc-card.is-pulse::before { animation: mx-pulse 200ms ease-out 1; }


/* 4. Decorative rail under the row — one row of eight only (hidden on tablets and phones). Absolutely placed in the
   section's bottom padding, so the page layout does not change. Visual only: it does not represent any data exchange
   between the conferences. Paused while off-screen (congress.js) so it costs nothing when not seen. */
.mx-rail { display: none; }
@media (min-width: 75rem) {
  .subconf > .container { position: relative; }
  .mx-rail {
    display: block;
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + var(--sp-5));
    height: 10px;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .mx-rail__line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -0.5px; background: linear-gradient(90deg, rgb(43 196 191 / 0.15), rgb(43 196 191 / 0.55) 50%, rgb(43 196 191 / 0.15)); }
  /* A full-width runner slides from -100% to 0: the dot on its right edge crosses the rail left → right (transform only). */
  .mx-rail__run { position: absolute; inset: 0; transform: translateX(-100%); animation: mx-run 9s linear infinite; animation-delay: var(--d, 0s); }
  .mx-rail.is-paused .mx-rail__run { animation-play-state: paused; }
  .mx-rail__dot {
    position: absolute; right: 0; top: 50%;
    width: 36px; height: 4px; margin-top: -2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgb(95 210 224 / 0), rgb(95 210 224 / 0.85) 70%, rgb(230 252 252 / 0.95));
  }
  
}

/* Reduced motion: no lift, scan, pulse or travelling points; the glow and brightening stay as a static highlight. */
@media (prefers-reduced-motion: reduce) {
  .sc-grid--matrix .sc-card__link,
  .sc-grid--matrix .sc-card::after,
  .sc-grid--matrix .sc-card__art::before { transition: none; }
  .sc-grid--matrix .sc-card:hover .sc-card__link,
  .sc-grid--matrix .sc-card__link:focus-visible,
  .sc-grid--matrix .sc-card:hover::after,
  .sc-grid--matrix .sc-card:has(.sc-card__link:focus-visible)::after { transform: none; }
  .sc-grid--matrix .sc-card .sc-card__art::after,
  .sc-grid--matrix .sc-card.is-pulse::before { animation: none !important; opacity: 0; }
  .mx-rail__run { animation: none; transform: translateX(-50%); }   /* one resting point in the middle */
  .mx-rail__run + .mx-rail__run { display: none; }
}
@media print { .mx-rail { display: none; } }

/* ======================= DETAILS PAGE — intro ======================= */
.page-intro {
  padding-block: clamp(2rem, 1rem + 3vw, 3.5rem) var(--sp-4);
  background: linear-gradient(180deg, var(--c-ice-50), var(--c-white));
  border-bottom: 1px solid var(--color-border);
}
.page-intro__title { margin-top: var(--sp-3); font-size: var(--fs-3xl); }
.page-intro__lead { margin-top: var(--sp-3); color: var(--color-text-muted); }
.page-intro__back { margin-top: var(--sp-2); }

/* ======================= 2. IMPORTANT DATES — timeline rail ======================= */
.dates { background: var(--c-white); }
.timeline { list-style: none; position: relative; display: grid; gap: 0; }
.timeline__item { position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: var(--sp-4); padding-bottom: var(--sp-6); }
.timeline__item::before { /* vertical rail (mobile) */
  content: "";
  position: absolute;
  left: calc(1.125rem - 1px);
  top: 2.25rem; bottom: 0;
  width: 2px;
  background: linear-gradient(var(--c-teal-400), var(--c-ice-200));
}
.timeline__item:last-child::before { display: none; }
.timeline__marker {
  position: relative;
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-white);
  border: 2px solid var(--c-teal-600);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--c-teal-700);
}
.timeline__item--key .timeline__marker { background: var(--c-navy-900); border-color: var(--c-navy-900); color: var(--c-white); }
.timeline__date {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  color: var(--c-ice-300);
  letter-spacing: 0.02em;
}
.timeline__label { margin-top: var(--sp-2); font-size: var(--fs-base); font-weight: var(--fw-semibold); color: var(--color-heading); }
.timeline__meta { margin-top: var(--sp-2); }

@media (min-width: 60rem) {
  .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-5); }
  .timeline__item { grid-template-columns: minmax(0, 1fr); row-gap: var(--sp-5); padding-bottom: 0; }
  .timeline__item::before { /* horizontal rail (desktop) */
    left: 2.25rem; right: calc(-1 * var(--sp-5)); top: calc(1.125rem - 1px); bottom: auto;
    width: auto; height: 2px;
    background: linear-gradient(90deg, var(--c-teal-400), var(--c-ice-200));
  }
}
.dates__footnote { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; font-size: var(--fs-sm); }

/* ======================= 3. ABOUT — editorial split ======================= */
.about__grid { display: grid; gap: var(--sp-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .about__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--sp-9); } }
.about__statement {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  max-width: 22ch;
}
.about__statement em { font-style: normal; color: var(--c-teal-700); }
.about__body { --stack-gap: var(--sp-4); }
.about__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--sp-7);
  border-top: 1px solid var(--color-border);
}
.about__fact { padding: var(--sp-5) var(--sp-4) var(--sp-5) 0; border-bottom: 1px solid var(--color-border); }
.about__fact:nth-child(odd) { border-right: 1px solid var(--color-border); }
.about__fact:nth-child(even) { padding-left: var(--sp-5); }
.about__fact dt { font-size: var(--fs-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-text-muted); font-weight: var(--fw-semibold); }
.about__fact dd { margin-top: var(--sp-2); font-size: var(--fs-xl); font-weight: var(--fw-bold); color: var(--color-heading); }
.about__fact dd .tbc { font-size: var(--fs-xs); }

/* ======================= 4. CALL FOR PAPERS — light split ======================= */
.cfp { position: relative; overflow: hidden; }
.cfp::after { /* soft glow */
  content: "";
  position: absolute;
  width: 40rem; height: 40rem;
  right: -12rem; top: -14rem;
  background: radial-gradient(circle, rgb(43 196 191 / 0.12), transparent 65%);
  pointer-events: none;
}
.cfp__grid { position: relative; z-index: 1; display: grid; gap: var(--sp-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .cfp__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); align-items: start; } }

.steps { list-style: none; counter-reset: step; display: grid; gap: var(--sp-2); }
.steps__item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--color-border);
}
.steps__item::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--c-teal-700);
}
.steps__title { font-size: var(--fs-lg); color: var(--color-heading); }
.steps__text { margin-top: var(--sp-1); color: var(--color-text-muted); font-size: var(--fs-sm); }

.spec {
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.spec__title { font-size: var(--fs-xl); color: var(--color-heading); } /* explicit: card may sit inside an inverse section */
.spec__list { margin-top: var(--sp-5); display: grid; }
.spec__row { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: var(--sp-4) 0; border-top: 1px solid var(--color-border); flex-wrap: wrap; }
.spec__row dt { font-weight: var(--fw-semibold); color: var(--color-heading); }
.spec__note { margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--color-text-muted); }
.spec .btn { margin-top: var(--sp-5); width: 100%; white-space: normal; text-align: center; }
.cfp .tbc { background: var(--c-amber-50); }

/* ======================= 5. EIGHT CONFERENCES — seamless mosaic ======================= */
.confs__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-white);
}
@media (min-width: 48rem) { .confs__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.conf {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-height: 12.5rem;
  padding: var(--sp-5);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--c-white);
  transition: background-color var(--dur-base) var(--ease-out);
}
.conf::before { /* accent bar grows on hover */
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--c-teal-400), var(--c-blue-700));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.conf:hover { background: var(--c-ice-50); }
.conf:hover::before { transform: scaleX(1); }
.conf__index { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--color-text-muted); }
.conf__acronym { margin-top: auto; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: var(--fw-bold); letter-spacing: -0.01em; line-height: 1; color: var(--color-heading); }
.conf__name { font-size: var(--fs-sm); }
.conf__name [lang="zh-CN"] { white-space: nowrap; }
.conf__status { margin-top: var(--sp-2); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--color-text-muted); display: inline-flex; align-items: center; gap: var(--sp-2); }
.conf__status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 1.5px solid var(--c-teal-600); }
@media (max-width: 30rem) { .conf { min-height: 10rem; padding: var(--sp-4); } }

/* ======================= 6. COMMITTEES — sticky heading + role rows ======================= */
.committees__grid { display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) {
  .committees__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--sp-9); }
  .committees__head { position: sticky; top: calc(var(--header-h) + var(--sp-6)); align-self: start; margin-bottom: 0; }
}
.roles { list-style: none; border-top: 1px solid var(--color-border); }
.role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-3) var(--sp-5);
  align-items: center;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--color-border);
}
.role__name { font-size: var(--fs-lg); }
.role__members { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; color: var(--color-text-muted); font-size: var(--fs-sm); }
.avatars { display: inline-flex; }
.avatars span {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  border: 1.5px dashed var(--c-ice-300);
  background: var(--c-ice-50);
  margin-left: -0.5rem;
}
.avatars span:first-child { margin-left: 0; }

/* ======================= 7. PROGRAM — schedule matrix ======================= */
.program__frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.program__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--color-border); background: var(--c-ice-50); }
.program__bar-title { font-size: var(--fs-base); }
.program__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.program__scroll:focus-visible { outline-offset: -3px; }
.schedule { width: 100%; min-width: 48rem; border-collapse: separate; border-spacing: 6px; font-size: var(--fs-sm); padding: var(--sp-2); }
.schedule th, .schedule td { text-align: left; vertical-align: middle; }
.schedule thead th { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-xs); letter-spacing: 0.08em; color: var(--color-text-muted); font-weight: var(--fw-semibold); }
.schedule tbody th { width: 7.5rem; padding: var(--sp-3); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--color-text-muted); font-weight: var(--fw-medium); white-space: nowrap; }
.slot { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); background: var(--c-ice-50); border: 1px dashed var(--c-ice-300); color: var(--color-text); }
/* Placeholder cells: names describe shape only, never a session type. */
.slot--wide { background: var(--c-navy-900); border: 0; color: var(--c-white); font-weight: var(--fw-semibold); }
.slot--cell { background: var(--c-teal-50); border-color: #a6dedb; text-align: center; font-weight: var(--fw-semibold); color: var(--c-teal-800); font-size: var(--fs-xs); line-height: 1.35; padding-inline: var(--sp-2); }
.slot--group { background: var(--c-ice-100); border-style: solid; border-color: var(--c-ice-200); font-weight: var(--fw-semibold); color: var(--color-heading); }
.program__note { max-width: none; padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--color-border); font-size: var(--fs-xs); color: var(--color-text-muted); }
.program__hint { display: none; }
@media (max-width: 50rem) { .program__hint { display: block; padding: var(--sp-3) var(--sp-5) 0; font-size: var(--fs-xs); color: var(--color-text-muted); } }

/* ======================= 8. REGISTRATION — fee table + aside ======================= */
.reg__grid { display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .reg__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-7); align-items: start; } }
/* Native table semantics at every width; narrow screens scroll the table inside its own region. */
.fees-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
}
.fees-scroll:focus-visible { outline-offset: 2px; }
.fees { width: 100%; min-width: 18rem; border-collapse: collapse; }
.fees caption { text-align: left; caption-side: top; padding: var(--sp-4) var(--sp-5) var(--sp-3); font-size: var(--fs-sm); color: var(--color-text-muted); }
.fees th, .fees td { padding: var(--sp-4) var(--sp-5); text-align: left; border-bottom: 1px solid var(--color-border); }
.fees thead th { background: var(--c-navy-900); color: var(--c-white); font-size: var(--fs-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; font-weight: var(--fw-semibold); }
.fees tbody th { font-weight: var(--fw-semibold); color: var(--color-heading); }
.fees tbody tr:last-child > * { border-bottom: 0; }
.fees tbody tr:hover > * { background: var(--c-ice-50); }
@media (max-width: 36rem) {
  .fees th, .fees td { padding: var(--sp-3) var(--sp-3); }
  .fees th:first-child, .fees td:first-child { padding-left: var(--sp-4); }
  .fees thead th { letter-spacing: 0.06em; }
}
.reg__aside { padding: var(--sp-6); border-radius: var(--radius-lg); background: var(--c-white); border: 1px solid var(--color-border); }
.reg__aside h3 { font-size: var(--fs-lg); }
.checklist { list-style: none; margin-top: var(--sp-4); display: grid; gap: var(--sp-3); }
.checklist li { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; padding-bottom: var(--sp-3); border-bottom: 1px dashed var(--color-border); }
.checklist li:last-child { border-bottom: 0; }
.reg__aside .btn { margin-top: var(--sp-5); width: 100%; white-space: normal; text-align: center; }

/* ======================= 9. VENUE — map split ======================= */
.venue__grid { display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 60rem) { .venue__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--sp-8); } }
.map {
  position: relative;
  min-height: 20rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-ice-100);
  border: 1px solid var(--color-border);
}
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__caption {
  position: absolute;
  left: var(--sp-4); bottom: var(--sp-4); right: var(--sp-4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.92);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
}
.venue__list { display: grid; gap: 0; border-top: 1px solid var(--c-ice-300); }
.venue__item { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-5) 0; border-bottom: 1px solid var(--c-ice-300); }
.venue__icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--c-white); color: var(--c-teal-700); }
.venue__icon svg { width: 1.25rem; height: 1.25rem; }
.venue__item h3 { font-size: var(--fs-base); }
.venue__item p { margin-top: var(--sp-1); font-size: var(--fs-sm); color: var(--color-text-muted); display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }

}
@keyframes techWavesDrift { from { transform: scaleX(0.965); opacity: 0.3; } to { transform: none; opacity: 1; } }
@keyframes cfp-breathe { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes cfp-flow { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes cfp-halo { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.9; } }
@keyframes mx-scan {
  0%   { transform: translateY(0);    opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(363%); opacity: 0; }   /* (100% + 38%) / 38% ≈ 3.63 band heights: fully past the bottom */
}
@keyframes mx-pulse {
  0%   { opacity: 0.9; transform: translateY(var(--mx-lift)) scale(0.985); }
  100% { opacity: 0;   transform: translateY(var(--mx-lift)) scale(1.035); }
}
@keyframes mx-run { from { transform: translateX(-100%); } to { transform: translateX(0); } }
/* Ohio's own style.css sets .nav { height: 100% }; neutralise it for the Congress navigation */
.cisose-chrome .nav { height: auto; }
