/* ==========================================================================
   JSEO 2026 - Journee Scientifique des Ecosystemes d'Optimisation
   Design system. Flat surfaces only, no gradients.
   ========================================================================== */

:root {
  --navy:        #0f2557;
  --navy-deep:   #0a1b40;
  --navy-soft:   #1c3a7a;
  --amber:       #f2b417;
  --amber-ink:   #8a6300;

  --ink:         #14181f;
  --muted:       #5c6472;
  --muted-light: #858c99;

  --paper:       #ffffff;
  --surface:     #f6f7f9;
  --surface-alt: #eef1f5;
  --line:        #e2e6ec;
  --line-strong: #cfd5df;

  --danger:      #b3261e;
  --danger-bg:   #fdf0ef;
  --danger-line: #f2c9c5;

  --font-sans:    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --wrap-narrow: 760px;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
}

/* --------------------------------------------------------- reset / base */

*, *::before, *::after { box-sizing: border-box; }

/* An author display rule outranks the UA style for [hidden], so state it. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.05rem); letter-spacing: -0.026em; }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.015em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.7rem 1.1rem; z-index: 200;
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------- layout */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: #dfe5f0; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 68ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 1.03rem; margin-bottom: 0; }
.section--navy .section-head p { color: #b9c6de; }

.eyebrow {
  display: block;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin-bottom: 0.85rem;
}
.section--navy .eyebrow { color: var(--amber); }

.lead { font-size: 1.14rem; line-height: 1.68; color: var(--ink); }

/* --------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; position: relative; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 40px; height: auto; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; color: var(--navy-deep); letter-spacing: -0.02em; }
.brand-sub { font-size: 0.705rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); font-weight: 550; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 13px;
  font-size: 0.93rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  border-radius: var(--r-sm);
}
.nav a:hover { background: var(--surface-alt); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 650; box-shadow: inset 0 -2px 0 var(--navy); border-radius: 0; }
.nav .btn { margin-left: 10px; }
.nav .btn:hover { background: var(--navy-deep); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 9px 11px; cursor: pointer; color: var(--ink);
}

/* --------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-sans);
  font-size: 0.95rem; font-weight: 600; line-height: 1;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); background: var(--surface); }
.btn--onnavy { background: #fff; color: var(--navy-deep); }
.btn--onnavy:hover { background: #e9edf5; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* --------------------------------------------------------- hero */

.hero { background: var(--navy); color: #ccd6e8; padding: clamp(48px, 7vw, 84px) 0 clamp(52px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 0.35em; }
.hero .kicker {
  font-size: 0.78rem; font-weight: 650; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.2rem; display: block;
}
.hero .subtitle {
  font-size: clamp(1.03rem, 1.9vw, 1.22rem);
  color: #b9c6de; max-width: 46ch; margin-bottom: 1.9rem; line-height: 1.6;
}
.hero-logo { width: clamp(190px, 21vw, 250px); border-radius: var(--r-lg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px 40px;
  margin: 2.4rem 0 0; padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
}
.hero-meta li { padding: 0; margin: 0; }
.hero-meta .m-label {
  display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #8ea1c4; margin-bottom: 0.3rem;
}
.hero-meta .m-value { font-weight: 600; color: #fff; font-size: 1rem; }

/* --------------------------------------------------------- prose */

.prose > * + * { margin-top: 1.1em; }
.prose h3 { margin-top: 2em; }
.prose ul { margin: 0; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; }
.prose ul li::before {
  content: ""; position: absolute; left: 0.3rem; top: 0.72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--navy-soft);
}

/* --------------------------------------------------------- cards */

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 26px 28px;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0; }
.card-icon { color: var(--navy-soft); margin-bottom: 16px; }

.axis {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 30px 32px;
  display: flex; flex-direction: column;
}
.axis-num {
  font-family: var(--font-sans); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-soft);
  margin-bottom: 0.85rem;
}
.axis h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; color: var(--navy-deep); margin-bottom: 0.45rem; line-height: 1.25; }
.axis .axis-tag { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.3rem; }
.axis ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.axis ul li {
  position: relative; padding: 11px 0 11px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.945rem; line-height: 1.55;
}
.axis ul li:last-child { border-bottom: 0; }
.axis ul li::before {
  content: ""; position: absolute; left: 2px; top: 1.28em;
  width: 8px; height: 1px; background: var(--line-strong);
}

