/* ==========================================================================
   ECRES 2027 — "Heliostat" design system
   Navy night + solar gold. Gold is light, never a fill for large areas:
   it marks the one thing to look at (the focal point, the main action,
   the emphasised words). Display: Newsreader. Text and UI: Geist.
   Signature: a heliostat field — rings of mirrors focusing on one point
   (concentrated solar power, and Madrid's Kilómetro Cero).
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  /* night — the navy scale */
  --night-950: #060d1f;
  --night-900: #0a1733;
  --night-850: #0d1c3e;
  --night-800: #11234a;
  --night-700: #1b3264;
  --night-600: #2a4580;
  /* solar gold */
  --gold-200: #f6e6bd;
  --gold-300: #f0d79a;
  --gold-400: #e6c47a;
  --gold-500: #d9b25f;          /* gold on navy: 8.9:1 */
  --gold-600: #a57c25;          /* large text / rules on white only */
  --gold-700: #8a6516;          /* gold text on white: 5.3:1 */
  /* neutrals (cool, never cream) */
  --ink: #0e1b3d;               /* body text on white: 16.9:1 */
  --slate: #4a5878;             /* secondary text on white: 7.1:1 */
  --slate-2: #5b6886;
  --mist: #f3f5fa;
  --mist-2: #e9edf5;
  --line: #dde2ec;
  --paper: #ffffff;
  --on-dark: #e8ecf5;           /* 15:1 on night-900 */
  --on-dark-muted: #a9b4cc;     /* 8.5:1 on night-900 */
  --line-dark: rgba(240, 215, 154, 0.2);
  --line-dark-2: rgba(232, 236, 245, 0.12);
  /* function */
  --wa: #0f7a40;                /* white on it: 5.4:1 */
  --wa-hover: #0b6634;
  --ok: #1e7a52;
  --warn-bg: #fff6e0;
  --warn-line: #ecd59a;
  --err: #b42318;
  /* type */
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 0.9vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.45rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.7rem + 3vw, 3.7rem);
  --step-5: clamp(2.8rem, 1.6rem + 4.6vw, 5rem);
  /* shape */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow-1: 0 1px 2px rgba(10, 23, 51, 0.06), 0 6px 18px -10px rgba(10, 23, 51, 0.22);
  --shadow-2: 0 2px 6px rgba(10, 23, 51, 0.08), 0 24px 48px -24px rgba(10, 23, 51, 0.35);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 120px);
  --masthead-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--masthead-h) + 16px); scroll-padding-bottom: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.62 var(--sans);
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--gold-600) 70%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-700); text-decoration-color: var(--gold-700); }
p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--night-900); outline-offset: 3px; border-radius: 6px; }
.band--night :focus-visible, .hero :focus-visible, .masthead :focus-visible, .footer :focus-visible, .page-hero :focus-visible, .ribbon :focus-visible, .side :focus-visible, .help :focus-visible, .dock :focus-visible, .drawer :focus-visible, .consent :focus-visible, .chat__head :focus-visible, .sister :focus-visible { outline-color: var(--gold-300); }
::selection { background: var(--gold-300); color: var(--night-900); }
[hidden] { display: none !important; }
.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: 12px; top: -60px; z-index: 100; background: var(--gold-500); color: var(--night-900); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
  color: inherit;
}
h1, .h1 { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.02em; }
h2, .h2 { font-size: var(--step-4); }
h3, .h3 { font-size: var(--step-2); letter-spacing: -0.01em; line-height: 1.18; }
h4, .h4 { font: 600 1.06rem/1.35 var(--sans); letter-spacing: 0; }
h1 em, h2 em, h3 em, .display em { font-style: italic; color: inherit; font-weight: 400; }
h1 em { color: var(--gold-700); }
.hero h1 em, .page-hero h1 em { color: var(--gold-500); }
.eyebrow {
  font: 600 0.8rem/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.band--night .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .footer .eyebrow { color: var(--gold-500); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--slate); max-width: 62ch; text-wrap: pretty; }
.band--night .lede, .hero .lede, .page-hero .lede { color: var(--on-dark-muted); }
.prose p, .prose li { max-width: 70ch; text-wrap: pretty; }
.prose > * + * { margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4rem; }
.small { font-size: var(--step--1); }
.muted { color: var(--slate); }
.num { font-variant-numeric: tabular-nums lining-nums; }
strong, b { font-weight: 600; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--section); position: relative; }
.band--mist { background: var(--mist); }
.band--night { background: var(--night-900); color: var(--on-dark); isolation: isolate; overflow: hidden; }
.band--night a:not(.btn) { color: var(--on-dark); text-decoration-color: var(--line-dark); }
.band--night a:not(.btn):hover { color: var(--gold-300); }
.band--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 40px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.split { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); align-items: start; }
.rule { height: 1px; border: 0; background: var(--line); margin: 0; }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--night-900);
  --b-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg);
  font: 600 0.97rem/1.1 var(--sans); letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn small { font-weight: 500; opacity: 0.7; }
