/* Leadstrium Course Studio 1.4.0 — semantic lesson design system.
 * MasterStudy owns player geometry, navigation, curriculum, discussions and mode.
 * Every selector below is scoped to Studio-rendered lesson content except the one
 * dark-mode ancestry selector used only to inherit the host's chosen appearance.
 */
.lcsd{
  --lcsd-accent:#7c3aed;
  --lcsd-accent-2:#d59b25;
  --lcsd-orientation:#7c3aed;
  --lcsd-objective:#c78a15;
  --lcsd-principle:#16856f;
  --lcsd-application:#078b8d;
  --lcsd-authority:#2f67c7;
  --lcsd-attention:#b97316;
  --lcsd-critical:#c23a45;
  --lcsd-reflection:#5b5bd6;
  --lcsd-recap:#6a55c8;
  --lcsd-success:#2f8a58;
  --lcsd-surface:color-mix(in srgb,currentColor 3.5%,transparent);
  --lcsd-surface-strong:color-mix(in srgb,currentColor 6%,transparent);
  --lcsd-line:color-mix(in srgb,currentColor 12%,transparent);
  --lcsd-muted:color-mix(in srgb,currentColor 68%,transparent);
  --lcsd-shadow:0 18px 48px color-mix(in srgb,#000 8%,transparent);
  --lcsd-radius:18px;
  --lcsd-reading:72ch;
  width:100%;max-width:100%;color:inherit;font:inherit;line-height:1.72;
}
.lcsd *{box-sizing:border-box}
.lcsd .lcsd-reading,.lcsd .lcsd-module,.lcsd .lcsd-quote{max-width:var(--lcsd-reading)}
.lcsd .lcsd-reading{margin:0 0 1.25rem}
.lcsd .lcsd-reading>h2{font-size:clamp(1.38rem,2vw,1.72rem);line-height:1.18;margin:2.2rem 0 .72rem;letter-spacing:-.022em;text-wrap:balance}
.lcsd .lcsd-reading>h3{font-size:1.2rem;margin:1.65rem 0 .55rem}
.lcsd .lcsd-reading p{margin:0 0 1rem}
.lcsd .lcsd-reading ul,.lcsd .lcsd-reading ol{margin:.3rem 0 1.2rem;padding-left:1.4rem}
.lcsd .lcsd-reading li{margin:.42rem 0}

.lcsd-hero{width:100%;max-width:100%;margin:0 0 1.65rem;overflow:hidden;border:1px solid var(--lcsd-line);border-radius:calc(var(--lcsd-radius) + 3px);background:var(--lcsd-surface);box-shadow:0 12px 34px color-mix(in srgb,#000 5%,transparent)}
.lcsd-hero img{display:block;width:100%;height:auto;max-height:520px;object-fit:cover}
.lcsd-hero figcaption{padding:.72rem 1rem;border-top:1px solid var(--lcsd-line);font-size:.82rem;color:var(--lcsd-muted)}

.lcsd-module{--module-accent:var(--lcsd-accent);position:relative;margin:1.45rem 0;padding:1.18rem 1.25rem 1.22rem;border:1px solid color-mix(in srgb,var(--module-accent) 22%,var(--lcsd-line));border-radius:var(--lcsd-radius);background:linear-gradient(145deg,color-mix(in srgb,var(--module-accent) 7%,transparent),color-mix(in srgb,currentColor 2%,transparent) 72%);box-shadow:0 9px 30px color-mix(in srgb,#000 4%,transparent);overflow:hidden}
.lcsd-module::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--module-accent)}
.lcsd-module-kicker{display:flex;align-items:center;gap:.45rem;margin:0 0 .48rem;color:var(--module-accent);font-size:.72rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.lcsd-module-kicker::before{content:"";width:7px;height:7px;border-radius:999px;background:currentColor;box-shadow:0 0 0 4px color-mix(in srgb,currentColor 12%,transparent)}
.lcsd-module h2{margin:0 0 .62rem;font-size:clamp(1.18rem,1.8vw,1.45rem);line-height:1.2;letter-spacing:-.018em;color:inherit}
.lcsd-module h3{margin:1rem 0 .4rem;font-size:1rem}
.lcsd-module p:last-child,.lcsd-module ul:last-child,.lcsd-module ol:last-child{margin-bottom:0}
.lcsd-module-body>p:first-child{margin-top:0}
.lcsd-module-intro{color:var(--lcsd-muted);margin:.05rem 0 .9rem!important}

.lcsd-module-orientation{--module-accent:var(--lcsd-orientation)}
.lcsd-module-learning-objectives{--module-accent:var(--lcsd-objective);padding:1.28rem 1.3rem}
.lcsd-objectives{list-style:none!important;counter-reset:lcsobj;margin:.9rem 0 0!important;padding:0!important;display:grid;gap:.6rem;max-width:none!important}
.lcsd-objectives li{counter-increment:lcsobj;display:grid;grid-template-columns:2.25rem 1fr;align-items:start;gap:.75rem;margin:0!important;padding:.72rem .8rem;border:1px solid color-mix(in srgb,var(--module-accent) 16%,var(--lcsd-line));border-radius:12px;background:color-mix(in srgb,currentColor 3%,transparent)}
.lcsd-objectives li::before{content:counter(lcsobj,decimal-leading-zero);display:flex;align-items:center;justify-content:center;width:2.1rem;height:2.1rem;border-radius:10px;background:color-mix(in srgb,var(--module-accent) 14%,transparent);color:var(--module-accent);font-size:.72rem;font-weight:850;letter-spacing:.04em}
.lcsd-objectives li span{padding-top:.27rem}

.lcsd-module-key-principle{--module-accent:var(--lcsd-principle)}
.lcsd-module-definition{--module-accent:#697386}
.lcsd-module-scenario,.lcsd-module-practice-task,.lcsd-module-worked-example,.lcsd-module-checklist,.lcsd-module-process-steps{--module-accent:var(--lcsd-application)}
.lcsd-prompt{margin:.9rem 0 0;padding:.78rem .9rem;border-radius:12px;background:color-mix(in srgb,var(--module-accent) 9%,transparent);border:1px dashed color-mix(in srgb,var(--module-accent) 32%,transparent)}
.lcsd-prompt>strong{display:block;margin-bottom:.25rem;color:var(--module-accent)}

.lcsd-module-law-standard,.lcsd-module-evidence{--module-accent:var(--lcsd-authority)}
.lcsd-status-note{display:inline-block;margin:0 0 .6rem!important;padding:.32rem .55rem;border-radius:999px;background:color-mix(in srgb,var(--module-accent) 12%,transparent);color:var(--module-accent);font-size:.78rem}
.lcsd-source{margin-top:.9rem!important;padding-top:.75rem;border-top:1px solid var(--lcsd-line);font-size:.86rem;color:var(--lcsd-muted)}

.lcsd-module-caution{--module-accent:var(--lcsd-attention)}
.lcsd-module-caution.is-critical{--module-accent:var(--lcsd-critical)}
.lcsd-module-learning-tip{--module-accent:#8a6d19}
.lcsd-module-reflection{--module-accent:var(--lcsd-reflection)}
.lcsd-module-quick-check{--module-accent:#3478d4}
.lcsd-module-quick-recap{--module-accent:var(--lcsd-recap)}
.lcsd-module-carry-forward{--module-accent:var(--lcsd-success);background:linear-gradient(145deg,color-mix(in srgb,var(--module-accent) 11%,transparent),color-mix(in srgb,currentColor 2%,transparent) 75%)}
.lcsd-module-related-concepts,.lcsd-module-resources{--module-accent:#6d7480}

.lcsd-module-learning-aid{--module-accent:#7257c8;max-width:100%;padding:1.15rem}
.lcsd-module-learning-aid figure{margin:.85rem 0 0;width:100%;overflow:hidden;border:1px solid var(--lcsd-line);border-radius:14px;background:color-mix(in srgb,currentColor 3%,transparent)}
.lcsd-module-learning-aid figure img{display:block;width:100%;height:auto;object-fit:contain;max-height:620px;margin:auto}
.lcsd-module-learning-aid figcaption{padding:.66rem .8rem;border-top:1px solid var(--lcsd-line);font-size:.82rem;color:var(--lcsd-muted)}
.lcsd-notice{margin:.75rem 0 0;padding:.78rem .86rem;border-radius:12px;background:color-mix(in srgb,var(--module-accent) 8%,transparent)}
.lcsd-notice>strong{display:block;margin-bottom:.18rem;color:var(--module-accent)}

.lcsd-module-quick-check details{margin:.9rem 0 0;border-top:1px solid var(--lcsd-line);padding-top:.7rem}
.lcsd-module-quick-check summary{cursor:pointer;font-weight:700;color:var(--module-accent)}
.lcsd-question{font-size:1.02rem}
.lcsd-options{margin:.6rem 0 0!important}

.lcsd-quote{margin:1.55rem 0;padding:1.1rem 1.25rem 1.05rem;border-left:4px solid var(--lcsd-accent);border-radius:0 var(--lcsd-radius) var(--lcsd-radius) 0;background:color-mix(in srgb,var(--lcsd-accent) 7%,transparent)}
.lcsd-quote p{margin:0;font-size:1.08rem;font-weight:650;line-height:1.6}
.lcsd-quote cite{display:block;margin-top:.5rem;font-size:.82rem;color:var(--lcsd-muted);font-style:normal}

/* Theme personalities. Content semantics remain constant; only the design tokens change. */
.lcsd-theme-academic-luxe{--lcsd-accent:#7c3aed;--lcsd-accent-2:#c88d1c;--lcsd-orientation:#7c3aed;--lcsd-objective:#bd8116;--lcsd-principle:#18806d;--lcsd-application:#078789;--lcsd-authority:#315eb0;--lcsd-recap:#6750c5;--lcsd-radius:18px}
.lcsd-theme-modern-scholar{--lcsd-accent:#314b6b;--lcsd-accent-2:#9b6a3a;--lcsd-orientation:#405d7c;--lcsd-objective:#9a6a38;--lcsd-principle:#426c61;--lcsd-application:#4f6d77;--lcsd-authority:#355984;--lcsd-recap:#59677a;--lcsd-radius:11px;--lcsd-shadow:none}
.lcsd-theme-clinical-intelligence{--lcsd-accent:#0b7f89;--lcsd-accent-2:#4c89c6;--lcsd-orientation:#0d7f8b;--lcsd-objective:#3874b9;--lcsd-principle:#12836f;--lcsd-application:#0c8b91;--lcsd-authority:#316bb4;--lcsd-recap:#4f70b2;--lcsd-radius:15px}
.lcsd-theme-applied-professional{--lcsd-accent:#315f9d;--lcsd-accent-2:#d18021;--lcsd-orientation:#315f9d;--lcsd-objective:#c27620;--lcsd-principle:#2b7b66;--lcsd-application:#25788a;--lcsd-authority:#305f9f;--lcsd-recap:#5c63a7;--lcsd-radius:13px}
.lcsd-theme-executive-editorial{--lcsd-accent:#6d55c7;--lcsd-accent-2:#c49a38;--lcsd-orientation:#5d4ba9;--lcsd-objective:#aa8130;--lcsd-principle:#357665;--lcsd-application:#3e6f76;--lcsd-authority:#3a5e95;--lcsd-recap:#5c50a4;--lcsd-radius:12px;--lcsd-shadow:0 16px 45px color-mix(in srgb,#000 7%,transparent)}

/* Respect MasterStudy's explicit dark mode while changing only Studio descendants. */
.masterstudy-course-player-content_dark-mode .lcsd{
  --lcsd-surface:rgba(255,255,255,.035);
  --lcsd-surface-strong:rgba(255,255,255,.06);
  --lcsd-line:rgba(255,255,255,.12);
  --lcsd-muted:rgba(255,255,255,.66);
  --lcsd-shadow:0 18px 48px rgba(0,0,0,.18);
}
.masterstudy-course-player-content_dark-mode .lcsd-module{background:linear-gradient(145deg,color-mix(in srgb,var(--module-accent) 13%,transparent),rgba(255,255,255,.025) 76%)}
.masterstudy-course-player-content_dark-mode .lcsd-objectives li{background:rgba(255,255,255,.035)}

@media (max-width:640px){
  .lcsd{line-height:1.66}
  .lcsd .lcsd-reading,.lcsd .lcsd-module,.lcsd .lcsd-quote{max-width:100%}
  .lcsd-module{padding:1rem 1rem 1.05rem;border-radius:14px}
  .lcsd-objectives li{grid-template-columns:2rem 1fr;padding:.65rem .7rem}
  .lcsd-objectives li::before{width:1.9rem;height:1.9rem}
  .lcsd-hero{border-radius:14px}
}
@media (prefers-reduced-motion:reduce){.lcsd *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
