/* Polished 2026-11-06: full-resolution photos, exact logo orange, accessible orange text, mobile hero and route-card fixes.
   Layout: compact light header → full-bleed engine hero → alternating light/graphite bands; orange used only for headings, rules and calls to action. */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f3f1;          /* warm neutral band */
  --graphite: #2b2d31;        /* dark bands, footer */
  --graphite-2: #3a3c41;
  --fg: #26282c;
  --fg-muted: #5d6067;
  --on-dark: #f5f4f2;
  --on-dark-muted: #b9bbc0;
  --orange: #fcb316;          /* exact logo orange; used on photos and dark bands in both themes */
  --accent: #fcb316;          /* Aerosolutions orange (logo) for rules, buttons, accents */
  --accent-strong: #9a6200;   /* orange for small text on light (5:1 on white) */
  --accent-display: #b87500;  /* orange for large figures on light */
  --line: #e2e0dc;
  --card: #ffffff;
  --header: #ffffff;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1d20; --bg-alt: #232428; --graphite: #141518; --graphite-2: #26272b;
    --fg: #ecebe8; --fg-muted: #a6a8ad; --on-dark: #f5f4f2; --on-dark-muted: #b0b2b7;
    --accent: #fcb316; --accent-strong: #fcb316; --accent-display: #fcb316; --line: #34363b; --card: #26272b; --header: #202124;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1d20; --bg-alt: #232428; --graphite: #141518; --graphite-2: #26272b;
  --fg: #ecebe8; --fg-muted: #a6a8ad; --on-dark: #f5f4f2; --on-dark-muted: #b0b2b7;
  --accent: #fcb316; --accent-strong: #fcb316; --accent-display: #fcb316; --line: #34363b; --card: #26272b; --header: #202124;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--font-body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.55rem; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.band { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.alt { background: var(--bg-alt); }
.dark { background: var(--graphite); color: var(--on-dark); }
.eyebrow { font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-strong); }
.dark .eyebrow { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--fg-muted); max-width: 62ch; }
.dark .lead { color: var(--on-dark-muted); }
.head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 48px); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 40; padding: 10px 16px; background: var(--accent); color: #1c1d20; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; font: 600 0.95rem/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; transition: background .2s, color .2s; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #1c1d20; }
.btn-solid { background: var(--accent); color: #1c1d20; }
.btn-solid:hover { background: transparent; color: var(--accent); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--header); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--header); border-bottom: 3px solid var(--accent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 66px; width: auto; }
.brand span { font: 400 1.45rem/1 var(--font-mono); color: var(--fg-muted); letter-spacing: 0.02em; }
.brand img.wm { height: 23px; width: auto; margin-top: 10px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; padding: 10px 12px; text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--fg); border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--accent-strong); border-bottom-color: var(--accent); }
.nav .btn { margin-left: 10px; padding: 10px 18px; font-size: 0.85rem; color: var(--fg); }
.nav .btn:hover { color: #1c1d20; }
.menu-toggle { display: none; background: none; border: 2px solid var(--line); color: var(--fg); padding: 8px 12px; font: 600 0.9rem var(--font-body); cursor: pointer; }
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--header); border-bottom: 3px solid var(--accent); padding: 8px var(--gutter-r) 16px var(--gutter-l); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 420px) { .brand span { font-size: 1.15rem; } .brand img { height: 52px; } .brand img.wm { height: 18px; } }