/* --------------------------------------------------------- numbered list */

.numbered { list-style: none; margin: 0; padding: 0; counter-reset: obj; }
.numbered li {
  counter-increment: obj;
  position: relative;
  padding: 18px 0 18px 56px;
  border-bottom: 1px solid var(--line);
}
.numbered li:first-child { border-top: 1px solid var(--line); }
.numbered li::before {
  content: counter(obj, decimal-leading-zero);
  position: absolute; left: 0; top: 19px;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  color: var(--navy-soft); letter-spacing: 0.04em;
}

/* --------------------------------------------------------- key dates */

.dates { border-top: 1px solid var(--line); }
.dates-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px; align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.dates-row .d-label { font-weight: 550; }
.dates-row .d-value { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.015em; color: var(--navy-deep); white-space: nowrap; }
.tag-now {
  display: inline-block; margin-left: 12px;
  font-size: 0.68rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber-ink); background: #fdf3dc;
  padding: 3px 8px; border-radius: 100px; vertical-align: 2px;
}
.section--navy .dates, .section--navy .dates-row { border-color: rgba(255, 255, 255, 0.16); }
.section--navy .dates-row .d-value { color: #fff; }
.section--navy .dates-row .d-label { color: #c3cfe4; }

/* --------------------------------------------------------- quote */

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.9vw, 1.95rem);
  line-height: 1.42;
  color: var(--navy-deep);
  max-width: 24ch;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.section--navy .quote { color: #fff; }
.quote-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.quote-note { color: var(--muted); font-size: 1.02rem; }
.section--navy .quote-note { color: #b9c6de; }

/* --------------------------------------------------------- callout */

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--surface);
  padding: 22px 26px;
}
.callout p { margin-bottom: 0; font-size: 0.98rem; }
.callout strong { color: var(--navy-deep); }

.todo {
  display: inline-block;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--amber-ink); background: #fdf3dc;
  border-radius: var(--r-sm); padding: 2px 8px;
}

/* --------------------------------------------------------- info list */

