/* ==========================================================================
   DGCA Module 10 — Aviation Legislation · course styles
   All course classes are prefixed m10- so they never collide with site CSS.
   ========================================================================== */
:root {
  --bg: #04080f;
  --surface: #0a1220;
  --surface-2: #0f1a2e;
  --border: rgba(251, 191, 36, 0.15);
  --border-soft: rgba(148, 163, 184, 0.14);
  --text: #e8edf5;
  --muted: #94a3b8;
  --gold: #fbbf24;
  --gold-dim: #d9a31e;
  --blue: #60a5fa;
  --green: #34d399;
  --red: #f87171;
  --violet: #a78bfa;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.65; min-height: 100vh; }
a { color: var(--gold); }
img, svg { max-width: 100%; }

/* ---------- site header (same pattern as the other course pages) ---------- */
header.site { background: rgba(4,8,15,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); padding: 1rem 2rem; position: sticky; top: 0; z-index: 100; }
.nav { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { color: var(--gold); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.nav-links a { color: var(--text); text-decoration: none; padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; transition: all 0.2s; }
.nav-links a:hover { border-color: var(--gold); }
.cta { background: var(--gold); color: #0a0a0a !important; border-color: var(--gold) !important; font-weight: 600; }
footer.site { border-top: 1px solid var(--border); padding: 2rem; text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 4rem; }
footer.site a { color: var(--gold); text-decoration: none; }

/* ---------- hero ---------- */
.m10-hero { padding: 3.5rem 1.5rem 2.75rem; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.14) 0%, transparent 65%); border-bottom: 1px solid var(--border); }
.m10-badge { display: inline-block; padding: 0.4rem 1rem; background: rgba(251,191,36,0.1); border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 1.25rem; }
.m10-hero h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); line-height: 1.2; margin-bottom: 0.9rem; }
.m10-gold { color: var(--gold); }
.m10-lead { color: var(--muted); max-width: 760px; margin: 0 auto; font-size: 1.08rem; }
.m10-stats { display: flex; justify-content: center; gap: 2.25rem; margin-top: 1.6rem; flex-wrap: wrap; }
.m10-stat .n { color: var(--gold); font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.m10-stat .l { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.m10-crumbs { max-width: 1180px; margin: 0 auto; padding: 0.9rem 1.5rem 0; font-size: 0.85rem; color: var(--muted); }
.m10-crumbs a { color: var(--muted); text-decoration: none; }
.m10-crumbs a:hover { color: var(--gold); }

/* ---------- chapter layout: sticky contents + content ---------- */
.m10-layout { max-width: 1180px; margin: 0 auto; padding: 2rem 1.5rem 3rem; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.5rem; }
.m10-toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; font-size: 0.88rem; padding-right: 0.5rem; }
.m10-toc h4 { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem; }
.m10-toc a { display: block; color: var(--muted); text-decoration: none; padding: 0.32rem 0 0.32rem 0.75rem; border-left: 2px solid var(--border-soft); line-height: 1.35; }
.m10-toc a:hover { color: var(--text); }
.m10-toc a.on { color: var(--gold); border-left-color: var(--gold); }
.m10-toc .m10-toc-sub { padding-left: 1.4rem; font-size: 0.82rem; }
.m10-content { min-width: 0; }
@media (max-width: 900px) {
  .m10-layout { grid-template-columns: 1fr; gap: 1rem; padding-top: 1.25rem; }
  .m10-toc { position: static; max-height: none; border: 1px solid var(--border-soft); border-radius: 12px; padding: 0.9rem 1rem; background: var(--surface); }
  .m10-toc-list { display: none; }
  .m10-toc.open .m10-toc-list { display: block; }
  .m10-toc h4 { margin: 0; cursor: pointer; display: flex; justify-content: space-between; }
  .m10-toc h4::after { content: "▾"; }
}

/* ---------- section blocks ---------- */
.m10-block { margin-bottom: 2.75rem; scroll-margin-top: 90px; }
.m10-label { color: var(--gold); text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.12em; font-weight: 800; margin-bottom: 0.5rem; }
.m10-block > h2 { font-size: 1.5rem; margin-bottom: 1rem; line-height: 1.3; }
.m10-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }

