/* ════════════════════════════════════════════════════════════
   OnAir Manuals — brand stylesheet
   Charte: OnAir Company (onair.company) — navy, Plus Jakarta Sans, #2D7FF5
   ════════════════════════════════════════════════════════════ */

/* ── FONT (self-hosted variable Plus Jakarta Sans, OFL — one file per subset, all weights) ── */
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── TOKENS ── */
:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', 'Hiragino Sans', 'Yu Gothic UI', Meiryo, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;

  --blue: #2D7FF5;
  --blue-2: #1a6de0;
  --blue-soft: #6aaff8;
  --blue-strong: #2D7FF5; /* boutons pleins : bleu de la charte, décision du 24/09 */
  --orange: #f97316;
  --green: #4ae896;
  --amber: #f59e0b;
  --purple: #a855f7;

  --top-h: 64px;
  --side-w: 292px;
  --toc-w: 236px;
  --read-w: 780px;
  --radius: 12px;

  /* dark — default, matches onair.company */
  --bg: #0d1117;
  --bg-deep: #050810;
  --side-bg: #0a0e15;
  --surface: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --surface-solid: #131822;
  --text: #e8eaf2;
  --text-2: #c8cedf;
  --muted: #9aa0b8;
  --muted-2: #7a8099;
  --faint: #7a84a8;
  --border: rgba(255,255,255,.08);
  --border-2: rgba(255,255,255,.14);
  --link: #2D7FF5;                    /* bleu de la charte (24/09) */
  --code-bg: rgba(45,127,245,.12);
  --code-fg: #a9c9ff;
  --mark: rgba(245,158,11,.28);
  --shadow: 0 24px 64px rgba(0,0,0,.55);
  --glow: rgba(45,127,245,.18);

  --c-blue: #2D7FF5;                  /* accent bleu des pages : bleu de la charte (24/09) */
  --c-green: #4ae896;
  --c-amber: #fbbf24;
  --c-purple: #c084fc;
  color-scheme: dark;
}
/* Japanese pages use the system CJK fonts only — the Latin web font is never downloaded there */
:root:lang(ja) { --font: system-ui, -apple-system, 'Segoe UI', 'Hiragino Sans', 'Yu Gothic UI', Meiryo, sans-serif; }


/* ── RESET / BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.75 var(--font);
  background: var(--bg);
  color: var(--text-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
::selection { background: rgba(45,127,245,.35); color: #fff; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ── EYEBROW (charte) ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0;
  box-shadow: 0 0 10px var(--blue);
  animation: oa-blink 2s ease-in-out infinite;
}
@keyframes oa-blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-blue); background: rgba(45,127,245,.1);
  border: 1px solid rgba(45,127,245,.25);
  padding: 3px 10px; border-radius: 100px; white-space: nowrap;
}
.pill--amber { color: var(--c-amber); background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.28); }

kbd {
  font: 600 11px/1 var(--font);
  padding: 4px 6px; border-radius: 6px;
  border: 1px solid var(--border-2); background: var(--surface-2);
  color: var(--muted);
}

/* ── READING PROGRESS ── */
.oa-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1100; pointer-events: none; }
.oa-progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  box-shadow: 0 0 12px rgba(45,127,245,.6);
}

/* ════════════════════════════════════════════════════════════
   TOP BAR — always navy (brand), in both themes
   ════════════════════════════════════════════════════════════ */
