/* Programme catalogue (edu.html), blocks below the first screen: level navigator and answers.
   Owner approval 2026-10-11: navigator in two columns on a matte dark field with no canvas behind
   the text; answers on a light field, compact rows, plus/minus, no ordinals.
   Loaded after courses-style.css; that shared file is not edited — its #navigator-section and
   .faq-* rules stay as the base (and #checker-section still serves corporate.html), this file wins
   by the id + class selectors. Surfaces are matte: no gradient, sheen or blur. */
.nv-section, .fq-section { --ec-purple:#361163; --ec-gold:#C0A582; --ec-deep:#130526; --ec-ink:#1c0938; --ec-text:#505050;
  --ec-line:#ddd6cb; --ec-on-dark:#e9e3f1; --ec-hair:rgba(192,165,130,.32); --ec-out:cubic-bezier(.16,1,.3,1); }

/* ── Programmes: two plain links in the page source, above the cards the script draws ── */
#levels-section .section-subtitle { margin-bottom:24px; text-wrap:pretty; }
.lv-paths { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 48px; max-width:1040px; margin:0 0 40px; }
.lv-path { margin:0; padding-top:14px; border-top:1px solid #ddd6cb; color:#505050; font-size:15px; line-height:1.5; }
.lv-path a { display:block; margin-bottom:4px; color:#361163; font-size:17px; font-weight:700; line-height:1.3; text-decoration:underline; text-decoration-color:#C0A582; text-decoration-thickness:2px; text-underline-offset:4px; transition:text-decoration-color .25s; }
.lv-path a:hover { text-decoration-color:#361163; }
.lv-path a:focus-visible { outline:2px solid #361163; outline-offset:3px; }
@media (max-width:760px) { .lv-paths { grid-template-columns:minmax(0,1fr); margin-bottom:32px; } }

/* ── Navigator: heading and note on the left, question card on the right ── */
#navigator-section.nv-section { padding:72px 0; background:var(--ec-deep); }
#navigator-section.nv-section::before, #navigator-section.nv-section::after { content:none; }
.nv-grid { display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); gap:64px; align-items:stretch; }
.nv-intro { display:flex; flex-direction:column; align-items:flex-start; min-width:0; }
#navigator-section.nv-section .section-title { margin:0 0 16px; letter-spacing:-.02em; text-wrap:balance; }
#navigator-section.nv-section .section-subtitle { max-width:none; margin:0 0 28px; color:var(--ec-on-dark); }
.nv-note { display:flex; align-items:flex-start; gap:12px; padding:16px 18px; border:1px solid var(--ec-hair); border-radius:10px; background:var(--ec-ink); color:var(--ec-on-dark); font-size:14px; line-height:1.55; text-wrap:pretty; }
/* The page's icon pass tags every static Lucide icon .level-icon .module-icon (grey, 16px indent). */
#navigator-section .nv-note a { color:var(--ec-gold); font-weight:700; text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:3px; transition:color .25s; }
#navigator-section .nv-note a:hover { color:#ffffff; }
#navigator-section .nv-note a:focus-visible { outline:2px solid var(--ec-gold); outline-offset:3px; }
#navigator-section .nv-note svg { flex:none; width:18px; height:18px; margin:2px 0 0; color:var(--ec-gold); stroke-width:2.5; }

/* Card in the language of the homepage stat cards: hairline frame, 3px gold line on top. */
.nv-card { display:flex; flex-direction:column; min-width:0; padding:24px 32px 32px; border:1px solid var(--ec-hair); border-top:3px solid var(--ec-gold); border-radius:12px; background:var(--ec-ink); overflow:hidden; }
.nv-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; padding-bottom:16px; border-bottom:1px solid var(--ec-hair); color:#ffffff; }
/* courses-style.css dims every span of the wizard header with !important. */
#navigator-section.nv-section .wizard-header span { color:inherit !important; }
.nv-progress { display:flex; align-items:center; gap:14px; min-height:44px; }
.nv-step { font-size:13px; font-weight:700; line-height:1; letter-spacing:.1em; text-transform:uppercase; white-space:nowrap; }
.nv-bar { width:128px; height:4px; border-radius:2px; background:rgba(255,255,255,.16); overflow:hidden; }
.nv-bar-fill { height:100%; background:var(--ec-gold); transition:width .3s ease; }
.nv-back { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 16px; border:1px solid var(--ec-hair); border-radius:6px; background:transparent; color:#ffffff; font-family:inherit; font-size:13px; font-weight:700; line-height:1; letter-spacing:.08em; text-transform:uppercase; cursor:pointer; transition:border-color .25s, background-color .25s; }
.nv-back[hidden] { display:none; }
.nv-back:hover { border-color:var(--ec-gold); background:var(--ec-purple); }
.nv-back:focus-visible { outline:2px solid var(--ec-gold); outline-offset:3px; }
#navigator-section .nv-back svg { width:16px; height:16px; margin:0; color:inherit; stroke-width:2.5; }

/* The question grows from the top, the answers sit on the bottom edge of the card: the buttons
   stay where they were when a question takes one line more or less. */
.nv-slider { display:flex; flex:1; min-width:0; }
.nv-slide { display:flex; flex:1; flex-direction:column; min-width:0; }
.nv-question { margin:0 0 24px; color:#ffffff; font-size:24px; font-weight:700; line-height:1.3; letter-spacing:-.015em; text-wrap:pretty; }
.nv-question:focus { outline:none; }
.nv-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:auto; }
.nv-choice { display:flex; flex-direction:column; align-items:flex-start; gap:12px; min-height:132px; padding:20px 22px; border:1px solid rgba(255,255,255,.2); border-radius:10px; background:var(--ec-purple); color:#ffffff; font-family:inherit; text-align:left; cursor:pointer; transition:transform .35s var(--ec-out), border-color .25s; }
.nv-choice:hover, .nv-choice:focus-visible { border-color:var(--ec-gold); transform:translateY(-4px); }
.nv-choice:focus-visible { outline:2px solid var(--ec-gold); outline-offset:3px; }
.nv-choice:active { transform:translateY(-1px); }
.nv-choice-label { display:flex; align-items:center; gap:12px; font-size:18px; font-weight:700; line-height:1; letter-spacing:.06em; }
.nv-choice-mark { display:grid; flex:none; place-items:center; width:32px; height:32px; border-radius:50%; }
.nv-choice-yes .nv-choice-mark { background:var(--ec-gold); color:var(--ec-deep); }
.nv-choice-no .nv-choice-mark { border:2px solid rgba(255,255,255,.7); color:#ffffff; }
#navigator-section .nv-choice-mark svg { width:16px; height:16px; margin:0; color:inherit; stroke-width:3; }
.nv-choice-text { color:var(--ec-on-dark); font-size:15px; font-weight:400; line-height:1.45; }

/* Result: the card is already the frame, the wrapper's own box is dropped. */
#navigator-section.nv-section .flowchart-result-wrapper { margin:0 !important; padding:0 !important; border:0 !important; background:none !important; outline:none; }
#navigator-section.nv-section .flowchart-result-wrapper::before { content:none; }
/* Further reading under the result: guide, intensive, programme page (resultsData links). */
.nv-result-links { display:grid; gap:10px; margin:0 0 24px; padding:16px 0 0; border-top:1px solid var(--ec-line); list-style:none; }
.nv-result-links a { display:inline-flex; align-items:center; gap:8px; color:var(--ec-purple); font-size:15px; font-weight:700; line-height:1.4; text-decoration:underline; text-decoration-color:var(--ec-gold); text-decoration-thickness:2px; text-underline-offset:4px; transition:text-decoration-color .25s; }
.nv-result-links a:hover { text-decoration-color:var(--ec-purple); }
.nv-result-links a:focus-visible { outline:2px solid var(--ec-purple); outline-offset:3px; }
.nv-result-links svg { flex:none; order:2; width:16px; height:16px; color:var(--ec-gold); }
#navigator-section .wizard-result-disclaimer a { color:var(--ec-gold); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
#navigator-section .wizard-result-disclaimer a:hover { color:#ffffff; }

/* ── Answers: heading and the link to the form on the left, rows on the right ── */
#faq-section.fq-section { padding:72px 0; background:#f4f2ee; overflow:visible; }
#faq-section.fq-section::before, #faq-section.fq-section::after { content:none; }
.fq-grid { display:grid; grid-template-columns:minmax(0,.62fr) minmax(0,1.38fr); gap:64px; align-items:start; }
/* Sticky under the fixed site header (123px), so the heading stays next to an opened answer. */
.fq-head { position:sticky; top:148px; min-width:0; }
#faq-section.fq-section .section-title { margin:0 0 16px; color:var(--ec-purple); letter-spacing:-.02em; }
.fq-ask { margin:0; color:var(--ec-text); font-size:15px; line-height:1.5; }
.fq-ask a { color:var(--ec-purple); font-weight:700; white-space:nowrap; text-decoration:underline; text-decoration-color:var(--ec-gold); text-decoration-thickness:2px; text-underline-offset:4px; transition:text-decoration-color .25s; }
.fq-ask a:hover { text-decoration-color:var(--ec-purple); }
.fq-ask a:focus-visible { outline:2px solid var(--ec-purple); outline-offset:3px; }

#faq-section .faq-list { max-width:none; margin:0; border-top:1px solid var(--ec-line); }
#faq-section .faq-item, #faq-section .faq-item:hover, #faq-section .faq-item.open { border:0; border-bottom:1px solid var(--ec-line); background:none; transition:none; }
#faq-section .faq-trigger { gap:20px; min-height:64px; padding:16px 4px 16px 0; font-family:inherit; }
#faq-section .faq-trigger:focus-visible { outline:2px solid var(--ec-purple); outline-offset:2px; border-radius:4px; }
#faq-section .faq-question { color:var(--ec-purple); font-size:18px; line-height:1.35; letter-spacing:-.01em; }
/* Plus that folds into a minus: two bars, the upright one turns flat when the row opens. */
#faq-section .faq-icon { position:relative; flex:none; width:32px; height:32px; border:2px solid var(--ec-gold); border-radius:50%; color:var(--ec-purple); transform:none; transition:background-color .25s, border-color .25s, color .25s; }
#faq-section .faq-icon::before, #faq-section .faq-icon::after { content:''; position:absolute; top:50%; left:50%; width:12px; height:2px; margin:-1px 0 0 -6px; border-radius:1px; background:currentColor; transition:transform .3s var(--ec-out); }
#faq-section .faq-icon::after { transform:rotate(90deg); }
#faq-section .faq-trigger:hover .faq-icon { border-color:var(--ec-purple); }
#faq-section .faq-item.open .faq-icon { border-color:var(--ec-purple); background:var(--ec-purple); color:#ffffff; transform:none; }
#faq-section .faq-item.open .faq-icon::after { transform:rotate(0deg); }
#faq-section .faq-content p { max-width:720px; padding:0 56px 22px 0; color:var(--ec-text); font-size:15px; line-height:1.6; }
#faq-section .faq-content a { color:var(--ec-purple); font-weight:700; text-decoration:underline; text-decoration-color:var(--ec-gold); text-decoration-thickness:2px; text-underline-offset:3px; }
#faq-section .faq-content a:hover { text-decoration-color:var(--ec-purple); }

/* ── Narrower screens ─────────────────────────────────────────────────── */
@media (max-width:1100px) {
  .nv-grid, .fq-grid { gap:40px; }
  .nv-card { padding:20px 24px 24px; }
}
@media (max-width:900px) {
  /* One column. The intro dissolves into the grid so the note drops below the card:
     on a phone the question must come right after the heading. */
  .nv-grid { grid-template-columns:minmax(0,1fr); gap:0; }
  .nv-intro { display:contents; }
  #navigator-section.nv-section .section-subtitle { margin-bottom:24px; }
  .nv-card { order:1; }
  .nv-note { order:2; margin-top:20px; }
  .fq-grid { grid-template-columns:minmax(0,1fr); gap:24px; }
  .fq-head { position:static; }
}
@media (max-width:640px) {
  #navigator-section.nv-section .section-subtitle { font-size:15px !important; }
  .nv-card { padding:16px 18px 20px; }
  /* courses-style.css stacks the wizard header and shrinks the question on phones with !important. */
  #navigator-section.nv-section .nv-head { flex-direction:row !important; align-items:center !important; gap:12px !important; margin-bottom:20px !important; padding-bottom:16px !important; }
  .nv-bar { width:72px; }
  .nv-back { padding:0 14px; }
  #navigator-section.nv-section { padding:48px 0 !important; }
  #navigator-section.nv-section .nv-question { margin-bottom:18px !important; font-size:18px !important; line-height:1.3 !important; }
  .nv-note { padding:14px 16px; }
  .nv-choices { grid-template-columns:minmax(0,1fr); gap:12px; }
  .nv-choice { min-height:0; padding:16px 18px; }
  #faq-section.fq-section { padding:48px 0 !important; }
  #faq-section .faq-trigger { gap:16px; min-height:60px; padding:16px 0 !important; }
  #faq-section .faq-question { font-size:16px !important; }
  #faq-section .faq-content p { padding:0 0 20px 0 !important; }
}
@media (prefers-reduced-motion:reduce) {
  .nv-choice, .nv-bar-fill, #faq-section .faq-icon::before, #faq-section .faq-icon::after { transition:none; }
  .nv-choice:hover, .nv-choice:focus-visible, .nv-choice:active { transform:none; }
}

/* Result of the navigator for International Advanced Diploma: reset, "discuss with an expert",
   and "start with International Diploma" (2026-10-18). Buttons wrap on narrow screens. */
.nv-result-actions { flex-wrap:wrap; }
.nv-result-actions .btn { display:inline-flex; align-items:center; justify-content:center; min-height:48px; text-decoration:none; }
@media (max-width:640px) { .nv-result-actions .btn { flex:1 1 100% !important; } }
