/* ==========================================================================
   AlwaysAME module courses (2026-10, light edition)
   Loaded after /assets/site.css. Class names keep the m10- prefix used by the
   course scripts. The explainer player, mind map and figures sit on dark
   "plates" so the existing slide and diagram colours stay legible.
   ========================================================================== */
:root {
  --bg: #ffffff;
  --surface: #f3f5f6;
  --surface-2: #ffffff;
  --border: #d6dce1;
  --border-soft: #e3e7ea;
  --text: #16212c;
  --muted: #56616d;
  --gold: #1b4a7a;      /* course accent = site blue on the light page */
  --gold-dim: #133a61;
  --blue: #1b4a7a;
  --green: #1d6a3b;
  --red: #9e2a21;
  --violet: #5b3fa0;
  --radius: 6px;
}
/* Dark plates keep their original palette */
.m10-player, .m10-mindmap, .m10-fig, .m10-stage {
  --gold: #fbbf24;
  --gold-dim: #d9a31e;
  --blue: #60a5fa;
  --green: #34d399;
  --red: #f87171;
  --text: #e8edf5;
  --muted: #94a3b8;
  --border: rgba(148,163,184,0.22);
  --border-soft: rgba(148,163,184,0.16);
  --surface: #0a1220;
  --surface-2: #0f1a2e;
  color: var(--text);
}

body { background: var(--bg); color: var(--text); }
img, svg { max-width: 100%; }

/* ---------- module / chapter heading ---------- */
.m10-hero { max-width: var(--wide, 1160px); margin: 0 auto; padding: 28px 24px 28px; text-align: left; border-bottom: 1px solid var(--border); background: none; }
.m10-badge { display: flex; flex-wrap: wrap; gap: 0; padding: 0; background: none; border: 0; color: var(--muted); border-radius: 0; font-size: .9rem; font-weight: 500; letter-spacing: 0; margin: 0 0 10px; }
.m10-badge span + span::before { content: "/"; color: #b8c1c9; margin: 0 .55em; }
.m10-hero h1 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); line-height: 1.2; letter-spacing: -.015em; margin-bottom: 12px; font-weight: 600; }
.m10-gold { color: inherit; }
.m10-lead { color: var(--muted); max-width: 70ch; margin: 0; font-size: 1.12rem; line-height: 1.55; }
.m10-stats { display: flex; justify-content: flex-start; gap: 8px 32px; margin-top: 18px; flex-wrap: wrap; }
.m10-stat { display: flex; align-items: baseline; gap: 6px; }
.m10-stat .n { color: var(--text); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.m10-stat .l { color: var(--muted); font-size: .95rem; text-transform: none; letter-spacing: 0; }
.m10-crumbs { max-width: var(--wide, 1160px); margin: 0 auto; padding: 28px 24px 16px; font-size: .875rem; color: var(--muted); }
.m10-crumbs a { color: #4c5865; text-decoration: none; }
.m10-crumbs a:hover { color: var(--blue); text-decoration: underline; }
.m10-crumbs-first { order: -1; }

/* ---------- chapter layout: sticky contents + content ---------- */
.m10-layout { max-width: var(--wide, 1160px); margin: 0 auto; padding: 32px 24px 56px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; }
.m10-toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; font-size: .9rem; padding-right: 8px; }
.m10-toc h4 { color: var(--text); font-size: .85rem; letter-spacing: 0; text-transform: none; font-weight: 600; margin-bottom: 8px; }
.m10-toc a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0 5px 12px; border-left: 2px solid var(--border-soft); line-height: 1.35; }
.m10-toc a:hover { color: var(--text); }
.m10-toc a.on { color: var(--text); border-left-color: var(--blue); font-weight: 500; }
.m10-toc .m10-toc-sub { padding-left: 22px; font-size: .84rem; }
.m10-content { min-width: 0; max-width: 780px; }
@media (max-width: 900px) {
  .m10-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .m10-toc { position: static; max-height: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); }
  .m10-toc-list { display: none; }
  .m10-toc.open .m10-toc-list { display: block; margin-top: 8px; }
  .m10-toc h4 { margin: 0; cursor: pointer; display: flex; justify-content: space-between; }
  .m10-toc h4::after { content: "Show"; font-weight: 400; color: var(--blue); }
  .m10-toc.open h4::after { content: "Hide"; }
}