.oa-top {
  position: sticky; top: 0; z-index: 1000;
  height: var(--top-h);
  background: rgba(4,7,18,.9);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(45,127,245,.14);
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 4px 24px rgba(0,0,0,.25);
  color: #e8eaf2;
}
.oa-top-inner {
  height: 100%; max-width: 1560px; margin: 0 auto;
  padding: 0 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.oa-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.oa-logo img { height: 38px; width: auto; }
.oa-logo-sub {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #8a90aa; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.12);
  line-height: 1.2;
}

.oa-vols { display: flex; align-items: center; gap: 4px; margin-left: .75rem; }
.oa-vols a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: #8a90aa; text-decoration: none;
  border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.oa-vols a b {
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  min-width: 22px; height: 20px; padding: 0 5px; border-radius: 5px;
  display: inline-grid; place-items: center;
  background: rgba(255,255,255,.06); color: #9aa0b8;
}
.oa-vols a:hover { color: #d8dce8; background: rgba(255,255,255,.04); }
.oa-vols a.active {
  color: #e8eaf2;
  background: rgba(45,127,245,.1);
  border-color: rgba(45,127,245,.24);
  box-shadow: 0 0 12px rgba(45,127,245,.12), inset 0 1px 0 rgba(255,255,255,.06);
}
.oa-vols a.active b { background: var(--blue-strong); color: #fff; }

.oa-top-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

.oa-search-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 8px 0 12px; min-width: 240px;
  border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: #7a8099; font-size: 13.5px; font-weight: 500;
  transition: border-color .2s, background .2s, color .2s;
}
.oa-search-btn span { flex: 1; text-align: left; }
.oa-search-btn:hover { border-color: rgba(45,127,245,.45); background: rgba(45,127,245,.08); color: #c8cedf; }
.oa-search-btn kbd { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #9aa0b8; }

.oa-icon-btn {
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  display: inline-grid; place-items: center;
  background: none; border: 1px solid rgba(255,255,255,.1); color: #9aa0b8;
  transition: color .2s, border-color .2s, background .2s;
}
.oa-icon-btn:hover { color: #e8eaf2; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.05); }
.oa-icon-btn svg { width: 17px; height: 17px; }

.oa-site-link {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, #2D7FF5 0%, #1a6de0 100%);
  box-shadow: 0 0 0 1px rgba(45,127,245,.4), 0 4px 20px rgba(45,127,245,.28);
  transition: transform .18s, box-shadow .18s, opacity .18s;
}
.oa-site-link:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(45,127,245,.5), 0 6px 28px rgba(45,127,245,.45); }
.oa-site-link svg { width: 13px; height: 13px; }

/* Trial CTA (replaces the old "onair.company" button; icon-only on small screens) */
.oa-trial {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, #2D7FF5 0%, #1a6de0 100%);
  box-shadow: 0 0 0 1px rgba(45,127,245,.45), 0 4px 20px rgba(45,127,245,.3);
  transition: transform .18s, box-shadow .18s;
}
.oa-trial:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(45,127,245,.6), 0 6px 28px rgba(45,127,245,.45); }
.oa-trial svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Back to the main website — the manuals have their own top bar */
.oa-site-back {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: #9aa0b8; text-decoration: none; white-space: nowrap;
  transition: color .2s, background .2s;
}
.oa-site-back:hover { color: #e8eaf2; background: rgba(255,255,255,.05); }
.oa-site-back svg { width: 12px; height: 12px; opacity: .8; }
.oa-site-back .i-globe { display: none; width: 17px; height: 17px; opacity: 1; }
@media (max-width: 1380px) { /* icon only, leaves room for longer trial labels (FR, DE…) */
  .oa-site-back { width: 38px; padding: 0; justify-content: center; border: 1px solid rgba(255,255,255,.1); }
  .oa-site-back span, .oa-site-back svg:not(.i-globe) { display: none; }
  .oa-site-back .i-globe { display: block; }
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  padding: 10px 16px; border-radius: 8px; background: var(--blue-strong); color: #fff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.next-link a { display: inline-flex; padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(45,127,245,.3); background: rgba(45,127,245,.06); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.next-link a:hover { background: rgba(45,127,245,.12); }

.oa-internal {
  position: relative; z-index: 1001; padding: 6px 16px; text-align: center;
  background: repeating-linear-gradient(135deg, #7c2d12, #7c2d12 12px, #9a3412 12px, #9a3412 24px);
  color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .06em;
}

.oa-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; padding: 8px; margin-left: -6px;
  background: none; border: none; border-radius: 8px; cursor: pointer;
}
.oa-burger span { display: block; height: 2px; border-radius: 2px; background: #9aa0b8; transition: transform .25s, opacity .25s; }
.oa-burger:hover { background: rgba(255,255,255,.06); }
body.side-open .oa-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.side-open .oa-burger span:nth-child(2) { opacity: 0; }
body.side-open .oa-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════════
   SHELL — sidebar | content | on-this-page
   ════════════════════════════════════════════════════════════ */
.oa-shell {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr) var(--toc-w);
  max-width: 1560px; margin: 0 auto;
  min-height: calc(100vh - var(--top-h));
}

/* ── SIDEBAR ── */
.oa-side {
  position: sticky; top: var(--top-h);
  height: calc(100vh - var(--top-h));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--side-bg);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem 3rem 1.25rem;
  scrollbar-width: thin; scrollbar-color: var(--border-2) transparent;
}
.oa-side-head { padding: 0 .25rem 1.25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.oa-side-title {
  display: block; margin-top: .45rem;
  font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.015em;
  color: var(--text); text-decoration: none;
}
.oa-side-vols { display: none; }
.oa-langs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .9rem; }
.oa-langs a {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 9px; border-radius: 6px; text-decoration: none;
  color: var(--muted); border: 1px solid var(--border);
  transition: color .15s, border-color .15s, background .15s;
}
.oa-langs a:hover { color: var(--text); border-color: var(--border-2); }
.oa-langs a.active { color: #fff; background: var(--blue-strong); border-color: var(--blue-strong); }

.nav-ch { margin-bottom: 2px; }
.nav-ch-row { display: flex; align-items: center; gap: 2px; }
.nav-ch-link {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 8px;
  font-size: 14px; font-weight: 600; line-height: 1.35;
  color: var(--text-2); text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-ch-link:hover { background: var(--surface-2); color: var(--text); }
.nav-num {
  flex-shrink: 0; width: 26px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: .02em;
  background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border);
  transition: background .2s, color .2s, border-color .2s;
}
.nav-ch.active > .nav-ch-row .nav-ch-link { color: var(--text); }
.nav-ch.active > .nav-ch-row .nav-num { background: var(--blue-strong); border-color: var(--blue-strong); color: #fff; box-shadow: 0 0 12px rgba(45,127,245,.35); }

.nav-toggle {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 7px;
  display: none; place-items: center; cursor: pointer;
  background: none; border: none; color: var(--faint);
}
.js .nav-toggle { display: grid; }
.nav-toggle:hover { background: var(--surface-2); color: var(--text); }
.nav-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-ch.open .nav-toggle svg { transform: rotate(90deg); }

.nav-secs { list-style: none; margin: 2px 0 10px 20px; padding: 0 0 0 12px; border-left: 1px solid var(--border); }
.js .nav-ch:not(.open) .nav-secs { display: none; }
.nav-secs a {
  display: flex; gap: 8px;
  padding: 5px 8px; margin-left: -13px; border-left: 1px solid transparent;
  font-size: 13px; line-height: 1.45; color: var(--muted-2); text-decoration: none;
  border-radius: 0 6px 6px 0;
  transition: color .15s, background .15s, border-color .15s;
}
.nav-secs a:hover { color: var(--text); background: var(--surface); }
.nav-secs a.active { color: var(--c-blue); border-left-color: var(--blue); background: rgba(45,127,245,.07); font-weight: 600; }
.nav-sec-num { flex-shrink: 0; min-width: 2.2em; color: var(--faint); font-variant-numeric: tabular-nums; }
.nav-secs a.active .nav-sec-num { color: inherit; opacity: .7; }

/* Bottom of the mobile drawer: business links */
.oa-side-cta { display: none; }

/* ── ON THIS PAGE ── */
.oa-toc { border-left: 1px solid var(--border); }
.oa-toc-inner {
  position: sticky; top: var(--top-h);
  max-height: calc(100vh - var(--top-h)); overflow-y: auto;
  padding: 2rem 1.25rem 2rem 1.25rem;
  scrollbar-width: thin; scrollbar-color: var(--border-2) transparent;
}
.oa-toc-title {
  margin: 0 0 .75rem; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text);
}
.oa-toc-chapter { margin: 0 0 .75rem; font-size: 12.5px; font-weight: 600; color: var(--muted-2); line-height: 1.4; }
#oa-toc-nav a {
  display: block; padding: 4px 0 4px 12px;
  border-left: 2px solid var(--border);
  font-size: 12.5px; line-height: 1.45; color: var(--muted-2); text-decoration: none;
  transition: color .15s, border-color .15s;
}
#oa-toc-nav a:hover { color: var(--text); }
#oa-toc-nav a.lvl-3 { padding-left: 24px; font-size: 12px; }
#oa-toc-nav a.active { color: var(--c-blue); border-left-color: var(--blue); font-weight: 600; }
#oa-toc-nav a.in-section:not(.active) { color: var(--text-2); }
.oa-toc-top {
  display: inline-flex; margin-top: 1.25rem; font-size: 12px; font-weight: 600;
  color: var(--muted-2); text-decoration: none;
}
.oa-toc-top:hover { color: var(--text); }

/* ════════════════════════════════════════════════════════════
   CONTENT
   ════════════════════════════════════════════════════════════ */
.oa-main { min-width: 0; padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem) 4rem; }
.oa-main > * { max-width: var(--read-w); margin-left: auto; margin-right: auto; }

/* ── VOLUME COVER ── */
.vol-hero {
  position: relative; overflow: hidden;
  padding: 2.75rem 2.25rem 2.25rem;
  border-radius: 18px;
  border: 1px solid rgba(45,127,245,.22);
  background:
    radial-gradient(ellipse 70% 90% at 85% 0%, rgba(45,127,245,.22), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(168,85,247,.08), transparent 70%),
    var(--surface-solid);
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset, var(--shadow);
}
.vol-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.vol-hero > * { position: relative; z-index: 1; }
.vol-hero h1 {
  margin: .6rem 0 .35rem;
  font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em;
  color: var(--text);
}
.vol-sub { margin: 0; font-size: 18px; color: var(--muted); font-weight: 500; }
.vol-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.25rem; }
.vol-intro { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 15px; color: var(--muted); }
.vol-intro p { margin: 0 0 .8rem; }
.vol-intro p:last-child { margin-bottom: 0; }

.chapter-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
  margin: 1.5rem auto 0;
}
.chapter-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.chapter-card:hover { background: rgba(45,127,245,.06); border-color: rgba(45,127,245,.3); transform: translateY(-2px); box-shadow: 0 0 28px var(--glow); }
.chapter-card .nav-num { width: 30px; height: 26px; font-size: 12px; }
.chapter-card:hover .nav-num { background: var(--blue-strong); border-color: var(--blue-strong); color: #fff; }
.chapter-card-t { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; }
.chapter-card-c { display: block; margin-top: 2px; font-size: 12px; color: var(--muted-2); }

/* ── CHAPTER ── */
article.chapter { margin-top: 4.5rem; }
article.chapter > * { max-width: 100%; }
.chapter-head {
  position: relative;
  padding: 2rem 0 1.75rem;
  margin-bottom: .5rem;
  border-top: 1px solid var(--border);
}
.chapter-head::before {
  content: ''; position: absolute; top: -1px; left: 0; width: 120px; height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.chapter-head h1, .chapter-head h2 {
  margin: .5rem 0 0; padding: 0; border: 0;
  font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -.028em;
  color: var(--text);
}
.chapter-head .lede { margin: .9rem 0 0; font-size: 18px; line-height: 1.65; color: var(--muted); }

/* ── HEADINGS ── */
.oa-main h2, .oa-main h3, .oa-main h4 { color: var(--text); position: relative; }
.oa-main h2[id] {
  margin: 3.25rem 0 1rem; padding-top: 2.25rem;
  border-top: 1px solid var(--border);
  font-size: clamp(22px, 2.5vw, 27px); font-weight: 800; line-height: 1.25; letter-spacing: -.02em;
}
.chapter-head + h2[id], .chapter-head + p + h2[id], .crumbs + article .chapter-head + h2[id] { border-top: 0; padding-top: 0; margin-top: 2rem; }
.oa-main h3 { margin: 2.25rem 0 .6rem; font-size: 18.5px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.oa-main h4 { margin: 1.75rem 0 .5rem; font-size: 16px; font-weight: 700; }
.sec-num { color: var(--c-blue); font-variant-numeric: tabular-nums; margin-right: .15em; }

.anchor {
  position: absolute; left: -1.4em; padding-right: .4em;
  color: var(--faint); text-decoration: none; font-weight: 600;
  opacity: 0; transition: opacity .15s, color .15s;
}
h2[id] > .anchor { top: 2.25rem; }
h2:hover > .anchor, h3:hover > .anchor, .anchor:focus { opacity: 1; }
.anchor:hover { color: var(--blue); }
.flash { animation: oa-flash 1.6s ease-out; }
@keyframes oa-flash { 0%, 30% { background: rgba(45,127,245,.18); box-shadow: 0 0 0 8px rgba(45,127,245,.18); border-radius: 6px; } 100% { background: transparent; box-shadow: 0 0 0 8px transparent; } }

/* ── PROSE ── */
.oa-main p { margin: 0 0 1.1rem; }
.oa-main strong { color: var(--text); font-weight: 700; }
.oa-main em { color: var(--text-2); }
.oa-main ul, .oa-main ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.oa-main li { margin: .35rem 0; padding-left: .25rem; }
.oa-main ul > li::marker { color: var(--blue); }
.oa-main ol > li::marker { color: var(--c-blue); font-weight: 700; }
.oa-main hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

ol.steps { list-style: none; padding: 0; counter-reset: step; }
ol.steps > li {
  counter-increment: step; position: relative;
  padding: .1rem 0 .1rem 2.6rem; margin: .7rem 0;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: .15rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 800; color: var(--c-blue);
  background: rgba(45,127,245,.12); border: 1px solid rgba(45,127,245,.3);
}
ol.steps > li:not(:last-child)::after {
  content: ''; position: absolute; left: calc(.875rem - .5px); top: 2.1rem; bottom: -.8rem;
  width: 1px; background: linear-gradient(rgba(45,127,245,.3), transparent);
}

code {
  font-family: var(--mono); font-size: .86em;
  padding: .12em .42em; border-radius: 6px;
  background: var(--code-bg); color: var(--code-fg);
  overflow-wrap: anywhere;
}
pre {
  margin: 0 0 1.25rem; padding: 1.1rem 1.25rem; overflow-x: auto;
  background: var(--bg-deep); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13.5px; line-height: 1.65;
}
pre code { padding: 0; background: none; color: var(--text-2); font-size: inherit; }

/* ── STATS ── */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; margin: 1.5rem 0 2rem;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.stats > div { background: var(--surface-solid); padding: 1.25rem 1rem; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.stats strong { display: block; margin-bottom: .3rem; font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; color: var(--c-blue); }

/* ── TABLES ── */
.table {
  margin: 1.25rem 0 1.75rem; overflow-x: auto;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  scrollbar-width: thin; scrollbar-color: var(--border-2) transparent;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
th, td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th {
  position: sticky; top: 0;
  background: var(--surface-2);
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(45,127,245,.045); }
td strong { color: var(--text); }
td:first-child { color: var(--text); }
td code { white-space: nowrap; }

/* ── CALLOUTS ── */
blockquote {
  --c: var(--blue); --ct: var(--c-blue);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
  position: relative;
  margin: 1.5rem 0; padding: 1rem 1.25rem 1rem 3.1rem;
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
  border-left: 3px solid var(--c);
  border-radius: 4px var(--radius) var(--radius) 4px;
  background: color-mix(in srgb, var(--c) 7%, transparent);
  font-size: 15px; line-height: 1.7; color: var(--text-2);
}
blockquote::before {
  content: ''; position: absolute; left: 1.05rem; top: 1.2rem;
  width: 18px; height: 18px; background: var(--ct);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
blockquote > strong:first-child, blockquote > p:first-child > strong:first-child { color: var(--ct); }
blockquote p:last-child, blockquote ul:last-child { margin-bottom: 0; }
.callout-tip, .callout-success {
  --c: var(--green); --ct: var(--c-green);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6M10 22h4'/%3E%3C/svg%3E");
}
.callout-success { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.callout-warning {
  --c: var(--amber); --ct: var(--c-amber);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
}
.callout-shot, .callout-example {
  --c: var(--purple); --ct: var(--c-purple);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E");
}
.callout-example { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M8 6h8M8 10h8M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01M16 18h.01'/%3E%3C/svg%3E"); }
.callout-shot { font-size: 14px; color: var(--muted); }

/* ── FIGURES ── */
figure {
  margin: 1.75rem 0 2rem; padding: 0; overflow: hidden;
  border: 1px solid var(--border-2); border-radius: 14px;
  background: var(--surface-solid);
  box-shadow: 0 0 0 1px rgba(45,127,245,.06), 0 20px 50px rgba(0,0,0,.28);
}
figure img { width: 100%; cursor: zoom-in; transition: opacity .2s; }
figure img:hover { opacity: .94; }
figcaption {
  padding: .75rem 1rem; border-top: 1px solid var(--border);
  font-size: 13px; line-height: 1.55; color: var(--muted); background: var(--surface);
}
figcaption::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--blue); vertical-align: middle; }

/* ── SEE ALSO (related chapters in the other volumes): one compact line, names shortened to fit ── */
.ch-pairs {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 6px;
  margin: 1.25rem 0 0; padding-top: .85rem; border-top: 1px dashed var(--border-2);
  overflow: hidden;
}
.pairs-label { flex-shrink: 0; margin-right: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.pair-link {
  flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 3px; border-radius: 999px;
  border: 1px solid rgba(45,127,245,.26); background: rgba(45,127,245,.05);
  font-size: 12px; line-height: 1.3; color: var(--text-2); text-decoration: none;
  transition: border-color .2s, background .2s;
}
.pair-link b {
  flex-shrink: 0; padding: 2px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .04em; white-space: nowrap;
  background: rgba(45,127,245,.16); color: var(--c-blue);
}
.pair-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pair-link:hover { border-color: rgba(45,127,245,.55); background: rgba(45,127,245,.12); }
@media (max-width: 640px) { .ch-pairs { flex-wrap: wrap; } .pair-link span { white-space: normal; } }

.link-note--manual { color: var(--c-blue) !important; border-color: rgba(45,127,245,.3) !important; }
.pill--updated { margin-left: 8px; color: var(--c-green); background: rgba(74,232,150,.1); border-color: rgba(74,232,150,.35); letter-spacing: .08em; }
.chapter-card-c .pill--updated { padding: 1px 7px; font-size: 9.5px; }
.vol-hero .vol-trust { display: flex; align-items: center; gap: 8px; margin: 1.25rem 0 0; font-size: 12.5px; color: var(--muted-2); }
.vol-hero .vol-trust::before { content: ''; width: 14px; height: 1px; background: var(--border-2); }

/* "Still stuck?" exit at the end of troubleshooting sections */
.callout-help {
  --c: var(--blue); --ct: var(--c-blue);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

/* Academy quick path */
.first-flight {
  margin: 1.25rem auto 0; padding: 1.5rem 1.5rem 1.25rem; border-radius: 16px;
  border: 1px solid rgba(74,232,150,.3);
  background: radial-gradient(ellipse 70% 100% at 0% 0%, rgba(74,232,150,.1), transparent 60%), var(--surface-solid);
}
.first-flight .eyebrow { color: var(--c-green); }
.first-flight .eyebrow::before { background: var(--green); box-shadow: 0 0 10px var(--green); }
.first-flight h2 { margin: .45rem 0 .25rem; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.first-flight > p { margin: 0 0 1rem; font-size: 14px; color: var(--muted); }
.first-flight ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.first-flight li { margin: 0; padding: 0; }
.first-flight a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600;
  transition: border-color .2s, background .2s;
}
.first-flight a:hover { border-color: rgba(74,232,150,.45); background: rgba(74,232,150,.06); }
.first-flight b { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(74,232,150,.14); color: var(--c-green); border: 1px solid rgba(74,232,150,.35); }
.first-flight span { flex: 1; line-height: 1.35; }
.first-flight i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted-2); white-space: nowrap; }
@media (max-width: 640px) { .first-flight ol { grid-template-columns: 1fr; } }

.home-hero--small { padding-bottom: 6.5rem; }

.link-note {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 5px; margin-left: 4px; vertical-align: 1px;
  color: var(--muted-2); border: 1px solid var(--border);
}

/* ── SIMULATORS (home) ── */
.sims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sim-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--border-2); background: var(--surface-solid); color: var(--text-2); text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.sim-card:hover { transform: translateY(-3px); border-color: rgba(45,127,245,.4); box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 40px rgba(45,127,245,.14); }
.sim-logos { /* always dark so white/grey logos stay visible in both themes */
  display: flex; align-items: center; justify-content: center; gap: 18px; height: 104px; padding: 0 20px;
  background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(45,127,245,.18), transparent 70%), #080c18;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sim-logos img { max-height: 46px; max-width: 46%; width: auto; object-fit: contain; }
.sim-logos img:only-child { max-width: 70%; }
.sim-tycoon-icon svg { width: 40px; height: 40px; color: var(--amber); }
.sim-body { display: flex; flex-direction: column; gap: .45rem; flex: 1; padding: 1.1rem 1.2rem 1.1rem; }
.sim-body .pill { align-self: flex-start; }
.sim-body h3 { margin: .15rem 0 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.sim-body p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); flex: 1; }
.sim-go { font-size: 13px; font-weight: 700; color: var(--c-blue); }
@media (max-width: 959px) { .sims { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .sims { grid-template-columns: 1fr; } }

/* footer "Works with" strip (footer is always dark) */
.oa-ft-sims { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.05); }
.oa-ft-sims-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #4b5480; }
.oa-ft-sims-logos { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.oa-ft-sims-logos img { height: 30px; width: 110px; object-fit: contain; opacity: .45; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.oa-ft-sims-logos img:hover { opacity: .9; filter: none; }

/* ── WHAT'S NEXT (end of volume) ── */
.whats-next {
  margin-top: 4.5rem; padding: 2rem 2rem 1.75rem; border-radius: 18px;
  border: 1px solid rgba(45,127,245,.25);
  background: radial-gradient(ellipse 70% 100% at 100% 0%, rgba(45,127,245,.16), transparent 60%), var(--surface-solid);
  box-shadow: var(--shadow);
}
.whats-next h2 { margin: .5rem 0 .4rem; font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--text); }
.whats-next > p { margin: 0 0 1.25rem; color: var(--muted); }
.wn-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.wn-card {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px;
  transition: border-color .2s, background .2s, transform .2s;
}
.wn-card:hover { border-color: rgba(45,127,245,.4); background: rgba(45,127,245,.07); transform: translateY(-2px); }
.wn-card b { display: inline-grid; place-items: center; min-width: 44px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--blue-strong); color: #fff; font-size: 11px; }
.wn-card b svg { width: 15px; height: 15px; }
.wn-trial {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.wn-trial p { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.wn-trial-btn, .oa-promo a {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 10px;
  background: linear-gradient(135deg, #2D7FF5, #1a6de0); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(45,127,245,.4), 0 4px 20px rgba(45,127,245,.3);
  transition: transform .18s, box-shadow .18s;
}
.wn-trial-btn:hover, .oa-promo a:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(45,127,245,.5), 0 6px 28px rgba(45,127,245,.45); }

/* ── Discord: Discord's own blurple, so the button reads as Discord (24/09) ── */
.wn-trial-btn[href*="discord"], .oa-promo a[href*="discord"] {
  background: linear-gradient(135deg, #5865F2, #4752c4);
  box-shadow: 0 0 0 1px rgba(88,101,242,.45), 0 4px 20px rgba(88,101,242,.3);
}
.wn-trial-btn[href*="discord"]:hover, .oa-promo a[href*="discord"]:hover {
  box-shadow: 0 0 0 1px rgba(88,101,242,.6), 0 6px 28px rgba(88,101,242,.45);
}
.oa-ft-social[aria-label="Discord"]:hover { color: #fff; border-color: rgba(88,101,242,.6); background: rgba(88,101,242,.16); }

/* ── PROMO BANNER (visitors arriving from a search engine) ── */
.oa-promo {
  position: relative; z-index: 990;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 48px 10px 16px;
  background: linear-gradient(90deg, rgba(9,14,28,.98), rgba(12,20,50,.98), rgba(9,14,28,.98));
  border-bottom: 1px solid rgba(45,127,245,.25);
  font-size: 13.5px; font-weight: 500; color: #c8cedf;
}
.oa-promo a { padding: 6px 14px; font-size: 13px; }
.oa-promo button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #7a8099; font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.oa-promo button:hover { color: #e8eaf2; }

/* ── CHAPTER PAGER ── */
.ch-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 3.5rem 0 0; }
.ch-pager a {
  display: flex; flex-direction: column; gap: 3px;
  padding: 1rem 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  text-decoration: none; color: var(--text);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.ch-pager a:hover { border-color: rgba(45,127,245,.35); background: rgba(45,127,245,.06); box-shadow: 0 0 28px var(--glow); transform: translateY(-2px); }
.ch-pager small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-blue); }
.ch-pager span { font-size: 15px; font-weight: 700; line-height: 1.35; }
.ch-pager .next { grid-column: 2; text-align: right; }

/* ════════════════════════════════════════════════════════════
   SEARCH (Ctrl K)
   ════════════════════════════════════════════════════════════ */
.oa-search {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 10vh 1rem 1rem;
  background: rgba(3,6,14,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.oa-search-box {
  width: min(680px, 100%); max-height: 76vh;
  display: flex; flex-direction: column;
  background: var(--surface-solid); color: var(--text-2);
  border: 1px solid rgba(45,127,245,.3); border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 32px 80px rgba(0,0,0,.6), 0 0 80px rgba(45,127,245,.14);
  overflow: hidden;
}
.oa-search-field { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.oa-search-field svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
.oa-search-field input {
  flex: 1; height: 58px; border: 0; outline: 0; background: none;
  font: 500 17px var(--font); color: var(--text);
}
.oa-search-field input::placeholder { color: var(--muted-2); }
.oa-search-field input::-webkit-search-cancel-button { display: none; }
.oa-search-results { overflow-y: auto; padding: 8px; }
.oa-search-results:empty { display: none; }
.oa-search-group { padding: 10px 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.oa-search-item {
  display: block; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: inherit; border: 1px solid transparent;
}
.oa-search-item.sel { background: rgba(45,127,245,.1); border-color: rgba(45,127,245,.28); }
.oa-search-item b { display: block; font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.4; }
.oa-search-item small { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 1px; }
.oa-search-item span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.oa-search-item mark { background: var(--mark); color: var(--text); border-radius: 3px; padding: 0 2px; }
.oa-search-foot {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  padding: 10px 16px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted-2);
}
.oa-search-foot .count { margin-left: auto; }
.oa-search-empty { padding: 24px 16px; text-align: center; font-size: 14px; color: var(--muted); }
.oa-search-empty p { margin: 0 0 .5rem; }
.oa-search-help { font-size: 13px; color: var(--muted-2); }
.oa-search-help a { color: var(--c-blue); font-weight: 600; }

/* ── LIGHTBOX ── */
.oa-lightbox {
  position: fixed; inset: 0; z-index: 1300;
  display: grid; place-items: center; padding: 3vh 3vw;
  background: rgba(3,6,14,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.oa-lightbox img { max-width: 100%; max-height: 86vh; width: auto; border-radius: 10px; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.oa-lightbox p { margin: 1rem 0 0; max-width: 900px; text-align: center; font-size: 13.5px; color: #9aa0b8; }

/* ── TOAST / FAB ── */
.oa-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 1400;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 10px;
  background: #0d1226; color: #e8eaf2; border: 1px solid rgba(45,127,245,.35);
  font-size: 13px; font-weight: 600; box-shadow: 0 12px 40px rgba(0,0,0,.45);
  transition: opacity .2s, transform .2s;
}
.oa-toast.show { opacity: 1; transform: translate(-50%, 0); }
.oa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  display: grid; place-items: center;
  background: var(--surface-solid); color: var(--text-2);
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .2s, transform .2s, border-color .2s, color .2s;
}
.oa-fab.show { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 1280px) { .oa-fab { display: none; } } /* the right rail has its own "back to top" */
.oa-fab:hover { border-color: var(--blue); color: var(--blue); }
.oa-fab svg { width: 18px; height: 18px; }

.oa-scrim { display: none; }

/* ════════════════════════════════════════════════════════════
   FOOTER (charte)
   ════════════════════════════════════════════════════════════ */
.oa-ft { background: #050810; border-top: 1px solid rgba(255,255,255,.06); color: #7a8099; font-size: 13.5px; }
.oa-ft-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.oa-ft-main { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 3rem; padding: 3.5rem 0 3rem; }
.oa-ft-brand img { height: 40px; width: auto; opacity: .92; }
.oa-ft-brand p { margin: 1rem 0; max-width: 280px; font-size: 13px; line-height: 1.75; color: #4b5480; }
.oa-ft-socials { display: flex; gap: .5rem; }
.oa-ft-social {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: #4b5480;
  transition: border-color .18s, color .18s, background .18s;
}
.oa-ft-social:hover { border-color: rgba(45,127,245,.4); color: #9aa0b8; background: rgba(45,127,245,.08); }
.oa-ft-social svg { width: 16px; height: 16px; }
.oa-ft-col-title { margin: 0 0 1rem; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e8eaf2; }
.oa-ft-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.oa-ft-col a { color: #4b5480; text-decoration: none; transition: color .18s; }
.oa-ft-col a:hover { color: #9aa0b8; }
.oa-ft-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.05);
  font-size: 12.5px; color: #2f3658;
}

/* ════════════════════════════════════════════════════════════
   HOME (index)
   ════════════════════════════════════════════════════════════ */
.home-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 5.5rem 1.5rem 8.5rem;
  background: #050810 url('assets/brand/onair-company-home-slide-01.jpg') center / cover no-repeat;
  color: #fff;
}
.home-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(8,12,20,.82) 65%, var(--bg) 100%);
}
.home-hero > * { position: relative; }
.home-hero h1 { margin: .9rem 0 .6rem; font-size: clamp(36px, 6vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: #fff; }
.home-hero h1 em { font-style: normal; color: var(--blue); }
.home-hero p { max-width: 640px; margin: 0 auto; font-size: clamp(15px, 1.8vw, 18px); line-height: 1.7; color: rgba(220,228,248,.78); }
.home-search {
  display: flex; align-items: center; gap: 12px;
  width: min(620px, 100%); height: 58px; margin: 2rem auto 0; padding: 0 12px 0 20px;
  border-radius: 14px; cursor: pointer;
  background: rgba(8,12,24,.72); border: 1px solid rgba(45,127,245,.35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 20px 50px rgba(0,0,0,.45), 0 0 48px rgba(45,127,245,.18);
  color: #9aa0b8; font-size: 16px; font-weight: 500;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.home-search:hover { border-color: rgba(45,127,245,.65); box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 0 24px 60px rgba(0,0,0,.5), 0 0 64px rgba(45,127,245,.3); transform: translateY(-1px); }
.home-search svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }
.home-search span { flex: 1; text-align: left; }
.home-search kbd { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #9aa0b8; }
.start-here { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.sh-route {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  padding: 1rem 2.75rem 1rem 1.25rem; border-radius: 14px;
  background: var(--surface-solid); border: 1px solid var(--border-2); box-shadow: var(--shadow);
  text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.sh-route small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sh-route b { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.sh-route i { position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 18px; color: var(--c-blue); transition: transform .2s; }
.sh-route:hover { border-color: rgba(45,127,245,.45); transform: translateY(-2px); box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 40px rgba(45,127,245,.16); }
.sh-route:hover i { transform: translate(4px, -50%); }
.sh-route--main { border-color: rgba(74,232,150,.35); background: radial-gradient(ellipse 80% 120% at 0% 0%, rgba(74,232,150,.12), transparent 60%), var(--surface-solid); }
.sh-route--main small { color: var(--c-green); }
.pill--start { color: var(--c-green); background: rgba(74,232,150,.1); border-color: rgba(74,232,150,.35); }
.vol-card--start { border-color: rgba(74,232,150,.3); }
@media (max-width: 859px) { .start-here { grid-template-columns: 1fr; } }
.home-wrap { max-width: 1200px; margin: -5rem auto 0; padding: 0 1.5rem 5rem; position: relative; z-index: 2; }

.vol-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vol-card {
  position: relative; display: flex; flex-direction: column;
  padding: 1.75rem 1.6rem 1.5rem; border-radius: 16px; overflow: hidden;
  background: var(--surface-solid); border: 1px solid var(--border-2);
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset, var(--shadow);
  color: var(--text-2); text-decoration: none;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.vol-card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 160px; pointer-events: none;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(45,127,245,.18), transparent 70%);
}
.vol-card > * { position: relative; }
.vol-card:hover { transform: translateY(-5px); border-color: rgba(45,127,245,.4); box-shadow: 0 28px 72px rgba(0,0,0,.45), 0 0 50px rgba(45,127,245,.18); }
.vol-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vol-num {
  font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(160deg, #fff 10%, var(--blue) 120%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vol-card h2 { margin: 1.1rem 0 .5rem; color: var(--text); }
.vol-num small { font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-right: 8px; vertical-align: 6px; }

/* stacked volume title: ONAIR / HANDBOOK */
.bt { display: flex; flex-direction: column; line-height: 1; }
.bt-pre { font-size: .34em; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--c-blue); margin-bottom: .2em; }
.bt-main { font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
.vol-card .bt { font-size: 34px; }
.vol-hero h1 .bt { font-size: clamp(38px, 5.4vw, 60px); }
.nav-num--vol { width: auto; padding: 0 7px; }
.vol-q { margin: 0 0 .75rem; font-size: 14.5px; font-weight: 600; color: var(--c-blue); }
.vol-d { margin: 0 0 1.25rem; font-size: 14px; line-height: 1.7; color: var(--muted); flex: 1; }
.vol-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted-2); }
.vol-go { font-weight: 700; color: var(--c-blue); white-space: nowrap; text-decoration: none; }
.vol-go:hover { text-decoration: underline; }
.vol-langs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 1.1rem; }
.vol-langs a, .vol-langs span {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px;
  border: 1px solid var(--border); color: var(--muted); text-decoration: none;
}
.vol-langs a:hover { border-color: var(--blue); color: var(--c-blue); }

.home-section { margin-top: 4.5rem; }
.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.home-section-head h2 { margin: .5rem 0 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.dir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dir-col { padding: 1.25rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.dir-col h3 { margin: 0 0 .75rem; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--text); }
.dir-col ul { list-style: none; margin: 0; padding: 0; }
.dir-col li a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 6px 8px; border-radius: 8px;
  font-size: 13.5px; color: var(--text-2); text-decoration: none;
}
.dir-col li a:hover { background: rgba(45,127,245,.08); color: var(--text); }
.dir-col li a i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--faint); min-width: 1.6em; }
.home-hint { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 2.5rem; font-size: 13px; color: var(--muted-2); }
.home-hint span { display: inline-flex; align-items: center; gap: 8px; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1279px) {
  .oa-shell { grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .oa-toc { display: none; }
}
kbd { white-space: nowrap; }
@media (max-width: 1240px) {
  .oa-logo-sub { display: none; }
  .oa-search-btn { min-width: 0; }
  .oa-search-btn kbd { display: none; }
}
@media (max-width: 1100px) {
  .oa-site-back { display: none; }
  .oa-trial { width: 38px; padding: 0; justify-content: center; }
  .oa-trial span { display: none; }
  .oa-vols a { padding: 7px 10px; }
}
@media (max-width: 959px) {
  .oa-shell { display: block; }
  .oa-burger { display: flex; }
  .oa-side {
    position: fixed; top: var(--top-h); left: 0; bottom: 0; z-index: 950;
    width: min(340px, 88vw); height: auto;
    transform: translateX(-102%); transition: transform .28s cubic-bezier(.22,1,.36,1);
    box-shadow: var(--shadow);
  }
  body.side-open .oa-side { transform: none; }
  .oa-scrim { display: block; position: fixed; inset: var(--top-h) 0 0; z-index: 940; background: rgba(3,6,14,.55); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.side-open .oa-scrim { opacity: 1; pointer-events: auto; }
  body.side-open { overflow: hidden; }
  .anchor { display: none; }
  .oa-side-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
  .oa-side-cta a { padding: 9px 6px; border-radius: 8px; border: 1px solid var(--border); text-align: center; font-size: 13px; font-weight: 600; color: var(--text-2); text-decoration: none; }
  .oa-side-cta .oa-side-cta-main {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px;
    background: linear-gradient(135deg, #2D7FF5, #1a6de0); border-color: transparent; color: #fff; font-weight: 700;
  }
  .oa-side-cta-main svg { width: 15px; height: 15px; }
}
@media (max-width: 859px) {
  .oa-vols { display: none; }
  .oa-side-vols { display: flex; flex-direction: column; gap: 4px; margin: 0 0 1rem; }
  .oa-side-vols a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; border: 1px solid var(--border); }
  .oa-side-vols a b { font-size: 11px; min-width: 24px; text-align: center; padding: 2px 4px; border-radius: 5px; background: var(--surface-2); }
  .oa-side-vols a.active { color: var(--text); border-color: rgba(45,127,245,.35); background: rgba(45,127,245,.08); }
  .oa-side-vols a.active b { background: var(--blue); color: #fff; }
  .vol-cards, .dir { grid-template-columns: 1fr; }
  .oa-ft-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .oa-ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .oa-logo-sub { display: none; }
  .oa-search-btn { width: 38px; padding: 0; justify-content: center; }
  .oa-search-btn span, .oa-search-btn kbd { display: none; }
  .oa-trial { width: 38px; padding: 0; justify-content: center; }
  .oa-trial span { display: none; }
  .oa-top-inner { gap: .6rem; }
  .oa-main { padding-top: 1.25rem; }
  .vol-hero { padding: 1.75rem 1.25rem 1.5rem; border-radius: 14px; }
  .chapter-grid { grid-template-columns: 1fr; }
  .ch-pager { grid-template-columns: 1fr; }
  .ch-pager .next { grid-column: 1; }
  blockquote { padding-left: 2.8rem; }
  th, td { padding: 9px 12px; }
  .oa-search { padding-top: 1rem; }
  .oa-search-foot .keys { display: none; }
}


/* ── HOME: review fixes (12/09) ── */
.home-hero p { text-wrap: balance; }
.sh-title { margin: 0 0 .85rem; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(220,228,248,.85); }
.start-here { margin-bottom: 2.75rem; }

/* chapter directory: collapsible per volume (closed by default on phones, see app.js) */
details.dir-col > summary { list-style: none; cursor: pointer; }
details.dir-col > summary::-webkit-details-marker { display: none; }
details.dir-col > summary h3 { margin: 0; }
details.dir-col[open] > summary h3 { margin-bottom: .75rem; }
.dir-count { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted-2); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); }
details.dir-col > summary h3::after {
  content: ''; width: 8px; height: 8px; margin-left: 10px; flex-shrink: 0;
  border-right: 2px solid var(--muted-2); border-bottom: 2px solid var(--muted-2); transform: rotate(45deg) translateY(-2px); transition: transform .2s;
}
details.dir-col[open] > summary h3::after { transform: rotate(-135deg) translateY(-2px); }
@media (min-width: 860px) { /* desktop: lists always open, no toggle arrow */
  details.dir-col > summary { pointer-events: none; cursor: default; }
  details.dir-col > summary h3::after { display: none; }
}

/* help band before the footer */
.home-help {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 4rem; padding: 1.75rem 2rem; border-radius: 16px;
  border: 1px solid rgba(88,101,242,.3);
  background: radial-gradient(ellipse 60% 120% at 0% 0%, rgba(88,101,242,.14), transparent 60%), var(--surface-solid);
}
.home-help h2 { margin: 0 0 .3rem; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.home-help p { margin: 0; color: var(--muted); font-size: 14.5px; }
.home-help-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.home-help-actions .wn-trial-btn svg { width: 17px; height: 17px; }
.home-help-alt { font-size: 14px; font-weight: 700; color: var(--c-blue); text-decoration: none; }
.home-help-alt:hover { text-decoration: underline; }

@media (max-width: 859px) {
  .home-hint { display: none; }
  .home-help { padding: 1.4rem 1.25rem; }
}
/* phones: compact simulator cards, two per row */
@media (max-width: 580px) {
  .sims { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sim-logos { height: 64px; gap: 8px; padding: 0 10px; }
  .sim-logos img { max-height: 30px; }
  .sim-tycoon-icon svg { width: 28px; height: 28px; }
  .sim-body { padding: .75rem .8rem .85rem; gap: .3rem; }
  .sim-body .pill, .sim-body p { display: none; }
  .sim-body h3 { font-size: 13.5px; line-height: 1.3; }
  .sim-go { font-size: 12px; }
}


/* ── ONE PAGE PER CHAPTER ── */
.oa-shell--cover { grid-template-columns: var(--side-w) minmax(0, 1fr); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 auto 1.5rem; font-size: 12.5px; color: var(--muted-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-blue); }
.crumbs span[aria-current] { color: var(--text-2); font-weight: 600; }
.crumbs + article.chapter { margin-top: 0; }
.crumbs + article.chapter .chapter-head { border-top: 0; padding-top: .5rem; }
.crumbs + article.chapter .chapter-head::before { display: none; }
.oa-side-all {
  display: flex; align-items: center; gap: 8px; margin-top: .9rem; padding: 8px 10px; border-radius: 8px;
  border: 1px dashed var(--border-2); font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none;
}
.oa-side-all:hover { color: var(--c-blue); border-color: rgba(45,127,245,.45); }
.oa-side-all svg { width: 15px; height: 15px; flex-shrink: 0; }
.vol-all { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-size: 12.5px; font-weight: 700; color: var(--c-blue); text-decoration: none; }
.vol-all:hover { text-decoration: underline; }
.vol-all svg { width: 14px; height: 14px; }
/* "Download the PDF · 32 MB" next to "Whole volume on one page" (cover) and under it (side menu) */
.vol-pdf { margin-left: 12px; }
.oa-side-pdf { margin-top: .45rem; }


/* ── CHAPTER COLOURS (as the PDF side index: one colour per chapter, set inline as --ch) ── */
:root { --air: #f5a623; }
.nav-ch .nav-num, .chapter-card .nav-num { box-shadow: inset 3px 0 0 var(--ch, var(--blue)); }
.nav-ch.active > .nav-ch-row .nav-num,
.chapter-card:hover .nav-num { background: var(--ch, var(--blue-strong)); border-color: var(--ch, var(--blue-strong)); color: #06101f; box-shadow: 0 0 12px color-mix(in srgb, var(--ch, var(--blue)) 45%, transparent); }
.chapter-card { border-left: 3px solid var(--ch, var(--blue)); }
.chapter-card:hover { border-color: color-mix(in srgb, var(--ch, var(--blue)) 55%, transparent); border-left-color: var(--ch, var(--blue)); box-shadow: 0 0 28px color-mix(in srgb, var(--ch, var(--blue)) 18%, transparent); }
article.chapter .chapter-head::before { background: linear-gradient(90deg, var(--ch, var(--blue)), transparent); width: 160px; height: 3px; }
article.chapter .chapter-head .eyebrow { color: var(--ch, var(--blue)); }
article.chapter .chapter-head .eyebrow::before { background: var(--ch, var(--blue)); box-shadow: 0 0 10px var(--ch, var(--blue)); }
.crumbs + article.chapter .chapter-head { border-top: 0; }
.crumbs + article.chapter .chapter-head::before { display: block; top: 0; }
.dir-col li a i { color: var(--ch, var(--faint)); }
.nav-secs { border-left-color: color-mix(in srgb, var(--ch, var(--blue)) 35%, var(--border)); }
.nav-secs a.active { border-left-color: var(--ch, var(--blue)); }

/* ── "ONAIR" wordmark with "AIR" in orange, both lines big on covers (as the PDF covers) ── */
.bt-air { color: var(--air); }
.vol-hero .bt-pre, .vol-card .bt-pre { font-size: 1em; letter-spacing: -.01em; color: var(--text); margin-bottom: 0; }
.vol-hero .bt, .vol-card .bt { line-height: .98; }

/* ── RECAP ("You now know how to…") ── */
.recap {
  margin: 2rem 0; padding: 1.1rem 1.25rem 1rem; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
  background: color-mix(in srgb, var(--green) 7%, var(--surface-solid));
}
.oa-main .recap h3.recap-title { margin: 0 0 .6rem; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-green); }
.recap ul { list-style: none; margin: 0; padding: 0; }
.oa-main .recap li { position: relative; margin: .35rem 0; padding-left: 1.7rem; }
.recap li::before {
  content: ''; position: absolute; left: 0; top: .3em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306101f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 72% no-repeat;
}

/* ── "onair.company" link: blue glow outline, same blue as the top logo (24/09) ── */
.oa-site-back {
  border: 1px solid rgba(45,127,245,.55);
  box-shadow: 0 0 0 1px rgba(45,127,245,.12), 0 0 14px rgba(45,127,245,.28), inset 0 0 10px rgba(45,127,245,.08);
  color: #2D7FF5;
}
.oa-site-back:hover { color: #fff; border-color: rgba(45,127,245,.9); background: rgba(45,127,245,.1); box-shadow: 0 0 0 1px rgba(45,127,245,.25), 0 0 22px rgba(45,127,245,.45); }
@media (max-width: 1380px) { .oa-site-back { border: 1px solid rgba(45,127,245,.55); } }


/* ── DOWNLOAD / TRIAL buttons (home hero, Academy quick path) ── */
.home-ctas { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 12px; margin: 1.1rem auto 0; max-width: 760px; }
.home-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px;
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .18s, box-shadow .18s, background .18s;
}
.home-cta svg { width: 16px; height: 16px; }
.home-cta--dl { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.home-cta--dl:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.home-cta--trial { color: #fff; background: linear-gradient(135deg, #2D7FF5, #1a6de0); box-shadow: 0 0 0 1px rgba(45,127,245,.45), 0 4px 20px rgba(45,127,245,.3); }
.home-cta--trial:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(45,127,245,.6), 0 6px 28px rgba(45,127,245,.45); }
.home-cta-note { flex-basis: 100%; text-align: center; font-size: 12px; color: rgba(220,228,248,.6); }
.ff-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.first-flight a.ff-download {
  display: inline-flex; align-items: center; gap: 8px; margin-top: .35rem; padding: 9px 14px; border-radius: 10px;
  font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
  color: var(--c-green); border: 1px solid rgba(74,232,150,.45); background: rgba(74,232,150,.08);
}
.first-flight a.ff-download:hover { background: rgba(74,232,150,.16); border-color: rgba(74,232,150,.7); }
.first-flight a.ff-download svg { width: 16px; height: 16px; }


/* ── TL;DR shortcut, section references, wide-table hint ── */
.tldr-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 1rem; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; text-decoration: none;
  color: var(--c-amber); border: 1px solid rgba(245,158,11,.4); background: rgba(245,158,11,.08);
}
.tldr-link:hover { background: rgba(245,158,11,.16); border-color: rgba(245,158,11,.7); }
.tldr-link svg { width: 13px; height: 13px; }
.chapter-head .tldr-link + .ch-pairs, .chapter-head .ch-pairs + .tldr-link { margin-top: .9rem; }
a.xref { font-weight: 600; white-space: nowrap; }
.table-wrap { position: relative; margin: 1.25rem 0 1.75rem; }
.table-wrap > .table { margin: 0; }
.table-hint {
  position: absolute; top: 1px; right: 1px; bottom: 1px; width: 56px; border-radius: 0 var(--radius) var(--radius) 0;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 8px;
  font-size: 15px; font-weight: 800; color: var(--c-blue); pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--bg) 85%);
  opacity: 0; transition: opacity .2s;
}
.table-wrap.has-more .table-hint { opacity: 1; }


/* ── Analytics consent bar (only when no choice was made on onair.company) ── */
.oa-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1500; max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px;
  background: #0d1226; color: #c8cedf; border: 1px solid rgba(45,127,245,.35); box-shadow: 0 16px 50px rgba(0,0,0,.5);
  font-size: 13.5px; line-height: 1.5;
}
.oa-consent p { flex: 1 1 320px; margin: 0; }
.oa-consent div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.oa-consent a { color: #9aa0b8; font-size: 12.5px; }
.oa-consent button { height: 36px; padding: 0 16px; border-radius: 9px; font-weight: 700; font-size: 13px; cursor: pointer; }
.oa-consent .c-no { background: transparent; color: #c8cedf; border: 1px solid rgba(255,255,255,.2); }
.oa-consent .c-yes { background: linear-gradient(135deg, #2D7FF5, #1a6de0); color: #fff; border: 0; }


/* ── "Tips" / "OnAir Documentation" boxes (Vol. II) ── */
.tipbox {
  --c: var(--green); --ct: var(--c-green);
  margin: 1.75rem 0; padding: 1rem 1.25rem .9rem 3.1rem; position: relative; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--c) 32%, transparent);
  background: color-mix(in srgb, var(--c) 7%, var(--surface-solid));
}
.tipbox::before {
  content: ''; position: absolute; left: 1.05rem; top: 1.1rem; width: 18px; height: 18px; background: var(--ct);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6M10 22h4'/%3E%3C/svg%3E");
}
.tipbox--docs {
  --c: var(--blue); --ct: var(--c-blue);
}
.tipbox--docs::before {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5v14zM20 17v4H6.5A2.5 2.5 0 0 1 4 18.5'/%3E%3C/svg%3E");
}
.oa-main .tipbox h3.box-title { margin: 0 0 .5rem; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ct); }
.tipbox > ul, .tipbox > ol { margin-bottom: 0; }
.tipbox > p:last-child { margin-bottom: 0; }

/* ── MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── PRINT ── */
@media print {
  :root { --bg: #fff; --text: #000; --text-2: #111; --muted: #444; --muted-2: #555; --border: #ccc; --surface: #fff; --surface-2: #f3f3f3; --surface-solid: #fff; --c-blue: #1a6de0; }
  .oa-top, .oa-side, .oa-toc, .oa-ft, .oa-fab, .oa-progress, .ch-pager, .anchor, .chapter-grid { display: none !important; }
  .oa-shell { display: block; }
  .oa-main { padding: 0; }
  .oa-main > * { max-width: none; }
  body { background: #fff; color: #111; font-size: 11pt; }
  article.chapter { break-before: page; margin-top: 0; }
  figure, blockquote, table, .stats { break-inside: avoid; box-shadow: none; }
  .vol-hero { box-shadow: none; background: #fff; }
}

/* Choix de langue du bandeau : tout a droite et detache des boutons, comme le menu du site */
.oa-top .oa-top-inner { padding-right: 72px; }
@media (min-width: 1101px) { .oa-top .oa-top-inner { padding-right: 92px; } }
.oa-lang { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); }
.oa-lang summary {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 10px; border-radius: 8px;
  color: rgba(232,234,242,.75); font-size: 13px; font-weight: 600;
  cursor: pointer; list-style: none; user-select: none;
}
.oa-lang summary::-webkit-details-marker { display: none; }
.oa-lang summary::after {
  content: ''; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.oa-lang summary:hover, .oa-lang[open] summary { color: #e8eaf2; background: rgba(255,255,255,.06); }
.oa-lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 130px; padding: 6px;
  background: #0d1117; border: 1px solid rgba(45,127,245,.25); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.oa-lang-menu a {
  display: block; padding: 8px 10px; border-radius: 6px;
  color: rgba(232,234,242,.8); font-size: 13px; font-weight: 500; text-decoration: none;
}
.oa-lang-menu a:hover { color: #e8eaf2; background: rgba(255,255,255,.06); }
.oa-lang-menu a[aria-current] { color: #2D7FF5; font-weight: 700; }
