/* Appearance controls remain available on every route, including narrow screens. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.topbar{gap:18px}.topbar>span:first-child{flex:1}.appearance{display:flex;gap:3px;padding:4px;background:#f1f4fb;border:1px solid #e2e8f3;border-radius:12px;flex-shrink:0}.appearance button{border:0;background:transparent;color:#64718a;padding:7px 10px;border-radius:8px;display:flex;align-items:center;gap:6px;font-size:13px;line-height:1.3;transition:background .2s,color .2s,box-shadow .2s}.appearance button:hover{color:var(--blue)}.appearance button.selected{background:white;color:#3159e9;box-shadow:0 2px 6px #14213d10}.appearance button span{font-size:17px}.appearance button.selected span{animation:theme-pop .3s ease-out}.course-tag{white-space:nowrap}.sidebar,.topbar,.card,.reading,.task-panel,.study-side,.source-details,.author-hero,.stats,.method-feature,.hero,.footer,body{transition:background-color .25s ease,border-color .25s ease,color .25s ease}
.intro-row{gap:16px}.intro-row .small-label{flex-shrink:0}.hero h1{font-size:clamp(2.1rem,3.4vw,3.4rem)}.hero-visual img{object-position:center;transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}.hero:hover .hero-visual img{transform:scale(1.035)}.photo-label{animation:label-arrive .65s .15s both}.card.link .icon-box{transition:transform .35s,background-color .25s}.card.link:hover .icon-box{transform:translateY(-3px) rotate(-5deg)}.card-foot .arrow,.btn>span,.section-title a{transition:transform .25s}.card.link:hover .arrow,.btn:hover>span{transform:translate(3px,-3px)}.btn{position:relative;overflow:hidden}.btn:after{content:'';pointer-events:none;position:absolute;inset:0;background:linear-gradient(110deg,transparent 20%,#fff3 48%,transparent 75%);transform:translateX(-130%)}.btn:hover:after{animation:button-sheen .65s ease}.play{box-shadow:0 0 0 0 #ffffff40;animation:play-pulse 3s ease-out infinite}.brandmark:before{content:'';position:absolute;inset:-4px;border:1px solid #3159e926;border-radius:16px;animation:brand-breathe 4s ease-in-out infinite}.card.reveal-ready,.reading.reveal-ready,.method-tile.reveal-ready,.timeline-item.reveal-ready,.lower-grid.reveal-ready{opacity:0;transform:translateY(16px);transition:opacity .5s ease,transform .5s cubic-bezier(.2,.7,.2,1),background-color .25s,border-color .25s;transition-delay:var(--reveal-delay,0ms)}.reveal-ready.is-revealed{opacity:1!important;transform:translateY(0)!important}.card.link.is-revealed:hover{transform:translateY(-4px)!important;transition-delay:0ms}.task-panel.step-arrival{animation:step-arrive .3s ease-out}.feedback{animation:feedback-in .25s ease-out}.stat b{font-variant-numeric:tabular-nums}.stat{min-width:0}.stat span{overflow-wrap:normal}.home-stats b{min-width:2ch}.video-feature .eyebrow{color:#d6f1c6!important}.method-feature .eyebrow{color:#346548!important}.hero-copy .eyebrow{line-height:1.7}.notice{line-height:1.8}
@keyframes theme-pop{from{transform:rotate(-25deg) scale(.75)}to{transform:rotate(0) scale(1)}}@keyframes label-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes button-sheen{to{transform:translateX(130%)}}@keyframes play-pulse{70%{box-shadow:0 0 0 13px #ffffff00}100%{box-shadow:0 0 0 0 #ffffff00}}@keyframes brand-breathe{50%{transform:scale(1.09);opacity:.4}}@keyframes step-arrive{from{opacity:.5;transform:translateX(7px)}to{opacity:1;transform:translateX(0)}}@keyframes feedback-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
/* Complete dark palette, including exercise, assessment, media and author surfaces. */
html[data-theme="dark"]{--ink:#edf2ff;--muted:#a4b2cc;--blue:#91adff;--line:#2a3850;--surface:#0b1120;--mint:#183a30;--lime:#d4f590}
[data-theme="dark"] .sidebar,[data-theme="dark"] .topbar,[data-theme="dark"] .card,[data-theme="dark"] .reading,[data-theme="dark"] .task-panel,[data-theme="dark"] .study-side,[data-theme="dark"] .source-details,[data-theme="dark"] .author-hero,[data-theme="dark"] .stats,[data-theme="dark"] .completion{background:#141e30}
[data-theme="dark"] .brandmark{background:#4369e8;color:#fff}[data-theme="dark"] .brandmark>span{color:#14213d}[data-theme="dark"] .brandmark:before{border-color:#91adff50}
[data-theme="dark"] nav a{color:#b6c3db}[data-theme="dark"] nav a:hover{background:#1d2b43;color:#b7c9ff}[data-theme="dark"] nav a.active{background:#233454;color:#aec3ff}
[data-theme="dark"] .rail-label,[data-theme="dark"] .rail-footer{color:#96a5bf}[data-theme="dark"] .rail-note{background:#101a2a}
[data-theme="dark"] .hero{background:#172744;border-color:#2c426a}[data-theme="dark"] .hero p{color:#bdcbe5}[data-theme="dark"] .hero-visual{background:#172744}[data-theme="dark"] .hero-visual:after{background:linear-gradient(90deg,#172744 0%,transparent 32%)}
[data-theme="dark"] .photo-label{background:#142137ed;border-color:#415273;color:#edf2ff;box-shadow:0 8px 30px #0004}[data-theme="dark"] .photo-label span:first-child{background:#284838;color:#d6f1ba}
[data-theme="dark"] .btn{background:#4369e8;color:#fff}[data-theme="dark"] .btn:hover{background:#547cf8}[data-theme="dark"] .btn.secondary{background:#1c2a40;color:#edf2ff;border-color:#364761}[data-theme="dark"] .btn.text{background:transparent;color:#a7bdff}
[data-theme="dark"] .badge{background:#27334a;color:#bfcce5}[data-theme="dark"] .badge.original{background:#243c65;color:#b3cdff}[data-theme="dark"] .badge.added{background:#1c3b31;color:#a8dfc2}
[data-theme="dark"] .icon-box{background:#243957;color:#aec6ff}[data-theme="dark"] .card:nth-child(4n+2) .icon-box{background:#203c35;color:#a0dbc3}[data-theme="dark"] .card:nth-child(4n+3) .icon-box{background:#433522;color:#ecc58e}[data-theme="dark"] .card:nth-child(4n+4) .icon-box{background:#362a4a;color:#ceb0f4}
[data-theme="dark"] .card.link:hover{box-shadow:0 12px 30px #0002;border-color:#526e9a}[data-theme="dark"] .method-feature{background:#19352b;border-color:#305546}[data-theme="dark"] .method-feature p{color:#b4d3c1}[data-theme="dark"] .method-feature .eyebrow{color:#b1d8be!important}
[data-theme="dark"] .pill{background:#172338;color:#bdc9df}[data-theme="dark"] .pill.active{background:#a9c0ff;border-color:#a9c0ff;color:#10213d}[data-theme="dark"] .task-source{background:#0e182a}[data-theme="dark"] textarea{background:#0e1829;border-color:#3c4d69;color:#f0f4ff}[data-theme="dark"] textarea::placeholder{color:#8394b1}
[data-theme="dark"] .option:has(input:checked){background:#20365a;border-color:#91adff}[data-theme="dark"] input{accent-color:#8ba8ff}[data-theme="dark"] .feedback{background:#17372a;border-color:#326148;color:#d1ecdc}[data-theme="dark"] .feedback.error{background:#422f1d;border-color:#806038;color:#f8dec0}
[data-theme="dark"] .rubric-row{border-color:var(--line)}[data-theme="dark"] .rubric-row select{background:#18263c;color:#edf2ff;border-color:#465a78}[data-theme="dark"] .task-dot{background:#1b2940;color:#c3d0e6}[data-theme="dark"] .task-dot.current,[data-theme="dark"] .task-dot.done.current{background:#4369e8;color:white}[data-theme="dark"] .task-dot.done{background:#204132;border-color:#5d9a7a;color:#b5e6c9}[data-theme="dark"] .progress{background:#2a3850}[data-theme="dark"] .completed-mark{color:#a0dbb9}
[data-theme="dark"] .method-tile{background:#203557}[data-theme="dark"] .method-tile:nth-child(2){background:#213e32}[data-theme="dark"] .method-tile:nth-child(3){background:#423321}[data-theme="dark"] .method-tile:nth-child(4){background:#352b4b}[data-theme="dark"] th{background:#1d2c44}[data-theme="dark"] .author-pills span{background:#24395d;color:#bed0ff}[data-theme="dark"] .timeline{border-color:#364c70}[data-theme="dark"] .timeline-item:before{border-color:#17233a}
[data-theme="dark"] .appearance{background:#0d1729;border-color:#33425e}[data-theme="dark"] .appearance button{color:#acbbd5}[data-theme="dark"] .appearance button.selected{background:#2b3d5d;color:#d4e0ff;box-shadow:0 2px 8px #0003}[data-theme="dark"] .appearance button:hover{color:#edf2ff}[data-theme="dark"] .inline-button{color:#a9c0ff}[data-theme="dark"] .mobile-menu{background:#243755;color:#bfceff}[data-theme="dark"] .skip{background:#1c2c46}[data-theme="dark"] #toast{background:#dae5ff;color:#14213d}
@media(max-width:1200px){.topbar>span:first-child{display:none}.topbar{justify-content:space-between}.intro-row .small-label{display:none}}@media(max-width:850px){[data-theme="dark"] .hero-visual:after{background:linear-gradient(180deg,#172744,transparent 32%)}}@media(max-width:600px){.topbar{height:auto;min-height:72px;gap:10px;flex-wrap:wrap;padding:12px 16px}.appearance{order:1}.topbar .course-tag{font-size:11px;padding:5px 9px}.mobile-menu{order:2}.appearance button{padding:7px 8px;font-size:12px;gap:4px}.appearance button span{font-size:15px}.course-tag{order:0}.hero h1{font-size:2.55rem}.page-head h1{overflow-wrap:break-word}.intro-row h1{font-size:1.5rem}.stat{gap:10px}.brand small{font-size:10px}}@media(max-width:385px){.topbar .course-tag{flex-basis:100%;width:max-content;flex-grow:0;text-align:center}.appearance{flex:1;justify-content:center}.mobile-menu{margin-left:auto}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.reveal-ready{opacity:1!important;transform:none!important}}

.brand>span:last-child{min-width:0}.brand small{max-width:160px;line-height:1.45}.appearance-status{flex:0}[data-theme="dark"] .play{color:#3159e9}
@media(max-width:850px){.brand small{font-size:9px}}