.btn:hover { background: var(--night-700); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--gold { --b-bg: var(--gold-500); --b-fg: var(--night-900); box-shadow: 0 10px 30px -14px rgba(217, 178, 95, 0.85); }
.btn--gold:hover { background: var(--gold-300); color: var(--night-900); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--line { --b-bg: transparent; --b-fg: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(240, 215, 154, 0.45); }
.btn--line:hover { background: rgba(240, 215, 154, 0.1); color: var(--gold-200); }
.btn--light { --b-bg: var(--on-dark); --b-fg: var(--night-900); }
.btn--light:hover { background: #fff; color: var(--night-900); }
.btn--wa { --b-bg: var(--wa); --b-fg: #fff; }
.btn--wa:hover { background: var(--wa-hover); color: #fff; }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: inherit; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: rgba(127, 140, 170, 0.14); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- ribbon (next deadline) ---------- */
.ribbon { background: var(--night-950); color: var(--on-dark-muted); font-size: 0.86rem; border-bottom: 1px solid var(--line-dark-2); }
.ribbon__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; padding-block: 6px; }
.ribbon p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ribbon strong { color: var(--on-dark); font-weight: 600; }
.ribbon a { color: var(--gold-300); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ribbon a:hover { color: #fff; }
.ribbon__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px rgba(217, 178, 95, 0.18); }
.ribbon__count { color: var(--gold-300); }
.ribbon__count:empty { display: none; }
.ribbon__short { display: none; }

/* ---------- masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 40; background: rgba(10, 23, 51, 0.92); color: var(--on-dark); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line-dark-2); }
.masthead__in { display: flex; align-items: center; gap: 24px; min-height: var(--masthead-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; flex: none; }
.brand:hover { color: inherit; }
.brand__mark { width: 40px; height: 40px; flex: none; color: var(--gold-500); }
.brand__word { display: flex; flex-direction: column; font: 600 1.32rem/1 var(--serif); letter-spacing: 0.04em; }
.brand__word small { font: 600 0.68rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-500); margin-top: 4px; }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__group { position: relative; }
.nav__top {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px;
  border: 0; border-radius: 999px; background: transparent; color: var(--on-dark);
  font: 500 0.95rem/1 var(--sans); text-decoration: none;
}
.nav__top svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); opacity: 0.75; }
.nav__top:hover, .nav__top[aria-expanded="true"] { background: rgba(232, 236, 245, 0.08); color: #fff; }
.nav__top[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__top[aria-current="page"], .nav__group.is-current > .nav__top { color: var(--gold-300); }
.nav__panel {
  position: absolute; left: 50%; top: calc(100% + 14px); transform: translateX(-50%);
  min-width: 300px; padding: 10px; border-radius: var(--radius);
  background: var(--night-850); border: 1px solid var(--line-dark); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}
.nav__panel::before { content: ""; position: absolute; left: 50%; top: -7px; width: 12px; height: 12px; background: var(--night-850); border-left: 1px solid var(--line-dark); border-top: 1px solid var(--line-dark); transform: translateX(-50%) rotate(45deg); }
.nav__panel ul { list-style: none; display: grid; gap: 2px; }
.nav__panel a { display: grid; gap: 2px; padding: 11px 14px; border-radius: 12px; color: var(--on-dark); text-decoration: none; }
.nav__panel a b { font-weight: 600; font-size: 0.96rem; }
.nav__panel a span { font-size: 0.82rem; color: var(--on-dark-muted); line-height: 1.4; }
.nav__panel a:hover { background: rgba(232, 236, 245, 0.07); color: #fff; }
.nav__panel a[aria-current="page"] b { color: var(--gold-300); }
.masthead__actions { display: flex; align-items: center; gap: 8px; }
.masthead__menu { display: none; color: var(--on-dark); }
.masthead__ask { color: var(--on-dark); }
.masthead__wa { display: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--wa); color: #fff; }
.masthead__wa:hover { background: var(--wa-hover); color: #fff; }
.masthead__wa svg { width: 22px; height: 22px; }

/* ---------- home hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(60% 70% at 82% 6%, rgba(240, 215, 154, 0.12) 0%, rgba(240, 215, 154, 0) 60%),
    radial-gradient(90% 90% at 80% 0%, #183268 0%, rgba(24, 50, 104, 0) 70%),
    var(--night-900);
}
.hero__in { position: relative; z-index: 2; display: grid; gap: 28px; padding-block: clamp(56px, 9vw, 128px) clamp(48px, 6vw, 88px); max-width: 860px; }
.hero h1 { font-size: clamp(2.25rem, min(1.3rem + 4.6vw, 9.5vh), 4.25rem); line-height: 1; letter-spacing: -0.025em; font-weight: 450; }
.hero h1 em { display: inline; font-weight: 400; }
.hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hero__kicker .sep { width: 28px; height: 1px; background: var(--line-dark); }
.hero .lede { font-size: clamp(1.06rem, 0.98rem + 0.3vw, 1.2rem); }
.hero__facts { position: relative; z-index: 2; border-top: 1px solid var(--line-dark-2); }
.helio { position: absolute; z-index: 1; pointer-events: none; right: max(-180px, calc(50% - 860px)); top: -90px; width: min(1080px, 120vw); height: auto; }
.helio__ring { fill: none; stroke: var(--gold-500); stroke-linecap: round; }
.helio__ray { stroke: var(--gold-300); stroke-width: 1; opacity: 0.18; }
.helio__glow { fill: url(#helio-glow); }
.helio__sun { fill: var(--gold-200); }
@media (prefers-reduced-motion: no-preference) {
  .helio__ring { animation: helio-track 1.8s var(--ease) both; animation-delay: var(--d, 0ms); }
  .helio__ray { animation: helio-ray 2.4s var(--ease) both; animation-delay: calc(var(--d, 0ms) + 900ms); }
  .helio__glow { animation: helio-glow 2.6s var(--ease) 0.6s both; transform-origin: center; transform-box: fill-box; }
}
@keyframes helio-track { from { stroke-dashoffset: calc(var(--base, 0) + var(--off, 40)); opacity: 0; } to { stroke-dashoffset: var(--base, 0); } }
@keyframes helio-ray { from { opacity: 0; } to { opacity: 0.18; } }
@keyframes helio-glow { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }

/* facts row (hero + page heads) */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.facts > div { padding: 22px 24px 24px 0; display: grid; gap: 6px; align-content: start; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line-dark-2); }
.facts dt { font: 600 0.72rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-500); }
.facts dd { margin: 0; }
.facts__value { font: 600 1.15rem/1.25 var(--sans); color: #fff; font-variant-numeric: tabular-nums; }
.facts__note { font-size: 0.86rem; color: var(--on-dark-muted); line-height: 1.45; }
.facts__note a { color: var(--on-dark-muted); }
.facts--light > div + div { border-left-color: var(--line); }
.facts--light dt { color: var(--gold-700); }
.facts--light .facts__value { color: var(--ink); }
.facts--light .facts__note, .facts--light .facts__note a { color: var(--slate); }

/* ---------- inner page head ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark);
  background: radial-gradient(70% 120% at 100% 0%, #183268 0%, rgba(24, 50, 104, 0) 65%), var(--night-900); }
.page-hero__in { position: relative; z-index: 2; display: grid; gap: 18px; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 72px); max-width: 880px; }
.page-hero h1 { font-size: var(--step-5); font-weight: 450; }
.page-hero .actions { margin-top: 8px; }
.page-hero .helio { top: -250px; right: -360px; width: 900px; opacity: 0.42; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.86rem; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-300); }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* content area with an on-page index */
.page { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(48px, 6vw, 88px) var(--section); }
.page--wide { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: calc(var(--masthead-h) + 28px); align-self: start; display: grid; gap: 12px; }
.toc ul { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--slate); text-decoration: none; font-size: 0.93rem; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--gold-500); font-weight: 600; }
.page__body { display: grid; gap: clamp(56px, 7vw, 96px); min-width: 0; }
.block { display: grid; gap: 22px; scroll-margin-top: calc(var(--masthead-h) + 24px); }
.block > h2 { font-size: var(--step-3); }
.block > h2 + p { margin-top: -6px; }

/* ---------- cards, notices, badges ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 30px); box-shadow: var(--shadow-1); display: grid; gap: 12px; align-content: start; }
.card h3 { font-size: 1.5rem; }
.card--night { background: var(--night-800); border-color: var(--line-dark-2); color: var(--on-dark); box-shadow: none; }
.notice { display: flex; gap: 12px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--warn-bg); border: 1px solid var(--warn-line); color: #4a3a12; font-size: 0.97rem; line-height: 1.55; }
.notice::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.55em; border-radius: 50%; background: var(--gold-600); }
.notice strong { color: #3a2c08; }
.notice a { color: #3a2c08; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); color: var(--ink); font: 600 0.76rem/1.2 var(--sans); letter-spacing: 0.02em; }
.badge--gold { background: #fbf3df; border-color: #ecd59a; color: #5f4510; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 0.74rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; background: rgba(217, 178, 95, 0.14); color: var(--gold-300); }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.ticks svg { width: 22px; height: 22px; color: var(--gold-700); margin-top: 1px; }
.band--night .ticks svg { color: var(--gold-500); }

/* ---------- record (verified numbers) ---------- */
.record { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.record li { display: grid; gap: 8px; align-content: start; padding: 26px 26px 26px 0; border-bottom: 1px solid var(--line); }
.record b { font: 400 clamp(2.4rem, 1.9rem + 2vw, 3.4rem)/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.record span { color: var(--slate); font-size: 0.97rem; max-width: 30ch; }
.record a { font-size: 0.9rem; font-weight: 600; }
.band--night .record { border-color: var(--line-dark-2); }
.band--night .record li { border-color: var(--line-dark-2); }
.band--night .record b { color: var(--gold-300); }
.band--night .record span { color: var(--on-dark-muted); }

/* ---------- timeline (important dates) ---------- */
.timeline { list-style: none; display: grid; gap: 0; position: relative; }
.timeline__item { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 28px; padding: 22px 0; border-top: 1px solid var(--line); position: relative; }
.timeline__item:last-child { border-bottom: 1px solid var(--line); }
.timeline__date { font: 600 1.15rem/1.3 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.timeline__what { display: grid; gap: 6px; }
.timeline__what h3 { font: 600 1.06rem/1.35 var(--sans); letter-spacing: 0; }
.timeline__note { color: var(--slate); font-size: 0.95rem; }
.timeline__count { font: 600 0.8rem/1 var(--sans); color: var(--gold-700); letter-spacing: 0.04em; }
.timeline__count:empty { display: none; }
.timeline__item.is-final .timeline__date { color: var(--gold-700); }
.timeline--rail { grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; gap: 0; padding-bottom: 6px; scrollbar-width: thin; }
.timeline--rail .timeline__item { grid-template-columns: 1fr; gap: 10px; border: 0; border-top: 1px solid var(--line-dark); padding: 24px 24px 0 0; }
.timeline--rail .timeline__item::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 5px rgba(217, 178, 95, 0.16); }
.band--night .timeline__date { color: #fff; }
.band--night .timeline__note { color: var(--on-dark-muted); }
.band--night .timeline__count { color: var(--gold-300); }
.band--night .timeline__item.is-final .timeline__date { color: var(--gold-300); }

/* ---------- steps (how it works, visa) ---------- */
.steps { list-style: none; display: grid; gap: 0; counter-reset: s; }
.steps > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold-600); color: var(--gold-700); font: 600 1rem/1 var(--sans); }
.steps h3 { font: 600 1.06rem/1.35 var(--sans); letter-spacing: 0; margin-bottom: 6px; }
.steps p { color: var(--slate); max-width: 68ch; }
.steps p + p { margin-top: 8px; }
.steps__when { font: 600 0.74rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 6px; }
.band--night .steps > li { border-color: var(--line-dark-2); }
.band--night .steps__n { border-color: var(--gold-500); color: var(--gold-300); }
.band--night .steps p { color: var(--on-dark-muted); }

/* ---------- fees ---------- */
.price-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.price-card { display: grid; gap: 8px; align-content: start; padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.price-card__cat { font: 600 0.76rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); }
.price-card__amount { font: 400 clamp(2.4rem, 2rem + 1.6vw, 3.2rem)/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.price-card__note { color: var(--slate); font-size: 0.93rem; }
.price-card__when { margin-top: -2px; font: 600 0.78rem/1.3 var(--sans); color: var(--gold-700); }
.price-card__later { font-size: 0.88rem; color: var(--slate); }
.price-card__later b { font-weight: 600; color: var(--ink); }
.data--fees thead th span { display: block; margin-top: 2px; font-weight: 500; font-size: 0.78rem; letter-spacing: 0; text-transform: none; opacity: 0.8; }
.choice--check { background: var(--paper); }
.choice--check span { flex-wrap: wrap; }
.band--night .price-card { background: var(--night-800); border-color: var(--line-dark-2); box-shadow: none; }
.band--night .price-card__cat { color: var(--gold-500); }
.band--night .price-card__amount { color: #fff; }
.band--night .price-card__note { color: var(--on-dark-muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.data { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.data caption { text-align: left; padding: 16px 20px; font: 600 0.78rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-700); border-bottom: 1px solid var(--line); }
.data th, .data td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data tr:last-child th, .data tr:last-child td { border-bottom: 0; }
.data thead th { font: 600 0.78rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); background: var(--mist); }
.data tbody th { font-weight: 600; }
.data td.num { font: 600 1.05rem/1.3 var(--sans); white-space: nowrap; font-variant-numeric: tabular-nums; }
.data td:last-child { color: var(--slate); }
.data--legal { font-size: 0.9rem; min-width: 760px; }
.data--legal th[scope="row"] { width: 18%; }
.data--legal td:last-child { color: inherit; }
.calc { display: grid; gap: 18px; padding: clamp(20px, 3vw, 30px); border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line); }
.calc fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.calc legend { font-weight: 600; margin-bottom: 8px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--gold-600); box-shadow: 0 0 0 1px var(--gold-600) inset; }
.choice input { accent-color: var(--night-900); width: 18px; height: 18px; }
.choice span { display: flex; justify-content: space-between; gap: 12px; width: 100%; }
.choice em { font-style: normal; color: var(--slate); }
.calc__extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.calc__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.calc__total span { font-weight: 600; }
.calc__total output { font: 500 2rem/1 var(--serif); letter-spacing: -0.01em; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid #7d879e; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--night-900); outline-offset: 1px; border-color: var(--night-900); }
.field input:disabled { background: var(--mist); color: var(--slate); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 0.9rem; color: var(--slate); line-height: 1.5; }
.consent-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--night-900); }
.lead { position: relative; display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.lead__title { font: 500 var(--step-2)/1.15 var(--serif); letter-spacing: -0.01em; }
.lead__note { color: var(--slate); font-size: 0.95rem; }
.lead__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.lead__msg { font-size: 0.92rem; color: var(--err); min-height: 1.2em; }
.lead__msg:empty { min-height: 0; }
.lead.is-done > :not(.lead__done):not(.lead__title) { display: none; }
.lead__done { display: grid; gap: 12px; }

/* ---------- topics ---------- */
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.topic { display: grid; gap: 14px; align-content: start; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.topic h3 { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; }
.topic h3 span { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--night-900); color: var(--gold-500); }
.topic h3 svg { width: 20px; height: 20px; }
.topic ul { list-style: none; display: grid; gap: 7px; }
.topic li { position: relative; padding-left: 16px; color: var(--slate); font-size: 0.96rem; line-height: 1.45; }
.topic li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 1px; background: var(--gold-600); }
.chips-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--on-dark); text-decoration: none; font-size: 0.95rem; background: rgba(255, 255, 255, 0.02); }
.chips-list a:hover { border-color: var(--gold-500); color: var(--gold-200); background: rgba(217, 178, 95, 0.08); }
.band:not(.band--night) .chips-list a { border-color: var(--line); color: var(--ink); background: var(--paper); }
.band:not(.band--night) .chips-list a:hover { border-color: var(--gold-600); color: var(--gold-700); }

/* ---------- publication path + journals ---------- */
.path { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: p; position: relative; }
.path li { position: relative; display: grid; gap: 10px; align-content: start; padding: 28px 28px 28px 0; }
.path li + li { padding-left: 28px; border-left: 1px solid var(--line-dark-2); }
.path__k { font: 600 0.72rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-500); }
.path h3 { font-size: 1.5rem; color: #fff; }
.path p { color: var(--on-dark-muted); font-size: 0.97rem; }
.journals__group { margin: 8px 0 -6px; color: var(--slate); font: 600 0.8rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.journals { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.journal { display: grid; gap: 10px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.journal h4 { font: 600 1.02rem/1.35 var(--sans); letter-spacing: 0; }
.journal h4 a { text-decoration: none; }
.journal h4 a:hover { text-decoration: underline; }
.journal__pub { color: var(--slate); font-size: 0.9rem; }
.journal__note { color: var(--slate); font-size: 0.88rem; line-height: 1.5; }
.isbn { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.isbn li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.isbn b { font-weight: 600; }
.isbn span { color: var(--slate); }

/* ---------- editions (past) ---------- */
.editions { list-style: none; display: grid; gap: 0; }
.edition { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); }
.edition:last-child { border-bottom: 1px solid var(--line); }
.edition__year { font: 400 2.2rem/1 var(--serif); letter-spacing: -0.02em; color: var(--gold-700); }
.edition h3 { font-size: 1.5rem; }
.edition__venue { color: var(--ink); margin-top: 4px; }
.edition__when { color: var(--slate); font-size: 0.95rem; margin-top: 4px; }
.edition__facts { font-weight: 600; font-size: 0.95rem; margin-top: 8px; }
.edition__link { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 0.92rem; }
.edition.is-next .edition__year { color: var(--ink); }
.edition.is-next h3::after { content: "Next"; margin-left: 12px; vertical-align: middle; font: 600 0.7rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--night-900); color: var(--gold-300); }

/* map of host cities (home) */
.hosts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hosts li { display: inline-flex; align-items: baseline; gap: 8px; color: var(--on-dark-muted); font-size: 0.95rem; }
.hosts b { font: 600 1rem/1 var(--sans); color: var(--on-dark); }
.hosts .is-next b { color: var(--gold-300); }

/* ---------- committees ---------- */
.chairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.chair { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: var(--radius); background: var(--mist); }
.chair p:not(.eyebrow) { font-weight: 600; }
.chair p span { display: block; font-weight: 400; color: var(--slate); font-size: 0.92rem; }
.chair p.chair__tba { font-weight: 500; color: var(--slate); }
.roster { list-style: none; columns: 3 260px; column-gap: 32px; }
.roster li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.roster li span { display: block; color: var(--slate); font-weight: 400; font-size: 0.9rem; }

/* ---------- people ---------- */
.person { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.person img { width: 120px; height: 150px; object-fit: cover; border-radius: 12px; }
.person.person--text { grid-template-columns: minmax(0, 1fr); }
.person h3 { font-size: 1.5rem; margin: 6px 0 4px; }
.person blockquote { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--gold-500); font: 500 0.98rem/1.45 var(--sans); color: var(--ink); }

/* ---------- sister conference ---------- */
.sister { display: grid; gap: 10px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: linear-gradient(160deg, rgba(240, 215, 154, 0.08), rgba(240, 215, 154, 0) 60%), var(--night-800); color: var(--on-dark); }
.sister h3 { font-size: 1.5rem; color: #fff; }
.sister p:not(.eyebrow) { color: var(--on-dark-muted); }
.sister .link-arrow { color: var(--gold-300); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 16px; align-items: center; padding: 19px 0; cursor: pointer; font: 600 1.02rem/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); font: 400 1.1rem/1 var(--sans); color: var(--gold-700); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { content: "–"; background: var(--night-900); color: var(--gold-300); border-color: var(--night-900); }
.faq summary:hover { color: var(--gold-700); }
.faq__a { padding: 0 44px 22px 0; color: var(--slate); display: grid; gap: 10px; max-width: 72ch; }
.faq__a a { color: var(--ink); }
.faq-cats ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.faq-cats a { display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1px solid #7d879e; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.faq-cats a:hover { border-color: var(--gold-600); }
.faq__cat { margin-top: 18px; }
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--slate); }
.search input { width: 100%; min-height: 54px; padding: 14px 16px 14px 48px; border-radius: 999px; border: 1px solid #7d879e; font-size: 1rem; }
.search input:focus { outline: 3px solid var(--gold-300); outline-offset: 2px; border-color: var(--night-900); }

/* ---------- gallery + mosaic ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 18px; border-radius: 999px; border: 1px solid #7d879e; background: var(--paper); font-weight: 600; }
.tab[aria-selected="true"] { background: var(--night-900); color: #fff; border-color: var(--night-900); }
.tab .count { font-weight: 500; opacity: 0.7; font-size: 0.85rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.gallery__item button { display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--mist); }
.gallery__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.4s var(--ease); }
.gallery__item button:hover img { transform: scale(1.03); }
.gallery__intro { max-width: 70ch; margin-bottom: 18px; }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 12px; }
.mosaic figure { position: relative; overflow: hidden; border-radius: 16px; background: var(--night-800); grid-column: span 4; grid-row: span 2; }
.mosaic figure.wide { grid-column: span 8; grid-row: span 3; }
.mosaic figure.tall { grid-column: span 4; grid-row: span 3; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(6, 13, 31, 0.72); color: var(--on-dark); font-size: 0.8rem; backdrop-filter: blur(6px); }
.mosaic figcaption:empty { display: none; }
.mosaic--band { grid-auto-rows: 174px; }
.mosaic--band figure { grid-column: span 4; grid-row: span 1; }
.mosaic--band figure.wide { grid-column: span 8; grid-row: span 2; }
.photo-note { margin-top: 14px; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(6, 13, 31, 0.86); }
.lightbox__img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px; color: var(--on-dark); }
.lightbox .icon-btn { color: var(--on-dark); }

/* live Instagram post */
.live { display: grid; gap: 14px; }
.live__card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.live__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.live__head svg { width: 20px; height: 20px; }
.live__head a { margin-left: auto; font-weight: 600; }
.live__date { color: var(--slate); }
.live__body { padding: 12px; min-height: 120px; }
.live__fallback { display: inline-block; padding: 12px; }

/* ---------- help band (every page) ---------- */
.help { background: var(--night-900); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.help::before { content: ""; position: absolute; inset: auto -120px -220px auto; width: 520px; height: 520px; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, rgba(240, 215, 154, 0.16), rgba(240, 215, 154, 0)); }
.help__in { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: clamp(40px, 6vw, 72px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 28px 56px; align-items: center; }
.help__side { display: grid; gap: 12px; justify-items: end; }
.help__mail { font-size: 0.92rem; color: var(--on-dark-muted); }
.help__mail a { color: var(--on-dark); }
.help h2 { color: #fff; margin: 8px 0 10px; }
.help p:not(.eyebrow) { color: var(--on-dark-muted); max-width: 56ch; }
.help__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ---------- footer ---------- */
.footer { background: var(--night-950); color: var(--on-dark-muted); font-size: 0.94rem; }
.footer__top { display: grid; grid-template-columns: minmax(260px, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 36px; padding-block: clamp(48px, 6vw, 80px) 40px; }
.footer__brand { display: grid; gap: 16px; align-content: start; }
.footer__brand p { max-width: 36ch; }
.footer h2 { font: 600 0.74rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: var(--on-dark-muted); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold-500); }
.footer__social { display: flex; gap: 6px; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark-2); color: var(--on-dark); }
.footer__social a:hover { border-color: var(--gold-500); color: var(--gold-300); }
.footer__social svg { width: 18px; height: 18px; }
.footer__logo, .footer .footer__logo { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark); }
.footer .footer__logo:hover { text-decoration: none; color: #fff; }
.footer__logo img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(240, 215, 154, 0.4); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px 28px; border-top: 1px solid var(--line-dark-2); font-size: 0.86rem; }
.footer__base nav { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- phone dock + drawer ---------- */
.dock { display: none; }
.drawer { width: min(420px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--night-900); color: var(--on-dark); }
.drawer::backdrop { background: rgba(6, 13, 31, 0.6); backdrop-filter: blur(3px); }
.drawer[open] { animation: drawer-in 0.28s var(--ease); }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 8px 22px; }
.drawer__body { padding: 0 22px 120px; overflow-y: auto; max-height: calc(100dvh - 72px); }
.drawer__group { font: 600 0.72rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-500); margin: 22px 0 6px; }
.drawer__list { list-style: none; display: grid; }
.drawer__list a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line-dark-2); color: var(--on-dark); text-decoration: none; font: 500 1.08rem/1.3 var(--sans); }
.drawer__list a[aria-current="page"] { color: var(--gold-300); }
.drawer__cta { display: grid; gap: 10px; margin-top: 26px; }

/* ---------- assistant + WhatsApp ---------- */
.helpdock { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 10px; transition: opacity 0.25s var(--ease), visibility 0.25s; }
.helpdock.is-tucked { opacity: 0; visibility: hidden; }
.chat-launch { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 20px 8px 8px; border: 1px solid var(--line-dark); border-radius: 999px; background: var(--night-900); color: #fff; font: 600 0.97rem/1 var(--sans); box-shadow: 0 18px 40px -14px rgba(6, 13, 31, 0.6); }
.chat-launch:hover { background: var(--night-800); }
.chat-launch__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold-500); color: var(--night-900); }
.chat-launch__icon svg { width: 20px; height: 20px; }
.wa-float { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 18px 40px -14px rgba(6, 13, 31, 0.6); }
.wa-float:hover { background: var(--wa-hover); color: #fff; }
.wa-float svg { width: 26px; height: 26px; }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(410px, calc(100vw - 24px)); height: min(640px, calc(100dvh - 40px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto; border-radius: 22px; overflow: hidden; background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(6, 13, 31, 0.6), 0 0 0 1px rgba(10, 23, 51, 0.08); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 18px; background: var(--night-900); color: var(--on-dark); }
.chat__avatar { width: 40px; height: 40px; flex: none; color: var(--gold-500); }
.chat__title { font: 600 1rem/1.25 var(--sans); color: #fff; }
.chat__sub { font-size: 0.8rem; color: var(--on-dark-muted); }
.chat__head .icon-btn { margin-left: auto; color: var(--on-dark); }
.chat__log { overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: var(--mist); scroll-behavior: smooth; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 16px; font-size: 0.95rem; line-height: 1.5; display: grid; gap: 8px; }
.msg p + p { margin-top: 0; }
.msg ul { margin: 0; padding-left: 1.15em; display: grid; gap: 4px; }
.msg__ai::before { content: "AI"; display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; background: var(--night-900); color: var(--gold-300); font: 700 0.66rem/1.5 var(--sans); letter-spacing: 0.08em; vertical-align: 1px; }
.msg--bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-top-left-radius: 6px; }
.msg--user { align-self: flex-end; background: var(--night-900); color: #fff; border-top-right-radius: 6px; }
.msg a { color: var(--ink); font-weight: 600; }
.msg__links { display: flex; flex-wrap: wrap; gap: 8px; }
.msg__links a { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); text-decoration: none; font-size: 0.86rem; }
.msg__src { font-size: 0.82rem; color: var(--slate); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 36px; padding: 7px 12px; border-radius: 999px; border: 1px solid #7d879e; background: var(--paper); font-size: 0.86rem; color: var(--ink); text-align: left; }
.chips button:hover { border-color: var(--gold-600); color: var(--gold-700); }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--slate-2); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.chat__handoff { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--paper); }
.chat__handoff .btn { min-height: 42px; font-size: 0.9rem; }
.chat__form { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; padding: 10px 12px 12px; background: var(--paper); }
.chat__form input { min-height: 48px; padding: 10px 16px; border-radius: 999px; border: 1px solid #7d879e; }
.chat__form input:focus { outline: 2px solid var(--night-900); outline-offset: 1px; border-color: var(--night-900); }
.chat__form button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold-500); color: var(--night-900); display: grid; place-items: center; }
.chat__form button svg { width: 20px; height: 20px; }
.chat__note { padding: 0 16px 12px; font-size: 0.75rem; color: var(--slate); background: var(--paper); }