/* ---------- lesson typography ---------- */
.m10-lesson { font-size: 1.02rem; }
.m10-lesson h2 { font-size: 1.45rem; margin: 2.4rem 0 0.9rem; padding-top: 0.4rem; scroll-margin-top: 90px; line-height: 1.3; }
.m10-lesson h2 .m10-ref-tag { font-size: 0.72rem; }
.m10-lesson h3 { font-size: 1.13rem; margin: 1.6rem 0 0.6rem; color: #f5d27a; scroll-margin-top: 90px; }
.m10-lesson p { margin: 0 0 0.95rem; }
.m10-lesson ul, .m10-lesson ol { margin: 0 0 1rem 1.3rem; }
.m10-lesson li { margin: 0.28rem 0; }
.m10-lesson strong { color: #fff; }
.m10-lesson code { background: rgba(148,163,184,0.12); padding: 0.05rem 0.35rem; border-radius: 5px; font-size: 0.92em; }
.m10-ref-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; color: var(--blue); background: rgba(96,165,250,0.1); border: 1px solid rgba(96,165,250,0.3); padding: 0.05rem 0.45rem; border-radius: 6px; vertical-align: middle; white-space: nowrap; }
.m10-table-wrap { overflow-x: auto; margin: 0 0 1.2rem; border: 1px solid var(--border-soft); border-radius: 12px; }
.m10-lesson table { border-collapse: collapse; width: 100%; font-size: 0.93rem; min-width: 520px; }
.m10-lesson th { background: rgba(251,191,36,0.08); color: var(--gold); text-align: left; font-weight: 700; }
.m10-lesson th, .m10-lesson td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.m10-lesson tr:last-child td { border-bottom: 0; }
.m10-note { border-radius: 12px; padding: 1rem 1.15rem 1rem 3rem; margin: 1.1rem 0 1.3rem; position: relative; font-size: 0.97rem; border: 1px solid; }
.m10-note::before { position: absolute; left: 1rem; top: 0.95rem; font-size: 1.15rem; }
.m10-note p:last-child, .m10-note ul:last-child { margin-bottom: 0; }
.m10-note b.t { display: block; margin-bottom: 0.25rem; letter-spacing: 0.02em; }
.m10-note.tip { background: rgba(52,211,153,0.07); border-color: rgba(52,211,153,0.35); }
.m10-note.tip::before { content: "💡"; }
.m10-note.tip b.t { color: var(--green); }
.m10-note.trap { background: rgba(248,113,113,0.07); border-color: rgba(248,113,113,0.35); }
.m10-note.trap::before { content: "⚠️"; }
.m10-note.trap b.t { color: var(--red); }
.m10-note.key { background: rgba(251,191,36,0.07); border-color: rgba(251,191,36,0.4); }
.m10-note.key::before { content: "📌"; }
.m10-note.key b.t { color: var(--gold); }
.m10-note.info { background: rgba(96,165,250,0.07); border-color: rgba(96,165,250,0.35); }
.m10-note.info::before { content: "ℹ️"; }
.m10-note.info b.t { color: var(--blue); }
.m10-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.8rem; margin: 0.4rem 0 1.4rem; }
.m10-kv div { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 0.85rem 1rem; }
.m10-kv b { display: block; font-size: 1.45rem; color: var(--gold); line-height: 1.15; }
.m10-kv span { color: var(--muted); font-size: 0.85rem; }
.m10-steps { counter-reset: st; list-style: none; margin-left: 0 !important; }
.m10-steps li { counter-increment: st; position: relative; padding: 0.15rem 0 0.6rem 2.4rem; }
.m10-steps li::before { content: counter(st); position: absolute; left: 0; top: 0.1rem; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: rgba(251,191,36,0.14); border: 1px solid var(--gold); color: var(--gold); font-weight: 800; font-size: 0.8rem; display: grid; place-items: center; }

