/* ADN Connect design system.
   Colour provenance: sampled from the official ADN logo (public/brand/adn-logo.webp, copied from the
   ADN website repository) and the website's --adn-brand-green/#00783c, --adn-gold/#f3c347,
   --adn-red/#e84828, --adn-brown/#704020 tokens. Neutrals and tints are documented design choices.
   Fonts: Fraunces (display, OFL) and Geist (UI, OFL), self-hosted. */

@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  /* brand */
  --green-900: #0b3a22; --green-800: #0d4d2c; --green-700: #00783c; --green-600: #16874a; --green-100: #dcefe3; --green-50: #eef7f1;
  --gold-500: #f3c347; --gold-300: #f8dc8c; --gold-100: #fdf3d6;
  --red-600: #b3321a; --red-500: #e84828; --red-100: #fbe3dc;
  --brown-600: #704020; --brown-100: #f1e6db;
  /* neutrals */
  --ink: #111a16; --ink-2: #2d3a33; --muted: #5a6760; --line: #d9dfda; --line-strong: #b9c3bc;
  --paper: #fbfaf6; --ivory: #f5f1e6; --surface: #ffffff; --sidebar: #0d2419;
  /* semantic */
  --ok: #0f6b37; --ok-bg: #e2f2e7; --warn: #7a5200; --warn-bg: #fdf1cf; --bad: #a42b16; --bad-bg: #fbe4de; --info: #1b4f72; --info-bg: #e2eef6;
  --focus: #f3c347;
  /* type & space */
  --font-ui: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --r-sm: 6px; --r: 10px; --r-lg: 18px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --shadow: 0 1px 2px rgba(17,26,22,.06), 0 4px 16px rgba(17,26,22,.06);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--font-ui); color: var(--ink); background: var(--paper); font-feature-settings: "ss01", "tnum" 0; }
img { max-width: 100%; height: auto; }
a { color: var(--green-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-900); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--s3); font-weight: 650; letter-spacing: -.01em; }
h1 { font-family: var(--font-display); font-weight: 560; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem); letter-spacing: -.02em; font-variation-settings: "opsz" 72; }
.h2 { font-size: 1.5rem; } .h3, h2.h3 { font-size: 1.15rem; } .h4 { font-size: 1rem; }
p { margin: 0 0 var(--s3); }
code { font: 500 .86em/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--green-50); padding: .05em .35em; border-radius: 4px; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.small { font-size: .86rem; } .muted { color: var(--muted); }
.text-bad { color: var(--bad); } .text-warn { color: var(--warn); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold-500); color: var(--ink); padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { left: 8px; }
main:focus { outline: none; }

/* ---------- banner ---------- */
.demo-banner { background: repeating-linear-gradient(135deg, #fff2c7 0 14px, #fde8a4 14px 28px); color: #4a3500; border-bottom: 1px solid #e9cf7c; padding: 6px 16px; font-size: .84rem; text-align: center; }
.demo-banner strong { background: #4a3500; color: #fff2c7; padding: 1px 8px; border-radius: 99px; margin-right: 6px; letter-spacing: .06em; }

/* ---------- buttons ---------- */
.btn { --b: var(--line-strong); display: inline-flex; align-items: center; gap: 8px; justify-content: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--b); background: var(--surface); color: var(--ink); font: 600 .92rem/1.2 var(--font-ui); text-decoration: none; cursor: pointer; transition: background .15s var(--ease), border-color .15s, transform .15s var(--ease); }
.btn:hover { border-color: var(--ink-2); color: var(--ink); background: #f6f7f5; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.btn--light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45); color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.2); color: #fff; border-color: #fff; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: rgba(17,26,22,.06); border-color: transparent; }
.btn--sm { min-height: 32px; padding: 4px 12px; font-size: .84rem; }
.btn--lg { min-height: 52px; padding: 12px 26px; font-size: 1.02rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; color: var(--green-700); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- public shell ---------- */
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); padding-block: var(--s6); }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251,250,246,.9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(17,26,22,.08); }
/* Three columns: brand · centred navigation · actions (the menu stays in the true centre of the bar). */
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s5); min-height: 68px; padding-block: 6px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__product { font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.brand__org { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.site-nav { display: flex; gap: clamp(14px, 1.8vw, 28px); min-width: 0; align-items: center; justify-content: center; justify-self: center; }
.site-nav a { position: relative; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .92rem; white-space: nowrap; padding-block: 6px; }
.site-nav a:hover { color: var(--green-700); }
.site-nav a[aria-current="page"] { color: var(--green-800); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--gold-500); }
.site-header__actions .btn { white-space: nowrap; }
.lbl-short { display: none; }
@media (max-width: 1180px) and (min-width: 761px) {
  /* Tablet/laptop: brand + actions on the first row, navigation as one clean row beneath. */
  .site-header__inner { grid-template-columns: auto 1fr; row-gap: 0; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; gap: 22px; padding-bottom: 6px; overflow-x: auto; max-width: 100%; }
  .lbl-long { display: none; } .lbl-short { display: inline; }
}
.site-header__actions { display: flex; align-items: center; gap: var(--s2); justify-self: end; }
.lang-switch button { min-width: 40px; height: 36px; border-radius: 99px; border: 1px solid var(--line-strong); background: transparent; font: 700 .8rem var(--font-ui); letter-spacing: .06em; cursor: pointer; color: inherit; }
.site-footer { margin-top: var(--s8); background: var(--ivory); border-top: 1px solid var(--line); padding-block: var(--s6); }
.site-footer__inner { display: grid; gap: var(--s4); grid-template-columns: 1.4fr 1fr; align-items: start; }
.site-footer__inner > div { display: flex; gap: 12px; align-items: flex-start; }
.site-footer__inner img { width: 36px; height: 36px; flex: none; object-fit: contain; }
@media (max-width: 760px) {
  .site-header { position: static; }
  .site-header__inner { grid-template-columns: auto 1fr; gap: var(--s2) var(--s3); min-height: 0; padding-block: 10px; }
  .lbl-long { display: none; } .lbl-short { display: inline; }
  .brand__org { display: none; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: flex-start; width: 100%; overflow-x: auto; gap: var(--s4); font-size: .9rem; padding-bottom: 2px; }
  .site-nav a { white-space: nowrap; }
  .site-header__actions { gap: 6px; }
  .site-header__actions .btn--ghost { display: none; }
  .site-header__actions .btn--primary { min-height: 36px; padding: 6px 14px; font-size: .86rem; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- hero (public) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 85% 10%, #1c6b43 0%, #0d4d2c 35%, #07281a 80%); min-height: min(88vh, 760px); display: grid; align-items: end; }
.hero__scene { position: absolute; inset: 0; z-index: -1; }
.hero__scene canvas, .hero__fallback { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,40,26,0) 30%, rgba(7,40,26,.85) 100%); pointer-events: none; }
.hero__inner { padding-block: var(--s8) var(--s7); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--gold-300); margin-bottom: var(--s4); }
.display { font-family: var(--font-display); font-weight: 480; font-size: clamp(2.4rem, 1.3rem + 4.6vw, 5.2rem); line-height: 1.02; letter-spacing: -.035em; max-width: 16ch; margin-bottom: var(--s5); font-variation-settings: "opsz" 144, "SOFT" 50; color: #fff; }
.hero__lead { max-width: 60ch; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: rgba(255,255,255,.86); margin-bottom: var(--s6); }
.hero__cta { display: flex; gap: var(--s3); flex-wrap: wrap; }
.motion-toggle { margin-top: var(--s5); background: transparent; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 4px 12px; font: 500 .78rem var(--font-ui); cursor: pointer; }
.motion-toggle[hidden] { display: inline-block; visibility: hidden; } /* reserve space: no layout shift when the scene loads */
.hero__fallback[hidden] { display: block; visibility: hidden; }
.section-title { font-family: var(--font-display); font-weight: 520; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); letter-spacing: -.02em; margin: var(--s8) 0 var(--s6); max-width: 22ch; }
.journey__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.journey__step { padding: var(--s5) var(--s5) var(--s6) 0; border-bottom: 1px solid var(--line); position: relative; }
.journey__step:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.journey__step:not(:nth-child(3n+1)) { padding-left: var(--s5); }
.journey__num { font-family: var(--font-display); font-size: 2.6rem; color: var(--green-700); font-weight: 400; line-height: 1; display: block; margin-bottom: var(--s3); font-variation-settings: "opsz" 144; }
.journey__step h3 { font-size: 1.12rem; }
.journey__step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .journey__steps { grid-template-columns: 1fr; } .journey__step { border-right: 0 !important; padding-left: 0 !important; } }
.principles { margin-bottom: var(--s8); }
.prose-page { padding-block: var(--s6); }