/* ---------- consent ---------- */
.consent { position: fixed; left: 20px; bottom: 20px; z-index: 70; width: min(440px, calc(100vw - 40px)); display: grid; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--night-900); color: var(--on-dark); box-shadow: 0 30px 60px -20px rgba(6, 13, 31, 0.6); font-size: 0.92rem; }
.consent a { color: var(--gold-300); }

/* ---------- home: misc ---------- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.why > div { display: grid; gap: 10px; align-content: start; padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.why h3 { font-size: 1.4rem; }
.why p { color: var(--slate); }
.madrid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.madrid__visual { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--night-800); }
.madrid__visual img { width: 100%; height: 100%; object-fit: cover; }
.madrid__visual figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(6, 13, 31, 0.72); color: var(--on-dark); font-size: 0.78rem; }
.kv { display: grid; gap: 0; border-top: 1px solid var(--line); }
.kv > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; color: var(--slate); }
.band--night .kv, .band--night .kv > div { border-color: var(--line-dark-2); }
.band--night .kv dd { color: var(--on-dark-muted); }


/* ---------- home: joint week, Kilómetro Cero, journal strip ---------- */
.band--glow::before { content: ""; position: absolute; z-index: -1; right: -200px; top: -260px; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 215, 154, 0.14), rgba(24, 50, 104, 0.7) 38%, rgba(24, 50, 104, 0)); }
.split--center { align-items: center; }
.week { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.week__day { display: grid; gap: 14px; align-content: start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.week__day.is-joint { background: var(--night-900); border-color: var(--night-900); color: var(--on-dark); box-shadow: 0 24px 50px -28px rgba(10, 23, 51, 0.7); }
.week__date { display: grid; grid-template-columns: auto; gap: 2px; }
.week__date span { font: 600 0.72rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); }
.week__date b { font: 400 3.2rem/1 var(--serif); letter-spacing: -0.03em; color: var(--ink); }
.week__day.is-joint .week__date span { color: var(--gold-500); }
.week__day.is-joint .week__date b { color: var(--gold-300); }
.week__day h3 { font: 600 1rem/1.3 var(--sans); letter-spacing: 0; }
.week__day p:not(.week__date) { color: var(--slate); font-size: 0.92rem; }
.week__day.is-joint p:not(.week__date) { color: var(--on-dark-muted); }
.kmzero { display: grid; justify-items: center; gap: 18px; color: var(--gold-500); margin: 0; }
.kmzero svg { width: min(340px, 80%); height: auto; }
.kmzero figcaption { display: grid; justify-items: center; gap: 4px; font: 600 0.78rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.kmzero figcaption span:first-child { color: var(--gold-300); font-variant-numeric: tabular-nums; }
.jstrip { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.jstrip li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font: 500 0.98rem/1.4 var(--sans); }
.jstrip .badge { flex: none; }
.journal__fee { font-size: 0.88rem; color: var(--slate); padding-top: 10px; border-top: 1px dashed var(--line); }
.journal__fee.is-free { color: var(--ok); font-weight: 600; }
.journal .badges:empty { display: none; }
.edition__year { display: grid; gap: 6px; align-content: start; }
.edition__year small { font: 600 0.7rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.edition__isbn { color: var(--slate); font-size: 0.88rem; margin-top: 6px; }
.edition__note { color: var(--slate); font-size: 0.9rem; margin-top: 6px; }
.committee__title { margin: 48px 0 10px; }
.inst { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 12px; margin-top: 18px; }
.inst a, .inst__card { display: grid; grid-template-rows: 72px auto; gap: 12px; height: 100%; padding: 18px 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); text-align: center; text-decoration: none; color: var(--ink); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.inst a:hover { border-color: var(--gold-500); box-shadow: var(--shadow-1); color: var(--ink); }
.inst__logo { display: grid; place-items: center; min-width: 0; }
.inst__logo img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.inst__name { font-size: 0.86rem; font-weight: 600; line-height: 1.3; }
.linklike { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: var(--line-dark); cursor: pointer; }
.footer__contact a { color: var(--on-dark); }
.footer__base nav { align-items: center; }
@media (max-width: 860px) {
  .week { grid-template-columns: minmax(0, 1fr); }
  .week__day { grid-template-columns: 76px minmax(0, 1fr); align-items: center; }
  .week__date b { font-size: 2.4rem; }
}


/* ---------- inner pages: misc ---------- */
.page-hero--plain { background: var(--night-900); }
.page-hero--plain .page-hero__in { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); }
.page__body.legal { gap: clamp(36px, 4vw, 52px); }
.legal .block { gap: 10px; }
.legal .block > h2 { font-size: var(--step-2); }
.prose > .block + .block { margin-top: 0; }
.legal p { color: var(--slate); max-width: 74ch; }
.ticks-plain { list-style: none; display: grid; gap: 8px; }
.ticks-plain li { position: relative; padding-left: 20px; font-weight: 600; }
.ticks-plain li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--gold-600); }
.card--contact .btn { justify-self: start; margin-top: 6px; }
.card--contact h3 { font-size: 1.4rem; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: radial-gradient(70% 90% at 70% 20%, #1b3264, var(--night-900)); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; border: 0; background: transparent; color: var(--on-dark); font: 600 0.95rem/1.2 var(--sans); }
.video__play svg { width: 64px; height: 64px; padding: 18px; border-radius: 50%; background: var(--gold-500); color: var(--night-900); box-shadow: 0 0 0 10px rgba(217, 178, 95, 0.18); }
.video__play:hover svg { background: var(--gold-300); }
.page-hero .search { max-width: 560px; margin-top: 8px; }
.page-hero .search input { background: rgba(255, 255, 255, 0.96); }
.page-hero #faq-status { color: var(--on-dark-muted); min-height: 1.4em; }


/* ---------- consent v2 + lead fine print ---------- */
.consent__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.consent__actions .btn { width: 100%; }
.consent__panel { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-dark-2); }
.consent__opt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 0.88rem; color: var(--on-dark-muted); }
.consent__opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold-500); }
.consent__opt b { display: block; color: var(--on-dark); font-weight: 600; }
.lead__fine { font-size: 0.8rem; color: var(--slate); line-height: 1.5; }
.lead__fine a { color: var(--ink); }
.lead .actions { margin-top: -4px; }


