/* AMOS™ — amos.africa design system
   Tokens follow the website specification (Cahier des charges, §11). */

@font-face {
  font-family: "Public Sans"; src: url("../fonts/public-sans-var.woff") format("woff");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Spectral"; src: url("../fonts/spectral-500.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --navy: #08264A;
  --navy-deep: #061C38;
  --navy-line: #1D3C63;
  --gold: #C79A36;
  --gold-light: #E2C27A;
  --gold-wash: #F6EEDC;
  --white: #FFFFFF;
  --mist: #EEF3F7;
  --line: #D3DDE7;
  --ink: #12253D;
  --slate: #4E5F74;
  --blue: #225D8C;
  --success: #26734D;
  --amber: #A86500;
  --risk: #A02A2A;

  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);

  --space-s: 0.75rem;
  --space-m: 1.5rem;
  --space-l: 3rem;
  --space-xl: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --radius: 3px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.15; color: var(--navy); }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.005em; }
h3, h4 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-1); line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2rem; }
strong { font-weight: 700; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: 0.75rem 1rem;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2rem, 820px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.35rem;
  font: 600 var(--step--1)/1.2 var(--font-body);
  border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-deep); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-light); color: var(--navy-deep); }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--text { padding-inline: 0; min-height: auto; color: var(--blue); text-decoration: underline; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .6; cursor: progress; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-m); }