/* ---------- section blocks ---------- */
.m10-block { margin-bottom: 48px; scroll-margin-top: 90px; }
.m10-label { color: var(--muted); text-transform: none; font-size: .9rem; letter-spacing: 0; font-weight: 500; margin-bottom: 4px; }
.m10-block > h2 { font-size: 1.45rem; margin-bottom: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.m10-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }

/* ---------- lesson typography ---------- */
.m10-lesson { font-size: 1.0625rem; line-height: 1.7; }
.m10-card.m10-lesson, .m10-block.m10-lesson .m10-card { border: 0; padding: 0; background: none; }
.m10-lesson h2 { font-size: 1.4rem; margin: 2.2rem 0 .7rem; padding-top: 4px; scroll-margin-top: 90px; line-height: 1.3; font-weight: 600; }
.m10-lesson h2 .m10-ref-tag { font-size: .72rem; }
.m10-lesson h3 { font-size: 1.15rem; margin: 1.7rem 0 .5rem; color: var(--text); scroll-margin-top: 90px; font-weight: 600; }
.m10-lesson p { margin: 0 0 1em; }
.m10-lesson ul, .m10-lesson ol { margin: 0 0 1.1em 1.3rem; padding: 0; }
.m10-lesson li { margin: .3rem 0; }
.m10-lesson strong { color: var(--text); font-weight: 600; }
.m10-lesson code { background: var(--surface); padding: .05rem .35rem; border-radius: 3px; font-size: .92em; }
.m10-ref-tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: 0; color: var(--blue); background: #e8eff7; border: 1px solid #c6d6e8; padding: 0 .4rem; border-radius: 3px; vertical-align: middle; white-space: nowrap; }
.m10-table-wrap { overflow-x: auto; margin: 0 0 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); }
.m10-lesson table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 520px; }
.m10-lesson th { background: var(--surface); color: var(--text); text-align: left; font-weight: 600; }
.m10-lesson th, .m10-lesson td { padding: 10px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.m10-lesson tr:last-child td { border-bottom: 0; }

/* Notes follow the maintenance-manual callout convention */
.m10-note { border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px 14px 16px; margin: 1.3rem 0 1.5rem; position: relative; font-size: .98rem; border: 1px solid var(--border); border-left-width: 4px; }
.m10-note::before { display: none; }
.m10-note p:last-child, .m10-note ul:last-child { margin-bottom: 0; }
.m10-note b.t { display: block; margin-bottom: 4px; letter-spacing: 0; font-size: .85rem; }
.m10-note.tip { background: #e8f4ec; border-left-color: var(--green); }
.m10-note.tip b.t { color: var(--green); }
.m10-note.trap { background: #fbeceb; border-left-color: var(--red); }
.m10-note.trap b.t { color: var(--red); }
.m10-note.key { background: #fdf4e1; border-left-color: #d9a441; }
.m10-note.key b.t { color: #7a5000; }
.m10-note.info { background: #e8eff7; border-left-color: var(--blue); }
.m10-note.info b.t { color: var(--blue); }
.m10-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 6px 0 1.4rem; }
.m10-kv div { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 12px 14px; }
.m10-kv b { display: block; font-size: 1.35rem; color: var(--text); line-height: 1.15; font-weight: 600; }
.m10-kv span { color: var(--muted); font-size: .88rem; }
.m10-steps { counter-reset: st; list-style: none; margin-left: 0 !important; }
.m10-steps li { counter-increment: st; position: relative; padding: 2px 0 10px 36px; }
.m10-steps li::before { content: counter(st); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .8rem; display: grid; place-items: center; }

/* ---------- explainer player (dark plate) ---------- */
.m10-player { background: #000; border: 1px solid #1f2a36; border-radius: var(--radius); overflow: hidden; }
.m10-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1424; color: #fff; user-select: none; }
.m10-stage::after { display: none; }
.m10-player:fullscreen .m10-stage { aspect-ratio: auto; height: calc(100vh - 110px); }
.m10-slide { position: absolute; inset: 0; padding: 5.5% 6.5%; display: flex; flex-direction: column; justify-content: center; z-index: 1; font-size: clamp(9px, 1.55vw, 17px); }
.m10-content .m10-slide { font-size: clamp(9px, 1.2vw, 15px); }
.m10-player:fullscreen .m10-slide { font-size: clamp(12px, 1.6vw, 26px); }
.m10-slide .s-kicker { color: var(--gold); font-weight: 600; letter-spacing: .04em; text-transform: none; font-size: .85em; margin-bottom: .6em; }
.m10-slide .s-title { font-size: 2.05em; font-weight: 700; line-height: 1.15; margin-bottom: .7em; }
.m10-slide .s-sub { color: #cbd5e1; font-size: 1.1em; max-width: 80%; }
.m10-slide.t-title { align-items: flex-start; }
.m10-slide.t-title .s-title { font-size: 2.9em; }
.m10-slide.t-title .s-icon { font-size: 4em; margin-bottom: .25em; }
.s-anim { opacity: 0; transform: translateY(.9em); transition: opacity .6s ease, transform .6s ease; }
.s-anim.in { opacity: 1; transform: none; }
.s-bullets { list-style: none; display: grid; gap: .62em; }
.s-bullets li { display: flex; gap: .75em; align-items: flex-start; font-size: 1.12em; line-height: 1.35; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: .4em; padding: .55em .8em; }
.s-bullets li .i { font-size: 1.2em; line-height: 1.1; flex: none; }
.s-bullets li b { color: var(--gold); }
.s-grid { display: grid; gap: .7em; }
.s-grid .c { background: rgba(255,255,255,0.05); border: 1px solid rgba(251,191,36,0.25); border-radius: .5em; padding: .8em .9em; }
.s-grid .c .h { color: var(--gold); font-weight: 700; font-size: 1.12em; margin-bottom: .25em; }
.s-grid .c .d { color: #d7deea; font-size: .93em; line-height: 1.35; }
.s-pyr { display: flex; flex-direction: column; align-items: center; gap: .35em; }
.s-pyr .lv { text-align: center; border-radius: .4em; padding: .45em 1em; font-weight: 700; line-height: 1.25; }
.s-pyr .lv small { display: block; font-weight: 400; color: rgba(255,255,255,0.8); font-size: .78em; }
.s-flow { display: flex; align-items: stretch; gap: .5em; flex-wrap: nowrap; }
.s-flow .f { flex: 1; background: rgba(96,165,250,0.1); border: 1px solid rgba(96,165,250,0.4); border-radius: .5em; padding: .7em; text-align: center; font-size: .95em; display: flex; flex-direction: column; justify-content: center; }
.s-flow .f b { display: block; color: #93c5fd; font-size: 1.05em; margin-bottom: .2em; }
.s-flow .ar { align-self: center; color: var(--gold); font-size: 1.5em; }
.s-stat { display: grid; gap: .8em; }
.s-stat .st { text-align: center; background: rgba(251,191,36,0.07); border: 1px solid rgba(251,191,36,0.3); border-radius: .5em; padding: .9em .5em; }
.s-stat .st b { display: block; font-size: 2.3em; color: var(--gold); line-height: 1.05; }
.s-stat .st span { color: #d7deea; font-size: .95em; }
.s-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.s-compare .col { border-radius: .5em; padding: .9em 1em; border: 1px solid; }
.s-compare .col h5 { font-size: 1.2em; margin-bottom: .5em; }
.s-compare .col ul { list-style: none; display: grid; gap: .4em; padding: 0; }
.s-compare .col li { font-size: 1em; line-height: 1.3; padding-left: 1.1em; position: relative; }
.s-compare .col li::before { content: "›"; position: absolute; left: 0; font-weight: 800; }
.s-compare .a { background: rgba(96,165,250,0.08); border-color: rgba(96,165,250,0.4); }
.s-compare .a h5, .s-compare .a li::before { color: #93c5fd; }
.s-compare .b { background: rgba(251,191,36,0.07); border-color: rgba(251,191,36,0.4); }
.s-compare .b h5, .s-compare .b li::before { color: var(--gold); }
.s-timeline { display: flex; gap: 0; position: relative; margin-top: .5em; }
.s-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 1.05em; height: 2px; background: rgba(251,191,36,0.5); }
.s-timeline .tl { flex: 1; text-align: center; padding: 0 .35em; position: relative; }
.s-timeline .tl .dot { width: 2.1em; height: 2.1em; border-radius: 50%; margin: 0 auto .5em; background: #0b1426; border: 2px solid var(--gold); display: grid; place-items: center; font-weight: 800; color: var(--gold); font-size: .9em; position: relative; }
.s-timeline .tl b { display: block; font-size: 1em; color: #fff; }
.s-timeline .tl span { color: #cbd5e1; font-size: .85em; line-height: 1.3; display: block; }
.s-quote { font-size: 1.55em; line-height: 1.35; font-weight: 700; border-left: .2em solid var(--gold); padding-left: .8em; max-width: 88%; }
.s-quote small { display: block; font-size: .55em; color: #94a3b8; font-weight: 400; margin-top: .6em; }
.m10-caption { background: #050a14; color: #e2e8f0; padding: 12px 16px; font-size: .96rem; line-height: 1.5; min-height: 4.6em; border-top: 1px solid var(--border-soft); }
.m10-caption .cc { color: var(--gold); font-weight: 700; font-size: .7rem; letter-spacing: .05em; margin-right: .5rem; border: 1px solid var(--gold); border-radius: 3px; padding: 0 .3rem; vertical-align: 1px; }
.m10-controls { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #0a1220; border-top: 1px solid var(--border-soft); flex-wrap: wrap; }
.m10-controls button, .m10-controls select { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border-soft); border-radius: 4px; padding: 6px 10px; font-size: .88rem; cursor: pointer; font-family: inherit; }
.m10-controls button:hover { border-color: #cbd5e1; }
.m10-controls select, .m10-controls input { display: inline-block; width: auto; margin: 0; }
.m10-controls .play { background: #ffffff; color: #16212c; border-color: #ffffff; font-weight: 600; min-width: 5.6rem; }
.m10-controls .grow { flex: 1; min-width: 120px; }
.m10-bar { height: 6px; background: rgba(255,255,255,0.12); border-radius: 99px; overflow: hidden; cursor: pointer; }
.m10-bar i { display: block; height: 100%; width: 0; background: #ffffff; transition: width .3s; }
.m10-count { color: var(--muted); font-size: .82rem; min-width: 3.4rem; text-align: center; }
.m10-bigplay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(4,8,15,0.35); cursor: pointer; border: 0; width: 100%; }
.m10-bigplay span { width: 4.6rem; height: 4.6rem; border-radius: 50%; background: #ffffff; display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,0.4); }
.m10-bigplay span::before { content: ""; border-left: 1.4rem solid #16212c; border-top: .85rem solid transparent; border-bottom: .85rem solid transparent; margin-left: .3rem; }
.m10-player-note { color: #56616d; font-size: .88rem; margin-top: 10px; }
.m10-stage .s-progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold); z-index: 3; transition: width .25s linear; }
#m10-media details summary { color: var(--blue) !important; }
#m10-media #transcript { color: #4c5865 !important; }

/* ---------- mind map (dark plate) ---------- */
.m10-mindmap { height: 560px; border: 1px solid #1f2a36; border-radius: var(--radius); background: #0b1424; position: relative; overflow: hidden; }
.m10-mindmap svg { width: 100%; height: 100%; cursor: grab; display: block; }
.m10-mindmap .mm-tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 2; }
.m10-mindmap .mm-tools button { background: rgba(255,255,255,0.08); color: #dbe3ff; border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.m10-mindmap .mm-hint { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: 11.5px; color: #9aa6c8; background: rgba(10,14,35,0.6); padding: 4px 12px; border-radius: 99px; pointer-events: none; white-space: nowrap; }
.mm-link { fill: none; stroke-width: 1.6px; opacity: .55; }
.mm-node rect { rx: 8; ry: 8; stroke-width: 1.2px; }
.mm-node { cursor: pointer; }
.mm-node text { font-size: 12.5px; fill: #eef2ff; pointer-events: none; }
.mm-node.root text { font-size: 14px; font-weight: 700; }
.mm-node .mm-badge { font-size: 10px; font-weight: 800; }
@media (max-width: 640px) { .m10-mindmap { height: 460px; } }

/* ---------- flashcards ---------- */
.m10-flash { max-width: 640px; margin: 0; }
.m10-fcard { perspective: 1200px; height: 240px; cursor: pointer; }
.m10-fcard .in { position: relative; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.m10-fcard.flip .in { transform: rotateY(180deg); }
.m10-fcard .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border: 1px solid var(--border); color: var(--text); }
.m10-fcard .front { background: #ffffff; font-size: 1.2rem; font-weight: 600; box-shadow: 0 1px 0 var(--border); }
.m10-fcard .back { background: var(--surface); transform: rotateY(180deg); font-size: 1.05rem; border-color: var(--border); }
.m10-fcard .face small { position: absolute; top: 12px; left: 16px; font-size: .8rem; color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 500; }
.m10-fnav { display: flex; justify-content: flex-start; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.m10-btn { background: #ffffff; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 14px; font-size: .92rem; font-weight: 500; cursor: pointer; font-family: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.m10-btn:hover { border-color: #8a96a2; text-decoration: none; }
.m10-btn.gold { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 600; }
.m10-btn.gold:hover { background: #133a61; border-color: #133a61; }
.m10-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- quiz ---------- */
.m10-quiz .q-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .88rem; margin-bottom: 12px; gap: 16px; flex-wrap: wrap; }
.m10-quiz .q-prog { flex: 1; height: 6px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 99px; overflow: hidden; min-width: 120px; }
.m10-quiz .q-prog i { display: block; height: 100%; background: var(--blue); transition: width .3s; }
.m10-quiz .q-text { font-size: 1.12rem; font-weight: 600; margin-bottom: 16px; line-height: 1.45; }
.m10-quiz .q-opts { display: grid; gap: 8px; }
.m10-quiz .q-opt { text-align: left; background: #ffffff; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px 12px 48px; font-size: 1rem; cursor: pointer; position: relative; font-family: inherit; line-height: 1.4; }
.m10-quiz .q-opt::before { content: attr(data-k); position: absolute; left: 14px; top: 11px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #8a96a2; display: grid; place-items: center; font-size: .78rem; font-weight: 600; color: var(--muted); }
.m10-quiz .q-opt:hover:not(:disabled) { border-color: #8a96a2; background: var(--surface); }
.m10-quiz .q-opt.sel { border-color: var(--blue); background: #e8eff7; }
.m10-quiz .q-opt.ok { border-color: var(--green); background: #e8f4ec; }
.m10-quiz .q-opt.ok::before { content: "✓"; border-color: var(--green); color: var(--green); }
.m10-quiz .q-opt.bad { border-color: var(--red); background: #fbeceb; }
.m10-quiz .q-opt.bad::before { content: "✗"; border-color: var(--red); color: var(--red); }
.m10-quiz .q-opt:disabled { cursor: default; }
.m10-quiz .q-exp { margin-top: 16px; padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; background: #e8eff7; border: 1px solid #c6d6e8; border-left: 4px solid var(--blue); font-size: .97rem; }
.m10-quiz .q-exp .r { display: block; margin-top: 6px; color: var(--blue); font-size: .85rem; font-weight: 600; }
.m10-quiz .q-foot { display: flex; justify-content: space-between; margin-top: 16px; gap: 10px; flex-wrap: wrap; }
.m10-result { text-align: left; padding: 8px 0; }
.m10-result .big { font-size: 2.6rem; font-weight: 600; line-height: 1; }
.m10-result .big.pass { color: var(--green); }
.m10-result .big.fail { color: var(--red); }
.m10-review { margin-top: 20px; text-align: left; display: grid; gap: 10px; }
.m10-review .rv { background: #ffffff; border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 14px; font-size: .95rem; }
.m10-review .rv.ok { border-left-color: var(--green); }
.m10-review .rv .a { color: var(--green); font-weight: 600; }
.m10-review .rv .y { color: var(--red); }

/* ---------- source documents ---------- */
.m10-docs { display: grid; gap: 0; border-top: 1px solid var(--border); }
.m10-doc { display: flex; gap: 14px; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 12px 0; text-decoration: none; color: var(--text); }
.m10-doc:hover .t { color: var(--blue); text-decoration: underline; }
.m10-doc .ic { display: none; }
.m10-doc .t { font-weight: 600; font-size: .98rem; line-height: 1.3; }
.m10-doc .s { color: var(--muted); font-size: .86rem; }
.m10-doc .go { margin-left: auto; color: var(--blue); font-size: .86rem; white-space: nowrap; }

/* ---------- chapter nav + completion ---------- */
.m10-done { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.m10-done p { color: var(--muted); font-size: .95rem; margin: 0; }
.m10-chnav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.m10-chnav a { flex: 1; padding: 0; background: none; border: 0; border-radius: 0; color: var(--text); text-decoration: none; max-width: 48%; }
.m10-chnav a:hover .t { text-decoration: underline; }
.m10-chnav .l { color: var(--muted); font-size: .85rem; text-transform: none; letter-spacing: 0; }
.m10-chnav .t { color: var(--blue); font-weight: 600; }
.m10-chnav a.next { text-align: right; margin-left: auto; }
.m10-readbar { display: none; }

/* ---------- course index ---------- */
.m10-wrap { max-width: var(--wide, 1160px); margin: 0 auto; padding: 32px 24px 56px; }
.m10-grid { display: block; border-top: 2px solid var(--text); }
.m10-chcard { display: grid; grid-template-columns: 200px minmax(0, 1fr) 120px; gap: 4px 24px; background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 18px 0; text-decoration: none; color: inherit; position: relative; }
.m10-chcard:hover .ti { color: var(--blue); text-decoration: underline; }
.m10-chcard .n { color: var(--muted); font-size: .88rem; font-weight: 500; letter-spacing: 0; margin: 2px 0 0; grid-row: span 3; }
.m10-chcard .n span { display: block; }
.m10-chcard .n span + span::before { content: none; }
.m10-chcard .ti { font-size: 1.12rem; font-weight: 600; margin: 0; line-height: 1.35; grid-column: 2; }
.m10-chcard .su { color: var(--muted); font-size: .95rem; margin: 4px 0 0; grid-column: 2; }
.m10-chcard .me { display: flex; gap: 4px 16px; font-size: .85rem; color: var(--muted); border-top: 0; padding-top: 6px; flex-wrap: wrap; grid-column: 2; }
.m10-chcard .st { position: static; grid-column: 3; grid-row: 1; justify-self: end; align-self: start; font-size: .8rem; font-weight: 500; padding: 2px 8px; border-radius: 3px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.m10-chcard .st.read { color: var(--blue); border-color: #9fb9d6; background: #e8eff7; }
.m10-chcard .st.pass { color: var(--green); border-color: #9cc9ab; background: #e8f4ec; }
@media (max-width: 760px) {
  .m10-chcard { grid-template-columns: minmax(0, 1fr) auto; }
  .m10-chcard .n { grid-row: auto; grid-column: 1; }
  .m10-chcard .ti, .m10-chcard .su, .m10-chcard .me { grid-column: 1 / -1; }
  .m10-chcard .st { grid-column: 2; }
}
.m10-overall { display: flex; align-items: center; gap: 16px; margin: 0 0 8px; flex-wrap: wrap; font-size: .95rem; }
.m10-overall b { font-weight: 600; }
.m10-overall .bar { flex: 1; height: 8px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 99px; overflow: hidden; min-width: 200px; max-width: 420px; }
.m10-overall .bar i { display: block; height: 100%; background: var(--green); width: 0; transition: width .6s; }
.m10-overall .pct { color: var(--muted); }
#m10-mockhist { color: var(--muted) !important; margin: 0 0 24px !important; }
.m10-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 8px 0 48px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.m10-tool { background: #ffffff; border: 0; border-right: 1px solid var(--border); border-radius: 0; padding: 18px 20px; text-decoration: none; color: var(--text); }
.m10-tool:last-child { border-right: 0; }
.m10-tool:hover { background: var(--surface); text-decoration: none; }
.m10-tool:hover b { color: var(--blue); text-decoration: underline; }
.m10-tool .ic { display: none; }
.m10-tool b { display: block; font-size: 1.05rem; font-weight: 600; margin: 0 0 4px; }
.m10-tool span { color: var(--muted); font-size: .92rem; }
@media (max-width: 940px) { .m10-tool { border-right: 0; border-bottom: 1px solid var(--border); } .m10-tool:last-child { border-bottom: 0; } }
.m10-h2 { font-size: 1.45rem; margin: 0 0 12px; font-weight: 600; }

/* ---------- mock exam ---------- */
.m10-exam-top { position: sticky; top: 72px; z-index: 50; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; box-shadow: 0 4px 12px rgba(22,33,44,.06); }
.m10-timer { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.15rem; color: var(--text); }
.m10-timer.low { color: var(--red); }
.m10-qmap { display: flex; flex-wrap: wrap; gap: 4px; }
.m10-qmap button { width: 2rem; height: 2rem; border-radius: 4px; border: 1px solid var(--border); background: #ffffff; color: var(--muted); font-size: .78rem; cursor: pointer; font-family: inherit; }
.m10-qmap button.ans { background: #e8eff7; color: var(--blue); border-color: #9fb9d6; }
.m10-qmap button.cur { outline: 2px solid var(--text); }
.m10-qmap button.flag { border-color: var(--red); }
.m10-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.m10-choice label { display: block; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; }
.m10-choice input { margin-right: .5rem; accent-color: #1b4a7a; }
.m10-choice label:has(input:checked) { border-color: var(--blue); background: #e8eff7; }
.m10-choice small { display: block; color: var(--muted); margin-top: 4px; }

/* ---------- cheat sheet ---------- */
.m10-sheet-group { margin-bottom: 32px; }
.m10-sheet-group h2 { font-size: 1.2rem; color: var(--text); margin-bottom: 10px; font-weight: 600; }
.m10-filter { width: 100%; max-width: 480px; background: #ffffff; border: 1px solid #b9c2ca; color: var(--text); border-radius: var(--radius); padding: 10px 12px; font-size: 1rem; margin-bottom: 24px; font-family: inherit; }

/* ---------- diagrams (dark plate) ---------- */
.m10-fig { margin: 1.5rem 0 1.7rem; background: #0b1424; border: 1px solid #1f2a36; border-radius: var(--radius); padding: 16px 16px 12px; }
.m10-fig svg { display: block; width: 100%; height: auto; max-height: 520px; }
.m10-fig figcaption { color: #b7c2d0; font-size: .88rem; margin-top: 10px; line-height: 1.45; }
.m10-fig figcaption b { color: #fbbf24; }
.m10-slide.t-figure { padding-top: 4%; padding-bottom: 4%; }
.m10-slide.t-figure .s-title { margin-bottom: .35em; }
.s-figure { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.s-figure svg { width: 100%; height: 100%; max-height: 100%; }
.s-figcap { color: #cbd5e1; font-size: .92em; margin-top: .4em; text-align: center; }
svg .fg-l { stroke: #cbd5e1; stroke-width: 2; fill: none; }
svg .fg-t { fill: #e2e8f0; font: 600 14px "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; }
svg .fg-s { fill: #94a3b8; font: 500 12px "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; }
svg .fg-g { stroke: #fbbf24; fill: none; stroke-width: 2.5; }
svg .fg-gt { fill: #fbbf24; font: 700 14px "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; }
svg .fg-b { stroke: #60a5fa; fill: none; stroke-width: 2.5; }
svg .fg-bt { fill: #93c5fd; font: 700 14px "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; }
svg .fg-r { stroke: #f87171; fill: none; stroke-width: 2.5; }
svg .fg-rt { fill: #fca5a5; font: 700 14px "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; }
svg .fg-gr { stroke: #34d399; fill: none; stroke-width: 2.5; }
svg .fg-grt { fill: #6ee7b7; font: 700 14px "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; }
svg .fg-v { stroke: #a78bfa; fill: none; stroke-width: 2.5; }
svg .fg-vt { fill: #c4b5fd; font: 700 14px "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; }
svg .fg-box { fill: #0f1a2e; stroke: #475569; stroke-width: 1.5; }
svg .fg-fill { fill: #1e293b; stroke: #cbd5e1; stroke-width: 2; }
svg .fg-dash { stroke: #94a3b8; stroke-width: 1.5; fill: none; stroke-dasharray: 6 5; }
@media (max-width: 700px) {
  .m10-figscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .m10-figscroll svg { min-width: 680px; max-height: none; }
  .m10-fig::before { content: "Scroll sideways to see the whole diagram"; display: block; font-size: .78rem; color: #b7c2d0; margin-bottom: 6px; }
}

/* ---------- Module 7 additions ---------- */
.m7-source { color: var(--muted); font-size: .9rem; margin: 16px 0; }
.m7-scenario { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; background: #ffffff; }
.m7-scenario summary { cursor: pointer; color: var(--blue); font-weight: 500; }
.m7-scenario p { padding-top: 12px; }
.m7-select, .m7-essay-card textarea { width: 100%; border: 1px solid #b9c2ca; background: #ffffff; color: var(--text); border-radius: var(--radius); padding: 12px; font: inherit; }
.m7-select { margin: 10px 0; }
.m7-essay-card { margin-top: 22px; }
.m7-essay-card p { margin: 12px 0 18px; }
.m7-essay-card label { display: block; margin: 10px 0; }
.m7-essay-card textarea { resize: vertical; line-height: 1.6; }
.m7-essay-card textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.m7-essay-card h3 { color: var(--text); margin: 20px 0 10px; }
.m7-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 10px 0 16px; }
.m7-check { display: flex !important; align-items: flex-start; gap: 12px; background: var(--surface); padding: 12px; border-radius: var(--radius); }
.m7-check input { margin-top: 6px; accent-color: #1b4a7a; flex-shrink: 0; }
.check-result { color: var(--green); }
.m10-note { margin: 1.3rem 0; }
.m10-wrap > .m10-lesson { margin: 24px 0; }
.m7-map-fallback details { padding: 10px; border-bottom: 1px solid var(--border); }
.m7-map-fallback summary { color: var(--blue); cursor: pointer; }
.m7-map-fallback p { color: var(--muted); padding: 10px; }
@media (max-width: 600px) { .m7-actions .m10-btn { width: 100%; } }

/* course footer note */
.course-foot { max-width: var(--wide, 1160px); margin: 0 auto; padding: 0 24px 40px; color: var(--muted); font-size: .9rem; }
.course-foot p { max-width: 80ch; margin: 0 0 6px; }

@media (max-width: 640px) {
  .m10-caption { font-size: .88rem; }
  .m10-controls .hide-sm { display: none; }
  .s-compare { grid-template-columns: 1fr; }
  .m10-fcard { height: 280px; }
}
@media print {
  .m10-toc, .m10-player, .m10-mindmap, .m10-quiz, .m10-flash, .m10-chnav, .m10-done, .m10-readbar, #m10-media, #m10-practice { display: none !important; }
  .m10-layout { display: block; }
  .m10-fig { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .s-anim { transition: none; }
  .m10-fcard .in { transition: none; }
}

/* static description under each mock exam */
.paper-info { max-width: 760px; margin: 48px 0 0; padding-top: 32px; border-top: 1px solid var(--border); }
.paper-info h2 { font-size: 1.35rem; margin: 0 0 12px; font-weight: 600; }
.paper-info p { color: var(--text); }
.paper-info .data-table td:last-child, .paper-info .data-table th:last-child { text-align: right; width: 110px; }
