/* Shared study surfaces across all four courses. */
:root{--study-radius:20px;--study-border:var(--line);--study-rule:#eaf4ef;--study-example:#edf3fa;--study-tip:#fbf4e5}
body:not(.portal-page) main{max-width:1230px}
#app .section-top{margin-bottom:28px;gap:24px}
#app .section-top h1{font-size:clamp(34px,4vw,48px);line-height:1.15;letter-spacing:-1.2px;margin:14px 0 16px}
#app .section-top .muted{font-size:15px;line-height:1.75;max-width:65ch}
#app .choice{border-radius:var(--study-radius);padding:30px;line-height:1.7}
#app .choice h2{font-size:clamp(27px,3vw,35px);line-height:1.25}
#app .choice p{font-size:14px;opacity:1}
#app .choice .number{opacity:1;font-size:10px;letter-spacing:1.8px}
.layout{grid-template-columns:280px minmax(0,1fr);gap:26px}
.layout>aside{position:sticky;top:24px;max-height:calc(100dvh - 48px);overscroll-behavior:contain;scrollbar-width:thin}
.list button{border-radius:12px;padding:17px 16px;font-size:14px;line-height:1.55;box-shadow:none}
.list small{font-size:9px;line-height:1.6;letter-spacing:1px}
.list button.selected{border-left:3px solid var(--green)}
#detail.panel{min-width:0;border-radius:var(--study-radius);padding:clamp(24px,3vw,42px);box-shadow:0 12px 35px #102d4005;scroll-margin-top:28px}
#detail>h2{font-size:clamp(27px,3vw,37px);line-height:1.3;letter-spacing:-.6px;margin:20px 0 28px;overflow-wrap:anywhere}
#detail :is(.article,.hr-body){max-width:69ch;margin-inline:auto;line-height:1.9}
#detail :is(.article,.hr-body) p{margin:0 0 1.25em}
#detail :is(.article,.hr-body) h3{margin:1.8em 0 .8em;line-height:1.4;font-family:Georgia,serif}
#detail :is(.article,.hr-body) h4{line-height:1.5;margin:1.7em 0 .7em}
.bk-callout-rule,.bk-callout-example,.bk-callout-tip{padding:18px 22px;border-radius:12px;border-left:3px solid #3a8b71;background:var(--study-rule)}
.bk-callout-example{background:var(--study-example);border-left-color:#5682a7}
.bk-callout-tip{background:var(--study-tip);border-left-color:#c29949}
#detail :is(.topic-example,.hr-example,.topic-tip,.hr-tip){padding:22px;border-radius:12px;margin:24px 0;line-height:1.85}
#detail :is(.topic-example,.hr-example){background:var(--study-example);border:0;border-left:3px solid #5682a7}
#detail :is(.topic-tip,.hr-tip){background:var(--study-tip);border:0;border-left:3px solid #c29949}
#detail :is(.case-facts,.event){font-size:17px;line-height:1.85;padding:24px;border-radius:14px;background:var(--surface-soft);border:1px solid var(--line);border-left:3px solid #5d8e84;margin:24px 0;white-space:pre-line}
#detail :is(.case-questions,.question){line-height:1.8;font-size:16px}
#detail .case-questions{padding:20px 24px 20px 46px;background:var(--surface-soft);border-radius:14px}
#detail .case-questions li+li{margin-top:14px}
#detail .question label{line-height:1.8}
#detail textarea{display:block;width:100%;min-height:145px;max-height:65dvh;resize:vertical;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px;font-size:16px;line-height:1.7;color:var(--ink)}
#detail :is(.miras-answer-label,label[for=practice-answer]){display:block;font-size:13px;font-weight:650;margin:26px 0 12px}
#detail :is(.solution,.miras-solution,.quiz-feedback){border:1px solid #bad8cc;border-radius:16px;background:var(--study-rule);padding:26px;margin-top:25px;line-height:1.85;animation:bk-answer-in .26s ease-out both}
#detail :is(.solution,.miras-solution) h3{font-size:20px;margin:24px 0 12px;line-height:1.4}
#detail :is(.solution,.miras-solution) p{font-size:16px;line-height:1.85}
#detail :is(.source-note,.basis){border-radius:10px;padding:15px 18px;line-height:1.8;font-size:13px;background:var(--surface-soft);color:var(--ink);border:1px solid var(--line)}
#detail .quiz-stem{font-family:inherit;font-size:clamp(21px,2.3vw,27px);font-weight:650;line-height:1.6;letter-spacing:-.3px}
.quiz-options{display:grid;gap:12px;margin:26px 0}
#detail .quiz-option{display:flex;align-items:flex-start;gap:15px;width:100%;text-align:left;padding:18px 20px;border-radius:13px;background:var(--surface);border:1px solid var(--line);font-size:16px;line-height:1.65;color:var(--ink);box-shadow:none;min-height:62px}
.quiz-option .letter{display:grid;place-items:center;min-width:30px;height:30px;border-radius:9px;background:var(--surface-soft);font-size:13px;font-weight:750}
#detail .quiz-option.selected{background:#edf5f2;border-color:#438b78;box-shadow:inset 3px 0 #438b78}
#detail .quiz-option.correct{background:#e5f3e9;border:2px solid #3e8560;opacity:1}
#detail .quiz-option.wrong{background:#faecef;border:2px solid #b36375;opacity:1}
#detail .quiz-option:disabled{opacity:1;cursor:default}
#detail .quiz-feedback.incorrect{background:#fcf0f1;border-color:#d5a5b0}
#detail .quiz-feedback h3{font-family:inherit;font-size:20px;line-height:1.5}
#detail .quiz-feedback p{font-size:16px;line-height:1.8}
.bk-answer-label{display:inline-flex;gap:6px;font-size:11px;font-weight:700;color:var(--green);letter-spacing:.7px;margin-bottom:14px;text-transform:uppercase}
#app :is(button,.button){min-height:44px;border-radius:10px}
.bk-inline-nav{display:flex!important;align-items:center;justify-content:space-between;gap:12px;margin-top:32px;padding-top:22px;border-top:1px solid var(--line)}
.bk-inline-nav button{min-height:48px;max-width:46%;line-height:1.4}
.bk-outline-toggle,.bk-mobile-nav{display:none}
.bk-resume{display:flex;align-items:center;gap:24px;justify-content:space-between;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--green);border-radius:18px;padding:26px 30px;margin:26px 0 36px;box-shadow:0 12px 35px #102d4007}
.bk-resume-copy{min-width:0}.bk-resume .eyebrow{font-size:9px;letter-spacing:1.7px}.bk-resume h2{font:27px/1.35 Georgia,serif;margin:10px 0;overflow-wrap:anywhere}.bk-resume p{font-size:13px;line-height:1.7;color:var(--text-soft);margin:0}.bk-resume .button{white-space:nowrap;min-height:46px;display:flex;align-items:center;justify-content:center;gap:12px}
.bk-resume-empty{border-left-color:#b5c9c3;background:var(--surface-soft)}
.bk-resume-empty h2{font-size:23px}
body.bk-study-active .bk-ai-paused{display:none!important}
html[data-theme=dark]{--study-rule:#1d3c37;--study-example:#20384b;--study-tip:#3a3527}
html[data-theme=dark] .course-shell,html[data-theme=dark] .course-shortcuts{background:#182a38!important;border-color:#304453!important}
html[data-theme=dark] .course-shortcuts summary{color:#bce2d4!important}
html[data-theme=dark] .quick-links a{color:#d5eee4!important;background:#243d44!important;border-color:#46626a!important}
html[data-theme=dark] .quick-links a:hover{background:#31554f!important}
html[data-theme=dark] .course-cta,html[data-theme=dark] .course-cta span{color:#bce2d4!important}
html[data-theme=dark] .course-meta span{color:#bce2d4!important}
html[data-theme=dark] #detail :is(.solution,.miras-solution,.quiz-feedback){color:#e5ecee;border-color:#4b7165;background:var(--study-rule)}
html[data-theme=dark] #detail .quiz-option.selected{background:#234b49;border-color:#7dbeaa}
html[data-theme=dark] #detail .quiz-option.correct{background:#1b4437;border-color:#81c59e}
html[data-theme=dark] #detail .quiz-option.wrong,html[data-theme=dark] #detail .quiz-feedback.incorrect{background:#442f38;border-color:#c68d9b}
html[data-theme=dark] #detail .quiz-option .letter{background:#314b59;color:#e5ecee}
html[data-theme=dark] .solution strong{color:#bce2d4}
html[data-theme=dark] .exam-answer{border-color:#4b6572}
html[data-theme=dark] #detail :is(.topic-example,.hr-example){background:var(--study-example)!important}
html[data-theme=dark] #detail :is(.topic-tip,.hr-tip){background:var(--study-tip)!important}
html[data-theme=dark] .legal-nav a{color:#b3c9d4}
@keyframes bk-answer-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:760px){
  body:not(.portal-page) main{padding:26px 16px 45px}
  header{gap:12px!important;row-gap:12px!important;padding:16px!important;min-height:0!important;flex-direction:row!important;align-items:center!important}
  header .brand{font-size:15px!important;max-width:calc(100% - 100px)}
  header .brand-emblem{width:35px!important;height:39px!important}
  header .brand small{font-size:7px!important;letter-spacing:1px!important}
  header nav{order:3!important;flex-basis:100%;width:100%;margin:0!important;padding:0 0 3px!important;gap:5px!important;overflow-x:auto;scrollbar-width:none}
  header nav a{font-size:11px!important;min-height:40px;display:flex;align-items:center;padding:7px 10px!important;flex-shrink:0}
  .bk-utilities{margin-left:auto!important;gap:7px!important}.bk-utilities button{width:38px;height:38px;min-height:38px;padding:8px!important}.bk-utilities button span,.bk-utilities kbd{display:none!important}
  .lang-switch{margin-left:auto}
  .hr-header nav{flex-basis:calc(100% - 124px)!important;width:calc(100% - 124px)!important;min-width:0;justify-content:flex-start;flex-wrap:nowrap}
  .hr-header .language{order:3;flex-shrink:0;margin-left:auto;align-self:center}
  .hr-header .language button{min-height:36px}
  #app .section-top{margin-bottom:22px;gap:14px}#app .section-top h1{font-size:34px}#app .section-top .muted{font-size:14px}
  .layout{display:flex;flex-direction:column;gap:12px}.layout>*{width:100%;min-width:0}
  .bk-outline-toggle{display:flex!important;align-items:center;justify-content:space-between;text-align:left;gap:14px;background:var(--surface)!important;border:1px solid var(--line)!important;padding:14px 16px!important;font-size:13px!important}
  .bk-outline-toggle span:first-child{min-width:0}.bk-outline-toggle small{display:block;color:var(--text-soft);font-size:10px;margin-bottom:4px}.bk-outline-toggle strong{font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70vw}.bk-outline-toggle .bk-chevron{font-size:20px;flex-shrink:0}
  .layout>aside.bk-outline-list{display:none!important;position:static;max-height:300px;margin:0 0 8px}
  .layout.bk-outline-open>aside.bk-outline-list{display:grid!important}
  #detail.panel{padding:24px 20px;border-radius:17px;scroll-margin-top:16px}
  #detail>h2{font-size:28px;margin-bottom:24px}
  #detail :is(.article,.hr-body) p{line-height:1.85!important}
  #detail :is(.event,.case-facts){padding:18px;font-size:16px}
  #detail .case-questions{padding:18px 18px 18px 36px;font-size:16px}
  #detail :is(.solution,.miras-solution,.quiz-feedback){padding:20px 18px}
  #detail .quiz-option{font-size:15px;padding:16px 14px;gap:12px}
  .bk-callout-rule,.bk-callout-example,.bk-callout-tip{padding:16px 18px}
  #detail .bk-inline-nav{display:none!important}
  .bk-mobile-nav:not([hidden]){display:flex;position:fixed;bottom:0;left:0;right:0;align-items:center;gap:10px;z-index:90;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -5px 22px #102d4010}
  .bk-mobile-nav button{flex:1;min-width:0;min-height:46px;font-size:13px;padding:10px 12px;line-height:1.4;background:var(--surface-soft);color:var(--ink)}
  .bk-mobile-nav button:last-child{background:var(--green);color:#fff;border-color:var(--green)}
  html[data-theme=dark] .bk-mobile-nav button:last-child{background:#126a60;color:#fff}
  body.bk-study-active{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
  body.bk-study-active #toast{bottom:100px;max-width:90vw}
  .bk-resume{padding:22px;gap:20px;flex-direction:column;align-items:stretch;margin:24px 0 30px}
  .bk-resume h2{font-size:26px}.bk-resume .button{width:100%}
  .bk-focus .bk-outline-toggle{display:none!important}
  .bk-focus .layout>aside{display:none!important}
  .exam-answer{padding:16px!important}
}
@media(prefers-reduced-motion:reduce){#detail :is(.solution,.miras-solution,.quiz-feedback){animation:none!important}}