.info-list { border-top: 1px solid var(--line); margin: 0; }
.info-list > div {
  display: grid; grid-template-columns: 190px 1fr; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.info-list dt { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: 4px; }
.info-list dd { margin: 0; }

/* --------------------------------------------------------- committee */

.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.people li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.people .p-name { font-weight: 600; display: block; }
.people .p-aff { font-size: 0.89rem; color: var(--muted); }

/* --------------------------------------------------------- forms */

.form-layout { display: grid; grid-template-columns: 1fr 300px; gap: clamp(32px, 5vw, 64px); align-items: start; }

.fieldset { border: 0; margin: 0 0 44px; padding: 0; }
.fieldset > legend {
  font-family: var(--font-display); font-size: 1.28rem; font-weight: 700; letter-spacing: -0.02em; color: var(--navy-deep);
  padding: 0 0 14px; margin-bottom: 24px; width: 100%;
  border-bottom: 1px solid var(--line);
}
.legend-step {
  display: inline-block; min-width: 26px; margin-right: 10px;
  font-family: var(--font-sans); font-size: 0.74rem; font-weight: 700;
  color: var(--navy-soft); letter-spacing: 0.1em; vertical-align: 3px;
}

.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.field label, .field .lbl {
  display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 7px;
}
.field .req { color: var(--danger); font-weight: 600; margin-left: 2px; }
.field .hint { display: block; font-size: 0.83rem; color: var(--muted); font-weight: 400; margin-top: 6px; line-height: 1.5; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit; font-size: 0.97rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 170px; line-height: 1.65; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235c6472' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 37, 87, 0.12);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field .err { display: none; font-size: 0.84rem; color: var(--danger); margin-top: 6px; font-weight: 500; }
.field .err.show { display: block; }

.counter { float: right; font-size: 0.8rem; color: var(--muted-light); font-weight: 400; }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice {
  display: flex; align-items: flex-start; gap: 11px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 13px 15px; cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice:hover { border-color: var(--navy-soft); }
.choice input { margin: 3px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.choice-label { font-size: 0.93rem; font-weight: 550; line-height: 1.4; }
.choice-desc { display: block; font-size: 0.84rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.choice.is-checked { border-color: var(--navy); background: #f4f6fa; }

.consent { display: flex; align-items: flex-start; gap: 11px; font-size: 0.92rem; color: var(--muted); line-height: 1.55; }
.consent input { margin: 4px 0 0; accent-color: var(--navy); flex-shrink: 0; }

/* file drop */
.dropzone {
  position: relative;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 30px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--navy); background: #f2f5fa; }
.dropzone.is-over { border-style: solid; }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dz-icon { color: var(--navy-soft); margin: 0 auto 12px; }
.dz-main { font-weight: 600; font-size: 0.96rem; color: var(--ink); }
.dz-main u { text-decoration-color: var(--navy-soft); }
.dz-sub { font-size: 0.85rem; color: var(--muted); margin-top: 5px; }

.file-chip {
  display: none; align-items: center; gap: 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--paper); padding: 12px 14px; margin-top: 12px;
}
.file-chip.show { display: flex; }
.file-chip .fc-icon { color: var(--navy); flex-shrink: 0; }
.file-chip .fc-meta { min-width: 0; flex: 1; }
.file-chip .fc-name { font-size: 0.92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-chip .fc-size { font-size: 0.82rem; color: var(--muted); }
.file-chip button {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-size: 0.85rem; font-weight: 600; padding: 6px 8px; border-radius: var(--r-sm);
}
.file-chip button:hover { color: var(--danger); background: var(--surface); }

.form-submit { border-top: 1px solid var(--line); padding-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-submit .note { font-size: 0.87rem; color: var(--muted); max-width: 40ch; }

.form-status { display: none; border-radius: var(--r-md); padding: 16px 20px; margin-bottom: 26px; font-size: 0.95rem; }
.form-status.show { display: block; }
.form-status--err { background: var(--danger-bg); border: 1px solid var(--danger-line); color: #8c1d18; }
.form-status--info { background: #eef2f8; border: 1px solid #cfdaea; color: var(--navy-deep); }
.form-status p { margin-bottom: 0.5em; }
.form-status p:last-child { margin-bottom: 0; }

.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
  html { scroll-behavior: auto; }
}

/* aside */
.aside-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; margin-bottom: 20px; }
.aside-box h3 { font-size: 1rem; margin-bottom: 0.8rem; }
.aside-box ul { list-style: none; margin: 0; padding: 0; }
.aside-box li { font-size: 0.9rem; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--line); line-height: 1.55; }
.aside-box li:last-child { border-bottom: 0; padding-bottom: 0; }
.aside-box li strong { color: var(--ink); font-weight: 600; display: block; }
.aside-box--navy { background: var(--navy); border-color: var(--navy); }
.aside-box--navy h3 { color: #fff; }
.aside-box--navy li { color: #b9c6de; border-color: rgba(255, 255, 255, 0.15); }
.aside-box--navy li strong { color: #fff; }
.aside-box--navy a { color: #fff; }

/* success panel */
.success { display: none; }
.success.show { display: block; }
.success-mark {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.ref-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem; font-weight: 600; color: var(--navy-deep);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 14px; display: inline-block;
}

/* --------------------------------------------------------- page header */

.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 64px) 0; }
.page-head h1 { margin-bottom: 0.3em; }
.page-head p { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin-bottom: 0; }
.crumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs span { margin: 0 0.5em; color: var(--line-strong); }

/* --------------------------------------------------------- footer */

.site-footer { background: var(--navy-deep); color: #97a6c2; padding: clamp(48px, 6vw, 68px) 0 32px; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.footer-brand img { width: 46px; border-radius: 6px; }
.footer-brand .f-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; line-height: 1.25; }
.footer-brand .f-sub { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #7d8ead; }
.site-footer p { color: #97a6c2; max-width: 42ch; }
.site-footer h4 { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin: 0 0 14px; font-family: var(--font-sans); font-weight: 650; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #97a6c2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.85rem; color: #7d8ead;
}

/* --------------------------------------------------------- utilities */

.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 2.75rem; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .form-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { width: 168px; order: -1; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .nav {
    display: none; position: absolute; top: 100%; left: -24px; right: -24px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin: 14px 0 0; border-bottom: 0; }
  .nav-toggle { display: block; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .quote-wrap { grid-template-columns: 1fr; }
  .quote { max-width: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .choice-grid { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .info-list > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .dates-row { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .form-submit, .nav-toggle { display: none; }
  body { font-size: 11pt; }
  .hero, .section--navy { background: #fff; color: #000; }
  .hero h1, .hero .subtitle, .hero-meta .m-value { color: #000; }
}

/* --------------------------------------------------------- additions */

.grid--split { gap: clamp(32px, 5vw, 72px); align-items: start; }
.lead--muted { color: var(--muted); margin-bottom: 2rem; }
.card--axis h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--navy-deep); line-height: 1.25; }
.quote--center { max-width: none; margin-inline: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface-alt); padding: 2px 6px; border-radius: 3px; }
.cta-lede { margin-bottom: 2rem; }
.textarea--short { min-height: 96px; }
.nav .btn[aria-current="page"] { color: #fff; box-shadow: none; border-radius: var(--r-sm); }
.aside-box a, .site-footer a { overflow-wrap: anywhere; }

/* The nav link rules outrank the button rules on specificity, so the header
   call to action needs its colours restated at nav level. */
.nav a.btn--primary { color: #fff; }
.nav a.btn--primary:hover { background: var(--navy-deep); color: #fff; }
.nav a.btn--primary[aria-current="page"] { color: #fff; box-shadow: none; border-radius: var(--r-sm); }
.success .lbl { display: block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cf-turnstile { margin-top: 4px; min-height: 65px; }

/* --------------------------------------------------------- auth gate */

.gate {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: clamp(28px, 4vw, 44px);
}
.gate-state { max-width: 52ch; }
.gate-state h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.gate-state p { color: var(--muted); margin-bottom: 0; }
.gate-icon { color: var(--navy-soft); margin-bottom: 16px; }
.gate-note { font-size: 0.87rem; margin-top: 1rem; }
#gate-loading { display: flex; align-items: center; gap: 12px; }

.spinner--ink { border-color: var(--line-strong); border-top-color: var(--navy); }

.signed-in {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--surface);
  padding: 12px 16px; margin-bottom: 32px;
  font-size: 0.92rem; color: var(--muted);
}
.signed-in svg { color: var(--navy); flex-shrink: 0; }
.signed-in strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.signed-in button {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 0.87rem; font-weight: 600; color: var(--navy);
  padding: 4px 8px; border-radius: var(--r-sm); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--line-strong);
}
.signed-in button:hover { background: var(--surface-alt); text-decoration-color: currentColor; }

.field input[readonly] { background: var(--surface); color: var(--muted); cursor: not-allowed; }
.field input[readonly]:focus { border-color: var(--line-strong); box-shadow: none; }
.counter--over { color: var(--danger); font-weight: 600; }

/* --------------------------------------------------------- language switch */

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-left: 14px;
  flex-shrink: 0;
}
.lang-switch a {
  padding: 6px 11px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--muted); text-decoration: none;
  border-radius: 0;
  line-height: 1.3;
}
.lang-switch a + a { border-left: 1px solid var(--line-strong); }
.lang-switch a:hover { background: var(--surface-alt); color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--navy); color: #fff; }
.lang-switch a[aria-current="true"]:hover { background: var(--navy-deep); color: #fff; }

@media (max-width: 780px) {
  .lang-switch { margin: 16px 0 0; align-self: flex-start; }
  .nav .lang-switch a { border-bottom: 0; padding: 8px 14px; }
}
