/* inschlau: readable learning surfaces, accessible controls and a wrapping mobile header. */
:root{color-scheme:dark;--in-focus:#8ac5ff;--in-muted:#a8b8ce}
html{scroll-padding-top:6rem}
body{font-family:Geist,system-ui,sans-serif;font-size:1rem;line-height:1.65}
body>main.container{max-width:960px;margin:1.5rem auto;padding:0 24px}
button,input,select,textarea{font:inherit}
button,.btn,.go,.cta{min-height:44px}
input,select,textarea{max-width:100%;font-size:1rem}
label{font-size:.875rem!important}
:focus-visible{outline:3px solid var(--in-focus)!important;outline-offset:3px}
::selection{background:#224b72;color:#fff}
a{text-underline-offset:.2em}
img,svg,canvas{max-width:100%}
h1,h2,h3{overflow-wrap:break-word;text-wrap:balance}
p,li{overflow-wrap:break-word}
#inTopbar{height:auto!important;min-height:48px;flex-wrap:wrap;overflow:visible!important;white-space:normal!important;padding:8px 16px!important;gap:8px 16px!important}
#inTopbar a{min-height:32px;display:inline-flex;align-items:center;font-size:.875rem}
#inChip,#mdg-auth{position:static!important;float:none!important;max-width:100%;font-size:.875rem!important;margin:0!important;padding:6px 16px!important;text-align:right;background:#11182a!important}
#inGoal{font-size:.875rem!important}
.track-einfach p,.track-geek p,.lead{max-width:72ch}
.ws-quiz{scroll-margin-top:6rem;box-sizing:border-box;max-width:960px;margin:2rem auto;padding:0 16px}
.ws-done-slot{scroll-margin-top:6rem}
.ws-chip{font-size:.875rem}
.in-skip{position:fixed;left:12px;top:-100px;z-index:11000;padding:10px 16px;background:#11182a;color:#fff}
.in-skip:focus{top:12px}
.in-sources{max-width:72ch;margin:3rem auto;padding:1.5rem 1rem;border-top:1px solid #2a3550;font-size:.875rem;color:#b6c5d8}
.in-sources a{color:#8ac5ff}
.in-sources h2{font-size:1.125rem}
@media(max-width:600px){
  #inTopbar{position:relative!important;gap:4px 12px!important}
  #inGoal{margin-left:0!important;width:100%}
  .row{flex-wrap:wrap}.row>div{min-width:160px}
  .container{padding-left:16px!important;padding-right:16px!important}
  .ws-chip{bottom:8px;right:8px;max-width:calc(100vw - 16px);min-width:0}
  body{padding-bottom:76px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  .ws-conf{display:none!important}
  .ws-done{animation:none!important}
  #inGoal svg circle{transition:none!important}
}

/* Course activities: keep progress reachable without covering controls. */

@media(prefers-reduced-motion:reduce){body[data-course-alltag] .reveal,body[data-course-alltag] .breath{animation:none!important;transform:none!important}body[data-course-alltag] .mdg-chip .mbar i{transition:none!important}}

/* Source-grounded philosophical reading within the established course. */
.source-depth{margin:28px 0 34px;padding:24px 0;border-block:1px solid #3f4d69;max-width:72ch}.source-depth h2{font-size:clamp(1.4rem,4vw,1.8rem);line-height:1.3;margin:0 0 18px}.source-depth p{max-width:70ch}.source-ref,.source-reference{font-size:.875rem;color:#bcc6dc}.source-ref a,.source-reference a,.source-depth a{color:#cbbfff}.source-question{margin-top:24px}.source-reference{margin:24px 0}

/* Keep course progress in the viewport, with room for footer controls. */
body.mdg-has-chip{padding-bottom:calc(116px + env(safe-area-inset-bottom,0px))}
body.mdg-has-chip #mdgChip{position:fixed;right:max(12px,env(safe-area-inset-right,0px));bottom:max(12px,env(safe-area-inset-bottom,0px));z-index:900;margin:0;width:184px;min-width:0;max-width:calc(100vw - 24px);box-sizing:border-box;transform:none}
body.mdg-has-chip :is(a,button,input,textarea,select,[tabindex]){scroll-margin-bottom:132px}
@media(max-width:600px){
 body.mdg-has-chip #mdgChip{width:154px;padding:8px 10px}
 body.mdg-has-chip #mdgChip .l{font-size:11px;line-height:1.4}
 body.mdg-has-chip #mdgChip .mxp{font-size:10px;line-height:1.4}
 body.mdg-has-chip .ct-root>.ct-settings{left:max(12px,env(safe-area-inset-left,0px));bottom:max(12px,env(safe-area-inset-bottom,0px));max-width:calc(100vw - 190px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));white-space:normal;padding:8px 10px}
 body.mdg-has-chip:has(textarea:focus,input:not([type=checkbox]):not([type=radio]):not([type=range]):focus,[contenteditable=true]:focus) #mdgChip{visibility:hidden;pointer-events:none}
}

/* A shared shell for every numbered course lesson, including practice. */
body[data-course-lesson] .wrap{max-width:760px;margin:0 auto;padding:0 20px 90px}
body[data-course-lesson] .crumb{color:var(--muted);font-size:13px;margin:26px 0 6px}
body[data-course-lesson] .crumb a{color:var(--accent2);text-decoration:none}
body[data-course-lesson] .wrap>h1{font-size:32px;line-height:1.15;margin:.2em 0 .5em}
body[data-course-lesson] .lead{font-size:19px;color:#dbe1ee}
body[data-course-lesson] .next{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:24px;flex-wrap:wrap}
body[data-course-lesson] .next .btn{display:inline-block;background:var(--accent);color:#fff;border:0;padding:13px 22px;border-radius:12px;font-size:15px;font-weight:700;text-decoration:none;line-height:1.65}
body[data-course-lesson] .next .btn.ghost{background:transparent;border:1px solid var(--line);color:var(--text)}
body[data-course-lesson] footer{color:var(--muted);font-size:13px;text-align:center;margin-top:40px;border-top:1px solid var(--line);padding-top:20px}