/* ---------- explainer "video" player ---------- */
.m10-player { background: #000; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.m10-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(ellipse at 20% 15%, #16254a 0%, transparent 55%), radial-gradient(ellipse at 85% 90%, #2a1a4a 0%, transparent 55%), #070d1c; color: #fff; user-select: none; }
.m10-stage::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 40px 40px; pointer-events: 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-player:fullscreen .m10-slide { font-size: clamp(12px, 1.6vw, 26px); }
.m10-slide .s-kicker { color: var(--gold); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78em; margin-bottom: 0.6em; }
.m10-slide .s-title { font-size: 2.05em; font-weight: 800; line-height: 1.15; margin-bottom: 0.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: 0.25em; }
.s-anim { opacity: 0; transform: translateY(0.9em); transition: opacity 0.6s ease, transform 0.6s ease; }
.s-anim.in { opacity: 1; transform: none; }
.s-bullets { list-style: none; display: grid; gap: 0.62em; }
.s-bullets li { display: flex; gap: 0.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: 0.6em; padding: 0.55em 0.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: 0.7em; }
.s-grid .c { background: rgba(255,255,255,0.05); border: 1px solid rgba(251,191,36,0.25); border-radius: 0.7em; padding: 0.8em 0.9em; }
.s-grid .c .h { color: var(--gold); font-weight: 800; font-size: 1.12em; margin-bottom: 0.25em; }
.s-grid .c .d { color: #d7deea; font-size: 0.93em; line-height: 1.35; }
.s-pyr { display: flex; flex-direction: column; align-items: center; gap: 0.35em; }
.s-pyr .lv { text-align: center; border-radius: 0.5em; padding: 0.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: 0.78em; }
.s-flow { display: flex; align-items: stretch; gap: 0.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: 0.7em; padding: 0.7em; text-align: center; font-size: 0.95em; display: flex; flex-direction: column; justify-content: center; }
.s-flow .f b { display: block; color: #93c5fd; font-size: 1.05em; margin-bottom: 0.2em; }
.s-flow .ar { align-self: center; color: var(--gold); font-size: 1.5em; }
.s-stat { display: grid; gap: 0.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: 0.8em; padding: 0.9em 0.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: 0.95em; }
.s-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.s-compare .col { border-radius: 0.8em; padding: 0.9em 1em; border: 1px solid; }
.s-compare .col h5 { font-size: 1.2em; margin-bottom: 0.5em; }
.s-compare .col ul { list-style: none; display: grid; gap: 0.4em; }
.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: 0.5em; }
.s-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 1.05em; height: 2px; background: linear-gradient(90deg, var(--gold), var(--blue)); opacity: 0.6; }
.s-timeline .tl { flex: 1; text-align: center; padding: 0 0.35em; position: relative; }
.s-timeline .tl .dot { width: 2.1em; height: 2.1em; border-radius: 50%; margin: 0 auto 0.5em; background: #0b1426; border: 2px solid var(--gold); display: grid; place-items: center; font-weight: 800; color: var(--gold); font-size: 0.9em; position: relative; }
.s-timeline .tl b { display: block; font-size: 1em; color: #fff; }
.s-timeline .tl span { color: #cbd5e1; font-size: 0.85em; line-height: 1.3; display: block; }
.s-quote { font-size: 1.55em; line-height: 1.35; font-weight: 700; border-left: 0.2em solid var(--gold); padding-left: 0.8em; max-width: 88%; }
.s-quote small { display: block; font-size: 0.55em; color: #94a3b8; font-weight: 400; margin-top: 0.6em; }
.m10-caption { background: #050a14; color: #e2e8f0; padding: 0.75rem 1.1rem; font-size: 0.96rem; line-height: 1.5; min-height: 4.6em; border-top: 1px solid var(--border-soft); }
.m10-caption .cc { color: var(--gold); font-weight: 800; font-size: 0.7rem; letter-spacing: 0.1em; margin-right: 0.5rem; border: 1px solid var(--gold); border-radius: 4px; padding: 0 0.3rem; vertical-align: 1px; }
.m10-controls { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.8rem; 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: 8px; padding: 0.42rem 0.7rem; font-size: 0.88rem; cursor: pointer; font-family: inherit; }
.m10-controls button:hover { border-color: var(--gold); }
.m10-controls .play { background: var(--gold); color: #111; border-color: var(--gold); font-weight: 800; min-width: 5.6rem; }
.m10-controls .grow { flex: 1; min-width: 120px; }
.m10-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; cursor: pointer; }
.m10-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), #f59e0b); transition: width 0.3s; }
.m10-count { color: var(--muted); font-size: 0.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: 5.2rem; height: 5.2rem; border-radius: 50%; background: var(--gold); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(251,191,36,0.18), 0 10px 40px rgba(0,0,0,0.5); }
.m10-bigplay span::before { content: ""; border-left: 1.55rem solid #111; border-top: 0.95rem solid transparent; border-bottom: 0.95rem solid transparent; margin-left: 0.35rem; }
.m10-player-note { color: var(--muted); font-size: 0.82rem; margin-top: 0.6rem; }
.m10-stage .s-progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold); z-index: 3; transition: width 0.25s linear; }

/* ---------- mind map ---------- */
.m10-mindmap { height: 560px; border: 1px solid var(--border); border-radius: var(--radius); background: radial-gradient(ellipse at 30% 20%, #131d3d 0%, transparent 60%), #060b18; 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: 8px; 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: #7c89b8; 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: 0.55; }
.mm-node rect { rx: 13; ry: 13; 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 auto; }
.m10-fcard { perspective: 1200px; height: 260px; cursor: pointer; }
.m10-fcard .in { position: relative; width: 100%; height: 100%; transition: transform 0.55s; 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: 1.6rem; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border: 1px solid var(--border); }
.m10-fcard .front { background: linear-gradient(145deg, #0f1a2e, #0a1220); font-size: 1.2rem; font-weight: 700; }
.m10-fcard .back { background: linear-gradient(145deg, #1b1a0e, #12110a); transform: rotateY(180deg); font-size: 1.02rem; border-color: rgba(251,191,36,0.4); }
.m10-fcard .face small { position: absolute; top: 0.8rem; left: 1rem; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.m10-fnav { display: flex; justify-content: center; align-items: center; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.m10-btn { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border-soft); border-radius: 10px; padding: 0.55rem 1rem; font-size: 0.92rem; cursor: pointer; font-family: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.m10-btn:hover { border-color: var(--gold); }
.m10-btn.gold { background: var(--gold); color: #111; border-color: var(--gold); font-weight: 800; }
.m10-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- quiz ---------- */
.m10-quiz .q-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 0.8rem; gap: 1rem; flex-wrap: wrap; }
.m10-quiz .q-prog { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; min-width: 120px; }
.m10-quiz .q-prog i { display: block; height: 100%; background: var(--gold); transition: width 0.3s; }
.m10-quiz .q-text { font-size: 1.12rem; font-weight: 650; margin-bottom: 1rem; line-height: 1.45; }
.m10-quiz .q-opts { display: grid; gap: 0.6rem; }
.m10-quiz .q-opt { text-align: left; background: var(--surface-2); color: var(--text); border: 1px solid var(--border-soft); border-radius: 12px; padding: 0.8rem 1rem 0.8rem 3rem; font-size: 0.99rem; cursor: pointer; position: relative; font-family: inherit; line-height: 1.4; }
.m10-quiz .q-opt::before { content: attr(data-k); position: absolute; left: 0.9rem; top: 0.72rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--muted); display: grid; place-items: center; font-size: 0.78rem; font-weight: 800; color: var(--muted); }
.m10-quiz .q-opt:hover:not(:disabled) { border-color: var(--gold); }
.m10-quiz .q-opt.sel { border-color: var(--blue); background: rgba(96,165,250,0.08); }
.m10-quiz .q-opt.ok { border-color: var(--green); background: rgba(52,211,153,0.1); }
.m10-quiz .q-opt.ok::before { content: "✓"; border-color: var(--green); color: var(--green); }
.m10-quiz .q-opt.bad { border-color: var(--red); background: rgba(248,113,113,0.1); }
.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: 1rem; padding: 0.9rem 1rem; border-radius: 12px; background: rgba(96,165,250,0.07); border: 1px solid rgba(96,165,250,0.3); font-size: 0.95rem; }
.m10-quiz .q-exp .r { display: block; margin-top: 0.4rem; color: var(--blue); font-size: 0.82rem; font-weight: 700; }
.m10-quiz .q-foot { display: flex; justify-content: space-between; margin-top: 1rem; gap: 0.6rem; flex-wrap: wrap; }
.m10-result { text-align: center; padding: 1rem 0; }
.m10-result .big { font-size: 3rem; font-weight: 900; line-height: 1; }
.m10-result .big.pass { color: var(--green); }
.m10-result .big.fail { color: var(--red); }
.m10-review { margin-top: 1.4rem; text-align: left; display: grid; gap: 0.8rem; }
.m10-review .rv { background: var(--surface-2); border: 1px solid var(--border-soft); border-left: 3px solid var(--red); border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.93rem; }
.m10-review .rv.ok { border-left-color: var(--green); }
.m10-review .rv .a { color: var(--green); font-weight: 700; }
.m10-review .rv .y { color: var(--red); }

/* ---------- source documents ---------- */
.m10-docs { display: grid; gap: 0.6rem; }
.m10-doc { display: flex; gap: 0.9rem; align-items: center; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; padding: 0.75rem 1rem; text-decoration: none; color: var(--text); transition: border-color 0.2s; }
.m10-doc:hover { border-color: var(--gold); }
.m10-doc .ic { font-size: 1.4rem; }
.m10-doc .t { font-weight: 650; font-size: 0.95rem; line-height: 1.3; }
.m10-doc .s { color: var(--muted); font-size: 0.8rem; }
.m10-doc .go { margin-left: auto; color: var(--gold); font-size: 0.8rem; white-space: nowrap; }

/* ---------- chapter nav + completion ---------- */
.m10-done { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(96,165,250,0.06)); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.m10-done p { color: var(--muted); font-size: 0.93rem; }
.m10-chnav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.m10-chnav a { flex: 1; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none; transition: all 0.2s; }
.m10-chnav a:hover { border-color: var(--gold); transform: translateY(-2px); }
.m10-chnav .l { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.m10-chnav .t { color: var(--gold); font-weight: 650; }
.m10-chnav a.next { text-align: right; }
.m10-readbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), var(--blue)); z-index: 200; }

/* ---------- course index ---------- */
.m10-wrap { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }
.m10-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.25rem; }
.m10-chcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: all 0.2s; position: relative; }
.m10-chcard:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(251,191,36,0.08); }
.m10-chcard .n { color: var(--gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; margin-bottom: 0.35rem; }
.m10-chcard .ti { font-size: 1.22rem; font-weight: 750; margin-bottom: 0.55rem; line-height: 1.3; }
.m10-chcard .su { color: var(--muted); font-size: 0.92rem; flex-grow: 1; margin-bottom: 1rem; }
.m10-chcard .me { display: flex; gap: 0.8rem; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--border-soft); padding-top: 0.8rem; flex-wrap: wrap; }
.m10-chcard .st { position: absolute; top: 1.1rem; right: 1.1rem; font-size: 0.72rem; font-weight: 800; padding: 0.15rem 0.55rem; border-radius: 99px; border: 1px solid var(--border-soft); color: var(--muted); }
.m10-chcard .st.read { color: var(--blue); border-color: rgba(96,165,250,0.5); }
.m10-chcard .st.pass { color: var(--green); border-color: rgba(52,211,153,0.5); }
.m10-overall { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.6rem; flex-wrap: wrap; }
.m10-overall .bar { flex: 1; height: 10px; background: rgba(255,255,255,0.07); border-radius: 99px; overflow: hidden; min-width: 200px; }
.m10-overall .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--green)); width: 0; transition: width 0.6s; }
.m10-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1rem 0 2.5rem; }
.m10-tool { background: linear-gradient(145deg, #0f1a2e, #0a1220); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; text-decoration: none; color: var(--text); transition: all 0.2s; }
.m10-tool:hover { border-color: var(--gold); transform: translateY(-3px); }
.m10-tool .ic { font-size: 1.8rem; }
.m10-tool b { display: block; font-size: 1.08rem; margin: 0.35rem 0 0.25rem; }
.m10-tool span { color: var(--muted); font-size: 0.88rem; }
.m10-h2 { font-size: 1.45rem; margin: 0 0 1rem; }

/* ---------- mock exam ---------- */
.m10-exam-top { position: sticky; top: 66px; z-index: 50; background: rgba(4,8,15,0.96); border: 1px solid var(--border); border-radius: 12px; padding: 0.7rem 1rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.m10-timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.15rem; color: var(--gold); }
.m10-timer.low { color: var(--red); }
.m10-qmap { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.m10-qmap button { width: 2rem; height: 2rem; border-radius: 7px; border: 1px solid var(--border-soft); background: var(--surface-2); color: var(--muted); font-size: 0.75rem; cursor: pointer; font-family: inherit; }
.m10-qmap button.ans { background: rgba(96,165,250,0.18); color: #fff; border-color: rgba(96,165,250,0.5); }
.m10-qmap button.cur { outline: 2px solid var(--gold); }
.m10-qmap button.flag { border-color: var(--red); }
.m10-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.m10-choice label { display: block; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; padding: 1.1rem 1.2rem; cursor: pointer; }
.m10-choice input { margin-right: 0.5rem; accent-color: #fbbf24; }
.m10-choice label:has(input:checked) { border-color: var(--gold); background: rgba(251,191,36,0.06); }
.m10-choice small { display: block; color: var(--muted); margin-top: 0.3rem; }

/* ---------- cheat sheet ---------- */
.m10-sheet-group { margin-bottom: 2rem; }
.m10-sheet-group h2 { font-size: 1.2rem; color: var(--gold); margin-bottom: 0.7rem; }
.m10-filter { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 12px; padding: 0.75rem 1rem; font-size: 1rem; margin-bottom: 1.5rem; font-family: inherit; }

@media (max-width: 640px) {
  header.site { padding: 0.8rem 1rem; }
  .nav-links a { padding: 0.35rem 0.6rem; font-size: 0.82rem; }
  .m10-hero { padding: 2.4rem 1rem 2rem; }
  .m10-caption { font-size: 0.88rem; }
  .m10-controls .hide-sm { display: none; }
  .s-compare { grid-template-columns: 1fr; }
  .m10-fcard { height: 300px; }
}
@media print {
  header.site, footer.site, .m10-toc, .m10-player, .m10-mindmap, .m10-quiz, .m10-flash, .m10-chnav, .m10-done, .m10-readbar, #m10-media, #m10-practice { display: none !important; }
  body { background: #fff; color: #000; }
  .m10-layout { display: block; }
  .m10-lesson strong, .m10-lesson h3 { color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  .s-anim { transition: none; }
  .m10-fcard .in { transition: none; }
}