/* Hero */
.hero { position: relative; color: #fff; background: #2a2420 url("hero-engine.jpg") center 55% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,21,24,.86) 0%, rgba(20,21,24,.66) 50%, rgba(20,21,24,.30) 100%); }
.hero .wrap { position: relative; padding-block: clamp(80px, 13vw, 168px); display: grid; gap: 18px; }
.hero .tag { font: 500 0.9rem/1 var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase; color: #fff; }
.hero h1 { font-size: clamp(2.9rem, 11vw, 7rem); overflow-wrap: anywhere; font-weight: 700; color: var(--orange); letter-spacing: 0.01em; }
.hero .sub { font: 500 clamp(1.3rem, 2.6vw, 1.9rem)/1.2 var(--font-display); color: #fff; max-width: 30ch; text-wrap: balance; }
@media (max-width: 760px) { .hero { background-position: 72% center; } .hero::before { background: linear-gradient(90deg, rgba(20,21,24,.88) 0%, rgba(20,21,24,.7) 100%); } }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.hero .btn-outline { color: var(--orange); border-color: var(--orange); }
.hero .btn-outline:hover { background: var(--orange); color: #1c1d20; }
.hero .btn-solid { background: var(--orange); border-color: var(--orange); }
.hero .btn-solid:hover { background: transparent; color: var(--orange); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.about-grid > * { min-width: 0; }
.about-copy { display: grid; gap: 18px; }
.about-copy p { max-width: 75ch; }
.about-cat { display: grid; gap: 10px; padding-left: 16px; border-left: 3px solid var(--orange); max-width: 75ch; }
.about-area { font: 700 1.6rem/1.1 var(--font-display); margin: 10px 0 -6px; }
.about-area a { color: inherit; text-decoration: none; }
.about-area a:hover { color: var(--accent); text-decoration: underline; }
.about-cat h4 { font: 700 1.3rem/1.15 var(--font-display); margin: 0; }
.about-grid .figures { background: var(--graphite); border-color: rgba(255,255,255,0.14); }
.about-grid .figure { padding: 18px 16px; border-color: rgba(255,255,255,0.14); }
.about-grid .figure b { color: var(--orange); }
.about-grid .figure span { color: var(--on-dark-muted); }
.about-grid .figure b { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.about-grid .figure span { font-size: 0.88rem; }
.about-cat ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.figures { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.figure { padding: 24px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.figure b { font: 700 clamp(2.2rem, 4vw, 3rem)/1 var(--font-display); color: var(--accent-display); font-variant-numeric: tabular-nums; }
.figure span { font-size: 0.95rem; color: var(--fg-muted); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* Audience routes */
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.route { position: relative; display: grid; align-content: end; min-height: 340px; padding: 28px; color: #fff; text-decoration: none; overflow: hidden; background: var(--graphite); }
.route img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.route::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,21,24,.94) 0%, rgba(20,21,24,.7) 45%, rgba(20,21,24,.2) 100%); }
.route > div { position: relative; z-index: 1; display: grid; gap: 10px; }
.route h3 { font-size: 2.2rem; color: var(--orange); }
.route p { color: #e9e8e5; max-width: 44ch; }
.route .more { font: 600 0.85rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.route:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .routes { grid-template-columns: 1fr; } .route { min-height: 300px; padding: 22px; } .route::after { background: linear-gradient(0deg, rgba(20,21,24,.95) 0%, rgba(20,21,24,.82) 60%, rgba(20,21,24,.45) 100%); } .route h3 { font-size: 1.9rem; } }

/* Products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .products { grid-template-columns: repeat(2, 1fr); } }
.product { background: var(--card); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; }
.product img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.product .body { padding: 22px 22px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; border-top: 3px solid var(--accent); }
.product .body .more { margin-top: auto; padding-top: 6px; transition: color .2s; }
.product .body .more:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
.product p { color: var(--fg-muted); font-size: 0.98rem; }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }
.consult { margin-top: 40px; display: grid; grid-template-columns: auto 1fr; gap: 12px 32px; align-items: baseline; padding-top: 28px; border-top: 1px solid var(--line); }
.consult h3 { font-size: 1.35rem; }
.consult ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.consult li { padding: 7px 14px; border: 1px solid var(--line); font-size: 0.95rem; background: var(--card); }
@media (max-width: 700px) { .consult { grid-template-columns: 1fr; } }

/* ELP test */
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--graphite-2); }
.part { padding: 30px 28px 34px 0; display: grid; gap: 12px; align-content: start; border-right: 1px solid var(--graphite-2); }
.part + .part { padding-left: 28px; }
.part:last-child { border-right: 0; }
.part .num { font: 700 3.4rem/1 var(--font-display); color: var(--accent); }
.part p { color: var(--on-dark-muted); }
.part .where { font: 500 0.78rem/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark); }
@media (max-width: 860px) {
  .parts { grid-template-columns: 1fr; }
  .part, .part + .part { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--graphite-2); }
}
.elp-media { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 56px); align-items: center; margin-top: clamp(40px, 6vw, 64px); }
.elp-media > * { min-width: 0; }
.elp-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.elp-media .points { display: grid; gap: 14px; }
.elp-media .points p { color: var(--on-dark-muted); }
.elp-media .points strong { color: var(--on-dark); }
@media (max-width: 820px) { .elp-media { grid-template-columns: 1fr; } }

/* ICAO scale */
.scale-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 64px); align-items: start; }
.scale-grid > * { min-width: 0; }
.criteria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.criteria div { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; display: flex; gap: 12px; align-items: baseline; }
.criteria div:nth-child(odd) { padding-right: 16px; }
.criteria code { font: 500 0.8rem var(--font-mono); color: var(--accent-strong); }
.levels { overflow-x: auto; }
.levels table { width: 100%; border-collapse: collapse; font-size: 0.97rem; min-width: 460px; }
.levels th, .levels td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.levels th { font: 500 0.75rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.levels td:first-child { font: 700 1.5rem/1 var(--font-display); color: var(--fg); width: 64px; font-variant-numeric: tabular-nums; }
.levels tr.op td { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.levels tr.op td:first-child { color: var(--accent-strong); }
.note { margin-top: 14px; font-size: 0.9rem; color: var(--fg-muted); }

/* Values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.value { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 3px solid var(--accent); }
.value p { color: var(--fg-muted); font-size: 0.98rem; }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }

/* Register */
.register { position: relative; color: #fff; background: #1d1a18 url("photo-register.jpg") center / cover no-repeat; }
.register::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,21,24,.92) 0%, rgba(20,21,24,.82) 55%, rgba(20,21,24,.6) 100%); }
.register .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 64px); align-items: start; }
.register .wrap > * { min-width: 0; }
.register h2 { color: var(--orange); }
.register .eyebrow.on-photo { color: var(--orange); }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; color: #e3e2df; }
.steps li::before { counter-increment: s; content: counter(s); font: 700 1.6rem/1 var(--font-display); color: var(--orange); }
.steps b { color: #fff; }
.fee { margin-top: 26px; display: flex; gap: 14px; align-items: baseline; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.fee b { font: 700 2.6rem/1 var(--font-display); color: var(--orange); }
.fee span { color: #d6d5d2; }
form.reg { background: var(--card); color: var(--fg); padding: clamp(22px, 4vw, 34px); display: grid; gap: 16px; border-top: 4px solid var(--accent); }
form.reg h3 { font-size: 1.7rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row > * { min-width: 0; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, fieldset legend { font-weight: 600; font-size: 0.92rem; }
.field input, .field textarea, .field select { width: 100%; font: 400 1rem var(--font-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); padding: 10px 12px; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); cursor: pointer; font-size: 0.95rem; background: var(--bg); }
.choices input { accent-color: var(--accent-strong); }
.choices label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg)); }
.form-note { font-size: 0.88rem; color: var(--fg-muted); }
.error { color: #b3261e; font-size: 0.9rem; }
:root[data-theme="dark"] .error { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .error { color: #ff8a80; } }
.result { display: grid; gap: 12px; }
.result pre { margin: 0; padding: 14px; background: var(--bg-alt); border: 1px solid var(--line); font: 400 0.85rem/1.5 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; }
.result .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result .btn { color: var(--fg); }
@media (max-width: 860px) { .register .wrap { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--graphite); color: var(--on-dark-muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-block: 56px 28px; }
.site-footer .wrap > * { min-width: 0; }
.site-footer h4 { margin: 0 0 12px; font: 500 0.78rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.site-footer p, .site-footer li { font-size: 0.97rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer li.gap-before { margin-top: 14px; }
.site-footer a { text-decoration: none; color: var(--on-dark); }
.site-footer a:hover { color: var(--accent); }
.foot-brand { display: grid; gap: 14px; align-self: start; }
.foot-brand .brand span { color: var(--on-dark); }
.foot-brand .brand img { background: #fff; padding: 6px 8px; border-radius: 4px; box-sizing: content-box; }
.foot-brand .brand img.wm { background: none; padding: 0; border-radius: 0; }
.copy-line { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--graphite-2); font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.select { user-select: all; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---- Multi-page additions (2026-11-07) ---- */
.nav a[aria-current="page"] { color: var(--accent-strong); border-bottom-color: var(--accent); }

/* Page banner: shorter than the home hero; each page sets its photo with an inline background-image */
.page-hero { position: relative; color: #fff; background-color: #2a2420; background-position: center; background-size: cover; background-repeat: no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,21,24,.88) 0%, rgba(20,21,24,.7) 55%, rgba(20,21,24,.4) 100%); }
.page-hero .wrap { position: relative; padding-block: clamp(56px, 9vw, 112px); display: grid; gap: 14px; }
.page-hero .tag { font: 500 0.8rem/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: #fff; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 700; color: var(--orange); }
.page-hero .sub { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #ecebe8; max-width: 58ch; }

/* In-page jump links on long pages */
.subnav { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0 auto; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.subnav a { font: 600 0.92rem/1.4 var(--font-body); text-decoration: none; color: var(--fg); border-bottom: 2px solid transparent; }
.subnav a:hover { border-bottom-color: var(--accent); }

/* Heading column + content column */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: clamp(28px, 6vw, 72px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 16px; max-width: 68ch; }
.prose h3 { margin-top: 10px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose li::marker { color: var(--accent-strong); }
.dark .prose li::marker { color: var(--accent); }
.dark .prose p, .dark .prose li { color: var(--on-dark-muted); }
.dark .prose strong { color: var(--on-dark); }

/* Generic cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 24px 24px 26px; display: grid; gap: 10px; align-content: start; }
.card p, .card li { color: var(--fg-muted); font-size: 0.98rem; }
.card ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.card .meta, .product .meta { font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-strong); }
.card a.more { font: 600 0.85rem/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-strong); text-decoration: none; margin-top: 4px; }
.card a.more:hover { text-decoration: underline; }
.dark .card { background: var(--graphite-2); border-color: var(--graphite-2); border-top-color: var(--accent); }
.dark .card p, .dark .card li { color: var(--on-dark-muted); }
.dark .card .meta { color: var(--accent); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards, .cards.two { grid-template-columns: 1fr; } }

/* Key facts list */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 0.78rem/1.6 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); padding-right: 24px; }
.facts dd { min-width: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

/* FAQ accordion */
.faq-group { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-group + .faq-group { margin-top: 0; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; font-weight: 600; font-size: 1.05rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font: 600 1.4rem/1 var(--font-display); color: var(--accent-strong); }
details.faq[open] summary::after { content: "\2013"; }
details.faq summary:hover { color: var(--accent-strong); }
details.faq .answer { padding: 0 0 18px; display: grid; gap: 10px; max-width: 68ch; color: var(--fg-muted); }
details.faq .answer ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }

/* Allowed / not allowed lists */
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dos > div { border: 1px solid var(--line); padding: 20px 22px; background: var(--card); display: grid; gap: 10px; align-content: start; }
.dos h3 { font-size: 1.3rem; }
.dos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dos li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; color: var(--fg-muted); }
.dos .yes li::before { content: "\2713"; color: #2e7d32; font-weight: 700; }
.dos .no li::before { content: "\2715"; color: #b3261e; font-weight: 700; }
:root[data-theme="dark"] .dos .yes li::before { color: #81c784; }
:root[data-theme="dark"] .dos .no li::before { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dos .yes li::before { color: #81c784; } :root:not([data-theme="light"]) .dos .no li::before { color: #ff8a80; } }
@media (max-width: 700px) { .dos { grid-template-columns: 1fr; } }

/* Level 4 descriptors */
.desc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; border-top: 1px solid var(--line); }
.desc div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.desc b { font: 600 1.25rem/1.1 var(--font-display); }
.desc p { color: var(--fg-muted); font-size: 0.97rem; }
@media (max-width: 760px) { .desc { grid-template-columns: 1fr; } }

/* News timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline time { font: 500 0.85rem/1.6 var(--font-mono); color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.3rem; margin-bottom: 6px; }
.timeline p { color: var(--fg-muted); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* Note box */
.callout { border-left: 4px solid var(--accent); background: var(--bg-alt); padding: 16px 20px; display: grid; gap: 6px; }
.alt .callout { background: var(--card); }
.callout p { color: var(--fg-muted); }

/* Call-to-action band before the footer */
.cta-band { background: var(--graphite-2); color: var(--on-dark); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: clamp(40px, 6vw, 64px); }
.cta-band h2 { color: var(--orange); font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.cta-band p { color: var(--on-dark-muted); max-width: 56ch; margin-top: 8px; }
.cta-band .btn-solid { background: var(--orange); border-color: var(--orange); }
.cta-band .btn-solid:hover { background: transparent; color: var(--orange); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band .btn-outline { color: var(--on-dark); border-color: var(--orange); }
.cta-band .btn-outline:hover { background: var(--orange); color: #1c1d20; }

/* Home: steps teaser on dark band */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; counter-reset: st; }
.steps-row li { list-style: none; display: grid; gap: 8px; align-content: start; padding-top: 14px; border-top: 2px solid var(--orange); color: #e3e2df; }
.steps-row li::before { counter-increment: st; content: counter(st); font: 700 1.8rem/1 var(--font-display); color: var(--orange); }
.steps-row b { color: #fff; }
@media (max-width: 860px) { .steps-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps-row { grid-template-columns: 1fr; } }
.steps-row { padding: 0; }

/* Footer: three columns */
.site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; }
@media (max-width: 960px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .wrap { grid-template-columns: 1fr; } }

.mt { margin-top: clamp(32px, 5vw, 48px); }

/* Headings that change level on sub-pages but keep their look */
.page-title { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.prose h2.h3 { font-size: 1.55rem; margin-top: 12px; }
.register .reg-title { font-family: var(--font-display); font-size: clamp(2.2rem, 4.6vw, 3.2rem); color: var(--orange); }
form.reg .form-title { font-size: 1.7rem; }
form.reg .form-title { color: var(--fg); }
/* Outline buttons on light bands: darker orange text for contrast */
.section:not(.dark):not(.register) .btn-outline { color: var(--accent-strong); }
.section:not(.dark):not(.register) .btn-outline:hover { color: #1c1d20; }

/* ---- Images and graphics (2026-11-07) ---- */
/* Line icons */
.ico { width: 28px; height: 28px; flex: none; }
.card-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-strong); margin-bottom: 2px; }
.dark .card-ico, .register .card-ico { color: var(--orange); background: color-mix(in srgb, var(--orange) 16%, transparent); }
.head-ico { color: var(--accent-strong); }
.head-ico .ico { width: 40px; height: 40px; }

/* Journey: numbered sequence of steps with icons and a connecting line */
.journey { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: 0; position: relative; }
.journey li { position: relative; display: grid; gap: 8px; align-content: start; justify-items: center; text-align: center; padding: 0 8px; }
.journey li::before { content: ""; position: absolute; top: 28px; left: 0; right: 0; height: 2px; background: var(--j-line, var(--line)); z-index: 0; }
.journey li:first-child::before { left: 50%; }
.journey li:last-child::before { right: 50%; }
.journey .dot { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--j-dot-bg, var(--bg)); border: 2px solid var(--j-dot-line, var(--accent)); color: var(--j-ico, var(--accent-strong)); }
.journey li.key .dot { background: var(--orange); border-color: var(--orange); color: #1c1d20; }
.journey .when { font: 500 0.72rem/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--j-when, var(--accent-strong)); }
.journey b { font: 600 1.15rem/1.15 var(--font-display); }
.journey span.txt { font-size: 0.9rem; color: var(--j-txt, var(--fg-muted)); }
.dark .journey { --j-line: var(--graphite-2); --j-dot-bg: var(--graphite); --j-dot-line: var(--orange); --j-ico: var(--orange); --j-when: var(--orange); --j-txt: var(--on-dark-muted); }
@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; gap: 18px; }
  .journey li { grid-template-columns: 56px 1fr; grid-template-rows: auto auto auto; justify-items: start; text-align: left; column-gap: 16px; row-gap: 2px; padding: 0; }
  .journey .dot { grid-row: 1 / span 3; width: 48px; height: 48px; }
  .journey li::before { top: 24px; bottom: -18px; left: 23px; right: auto; width: 2px; height: auto; }
  .journey li:first-child::before { left: 23px; }
  .journey li:last-child::before { display: none; }
  .journey li:last-child { }
}

/* Overall level = lowest criterion */
.lowest { display: grid; gap: 10px; margin-top: 8px; }
.lowest .row-b { display: grid; grid-template-columns: 9.5em 1fr 2.4em; gap: 12px; align-items: center; }
.lowest .lbl { font-weight: 600; font-size: 0.95rem; }
.lowest .track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.lowest .track i { height: 14px; background: var(--line); }
.lowest .track i.on { background: var(--fg-muted); }
.lowest .row-b.min .track i.on { background: var(--accent); }
.lowest .val { font: 700 1.3rem/1 var(--font-display); font-variant-numeric: tabular-nums; text-align: right; }
.lowest .row-b.min .val { color: var(--accent-display); }
.lowest .axis { display: grid; grid-template-columns: 9.5em 1fr 2.4em; gap: 12px; }
.lowest .axis div { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; font: 500 0.72rem/1 var(--font-mono); color: var(--fg-muted); }
.lowest .axis div span { text-align: center; }
.lowest .axis div span.l4 { color: var(--accent-strong); font-weight: 700; }
.lowest .total { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; padding-top: 12px; border-top: 2px solid var(--accent); }
.lowest .total b { font: 700 2rem/1 var(--font-display); color: var(--accent-display); }
@media (max-width: 480px) { .lowest .row-b, .lowest .axis { grid-template-columns: 7.2em 1fr 1.8em; gap: 8px; } .lowest .lbl { font-size: 0.85rem; } }

/* Re-test timeline */
.retest { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.retest .r { display: grid; grid-template-columns: 6.5em 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.retest .r b { font: 600 1.15rem/1.1 var(--font-display); }
.retest .r b small { display: block; font: 400 0.8rem/1.3 var(--font-body); color: var(--fg-muted); }
.retest .bar { position: relative; height: 26px; }
.retest .bar::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: var(--line); }
.retest .bar.ok::before { background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 15%, transparent) 100%); }
.retest .bar i { position: absolute; top: 4px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--accent); }
.retest .bar i.start { background: var(--bg); }
.retest .bar em { position: absolute; top: -14px; font: 500 0.68rem/1 var(--font-mono); color: var(--accent-strong); transform: translateX(-50%); font-style: normal; white-space: nowrap; }
.retest .scale { display: grid; grid-template-columns: 6.5em 1fr; gap: 14px; padding-top: 8px; }
.retest .scale div { position: relative; height: 14px; font: 500 0.7rem/1 var(--font-mono); color: var(--fg-muted); }
.retest .scale span { position: absolute; transform: translateX(-50%); }
.retest .scale span:first-child { transform: none; }
.retest .scale span:last-child { transform: translateX(-100%); }

/* Decorative art backgrounds (assets/art) */
.art { position: relative; overflow: hidden; isolation: isolate; }
.art::after { content: ""; position: absolute; z-index: -1; pointer-events: none; background-repeat: no-repeat; opacity: var(--art-o, .55); }
.art.dark, .art.cta-band { background-color: var(--graphite); }
.cta-band.art { background-color: var(--graphite-2); }
.art-approach::after { inset: 0 0 0 46%; background-image: url("art/approach-white.svg"); background-position: left center; background-size: auto 100%; --art-o: .35; }
@media (max-width: 1100px) { .art-approach::after { left: 56%; } }
@media (max-width: 760px) { .art-approach::after { left: 62%; } }
.art-radar::after { right: -180px; top: -140px; width: 620px; height: 620px; background-image: url("art/radar.svg"); background-size: contain; }
.art-waves::after { left: 0; right: 0; bottom: 0; height: 200px; background-image: url("art/waveform.svg"); background-size: 100% 100%; --art-o: .22; }
.art-routes::after { inset: 0; background-image: url("art/routes.svg"); background-position: center; background-size: cover; --art-o: .45; }
@media (max-width: 760px) { .art::after { opacity: calc(var(--art-o, .55) * .55); } }
.retest .scale span { white-space: nowrap; }
.retest .bar, .retest .scale div { margin-right: 12px; }

/* ---- Registration form (ICARUS) ---- */
.register .wrap > div:first-child { align-self: start; }
@media (min-width: 861px) { .register .wrap > div:first-child { position: sticky; top: 96px; } }
form.reg { gap: 20px; }
form.reg .step { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
form.reg .step legend { display: flex; align-items: center; gap: 10px; font: 600 1.35rem/1.1 var(--font-display); padding: 0; margin-bottom: 4px; float: left; width: 100%; }
form.reg .step legend + * { clear: both; }
form.reg .step legend span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #1c1d20; font-size: 1rem; }
form.reg .lbl { font-weight: 600; font-size: 0.92rem; }
form.reg .req { color: var(--accent-strong); font-weight: 700; }
form.reg select { width: 100%; font: 400 1rem var(--font-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); padding: 10px 8px; min-width: 0; }
form.reg select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
form.reg .dob { display: grid; grid-template-columns: 0.8fr 1fr 1fr; gap: 8px; }
form.reg .phone { display: grid; grid-template-columns: 5.5em 6.5em 1fr; gap: 8px; }
form.reg .phone .sub { display: grid; gap: 4px; font-size: 0.78rem; color: var(--fg-muted); font-weight: 400; }
form.reg .phone input { width: 100%; font: 400 1rem var(--font-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); padding: 10px 10px; min-width: 0; }
form.reg .phone input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
form.reg .hint { font-size: 0.88rem; color: var(--fg-muted); }
form.reg .msg { font-size: 0.88rem; color: #b3261e; min-height: 0; }
form.reg .msg:empty { display: none; }
form.reg [aria-invalid="true"] { border-color: #b3261e; }
form.reg .check { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; font-size: 0.95rem; cursor: pointer; }
form.reg .check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent-strong); }
form.reg .paybox { background: var(--bg-alt); border-left: 4px solid var(--accent); padding: 12px 16px; font-size: 0.95rem; }
form.reg .test-mode { background: color-mix(in srgb, var(--accent) 18%, var(--bg)); border: 1px dashed var(--accent-strong); padding: 10px 14px; font-size: 0.92rem; }
form.reg .err-summary { border: 2px solid #b3261e; padding: 12px 16px; display: grid; gap: 6px; }
form.reg .err-summary ul { margin: 0; padding-left: 1.2em; }
form.reg .err-summary a { color: #b3261e; font-weight: 600; }
form.reg .result { border: 2px solid var(--accent); padding: 14px 16px; }
form.reg .result table { min-width: 0; font-size: 0.88rem; }
form.reg .result td:first-child { font: 500 0.82rem var(--font-mono); width: auto; color: var(--fg-muted); }
form.reg #f-submit { justify-self: start; }
:root[data-theme="dark"] form.reg .msg, :root[data-theme="dark"] form.reg .err-summary a { color: #ff8a80; }
:root[data-theme="dark"] form.reg [aria-invalid="true"], :root[data-theme="dark"] form.reg .err-summary { border-color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) form.reg .msg, :root:not([data-theme="light"]) form.reg .err-summary a { color: #ff8a80; } :root:not([data-theme="light"]) form.reg [aria-invalid="true"], :root:not([data-theme="light"]) form.reg .err-summary { border-color: #ff8a80; } }
@media (max-width: 420px) { form.reg .phone { grid-template-columns: 4.6em 5.6em 1fr; } }
form.reg .phone { align-items: end; }

/* ---- Colour photos (2026-11-20, C22 (banners) answered B) ---- */
.photo-band { margin: 0; padding: 0; }
.photo-band img { display: block; width: 100%; height: clamp(220px, 32vw, 420px); object-fit: cover; }

/* ---- Background videos (2026-11-20; AdobeStock, muted loop) ---- */
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.hero::before, .page-hero::before { z-index: 1; }
.hero .wrap, .page-hero .wrap { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .bg-video { display: none; } }

/* ---- News (2026-11-20; items in assets/news.json) ---- */
.card img { width: calc(100% + 48px); margin: -24px -24px 6px; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.news-list { row-gap: 24px; }
@media (max-width: 900px) { .cards.news-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards.news-list { grid-template-columns: 1fr; } }
/* News: extra paragraphs behind "Read more" */
.news-more summary { cursor: pointer; color: var(--accent-strong); font-weight: 600; list-style: none; }
.news-more summary::-webkit-details-marker { display: none; }
.news-more summary::after { content: " \2192"; }
.news-more[open] summary::after { content: " \2191"; }
.news-more summary:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.news-more p { margin-top: 10px; }
.news-more[open] summary { margin-bottom: 2px; }
/* Language testing: ICAO vs other tests */
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card { display: grid; gap: 10px; align-content: start; padding: 28px 28px 30px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--line); text-decoration: none; color: var(--fg); transition: border-color .2s; }
.split-card.icao { background: var(--graphite); color: var(--on-dark); border-color: var(--graphite); border-top-color: var(--orange); }
.split-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.split-card.icao h2 { color: var(--orange); }
.split-card p { color: var(--fg-muted); }
.split-card.icao p { color: var(--on-dark-muted); }
.split-card .meta { font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-strong); }
.split-card.icao .meta { color: var(--orange); }
.split-card .more { font: 600 0.85rem/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-strong); margin-top: 6px; }
.split-card.icao .more { color: #fff; }
.split-card:hover { border-top-color: var(--accent); }
.split-card:hover .more { text-decoration: underline; text-decoration-thickness: 2px; }
.test-split { padding-bottom: 0; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .split-cards, .cards.two { grid-template-columns: 1fr; } }
.split-card .actions-inline { display: flex; flex-wrap: wrap; gap: 12px; }
div.split-card:hover { border-top-color: var(--line); }
div.split-card.icao:hover { border-top-color: var(--orange); }
.split-cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .split-cards.three { grid-template-columns: 1fr; } }

/* ELP Test: in-section links */
.elp-links { list-style: none; margin: 0 0 clamp(28px,4vw,40px); padding: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; border-bottom: 1px solid var(--line); }
.elp-links a { font: 600 0.9rem/1.4 var(--font-body); text-decoration: none; color: var(--accent-strong); border-bottom: 2px solid transparent; }
.elp-links a:hover { border-bottom-color: var(--accent); }
.prose .actions-inline { display: flex; flex-wrap: wrap; gap: 12px; }

/* Subnav: separate link for individual pilots */
.subnav li.subnav-aside { margin-left: auto; padding-left: 20px; border-left: 1px solid var(--line); font: 0.92rem/1.4 var(--font-body); color: var(--fg-muted); }
.subnav li.subnav-aside a { color: var(--accent-strong); }
@media (max-width: 760px) { .subnav li.subnav-aside { margin-left: 0; padding-left: 0; border-left: 0; flex-basis: 100%; } }

.subnav .subnav-label { font: 500 0.72rem/1.9 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); margin-right: 4px; }

.page-hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

.page-hero .actions.corner { position: absolute; right: 0; bottom: clamp(20px, 3vw, 32px); margin: 0; }
@media (max-width: 760px) { .page-hero .actions.corner { position: static; margin-top: 18px; } }

.cta-band.cta-corner .wrap { position: relative; }
.cta-band.cta-corner .wrap > :last-child:not(:first-child) { position: absolute; right: 0; bottom: clamp(16px, 2vw, 24px); }
@media (max-width: 760px) { .cta-band.cta-corner .wrap > :last-child:not(:first-child) { position: static; } }

/* Training CTA: CFD image */
.art-cfd::after { inset: 0 0 0 46%; background-image: url("photo-training-cfd-line.png"); background-size: auto 100%; background-position: 45% center; --art-o: .85; }
@media (max-width: 760px) { .art-cfd::after { left: 40%; } }

/* Training CTA: VNAV climb profile */
.art-vnav::after { inset: 0 0 0 46%; background-image: url("art/vnav-climb.svg"); background-position: left center; background-size: auto 100%; --art-o: .4; }
@media (max-width: 1100px) { .art-vnav::after { left: 56%; } }
@media (max-width: 760px) { .art-vnav::after { left: 62%; } }

/* Requested tests: light grey next to the dark ICAO card */
.test-split .split-card:not(.icao) { background: var(--bg-alt); }
/* Keep the bottom links on one line across the three cards */
.split-cards.three .split-card { display: flex; flex-direction: column; }
.split-cards.three .split-card .more { margin-top: auto; padding-top: 6px; }
.test-split.tabs-gap { padding-bottom: clamp(40px,5vw,64px); }
/* Section intros use the full width of the page */
.head .lead { max-width: none; }
/* Audience switch: organisations or individuals */
.audience { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; }
.aud { display: grid; gap: 4px; align-content: center; padding: 16px 24px 18px; text-decoration: none; color: var(--fg); border-top: 4px solid transparent; transition: border-color .2s; }
.aud-title { font: 600 clamp(1.25rem, 2vw, 1.6rem)/1.1 var(--font-display); }
.aud-sub { font: 0.95rem/1.4 var(--font-body); color: var(--fg-muted); }
.aud.is-active { background: var(--graphite); color: var(--on-dark); border-top-color: var(--orange); }
.aud.is-active .aud-title { color: var(--orange); }
.aud.is-active .aud-sub { color: var(--on-dark-muted); }
.aud:not(.is-active):hover { border-top-color: var(--accent); }
@media (max-width: 620px) { .audience-grid { grid-template-columns: 1fr; } .aud { padding: 14px 16px; } }
/* ELP test cards: links on one line */
#tests .card { display: flex; flex-direction: column; gap: 10px; }
#tests .card a.more { margin-top: auto; padding-top: 4px; }
.audience { background: var(--bg); border-bottom: 0; padding-top: 12px; }
.audience .aud:not(.is-active) { background: var(--bg-alt); }
/* Hover: no orange line on unselected boxes, so only the selected box carries it */
.aud:not(.is-active):hover { border-top-color: transparent; background: #ebe9e5; }
.aud:not(.is-active):hover .aud-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.test-split .split-card:not(.icao):hover { border-top-color: var(--line); background: #ebe9e5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aud:not(.is-active):hover, :root:not([data-theme="light"]) .test-split .split-card:not(.icao):hover { background: #2b2c31; } }
:root[data-theme="dark"] .aud:not(.is-active):hover, :root[data-theme="dark"] .test-split .split-card:not(.icao):hover { background: #2b2c31; }
/* Audience switch as tabs on the bottom edge of the hero */
.audience { background: transparent; border-bottom: 0; padding-top: 0; position: relative; z-index: 2; margin-top: -78px; }
.audience-grid { grid-template-columns: repeat(2, minmax(0, 340px)); gap: 6px; }
.aud { min-height: 78px; padding: 14px 22px 14px; border-top: 4px solid transparent; }
.audience .aud:not(.is-active) { background: rgba(20,21,24,.72); color: #fff; }
.audience .aud:not(.is-active) .aud-sub { color: #cfcdc8; }
.audience .aud:not(.is-active):hover { background: rgba(20,21,24,.9); border-top-color: transparent; }
.audience .aud.is-active { background: var(--bg); color: var(--fg); border-top-color: var(--accent); }
.audience .aud.is-active .aud-title { color: var(--fg); }
.audience .aud.is-active .aud-sub { color: var(--fg-muted); }
.page-hero:has(+ .audience) .wrap { padding-bottom: calc(clamp(56px, 9vw, 112px) + 78px); }
.page-hero:has(+ .audience) .actions.corner { bottom: 17px; }
@media (max-width: 760px) {
  .audience { margin-top: 0; background: var(--bg-alt); }
  .audience-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .aud { min-height: 0; padding: 12px 14px; }
  .aud-title { font-size: 1.1rem; }
  .aud-sub { font-size: 0.85rem; }
  .audience .aud:not(.is-active) { background: var(--bg-alt); color: var(--fg); }
  .audience .aud:not(.is-active) .aud-sub { color: var(--fg-muted); }
  .page-hero:has(+ .audience) .wrap { padding-bottom: clamp(56px, 9vw, 112px); }
}
.audience { margin-top: -100px; }
.aud { min-height: 100px; align-content: start; padding-top: 16px; }
.page-hero:has(+ .audience) .wrap { padding-bottom: calc(clamp(56px, 9vw, 112px) + 100px); }
.page-hero:has(+ .audience) .actions.corner { bottom: 28px; }
@media (max-width: 760px) { .audience { margin-top: 0; } .aud { min-height: 0; padding-top: 12px; } .page-hero:has(+ .audience) .wrap { padding-bottom: clamp(56px, 9vw, 112px); } }
.audience { margin-top: -112px; }
.aud { box-sizing: border-box; height: 112px; min-height: 0; }
.page-hero:has(+ .audience) .wrap { padding-bottom: calc(clamp(56px, 9vw, 112px) + 112px); }
.page-hero:has(+ .audience) .actions.corner { bottom: 34px; }
@media (max-width: 760px) { .audience { margin-top: 0; } .aud { height: auto; } .page-hero:has(+ .audience) .wrap { padding-bottom: clamp(56px, 9vw, 112px); } }
/* Strip under the hero for individual pilots */
.indiv-strip { background: var(--graphite); border-top: 1px solid #3a3b40; }
.indiv-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.indiv-q { font: 600 1.25rem/1.1 var(--font-display); color: var(--orange); }
.indiv-strip a { font: 600 0.85rem/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; text-decoration: none; }
.indiv-strip a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.indiv-strip .wrap { justify-content: flex-start; gap: 20px; }
/* Individual pilot strip: orange */
.indiv-strip { background: var(--orange); border-top: 0; }
.indiv-q { color: #1c1d20; }
.indiv-strip a { color: #1c1d20; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.indiv-strip a:hover { text-decoration-thickness: 2px; }
.indiv-strip a { font: 600 1.05rem/1.2 var(--font-body); letter-spacing: 0; text-transform: none; }
.indiv-strip .wrap { gap: 12px; }
.indiv-strip a { font: 500 1.25rem/1.1 var(--font-display); }
.indiv-q { font: 700 1.05rem/1.3 var(--font-body); }
.indiv-strip a { font: 500 1.05rem/1.3 var(--font-body); }
.indiv-strip .wrap { gap: 10px; padding: 13px 0; }
.indiv-q { font-size: 0.9rem; }
.indiv-q { font-size: 1.05rem; }
.indiv-strip a { font-size: 0.9rem; }
/* ELP tests: photo and text in alternating rows */
.test-rows { display: grid; gap: clamp(32px, 5vw, 56px); }
.test-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.test-row.flip img { order: 2; }
.test-row img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.test-row-text { display: grid; gap: 12px; }
.test-row-text h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.test-row-text p, .test-row-text li { color: var(--fg-muted); }
.test-row-text ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.test-row-text li::marker { color: var(--accent-strong); }
.test-row-text a.more { font: 600 0.85rem/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-strong); text-decoration: none; margin-top: 4px; }
.test-row-text a.more:hover { text-decoration: underline; }
@media (max-width: 760px) { .test-row { grid-template-columns: 1fr; } .test-row.flip img { order: 0; } }
/* Smaller photos next to the short test texts */
.test-row { grid-template-columns: 2fr 3fr; }
.test-row.flip { grid-template-columns: 3fr 2fr; }
.test-row img { aspect-ratio: 16 / 10; }
@media (max-width: 760px) { .test-row, .test-row.flip { grid-template-columns: 1fr; } }

/* Journey grouped · frame around the three test parts, white outer steps */
.journey.grouped { margin-top: clamp(56px, 7vw, 80px); }
.journey.grouped li.key::after { content: ""; position: absolute; top: -22px; bottom: -16px; left: 0; right: 0; border-top: 2px solid var(--orange); border-bottom: 2px solid var(--orange); pointer-events: none; }
.journey.grouped li.k1::after { border-left: 2px solid var(--orange); border-radius: 18px 0 0 18px; }
.journey.grouped li.k3::after { border-right: 2px solid var(--orange); border-radius: 0 18px 18px 0; }
.journey.grouped .j-group { position: absolute; top: -33px; left: 0; width: 300%; text-align: center; z-index: 2; pointer-events: none; }
.journey.grouped .j-group span { display: inline-block; padding: 0 10px; background: var(--j-dot-bg, var(--bg)); font: 600 0.75rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); white-space: nowrap; }
.dark .journey.grouped li:not(.key) .dot { border-color: #fff; color: #fff; }
@media (max-width: 900px) {
  .journey.grouped { margin-top: 56px; }
  .journey.grouped li.key::after { top: -12px; bottom: -19px; left: -12px; right: -12px; border: 0; border-left: 2px solid var(--orange); border-right: 2px solid var(--orange); border-radius: 0; }
  .journey.grouped li.k1::after { top: -22px; border-top: 2px solid var(--orange); border-radius: 18px 18px 0 0; }
  .journey.grouped li.k3::after { bottom: -14px; border-bottom: 2px solid var(--orange); border-radius: 0 0 18px 18px; }
  .journey.grouped .j-group { top: -33px; left: 4px; width: auto; text-align: left; }
  .journey.grouped li.k1 { margin-top: 26px; }
  .journey.grouped li.k3 { margin-bottom: 12px; }
  .journey.grouped li.key::after { left: -8px; right: -8px; }
}

/* Waveform sits below the content, never behind text */
.art-waves { padding-bottom: 170px; }
.art-waves::after { height: 150px; }
@media (max-width: 900px) { .art-waves { padding-bottom: 130px; } .art-waves::after { height: 110px; } }

/* Timeline voice line · flat where nobody speaks, speech under Speaking and Interview */
.journey.grouped { margin-bottom: 90px; }
.journey.grouped::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% + 34px); height: 80px; pointer-events: none; background: url("art/speech-line.svg") center / 100% 100% no-repeat; opacity: .8; }
@media (max-width: 900px) { .journey.grouped { margin-bottom: 0; } .journey.grouped::after { display: none; } }

/* Score chart · six criteria on the six levels, your score as the last row */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.score-chart { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 3vw, 32px); }
.sg { --lw: 150px; --vw: 56px; position: relative; display: grid; grid-template-columns: var(--lw) repeat(6, minmax(0, 1fr)) var(--vw); align-items: center; row-gap: 14px; margin-top: 4px; }
.sg-h { text-align: center; padding-bottom: 8px; }
.sg-h b { display: block; font: 600 1.5rem/1 var(--font-display); }
.sg-h span { display: block; margin-top: 6px; font: 500 0.66rem/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); }
.sg-h.op b { color: var(--accent-display); }
.sg-h.op span { color: var(--accent-strong); }
.sg-l { font-weight: 600; font-size: 0.95rem; }
.sg-t { grid-column: 2 / 8; height: 11px; border-radius: 6px; background: var(--line); overflow: hidden; }
.sg-t i { display: block; height: 100%; background: #5d6067; border-radius: 0 6px 6px 0; }
.sg-v { font: 600 1.4rem/1 var(--font-display); text-align: right; }
.sg-sep { grid-column: 1 / -1; border-top: 2px solid var(--orange); margin: 2px 0; }
.sg-l.you { font: 600 1.3rem/1 var(--font-display); color: var(--accent-display); }
.sg-t.you { height: 16px; background: transparent; }
.sg-t.you i { background: var(--orange); border-radius: 0 8px 8px 0; }
.sg-v.you { font-size: 2rem; color: var(--accent-display); }
.sg-over { position: absolute; inset: -8px 0 -10px; display: grid; grid-template-columns: var(--lw) repeat(6, minmax(0, 1fr)) var(--vw); pointer-events: none; }
.sg-lic, .sg-cand { grid-column: 5; grid-row: 1; position: relative; }
.sg-lic { border-left: 1px dashed #b9bbc0; margin-left: -0.5px; }
.sg-cand { border-right: 3px solid var(--graphite); margin-right: -1px; }
.sg-over em { position: absolute; font: 600 0.66rem/1 var(--font-mono); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.sg-lic em { bottom: -18px; left: 0; transform: translateX(-50%); color: var(--accent-strong); }
.sg-cand em { top: -24px; right: 0; transform: translateX(50%); background: var(--graphite); color: #fff; padding: 5px 8px; border-radius: 4px; }
.sg-fold { margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; background: var(--bg-alt); }
.sg-fold + .sg-fold { margin-top: 10px; }
.score-chart .sg-fold:first-of-type { margin-top: 40px; }
.sg-fold summary { cursor: pointer; font-weight: 600; color: var(--accent-strong); }
.sg-fold[open] summary { margin-bottom: 14px; }
.sg-fold .note { margin-top: 12px; }
.dark .sg-cand, :root[data-theme="dark"] .sg-cand { border-right-color: #f5f4f2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sg-cand { border-right-color: #f5f4f2; } :root:not([data-theme="light"]) .sg-t i { background: #8a8d94; } }
:root[data-theme="dark"] .sg-t i { background: #8a8d94; }
@media (max-width: 760px) {
  .sg { --lw: 96px; --vw: 30px; row-gap: 12px; }
  .sg-h span { display: none; }
  .sg-h b { font-size: 1.15rem; }
  .sg-l { font-size: 0.8rem; }
  .sg-l.you { font-size: 1rem; }
  .sg-v { font-size: 1.1rem; }
  .sg-v.you { font-size: 1.5rem; }
}
.score-chart { overflow: hidden; }
.sg-ex { margin: calc(-1 * clamp(20px, 3vw, 32px)) calc(-1 * clamp(20px, 3vw, 32px)) 46px; padding: 12px clamp(20px, 3vw, 32px); background: var(--graphite); color: var(--on-dark); font: 600 1.05rem/1.2 var(--font-display); letter-spacing: .01em; }
.sg-ex span { display: inline-block; margin-right: 10px; padding: 4px 8px; border-radius: 4px; background: var(--orange); color: #1c1d20; font: 600 0.68rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 2px; }
.sg-l.you { white-space: nowrap; }
.sg-lic em.f { transform: translateX(calc(-100% - 8px)); color: var(--fg-muted); }
.sg-lic em.p { transform: translateX(8px); }
/* Pass and fail brackets over the levels */
.sg { margin-top: 44px; }
.sg-br { grid-row: 1; align-self: start; position: relative; top: -32px; height: 12px; margin: 0 8px; border: 2px solid; border-bottom: 0; border-radius: 6px 6px 0 0; }
.sg-br.f { grid-column: 2 / 5; border-color: #b9bbc0; margin-right: 10px; }
.sg-br.p { grid-column: 5 / 8; border-color: var(--orange); margin-left: 10px; }
.sg-br em { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 0 8px; background: var(--card); font: 600 0.68rem/1 var(--font-mono); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; }
.sg-br.f em { color: var(--fg-muted); }
.sg-br.p em { color: var(--accent-strong); }
.sg-lic { border-left-style: solid; }
.sg-fold .desc > div { align-content: start; }
.sg-fold .note.src { font-size: 0.78rem; font-style: italic; }