/* ---------- workspace shell ---------- */
body.app { background: #f4f5f2; }
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar); color: #dfe8e2; padding: var(--s4) var(--s3); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand--app { color: #fff; padding: 4px 6px var(--s4); border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: var(--s3); width: 100%; }
.brand--app .brand__org { color: #9fb5a8; }
.brand--app img { width: 40px; height: 40px; }
.nav-disclosure > summary { display: none; }
.nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav a { display: block; padding: 9px 12px; border-radius: 8px; color: #cfdcd4; text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a[aria-current="page"] { background: var(--green-700); color: #fff; box-shadow: inset 3px 0 0 var(--gold-500); }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: 10px var(--s6); background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.topbar__user { display: flex; align-items: center; gap: var(--s3); }
.who { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.crumbs { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; font-size: .86rem; color: var(--muted); flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.content { padding: var(--s6); max-width: 1320px; width: 100%; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: var(--s2) var(--s3); }
  .nav-disclosure > summary { display: block; list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,.07); color: #fff; font-weight: 600; }
  .nav-disclosure:not([open]) nav { display: none; }
  .brand--app { border: 0; margin: 0; }
  .content { padding: var(--s4); }
  .topbar { padding: 8px var(--s4); }
  .who { display: none; }
}

/* ---------- page components ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.page-head .lead { color: var(--muted); max-width: 80ch; margin: 0; }
.page-head__actions { display: flex; gap: var(--s2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); margin-bottom: var(--s4); box-shadow: 0 1px 0 rgba(17,26,22,.02); }
.card--quiet { box-shadow: none; background: #fafbf9; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.card > details > summary, details.card > summary { cursor: pointer; font-weight: 600; }
details > summary { cursor: pointer; }
.grid-2 { display: grid; gap: var(--s4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: var(--s3); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.stats { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-bottom: var(--s5); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-height: 96px; }
.stat__value { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; font-weight: 520; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.stat__note { font-size: .75rem; color: var(--muted); }
.stat--key { border-color: var(--green-700); background: linear-gradient(180deg, var(--green-50), #fff); box-shadow: inset 0 3px 0 var(--green-700); }
.stat--warn { box-shadow: inset 0 3px 0 var(--gold-500); } .stat--bad { box-shadow: inset 0 3px 0 var(--red-500); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .76rem; font-weight: 600; line-height: 1.5; white-space: nowrap; border: 1px solid transparent; }
.badge--ok { background: var(--ok-bg); color: var(--ok); } .badge--warn { background: var(--warn-bg); color: var(--warn); } .badge--bad { background: var(--bad-bg); color: var(--bad); } .badge--neutral { background: #eceeea; color: var(--ink-2); }
.state-axes { display: flex; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s5); padding: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.state-axes > div { display: flex; flex-direction: column; gap: 3px; padding-right: var(--s3); border-right: 1px solid var(--line); }
.state-axes > div:last-child { border: 0; }
.tabs { display: flex; gap: 4px; margin-bottom: var(--s4); overflow-x: auto; border-bottom: 1px solid var(--line); position: sticky; top: 57px; background: #f4f5f2; z-index: 5; padding-top: 4px; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { border-color: var(--green-700); color: var(--green-700); }
.alert { border-radius: var(--r); padding: 12px 16px; margin-bottom: var(--s4); border: 1px solid; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert--success { background: var(--ok-bg); border-color: #b6dcc2; color: #0b4e28; }
.alert--error { background: var(--bad-bg); border-color: #efb9aa; color: #7c200f; }
.alert--warn { background: var(--warn-bg); border-color: #efd78e; color: #5d3f00; }
.alert--info { background: var(--info-bg); border-color: #bfd6e6; color: #163f5b; }
.empty { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: var(--s5); text-align: center; color: var(--muted); background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(17,26,22,.015) 10px 20px); }
.empty p { margin: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: var(--s4); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table caption { text-align: left; font-weight: 650; padding: 12px 14px 4px; caption-side: top; }
.table th, .table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #eef0ec; }
.table thead th { position: sticky; top: 0; background: #f7f8f5; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; z-index: 1; }
.table tbody tr:hover { background: #fafbf8; }
.table tbody th { font-weight: 600; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tfoot th, .table tfoot td { border-top: 2px solid var(--line); }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: 6px; }
.field > label, fieldset.field > legend { font-weight: 600; font-size: .94rem; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field__help { color: var(--muted); font-size: .85rem; margin: 0; }
.field__error { color: var(--bad); font-weight: 600; font-size: .88rem; margin: 0; }
.field__error::before { content: "⚠ "; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--red-500); box-shadow: 0 0 0 3px var(--red-100); }
.req { color: var(--red-600); margin-left: 2px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="password"], input:not([type]), select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--font-ui); transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 88px; }
input:focus, select:focus, textarea:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px var(--green-100); outline: none; }
.input--num { max-width: 90px; }
.choices { display: grid; gap: 6px; }
.choices--inline { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.choices--cols { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.choice { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; font-weight: 400; }
.choice input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green-700); flex: none; }
.choice--block { display: flex; padding: 12px 14px; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; }
.form-actions { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.form-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.form-inline input, .form-inline select { width: auto; min-height: 34px; padding: 5px 10px; font-size: .88rem; }
.filters { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: flex-end; }
.filters label { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.filters select, .filters input { min-width: 150px; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(244,245,242,.95); padding: 12px 0; border-top: 1px solid var(--line); }
.notice { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.notice summary { font-weight: 600; }
.resume-link { margin-top: var(--s4); }

/* stepper */
.stepper ol { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0 0 var(--s5); overflow-x: auto; }
.stepper li { flex: 1; min-width: 44px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: .74rem; color: var(--muted); }
.stepper li::before { content: ""; display: block; height: 4px; width: 100%; border-radius: 99px; background: var(--line); }
.stepper li.done::before { background: var(--green-700); } .stepper li.current::before { background: var(--gold-500); }
.stepper li.current { color: var(--ink); font-weight: 650; }
.stepper__n { display: none; }
@media (max-width: 700px) { .stepper__l { display: none; } .stepper li.current .stepper__l { display: inline; } }

/* review, receipt, checklists */
.dl { margin: 0; } .dl dt { font-weight: 600; font-size: .85rem; color: var(--muted); margin-top: 8px; } .dl dd { margin: 2px 0 0; }
.dl--grid { display: grid; grid-template-columns: minmax(180px, 34%) 1fr; gap: 6px 16px; } .dl--grid dt { margin: 0; } .dl--grid dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .dl--grid { grid-template-columns: 1fr; } .dl--grid dd { margin-bottom: 8px; } }
.review-block__head { display: flex; justify-content: space-between; align-items: baseline; }
.receipt__card { text-align: center; border-top: 4px solid var(--green-700); }
.receipt__code { font-family: var(--font-display); font-size: clamp(1.8rem, 1rem + 3vw, 2.8rem); letter-spacing: .02em; margin: 4px 0; color: var(--green-800); }
.ticks { padding-left: 1.2em; } .ticks li { margin-bottom: 4px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist__item { display: flex; justify-content: space-between; gap: var(--s4); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; flex-wrap: wrap; }
.checklist__main { display: flex; gap: 14px; align-items: flex-start; flex: 1; min-width: 240px; }
.checklist__n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #eceeea; font-weight: 700; flex: none; }
.checklist__item.is-done .checklist__n { background: var(--green-700); color: #fff; }
.checklist__title { font-weight: 600; margin: 0; }
.list { padding-left: 1.2em; }

/* campus */
.module-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.module-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); display: grid; gap: 8px; position: relative; overflow: hidden; }
.module-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--green-700), var(--gold-500)); }
.module-card__code { font: 700 .74rem/1 var(--font-ui); letter-spacing: .12em; color: var(--green-700); margin: 0; }
progress.progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 99px; background: #eceeea; overflow: hidden; }
progress.progress::-webkit-progress-bar { background: #eceeea; border-radius: 99px; }
progress.progress::-webkit-progress-value { background: var(--green-700); border-radius: 99px; }
progress.progress::-moz-progress-bar { background: var(--green-700); border-radius: 99px; }
.prose { max-width: 72ch; } .prose table { border-collapse: collapse; margin: 12px 0; } .prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.prose .note { background: var(--gold-100); padding: 8px 12px; border-radius: 8px; }
.lesson { border-left: 4px solid var(--green-100); }
blockquote { margin: 8px 0; padding: 8px 14px; border-left: 3px solid var(--line-strong); background: #fafbf9; }
.message-preview { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); margin-bottom: var(--s3); }
.message-body { background: #fafbf9; border-radius: 8px; padding: 12px; font: 400 .88rem/1.5 var(--font-ui); max-height: 260px; overflow: auto; }
.notes { list-style: none; padding: 0; } .notes li { border-left: 3px solid var(--gold-500); padding: 6px 12px; margin-bottom: 8px; background: #fffdf5; }

/* D360 */
.d360-q { display: grid; grid-template-columns: minmax(200px, 1fr) auto; gap: 8px 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eef0ec; }
.d360-q__note { grid-column: 1 / -1; }
.scale { display: flex; gap: 4px; flex-wrap: wrap; }
.scale__opt { position: relative; }
.scale__opt input { position: absolute; opacity: 0; inset: 0; }
.scale__opt span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 650; font-variant-numeric: tabular-nums; cursor: pointer; background: #fff; }
.scale__opt input:checked + span { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.scale__opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.scale__opt--wide span { font-weight: 500; font-size: .82rem; }
@media (max-width: 700px) { .d360-q { grid-template-columns: 1fr; } }
meter { width: 140px; height: 10px; }
.orientation { margin-top: var(--s4); border-top: 1px solid var(--line); padding-top: var(--s4); }
.suggestions { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.suggestion { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.suggestion--suggested { border-color: #9fd0b0; background: var(--green-50); }
.suggestion ul { padding-left: 1.1em; margin: 6px 0 0; }

/* cohorts */
.cohort-cards { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.capacity { margin: var(--s2) 0; } .capacity__num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 500; color: var(--green-800); }
.cohort-card meter { width: 100%; }
.cohort-list { padding-left: 1.2em; }

/* chips */
.chip-form { display: inline-flex; align-items: center; margin: 2px 4px 2px 0; }
.chip { background: #eceeea; border-radius: 99px 0 0 99px; padding: 2px 8px; font-size: .78rem; }
.chip-x { border: 0; background: #dde1dc; border-radius: 0 99px 99px 0; padding: 2px 8px; cursor: pointer; font-weight: 700; }
.pager { display: flex; gap: 12px; }
.secret { font-size: 1.1rem; letter-spacing: .12em; }

/* motion — progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
  .card, .stat { animation: rise .35s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .sidebar, .topbar, .demo-banner, .form-actions, form { display: none !important; } .shell { display: block; } body { background: #fff; } }
@media (forced-colors: active) { .badge, .btn { border: 1px solid CanvasText; } }

/* ---------------- Le Carrefour vivant (spatial entrance) ----------------
   Night-green stage, ivory editorial panel, gold thread. The panel and rail are the accessible,
   complete interface; the canvas and its tags are an enhancement layered underneath. */
.carrefour-page { background: #0f0d0b; }
.carrefour { --cf-ink: #f6efe0; --cf-gold: #f3c347; position: relative; min-height: calc(100vh - 104px); min-height: calc(100svh - 104px); overflow: hidden; color: var(--cf-ink);
  background: radial-gradient(70% 60% at 62% 48%, #3a2e22 0%, #241d17 32%, #16130f 62%, #0d0b09 100%); isolation: isolate; }
.carrefour::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
.cf-stage { position: absolute; inset: 0; z-index: 0; }
.cf-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s var(--ease); touch-action: manipulation; }
.cf--3d .cf-canvas { opacity: 1; }
.cf-layout { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(300px, 440px) 1fr auto; align-items: start; gap: var(--s6); padding: clamp(20px, 4vh, 44px) clamp(16px, 3vw, 44px); min-height: inherit; pointer-events: none; }
.cf-layout > * { pointer-events: auto; }
.cf-panel { grid-column: 1; background: #fbf7ee; color: var(--ink); border-radius: 22px; padding: clamp(22px, 2.6vw, 34px); box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(243,195,71,.25); max-height: calc(100svh - 190px); overflow: auto; }
.cf-panel[aria-busy="true"] { opacity: .72; transition: opacity .2s; }
.cf-kicker { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brown-600); font-weight: 650; }
.cf-back { color: var(--green-700); text-decoration: none; }
.cf-back:hover { text-decoration: underline; }
.cf-lock { color: var(--red-600); }
.cf-title { font-family: var(--font-display); font-weight: 560; font-size: clamp(30px, 3vw, 44px); line-height: 1.02; letter-spacing: -.035em; margin: 0; outline: none; }
.cf-role { margin: 10px 0 0; font-family: var(--font-display); font-style: italic; color: var(--green-700); font-size: 18px; }
.cf-promise { margin: 14px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.cf-actions { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.cf-action__link { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; background: #fff; transition: border-color .2s, box-shadow .2s; }
a.cf-action__link::after { content: "\2192"; grid-column: 2; grid-row: 1 / span 3; align-self: center; color: var(--green-700); font-size: 18px; transition: transform .2s var(--ease); }
a.cf-action__link:hover { border-color: var(--green-700); box-shadow: 0 6px 18px rgba(11,58,34,.12); }
a.cf-action__link:hover::after { transform: translateX(3px); }
.cf-action__label { font-weight: 650; }
.cf-action__detail { grid-column: 1; font-size: 14px; color: var(--muted); }
.cf-action__state { grid-column: 1; justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brown-600); background: var(--brown-100); padding: 2px 8px; border-radius: 999px; margin-top: 4px; }
.cf-action--primary .cf-action__link { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.cf-action--primary .cf-action__link::after { color: var(--cf-gold); }
.cf-action--primary .cf-action__detail { color: #cfe6d7; }
.cf-action--primary .cf-action__state { background: rgba(255,255,255,.14); color: #fff; }
.cf-action--in_construction .cf-action__link, .cf-action--restricted .cf-action__link { background: var(--ivory); border-style: dashed; color: var(--ink-2); }
.cf-source { margin-top: 18px; font-size: 14px; color: var(--muted); }
.cf-source summary { cursor: pointer; color: var(--green-700); font-weight: 600; }
.cf-index { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 6px; }
.cf-index a { display: grid; grid-template-columns: 52px 1fr; gap: 0 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.cf-index a:hover { border-color: var(--line-strong); background: #fff; }
.cf-index__code { grid-row: 1 / span 2; font-family: var(--font-display); font-size: 22px; color: var(--brown-600); }
.cf-index__name { font-weight: 650; }
.cf-index__role { font-size: 13px; color: var(--muted); }
.cf-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cf-cta .btn--light { color: var(--green-800); border-color: var(--green-700); background: transparent; }

.cf-rail { grid-column: 3; align-self: center; }
.cf-rail ol { list-style: none; margin: 0; padding: 10px; display: grid; gap: 2px; background: rgba(20,17,13,.7); border: 1px solid rgba(243,195,71,.2); border-radius: 18px; backdrop-filter: blur(8px); }
.cf-rail a { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: 10px; color: var(--cf-ink); text-decoration: none; font-size: 14px; white-space: nowrap; }
.cf-rail a:hover { background: rgba(243,195,71,.12); }
.cf-rail a[aria-current="page"] { background: var(--cf-gold); color: #13200f; font-weight: 700; }
.cf-rail__code { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(243,195,71,.55); font-size: 11px; font-weight: 700; flex: none; }
.cf-rail a[aria-current="page"] .cf-rail__code { border-color: #13200f; }

.cf-controls { position: absolute; z-index: 4; right: clamp(16px, 3vw, 44px); bottom: 18px; display: flex; gap: 12px; align-items: center; flex-direction: row-reverse; }
.cf-control { background: rgba(20,17,13,.75); color: var(--cf-ink); border: 1px solid rgba(243,195,71,.35); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.cf-control:hover { border-color: var(--cf-gold); }
.cf-status { margin: 0; font-size: 13px; color: #e9dfcf; }

/* 2D plan: full view without WebGL (and while it loads), minimap once the world runs. */
.cf-plan-wrap { position: absolute; z-index: 2; right: clamp(220px, 20vw, 300px); top: 50%; transform: translateY(-50%); width: min(34vw, 420px); }
.cf--3d .cf-plan-wrap { top: 18px; bottom: auto; transform: none; width: 64px; right: clamp(16px, 3vw, 44px); opacity: .9; }
.cf-plan { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
.cf-plan__suite { fill: #efe6d3; stroke: #fbf7ee; stroke-width: 2; }
.cf-plan__room rect { fill: #d9c29d; stroke: #fbf7ee; stroke-width: 1.6; transition: fill .3s; }
.cf-plan__room.is-closed rect { fill: #e2d8c4; }
.cf-plan__corridor rect { fill: #e8dcc2; }
.cf-plan__room:hover rect { fill: #ecd9a8; }
.cf-plan__room.is-current rect { fill: var(--cf-gold); }
.cf-plan__thread, .cf-plan__branch { fill: none; stroke: #c9951f; stroke-width: 1.6; stroke-linecap: round; }
.cf-plan__num { font: 700 8px var(--font-ui); fill: #4a3218; text-anchor: middle; pointer-events: none; }
.cf--3d .cf-plan__num { display: none; }

/* Projected tags over the canvas (pointer shortcuts; the rail is the accessible navigation). */
.cf-tags { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.cf-tag { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px; border-radius: 999px; border: 1px solid rgba(243,195,71,.45); background: rgba(20,17,13,.74); color: #f6efe0; font: 600 12px var(--font-ui); cursor: pointer; white-space: nowrap; backdrop-filter: blur(6px); transition: background .25s, color .25s, opacity .25s; will-change: transform; }
.cf-tag__code { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(243,195,71,.18); font-size: 10px; }
.cf-tag.is-current, .cf-tag.is-hover { background: var(--cf-gold); color: #13200f; }
.cf-tag.is-current .cf-tag__code { background: rgba(19,32,15,.15); }
.cf-tag--restricted { border-style: dashed; }
.cf-tag.is-off { opacity: 0; pointer-events: none; }
.carrefour:not([data-zone="circulation"]) .cf-tag:not(.is-current):not(.is-hover) { opacity: .62; }
.cf--plan .cf-tags { display: none; }

@media (max-width: 1100px) {
  .cf-layout { grid-template-columns: minmax(280px, 400px) 1fr; }
  .cf-rail { grid-column: 1 / -1; align-self: end; }
  .cf-rail ol { display: flex; flex-wrap: wrap; }
  .cf-plan-wrap { right: 4vw; width: min(40vw, 360px); }
}
@media (max-width: 760px) {
  .carrefour { min-height: 0; display: flex; flex-direction: column; }
  .cf-stage { position: relative; inset: auto; height: 56svh; min-height: 320px; order: 1; }
  .carrefour:not(.cf--3d) .cf-stage { display: none; }
  .cf-plan-wrap { position: relative; order: 1; width: min(70vw, 300px); margin: 18px auto 0; right: auto; top: auto; transform: none; }
  .cf--3d .cf-plan-wrap { display: none; }
  .cf-layout { order: 2; display: flex; flex-direction: column; padding: 0 16px 72px; gap: 16px; margin-top: -40px; }
  .carrefour:not(.cf--3d) .cf-layout { margin-top: 16px; }
  .cf-panel { max-height: none; border-radius: 20px; }
  .cf-rail ol { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; }
  .cf-rail a { scroll-snap-align: start; }
  .cf-controls { top: 12px; bottom: auto; left: 12px; right: auto; }
  .cf-tag { font-size: 11px; }
  .cf-tag__name { display: none; }
  .cf-tag.is-current .cf-tag__name { display: inline; }
}

.cf-title--arrival { font-size: clamp(34px, 3.6vw, 54px); }
.cf-title--arrival em { display: block; margin-top: 4px; font-style: italic; font-weight: 450; color: var(--green-700); font-size: .8em; letter-spacing: -.03em; }
.cf-panel--arrival .cf-cta { margin-top: 22px; }
.cf-panel--arrival .cf-cta .btn--lg { flex: 1 1 auto; justify-content: center; }
.cf-arrival-links { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.cf-arrival-links a { color: var(--green-700); }
.cf-after { background: var(--paper); color: var(--ink); padding-block: var(--s8) var(--s7); position: relative; z-index: 3; }
.cf-after .section-title { color: var(--ink); }

/* Living backdrop without WebGL: two slow warm lights drift behind the plan. */
.carrefour::before { content: ""; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(35% 30% at 30% 40%, rgba(201,138,61,.16), transparent 70%), radial-gradient(30% 28% at 75% 65%, rgba(243,195,71,.10), transparent 70%);
  animation: cf-drift 38s ease-in-out infinite alternate; }
.cf--3d.carrefour::before { display: none; }
@keyframes cf-drift { from { transform: translate3d(-3%, -2%, 0) rotate(0deg); } to { transform: translate3d(4%, 3%, 0) rotate(8deg); } }

/* Free 3D handling and walk mode */
.cf-controls { flex-wrap: wrap; justify-content: flex-end; max-width: min(760px, 60vw); }
.cf-control--walk { border-color: rgba(63,224,138,.55); }
.cf-control--walk[aria-pressed="true"] { background: #3fe08a; color: #0b2014; border-color: #3fe08a; font-weight: 700; }
.cf-control:disabled { opacity: .45; cursor: not-allowed; }
.cf-hint { margin: 0; font-size: 12px; color: #d8cdbb; background: rgba(20,17,13,.62); border: 1px solid rgba(243,195,71,.18); padding: 6px 10px; border-radius: 10px; }
.cf-pad { position: absolute; z-index: 5; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(2, 48px); gap: 6px; }
.cf-pad[hidden] { display: none; }
.cf-pad button { border-radius: 14px; border: 1px solid rgba(63,224,138,.5); background: rgba(10,22,15,.72); color: #c9f5da; font-size: 20px; cursor: pointer; touch-action: none; user-select: none; }
.cf-pad button:active { background: rgba(63,224,138,.35); }
.cf-pad__fwd { grid-column: 2; grid-row: 1; } .cf-pad__left { grid-column: 1; grid-row: 2; } .cf-pad__back { grid-column: 2; grid-row: 2; } .cf-pad__right { grid-column: 3; grid-row: 2; }
.cf--walking .cf-tags, .cf--walking .cf-plan-wrap { display: none; }
.cf--walking .cf-canvas { cursor: grab; }
.cf--walking .cf-canvas:active { cursor: grabbing; }
@media (max-width: 760px) { .cf-hint { display: none; } .cf-controls { max-width: none; } }

/* Walk mode: the direction pad is for touch; mouse/keyboard users walk with the keys. The panel shrinks. */
@media (hover: hover) and (pointer: fine) { .cf-pad { display: none; } }
.cf--walking .cf-panel { max-width: 340px; padding: 18px 20px; }
.cf--walking .cf-panel .cf-promise, .cf--walking .cf-panel .cf-source, .cf--walking .cf-panel .cf-role, .cf--walking .cf-panel .cf-action:not(.cf-action--primary) { display: none; }
.cf--walking .cf-title { font-size: 26px; }
.cf--walking .cf-rail { opacity: .5; transition: opacity .3s; } .cf--walking .cf-rail:hover { opacity: 1; }

.cf-scroll-cue { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--green-700); text-decoration: none; }
.cf-scroll-cue:hover { text-decoration: underline; }

/* Down arrow at the foot of the home hero: the wheel zooms the model there, so this carries the visitor
   past it. Translucent glass, quiet until hovered; a slow nudge downwards (off with reduced motion). */
.cf-next { position: absolute; z-index: 4; left: 50%; bottom: 22px; width: 52px; height: 52px; margin-left: -26px;
  display: grid; place-items: center; border-radius: 50%; color: #f6efe0; text-decoration: none;
  background: linear-gradient(160deg, rgba(246,239,224,.20), rgba(246,239,224,.07)); border: 1px solid rgba(243,195,71,.55);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 8px 24px rgba(0,0,0,.32), 0 0 0 6px rgba(243,195,71,.06), inset 0 1px 0 rgba(255,244,220,.18);
  opacity: .92; transition: opacity .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.cf-next svg { animation: cf-nudge 2.4s ease-in-out infinite; }
.cf-next:hover, .cf-next:focus-visible { opacity: 1; background: rgba(246,239,224,.24); border-color: rgba(243,195,71,.85); color: #fff; transform: translateY(2px); }
.cf-next:focus-visible { outline: 2px solid #f3c347; outline-offset: 3px; }
@keyframes cf-nudge { 0%, 60%, 100% { transform: translateY(-2px); } 30% { transform: translateY(3px); } }
.cf--walking .cf-next { display: none; }
@media (max-width: 760px) { .cf-next { display: none; } }

.cf-plan__desk { fill: #8a6a4a; }
.cf-plan__door { stroke: #efe6d3; stroke-width: 5; }

/* =====================================================================
   Public content system: grouped navigation, page hero, reading layout,
   section kinds, module catalogue, footer sitemap.
   ===================================================================== */

/* ---------- grouped navigation ---------- */
.site-nav { gap: clamp(4px, .8vw, 12px); }
.site-nav > a, .nav-group > summary { position: relative; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .93rem; white-space: nowrap; padding: 8px 10px; border-radius: 999px; cursor: pointer; transition: background .15s var(--ease), color .15s; }
.site-nav > a:hover, .nav-group > summary:hover, .nav-group[open] > summary { background: rgba(0,120,60,.07); color: var(--green-800); }
.site-nav > a[aria-current="page"], .nav-group > summary[data-current] { color: var(--green-800); }
.site-nav > a[aria-current="page"]::after, .nav-group > summary[data-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold-500); }
.site-nav a[aria-current="page"]::after { left: 12px; right: 12px; }
.nav-group { position: relative; }
.nav-group > summary { list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group__chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); opacity: .7; }
.nav-group[open] .nav-group__chev { transform: rotate(180deg); }
.nav-panel { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; z-index: 40; width: min(380px, 92vw); padding: 8px; background: var(--surface); border: 1px solid rgba(17,26,22,.08); border-radius: 16px; box-shadow: 0 18px 48px -12px rgba(11,58,34,.28), 0 2px 6px rgba(17,26,22,.06); animation: nav-in .18s var(--ease); }
.nav-panel::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; } /* hover bridge */
.nav-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-panel a { display: grid; gap: 1px; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.nav-panel a strong { font-weight: 600; font-size: .95rem; }
.nav-panel a span { font-size: .82rem; color: var(--muted); }
.nav-panel a:hover, .nav-panel a:focus-visible { background: var(--green-50); }
.nav-panel a[aria-current="page"] { background: var(--gold-100); }
.nav-panel a[aria-current="page"] strong { color: var(--green-800); }
@keyframes nav-in { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 1180px) and (min-width: 761px) { .site-nav { gap: 4px; overflow: visible; } }
@media (max-width: 760px) {
  .site-nav { overflow-x: auto; gap: 2px; }
  .site-nav > a, .nav-group > summary { padding: 8px 10px; font-size: .9rem; }
  .nav-group { position: static; }
  .nav-panel { position: fixed; left: 12px; right: 12px; translate: none; width: auto; top: 120px; max-height: calc(100vh - 140px); overflow: auto; }
}

/* ---------- small atoms ---------- */
.btn--gold { background: var(--gold-500); border-color: var(--gold-500); color: #2a1d00; }
.btn--gold:hover { background: #f7cf5f; border-color: #f7cf5f; color: #2a1d00; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font: 600 .72rem/1.5 var(--font-ui); letter-spacing: .02em; background: #eef1ee; color: var(--ink-2); border: 1px solid transparent; vertical-align: middle; white-space: nowrap; }
.tag--proposed { background: var(--warn-bg); color: var(--warn); border-color: #f0dc9c; }
.tag--proposed::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.tag--demo { background: var(--info-bg); color: var(--info); }
.tag--ok { background: var(--ok-bg); color: var(--ok); }
.code-chip { display: inline-block; font: 650 .74rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .02em; padding: 4px 7px; border-radius: 6px; background: var(--green-900); color: var(--gold-300); text-decoration: none; vertical-align: 2px; }
a.code-chip:hover { background: var(--green-700); color: #fff; }
.code-chip--quiet { background: var(--green-50); color: var(--green-800); }
.code-link { font: 600 .9em ui-monospace, SFMono-Regular, Consolas, monospace; white-space: nowrap; }

/* ---------- page hero ---------- */
.ph { --acc: var(--gold-500); --acc-glow: rgba(243,195,71,.22); position: relative; isolation: isolate; overflow: hidden; color: #fff; background:
  radial-gradient(60% 90% at 88% 0%, var(--acc-glow), transparent 60%),
  radial-gradient(50% 70% at 0% 100%, rgba(22,135,74,.35), transparent 70%),
  linear-gradient(160deg, #0d4d2c 0%, #0b3a22 45%, #07281a 100%); }
.ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 1; background:
  repeating-linear-gradient(90deg, var(--gold-500) 0 22px, var(--green-700) 22px 30px, #efe6d3 30px 34px, var(--red-500) 34px 42px, var(--green-900) 42px 50px); opacity: .9; }
.ph--green { --acc: #6fd39b; --acc-glow: rgba(111,211,155,.2); }
.ph--teal { --acc: #72d6d0; --acc-glow: rgba(64,190,190,.22); }
.ph--red { --acc: #ff9a7a; --acc-glow: rgba(232,72,40,.22); }
.ph--gold { --acc: var(--gold-500); }
.ph__inner { padding-block: clamp(28px, 4vw, 44px) clamp(40px, 6vw, 72px); }
.ph__crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 clamp(24px, 4vw, 44px); font-size: .82rem; }
.ph__crumbs li { color: rgba(255,255,255,.6); }
.ph__crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255,255,255,.3); }
.ph__crumbs a { color: rgba(255,255,255,.78); text-decoration: none; }
.ph__crumbs a:hover { color: #fff; text-decoration: underline; }
.ph__eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 650; color: var(--acc); margin-bottom: var(--s3); }
.ph__title { font-family: var(--font-display); font-weight: 460; font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.2rem); line-height: 1.03; letter-spacing: -.035em; max-width: 20ch; color: #fff; margin: 0 0 var(--s4); font-variation-settings: "opsz" 144, "SOFT" 50; text-wrap: balance; }
.ph__lead { max-width: 64ch; font-size: clamp(1.02rem, .95rem + .35vw, 1.22rem); color: rgba(255,255,255,.84); margin-bottom: var(--s5); text-wrap: pretty; }
.ph__status { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: baseline; max-width: 72ch; padding: 10px 14px; border-radius: 12px; background: rgba(243,195,71,.12); border: 1px solid rgba(243,195,71,.35); color: #fbe7ae; font-size: .9rem; margin-bottom: var(--s5); }
.ph__status strong { color: #2a1d00; background: var(--gold-500); padding: 1px 8px; border-radius: 99px; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.ph__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }
.ph__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; margin: 0; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); max-width: 980px; }
.ph__facts > div { padding: 16px 18px; background: rgba(7,40,26,.55); backdrop-filter: blur(6px); }
.ph__facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.62); margin-bottom: 4px; }
.ph__facts dd { margin: 0; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; color: #fff; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ph__fact-note { margin: 6px 0 0; font-size: .8rem; color: rgba(255,255,255,.6); }

/* ---------- reading layout ---------- */
body.content-page { background: var(--paper); }
body.content-page .site-footer { margin-top: 0; }
.c-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding-block: clamp(32px, 5vw, 64px); align-items: start; }
.c-layout--module { grid-template-columns: minmax(0, 1fr) 300px; }
.c-body { min-width: 0; max-width: 880px; }
.c-body--solo { max-width: none; padding-block: clamp(32px, 5vw, 64px); }
.c-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; padding-right: 8px; }
.c-toc__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 650; margin-bottom: var(--s3); }
.c-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); counter-reset: toc; }
.c-toc li { counter-increment: toc; }
.c-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .86rem; line-height: 1.35; transition: color .15s, border-color .15s; }
.c-toc a::before { content: counter(toc, decimal-leading-zero) "  "; font-variant-numeric: tabular-nums; color: var(--line-strong); font-size: .76rem; white-space: pre; }
.c-toc a:hover { color: var(--ink); }
.c-toc a[aria-current] { color: var(--green-800); border-left-color: var(--gold-500); font-weight: 600; }
@media (max-width: 960px) {
  .c-layout, .c-layout--module { grid-template-columns: 1fr; }
  .c-toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface); }
  .c-toc ol { columns: 2; column-gap: 24px; border-left: 0; }
  .c-toc a { padding-left: 0; border-left: 0; break-inside: avoid; }
}
@media (max-width: 560px) { .c-toc ol { columns: 1; } }

/* ---------- sections ---------- */
.cs { scroll-margin-top: 96px; padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.cs:first-child { border-top: 0; padding-top: 0; }
.cs__head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: baseline; margin-bottom: var(--s5); }
.cs__num { font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--green-700); font-variant-numeric: tabular-nums; min-width: 2ch; padding-top: 4px; }
.cs__title { font-family: var(--font-display); font-weight: 520; font-size: clamp(1.45rem, 1.15rem + 1vw, 2rem); letter-spacing: -.02em; line-height: 1.15; margin: 0; text-wrap: balance; }
.cs__intro { color: var(--muted); margin: var(--s3) 0 0; max-width: 70ch; font-size: 1.02rem; }
.c-prose { max-width: 70ch; font-size: 1.04rem; line-height: 1.7; color: var(--ink-2); }
.c-prose p { margin-bottom: var(--s4); }
.c-prose p:first-child::first-line { color: var(--ink); }

.c-callout { position: relative; border-radius: 14px; padding: 18px 20px 18px 22px; background: var(--info-bg); border: 1px solid #c8dcea; color: #173d57; }
.c-callout::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: currentColor; opacity: .6; }
.c-callout p:last-child { margin-bottom: 0; }
.c-callout--warn { background: var(--warn-bg); border-color: #f0dc9c; color: #5f4000; }
.c-callout--note { background: var(--ivory); border-color: #e6dcc6; color: var(--ink-2); }

.c-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.c-highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.c-highlights li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold-500); }
.c-highlights span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .c-split { grid-template-columns: 1fr; } }

.c-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.c-cards--2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.c-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 18px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.c-card::before { content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--green-700), var(--gold-500)); opacity: 0; transition: opacity .2s; }
.c-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(11,58,34,.35); border-color: #c9d3cc; }
.c-card:hover::before { opacity: 1; }
.c-card h3 { font-size: 1.05rem; line-height: 1.3; margin-bottom: 8px; }
.c-card p { color: var(--ink-2); font-size: .95rem; margin-bottom: 8px; }
.c-card__meta { font-size: .76rem !important; text-transform: uppercase; letter-spacing: .08em; color: var(--green-700) !important; font-weight: 650; margin-bottom: 6px !important; }
.c-card--module h3 { display: grid; gap: 8px; justify-items: start; }
.c-points { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; color: var(--ink-2); }
.c-points li { position: relative; padding-left: 18px; }
.c-points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold-500); transform: rotate(45deg); }

.c-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.c-steps > li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding-bottom: 26px; }
.c-steps > li:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 4px; width: 2px; background: linear-gradient(var(--green-100), var(--line)); }
.c-steps__n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green-900); color: var(--gold-300); font-family: var(--font-display); font-size: 1.25rem; box-shadow: 0 0 0 6px var(--paper); }
.c-steps h3 { font-size: 1.1rem; margin: 10px 0 6px; }
.c-steps p { color: var(--ink-2); margin-bottom: 6px; }
.c-steps__meta { font-size: .8rem !important; color: var(--green-700) !important; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.c-check { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px 20px; }
.c-check > li { position: relative; padding: 12px 14px 12px 46px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.c-check > li::before { content: ""; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.c-check strong { display: block; font-weight: 600; }
.c-check span { color: var(--muted); font-size: .93rem; }

.c-timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 18px; }
.c-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold-500), var(--green-700) 60%, var(--line)); border-radius: 2px; }
.c-timeline > li { position: relative; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.c-timeline > li::before { content: ""; position: absolute; left: -27px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--green-700); }
.c-timeline__when { font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--green-700); margin-bottom: 4px; }
.c-timeline h3 { font-size: 1.05rem; margin-bottom: 4px; }
.c-timeline p { color: var(--ink-2); margin-bottom: 4px; }

.c-faq { display: grid; gap: 8px; }
.c-faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.c-faq__item[open] { border-color: #c4d2c9; box-shadow: 0 10px 24px -18px rgba(11,58,34,.35); }
.c-faq__item > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 26px; gap: 12px; align-items: center; padding: 16px 18px; font-weight: 600; }
.c-faq__item > summary::-webkit-details-marker { display: none; }
.c-faq__item > summary::after { content: "+"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green-50); color: var(--green-800); font-weight: 500; font-size: 1.1rem; transition: transform .2s var(--ease), background .2s; }
.c-faq__item[open] > summary::after { transform: rotate(45deg); background: var(--gold-100); }
.c-faq__a { padding: 0 18px 16px; color: var(--ink-2); max-width: 72ch; }
.c-faq__a p:last-child { margin-bottom: 0; }

.c-table { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.c-table .table { margin: 0; }
.c-table thead th { position: sticky; top: 0; background: var(--green-900); color: #fff; font-weight: 600; font-size: .84rem; letter-spacing: .02em; }
.c-table tbody tr:nth-child(even) { background: #fafbf8; }
.c-table tbody th { font-weight: 600; }

.c-sources { margin-top: var(--s6); border: 1px dashed var(--line-strong); border-radius: 14px; padding: 14px 18px; font-size: .9rem; color: var(--ink-2); background: rgba(255,255,255,.5); }
.c-sources > summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.c-sources ul { margin: 10px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }

/* ---------- related + call-to-action band ---------- */
.c-related { background: var(--ivory); border-top: 1px solid #e7dfcc; padding-block: clamp(40px, 6vw, 72px); }
.c-related__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: var(--s5); }
.c-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.c-related__card { position: relative; display: grid; gap: 6px; align-content: start; padding: 20px 44px 20px 20px; border-radius: 16px; background: var(--surface); border: 1px solid #e3dac6; color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.c-related__card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(112,64,32,.45); color: var(--ink); }
.c-related__eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brown-600); font-weight: 650; }
.c-related__card strong { font-family: var(--font-display); font-weight: 520; font-size: 1.2rem; line-height: 1.2; }
.c-related__summary { color: var(--muted); font-size: .92rem; }
.c-related__go { position: absolute; right: 18px; top: 20px; color: var(--green-700); font-size: 1.1rem; transition: transform .2s var(--ease); }
.c-related__card:hover .c-related__go { transform: translateX(4px); }
.c-band { position: relative; overflow: hidden; color: #fff; background: radial-gradient(70% 120% at 100% 0%, rgba(243,195,71,.18), transparent 60%), linear-gradient(135deg, #0d4d2c, #07281a); padding-block: clamp(40px, 6vw, 72px); }
.c-band__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--s5); align-items: center; }
.c-band h2 { font-family: var(--font-display); font-weight: 480; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -.02em; color: #fff; margin-bottom: var(--s3); }
.c-band p { color: rgba(255,255,255,.8); max-width: 60ch; margin: 0; }
.c-band__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (max-width: 860px) { .c-band__inner { grid-template-columns: 1fr; } }

/* ---------- pathways ---------- */
.c-pathways { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.c-pathway { --acc: var(--green-700); position: relative; overflow: hidden; display: grid; gap: 8px; align-content: start; min-height: 220px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.c-pathway::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--acc); }
.c-pathway::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%); transition: transform .4s var(--ease); }
.c-pathway:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(11,58,34,.45); color: var(--ink); }
.c-pathway:hover::after { transform: scale(1.35); }
.c-pathway--gold { --acc: #d9a521; } .c-pathway--green { --acc: var(--green-700); } .c-pathway--teal { --acc: #1f8f8a; } .c-pathway--red { --acc: var(--red-500); }
.c-pathway__eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 650; color: var(--acc); }
.c-pathway__title { font-family: var(--font-display); font-weight: 520; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.01em; }
.c-pathway__summary { color: var(--muted); font-size: .94rem; }
.c-pathway__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; font-size: .84rem; font-weight: 600; color: var(--ink-2); position: relative; z-index: 1; }
.c-cohorts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.c-cohorts li { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.c-cohorts span { color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) { .c-cohorts li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- module catalogue + detail ---------- */
.c-catalogue { padding-block: clamp(32px, 5vw, 56px); }
.c-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s5); position: sticky; top: 76px; z-index: 5; padding: 10px 0; background: linear-gradient(var(--paper) 70%, transparent); }
.c-filter[hidden] { display: none; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); border-radius: 99px; padding: 7px 14px; font: 600 .86rem var(--font-ui); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--ink-2); }
.chip.is-on { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.c-modgroup { margin-bottom: clamp(32px, 5vw, 56px); }
.c-modgroup[hidden] { display: none; }
.c-modgroup__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 16px; }
.c-modgroup__head h2 { font-family: var(--font-display); font-weight: 520; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 0; }
.c-modgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.c-mod { --acc: var(--green-700); position: relative; display: grid; gap: 8px; align-content: start; height: 100%; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.c-mod:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(11,58,34,.45); border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); color: var(--ink); }
.c-mod--gold { --acc: #c8921a; } .c-mod--teal { --acc: #1f8f8a; } .c-mod--red { --acc: var(--red-600); }
.c-mod__code { justify-self: start; font: 700 .74rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; padding: 5px 8px; border-radius: 6px; color: #fff; background: var(--acc); letter-spacing: .03em; }
.c-mod__title { font-family: var(--font-display); font-weight: 520; font-size: 1.14rem; line-height: 1.22; }
.c-mod__deliv { font-size: .88rem; color: var(--muted); }
.c-mod__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.c-agenda { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.c-agenda li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 18px; align-items: baseline; }
.c-agenda li + li { border-top: 1px solid var(--line); }
.c-agenda__time { font: 600 .88rem ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--green-800); font-variant-numeric: tabular-nums; }
.c-agenda__what { color: var(--ink-2); }
.c-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0; }
.c-dl > div { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.c-dl dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 650; color: var(--green-700); margin-bottom: 6px; }
.c-dl dd { margin: 0; color: var(--ink-2); }
.c-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block: var(--s6) var(--s4); }
.c-pager a { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.c-pager a:hover { border-color: var(--green-700); }
.c-pager span { font-size: .8rem; color: var(--green-700); font-weight: 650; }
.c-pager__next { text-align: right; }
.c-aside { position: sticky; top: 96px; }
.c-aside__card { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.c-aside__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 650; color: var(--muted); }
.c-aside__list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
.c-aside__list a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .88rem; line-height: 1.3; }
.c-aside__list a span { font: 600 .74rem ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--muted); margin-right: 4px; }
.c-aside__list a:hover { background: var(--green-50); }
.c-aside__list a[aria-current="page"] { background: var(--green-900); color: #fff; }
.c-aside__list a[aria-current="page"] span { color: var(--gold-300); }
@media (max-width: 960px) { .c-aside { position: static; } }

/* ---------- footer sitemap ---------- */
.site-footer { background: #0a2418; color: rgba(255,255,255,.78); border-top: 0; padding-block: clamp(40px, 6vw, 64px) 28px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.site-footer .muted { color: rgba(255,255,255,.55); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(28px, 5vw, 64px); padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer__brand { display: grid; gap: 14px; align-content: start; justify-items: start; }
.site-footer__brand img { width: 48px; height: 48px; background: #fff; border-radius: 50%; object-fit: contain; }
.site-footer__brand strong { color: #fff; }
.site-footer__brand a.btn { color: #fff; text-decoration: none; }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.site-footer__h { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 650; color: var(--gold-300); margin-bottom: 12px; }
.site-footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 20px; }
.site-footer__legal p { margin: 0; max-width: 70ch; }
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr; } .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .nav-panel { animation: none; } }
@media print { .site-header, .c-toc, .c-band, .c-related, .site-footer, .demo-banner { display: none; } .ph { color: #000; background: none; } .ph__title, .ph__lead { color: #000; } }
.nav-panel a { white-space: normal; font-weight: 400; }
.nav-panel a[aria-current="page"]::after { content: none; }

/* ---------- homepage: explore ---------- */
.explore { padding-bottom: clamp(48px, 7vw, 96px); }
.explore__more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s5); }
@media (max-width: 760px) { .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); } }

/* =====================================================================
   Workspace shell, refined: grouped sidebar with icons, avatar top bar,
   display page titles, softer cards, richer stats, tables and forms.
   ===================================================================== */
body.app { background: #f3f2ec; }
.sidebar { background:
  radial-gradient(120% 40% at 0% 0%, rgba(22,135,74,.25), transparent 60%),
  linear-gradient(180deg, #0d2a1c 0%, #0a2016 100%); padding: 18px 12px 24px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.sidebar::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 3px; background: repeating-linear-gradient(180deg, var(--gold-500) 0 18px, var(--green-700) 18px 24px, #efe6d3 24px 27px, var(--red-500) 27px 33px, transparent 33px 40px); opacity: .3; }
.brand--app { padding: 2px 8px 16px; }
.nav-sec + .nav-sec { margin-top: 14px; }
.nav-sec__h { margin: 0 0 4px; padding: 0 12px; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 650; color: #7f9a8b; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; font-size: .9rem; transition: background .15s var(--ease), color .15s; }
.nav a .i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.nav a:hover .i { opacity: 1; }
.nav a[aria-current="page"] { background: linear-gradient(90deg, rgba(0,120,60,.95), rgba(0,120,60,.7)); color: #fff; box-shadow: inset 3px 0 0 var(--gold-500), 0 6px 16px -8px rgba(0,0,0,.5); }
.nav a[aria-current="page"] .i { opacity: 1; color: var(--gold-300); }
.topbar { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(10px); padding: 10px clamp(16px, 3vw, 40px); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--green-700), var(--green-900)); color: var(--gold-300); font: 700 .8rem var(--font-ui); letter-spacing: .04em; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--green-100); }
.content { padding: clamp(20px, 3vw, 40px); max-width: 1380px; }
.content > .page-head:first-child, .content > .alert + .page-head { margin-top: 4px; }
.page-head { padding-bottom: var(--s4); border-bottom: 1px solid var(--line); margin-bottom: var(--s5); }
body.app .page-head h1 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); font-weight: 480; letter-spacing: -.03em; margin-bottom: 6px; }
body.app .card { border-radius: 16px; border-color: #e3e2da; box-shadow: 0 1px 2px rgba(17,26,22,.04), 0 8px 24px -18px rgba(17,26,22,.18); }
body.app .card > h2:first-child, body.app .card__head h2 { font-size: 1.1rem; font-weight: 650; letter-spacing: -.01em; }
body.app .card--quiet { background: #faf9f4; box-shadow: none; }
.stat { border-radius: 16px; border-color: #e3e2da; min-height: 108px; padding: 16px 18px; position: relative; overflow: hidden; box-shadow: 0 1px 2px rgba(17,26,22,.04); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(0,120,60,.08), transparent 70%); }
.stat:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -18px rgba(11,58,34,.4); }
.stat__value { font-size: 2.1rem; color: var(--green-900); }
.stat--key { background: linear-gradient(160deg, #0d4d2c, #0b3a22); border-color: #0b3a22; box-shadow: 0 14px 30px -18px rgba(11,58,34,.6); }
.stat--key .stat__value { color: #fff; } .stat--key .stat__label { color: var(--gold-300); } .stat--key .stat__note { color: rgba(255,255,255,.7); }
body.app .table-wrap { border-radius: 14px; border-color: #e3e2da; box-shadow: 0 1px 2px rgba(17,26,22,.03); }
body.app .table thead th { background: #f6f5ef; }
body.app .table tbody tr { transition: background .12s; }
body.app .table tbody tr:hover { background: #f8f7f1; }
body.app .tabs { background: #f3f2ec; }
body.app .tabs a[aria-current="page"], body.app .tabs a.is-current { border-color: var(--gold-500); color: var(--green-800); }
body.app .empty { border-radius: 16px; background: #faf9f4; padding: 28px; }
body.app .empty::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300783c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l2.5-7h11L20 13v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1zM4 13h4.5l1.5 2.5h4l1.5-2.5H20'/%3E%3C/svg%3E") center/22px no-repeat; }
body.app .alert { border-radius: 12px; }
body.app input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), body.app select, body.app textarea { border-radius: 10px; border-color: #cfd3cb; background: #fff; }
body.app .btn--primary { box-shadow: 0 6px 14px -8px rgba(0,120,60,.7); }
@media (max-width: 900px) { .sidebar::after { display: none; } .nav-sec__h { padding-top: 6px; } .avatar { display: none; } }

/* ---------- dashboards (participant + staff homes) ---------- */
.dash-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 24px; align-items: stretch; padding: clamp(22px, 3vw, 34px); margin-bottom: 18px; border-radius: 22px; color: #fff; background: radial-gradient(60% 120% at 100% 0%, rgba(243,195,71,.2), transparent 60%), linear-gradient(150deg, #0d4d2c, #07281a); box-shadow: 0 24px 50px -30px rgba(7,40,26,.8); }
.dash-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: repeating-linear-gradient(90deg, var(--gold-500) 0 22px, var(--green-700) 22px 30px, #efe6d3 30px 34px, var(--red-500) 34px 42px, var(--green-900) 42px 50px); opacity: .85; }
.dash-hero__eyebrow { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-300); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.dash-hero h1 { font-family: var(--font-display); font-weight: 460; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -.03em; color: #fff; margin: 0 0 8px; }
.dash-hero__text p:last-child { color: rgba(255,255,255,.8); margin: 0; max-width: 52ch; }
.dash-next { align-self: center; padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.dash-next__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-300); margin-bottom: 4px; font-weight: 650; }
.dash-next__title { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; margin-bottom: 6px; color: #fff; }
.dash-next__text { color: rgba(255,255,255,.78); font-size: .92rem; margin-bottom: 14px; }
.dash-quick { align-self: center; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dash-quick a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; transition: background .15s, transform .15s var(--ease); }
.dash-quick a:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-1px); }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.dash-quick .i { color: var(--gold-300); }
@media (max-width: 900px) { .dash-hero { grid-template-columns: 1fr; } }

.journey-track { margin-bottom: 18px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid #e3e2da; overflow-x: auto; }
.journey-track ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); }
.journey-track__s { position: relative; display: grid; gap: 2px; justify-items: start; padding: 22px 10px 0 0; font-size: .88rem; }
.journey-track__s::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line); }
.journey-track__s.is-done::before { background: var(--green-700); }
.journey-track__s.is-current::before { background: linear-gradient(90deg, var(--green-700), var(--line)); }
.journey-track__dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); }
.journey-track__s.is-done .journey-track__dot { background: var(--green-700); border-color: var(--green-700); box-shadow: inset 0 0 0 3px #fff; }
.journey-track__s.is-current .journey-track__dot { border-color: var(--gold-500); background: var(--gold-500); box-shadow: 0 0 0 5px rgba(243,195,71,.25); }
.journey-track__s > a, .journey-track__s > span:not(.journey-track__meta):not(.journey-track__dot) { font-weight: 650; color: var(--ink); text-decoration: none; }
.journey-track__s.is-next > span, .journey-track__s.is-next > a { color: var(--muted); }
.journey-track__meta { font-size: .78rem; color: var(--muted); }

.dash-card h2 { display: flex; align-items: center; gap: 8px; }
.dash-card h2 .i { color: var(--green-700); }
.dash-card__big { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.25; margin-bottom: 4px; }
.dash-card__foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #eeede6; font-size: .9rem; font-weight: 600; }
.dash-card__foot a { text-decoration: none; }
.dash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: dl; }
.dash-list li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #faf9f4; border: 1px solid #eeede6; }
.dash-links { margin-top: 8px; }
.dash-links__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.dash-link { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid #e3e2da; color: var(--ink); text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s; }
.dash-link:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -18px rgba(11,58,34,.45); color: var(--ink); }
.dash-link .i { width: 22px; height: 22px; color: var(--green-700); margin-top: 2px; }
.dash-link span { display: grid; gap: 2px; }
.dash-link span span { color: var(--muted); font-size: .86rem; }

.pipe { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.pipe li { display: grid; grid-template-columns: 110px 1fr 36px; gap: 10px; align-items: center; font-size: .88rem; }
.pipe__label { color: var(--ink-2); }
.pipe__n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pipe__bar { display: block; height: 10px; border-radius: 99px; background: #efeee7; overflow: hidden; }
.pipe__fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green-700), #34a46a); min-width: 3px; }
.pipe__w0 { width: 0; min-width: 0; } .pipe__w1 { width: 10%; } .pipe__w2 { width: 20%; } .pipe__w3 { width: 30%; } .pipe__w4 { width: 40%; } .pipe__w5 { width: 50%; } .pipe__w6 { width: 60%; } .pipe__w7 { width: 70%; } .pipe__w8 { width: 80%; } .pipe__w9 { width: 90%; } .pipe__w10 { width: 100%; }
.cap { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cap li { display: grid; gap: 6px; }
.cap__row { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.cap .pipe__fill { background: linear-gradient(90deg, #c8921a, var(--gold-500)); }
@media (min-width: 901px) { .shell { background: linear-gradient(90deg, #0a2016 250px, transparent 250px); } }

/* ---------- buttons: flat and modern — solid fills, no gradient, no bevel, no shadow, no outline
   (owner direction, 2026-09-25: the dimensional/gradient look read as old-fashioned). ---------- */
.btn, .btn:hover, .btn:active { background-image: none; box-shadow: none; text-shadow: none; transform: none; }
.btn { border: 0; border-radius: 10px; min-height: 42px; padding: 10px 18px; background: #e9ebe6; color: var(--ink); font-weight: 600; letter-spacing: -.005em; transition: background-color .15s ease, color .15s ease; }
.btn:hover { background: #dfe2dc; color: var(--ink); }
.btn:active { background: #d5d9d1; }
.btn--sm { min-height: 32px; padding: 6px 12px; border-radius: 8px; }
.btn--lg { min-height: 50px; padding: 13px 24px; border-radius: 12px; }
.btn--primary { background: #00783c; color: #fff; }
.btn--primary:hover { background: #006633; color: #fff; }
.btn--primary:active { background: #00592c; }
.btn--gold { background: #f3c347; color: #1b1400; }
.btn--gold:hover { background: #ebb52b; color: #1b1400; }
.btn--light { background: rgba(255,255,255,.12); color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: rgba(17,26,22,.06); }
body.app .btn--primary { box-shadow: none; }
.lang-switch button { background: #e9ebe6; background-image: none; border: 0; border-radius: 10px; box-shadow: none; }
.lang-switch button:hover { background: #dfe2dc; }
.chip, .chip:hover { background-image: none; box-shadow: none; border: 0; background: #e9ebe6; border-radius: 10px; }
.chip.is-on { background: #0b3a22; background-image: none; color: #fff; }
.cf-action__link, .cf-action--primary .cf-action__link { background-image: none; box-shadow: none; }
.cf-action--primary .cf-action__link { background: #0d4d2c; }
.cf-control, .cf-control--walk[aria-pressed="true"], .cf-pad button, .dash-quick a { background-image: none; box-shadow: none; }
.cf-control { background: rgba(20,17,13,.82); border: 0; border-radius: 10px; }
.cf-control:hover { background: rgba(40,33,25,.9); }
.cf-control--walk[aria-pressed="true"] { background: #3fe08a; }
.cf-pad button { background: rgba(10,22,15,.82); border: 0; }
.dash-quick a { background: rgba(255,255,255,.08); border: 0; border-radius: 10px; }
.dash-quick a:hover { background: rgba(255,255,255,.15); transform: none; }
body.content-page main .btn:not(.btn--primary):not(.btn--gold):not(.btn--light), body.home .explore .btn:not(.btn--primary) { background: #2a241c; background-image: none; color: #f4ecdc; }
body.content-page main .btn:not(.btn--primary):not(.btn--gold):not(.btn--light):hover, body.home .explore .btn:not(.btn--primary):hover { background: #342c22; }
body.content-page .chip { background: #241f18; background-image: none; color: #cbbfa8; }
body.content-page .chip.is-on { background: var(--room); background-image: none; color: #14110d; }
@media (prefers-contrast: more) { .btn, .chip { outline: 1px solid currentColor; } }

/* ---------- Carrefour: named rooms and the real premises (FINAL4) ---------- */
.cf-tag__code { width: 8px; height: 8px; background: var(--cf-gold); }
.cf-tag { padding: 5px 12px 5px 9px; }
.cf-index a { grid-template-columns: 1fr; }
.cf-rail__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(243,195,71,.55); flex: none; }
.cf-rail a[aria-current="page"] .cf-rail__dot { background: #13200f; }
.cf-premises { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.cf-premises__t { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brown-600); font-weight: 700; margin: 0 0 12px; }
.cf-premises__note { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.cf-photos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 0 14px; padding-bottom: 4px; }
.cf-photo { margin: 0; scroll-snap-align: start; }
.cf-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: #e8e2d4; }
.cf-photo figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.cf-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.cf-facts dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cf-facts dd { margin: 2px 0 0; font-size: 14px; }
.cf-facts__wide { grid-column: 1 / -1; }

/* =====================================================================
   ROOM PAGES — every content page is a room of the Carrefour.
   The landing's warm night stage and gold thread continue: the thread is
   the reading spine, each section a lit node on it. Each page takes the
   colour of its room, sampled from the FINAL4 photographs (teal lab,
   purple mentoring room, red kitchen…). Documents (tables, notes) are
   ivory sheets laid on the night table. Ndop motifs mark the passages.
   ===================================================================== */
body.content-page {
  --night: #14110d; --night-2: #1b1712; --night-3: #241f18; --sheet: #f4ecdc; --sheet-ink: #2a2118;
  --ink-hi: #f4ecdc; --ink-mid: #cbbfa8; --ink-lo: #8f8470; --hair: rgba(243,195,71,.14);
  --room: #f3c347; --room-soft: rgba(243,195,71,.14);
  background: var(--night); color: var(--ink-mid);
}
body.room-accueil      { --room: #eda23c; --room-soft: rgba(237,162,60,.15); }
body.room-formation    { --room: #f3c347; --room-soft: rgba(243,195,71,.14); }
body.room-labo-ia      { --room: #22c3a8; --room-soft: rgba(34,195,168,.14); }
body.room-mentorat     { --room: #8b7cff; --room-soft: rgba(139,124,255,.16); }
body.room-croissance   { --room: #3ccf7f; --room-soft: rgba(60,207,127,.13); }
body.room-studio       { --room: #43c6d8; --room-soft: rgba(67,198,216,.14); }
body.room-preuves      { --room: #c8955e; --room-soft: rgba(200,149,94,.15); }
body.room-espace-commun{ --room: #f05a3a; --room-soft: rgba(240,90,58,.14); }
body.room-circulation  { --room: #e7cf8f; --room-soft: rgba(231,207,143,.12); }
body.content-page main a:not(.btn) { color: var(--room); }
body.content-page main a:not(.btn):hover { color: #fff; }
body.content-page main h2, body.content-page main h3 { color: var(--ink-hi); }

/* ---------- hero: title on the left, the plan with this room lit on the right ---------- */
body.content-page .ph { background:
  radial-gradient(55% 80% at 82% 20%, var(--room-soft), transparent 70%),
  radial-gradient(40% 60% at 10% 110%, rgba(243,195,71,.08), transparent 70%),
  var(--night); color: var(--ink-hi); border-bottom: 1px solid var(--hair); }
body.content-page .ph::after { content: none; }
body.content-page .ph::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23f3c347' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M28 6 50 28 28 50 6 28Z'/%3E%3Cpath d='M28 16 40 28 28 40 16 28Z'/%3E%3Ccircle cx='28' cy='28' r='2'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 75%); mask-image: linear-gradient(100deg, transparent 35%, #000 75%); }
.ph__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
body.content-page .ph__eyebrow { color: var(--room); }
body.content-page .ph__title { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5rem); letter-spacing: -.04em; line-height: .98; }
body.content-page .ph__lead { color: var(--ink-mid); }
body.content-page .ph__crumbs li, body.content-page .ph__crumbs a { color: var(--ink-lo); }
body.content-page .ph__facts { background: var(--hair); border-color: var(--hair); }
body.content-page .ph__facts > div { background: rgba(20,17,13,.8); }
body.content-page .ph__facts dd { color: var(--ink-hi); }
body.content-page .ph__status { background: rgba(243,195,71,.08); border-color: rgba(243,195,71,.28); }
.ph__plan { margin: 0; display: grid; gap: 14px; justify-items: center; }
.ph__plan-svg { width: min(100%, 250px); transform: perspective(900px) rotateX(38deg) rotateZ(-14deg); transform-origin: 50% 60%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.ph__plan .cf-plan { filter: none; }
.ph__plan .cf-plan__suite { fill: #1f1a14; stroke: rgba(243,195,71,.35); stroke-width: 1.5; }
.ph__plan .cf-plan__room rect { fill: #2a241c; stroke: rgba(244,236,220,.16); stroke-width: 1.2; }
.ph__plan .cf-plan__room.is-closed rect { fill: #221d17; }
.ph__plan .cf-plan__corridor rect { fill: #1a1611; }
.ph__plan .cf-plan__room.is-current rect { fill: var(--room); stroke: #fff; stroke-width: 1.5; }
.ph__plan .cf-plan__room:hover rect { fill: var(--room-soft); }
.ph__plan .cf-plan__thread, .ph__plan .cf-plan__branch { stroke: rgba(243,195,71,.55); stroke-width: 1; }
.ph__plan .cf-plan__branch.is-current { stroke: var(--room); stroke-width: 2; }
.ph__plan .cf-plan__num { display: none; }
.ph__plan .cf-plan__desk { fill: #8a6a4a; } .ph__plan .cf-plan__door { stroke: var(--room); }
.ph__plan figcaption { display: grid; justify-items: center; gap: 2px; text-align: center; }
.ph__plan figcaption span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-lo); }
.ph__plan figcaption a { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-hi); text-decoration: none; }
.ph__plan figcaption a.ph__plan-go { font-family: var(--font-ui); font-size: .82rem; color: var(--room); font-weight: 600; }
@media (max-width: 900px) { .ph__grid { grid-template-columns: 1fr; } .ph__plan { justify-items: start; grid-template-columns: 120px 1fr; align-items: center; } .ph__plan-svg { width: 120px; } .ph__plan figcaption { justify-items: start; text-align: left; } }

/* ---------- the thread: the page's reading spine ---------- */
body.content-page .c-layout { padding-block: clamp(40px, 6vw, 88px); }
body.content-page .c-body { position: relative; padding-left: 44px; max-width: 900px; }
body.content-page .c-body::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 0; width: 1px; background: linear-gradient(var(--room), rgba(243,195,71,.25) 30%, rgba(243,195,71,.08)); }
body.content-page .c-body::after { content: ""; position: absolute; left: 10px; top: 6px; width: 3px; height: calc(var(--read, 0) * 100%); max-height: calc(100% - 6px); border-radius: 3px; background: var(--room); box-shadow: 0 0 12px var(--room); opacity: .9; }
body.content-page .c-body--solo { padding-left: 44px; }
body.content-page .cs { border-top: 0; padding-block: clamp(30px, 4vw, 52px); position: relative; }
body.content-page .cs__head { grid-template-columns: 1fr; margin-bottom: 22px; }
body.content-page .cs__num { position: absolute; left: -44px; top: calc(clamp(30px, 4vw, 52px) + 2px); width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: var(--night); border: 1px solid var(--room); color: var(--room); font: 700 .62rem var(--font-ui); letter-spacing: .02em; }
body.content-page .cs:first-child .cs__num { top: 2px; }
body.content-page .cs__title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 480; letter-spacing: -.03em; color: var(--ink-hi); }
body.content-page .cs__intro { color: var(--ink-lo); font-size: 1.05rem; }
body.content-page .c-prose { color: var(--ink-mid); font-size: 1.1rem; line-height: 1.75; }
body.content-page .c-prose p:first-child::first-line { color: var(--ink-hi); }

/* Ndop passage between sections: a slim ribbon of lozenges and zigzags in the room colour */
body.content-page .cs + .cs::before { content: ""; display: block; height: 10px; margin: 0 0 clamp(30px, 4vw, 52px); opacity: .35;
  background: var(--room); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 5 0 10 5 5 10Z M10 5l5-4 5 4 5-4 5 4 5-4 5 4' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") left center / 40px 10px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 5 0 10 5 5 10Z M10 5l5-4 5 4 5-4 5 4 5-4 5 4' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") left center / 40px 10px repeat-x;
  width: min(320px, 60%); }
body.content-page .cs + .cs { padding-top: 0; }
body.content-page .cs + .cs .cs__num { top: calc(10px + clamp(30px, 4vw, 52px) + 2px); }

/* ---------- tiles (cards), steps, checklist, timeline, faq on the night table ---------- */
body.content-page .c-card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); border: 0; border-radius: 4px 18px 4px 18px; padding: 22px; box-shadow: inset 0 0 0 1px var(--hair); }
body.content-page .c-card::before { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; border-radius: 0; background: var(--room); opacity: .5; }
body.content-page .c-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--room-soft), 0 24px 40px -28px var(--room); }
body.content-page .c-card:hover::before { opacity: 1; }
body.content-page .c-card h3 { color: var(--ink-hi); font-family: var(--font-display); font-weight: 500; font-size: 1.22rem; letter-spacing: -.01em; }
body.content-page .c-card p { color: var(--ink-mid); }
body.content-page .c-card__meta { color: var(--room) !important; }
body.content-page .c-points { color: var(--ink-mid); }
body.content-page .c-points li::before { background: var(--room); }
body.content-page .code-chip { background: var(--room); color: #14110d; }
body.content-page .c-steps > li:not(:last-child)::before { background: linear-gradient(var(--room), transparent); opacity: .5; }
body.content-page .c-steps__n { background: transparent; border: 1px solid var(--room); color: var(--room); box-shadow: 0 0 0 6px var(--night); font-size: 1.1rem; }
body.content-page .c-steps h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; }
body.content-page .c-steps p { color: var(--ink-mid); }
body.content-page .c-steps__meta { color: var(--room) !important; }
body.content-page .c-check > li { background: rgba(255,255,255,.025); border: 0; box-shadow: inset 0 0 0 1px var(--hair); border-radius: 12px; }
body.content-page .c-check > li::before { background-color: var(--room); }
body.content-page .c-check strong { color: var(--ink-hi); }
body.content-page .c-check span { color: var(--ink-lo); }
body.content-page .c-timeline::before { background: linear-gradient(var(--room), rgba(243,195,71,.1)); width: 1px; left: 7px; }
body.content-page .c-timeline > li { background: rgba(255,255,255,.025); border: 0; box-shadow: inset 0 0 0 1px var(--hair); }
body.content-page .c-timeline > li::before { background: var(--night); border-color: var(--room); border-width: 2px; }
body.content-page .c-timeline__when { color: var(--room); }
body.content-page .c-timeline p { color: var(--ink-mid); }
body.content-page .c-faq__item { background: transparent; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; }
body.content-page .c-faq__item[open] { box-shadow: none; border-color: var(--room-soft); }
body.content-page .c-faq__item > summary { color: var(--ink-hi); font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; padding: 18px 0; }
body.content-page .c-faq__item > summary::after { background: transparent; color: var(--room); border: 1px solid var(--room-soft); }
body.content-page .c-faq__item[open] > summary::after { background: var(--room); color: var(--night); }
body.content-page .c-faq__a { padding: 0 0 18px; color: var(--ink-mid); }
body.content-page .c-highlights li { background: rgba(255,255,255,.03); border: 0; box-shadow: inset 0 0 0 1px var(--hair); border-left: 2px solid var(--room); }
body.content-page .c-highlights strong { color: var(--ink-hi); }
body.content-page .c-highlights span { color: var(--ink-lo); }

/* ---------- documents: tables and notes are ivory sheets laid on the table ---------- */
body.content-page .c-table { background: var(--sheet); border: 0; border-radius: 3px; box-shadow: 0 30px 50px -30px rgba(0,0,0,.8); transform: rotate(-.25deg); }
body.content-page .c-table .table { color: var(--sheet-ink); }
body.content-page .c-table thead th { background: var(--sheet); color: #6b5a44; border-bottom: 2px solid #2a2118; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
body.content-page .c-table tbody tr:nth-child(even) { background: rgba(42,33,24,.04); }
body.content-page .c-table tbody th { color: #1c150e; }
body.content-page .c-table a { color: #8a5a12; }
body.content-page .c-callout { background: var(--sheet); color: var(--sheet-ink); border: 0; border-radius: 3px; box-shadow: 0 24px 40px -28px rgba(0,0,0,.8); padding: 22px 24px 22px 28px; }
body.content-page .c-callout::before { background: var(--room); opacity: 1; top: 0; bottom: 0; left: 0; width: 5px; border-radius: 0; }
body.content-page .c-callout--warn::after { content: ""; position: absolute; top: -8px; right: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--room); box-shadow: 0 2px 4px rgba(0,0,0,.5); }
body.content-page .c-callout a { color: #8a5a12; }

/* ---------- table of contents, sources, related, band ---------- */
body.content-page .c-toc__label { color: var(--ink-lo); }
body.content-page .c-toc ol { border-left-color: var(--hair); }
body.content-page .c-toc a { color: var(--ink-lo); }
body.content-page .c-toc a::before { color: rgba(243,195,71,.3); }
body.content-page .c-toc a:hover { color: var(--ink-hi); }
body.content-page .c-toc a[aria-current] { color: var(--ink-hi); border-left-color: var(--room); }
body.content-page .c-sources { background: transparent; border-color: var(--hair); color: var(--ink-lo); }
body.content-page .c-sources > summary { color: var(--ink-mid); }
body.content-page .c-sources .code-chip--quiet { background: var(--hair); color: var(--room); }
body.content-page .c-related { background: var(--night-2); border-top: 1px solid var(--hair); }
body.content-page .c-related__title { color: var(--ink-hi); }
body.content-page .c-related__card { background: var(--night-3); border: 0; box-shadow: inset 0 0 0 1px var(--hair); border-radius: 4px 20px 4px 20px; color: var(--ink-hi); }
body.content-page .c-related__card:hover { box-shadow: inset 0 0 0 1px var(--room), 0 20px 36px -24px var(--room); color: var(--ink-hi); }
body.content-page .c-related__eyebrow { color: var(--room); }
body.content-page .c-related__summary { color: var(--ink-lo); }
body.content-page .c-related__go { color: var(--room); }
body.content-page .c-band { background: radial-gradient(60% 140% at 90% 0%, var(--room-soft), transparent 60%), var(--night); border-top: 1px solid var(--hair); }

/* ---------- module catalogue and module pages, pathway tiles ---------- */
body.content-page .c-filter { background: linear-gradient(var(--night) 70%, transparent); }
body.content-page .chip { background: #241f18; color: var(--ink-mid); }
body.content-page .chip.is-on { background: var(--room); color: #14110d; }
body.content-page .c-modgroup__head { border-bottom-color: var(--hair); }
body.content-page .c-modgroup__head h2 { color: var(--ink-hi); }
body.content-page .c-mod, body.content-page .c-pathway { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); border: 0; box-shadow: inset 0 0 0 1px var(--hair); border-radius: 4px 18px 4px 18px; color: var(--ink-hi); }
body.content-page .c-mod:hover, body.content-page .c-pathway:hover { box-shadow: inset 0 0 0 1px var(--acc), 0 24px 40px -26px var(--acc); color: var(--ink-hi); }
body.content-page .c-mod__deliv, body.content-page .c-pathway__summary { color: var(--ink-lo); }
body.content-page .c-mod__foot, body.content-page .c-pathway__foot { color: var(--ink-mid); }
body.content-page .c-mod--gold { --acc: #f3c347; } body.content-page .c-mod--green { --acc: #3ccf7f; } body.content-page .c-mod--teal { --acc: #22c3a8; } body.content-page .c-mod--red { --acc: #f05a3a; }
body.content-page .c-mod__code { color: #14110d; }
body.content-page .c-pathway--gold { --acc: #f3c347; } body.content-page .c-pathway--green { --acc: #3ccf7f; } body.content-page .c-pathway--teal { --acc: #22c3a8; } body.content-page .c-pathway--red { --acc: #f05a3a; }
body.content-page .c-pathway::before { height: 2px; }
body.content-page .tag { background: rgba(255,255,255,.06); color: var(--ink-mid); }
body.content-page .tag--proposed { background: rgba(243,195,71,.12); color: #f3c347; border-color: rgba(243,195,71,.3); }
body.content-page .tag--demo { background: rgba(67,198,216,.12); color: #7fd8e4; }
body.content-page .c-agenda { background: var(--sheet); border: 0; border-radius: 3px; box-shadow: 0 30px 50px -30px rgba(0,0,0,.8); }
body.content-page .c-agenda li + li { border-top-color: rgba(42,33,24,.12); }
body.content-page .c-agenda__time { color: #8a5a12; }
body.content-page .c-agenda__what { color: var(--sheet-ink); }
body.content-page .c-dl > div { background: rgba(255,255,255,.03); border: 0; box-shadow: inset 0 0 0 1px var(--hair); }
body.content-page .c-dl dt { color: var(--room); } body.content-page .c-dl dd { color: var(--ink-mid); }
body.content-page .c-pager a { background: rgba(255,255,255,.03); border: 0; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink-hi); }
body.content-page .c-aside__card { background: var(--night-2); border: 0; box-shadow: inset 0 0 0 1px var(--hair); }
body.content-page .c-aside__list a { color: var(--ink-mid); }
body.content-page .c-aside__list a:hover { background: rgba(255,255,255,.05); }
body.content-page .c-aside__list a[aria-current="page"] { background: var(--room); color: #14110d; }
body.content-page .c-cohorts li { background: rgba(255,255,255,.03); border: 0; box-shadow: inset 0 0 0 1px var(--hair); }
body.content-page .c-cohorts strong { color: var(--ink-hi); }
body.content-page .muted { color: var(--ink-lo); }
body.content-page .table-wrap:not(.c-table) { background: var(--night-2); border-color: var(--hair); }
body.content-page main .btn:not(.btn--primary):not(.btn--gold):not(.btn--light) { background: #2a241c; color: var(--ink-hi); }
body.content-page .site-footer { border-top: 1px solid var(--hair); }
@media (prefers-reduced-motion: reduce) { body.content-page .c-body::after { display: none; } }
@media print { body.content-page { background: #fff; color: #000; } }

body.content-page main a.c-related__card, body.content-page main a.c-pathway, body.content-page main a.c-mod, body.content-page main .c-toc a, body.content-page main .c-aside__list a, body.content-page main .c-pager a { color: var(--ink-hi); }
body.content-page main .c-toc a { color: var(--ink-lo); }
body.content-page main .c-toc a[aria-current], body.content-page main .c-toc a:hover { color: var(--ink-hi); }
body.content-page main .ph__plan figcaption a { color: var(--ink-hi); } body.content-page main .ph__plan figcaption a.ph__plan-go { color: var(--room); }
body.content-page main .c-aside__list a[aria-current="page"] { color: #14110d; }
body.content-page main .code-chip { color: #14110d; }
body.content-page main .c-table a, body.content-page main .c-callout a { color: #8a5a12; }

/* ---------- document pages (forms, sign-in, help, events): the form is an ivory sheet on the night table ---------- */
body.doc-page main { padding-bottom: clamp(40px, 6vw, 80px); background: radial-gradient(50% 50% at 85% 0%, var(--room-soft), transparent 70%); }
body.doc-page .page-head { border-bottom: 1px solid var(--hair); padding-bottom: 18px; }
body.doc-page .page-head h1 { color: var(--ink-hi); font-size: clamp(2.2rem, 1.3rem + 3vw, 3.8rem); letter-spacing: -.035em; line-height: 1; }
body.doc-page .page-head .lead { color: var(--ink-mid); }
body.doc-page main .card, body.doc-page main .form.card, body.doc-page main .notice { background: var(--sheet); color: var(--sheet-ink); border: 0; border-radius: 3px; box-shadow: 0 34px 60px -34px rgba(0,0,0,.85); position: relative; }
body.doc-page main .card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--room); }
body.doc-page main .card h2, body.doc-page main .card h3, body.doc-page main .card legend, body.doc-page main .card label { color: var(--sheet-ink); }
body.doc-page main .card a:not(.btn) { color: #8a5a12; }
body.doc-page main .card .muted, body.doc-page main .card .field__help { color: #6b5a44; }
body.doc-page main .stepper li { color: var(--ink-lo); } body.doc-page main .stepper li.current { color: var(--ink-hi); }
body.doc-page main .stepper li::before { background: var(--hair); } body.doc-page main .stepper li.done::before { background: var(--room); }
body.doc-page main .dl dt { color: #6b5a44; }
body.doc-page main > .wrap > p, body.doc-page main .wrap.narrow > p { color: var(--ink-mid); }
body.doc-page main .empty { background: rgba(255,255,255,.03); border-color: var(--hair); color: var(--ink-lo); }
body.doc-page main .table-wrap { background: var(--sheet); border: 0; } body.doc-page main .table { color: var(--sheet-ink); }
/* homepage: the sections below the arrival continue on the night stage */
body.home .cf-after { background: #14110d; color: #cbbfa8; }
body.home .cf-after .section-title { color: #f4ecdc; }
body.home .journey__steps { border-top-color: rgba(243,195,71,.14); }
body.home .journey__step { border-color: rgba(243,195,71,.14) !important; }
body.home .journey__num { color: #f3c347; }
body.home .journey__step h3 { color: #f4ecdc; }
body.home .journey__step p { color: #8f8470; }
body.home .principles .card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); border: 0; box-shadow: inset 0 0 0 1px rgba(243,195,71,.14); border-radius: 4px 18px 4px 18px; }
body.home .principles .card h3 { color: #f4ecdc; } body.home .principles .card p { color: #cbbfa8; }
body.home .explore .c-pathway, body.home .explore .c-related__card { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); border: 0; box-shadow: inset 0 0 0 1px rgba(243,195,71,.14); border-radius: 4px 18px 4px 18px; color: #f4ecdc; }
body.home .explore .c-pathway__summary, body.home .explore .c-related__summary { color: #8f8470; }
body.home .explore .c-related__eyebrow { color: #f3c347; } body.home .explore .c-pathway--gold { --acc: #f3c347; } body.home .explore .c-pathway--green { --acc: #3ccf7f; } body.home .explore .c-pathway--teal { --acc: #22c3a8; } body.home .explore .c-pathway--red { --acc: #f05a3a; }
body.home .explore .c-pathway:hover, body.home .explore .c-related__card:hover { color: #f4ecdc; box-shadow: inset 0 0 0 1px var(--acc, #f3c347), 0 24px 40px -26px var(--acc, #f3c347); }
body.home .explore .btn:not(.btn--primary) { background: #2a241c; color: #f4ecdc; }
body.content-page .site-footer, body.home .site-footer { background: #0e0b08; border-top: 1px solid rgba(243,195,71,.14); }
.lang-switch button { color: var(--ink); opacity: 1; }

/* ---- Mentoring decision model: plans, health, journey guide ---- */
.fit-bars { margin: 10px 0 4px; } .fit-bars li { grid-template-columns: 120px 1fr 52px; }
.load { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; } .load .pipe__bar { width: 72px; }
.health { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px; font-size: .8rem; font-weight: 650; vertical-align: 2px; }
.health__dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.health--green { background: var(--ok-bg); color: var(--ok); } .health--amber { background: var(--warn-bg); color: var(--warn); } .health--red { background: var(--bad-bg); color: var(--bad); }
.health-signals { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.health-signals li { font-size: .82rem; padding: 3px 9px; border-radius: 6px; background: #f2f1ea; color: var(--ink-2); }
.health-signals__red { background: var(--bad-bg) !important; color: var(--bad) !important; } .health-signals__amber { background: var(--warn-bg) !important; color: var(--warn) !important; }
.health-list { display: grid; gap: 10px; }
.health-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r); background: var(--surface); }
.health-row--green { border-left-color: var(--green-600); } .health-row--amber { border-left-color: var(--gold-500); } .health-row--red { border-left-color: var(--red-500); }
.health-row p { margin: 0 0 4px; } .health-row__review { flex: 0 0 auto; } .health-row__review[open] { flex-basis: 320px; }
.health-row__review summary { list-style: none; cursor: pointer; } .health-row__review summary::-webkit-details-marker { display: none; }
.pairs { display: grid; gap: 14px; margin-bottom: var(--s5); }
.pair { border-left: 4px solid var(--green-700); } .pair--none { border-left-color: var(--line-strong); background: #fcfbf7; }
.pair__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.pair__who { font-size: 1.05rem; margin: 0 0 4px; } .pair__why { margin: 0 0 4px; color: var(--ink-2); font-size: .92rem; }
.pair__score { display: flex; flex-direction: column; align-items: flex-end; min-width: 76px; }
.pair__fit { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--green-800); font-variant-numeric: tabular-nums; }
.pair__actions { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eeede6; }
.model-card summary { cursor: pointer; display: flex; align-items: center; gap: 8px; }
.model-steps { margin: 12px 0 8px; padding-left: 1.3rem; display: grid; gap: 8px; color: var(--ink-2); }
.guide-hero__stage { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 14px; color: var(--green-900); }
.guide-actions { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.guide-actions__item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r); background: #f7f6f0; border-left: 4px solid var(--green-600); }
.guide-actions__item p { margin: 0; } .guide-actions__title { font-weight: 650; }
.guide-actions__item--urgent { border-left-color: var(--red-500); background: #fdf5f2; } .guide-actions__item--soon { border-left-color: var(--gold-500); background: #fefaee; }
.guide-actions--compact .guide-actions__item { padding: 9px 12px; }
.guide-answer p { margin: 0 0 8px; }
@media (max-width: 640px) { .pair__head, .health-row { flex-direction: column; } .pair__score { align-items: flex-start; } .fit-bars li { grid-template-columns: 96px 1fr 48px; } .health-row__review[open] { flex-basis: auto; width: 100%; } }
.guide-hero .eyebrow { color: var(--green-700); margin-bottom: 4px; }

.d1-chip { display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 4px; font: 700 .66rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; background: #06140d; color: #3ddc8a; vertical-align: 1px; }
.health-signals__info { background: #e6f3ec !important; color: #0f5a33 !important; }
.d1-panel { border-left: 4px solid #3ddc8a; }

/* ---- Ndop × Matrix: the ADN website's laid cloth behind a hero (public/js/ndop/cloth.js) ---- */
/* The ground is the website's mist with studio light: bright from the upper left where the words are,
   cooler toward the cloth on the right, faintly grained so it never reads as a flat screen white. */
body.app, body.cloth-ground {
  background-color: #f1f3ef;
  background-image:
    radial-gradient(1100px 820px at 8% -6%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 62%),
    radial-gradient(1200px 1000px at 104% 18%, rgba(178, 198, 204, .38), rgba(178, 198, 204, 0) 64%),
    radial-gradient(900px 700px at 60% 110%, rgba(47, 138, 87, .07), rgba(47, 138, 87, 0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .32 0 0 0 0 .36 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(40, 50, 70, .018) 0 1px, transparent 1px 4px);
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
}
/* The layer sits behind positioned content: text, forms and the header stay in front of the cloth. */
.ndop-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
/* Without WebGL (or before it starts): a still indigo cloth that fades the same way. */
.ndop-drape {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 28%, rgba(231, 237, 246, .7) 29% 31%, transparent 32%) 0 0 / 48px 48px,
    linear-gradient(45deg, transparent 46%, rgba(231, 237, 246, .55) 47% 53%, transparent 54%) 0 0 / 48px 48px,
    #1c2c5a;
  -webkit-mask: linear-gradient(90deg, rgba(0,0,0,.02) 46%, #000 84%), linear-gradient(0deg, transparent, #000 26%); -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, rgba(0,0,0,.02) 46%, #000 84%) intersect, linear-gradient(0deg, transparent, #000 26%);
}
html.ndop-live .ndop-drape { background: none; -webkit-mask: none; mask: none; }
.demo-banner { position: relative; z-index: 21; }
/* The header stays above the cloth at every width (on phones it is not sticky, so not positioned). */
html.ndop-live .site-header { position: relative; z-index: 20; }
@media (min-width: 761px) { html.ndop-live .site-header { position: sticky; top: 0; } }

/* Sign-in: the website's hero. The cloth lies behind the whole hero: absent under the forms, full on
   the right, gone before any edge. */
.cloth-hero { position: relative; overflow-x: clip; min-height: calc(100svh - 110px); }
.cloth-hero__drape { position: absolute; z-index: 0; top: -16vh; left: -6vw; right: -6vw; bottom: 0;
  --ndop-fade-x0: .46; --ndop-fade-x1: .84; --ndop-fade-y0: 0; --ndop-fade-y1: .24; --ndop-floor: 0; --ndop-tilt: 46; }
.cloth-hero__copy { position: relative; z-index: 2; }
.auth.cloth-hero__copy { padding-top: var(--s6); padding-bottom: var(--s7); }
.auth-cards { display: grid; gap: var(--s4); max-width: min(520px, 44vw); }
@media (max-width: 900px) {
  /* Phones, as on the website: the cloth across the top, dissolving downward; the forms below it. */
  .cloth-hero__drape { --ndop-fade-x0: 0; --ndop-fade-x1: 0; --ndop-fade-y0: .55; --ndop-fade-y1: .82; --ndop-floor: 1; }
  .auth.cloth-hero__copy { padding-top: 38svh; }
  .auth-cards { max-width: none; }
}

/* Participant and staff homes: no box. The hero is open ground; the copy keeps the left half and the
   cloth lies behind the whole hero, reaching the window's right edge and slipping under the top bar. */
.content > .alert { position: relative; z-index: 1; }
.dash-hero--cloth { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 20px; min-height: clamp(360px, 52vh, 520px);
  padding: clamp(12px, 3vh, 32px) 0 clamp(28px, 6vh, 64px); margin-bottom: 8px; border-radius: 0; color: var(--ink); background: none; box-shadow: none; overflow: visible; isolation: auto; }
.dash-hero--cloth::after { display: none; }
.dash-hero--cloth > :not(.ndop-drape) { position: relative; z-index: 1; max-width: min(620px, 50%); }
.dash-hero__drape { position: absolute; z-index: 0; top: -110px; left: 0; right: calc(-1 * clamp(20px, 3vw, 40px)); bottom: 0; pointer-events: none;
  --ndop-fade-x0: .42; --ndop-fade-x1: .82; --ndop-fade-y0: 0; --ndop-fade-y1: .26; --ndop-floor: 0; --ndop-tilt: 46; }
.dash-hero--cloth .dash-hero__eyebrow { font: 500 .74rem/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .06em; color: var(--muted); }
.dash-hero--cloth h1 { color: var(--ink); font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.6rem); line-height: .95; margin: 0 0 12px; }
.dash-hero--cloth .dash-hero__text p:last-child { color: #44464d; font-size: 1.05rem; }
.dash-hero--cloth .dash-next { align-self: start; padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.72); border: 1px solid rgba(20,24,36,.12); backdrop-filter: blur(10px) saturate(1.2); box-shadow: 0 18px 40px -30px rgba(20,24,36,.45); }
.dash-hero--cloth .dash-next__label { color: var(--green-700); }
.dash-hero--cloth .dash-next__title { color: var(--ink); font-size: 1.25rem; }
.dash-hero--cloth .dash-next__text { color: #44464d; }
.dash-hero--cloth .dash-quick a { background: rgba(255,255,255,.72); border-color: rgba(20,24,36,.12); color: var(--ink); backdrop-filter: blur(8px); }
.dash-hero--cloth .dash-quick a:hover { background: #fff; color: var(--ink); }
.dash-hero--cloth .dash-quick .i { color: var(--green-700); }
@media (max-width: 900px) {
  /* Phones: the cloth across the top, dissolving downward; the greeting comes below it. */
  .dash-hero--cloth { min-height: 0; padding-top: 240px; }
  .dash-hero--cloth > :not(.ndop-drape) { max-width: none; }
  .dash-hero__drape { top: -90px; --ndop-fade-x0: 0; --ndop-fade-x1: 0; --ndop-fade-y0: .55; --ndop-fade-y1: .78; --ndop-floor: 1; }
}

/* =====================================================================
   FINISH — tonal gradient glass, after the Impact Diaspora website
   (owner direction, 2026-10-31; replaces the 2026-09-25 flat-button rule).
   Every surface is a slow diagonal gradient from a lit, semi-transparent
   tint to a deeper, more transparent one, edged by a 1px hairline and a
   faint top highlight, with a long soft drop. ADN colours only: warm night
   and gold on the stages, mist white and green in the workspace. No bevel,
   no text shadow, no per-card colours. Blur only where something moves
   behind (header, menus, cloth heroes), to stay light on the GPU.
   ===================================================================== */
:root {
  --fin-night: linear-gradient(150deg, rgba(255,244,222,.085) 0%, rgba(255,244,222,.028) 46%, rgba(8,6,4,.32) 100%);
  --fin-night-hi: linear-gradient(150deg, rgba(255,244,222,.12) 0%, rgba(255,244,222,.045) 46%, rgba(8,6,4,.28) 100%);
  --fin-night-edge: inset 0 1px 0 rgba(255,244,220,.085), inset 0 0 0 1px rgba(243,195,71,.12);
  --fin-night-edge-hi: inset 0 1px 0 rgba(255,244,220,.12), inset 0 0 0 1px rgba(243,195,71,.3);
  --fin-night-drop: 0 34px 70px -46px rgba(0,0,0,.9);
  --fin-mist: linear-gradient(155deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.74) 52%, rgba(244,247,242,.6) 100%);
  --fin-mist-edge: inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(17,26,22,.075);
  --fin-mist-drop: 0 24px 50px -36px rgba(17,40,28,.38);
  --fin-green: linear-gradient(135deg, #075f31 0%, #0a8442 52%, #06572d 100%);
  --fin-green-hi: linear-gradient(135deg, #0a6d39 0%, #12944c 52%, #076434 100%);
  --fin-gold: linear-gradient(120deg, #f8de8c 0%, #efc451 48%, #dcaa33 100%);
}

/* ---------- buttons ---------- */
.btn, .btn:hover, .btn:active { transition: filter .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease; }
.btn { background: var(--fin-mist); box-shadow: var(--fin-mist-edge), 0 6px 16px -12px rgba(17,40,28,.4); color: var(--ink); }
.btn:hover { background: var(--fin-mist); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(17,26,22,.16), 0 10px 22px -14px rgba(17,40,28,.45); }
.btn:active { filter: brightness(.97); }
.btn--primary, body.app .btn--primary { background: var(--fin-green); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(0,60,30,.35), 0 14px 30px -16px rgba(0,120,60,.6); }
.btn--primary:hover, body.app .btn--primary:hover { background: var(--fin-green-hi); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.26), inset 0 0 0 1px rgba(0,60,30,.35), 0 18px 34px -16px rgba(0,120,60,.7); }
.btn--gold { background: var(--fin-gold); color: #1d1500; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 0 0 1px rgba(150,104,0,.25), 0 14px 30px -18px rgba(220,170,51,.7); }
.btn--gold:hover { background: var(--fin-gold); filter: brightness(1.05); color: #1d1500; }
.btn--light { background: linear-gradient(150deg, rgba(255,255,255,.2), rgba(255,255,255,.06)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.22); backdrop-filter: blur(10px); }
.btn--light:hover { background: linear-gradient(150deg, rgba(255,255,255,.28), rgba(255,255,255,.1)); color: #fff; }
.btn--ghost, .btn--ghost:hover { background: transparent; box-shadow: none; }
.btn--ghost:hover { background: rgba(17,26,22,.05); }
body.content-page main .btn:not(.btn--primary):not(.btn--gold):not(.btn--light), body.home .explore .btn:not(.btn--primary) { background: var(--fin-night-hi); box-shadow: var(--fin-night-edge); color: #f4ecdc; }
body.content-page main .btn:not(.btn--primary):not(.btn--gold):not(.btn--light):hover, body.home .explore .btn:not(.btn--primary):hover { background: var(--fin-night-hi); box-shadow: var(--fin-night-edge-hi); color: #fff; }
.lang-switch button, .chip { background: var(--fin-mist); box-shadow: var(--fin-mist-edge); }
.lang-switch button:hover { background: var(--fin-mist); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(17,26,22,.16); }
.chip.is-on { background: linear-gradient(135deg, #0b3a22, #13502f); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
body.content-page .chip { background: var(--fin-night); box-shadow: var(--fin-night-edge); color: var(--ink-mid); }
body.content-page .chip.is-on { background: linear-gradient(135deg, color-mix(in srgb, var(--room) 88%, #fff), var(--room)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); color: #14110d; }
.cf-action--primary .cf-action__link { background: var(--fin-green); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 14px 30px -16px rgba(0,120,60,.6); }
.cf-control { background: linear-gradient(150deg, rgba(40,33,25,.86), rgba(14,11,8,.9)); box-shadow: inset 0 1px 0 rgba(255,244,220,.08), inset 0 0 0 1px rgba(243,195,71,.12); }
.cf-control:hover { background: linear-gradient(150deg, rgba(56,46,34,.9), rgba(20,16,12,.92)); }

/* ---------- workspace (mist ground): cards, tiles, tables, fields ---------- */
.card, body.app .card, .stat, .state-axes, .table-wrap, .health-row, .dash-link {
  background: var(--fin-mist); border-color: transparent; box-shadow: var(--fin-mist-edge), var(--fin-mist-drop); }
.card--quiet, body.app .card--quiet { background: linear-gradient(155deg, rgba(255,255,255,.66), rgba(255,255,255,.38)); box-shadow: var(--fin-mist-edge); }
.stat--key { background: linear-gradient(155deg, rgba(232,245,236,.95), rgba(255,255,255,.7)); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(0,120,60,.22), var(--fin-mist-drop); }
.stat--warn { box-shadow: var(--fin-mist-edge), inset 0 2px 0 rgba(243,195,71,.8), var(--fin-mist-drop); }
.stat--bad { box-shadow: var(--fin-mist-edge), inset 0 2px 0 rgba(232,72,40,.7), var(--fin-mist-drop); }
.health-row { border-left-width: 3px; border-left-style: solid; }
.health-row--green { border-left-color: rgba(22,135,74,.7); } .health-row--amber { border-left-color: rgba(214,166,40,.85); } .health-row--red { border-left-color: rgba(200,60,32,.75); }
.pair { border-left: 3px solid rgba(0,120,60,.6); } .pair--none { border-left-color: rgba(17,26,22,.16); background: linear-gradient(155deg, rgba(255,255,255,.7), rgba(255,255,255,.45)); }
.d1-panel { border-left: 3px solid rgba(0,120,60,.45); }
.guide-actions__item { background: linear-gradient(150deg, rgba(255,255,255,.8), rgba(255,255,255,.5)); box-shadow: var(--fin-mist-edge); border-left-width: 3px; }
.guide-actions__item--urgent { background: linear-gradient(150deg, rgba(253,240,235,.9), rgba(255,255,255,.55)); }
.guide-actions__item--soon { background: linear-gradient(150deg, rgba(254,248,232,.9), rgba(255,255,255,.55)); }
.alert { box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.badge, .tag { box-shadow: inset 0 0 0 1px rgba(17,26,22,.06); }
.badge--ok { background: linear-gradient(150deg, rgba(220,239,227,.95), rgba(236,246,240,.8)); }
.badge--warn { background: linear-gradient(150deg, rgba(252,238,196,.95), rgba(254,246,224,.8)); }
.badge--bad { background: linear-gradient(150deg, rgba(250,222,214,.95), rgba(253,238,234,.8)); }
.empty { background: linear-gradient(155deg, rgba(255,255,255,.55), rgba(255,255,255,.25)); border-color: rgba(17,26,22,.14); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="password"], input:not([type]), select, textarea {
  background-color: #fff; background-image: linear-gradient(180deg, rgba(255,255,255,1), rgba(247,249,246,.9)); box-shadow: inset 0 1px 2px rgba(17,26,22,.05); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(0,120,60,.14), inset 0 1px 2px rgba(17,26,22,.05); }
.site-header { background: linear-gradient(180deg, rgba(253,253,250,.86), rgba(246,248,244,.72)); backdrop-filter: saturate(1.3) blur(14px); border-bottom-color: rgba(17,26,22,.07); }
.nav-panel { background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(248,250,246,.9)); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 #fff, 0 28px 60px -30px rgba(17,40,28,.4); }
.nav-panel a:hover, .nav-panel a:focus-visible { background: linear-gradient(150deg, rgba(0,120,60,.08), rgba(0,120,60,.02)); }
.nav-panel a[aria-current="page"] { background: linear-gradient(150deg, rgba(243,195,71,.2), rgba(243,195,71,.06)); }
.sidebar { background: linear-gradient(180deg, #0f2a1d 0%, #0b2117 55%, #08190f 100%); box-shadow: inset -1px 0 0 rgba(255,255,255,.05); }
.nav a[aria-current="page"] { background: linear-gradient(135deg, rgba(10,132,66,.9), rgba(7,95,49,.75)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 2px 0 0 var(--gold-500); }
.nav a:hover { background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); }

/* ---------- night stages (landing below the Carrefour, room pages, document pages) ---------- */
body.home .cf-after { background:
  radial-gradient(1100px 700px at 12% 0%, rgba(243,195,71,.06), transparent 65%),
  radial-gradient(900px 900px at 100% 60%, rgba(60,140,90,.05), transparent 70%),
  linear-gradient(180deg, #15120e 0%, #120f0b 50%, #0f0c09 100%); }
body.home .principles .card, body.home .explore .c-related__card,
body.content-page .c-card, body.content-page .c-related__card, body.content-page .c-mod, body.content-page .c-check > li,
body.content-page .c-timeline > li, body.content-page .c-dl > div, body.content-page .c-pager a, body.content-page .c-aside__card,
body.content-page .c-cohorts li, body.content-page .c-highlights li {
  background: var(--fin-night); box-shadow: var(--fin-night-edge), var(--fin-night-drop); border-radius: 18px; }
body.home .explore .c-related__card:hover, body.content-page .c-card:hover, body.content-page .c-related__card:hover, body.content-page .c-mod:hover {
  background: var(--fin-night-hi); box-shadow: var(--fin-night-edge-hi), 0 40px 70px -44px rgba(0,0,0,.95); }
body.content-page .c-card::before { opacity: .35; }
body.content-page .c-highlights li { border-left: 0; }
body.content-page .c-related { background: linear-gradient(180deg, rgba(255,244,222,.02), rgba(0,0,0,.25)); }
body.content-page .site-footer, body.home .site-footer { background: linear-gradient(180deg, #100d0a, #0a0806); }
/* Module tiles: one quiet gold accent instead of four pathway colours. */
body.content-page .c-mod--gold, body.content-page .c-mod--green, body.content-page .c-mod--teal, body.content-page .c-mod--red { --acc: rgba(243,195,71,.55); }

/* ---------- pathways: tiers, not a wall of coloured tiles ---------- */
.c-paths { display: grid; gap: 14px; }
.c-paths__tier { margin: 18px 0 2px; font: 650 .72rem/1.4 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.c-paths__tier:first-child { margin-top: 0; }
.c-paths__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.c-path { position: relative; display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.6vw, 34px); border-radius: 22px; text-decoration: none; color: var(--ink);
  background: var(--fin-mist); box-shadow: var(--fin-mist-edge), var(--fin-mist-drop); transition: box-shadow .25s var(--ease), background .25s var(--ease); }
.c-path--main { min-height: 250px; }
.c-path__top { display: flex; justify-content: space-between; align-items: baseline; font: 600 .78rem/1 var(--font-ui); letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.c-path__index { color: #a9821f; }
.c-path__title { font-family: var(--font-display); font-weight: 480; letter-spacing: -.025em; line-height: 1.02; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); }
.c-path--spec .c-path__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.c-path__lead { color: var(--muted); font-size: 1rem; line-height: 1.55; max-width: 52ch; }
.c-path__go { margin-top: auto; padding-top: 6px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.c-path__go span { display: inline-block; transition: transform .2s var(--ease); }
.c-path:hover .c-path__go span { transform: translateX(4px); }
.c-ledger { list-style: none; margin: 0; padding: 6px 0; border-radius: 22px; background: var(--fin-mist); box-shadow: var(--fin-mist-edge), var(--fin-mist-drop); }
.c-ledger li + li { border-top: 1px solid rgba(17,26,22,.07); }
.c-ledger a { display: grid; grid-template-columns: minmax(150px, .32fr) 1fr 24px; gap: 6px 22px; align-items: baseline; padding: 18px clamp(18px, 2.4vw, 30px); color: var(--ink); text-decoration: none; transition: background .2s var(--ease); }
.c-ledger a:hover { background: linear-gradient(90deg, rgba(243,195,71,.08), transparent 70%); }
.c-ledger strong { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -.01em; }
.c-ledger span { color: var(--muted); font-size: .94rem; line-height: 1.5; }
.c-ledger .c-ledger__go { color: #a9821f; text-align: right; transition: transform .2s var(--ease); }
.c-ledger a:hover .c-ledger__go { transform: translateX(4px); }
@media (max-width: 760px) {
  .c-paths__row { grid-template-columns: 1fr; }
  .c-path--main { min-height: 0; }
  .c-ledger a { grid-template-columns: 1fr 20px; }
  .c-ledger a > strong { grid-column: 1; }
  .c-ledger a > span:not(.c-ledger__go) { grid-column: 1; grid-row: 2; }
  .c-ledger .c-ledger__go { grid-row: 1; grid-column: 2; }
}
/* on the night stages */
body.home .c-paths__tier, body.content-page .c-paths__tier { color: #8f8470; }
body.home .c-path, body.content-page .c-path, body.home .c-ledger, body.content-page .c-ledger { background: var(--fin-night); box-shadow: var(--fin-night-edge), var(--fin-night-drop); color: #f4ecdc; }
body.home .c-path:hover, body.content-page .c-path:hover { background: var(--fin-night-hi); box-shadow: var(--fin-night-edge-hi), 0 40px 70px -44px rgba(0,0,0,.95); color: #f4ecdc; }
body.home .c-path--main, body.content-page .c-path--main { background: radial-gradient(120% 90% at 100% 0%, rgba(243,195,71,.07), transparent 55%), var(--fin-night); }
body.home .c-path__top, body.content-page .c-path__top { color: #8f8470; }
body.home .c-path__index, body.content-page .c-path__index, body.home .c-ledger .c-ledger__go, body.content-page .c-ledger .c-ledger__go { color: #e2bd5c; }
body.home .c-path__lead, body.content-page .c-path__lead, body.home .c-ledger span, body.content-page .c-ledger span { color: #a89c86; }
body.home .c-path__go, body.content-page .c-path__go { color: #cbbfa8; }
body.home .c-ledger li + li, body.content-page .c-ledger li + li { border-top-color: rgba(243,195,71,.09); }
body.home .c-ledger a, body.content-page main .c-ledger a, body.content-page main a.c-path, body.home a.c-path { color: #f4ecdc; }
body.home .c-ledger a:hover, body.content-page .c-ledger a:hover { background: linear-gradient(90deg, rgba(243,195,71,.07), transparent 70%); }
@media (prefers-reduced-motion: reduce) { .c-path__go span, .c-ledger__go { transition: none; } }
@media (prefers-contrast: more) { .c-path, .c-ledger { outline: 1px solid currentColor; } }

/* d1 worker state (self-hosted d1 sleeps at zero workers) */
.d1-worker { display: flex; align-items: center; gap: 8px; margin: 8px 0 6px; color: var(--ink-2); }
.d1-worker__dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa39d; box-shadow: 0 0 0 3px rgba(154,163,157,.18); flex: none; }
.d1-worker--awake .d1-worker__dot { background: #16874a; box-shadow: 0 0 0 3px rgba(22,135,74,.18); }
.d1-worker--waking .d1-worker__dot { background: #d6a628; box-shadow: 0 0 0 3px rgba(214,166,40,.2); animation: d1-pulse 1.4s ease-in-out infinite; }
@keyframes d1-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .d1-worker--waking .d1-worker__dot { animation: none; } }

/* Preview note: a quiet strip in the same finish, not a hazard band (ADR-17) */
.demo-banner { background: linear-gradient(90deg, rgba(246,241,226,.96), rgba(250,248,240,.9) 50%, rgba(246,241,226,.96)); color: #5b4a1c; border-bottom: 1px solid rgba(169,130,31,.18); padding: 5px 16px; font-size: .8rem; letter-spacing: .005em; }
.demo-banner strong { background: linear-gradient(120deg, #f8de8c, #e3b440); color: #2a1d00; padding: 1px 9px; border-radius: 99px; margin-right: 8px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
