/* EM Orbit — private courses in Lead the ED (tools/course.js, 31 Oct 2026). Level colours come from LEAD-ED. */
:root { --lv-self: #2f5f9e; --lv-shift: #b9362c; --lv-team: #8a5f0c; --lv-system: #2d7d4f;
  --lv-self-soft: #e3ebf6; --lv-shift-soft: #f8e5e3; --lv-team-soft: #f7ecd6; --lv-system-soft: #e2f1e8; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]):root { --lv-self: #86aee6; --lv-shift: #ec7a70; --lv-team: #e3b04e; --lv-system: #6cc591;
  --lv-self-soft: #1b2a40; --lv-shift-soft: #3a1f1d; --lv-team-soft: #3a2e16; --lv-system-soft: #183326; } }
html[data-theme="dark"]:root { --lv-self: #86aee6; --lv-shift: #ec7a70; --lv-team: #e3b04e; --lv-system: #6cc591;
  --lv-self-soft: #1b2a40; --lv-shift-soft: #3a1f1d; --lv-team-soft: #3a2e16; --lv-system-soft: #183326; }
.lv-self { --lv: var(--lv-self); --lv-soft: var(--lv-self-soft); }
.lv-shift { --lv: var(--lv-shift); --lv-soft: var(--lv-shift-soft); }
.lv-team { --lv: var(--lv-team); --lv-soft: var(--lv-team-soft); }
.lv-system { --lv: var(--lv-system); --lv-soft: var(--lv-system-soft); }
.lc-lv { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--lv, var(--teal-ink)); background: var(--lv-soft, var(--teal-soft)); padding: 2px 8px; border-radius: 999px; }
.lc-confirm { background: var(--amber-soft); color: var(--amber); font-weight: 800; padding: 0 4px; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lc-cta .chip { margin-bottom: 6px; }
.lc-cta { background: linear-gradient(120deg, #0a2243, #2f5f9e 55%, #19838c); }

/* the bar: Contents · Home · where you are · ‹ › */
.lc-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px; margin: 0 -2px 12px; padding: 8px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.lc-b { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px; border: none; border-radius: 11px; background: var(--navy-soft); color: var(--navy-ink); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.q-has-star .lc-bar { margin-right: 52px; }   /* room for the save star (tools/quick.js) */
.lc-b[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.lc-arrow { font-size: 20px; padding: 0; }
.lc-where { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .lc-bar { flex-wrap: wrap; } .lc-where { order: 9; flex-basis: 100%; padding: 2px 4px 0; white-space: normal; } .lc-bar .lc-b:not(.lc-arrow) { flex: 1; } }

/* the menu: a drawer on phones, a column beside the app on wide screens */
#lc-nav { position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); z-index: 60; overflow-y: auto; background: var(--card); box-shadow: var(--shadow-lift); padding: 16px 12px 24px; transform: translateX(-105%); transition: transform .22s ease; }
#lc-nav.open { transform: none; }
#lc-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(6, 26, 54, .45); }
.lc-nav-head { padding: 4px 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.lc-nav-head > b { display: block; font-size: 15px; font-weight: 900; color: var(--navy-ink); margin-bottom: 8px; }
.lc-group { font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin: 14px 8px 4px; }
.lc-navi { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: 11px; font-size: 14px; color: var(--ink); }
.lc-navi i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 900; background: var(--navy-soft); color: var(--navy-ink); }
.lc-navi span { min-width: 0; line-height: 1.3; }
.lc-navi small { display: block; font-size: 12px; color: var(--slate); }
.lc-navi.done i { background: var(--green); color: #fff; }
.lc-navi.cur { background: var(--teal-soft); font-weight: 800; }
.lc-navi.cur i { background: var(--teal-btn); color: #fff; }
.lc-navi:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
.lc-out { margin-top: 12px; border-top: 1px solid var(--line); border-radius: 0; color: var(--teal-ink); font-weight: 800; }
/* menu tools: ✕ in the drawer; Hide when docked; "Keep beside the page" in the drawer on wide screens */
.lc-nav-tools { display: flex; justify-content: flex-end; gap: 6px; margin: -6px -4px 6px; }
.lc-tool { border: 0; background: var(--navy-soft); color: var(--navy-ink); font: inherit; font-size: 13px; font-weight: 800; min-height: 36px; padding: 6px 12px; border-radius: 10px; cursor: pointer; }
#lc-hide, #lc-pin { display: none; }
@media (min-width: 1400px) {
  body.lc-on:not(.lc-pin) #lc-pin { display: inline-block; }
  body.lc-on.lc-pin #lc-hide { display: inline-block; }
  body.lc-on.lc-pin #lc-close { display: none; }
}
/* docked only where the page has room for both: 720 px reading column + 300 px menu + gaps (was 1180 px and covered the text) */
@media (min-width: 1400px) {
  body.lc-on.lc-pin #lc-nav { transform: none; top: 16px; bottom: 16px; left: max(16px, calc(50% - 360px - 316px)); width: 300px; border-radius: 18px; box-shadow: var(--shadow); }
  body.lc-on.lc-pin #lc-scrim { display: none; }
  body.lc-on.lc-pin #lc-open { display: none; }
}
.lc-prog { height: 8px; border-radius: 99px; background: var(--navy-soft); overflow: hidden; margin: 10px 0 4px; }
.lc-prog i { display: block; height: 100%; background: var(--teal-btn); border-radius: 99px; }
.lc-prog.light { background: rgba(255, 255, 255, .25); }
.lc-prog.light i { background: #fff; }

/* home */
.lc-hero { background: var(--hero); color: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.lc-hero h1 { font-size: 24px; font-weight: 900; margin: 8px 0 2px; }
.lc-hero p { opacity: .92; font-size: 14px; }
.lc-hero small { display: block; opacity: .9; font-size: 12.5px; }
.lc-step .num.lc-ok { background: var(--green); }
.ld-n.soon { background: var(--navy-soft); color: var(--slate); }

/* reading */
.lc-photo { margin: 12px 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1024 / 688; background: var(--navy-soft); }
.lc-photo img { width: 100%; height: 100%; object-fit: cover; }
.lc-lead { margin-top: 0; }
.lc-frame { border-left: 4px solid var(--teal); }
.lc-h2 { font-size: 17px; font-weight: 900; color: var(--navy-ink); margin-bottom: 8px; }
.lc-q { border: none; }
.lc-q legend { padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.lc-q legend + * { clear: both; }
.opt.lc-sel { background: var(--teal-soft); border-color: var(--teal); }
.opt.lc-sel .l { background: var(--teal-btn); color: #fff; }
.lc-scale { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; margin-top: 8px; }
.lc-scale button { min-height: 44px; border: 2px solid transparent; border-radius: 11px; background: var(--bg); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px; }
.lc-scale button.on { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-ink); }
.lc-levels button { border-left: 5px solid var(--lv); text-align: start; }
.lc-levels button.on { background: var(--lv-soft); border-color: var(--lv); color: var(--ink); }
.lc-profile { display: grid; gap: 8px; margin: 6px 0 10px; }
.lc-pbar { display: grid; grid-template-columns: 120px 1fr 34px; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.lc-track { height: 10px; background: var(--navy-soft); border-radius: 99px; overflow: hidden; }
.lc-track i { display: block; height: 100%; background: var(--lv); border-radius: 99px; }
.lc-form .cx-f { display: block; margin-bottom: 12px; }
.lc-form .cx-l, .lc-form > .cx-l { display: block; font-size: 13px; font-weight: 800; color: var(--slate); margin-bottom: 5px; }
.lc-form textarea.cb-input, .card textarea.cb-input { width: 100%; resize: vertical; min-height: 96px; font: inherit; line-height: 1.45; }
.lc-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 14px; line-height: 1.4; }
.lc-check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--teal-btn); }
.lc-err { color: var(--red); font-size: 13.5px; font-weight: 700; min-height: 18px; margin: 6px 0; }
.lc-pre { white-space: pre-wrap; line-height: 1.5; }

/* faculty */
.lc-link code { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 13px; word-break: break-all; user-select: all; }
.lc-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 12px 0; padding-bottom: 2px; }
.lc-tabs button { flex: none; min-height: 40px; padding: 0 14px; border: none; border-radius: 999px; background: var(--navy-soft); color: var(--navy-ink); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.lc-tabs button[aria-selected="true"] { background: var(--teal-btn); color: #fff; }
.lc-sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.lc-danger { background: var(--red-soft); color: var(--red); }
.lc-mini { display: inline-flex; gap: 3px; }
.lc-mini i { width: 9px; height: 9px; border-radius: 3px; background: var(--navy-soft); }
.lc-mini i.on { background: var(--green); }
.lc-ol { padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }

/* enrolment by key (31 Oct 2026) */
.lc-enrol { display: block; margin: 12px 0; }
.lc-key { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.lc-keyshow { font-size: 22px !important; font-weight: 900; letter-spacing: .14em; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* local topics (1 Nov 2026): lists, the police-form figure, Arabic lines */
.lc-ul { padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; margin: 6px 0 10px; }
.lc-fig { margin: 12px 0; }
.lc-fig img { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; border-radius: 14px; box-shadow: var(--shadow); }
.lc-fig figcaption { font-size: 12.5px; color: var(--slate); text-align: center; margin-top: 6px; }
.lc-ar { font-weight: 800; color: var(--navy-ink); text-align: right; }

/* section blocks (1 Nov 2026, Osama: "easier to read… points, boxes, visualise"): built by block() in course.js.
   Colours are the app's own tokens only, so dark mode follows. */
.lc-blk { margin: 16px 0 6px; }
.lc-blk:first-of-type { margin-top: 6px; }
.lc-blk-t { font-weight: 900; font-size: 15px; color: var(--navy-ink); margin: 0 0 8px !important; }
.lc-blk small { display: block; font-size: 13.5px; line-height: 1.45; color: var(--ink); font-weight: 500; }
.lc-cap { font-size: 13px; color: var(--slate); margin: 8px 2px 0 !important; }
/* tiles: big lettered cards (SBAR, SPIKES, triage colours) */
.lc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lc-tiles[style*="--n:3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 720px) { .lc-tiles { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); } }
/* tiles that carry a long sentence or a long tag (Lead the ED evidence tiles) stack one per row on phones */
@media (max-width: 719px) { .lc-tiles.lc-long { grid-template-columns: 1fr; } }
.lc-tile { background: var(--teal-soft); border-radius: 16px; padding: 14px 12px 12px; display: grid; gap: 4px; align-content: start; }
.lc-tl { min-width: 46px; height: 46px; padding: 0 8px; justify-self: start; border-radius: 13px; display: grid; place-items: center; font-size: 24px; font-weight: 900; color: #fff; background: var(--teal-btn); margin-bottom: 4px; }
.lc-tl.sm { height: auto; min-height: 26px; padding: 5px 9px; border-radius: 9px; font-size: 12px; font-weight: 800; line-height: 1.25; text-align: start; place-items: center start; letter-spacing: .01em; }
.lc-tile b { font-size: 15px; color: var(--navy-ink); }
.lc-tile.t-red { background: var(--red-soft); } .lc-tile.t-red .lc-tl { background: #b3372f; }
.lc-tile.t-yellow { background: var(--amber-soft); } .lc-tile.t-yellow .lc-tl { background: #e0b100; color: #14263a; }
.lc-tile.t-green { background: var(--green-soft); } .lc-tile.t-green .lc-tl { background: #1e7d3c; }
.lc-tile.t-black { background: var(--grey-soft); } .lc-tile.t-black .lc-tl { background: #14263a; box-shadow: inset 0 0 0 2px #5b6b7c; }
/* steps: numbered sequence; long items stack */
.lc-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (min-width: 720px) { .lc-steps:not(.lc-long) { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); } }
.lc-steps li { display: flex; align-items: center; gap: 10px; background: var(--navy-soft); border-radius: 14px; padding: 10px 12px; font-weight: 700; font-size: 14px; color: var(--navy-ink); line-height: 1.4; }
.lc-steps.lc-long li { align-items: flex-start; font-weight: 500; color: var(--ink); }
.lc-steps li b { display: block; font-weight: 900; color: var(--navy-ink); }
.lc-steps li > span, .lc-fsteps li > span, .lc-ladder li > span, .lc-chips.lc-num li span, .lc-cs > span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-ink); color: var(--card); font-weight: 900; font-size: 14px; }
/* note: one highlighted rule */
/* note: one highlighted rule. 1 Nov 2026 (Osama): every alert is the same inverted card, navy with light text in light mode and
   light with dark text in dark mode; no red/blue variants (tone is ignored on purpose) */
.lc-note { border-left: 6px solid var(--mint); background: var(--navy-ink); color: var(--card); border-radius: 14px; padding: 13px 16px; box-shadow: var(--shadow); }
.lc-note b { display: block; color: var(--mint); font-size: 15.5px; font-weight: 900; }
.lc-note p { margin: 4px 0 0 !important; color: var(--card); }
html[data-theme="dark"] .lc-note { border-left-color: var(--teal-btn); } html[data-theme="dark"] .lc-note b { color: #0f5f7c; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .lc-note { border-left-color: var(--teal-btn); } html:not([data-theme="light"]) .lc-note b { color: #0f5f7c; } }
/* cards: named points in boxes */
.lc-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .lc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .lc-cards:not(.lc-two) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lc-card { position: relative; background: var(--grey-soft); border-radius: 14px; padding: 12px 14px; border-left: 5px solid var(--teal); }
.lc-card b { display: block; font-size: 15px; font-weight: 900; color: var(--navy-ink); margin-bottom: 3px; }
.lc-card p { margin: 0 !important; font-size: 14px; line-height: 1.45; }
.lc-card.t-hot { border-left-color: var(--red); background: var(--red-soft); }
.lc-card.t-warn { border-left-color: var(--amber); background: var(--amber-soft); }
.lc-card.t-ok { border-left-color: var(--green); background: var(--green-soft); }
.lc-tag { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 10.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--red); padding: 2px 7px; border-radius: 999px; }
/* flow: stages joined by arrows; vertical on phones */
.lc-flow { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.lc-fs { background: var(--teal-soft); border-radius: 12px; padding: 9px 12px; font-weight: 800; color: var(--navy-ink); font-size: 14.5px; line-height: 1.35; }
.lc-fs b { display: block; font-weight: 900; }
.lc-fs.hot { background: var(--red-soft); box-shadow: inset 0 0 0 2px var(--red); }
.lc-arr { display: block; text-align: center; font-style: normal; color: var(--teal-ink); font-weight: 900; font-size: 18px; line-height: 22px; }
.lc-arr::before { content: "↓"; }
.lc-flow.back .lc-arr::before { content: "↑"; }
@media (min-width: 720px) {
  .lc-flow { flex-direction: row; align-items: stretch; }
  .lc-fs { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; }
  .lc-arr { align-self: center; width: 26px; flex: none; }
  .lc-arr::before { content: "→"; } .lc-flow.back .lc-arr::before { content: "←"; }
}
/* compare: not this / this */
.lc-cmp { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 8px; }
@media (min-width: 560px) { .lc-cmp { grid-template-columns: 1fr 1fr; } }
.lc-cmp > div { border-radius: 14px; padding: 10px 12px; }
.lc-cmp b { display: block; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.lc-cmp p { margin: 0 !important; font-weight: 700; font-size: 15px; line-height: 1.4; }
.lc-cmp .no { background: var(--red-soft); } .lc-cmp .no b { color: var(--red); } .lc-cmp .no p { color: var(--slate); }
.lc-cmp .yes { background: var(--green-soft); } .lc-cmp .yes b { color: var(--green); } .lc-cmp .yes p { color: var(--ink); }
/* ladder: escalation, calm to red */
.lc-ladder { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.lc-ladder li { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 9px 12px; border-left: 6px solid; line-height: 1.4; }
.lc-ladder li b { display: block; font-weight: 900; color: var(--navy-ink); }
.lc-ladder .lv0 { background: var(--teal-soft); border-color: var(--teal); } .lc-ladder .lv1 { background: var(--blue-soft); border-color: var(--blue); }
.lc-ladder .lv2 { background: var(--amber-soft); border-color: var(--amber); } .lc-ladder .lv3 { background: var(--red-soft); border-color: var(--red); }
.lc-ladder .lv2 > span { background: var(--amber); } .lc-ladder .lv3 > span { background: var(--red); }
/* pyramid: read bottom up */
.lc-pyr { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; justify-items: center; }
.lc-pyr li { font-weight: 900; color: var(--navy-ink); width: var(--w); background: var(--navy-soft); border-radius: 10px; padding: 8px 10px; text-align: center; line-height: 1.35; }
.lc-pyr li:last-child { background: var(--teal-soft); box-shadow: inset 0 0 0 2px var(--teal); }
.lc-pyr li:first-child { background: var(--red-soft); }
.lc-pyr b { display: block; font-weight: 900; color: var(--navy-ink); }
.lc-pyr small { font-size: 13px !important; }
/* checks and chips */
.lc-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.lc-checks li { display: flex; gap: 10px; align-items: flex-start; background: var(--grey-soft); border-radius: 12px; padding: 9px 12px; line-height: 1.45; }
.lc-checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px; color: #fff; background: var(--green); margin-top: 1px; }
.lc-checks li b { display: block; font-weight: 900; color: var(--navy-ink); }
.lc-checks.t-no li { background: var(--red-soft); } .lc-checks.t-no li::before { content: "✕"; background: var(--red); }
.lc-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lc-chips li { background: var(--teal-soft); color: var(--navy-ink); font-weight: 800; font-size: 14px; border-radius: 999px; padding: 7px 14px; line-height: 1.3; }
.lc-chips.t-warn li { background: var(--amber-soft); }
.lc-chips.t-no li { background: var(--red-soft); }
.lc-chips.lc-num li { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; }
.lc-chips.lc-num li span { width: 26px; height: 26px; font-size: 13px; }
/* say it out loud */
.lc-say { background: var(--navy-soft); border-radius: 16px; padding: 12px 16px 14px; }
.lc-say blockquote { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.45; color: var(--navy-ink); border-left: 4px solid var(--teal); padding-left: 12px; }
/* cycle: four stages in a loop (PDSA) */
.lc-cycle { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lc-cs { background: var(--teal-soft); border-radius: 16px; padding: 12px; display: grid; gap: 4px; align-content: start; line-height: 1.4; }
.lc-cs b { font-weight: 900; color: var(--navy-ink); font-size: 15px; }
.lc-cs.c2 { grid-column: 2; grid-row: 2; } .lc-cs.c3 { grid-column: 1; grid-row: 2; }
.lc-loop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 24px; font-weight: 900; color: #fff; background: var(--teal-btn); box-shadow: 0 0 0 5px var(--card); }
/* Swiss cheese drawing */
.lc-swiss { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto 8px; }
.lc-swiss .ch { fill: #f3d27a; stroke: #c99a2e; stroke-width: 2; }
.lc-swiss .ho { fill: var(--card); stroke: #c99a2e; stroke-width: 1.5; }
.lc-swiss text { fill: var(--navy-ink); font: 900 24px system-ui, sans-serif; text-anchor: middle; }
.lc-swiss .hz { stroke: var(--red); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 0; }
.lc-swiss .hzh { fill: var(--red); }
/* framework card: numbered rows */
.lc-fsteps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lc-fsteps li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.lc-fsteps li > span { background: var(--teal-btn); color: #fff; width: 28px; height: 28px; font-size: 13px; }
.lc-fsteps li b { color: var(--navy-ink); font-weight: 900; }
.lc-ladder li > div > span { font-weight: 800; color: var(--navy-ink); }

/* the course's one-line purpose, on its card and its home (1 Nov 2026) */
.lc-tag-line { display: block; font-size: 15px; font-weight: 800; line-height: 1.35; margin: 2px 0 4px; opacity: .95; }
.lc-hero .lc-tag-line { font-size: 16px; margin: 2px 0 6px; }

/* skills courses (1 Nov 2026): images and tables inside modules, the workshop-day agenda */
.lc-fig2 { margin: 12px 0; border-radius: 14px; overflow: hidden; background: var(--line); }
.lc-fig2 img { display: block; width: 100%; height: auto; }
.lc-fig2 figcaption { font-size: 12.5px; color: var(--slate); padding: 6px 10px; background: var(--card); }
.lc-agenda { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.lc-agenda li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; background: color-mix(in srgb, var(--navy-soft) 55%, transparent); border-radius: 12px; padding: 10px 12px; }
.lc-agenda time { font-weight: 900; font-size: 13px; color: var(--teal-ink); font-variant-numeric: tabular-nums; padding-top: 1px; }
.lc-agenda b { display: block; line-height: 1.35; }
.lc-agenda small { display: block; color: var(--slate); font-size: 12.5px; margin-top: 2px; }
.lc-fmt { display: inline-block; margin-top: 4px; font-size: 10.5px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-ink); background: var(--teal-soft); border-radius: 6px; padding: 2px 7px; }
.lc-agenda li.brk { background: none; border: 1px dashed var(--line); }
.lc-agenda li.brk b { font-weight: 600; color: var(--slate); }

/* CLEAN LINE (1 Nov 2026): films, decisions and folded role sections inside course modules */
.lc-vid video{width:100%;aspect-ratio:16/9;background:#000;border-radius:14px;display:block}
.lc-vid figcaption{font-size:13px;color:var(--muted,#5f6b75);margin-top:6px}
.lc-dec{border:1px solid var(--line,#dfe6ea);border-radius:14px;padding:12px 14px;background:var(--card,#fff)}
.lc-dq{margin:0 0 6px}
.lc-do{border:1px solid var(--line,#dfe6ea);border-radius:10px;margin:6px 0;padding:0 10px;background:var(--bg,#f2f7f8)}
.lc-do summary{cursor:pointer;padding:10px 0;list-style:none;display:flex;gap:10px;align-items:flex-start}
.lc-do summary::-webkit-details-marker{display:none}
.lc-do summary .l{font-weight:800;min-width:1.3em}
.lc-do[open].ok{border-color:#2e7d4f;background:#e7f3ec}.lc-do[open].no{border-color:#b3261e;background:#fbeceb}
.lc-do p{margin:0 0 10px}
.lc-role{border:1px solid var(--line,#dfe6ea);border-radius:14px;margin:8px 0;background:var(--card,#fff)}
.lc-role>summary{cursor:pointer;padding:14px 16px;font-weight:800}
.lc-role>.ld-sec{padding:0 16px 8px}

/* ---------- 12 Nov 2026: LEAD-ED step-up edition — the ladder, the evidence list, the certificate ---------- */
:root { --rg0: #7e9cc4; --rg1: #4f78ad; --rg2: #2c5791; --rg3: #0a2243; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]):root { --rg0: #5d7fae; --rg1: #7fa3d6; --rg2: #a9c5ee; --rg3: #e3eefb; } }
html[data-theme="dark"]:root { --rg0: #5d7fae; --rg1: #7fa3d6; --rg2: #a9c5ee; --rg3: #e3eefb; }
.lc-ok-line { margin: 2px 0 10px; font-weight: 800; color: var(--green); }
.lc-rungs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: stretch; }
.lc-rungs li { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; border-top: 5px solid var(--rgc); }
/* 13 Nov 2026 (Osama: "it should be steps"): equal rises, bottoms aligned, so the four cards read as a staircase */
.lc-rungs li.rg0 { --rgc: var(--rg0); margin-top: 108px; } .lc-rungs li.rg1 { --rgc: var(--rg1); margin-top: 72px; } .lc-rungs li.rg2 { --rgc: var(--rg2); margin-top: 36px; } .lc-rungs li.rg3 { --rgc: var(--rg3); }
.lc-rg-n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--rgc); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
html[data-theme="dark"] .lc-rungs li.rg2 .lc-rg-n, html[data-theme="dark"] .lc-rungs li.rg3 .lc-rg-n { color: var(--navy); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .lc-rungs li.rg2 .lc-rg-n, html:not([data-theme="light"]) .lc-rungs li.rg3 .lc-rg-n { color: var(--navy); } }
.lc-rungs b { display: block; font-size: 15px; } .lc-rungs i { display: block; font-style: normal; font-weight: 700; color: var(--teal-ink); font-size: 13px; margin: 2px 0 4px; }
.lc-rungs small { display: block; color: var(--slate); font-size: 13px; line-height: 1.4; }
@media (max-width: 760px) { .lc-rungs { grid-template-columns: 1fr; } .lc-rungs li { margin-top: 0 !important; } .lc-rungs li.rg1 { margin-left: 14px; } .lc-rungs li.rg2 { margin-left: 28px; } .lc-rungs li.rg3 { margin-left: 42px; } }
.lc-dom { margin: 10px 0; } .lc-dom-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; } .lc-dom-h h3 { margin: 0; font-size: 17px; }
.lc-dom-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lc-dom-l li { border-left: 4px solid var(--rgc); background: var(--grey-soft); border-radius: 8px; padding: 8px 10px; }
.lc-dom-l li.rg0 { --rgc: var(--rg0); } .lc-dom-l li.rg1 { --rgc: var(--rg1); } .lc-dom-l li.rg2 { --rgc: var(--rg2); } .lc-dom-l li.rg3 { --rgc: var(--rg3); }
.lc-dom-l span { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--slate); }
.lc-dom-l p { margin: 3px 0 0; font-size: 14px; line-height: 1.45; }
@media (max-width: 900px) { .lc-dom-l { grid-template-columns: 1fr 1fr; } } @media (max-width: 520px) { .lc-dom-l { grid-template-columns: 1fr; } }
.lc-evl { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 8px; }
.lc-ev { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.lc-ev.on { border-color: var(--green); background: var(--green-soft); }
.lc-ev .lc-check { align-items: flex-start; } .lc-ev .lc-check span { line-height: 1.4; }
.lc-ev-f { display: grid; grid-template-columns: 170px 1fr; gap: 8px; margin-top: 8px; }
@media (max-width: 520px) { .lc-ev-f { grid-template-columns: 1fr; } }
.lc-ladder-cta, .lc-cert-cta { margin: 12px 0; }
/* the certificate */
.lc-cert { background: #fdfbf6; color: #0a2243; border-radius: 6px; padding: 14px; box-shadow: var(--shadow); max-width: 1000px; aspect-ratio: 297 / 210; margin: 0 auto; }
.lc-cert-in { height: 100%; box-sizing: border-box; border: 3px solid #0a2243; outline: 1px solid #1a98a3; outline-offset: -9px; padding: 4.5% 7%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.lc-cert-k { margin: 0; font-size: clamp(11px, 1.6vw, 15px); letter-spacing: .28em; text-transform: uppercase; color: #187a82; font-weight: 800; }
.lc-cert-t { margin: .35em 0 0; font-size: clamp(28px, 5.4vw, 54px); letter-spacing: .06em; color: #0a2243; }
.lc-cert-s { margin: .2em 0 1.2em; font-size: clamp(12px, 1.9vw, 18px); color: #34465a; }
.lc-cert-p { margin: .2em 0; font-size: clamp(11px, 1.5vw, 15px); color: #34465a; }
.lc-cert-n { margin: .2em 0; font-size: clamp(24px, 4.4vw, 44px); font-family: Georgia, "Times New Roman", serif; font-style: italic; color: #0a2243; border-bottom: 1px solid #c9d3dd; padding: 0 .6em .1em; }
.lc-cert-b { margin: 1em auto 0; max-width: 78%; font-size: clamp(11px, 1.55vw, 15px); line-height: 1.5; color: #14263a; }
.lc-cert-f { margin-top: auto; padding-top: 1.4em; width: 100%; display: flex; justify-content: space-between; gap: 12px; }
.lc-cert-f div { flex: 1; border-top: 1px solid #0a2243; padding-top: .4em; } .lc-cert-f b { display: block; font-size: clamp(11px, 1.5vw, 15px); } .lc-cert-f small { color: #5b6b7c; font-size: clamp(9px, 1.2vw, 12px); }
@media print {
  @page { size: A4 landscape; margin: 0; }
  body.lc-printing * { visibility: hidden !important; }
  body.lc-printing #lc-cert, body.lc-printing #lc-cert * { visibility: visible !important; }
  body.lc-printing #lc-cert { position: fixed; inset: 0; width: 297mm; height: 210mm; max-width: none; aspect-ratio: auto; margin: 0; border-radius: 0; box-shadow: none; padding: 10mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.lc-printing .lc-cert-t { font-size: 46px; } body.lc-printing .lc-cert-n { font-size: 38px; } body.lc-printing .lc-cert-s { font-size: 17px; }
  body.lc-printing .lc-cert-k, body.lc-printing .lc-cert-p, body.lc-printing .lc-cert-b, body.lc-printing .lc-cert-f b { font-size: 14px; } body.lc-printing .lc-cert-f small { font-size: 11px; }
}
@media screen and (max-width: 900px) { .lc-cert { aspect-ratio: auto; padding: 10px; } .lc-cert-in { padding: 26px 16px 18px; } .lc-cert-b { max-width: 100%; } .lc-cert-f { flex-wrap: wrap; } .lc-cert-f div { min-width: 120px; } }

/* ---------- course cards, the Courses page and the shelf (13 Nov 2026) ---------- */
.lc-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 0 0 6px; }
.lc-shelf .lc-co b { font-size: 17px; }
.lc-grid + .lc-how { margin-top: 18px; }
.lc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.lc-co { display: flex; flex-direction: column; min-width: 0; background: var(--card); color: var(--ink); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.lc-co:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift, var(--shadow)); }
.lc-co:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.lc-co-art { display: block; aspect-ratio: 16 / 9; background: #f4f6f5; overflow: hidden; border-bottom: 1px solid var(--line); }
.lc-co-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-co-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px; flex: 1; min-width: 0; }
.lc-co-kind { font-size: 11px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; color: var(--teal-ink); }
.lc-co b { font-size: 19px; font-weight: 900; letter-spacing: -.2px; line-height: 1.2; }
.lc-co-tag { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.lc-co-blurb { font-size: 13.5px; line-height: 1.45; color: var(--slate); margin-top: 4px; }
.lc-co-who { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.lc-co-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lc-co-facts i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--slate); background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; }
.lc-co-bar { display: block; height: 6px; border-radius: 99px; background: var(--line); margin-top: 12px; overflow: hidden; }
.lc-co-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal-btn), var(--mint)); }
.lc-co-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.lc-co-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--slate); }
.lc-co-st svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lc-co-go { flex: none; font-size: 13.5px; font-weight: 900; color: #fff; background: var(--teal-btn); border-radius: 99px; padding: 7px 14px; }
.st-in .lc-co-st { color: var(--teal-ink); }
.st-fac .lc-co-go { background: var(--navy); }
.lc-co.big b { font-size: 21px; }
.lc-how { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; margin: 4px 0 8px; display: grid; gap: 14px; }
.lc-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lc-how li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.lc-how li > span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px; color: var(--teal-ink); background: var(--teal-soft); }
.lc-how li b { display: block; font-size: 14.5px; font-weight: 900; }
.lc-how li small { display: block; font-size: 12.5px; color: var(--slate); line-height: 1.4; margin-top: 2px; }
.lc-how-btn { justify-self: start; }
.lc-how-note { padding: 14px 4px 0; }
@media (max-width: 640px) {
  .lc-how ol { grid-template-columns: 1fr; }
  .lc-how-btn { justify-self: stretch; text-align: center; }
  .lc-shelf:not(.one) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .lc-shelf:not(.one) .lc-co { scroll-snap-align: start; }
  .lc-shelf.one { grid-template-columns: 1fr; }
}
/* one course on its own (Lead the ED): picture beside the words once there is room */
/* … and on the Courses page every course is a wide card: picture left, words right */
@media (min-width: 560px) {
  .lc-shelf.one, .lc-grid { grid-template-columns: 1fr; }
  .lc-shelf.one .lc-co, .lc-grid .lc-co { flex-direction: row; }
  .lc-shelf.one .lc-co-art, .lc-grid .lc-co-art { flex: 0 0 42%; aspect-ratio: auto; min-height: 210px; border-bottom: 0; border-right: 1px solid var(--line); }
  .lc-shelf.one .lc-co-body, .lc-grid .lc-co-body { padding: 18px 20px; }
  .lc-shelf.one .lc-co b { font-size: 22px; }
}

/* ---------- 15 Nov 2026: the bar's buttons with real icons (Osama: the home button "is still very basic") ---------- */
.lc-bar { border: 1px solid var(--line); }
.lc-b-ic { gap: 8px; padding: 0 14px 0 11px; }
.lc-b-ic svg { flex: none; }
.lc-b-home { background: linear-gradient(135deg, #0a2243, #1f4f86 60%, #19838c); color: #fff; box-shadow: 0 6px 16px -10px rgba(10,34,67,.8); }
.lc-b-home:hover { filter: brightness(1.08); }
.lc-arrow { border-radius: 50%; width: 44px; padding: 0; }

/* ---------- 15 Nov 2026: the programme after the course, drawn like the programme document (no tick boxes) ---------- */
.pg { margin-top: 22px; }
.pg-h { font-size: 22px; font-weight: 900; color: var(--navy-ink); margin: 0 2px 12px; }
.pg-sub { font-size: 18px; font-weight: 900; color: var(--navy-ink); margin: 22px 2px 10px; }
.pg-hero { position: relative; display: flex; min-height: 210px; border-radius: 22px; overflow: hidden; color: #fff; background: linear-gradient(120deg, #0a2243 0%, #1f4f86 55%, #19838c 100%); margin-bottom: 14px; }
.pg-hero-t { position: relative; z-index: 1; flex: 1 1 56%; padding: 22px 24px; }
.pg-hero-t h3 { color: #fff; font-size: 24px; line-height: 1.2; margin: 10px 0 8px; }
.pg-hero-t p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #dbe7f5; }
.pg-hero-p { flex: 0 0 44%; background-size: cover; background-position: center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%); mask-image: linear-gradient(90deg, transparent 0, #000 35%); }
@media (max-width: 620px) { .pg-hero { flex-direction: column; } .pg-hero-p { order: -1; flex-basis: 170px; min-height: 170px; -webkit-mask-image: none; mask-image: none; } }
.pg-card { margin: 0 0 14px; border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.pg-card img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.pg-card figcaption { padding: 16px 18px 18px; }
.pg-card h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy-ink); }
.pg-card p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.pg-rev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
.pg-rev img { aspect-ratio: auto; height: 100%; min-height: 170px; }
@media (max-width: 620px) { .pg-rev { grid-template-columns: 1fr; } .pg-rev img { aspect-ratio: 16 / 8; min-height: 0; } }
.pg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pg-fact { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 8px; padding: 16px 12px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.pg-fact b { display: block; font-size: 22px; font-weight: 900; color: var(--navy-ink); line-height: 1.1; }
.pg-fact span { display: block; font-size: 12.5px; line-height: 1.4; color: var(--slate); margin-top: 3px; }
.pg-steps { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; }
.pg-steps:before { content: ""; position: absolute; left: 30px; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: linear-gradient(#19838c, #1f4f86, #c9803b); }
.pg-step { position: relative; display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: center; margin: 0 0 10px 26px; padding: 10px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.pg-dot { position: absolute; left: -38px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #fff; background: #1f4f86; box-shadow: 0 0 0 4px var(--bg, #f4f7fa); }
.pg-pic { width: 128px; height: 82px; border-radius: 12px; object-fit: cover; display: block; }
.pg-pic-ic { display: grid; place-items: center; background: var(--teal-soft); }
.pg-step small { display: block; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); }
.pg-step b { display: block; font-size: 16px; color: var(--navy-ink); margin: 1px 0 3px; }
.pg-step p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--slate); }
@media (max-width: 520px) { .pg-step { grid-template-columns: 1fr; } .pg-pic { width: 100%; height: 130px; } }
.pg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .pg-two { grid-template-columns: 1fr; } }
.pg-box { padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.pg-box h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; color: var(--navy-ink); }
.pg-box ul { margin: 0; padding-left: 20px; } .pg-box li { margin: 4px 0; font-size: 14px; }
.pg-tags { display: flex; flex-wrap: wrap; gap: 6px; } .pg-tags span { font-size: 12.5px; padding: 5px 11px; border-radius: 99px; background: var(--navy-soft); color: var(--navy-ink); font-weight: 700; }
.pg-note-s { font-size: 13px; color: var(--slate); margin: 8px 2px 0; }
.pg-table { display: grid; gap: 6px; }
.pg-row { display: grid; grid-template-columns: 40px minmax(120px, 190px) 1fr; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; }
.pg-row b { color: var(--navy-ink); } .pg-row span { color: var(--slate); }
@media (max-width: 520px) { .pg-row { grid-template-columns: 36px 1fr; } .pg-row span { grid-column: 2; } }
.pg-callout { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--navy-soft); }
.pg-callout.warn { background: var(--amber-soft); }
.pg-callout b { color: var(--navy-ink); } .pg-callout p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; }
.ld-call.note p + p { margin-top: 10px; }   /* "In our department" in several paragraphs (16 Nov 2026) */