/* ---------- Header ---------- */
.utility { background: var(--navy-deep); color: #C9D5E3; font-size: var(--step--1); }
.utility .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.utility__tag { margin: 0; color: #AFC0D4; }
.utility ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; align-items: center; }
.utility a { color: #E4ECF4; text-decoration: none; }
.utility a:hover { color: var(--white); text-decoration: underline; }
.lang-toggle {
  display: inline-flex; border: 1px solid #3A5677; border-radius: 999px; overflow: hidden; font-weight: 600;
}
.lang-toggle a, .lang-toggle span { padding: 0.2rem 0.7rem; line-height: 1.6; }
.lang-toggle span[aria-current] { background: var(--gold); color: var(--navy-deep); }
.lang-toggle a { color: #E4ECF4; }
.lang-toggle a:hover { background: #12355F; text-decoration: none; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; min-height: 88px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 66px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; display: flex; gap: 0.15rem; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 0.55rem 0.7rem; color: var(--navy); font-weight: 600; font-size: var(--step--1);
  text-decoration: none; border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--gold); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--navy); }
.header-ctas { display: flex; gap: 0.5rem; }
.header-ctas .btn { min-height: 42px; padding: 0.5rem 0.9rem; }
.nav-toggle { display: none; }
.mobile-only { display: none; }

@media (max-width: 1120px) {
  .header-ctas .btn--secondary { display: none; }
}
@media (max-width: 980px) {
  .utility__tag { display: none; }
  .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; gap: .5rem; min-height: 44px;
    padding: .5rem .9rem; border: 2px solid var(--navy); background: var(--white); color: var(--navy);
    font: 600 var(--step--1) var(--font-body); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle__bars { width: 18px; height: 12px; position: relative; border-top: 2px solid; border-bottom: 2px solid; }
  .nav-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid; }
  .main-nav {
    position: fixed; inset: 0; z-index: 60; margin: 0; background: var(--white);
    padding: 1rem 1.25rem 2rem; overflow-y: auto; display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; margin-top: 1rem; }
  .main-nav a { font-size: var(--step-1); padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .main-nav__close {
    display: inline-flex; float: right; min-height: 44px; padding: .5rem .9rem; background: var(--white);
    border: 2px solid var(--navy); color: var(--navy); font: 600 var(--step--1) var(--font-body); border-radius: var(--radius); cursor: pointer;
  }
  .mobile-only { display: block; }
  .header-ctas { display: none; }
  .main-nav .header-ctas--mobile { display: flex; flex-direction: column; margin-top: 1.5rem; }
  .brand img { height: 50px; }
}
@media (min-width: 981px) { .main-nav__close, .header-ctas--mobile { display: none !important; } }
.mobile-cta { display: none; }
@media (max-width: 980px) {
  .mobile-cta {
    display: block; position: sticky; bottom: 0; z-index: 40; background: var(--white);
    border-top: 1px solid var(--line); padding: .6rem 1rem;
  }
  .mobile-cta .btn { width: 100%; }
}

/* ---------- Breadcrumb ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.5rem; font-size: var(--step--1); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: #8DA2BA; }
.crumbs a { color: #C9D7E6; }
.crumbs [aria-current] { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-xl); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #DCE5EF; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a:not(.btn) { color: var(--gold-light); }
.section--gold { background: var(--gold-wash); }
.section__head { margin-bottom: var(--space-l); max-width: 760px; }
.section__title { font-size: var(--step-3); }
.section__intro { font-size: var(--step-1); line-height: 1.5; color: var(--slate); }
.section--navy .section__intro { color: #C4D2E1; }

/* Home hero */
.hero { background: var(--navy); color: #DCE5EF; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(199,154,54,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199,154,54,.07) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.hero .container {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-block: clamp(3rem, 6vw, 5.5rem);
}
.hero__title { color: var(--white); font-size: var(--step-4); line-height: 1.1; margin-bottom: 1.25rem; }
.hero__lead { font-size: var(--step-1); line-height: 1.55; color: #D3DEEA; max-width: 34em; }
.hero__note { font-size: var(--step--1); color: #9FB3C9; margin-top: 1.5rem; }
.hero .btn--primary, .page-hero .btn--primary { background: var(--gold); color: var(--navy-deep); }
.hero .btn--primary:hover, .page-hero .btn--primary:hover { background: var(--gold-light); color: var(--navy-deep); }
.hero .btn--secondary { color: var(--white); border-color: rgba(255,255,255,.6); }
.hero .btn--secondary:hover { background: var(--white); color: var(--navy); }
.blueprint { width: 100%; max-width: 560px; justify-self: end; }
.blueprint text { font-family: var(--font-body); }
.blueprint .bp-draw { fill: none; stroke: var(--gold); stroke-width: 1.6; }
.blueprint .bp-thin { fill: none; stroke: rgba(226,194,122,.55); stroke-width: 1; stroke-dasharray: 3 4; }
.blueprint .bp-fill { fill: rgba(199,154,54,.08); stroke: var(--gold); stroke-width: 1.6; }
.blueprint .bp-label { fill: #F2E3BE; font-size: 13px; font-weight: 600; }
.blueprint .bp-small { fill: #9FB3C9; font-size: 10.5px; }
.blueprint .bp-title { fill: var(--white); font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: .08em; }
@media (prefers-reduced-motion: reduce) { .mega__inner { animation: none !important; } }
@media (prefers-reduced-motion: no-preference) {
  .blueprint .bp-anim { stroke-dasharray: 900; stroke-dashoffset: 900; animation: bp-draw 1.6s ease-out forwards; }
  .blueprint .bp-anim.d2 { animation-delay: .35s; }
  .blueprint .bp-anim.d3 { animation-delay: .7s; }
  .blueprint .bp-fade { opacity: 0; animation: bp-fade .6s ease-out 1.3s forwards; }
}
@keyframes bp-draw { to { stroke-dashoffset: 0; } }
@keyframes bp-fade { to { opacity: 1; } }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .blueprint { justify-self: start; max-width: 440px; }
}

/* Internal page hero */
.page-hero { background: var(--navy); color: #DCE5EF; padding-block: clamp(2.5rem, 5vw, 4.5rem); border-bottom: 4px solid var(--gold); }
.page-hero__title { color: var(--white); font-size: var(--step-4); max-width: 18em; margin-top: .5rem; }
.page-hero__lead { font-size: var(--step-1); line-height: 1.55; color: #D3DEEA; max-width: 40em; }
.page-hero .btn--secondary { color: var(--white); border-color: rgba(255,255,255,.6); }
.page-hero .btn--secondary:hover { background: var(--white); color: var(--navy); }

/* ---------- Badges ---------- */
.badge {
  display: inline-block; font-size: .8125rem; font-weight: 700; line-height: 1; padding: .4rem .6rem;
  border-radius: 2px; border: 1px solid currentColor;
}
.badge--available { color: #1F6A45; background: #E5F2EA; }
.badge--preparing { color: #7A4B00; background: #FBF0DD; }
.badge--pilot { color: #1D4F78; background: #E3EEF7; }
.page-hero .badge, .section--navy .badge { background: transparent; }
.page-hero .badge--available, .section--navy .badge--available { color: #9BD8B6; }
.page-hero .badge--preparing, .section--navy .badge--preparing { color: var(--gold-light); }
.page-hero .badge--pilot, .section--navy .badge--pilot { color: #A9CCEA; }

/* ---------- Cards ---------- */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards--3 { grid-template-columns: 1fr; } }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.section--white .card { background: var(--white); }
.section--mist .card { border-color: #D9E3EC; }
.section--navy .card { background: var(--navy-deep); border-color: var(--navy-line); }
.section--navy .card__text, .section--navy .card li { color: #C4D2E1; }
.card__kicker { font-size: var(--step--1); font-weight: 600; color: var(--slate); margin-bottom: .4rem; }
.section--navy .card__kicker { color: var(--gold-light); }
.card__title { font-size: var(--step-1); margin-bottom: .5rem; }
.card__text { color: var(--slate); margin-bottom: .75rem; }
.card__link { margin-top: auto; margin-bottom: 0; font-weight: 600; }
.card .badge { align-self: flex-start; margin-bottom: .9rem; }

/* Pillar cards — top rule marks the pillar */
.pillars .card { border-top: 4px solid var(--gold); }
.pillar__code { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: var(--gold); font-weight: 500; margin-bottom: .75rem; }

.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
.ticks li { position: relative; padding-left: 1.4rem; margin-bottom: .45rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px;
  background: var(--gold); transform: rotate(45deg);
}

/* ---------- Steps (real sequences only) ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; }
.steps__item { counter-increment: step; position: relative; padding: 0 0 1.75rem 3.5rem; }
.steps__item::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center; border: 2px solid var(--gold); color: var(--navy);
  font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; background: var(--white);
}
.steps__item:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1.125rem - 1px); top: 2.25rem; bottom: 0; border-left: 2px solid var(--line);
}
.steps__title { margin-bottom: .2rem; }
.steps__meta { font-size: var(--step--1); color: var(--blue); font-weight: 600; margin-bottom: .3rem; }
.steps__text { color: var(--slate); margin: 0; }
.section--navy .steps__item::before { background: var(--navy); color: var(--white); }
.section--navy .steps__item::after { border-color: var(--navy-line); }
.section--navy .steps__text { color: #C4D2E1; }
.section--navy .steps__meta { color: var(--gold-light); }
.steps--row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 1.25rem; }
.steps--row .steps__item { padding: 3.25rem 0 0; }
.steps--row .steps__item::after { left: 2.25rem; right: -1.25rem; top: calc(1.125rem - 1px); bottom: auto; border-left: 0; border-top: 2px solid var(--line); }
.steps--row .steps__item:last-child::after { display: none; }
@media (max-width: 700px) {
  .steps--row .steps__item { padding: 0 0 1.5rem 3.5rem; }
  .steps--row .steps__item::after { left: calc(1.125rem - 1px); top: 2.25rem; bottom: 0; right: auto; border-top: 0; border-left: 2px solid var(--line); }
}

/* Maturity scale — a progression, drawn as a rising stair */
.maturity { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; align-items: end; }
.maturity li { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 1rem; border-radius: var(--radius); }
.maturity li:nth-child(1) { min-height: 9rem; } .maturity li:nth-child(2) { min-height: 10.5rem; }
.maturity li:nth-child(3) { min-height: 12rem; } .maturity li:nth-child(4) { min-height: 13.5rem; }
.maturity li:nth-child(5) { min-height: 15rem; background: var(--navy); color: #DCE5EF; border-color: var(--navy); border-top-color: var(--gold); }
.maturity li:nth-child(5) h3 { color: var(--white); }
.maturity h3 { font-size: var(--step-0); margin-bottom: .35rem; }
.maturity p { font-size: var(--step--1); margin: 0; color: var(--slate); }
.maturity li:nth-child(5) p { color: #C4D2E1; }
.maturity .maturity__lvl { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); font-weight: 500; line-height: 1; margin-bottom: .4rem; }
@media (max-width: 820px) { .maturity { grid-template-columns: 1fr; } .maturity li { min-height: 0 !important; } }

/* Two-level diagram AMOS vs Framework */
.levels { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.levels__row { display: grid; grid-template-columns: 220px 1fr; }
.levels__row + .levels__row { border-top: 1px dashed var(--gold); }
.levels__name { background: var(--navy); color: var(--white); padding: 1.25rem; font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; display: flex; align-items: center; }
.levels__row:nth-child(2) .levels__name { background: var(--navy-line); }
.levels__body { padding: 1.25rem 1.5rem; }
.levels__body p { margin: 0 0 .4rem; }
.levels__q { font-weight: 700; color: var(--navy); }
@media (max-width: 640px) { .levels__row { grid-template-columns: 1fr; } }

/* Two columns */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Callout */
.callout { border-left: 4px solid var(--gold); background: var(--gold-wash); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }
.callout--navy { background: var(--navy); color: #DCE5EF; border-left-color: var(--gold); }
.callout--navy strong { color: var(--white); }

/* Problem list */
.irritants { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.irritants li { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); display: flex; gap: .75rem; align-items: baseline; }
.irritants li::before { content: ""; flex: 0 0 10px; height: 2px; background: var(--risk); transform: translateY(-.25em); }

/* Ecosystem */
.eco { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--navy-line); border: 1px solid var(--navy-line); }
@media (max-width: 900px) { .eco { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .eco { grid-template-columns: 1fr; } }
.eco__item { background: var(--navy); padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.eco__item h3 { margin: 0; font-size: var(--step-1); color: var(--white); }
.eco__item p { margin: 0; color: #C4D2E1; font-size: var(--step--1); }
.eco__item a { margin-top: auto; padding-top: .5rem; font-weight: 600; font-size: var(--step--1); }
.eco__item .badge { align-self: flex-start; }

/* Sector chips */
.sectors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .75rem; }
.sectors li { border: 1px solid var(--line); background: var(--white); padding: 1rem 1.1rem; border-radius: var(--radius); }
.sectors strong { display: block; color: var(--navy); }
.sectors span { font-size: var(--step--1); color: var(--slate); }

/* Benefit families */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 2rem; }
.benefits h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; border-bottom: 2px solid var(--gold); padding-bottom: .4rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 700; color: var(--navy); position: relative; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.5rem; color: var(--gold); font-weight: 400; }
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { padding-bottom: 1rem; color: var(--slate); }

/* Final CTA */
.final-cta { background: var(--navy-deep); color: #DCE5EF; padding-block: var(--space-xl); border-top: 4px solid var(--gold); }
.final-cta__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.final-cta__title { color: var(--white); font-size: var(--step-3); }
.final-cta__text { color: #C4D2E1; }
.final-cta .cta-row { justify-content: flex-end; margin-top: 0; }
.final-cta .btn--primary { background: var(--gold); color: var(--navy-deep); }
.final-cta .btn--primary:hover { background: var(--gold-light); }
.final-cta .btn--secondary { color: var(--white); border-color: rgba(255,255,255,.6); }
.final-cta .btn--secondary:hover { background: var(--white); color: var(--navy); }
@media (max-width: 860px) { .final-cta__inner { grid-template-columns: 1fr; } .final-cta .cta-row { justify-content: flex-start; } }

/* AVG band */
.avg { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.avg img { width: 200px; }
@media (max-width: 640px) { .avg { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); color: var(--ink); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.form--compact .form__grid { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-weight: 600; color: var(--navy); font-size: var(--step--1); }
.field__req { font-weight: 400; color: var(--slate); }
.field__hint { font-size: var(--step--1); color: var(--slate); margin: 0; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--white); border: 1px solid #8A9BB0; border-radius: var(--radius);
  padding: .7rem .8rem; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--risk); border-width: 2px; }
.field__error { color: var(--risk); font-size: var(--step--1); font-weight: 600; margin: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.radio, .check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; min-height: 32px; }
.radio input, .check input { width: 20px; height: 20px; margin: .2rem 0 0; accent-color: var(--navy); flex-shrink: 0; }
.form__consents { margin-top: 1.25rem; display: grid; gap: .5rem; font-size: var(--step--1); }
.form__privacy { color: var(--slate); margin: .25rem 0 0; }
.form__actions { margin-top: 1.25rem; }
.form__summary { border: 2px solid var(--risk); background: #FBEDED; padding: 1rem 1.25rem; margin-bottom: 1.25rem; border-radius: var(--radius); }
.form__summary p { margin: 0 0 .4rem; font-weight: 700; color: var(--risk); }
.form__summary ul { margin: 0; }
.form__success { border: 2px solid var(--success); background: #E8F4EC; padding: 1.25rem; margin-top: 1rem; border-radius: var(--radius); color: #174B31; font-weight: 600; }
.form__success p { margin: 0; }
.form__failure { color: var(--risk); font-weight: 600; margin-top: 1rem; }
.form.is-done .form__grid, .form.is-done .form__consents, .form.is-done .form__actions { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #B8C7D8; font-size: var(--step--1); padding-top: var(--space-l); }
.site-footer a { color: #E4ECF4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer__top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) 1.4fr; gap: 2rem; padding-bottom: var(--space-l); border-bottom: 1px solid var(--navy-line); }
.footer__brand img { width: 230px; height: auto; margin-bottom: 1rem; }
.footer__col h2 { font-family: var(--font-body); font-size: var(--step-0); color: var(--white); margin-bottom: .75rem; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer__news .form { background: transparent; border: 0; padding: 0; color: #B8C7D8; }
.footer__news .field__label { color: #E4ECF4; }
.footer__news .field__req { color: #9FB3C9; }
.footer__news .form__privacy { color: #9FB3C9; }
.footer__news .form__privacy a { text-decoration: underline; }
.footer__news .btn--primary { background: var(--gold); color: var(--navy-deep); }
.footer__news .btn--primary:hover { background: var(--gold-light); }
.footer__news .form__success { color: #174B31; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; }
.footer__bottom p { margin: 0; max-width: 70ch; }
.footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: 0; }
.footer__legal button { background: none; border: 0; padding: 0; color: #E4ECF4; font: inherit; cursor: pointer; }
.footer__legal button:hover { text-decoration: underline; }
@media (max-width: 1020px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand, .footer__news { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Consent banner ---------- */
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90; max-width: 560px;
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold);
  box-shadow: 0 10px 30px rgba(6, 28, 56, .18); padding: 1.25rem; border-radius: var(--radius);
}
.consent h2 { font-family: var(--font-body); font-size: var(--step-0); margin-bottom: .4rem; }
.consent p { font-size: var(--step--1); color: var(--slate); }
.consent .cta-row { margin-top: .75rem; }
.consent .btn { min-height: 44px; }

/* ---------- Prose (legal, insights) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose li { margin-bottom: .35rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: var(--step--1); }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--mist); color: var(--navy); }

.table-wrap { overflow-x: auto; }
.data-table { border-collapse: collapse; width: 100%; font-size: var(--step--1); background: var(--white); }
.data-table th, .data-table td { border: 1px solid var(--line); padding: .7rem .85rem; text-align: left; vertical-align: top; }
.data-table th { background: var(--navy); color: var(--white); font-weight: 600; }

.note { font-size: var(--step--1); color: var(--slate); }
.section--navy .note { color: #9FB3C9; }

/* Subsite header (one-pages) */
.sub-header .container { min-height: 68px; }
.sub-header .brand img { height: 60px; }
.sub-header__name { font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; color: var(--navy); margin-left: .75rem; padding-left: .75rem; border-left: 1px solid var(--line); }
.sub-nav { margin-left: auto; display: flex; gap: 1rem; align-items: center; }
.sub-nav a:not(.btn) { color: var(--navy); font-weight: 600; font-size: var(--step--1); }
@media (max-width: 700px) { .sub-nav a.sub-nav__back { display: none; } .sub-header__name { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .utility, .site-header, .mobile-cta, .consent, .site-footer, .final-cta { display: none !important; }
}

.tm { font-size: .6em; vertical-align: super; line-height: 0; letter-spacing: 0; }
h1 .tm, h2 .tm { font-size: .45em; }

/* ---------- Internal page components ---------- */
.deflist { margin: 0; }
.deflist dt { font-weight: 700; color: var(--navy); margin-top: 1rem; }
.deflist dt:first-child { margin-top: 0; }
.deflist dd { margin: .25rem 0 0; color: var(--slate); }
.crosses { list-style: none; padding: 0; margin: 0 0 1rem; }
.crosses li { position: relative; padding-left: 1.4rem; margin-bottom: .45rem; }
.crosses li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--risk); }
.convictions { margin: 0; padding: 0; list-style: none; columns: 2 320px; column-gap: 3rem; counter-reset: c; }
.convictions li { counter-increment: c; break-inside: avoid; padding: .85rem 0 .85rem 2.6rem; border-top: 1px solid #D3DDE7; position: relative; font-weight: 600; color: var(--navy); }
.convictions li::before { content: counter(c); position: absolute; left: 0; top: .7rem; font-family: var(--font-display); font-size: 1.35rem; color: var(--gold); }
.pillar-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 7rem; }
.pillar-row__name { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); margin-bottom: .25rem; }
.pillar-row__sub { color: var(--slate); margin: 0; }
@media (max-width: 760px) { .pillar-row { grid-template-columns: 1fr; gap: 1rem; } }
.card__kpi { margin: auto 0 0; padding-top: .75rem; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--navy); font-weight: 600; }
.card__kpi span { display: block; font-weight: 400; color: var(--slate); }
.section--navy .card__kpi { border-color: var(--navy-line); color: var(--white); }
.sectors li .badge { margin-top: .5rem; }
.form-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.sla { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; font-size: var(--step--1); }
.sla li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .4rem; }
.sla strong { color: var(--navy); }
.glossary dt { font-weight: 700; color: var(--navy); margin-top: 1.25rem; font-size: var(--step-1); }
.glossary dd { margin: .3rem 0 0; max-width: 70ch; }
.res-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.res-filter button { min-height: 40px; padding: .4rem .9rem; border: 1px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 999px; font: 600 var(--step--1) var(--font-body); cursor: pointer; }
.res-filter button[aria-pressed="true"] { background: var(--navy); color: var(--white); }

/* ---------- Visitor accounts ---------- */
.utility__account { font-weight: 600; }
.auth-box { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); max-width: 560px; margin-inline: auto; }
.auth-box .section__title { font-size: var(--step-2); }
.auth-box .section__intro { font-size: var(--step-0); }
.social { display: grid; gap: .6rem; margin-bottom: .5rem; }
.btn--social { width: 100%; background: var(--white); color: var(--ink); border: 1px solid #8A9BB0; justify-content: center; gap: .75rem; }
.btn--social:hover { border-color: var(--navy); background: var(--mist); color: var(--navy); }
.or { display: flex; align-items: center; gap: .75rem; color: var(--slate); margin: 1rem 0; max-width: none; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.sub-nav form { display: inline; }
.sub-nav .btn { min-height: 42px; padding: .5rem .9rem; }
.utility__account.is-signed-in { color: var(--gold-light); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.utility__account.is-signed-in::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5BC08A; margin-right: .45rem; vertical-align: middle; }

/* Ecosystem pages: status strip under the hero */
.status-strip { background: var(--mist); border-bottom: 1px solid var(--line); padding: .85rem 0; }
.status-strip p { margin: 0; font-size: var(--step--1); font-weight: 600; color: var(--navy); }

/* Ecosystem titles stand out (titles, not links) */
.eco__item h3 { text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-body); font-weight: 700; font-size: var(--step-0); color: var(--gold-light, #E2C27A); padding-bottom: .45rem; border-bottom: 2px solid var(--gold); align-self: flex-start; }
.eco__all { margin: 2rem 0 0; }
.footer__col h2 { text-transform: uppercase; letter-spacing: .08em; font-size: var(--step--1); color: var(--gold-light, #E2C27A); padding-bottom: .4rem; border-bottom: 2px solid var(--gold); display: inline-block; }
.footer__sub { margin: -.35rem 0 .6rem; font-size: .75rem; color: #9FB3C9; text-transform: uppercase; letter-spacing: .06em; }
.footer__all a { font-weight: 600; color: var(--gold-light, #E2C27A) !important; }
/* Ecosystem sub-page banner + hub */
.status-strip__tag { display: inline-block; background: var(--navy); color: #fff; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 2px; margin-right: .5rem; vertical-align: 1px; }
.status-strip p.status-strip__pre { font-weight: 400; color: var(--slate); margin-top: .35rem; }
.eco-card__host { margin: .25rem 0 0; font-size: .75rem; letter-spacing: .04em; color: var(--slate); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.eco-card .card__title a { color: var(--navy); text-decoration: none; }
.eco-card .card__title a:hover { text-decoration: underline; }

/* Document library */
.doc-card { display: flex; flex-direction: column; }
.doc-card__meta { font-size: var(--step--1); color: var(--slate); margin: .25rem 0 0; font-variant-numeric: tabular-nums; }
.doc-card__actions { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.btn--doc { font-size: var(--step--1); padding: .55rem .9rem; }

/* ---------- Photos and video ---------- */
.photo { margin: 0; position: relative; overflow: hidden; background: var(--mist); }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 714; object-fit: cover; }
.photo figcaption { font-size: var(--step--1); color: var(--slate); padding: .6rem 0 0; background: var(--white); }
.section--navy .photo figcaption, .section--navy .photo { background: transparent; color: #C4D2E1; }
.photo--framed { border-top: 4px solid var(--gold); box-shadow: 0 18px 40px -24px rgba(8, 38, 74, .45); }
.photo-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 2rem; }
@media (max-width: 760px) { .photo-trio { grid-template-columns: 1fr; } }
.photo-trio .photo figcaption { font-weight: 600; color: var(--navy); }
.photo-band { position: relative; min-height: clamp(260px, 42vw, 460px); overflow: hidden; background: var(--navy); }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band__overlay { position: absolute; inset: auto 0 0 0; padding: 3rem 0 1.75rem; background: linear-gradient(180deg, rgba(8, 38, 74, 0) 0%, rgba(8, 38, 74, .82) 55%, rgba(8, 38, 74, .94) 100%); }
.photo-band__kicker { margin: 0 0 .35rem; color: var(--gold-light); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.photo-band__text { margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.9rem); line-height: 1.25; max-width: 40ch; }
.video-loop { position: relative; margin: 0; border-top: 4px solid var(--gold); background: #000; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .6); }
.video-loop__media { display: block; width: 100%; height: auto; aspect-ratio: 848 / 464; object-fit: cover; }
.video-loop__toggle { position: absolute; right: .75rem; bottom: .75rem; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: rgba(8, 38, 74, .7); cursor: pointer; }
.video-loop__toggle::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.video-loop__toggle.is-playing::before { transform: translate(-50%, -50%); width: 12px; height: 16px; border: 0; border-left: 4px solid #fff; border-right: 4px solid #fff; box-sizing: border-box; }
.video-loop__toggle:hover, .video-loop__toggle:focus-visible { background: var(--gold); }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }
.paths a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.25rem 1.35rem; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.paths a:hover, .paths a:focus-visible { border-color: var(--navy); transform: translateY(-2px); }
.paths strong { font-family: var(--font-display); font-size: var(--step-1); color: var(--navy); font-weight: 500; }
.paths span { font-size: var(--step--1); color: var(--slate); }
.paths em { margin-top: auto; padding-top: .5rem; font-style: normal; font-weight: 600; color: var(--navy); font-size: var(--step--1); }
@media (prefers-reduced-motion: reduce) { .paths a { transition: none; } .paths a:hover { transform: none; } }
.section--paths { padding-block: 2.25rem; }
.section__title--sm { font-size: var(--step-2); margin-bottom: 1rem; }
.two-col--media { align-items: center; }
.doc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .doc-list { grid-template-columns: 1fr; } }
/* Utility bar on phones: keep account + language, the rest is in the mobile menu */
@media (max-width: 560px) {
  .utility .container { justify-content: flex-end; }
  .utility ul { gap: .9rem; }
  .utility li:not(:has(.utility__account)):not(:has(.lang-toggle)) { display: none; }
  .utility__account.is-signed-in { max-width: 15ch; }
}

/* ---------- Members: gate, locks, dashboard ---------- */
.lock { flex: none; margin-right: .1rem; opacity: .85; }
.is-member .lock { display: none; }
.btn--doc { display: inline-flex; align-items: center; gap: .4rem; }
.btn--danger { background: #A02A2A; color: #fff; border-color: #A02A2A; }
.btn--danger:hover { background: #7E1F1F; color: #fff; }
.btn--on-dark { color: #fff; border-color: rgba(255, 255, 255, .7); background: transparent; }
.btn--on-dark:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.member-gate { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 1.25rem 1.5rem; box-shadow: 0 14px 34px -26px rgba(8, 38, 74, .5); }
.member-gate__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); }
.member-gate__icon .lock { width: 20px; height: 20px; display: block !important; opacity: 1; }
.member-gate__title { margin: 0 0 .25rem; font-weight: 700; color: var(--navy); }
.member-gate__text { margin: 0; color: var(--slate); font-size: var(--step--1); }
.member-gate__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.member-gate--compact { grid-template-columns: auto 1fr; }
.member-gate--compact .member-gate__actions { grid-column: 1 / -1; }
@media (max-width: 760px) { .member-gate { grid-template-columns: auto 1fr; } .member-gate__actions { grid-column: 1 / -1; } }
.wp-download { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 860px) { .wp-download { grid-template-columns: 1fr; } }
.gate-note { display: flex; gap: .85rem; align-items: flex-start; background: var(--gold-wash); border: 1px solid #E6D3A6; padding: .9rem 1rem; margin-bottom: 1.25rem; color: var(--navy); }
.gate-note p { margin: .2rem 0 0; font-size: var(--step--1); color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.member-hero { background: radial-gradient(circle at 85% 20%, rgba(199, 154, 54, .18), transparent 45%), var(--navy); color: #fff; padding: clamp(2rem, 5vw, 3.25rem) 0; border-bottom: 4px solid var(--gold); }
.member { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; }
@media (max-width: 760px) { .member { grid-template-columns: auto 1fr; } .member__actions { grid-column: 1 / -1; } }
.member__avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); background: #0E3561; }
.member__avatar--initials { display: grid; place-items: center; font-family: var(--font-display); font-size: 2rem; color: var(--gold-light); }
.member__kicker { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--gold-light); }
.member__name { margin: .15rem 0 .2rem; font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: #fff; }
.member__role { margin: 0; font-weight: 600; color: #E4ECF4; }
.member__email { margin: .2rem 0 0; color: #AFC0D4; font-size: var(--step--1); }
.member__badges { margin: .65rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.member__badge { font-size: .72rem; padding: .22rem .55rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; color: #E4ECF4; }
.member__badge--ok { border-color: #5BC08A; color: #9FE0BC; }
.member-tabs { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.member-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; overflow-x: auto; }
.member-tabs a { display: block; padding: 1rem 0 .85rem; color: var(--navy); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.member-tabs a:hover, .member-tabs a:focus-visible { border-color: var(--gold); }
.member-body { background: var(--mist); padding: 2rem 0 4rem; }
.member-panel { background: var(--white); border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1.5rem; scroll-margin-top: 70px; }
.member-panel__title { font-size: var(--step-2); margin: 0 0 1rem; }
.member-panel__lead { color: var(--slate); margin: -.4rem 0 1.25rem; }
.member-sub { font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; color: var(--navy); margin: 1.5rem 0 .75rem; }
.member-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.6fr; gap: 1rem; }
@media (max-width: 900px) { .member-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.member-stat { border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 1rem; display: flex; flex-direction: column; gap: .2rem; }
.member-stat strong { font-family: var(--font-display); font-size: 2rem; color: var(--navy); font-weight: 500; line-height: 1; }
.member-stat span { color: var(--slate); font-size: var(--step--1); }
.member-stat--progress strong { font-family: var(--font-body); font-size: inherit; color: var(--navy); }
.member-stat--progress a { font-size: var(--step--1); margin-top: .35rem; }
.meter { height: 8px; background: var(--mist); border-radius: 999px; overflow: hidden; margin-top: .45rem; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.member-form { max-width: 760px; }
.member-form textarea, .member-form select { width: 100%; }
.member-static { margin: 0; padding: .6rem 0; color: var(--slate); }
.linked { list-style: none; margin: 0 0 1.5rem; padding: 0; border: 1px solid var(--line); }
.linked li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.linked li:last-child { border-bottom: 0; }
.linked__name { font-weight: 600; color: var(--navy); }
.linked__state { font-size: var(--step--1); color: var(--slate); }
.linked__state--ok { color: #26734D; font-weight: 600; }
.danger { border: 1px solid #E8C4C4; background: #FDF6F6; padding: 1rem 1.25rem; }
.danger .member-sub { margin-top: 0; color: #A02A2A; }
.status-pill { display: inline-block; font-size: .75rem; padding: .15rem .55rem; border-radius: 999px; background: var(--mist); color: var(--navy); font-weight: 600; }
.status-pill--won { background: #E8F4EC; color: #26734D; }
.status-pill--lost { background: #F1F1F1; color: #5A6573; }
.member-gate [hidden], [data-gate-member][hidden], [data-gate-anon][hidden] { display: none !important; }
.member-panel .paths { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .member-panel .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .member-panel .paths { grid-template-columns: 1fr; } }

/* ---------- Media library ---------- */
.media { margin: 0; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.section--navy .media { border-color: rgba(255, 255, 255, .15); }
.media video { display: block; width: 100%; height: auto; aspect-ratio: 848 / 464; background: #000; }
.media--vertical video { aspect-ratio: 352 / 624; max-height: 560px; object-fit: contain; }
.media figcaption { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: .3rem; }
.media__meta { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 700; }
.media__lang { display: inline-block; margin-left: .35rem; padding: .05rem .45rem; border: 1px solid currentColor; border-radius: 999px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.media__title { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); color: var(--navy); line-height: 1.25; }
.media__text { font-size: var(--step--1); color: var(--slate); }
.media audio { width: 100%; margin-top: .6rem; }
.media--audio { flex-direction: row; align-items: flex-start; border-left: 4px solid var(--gold); }
.media--audio .media__icon { flex: none; margin: 1rem 0 0 1rem; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); }
.media--audio figcaption { flex: 1; min-width: 0; }
.media--feature { box-shadow: 0 22px 46px -30px rgba(8, 38, 74, .55); border-top: 4px solid var(--gold); }
.media--feature .media__title { font-size: var(--step-2); }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.media-grid .media--feature { grid-column: 1 / -1; }
.media-grid--audio { grid-template-columns: 1fr; max-width: 860px; }
.media-grid--short { grid-template-columns: minmax(0, 360px) 1fr; }
.media-grid--2 .media--feature { grid-column: auto; }
@media (max-width: 760px) { .media-grid, .media-grid--short { grid-template-columns: 1fr; } }
.media-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.25rem; align-items: start; }
.media-split__side { display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 900px) { .media-split { grid-template-columns: 1fr; } }
.media-cta { align-self: center; background: var(--mist); border: 1px solid var(--line); padding: 1.5rem; }
.media-cta h3 { margin-top: 0; }

/* ---------- Trainer panel ---------- */
.member-hero--trainer { background: radial-gradient(circle at 85% 20%, rgba(199, 154, 54, .28), transparent 50%), linear-gradient(120deg, #06203F, #0E3561); }
.member__badge--gold { border-color: var(--gold); color: var(--gold-light); font-weight: 700; }
.tsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
@media (max-width: 900px) { .tsteps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tsteps { grid-template-columns: 1fr; } }
.tstep { display: flex; gap: .75rem; border: 1px solid var(--line); border-top: 4px solid var(--line); padding: 1rem; background: var(--white); }
.tstep p { margin: .25rem 0 .5rem; font-size: var(--step--1); color: var(--slate); }
.tstep__n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--mist); color: var(--navy); }
.tstep__state { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--slate); }
.tstep--done { border-top-color: #26734D; } .tstep--done .tstep__n { background: #26734D; color: #fff; } .tstep--done .tstep__state { color: #26734D; }
.tstep--current { border-top-color: var(--gold); box-shadow: 0 14px 30px -24px rgba(8, 38, 74, .6); } .tstep--current .tstep__n { background: var(--gold); color: var(--navy-deep); } .tstep--current .tstep__state { color: #7A5A12; }
.check-group { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: .35rem 0; }
.check--inline { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; }
.status-pill--approved, .status-pill--completed { background: #E8F4EC; color: #26734D; }
.status-pill--submitted { background: #F6EEDC; color: #7A5A12; }
.status-pill--rejected, .status-pill--cancelled { background: #FBEDED; color: #A02A2A; }

/* ---------- Sector cards with photos ---------- */
.sector-cards { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.sector-card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.sector-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -26px rgba(8, 38, 74, .55); }
.sector-card img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 268; object-fit: cover; border-bottom: 3px solid var(--gold); }
.sector-card__body { padding: .9rem 1rem 1.1rem; }
.sector-card h3 { margin: 0 0 .3rem; font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; color: var(--navy); }
.sector-card p { margin: 0; font-size: var(--step--1); color: var(--slate); }
.sector-card .card__kpi { margin-top: .6rem; }
@media (prefers-reduced-motion: reduce) { .sector-card { transition: none; } .sector-card:hover { transform: none; } }
.sector-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .sector-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sector-cards { grid-template-columns: 1fr; } }

/* ---------- AMOS Library V0.95 ---------- */
.lvl { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; border: 1px solid currentColor; line-height: 1.3; white-space: nowrap; }
.lvl__code { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.lvl--a0 { color: #1F6A45; background: #E9F5EE; }
.lvl--a1 { color: #225D8C; background: #E8F0F8; }
.lvl--a2 { color: #6B4A00; background: #FBF2DF; }
.lvl--a3 { color: #6A2E7A; background: #F3EAF6; }
.lvl--a4 { color: #8A1F1F; background: #F8E8E8; }
.page-hero .lvl { background: #fff; }
.lib-hero__badges, .lib-card__badges { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1rem; }
.lib-hero__switch { color: var(--gold-light); font-weight: 600; }
.page-hero__title--doc { font-size: var(--step-3); max-width: 46ch; }
.lib-status { border-left: 4px solid var(--gold); background: var(--gold-wash); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; }
.lib-status p { margin: 0; }
.lib-status__lang { margin-top: .5rem !important; color: var(--slate); }
.lib-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem 1.5rem; margin: 0 0 1.5rem; }
.lib-facts--wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lib-facts div { border-top: 1px solid var(--line); padding-top: .6rem; }
.lib-facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); font-weight: 600; }
.lib-facts dd { margin: .25rem 0 0; }
.lib-contents { columns: 2 280px; column-gap: 2rem; }
.lib-access { border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.5rem; background: #fff; }
.lib-access__level { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-weight: 600; margin-top: 0; }
.lib-access__why { color: var(--slate); }
.lib-access__public { margin-bottom: 0; padding-top: .75rem; border-top: 1px dashed var(--line); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lib-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.lib-table caption { text-align: left; font-weight: 600; padding: .5rem 0; }
.lib-table th, .lib-table td { text-align: left; vertical-align: top; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.lib-table thead th { background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
.lib-table tr.is-current th, .lib-table tr.is-current td { background: #F7FAFC; }
code.sha { font-size: .75rem; word-break: break-all; display: inline-block; max-width: 30ch; }
.lib-related { columns: 2 260px; padding-left: 1.1rem; }
.lib-related li { margin-bottom: .4rem; break-inside: avoid; }
.corpus-map { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; counter-reset: c; }
.corpus-map > li { border-top: 4px solid var(--gold); background: var(--mist); padding: 1rem; border-radius: 0 0 8px 8px; }
.corpus-map h3 { margin: 0 0 .3rem; font-size: var(--step-1); }
.corpus-map > li > p { color: var(--slate); font-size: .92rem; }
.corpus-map ul { list-style: none; padding: 0; margin: .5rem 0 0; }
.corpus-map ul li { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: space-between; padding: .3rem 0; border-top: 1px solid var(--line); }
.lvl-legend { list-style: none; padding: 0; display: grid; gap: .6rem; }
.lvl-legend li { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.lib-register-cta { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.lib-card .card__title a { color: inherit; }
@media (max-width: 620px) { .lib-access { padding: 1rem; } }
.lib-feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: center; }
.lib-feature p { color: #DCE5EF; }
@media (max-width: 820px) { .lib-feature { grid-template-columns: 1fr; } }

/* ---------- Sector editions (NGO programme + planned editions) ---------- */
.edition-status { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; font-size: var(--step--1); font-weight: 600; color: var(--navy); border: 1px solid var(--line); background: var(--white); padding: .25rem .7rem; border-radius: 999px; }
.edition-status__dot { width: .55rem; height: .55rem; border-radius: 50%; border: 2px solid var(--amber); background: transparent; flex: none; }
.edition-status--prep .edition-status__dot { background: var(--gold); border-color: var(--gold); }
.section--navy .edition-status { color: var(--gold-light); background: transparent; border-color: var(--navy-line); }
.edition-statusbar { padding-top: 1.25rem; }
.edition-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 980px) { .edition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .edition-grid { grid-template-columns: 1fr; } }
.edition-card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.edition-card img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 268; object-fit: cover; border-bottom: 3px solid var(--gold); }
.edition-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.edition-card__title { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); color: var(--navy); margin: 0 0 .6rem; }
.edition-card__text { color: var(--ink); margin: 0 0 1rem; }
.edition-card__link { margin: auto 0 0; }
.ngo-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: center; }
.ngo-feature__media img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 268; object-fit: cover; border-bottom: 3px solid var(--gold); }
@media (max-width: 860px) { .ngo-feature { grid-template-columns: 1fr; } }
.ngo-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: end; border-top: 4px solid var(--gold); padding-top: 1.5rem; }
@media (max-width: 860px) { .ngo-entry { grid-template-columns: 1fr; } }
.prose-lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
.edition-page__label { font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin: 1.75rem 0 .5rem; }
.edition-page > .edition-page__label:first-child { margin-top: 0; }
.edition-boundary { margin-top: 1.75rem; border-left: 4px solid var(--gold); background: var(--gold-wash); padding: 1rem 1.25rem; }
.edition-boundary .edition-page__label { margin-top: 0; }
.edition-boundary p { margin: 0; }
.edition-shared { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.edition-shared .edition-page__label { margin-top: 0; }
@media (max-width: 760px) { .edition-shared { grid-template-columns: 1fr; } }
.edition-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.edition-links a { display: inline-block; padding: .45rem .85rem; border: 1px solid var(--line); background: var(--white); color: var(--navy); text-decoration: none; border-radius: var(--radius); }
.edition-links a:hover, .edition-links a:focus-visible { border-color: var(--navy); text-decoration: underline; }
.form-closed { border: 1px dashed var(--line); background: var(--white); padding: 1.25rem 1.4rem; }
.section--navy .form-closed { background: transparent; border-color: var(--navy-line); color: #fff; }
.form-panel { background: var(--white); color: var(--ink); padding: 1.5rem; }
.form-panel a { color: var(--blue); }
.edition-status--open .edition-status__dot { background: var(--success); border-color: var(--success); }
.doc-public { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 1.4rem 1.5rem; background: var(--white); margin-bottom: 2rem; }
.doc-public p { margin: 0 0 .5rem; }
.doc-public__title { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); color: var(--navy); margin: 0 0 .4rem; }
@media (max-width: 760px) { .doc-public { grid-template-columns: 1fr; } }
.doc-meta { font-size: var(--step--1); color: var(--slate); }
.doc-restricted__title { font-size: var(--step-1); color: var(--navy); margin: 0 0 .5rem; }
.doc-restricted { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.doc-restricted li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1.5rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.doc-restricted p { margin: 0; }
.doc-restricted__name { font-weight: 600; color: var(--ink); }
.doc-restricted__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.doc-restricted__req { font-size: var(--step--1); }
@media (max-width: 760px) { .doc-restricted li { grid-template-columns: 1fr; } }
.btn--sm { padding: .4rem .8rem; font-size: var(--step--1); }

/* ---------- Blog ---------- */
.blog-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: var(--white); border: 1px solid var(--line); display: flex; transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -26px rgba(8, 38, 74, .55); }
.blog-card__link { display: flex; flex-direction: column; width: 100%; color: inherit; text-decoration: none; }
.blog-card__link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.blog-card img, .blog-card__ph { display: block; width: 100%; height: auto; aspect-ratio: 480 / 268; object-fit: cover; border-bottom: 3px solid var(--gold); }
.blog-card__ph { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-line) 100%); }
.blog-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.blog-card__cat, .blog-article__cat { font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); margin: 0 0 .4rem; }
.page-hero .blog-article__cat { color: var(--gold-light); }
.blog-card__title { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); line-height: 1.3; color: var(--navy); margin: 0 0 .6rem; }
.blog-card__link:hover .blog-card__title { text-decoration: underline; }
.blog-card__text { color: var(--ink); margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card__meta { margin: auto 0 0; font-size: var(--step--1); color: var(--slate); }
.blog-cats { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.blog-cats a { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); text-decoration: none; font-size: var(--step--1); }
.blog-cats a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.blog-cats a:hover { border-color: var(--navy); }
.blog-pager ul { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 2rem 0 0; }
.blog-pager a { display: inline-block; min-width: 2.4rem; text-align: center; padding: .45rem .6rem; border: 1px solid var(--line); color: var(--navy); text-decoration: none; }
.blog-pager a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.blog-article__meta { color: #C4D2E1; font-size: var(--step--1); margin: 1rem 0 0; }
.blog-article__cover { margin-top: -1px; }
.blog-article__cover img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-bottom: 4px solid var(--gold); }
.blog-prose { font-size: var(--step-0); line-height: 1.75; }
.blog-prose p { margin: 0 0 1.15rem; }
.blog-prose h2 { font-family: var(--font-display); font-weight: 500; color: var(--navy); }
.blog-prose a { color: var(--blue); }
.blog-prose blockquote { margin: 1.5rem 0; padding: .5rem 1.25rem; border-left: 4px solid var(--gold); background: var(--gold-wash); }
.blog-prose img { max-width: 100%; height: auto; display: block; margin: 1.5rem 0; }
.blog-status { margin: 2.5rem 0 0; padding: 1rem 1.25rem; border-left: 4px solid var(--navy); background: var(--mist); font-size: var(--step--1); color: var(--slate); max-width: 72ch; }
.blog-status p { margin: 0; }
.blog-back { margin: 1.5rem 0 0; }

/* ---------- Drop-down menus ---------- */
.has-mega { position: relative; display: flex; align-items: center; }
.mega__toggle { display: none; background: none; border: 0; color: var(--navy); padding: .3rem; cursor: pointer; line-height: 0; }
.mega { position: absolute; top: 100%; left: -.5rem; z-index: 70; padding-top: .55rem; display: none; }
@keyframes mega-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.mega__inner { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: 0 24px 48px -24px rgba(8, 38, 74, .45); padding: .9rem 1rem; min-width: 280px; }
.mega__grid { display: grid; grid-template-columns: repeat(2, minmax(220px, auto)); gap: .25rem 1.5rem; }
.mega--wide .mega__grid { grid-template-columns: minmax(240px, 1fr) minmax(470px, 1.6fr); min-width: 740px; }
.mega__list--2 a { white-space: normal !important; }
.mega__list { list-style: none; margin: 0; padding: 0; }
.mega__list--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.main-nav .mega__list a, .header-ctas .mega__list a { display: block; padding: .45rem .55rem; border: 0; border-radius: var(--radius); color: var(--ink); font-weight: 500; font-size: var(--step--1); white-space: nowrap; text-decoration: none; }
.mega__list a:hover, .mega__list a:focus-visible { background: var(--mist); color: var(--navy); text-decoration: underline; }
.mega__title { margin: .2rem .55rem .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--slate); }
.main-nav .mega__feature, .mega__feature { display: block; margin-top: .6rem; padding: .8rem .9rem; background: var(--navy); color: #fff; border: 0; border-left: 4px solid var(--gold); text-decoration: none; }
.mega__feature strong { display: block; font-size: var(--step-0); }
.mega__feature span { font-size: var(--step--1); color: var(--gold-light); font-weight: 500; }
.mega__feature:hover strong { text-decoration: underline; }
.main-nav .mega__all a, .mega__all a { display: inline-block; margin: .5rem .55rem 0; padding: 0; border: 0; font-size: var(--step--1); color: var(--blue); }
.has-mega--btn .mega { left: auto; right: 0; }
@media (min-width: 981px) {
  .has-mega:hover > .mega, .has-mega:focus-within > .mega, .has-mega.is-open > .mega { display: block; }
  .has-mega:hover > .mega .mega__inner, .has-mega:focus-within > .mega .mega__inner, .has-mega.is-open > .mega .mega__inner { animation: mega-in .15s ease; }
  .mega--wide { left: 50%; transform: translateX(-42%); }
  .has-mega.is-dismissed > .mega { display: none; }
  .main-nav .mega__toggle { display: inline-flex; margin-left: -.35rem; }
  .main-nav > ul > li > a { white-space: nowrap; }
  .main-nav .mega__toggle:focus-visible { outline: 2px solid var(--gold); }
}
@media (max-width: 980px) {
  .main-nav .has-mega { flex-wrap: wrap; }
  .main-nav .has-mega > a { flex: 1; }
  .main-nav .mega__toggle { display: inline-flex; padding: .9rem .75rem; border-bottom: 1px solid var(--line); align-self: stretch; align-items: center; }
  .main-nav .has-mega.is-open .mega__toggle svg { transform: rotate(180deg); }
  .main-nav .mega { position: static; flex-basis: 100%; padding: 0; display: none; }
  .main-nav .has-mega.is-open > .mega { display: block; }
  .main-nav .mega__inner { border: 0; box-shadow: none; padding: .25rem 0 .75rem .75rem; min-width: 0; background: var(--mist); }
  .main-nav .mega__grid, .main-nav .mega--wide .mega__grid { grid-template-columns: 1fr; min-width: 0; }
  .main-nav .mega__list--2 { grid-template-columns: 1fr; }
  .main-nav .mega__list a { white-space: normal; font-size: var(--step-0); padding: .55rem .5rem; }
  .header-ctas .mega { display: none; }
}

/* Mouse users open menus by hovering; the small arrows are only for touch screens. */
@media (hover: hover) and (min-width: 981px) { .main-nav .mega__toggle { display: none; } }
@media (max-width: 980px) { .main-nav > ul { clear: both; } }

/* ---------- Search ---------- */
.site-search { display: flex; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid #2C4C73; border-radius: 999px; padding-left: .7rem; }
.site-search input { width: 9.5rem; background: transparent; border: 0; color: #fff; font: inherit; font-size: var(--step--1); padding: .3rem 0; transition: width .2s; }
.site-search input::placeholder { color: #9FB2C8; }
.site-search input:focus { outline: none; width: 14rem; }
.site-search:focus-within { border-color: var(--gold-light); background: rgba(255, 255, 255, .14); }
.site-search button { background: none; border: 0; color: #E4ECF4; padding: .3rem .65rem; cursor: pointer; line-height: 0; border-radius: 999px; }
.site-search button:hover, .site-search button:focus-visible { color: var(--gold-light); }
.site-search input::-webkit-search-cancel-button { filter: invert(1); }
.site-search--menu { background: var(--mist); border-color: var(--line); margin: 1rem 0 .5rem; padding-left: 1rem; }
.site-search--menu input { width: 100%; flex: 1; color: var(--ink); font-size: var(--step-0); padding: .65rem 0; }
.site-search--menu input:focus { width: 100%; }
.site-search--menu input::placeholder { color: var(--slate); }
.site-search--menu button { color: var(--navy); padding: .6rem .9rem; }
.main-nav .mobile-search { list-style: none; }
@media (max-width: 1180px) { .utility__search .site-search input { width: 7rem; } }
@media (max-width: 980px) { .utility__search { display: none; } }
.search-page__form { display: flex; gap: .6rem; flex-wrap: wrap; }
.search-page__form input { flex: 1; min-width: 220px; font: inherit; font-size: var(--step-1); padding: .7rem .9rem; border: 2px solid var(--navy); border-radius: var(--radius); }
.search-page__status { margin: 1.25rem 0 .5rem; color: var(--slate); font-weight: 600; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-result { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.search-result__title { font-family: var(--font-display); font-size: var(--step-1); color: var(--navy); }
.search-result__tag { display: inline-block; margin-left: .5rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--amber); vertical-align: middle; }
.search-result__url { margin: .15rem 0 .35rem; font-size: var(--step--1); color: var(--success); }
.search-result__text { margin: 0; color: var(--ink); }
.search-result__section { margin: .35rem 0 0; font-size: var(--step--1); }
.search-result mark { background: var(--gold-wash); color: inherit; padding: 0 .1em; }
.has-mega--right .mega { left: auto; right: -.5rem; }
.badge--closed_pilot { color: #1D4F78; background: #E3EEF7; }
.page-hero .badge--closed_pilot, .section--navy .badge--closed_pilot { background: transparent; color: #A9CCEA; }

/* ---------- Editions (compact) and shortcuts ---------- */
.editions-compact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem 2.5rem; align-items: start; }
@media (max-width: 860px) { .editions-compact { grid-template-columns: 1fr; } }
.editions-compact__ngo { display: block; background: var(--navy); color: #fff; padding: 1.4rem 1.5rem; border-left: 5px solid var(--gold); text-decoration: none; }
.editions-compact__ngo .edition-status { color: var(--gold-light); background: transparent; border-color: var(--navy-line); }
.editions-compact__ngo strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); margin-bottom: .4rem; }
.editions-compact__ngo span { color: #C4D2E1; }
.editions-compact__ngo:hover strong, .editions-compact__ngo:focus-visible strong { text-decoration: underline; }
.editions-compact__title { font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin: 0 0 .6rem; }
.editions-compact__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .5rem; }
.editions-compact__list a { display: block; padding: .6rem .8rem; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-weight: 600; text-decoration: none; }
.editions-compact__list a:hover, .editions-compact__list a:focus-visible { border-color: var(--navy); text-decoration: underline; }
.shortcuts { background: var(--gold-wash); border-bottom: 1px solid var(--line); }
.shortcuts ul { list-style: none; margin: 0; padding: .7rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.shortcuts a { color: var(--navy); font-weight: 600; text-decoration: none; }
.shortcuts a:hover, .shortcuts a:focus-visible { text-decoration: underline; }
.steps--row { overflow-x: clip; }

/* ---------- Support access banner (admin connected as a member) ---------- */
.support-banner { background: #A02A2A; color: #fff; font-weight: 600; font-size: var(--step--1); position: sticky; top: 0; z-index: 100; border-bottom: 3px solid #6E1414; }
.support-banner__in { max-width: 1200px; margin: 0 auto; padding: .55rem 1rem; display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; }
.support-banner strong { font-weight: 800; }
.support-banner a { margin-left: auto; background: #fff; color: #A02A2A; padding: .25rem .8rem; border-radius: 3px; text-decoration: none; font-weight: 700; }
.support-banner form { margin: 0 0 0 auto; }
.support-banner button { background: #fff; color: #A02A2A; border: 0; border-radius: 3px; padding: .3rem .8rem; font-weight: 700; cursor: pointer; }
/* Consultant resources (authorised AMOS consultants only) */
.badge--consultant { color: #6B2A12; background: #F7E6DC; display: inline-flex; align-items: center; gap: .35rem; }
.badge--consultant svg { width: 14px; height: 14px; }
.page-hero .badge--consultant { color: #FFD9C4; background: rgba(255, 255, 255, .1); }
.steps-list { padding-left: 1.25rem; } .steps-list li { margin-bottom: .5rem; }