/* ---------- hero v3: the mirrors focus on the facts ---------- */
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: end; padding-block: clamp(32px, min(7vw, 8vh), 104px) clamp(48px, 6vw, 88px); }
.hero__grid .hero__in { padding: 0; max-width: none; gap: 24px; }
.focus { position: relative; padding: 26px 26px 20px; border-radius: 22px; background: rgba(10, 23, 51, 0.72); border: 1px solid rgba(240, 215, 154, 0.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.focus__list { display: grid; gap: 0; margin: 0; }
.focus__list > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 2px 16px; padding: 14px 0; border-top: 1px solid var(--line-dark-2); }
.focus__list > div:first-child { border-top: 0; padding-top: 0; }
.focus__list dt { grid-row: span 2; font: 600 0.74rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-500); padding-top: 4px; }
.focus__list dd { margin: 0; }
.focus__value { font: 600 1.15rem/1.3 var(--sans); color: #fff; font-variant-numeric: tabular-nums; }
.focus__note { font-size: 0.86rem; color: var(--on-dark-muted); line-height: 1.45; }
.focus__count { color: var(--gold-300); font-weight: 600; }
.focus__count::after { content: " · "; color: var(--on-dark-muted); font-weight: 400; }
.focus__count:empty { display: none; }
@media (min-width: 721px) {
  .hero .helio { -webkit-mask-image: linear-gradient(90deg, transparent 0 30%, #000 58%); mask-image: linear-gradient(90deg, transparent 0 30%, #000 58%); }
}
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .focus { max-width: 640px; }
}
@media (max-width: 720px) {
  .hero__grid { padding-block: 28px 36px; gap: 24px; }
  .hero__in { gap: 20px; }
  .hero .actions { gap: 4px; }
  .hero .actions .btn--gold { width: 100%; justify-content: center; min-height: 52px; }
  .hero .actions .btn--line { box-shadow: none; padding-inline: 4px; min-height: 44px; color: var(--gold-300); }
  .hero .helio__ring, .hero .helio__ray { vector-effect: non-scaling-stroke; }
  .hero .lede { font-size: 1.06rem; }
  .hero .helio { width: 520px; right: -56px; top: -32px; opacity: 0.85; -webkit-mask-image: radial-gradient(circle at 80% 18%, #000 0 30%, transparent 64%); mask-image: radial-gradient(circle at 80% 18%, #000 0 30%, transparent 64%); }
  .focus { padding: 16px; border-radius: 18px; }
  .focus__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .focus__list > div { grid-template-columns: minmax(0, 1fr); padding: 12px 0; border-top: 1px solid var(--line-dark-2); }
  .focus__list > div:nth-child(-n + 2) { border-top: 0; padding-top: 0; }
  .focus__list dt { grid-row: auto; padding: 0; font-size: 0.68rem; }
  .focus__value { font-size: 1rem; }
  .focus__note { font-size: 0.78rem; }
}
.band--mist .eyebrow { color: var(--slate); }

/* ---------- campaign landing pages ---------- */
.lp-bar__when { margin: 0 0 0 auto; font: 600 0.8rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-500); }
.lp-hero h1 { font-size: clamp(2.1rem, min(1.2rem + 3vw, 7vh), 3.6rem); line-height: 1.04; }
.lp-proof { gap: 10px; color: var(--on-dark); font-size: 0.98rem; line-height: 1.5; }
.hero .ticks svg { color: var(--gold-500); }
.lp-after { margin-top: 20px; }
.lp-narrow { max-width: 880px; }
.lp-final { display: grid; justify-items: start; gap: 18px; }
.lp-final h2 { font-size: var(--step-4); }
.route { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.route > li { position: relative; padding: 24px 18px 0 0; border-top: 1px solid var(--line-dark); }
.route > li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px rgba(217, 178, 95, 0.18); }
.route__when { font: 600 0.74rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 8px; }
.route h3 { font: 600 1.06rem/1.3 var(--sans); letter-spacing: 0; color: #fff; margin-bottom: 6px; }
.route p:not(.route__when) { color: var(--on-dark-muted); font-size: 0.93rem; line-height: 1.5; }
.jstrip__fee { display: block; margin-top: 2px; font: 400 0.84rem/1.4 var(--sans); color: var(--slate); }
.lp-footer .footer__base { border-top: 0; }
.lp-footer__note { padding-bottom: 28px; font-size: 0.82rem; max-width: 100ch; }
.lp-sticky { display: none; }
@media (max-width: 1080px) {
  .route { grid-template-columns: minmax(0, 1fr); }
  .route > li { padding: 0 0 22px 26px; border-top: 0; border-left: 1px solid var(--line-dark); }
  .route > li:last-child { padding-bottom: 0; }
  .route > li::before { top: 3px; left: -5px; }
}
@media (max-width: 720px) {
  .lp-bar__when { display: none; }
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  .price-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .price-card { grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 18px; row-gap: 4px; align-items: center; padding: 16px 20px; }
  .price-card__cat, .price-card__amount { grid-column: 1; }
  .price-card__amount { font-size: 2.2rem; }
  .price-card__note { grid-column: 2; grid-row: 1 / span 2; font-size: 0.9rem; line-height: 1.45; }
  .price-card__when { grid-column: 1; }
  .price-card__later { grid-column: 2; grid-row: 3; font-size: 0.84rem; }
  .lp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; transform: translateY(110%); transition: transform 0.3s var(--ease); gap: 8px; align-items: center; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(10, 23, 51, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-dark-2); }
  .lp-sticky .btn { flex: 1; justify-content: center; min-height: 48px; padding-inline: 12px; font-size: 0.95rem; }
  .lp-sticky__ask { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: var(--gold-300); }
  .lp-sticky__ask svg { width: 22px; height: 22px; }
  .lp-sticky.is-shown { transform: none; }
}

/* ---------- the ECRES emblem (as on ecres.net), journal covers, the explanatory home page ---------- */
.brand__logo { width: 50px; height: 50px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px rgba(240, 215, 154, 0.45); }
.side__brand .brand__logo { width: 62px; height: 62px; }
.chat__avatar { width: 44px; height: 44px; border-radius: 50%; }
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-bottom: clamp(36px, 4vw, 52px); }
.glance { display: grid; gap: 24px; margin: 0; }
.glance > div { display: grid; gap: 6px; padding-left: 18px; border-left: 2px solid var(--gold-500); }
.glance dt { font: 600 0.8rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); }
.glance dd { margin: 0; color: var(--slate); font-size: 1.02rem; line-height: 1.6; max-width: 60ch; }
.about__photo { margin: 0; display: grid; gap: 8px; }
.about__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.about__photo figcaption { font-size: 0.86rem; color: var(--slate); }
.howto { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: howto; }
.howto > li { counter-increment: howto; display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.howto > li::before { content: counter(howto); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 4px; border-radius: 50%; border: 1px solid var(--gold-600); color: var(--gold-700); font: 600 0.95rem/1 var(--sans); }
.howto__when { font: 600 0.74rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-700); }
.howto h3 { font: 600 1.1rem/1.3 var(--sans); letter-spacing: 0; }
.howto p:not(.howto__when) { color: var(--slate); font-size: 0.95rem; line-height: 1.55; }
.howto a { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 0.92rem; color: var(--ink); text-decoration-color: var(--gold-500); }
.covers__title { margin-bottom: 16px; }
.covers { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 18px; }
.covers li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.covers a { display: block; width: 100%; border-radius: 6px; }
.covers img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: #fff; box-shadow: 0 12px 26px -18px rgba(6, 13, 31, 0.55), 0 0 0 1px var(--line); transition: transform 0.2s var(--ease); }
.covers a:hover img { transform: translateY(-2px); }
.covers__name { margin-top: 4px; font: 600 0.88rem/1.3 var(--sans); color: var(--ink); }
.covers__fee { font-size: 0.78rem; line-height: 1.35; color: var(--slate); }
.jstrip li { justify-content: flex-start; }
.jstrip__cover { flex: none; width: 36px; height: 48px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }
.jstrip__name { flex: 1; min-width: 0; }
.journal.has-cover { grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.journal__cover { width: 72px; height: 96px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.journal__body { display: grid; gap: 10px; min-width: 0; }
@media (max-width: 1080px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .howto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .covers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .brand__logo { width: 44px; height: 44px; }
  .howto { grid-template-columns: minmax(0, 1fr); }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
}

/* ---------- home: selected papers being published (Prof. Kurt, 11 Oct 2026; render_published_selected) ---------- */
.journals--pubsel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.journals--pubsel h3 { font: 600 1.06rem/1.35 var(--sans); letter-spacing: 0; }
.journals--pubsel .link-arrow { font-size: 0.95rem; }
.pubsel__title { font-weight: 500; line-height: 1.45; }
.pubsel__status { font-size: 0.92rem; line-height: 1.5; }
.pubsel__earlier { display: grid; gap: 14px; margin-top: clamp(36px, 4vw, 52px); }
.si-list { list-style: none; display: grid; border-top: 1px solid var(--line); }
.si-list li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; line-height: 1.45; }
.si-list b { font-weight: 600; }
.si-list .num { color: var(--slate); white-space: nowrap; }
@media (max-width: 720px) {
  .journals--pubsel { grid-template-columns: minmax(0, 1fr); }
  .si-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .si-list a { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- every ecres.net logo: hero lockup, past venues, edition banners, organizers, social ---------- */
.lockup { display: flex; align-items: center; gap: 18px; }
.lockup__logo { flex: none; width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(240, 215, 154, 0.5), 0 16px 34px -16px rgba(0, 0, 0, 0.6); }
.lockup__text { display: grid; gap: 8px; margin: 0; }
.lockup__name { font: 600 2.15rem/1 var(--serif); letter-spacing: 0.035em; color: #fff; }
.lockup__name b { font-weight: 600; color: var(--gold-300); }
.lockup__meta { font: 600 0.74rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-500); }
.venues { margin: clamp(8px, 1vw, 12px) 0 clamp(32px, 4vw, 48px); }
.venues__title { margin-bottom: 14px; font: 600 0.8rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); }
.venues__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.venues__list a { display: grid; grid-template-rows: 56px auto; gap: 10px; justify-items: center; align-items: center; height: 100%; padding: 14px 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); text-decoration: none; color: var(--slate); transition: border-color 0.2s var(--ease); }
.venues__list a:hover { border-color: var(--gold-500); color: var(--ink); }
.venues__list img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.venues__list span { font-size: 0.8rem; line-height: 1.3; text-align: center; }
.venues__list b { color: var(--ink); font-weight: 600; }
.band--mist .venues__list a { border-color: transparent; }
.edition__banner { display: block; width: 100%; max-width: 640px; height: auto; margin-bottom: 16px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.edition__banner[width="535"] { max-width: 320px; }
.edition__venue { display: flex; align-items: center; gap: 12px; }
.edition__venue-logo { flex: none; width: auto; height: auto; max-width: 96px; max-height: 40px; object-fit: contain; }
.edition__logos { display: grid; gap: 8px; margin-top: 14px; }
.edition__logos p { font: 600 0.7rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.edition__logos ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.edition__logos img { display: block; width: auto; height: auto; max-width: 160px; max-height: 52px; object-fit: contain; }
.sister__logo { width: 72px; height: 72px; padding: 8px; object-fit: contain; border-radius: 14px; background: #fff; }
.orgs { list-style: none; display: grid; gap: 12px; }
.orgs li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.orgs__logo { width: 72px; height: 72px; object-fit: contain; }
.orgs .eyebrow { margin-bottom: 4px; }
.orgs p:not(.eyebrow) { color: var(--slate); font-size: 0.95rem; line-height: 1.5; }
.orgs b { color: var(--ink); }
.footer__org { display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: var(--on-dark-muted); }
.footer__org img { width: 55px; height: 44px; object-fit: contain; }
.footer__org span { display: grid; gap: 2px; font-size: 0.8rem; }
.footer__org b { font-weight: 600; font-size: 0.92rem; color: var(--on-dark); }
.footer .footer__org:hover { text-decoration: none; }
.footer .footer__org:hover b { color: #fff; }
.footer__social svg.logo-icon { width: 22px; height: 22px; }
.logo-icon { flex: none; }
.side__social { display: none; }
@media (max-width: 720px) {
  .lockup__logo, .lockup__name { display: none; }
  .lockup__meta { letter-spacing: 0.14em; }
  .edition__venue-logo { max-width: 76px; max-height: 34px; }
  /* phones: the venue logos in one row to swipe, the institutions two by two */
  .venues__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; gap: 8px; margin-inline: -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .venues__list::-webkit-scrollbar { display: none; }
  .venues__list li { flex: 0 0 132px; scroll-snap-align: start; }
  .venues__list a { grid-template-rows: 46px auto; }
  .venues__list img { max-height: 46px; }
  .inst { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .inst a, .inst__card { grid-template-rows: 52px auto; gap: 8px; padding: 14px 8px 12px; }
  .inst__logo img { max-height: 52px; }
  .inst__name { font-size: 0.78rem; }
  .orgs li { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .orgs__logo { width: 56px; height: 56px; }
}

/* ---------- Madrid photos (as intcec.org shows Chicago) ---------- */
.hero__photo { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: min(66%, 1240px); margin: 0; pointer-events: none; }
.hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 55%; opacity: 0.9; }
.hero__photo::after { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, var(--night-900) 0%, rgba(10, 23, 51, 0.8) 22%, rgba(10, 23, 51, 0.16) 62%, rgba(10, 23, 51, 0) 100%),
              linear-gradient(180deg, rgba(10, 23, 51, 0.35) 0%, rgba(10, 23, 51, 0) 30%, rgba(10, 23, 51, 0) 62%, var(--night-900) 100%); }
.hero__photo figcaption { position: absolute; z-index: 1; right: clamp(16px, 3vw, 40px); bottom: 14px; font: 500 0.72rem/1.3 var(--sans); letter-spacing: 0.05em; color: rgba(232, 236, 245, 0.72); }
.page-hero--photo .hero__photo { width: min(70%, 1100px); }
.page-hero--photo .hero__photo img { object-position: 50% 45%; opacity: 0.7; }
.madrid-strip { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 clamp(24px, 3vw, 36px); }
.madrid-strip figure, .madrid-gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-sm); background: var(--night-850); }
.madrid-strip figure { height: clamp(220px, 23vw, 320px); }
.madrid-strip img, .madrid-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.madrid-strip figure:hover img, .madrid-gallery figure:hover img { transform: scale(1.03); }
.madrid-strip figcaption, .madrid-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font: 600 0.82rem/1.3 var(--sans); color: #fff; background: linear-gradient(180deg, rgba(6, 13, 31, 0), rgba(6, 13, 31, 0.8)); }
.madrid-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 17vw, 220px); gap: 10px; }
.madrid-gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.madrid-credits { margin-top: 10px; }
.madrid-credits a { color: inherit; }
@media (max-width: 1080px) {
  .hero__photo, .page-hero--photo .hero__photo { width: 100%; }
  .hero__photo img { opacity: 0.55; object-position: 60% 40%; }
  .hero__photo::after { background: linear-gradient(180deg, rgba(10, 23, 51, 0.5) 0%, rgba(10, 23, 51, 0.62) 45%, var(--night-900) 100%); }
  .hero__photo figcaption { display: none; }
}
@media (max-width: 860px) {
  .madrid-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .madrid-strip figure { height: clamp(150px, 42vw, 240px); }
}
@media (max-width: 720px) {
  .madrid-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .madrid-gallery figure:first-child { grid-row: span 1; }
  .madrid-gallery figure:last-child:nth-child(even) { grid-column: span 2; }
  .madrid-strip figcaption, .madrid-gallery figcaption { padding: 22px 10px 9px; font-size: 0.76rem; }
}
@media print { .hero__photo { display: none; } }

/* ---------- Science in Quality: the page, the band on the home and campaign pages, the footer badge ---------- */
.sq-logo { display: block; height: auto; }
ul.badges { list-style: none; }
.sq-hero__in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: clamp(28px, 5vw, 72px); max-width: 1080px; }
.sq-hero__logo { width: clamp(150px, 16vw, 220px); }
.sq-code { display: inline-flex; flex: none; align-items: center; justify-content: center; min-width: 44px; height: 26px; padding: 0 9px; border-radius: 999px;
  border: 1px solid var(--gold-600); color: var(--gold-700); font: 600 0.78rem/1 var(--sans); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.sq-built-on { display: grid; gap: 10px; }
.sq-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sq-record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sq-gates { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 16px; }
.sq-gates li { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); box-shadow: var(--shadow-1); }
.sq-gates h3 { font: 600 1.06rem/1.35 var(--sans); letter-spacing: 0; }
.sq-gates p { color: var(--slate); font-size: 0.97rem; line-height: 1.55; }
.sq-gates .sq-gates__ev { align-self: end; width: 100%; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.sq-gates__ev span { display: block; margin-bottom: 2px; font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-700); }
.sq-criteria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 44px); }
.sq-criteria > div { display: grid; gap: 6px; align-content: start; padding: 18px 0; border-top: 1px solid var(--line); }
.sq-criteria dt { display: flex; align-items: center; gap: 12px; font: 600 1.02rem/1.35 var(--sans); color: var(--ink); }
.sq-criteria dd { margin: 0; padding-left: 56px; color: var(--slate); font-size: 0.97rem; line-height: 1.55; }
.sq-decl { display: grid; border-top: 1px solid var(--line); }
.sq-decl > div { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sq-decl dt { font: 600 1.02rem/1.4 var(--sans); color: var(--ink); }
.sq-decl dd { margin: 0; color: var(--slate); line-height: 1.55; }
.sq-band__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.sq-band__mark { display: block; padding: clamp(20px, 2.6vw, 34px); border-radius: 50%; border: 1px solid var(--line-dark);
  background: radial-gradient(closest-side, rgba(240, 215, 154, 0.1), rgba(10, 23, 51, 0)); transition: border-color 0.3s var(--ease); }
.sq-band__mark:hover { border-color: var(--gold-500); }
.sq-band__mark .sq-logo { width: clamp(120px, 14vw, 190px); }
.sq-band__facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 18px; border-top: 1px solid var(--line-dark-2); }
.sq-band__facts li { display: grid; gap: 6px; align-content: start; }
.sq-band__facts b { font: 400 clamp(2.2rem, 1.8rem + 1.6vw, 3rem)/1 var(--serif); color: var(--gold-300); }
.sq-band__facts span { color: var(--on-dark-muted); font-size: 0.93rem; line-height: 1.45; }
.footer__sq { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark-muted); text-decoration: none; font-size: 0.86rem; line-height: 1.35; }
.footer__sq img { width: 40px; height: auto; }
.footer__sq b { display: block; color: var(--on-dark); font-weight: 600; }
.footer__sq:hover b { color: var(--gold-300); }
.sq-callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px 22px; border: 1px solid var(--line);
  border-left: 3px solid var(--gold-600); border-radius: var(--radius-sm); background: var(--mist); }
.sq-callout .sq-logo { width: 54px; }
.sq-callout p { color: var(--slate); }
.sq-callout strong { color: var(--ink); }
@media (max-width: 860px) {
  .sq-hero__in { grid-template-columns: minmax(0, 1fr); }
  .sq-hero__logo { order: -1; width: 104px; }
  .sq-criteria { grid-template-columns: minmax(0, 1fr); }
  .sq-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sq-band__in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sq-band__mark { justify-self: start; padding: 14px; }
  .sq-band__mark .sq-logo { width: 96px; }
  .sq-band__facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sq-band__facts li { grid-template-columns: 64px minmax(0, 1fr); align-items: baseline; gap: 12px; }
  .sq-decl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 520px) {
  .sq-criteria dd { padding-left: 0; }
  .sq-record { grid-template-columns: minmax(0, 1fr); }
  .sq-callout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- left menu: every page one click away (wide screens, as on intcec.org) ---------- */
.side { display: none; }
@media (min-width: 1100px) {
  :root { --side-w: 248px; --masthead-h: 0px; }
  /* campaign pages have no left menu: they keep their top bar */
  html:has(> body.lp) { --masthead-h: 76px; }
  .lp .masthead.lp-bar { display: block; }
  .shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .shell__main { min-width: 0; }
  .ribbon, .masthead { display: none; }
  .side { position: sticky; top: 0; z-index: 30; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 16px;
    padding: 22px 14px 18px 18px; background: var(--night-950); color: var(--on-dark); border-right: 1px solid var(--line-dark-2); overflow: hidden; }
  .side__brand { color: #fff; }
  .side__brand:hover { color: #fff; }
  .side__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin-right: -8px; padding-right: 8px; }
  .side__nav { position: relative; }
  .side__nav::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; border-left: 2px dashed rgba(217, 178, 95, 0.32); }
  .side__group { position: relative; padding: 14px 0 4px 26px; font: 600 0.68rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-500); }
  .side__group:first-child { padding-top: 0; }
  .stops { list-style: none; display: grid; gap: 1px; }
  .stop { position: relative; display: flex; align-items: center; min-height: 34px; padding: 5px 8px 5px 26px; border-radius: 10px;
    color: var(--on-dark-muted); font-size: 0.93rem; font-weight: 500; line-height: 1.25; text-decoration: none; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
  .stop::before { content: ""; position: absolute; left: 2px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
    background: var(--night-950); border: 2px solid rgba(217, 178, 95, 0.6); }
  .stop:hover { color: #fff; background: rgba(240, 215, 154, 0.07); }
  .stop[aria-current="page"] { color: #fff; font-weight: 600; background: rgba(240, 215, 154, 0.1); }
  .stop[aria-current="page"]::before { background: var(--gold-200); border-color: var(--gold-300); box-shadow: 0 0 0 4px rgba(240, 215, 154, 0.16), 0 0 14px rgba(240, 215, 154, 0.7); }
  .side__next { display: grid; gap: 3px; padding: 14px; border-radius: 14px; border: 1px solid rgba(240, 215, 154, 0.22); background: rgba(24, 50, 104, 0.4); }
  .side__label { font: 600 0.66rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-500); }
  .side__next strong { font-size: 0.86rem; font-weight: 600; line-height: 1.3; color: var(--on-dark); }
  .side__when { margin-top: 3px; font: 500 1.5rem/1.1 var(--serif); color: #fff; }
  .side__count { font-size: 0.82rem; font-weight: 600; color: var(--gold-300); }
  .side__count:empty { display: none; }
  .side__next a { margin-top: 4px; font-size: 0.8rem; color: var(--on-dark-muted); }
  .side__next a:hover { color: var(--gold-300); }
  .side__actions { display: grid; gap: 8px; }
  .side__actions .btn { min-height: 44px; padding-block: 10px; }
  .side__social { display: flex; align-items: center; gap: 10px; padding: 2px 2px 0; font: 600 0.66rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); }
  .side__social span { margin-right: auto; }
  .side__social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; transition: transform 0.2s var(--ease); }
  .side__social a:hover { transform: translateY(-1px); }
  .side__social svg { width: 24px; height: 24px; }
  .hero__in { padding-top: clamp(40px, 5vw, 84px); }
  /* the main column is narrower than the window now */
  .hero h1 { font-size: clamp(2.5rem, 0.6rem + 3.6vw, 4.1rem); }
  .split { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
}
@media (min-width: 1100px) and (max-width: 1279px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .focus { max-width: 640px; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
  :root { --side-w: 272px; }
  .side { padding: 24px 16px 20px 22px; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .focus__list > div { grid-template-columns: minmax(0, 1fr); }
  .focus__list dt { grid-row: auto; padding-top: 0; }
}
@media (min-width: 1100px) and (max-height: 760px) {
  .side__next { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .masthead__menu { display: inline-grid; }
  .masthead__actions { margin-left: auto; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .page { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; margin: 0; }
  .toc a.is-active { border-color: var(--gold-600); }
}
@media (max-width: 860px) {
  :root { --masthead-h: 64px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { padding: 18px 16px 18px 0; }
  .facts > div + div { padding-left: 16px; }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n + 3) { border-top: 1px solid var(--line-dark-2); }
  .facts--light > div:nth-child(n + 3) { border-top-color: var(--line); }
  .path { grid-template-columns: minmax(0, 1fr); }
  .path li, .path li + li { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line-dark-2); }
  .madrid { grid-template-columns: minmax(0, 1fr); }
  .help__in { grid-template-columns: minmax(0, 1fr); }
  .help__actions { justify-content: flex-start; }
  .help__side { justify-items: start; }
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .mosaic { grid-auto-rows: 90px; }
  .mosaic figure, .mosaic figure.wide, .mosaic figure.tall { grid-column: span 6; grid-row: span 2; }
  .mosaic figure.wide { grid-column: span 12; }
  .timeline__item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .edition { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .isbn li { grid-template-columns: minmax(0, 1fr) auto; }
  .isbn li span { grid-column: 1 / -1; grid-row: 2; }
  .kv > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .person { grid-template-columns: 88px minmax(0, 1fr); }
  .person img { width: 88px; height: 110px; }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .ribbon__in > a { display: none; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__word { font-size: 1.15rem; }
  .masthead__actions .btn { display: none; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(10, 23, 51, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-dark-2); }
  .dock a, .dock button { display: grid; justify-items: center; gap: 4px; min-height: 52px; padding: 6px 0; border: 0; background: transparent; color: var(--on-dark-muted); font: 600 0.75rem/1 var(--sans); text-decoration: none; border-radius: 12px; }
  .dock svg { width: 22px; height: 22px; }
  .dock [aria-current="page"] { color: var(--gold-300); }
  .dock button { color: var(--gold-300); }
  .helpdock { display: none; }
  .masthead__wa { display: inline-grid; }
  .ribbon__long, .hide-sm { display: none; }
  .ribbon__short { display: inline; }
  .chat-launch { display: none; }
  .chat { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .consent { left: 12px; right: 12px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .hero__in { gap: 22px; }
  .helio { width: 760px; right: -330px; top: -60px; opacity: 0.7; }
  .page-hero .helio { width: 640px; right: -360px; top: -200px; }
  .data th, .data td { padding: 12px 14px; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
}

/* tablets: the phone's quick bar floats above the content; the menu is behind the ☰ button here */
@media (min-width: 721px) and (max-width: 1080px) {
  body { padding-bottom: 92px; }
  .dock { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 45; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: min(560px, calc(100% - 32px)); padding: 6px; border-radius: 20px; background: rgba(10, 23, 51, 0.94); border: 1px solid rgba(240, 215, 154, 0.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 40px -24px rgba(6, 13, 31, 0.7); }
  .dock a, .dock button { display: grid; justify-items: center; gap: 4px; min-height: 52px; padding: 6px 0; border: 0; background: transparent; color: var(--on-dark-muted); font: 600 0.75rem/1 var(--sans); text-decoration: none; border-radius: 14px; }
  .dock a:hover { color: #fff; background: rgba(240, 215, 154, 0.08); }
  .dock svg { width: 22px; height: 22px; }
  .dock [aria-current="page"] { color: var(--gold-300); }
  .dock button { color: var(--gold-300); }
  .chat-launch { display: none; }
  .helpdock { bottom: 92px; }
  .chat { bottom: 92px; height: min(640px, calc(100dvh - 112px)); }
  .consent { bottom: 92px; }
}

/* ---------- motion + print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .ribbon, .masthead, .side, .dock, .helpdock, .chat, .consent, .help, .footer, .helio, .toc { display: none !important; }
  .hero, .page-hero, .band--night { background: none !important; color: #000 !important; }
  body { padding: 0; }
  a { color: #000; }
}
