/* Adapt the original course layouts to the shared comesisupera.it identity. */
.electronics-course .course-button:not(.course-button-secondary){background:var(--brand-text);border-color:var(--brand-text)}
.electronics-course .next-session .course-button{background:#fff;color:#164b38;border-color:#fff}
.electronics-course .course-button-secondary:hover{background:var(--tonal);color:var(--brand-text)}
.electronics-course .training-shell,.electronics-course .professor-video,.electronics-course .tutor-question-box{background:linear-gradient(145deg,#ffffffe3,#ffffffba);border-color:#ffffffdb;border-radius:21px}
.electronics-course .training-panel{min-width:0}
.electronics-course .study-start-summary,.electronics-course .study-start-inner{width:calc(100% - 40px)}
.electronics-course .training-controls>*,.electronics-course .exam-preferences>*{min-width:0}
.electronics-course .training-controls select{max-width:100%}
.electronics-course .training-secondary{border-radius:13px}
html[data-theme=dark] .electronics-course .training-shell,html[data-theme=dark] .electronics-course .professor-video,html[data-theme=dark] .electronics-course .tutor-question-box{background:#1c322aec;border-color:#48665788}

.systems-course{--surface:var(--card);--navy:var(--ink);--blue:var(--teal);--radius:21px;line-height:1.8}
.systems-course :is(h1,h2,h3,h4,.eyebrow,.subtitle,.cover-meta span,.toc a,.qnum,.label,table,.oral,.followups,.back,.footer,summary,.caption,figcaption){font-family:var(--sans)}
.systems-course .course-masthead{display:flex;align-items:center;width:min(1320px,calc(100% - 48px));margin-inline:auto;gap:24px}
.systems-course .course-brand{text-decoration:none}
.systems-course .course-subject{color:var(--muted);border-left:1px solid var(--line);padding-left:24px}
.systems-course .course-index-link{margin-left:auto;color:var(--brand-text);text-decoration:none}
.systems-course .skip-link{position:absolute;left:16px;top:-100px;z-index:30;background:var(--card);color:var(--ink);padding:12px;border-radius:12px}
.systems-course .skip-link:focus{top:12px}
.systems-course :focus-visible{outline:3px solid var(--teal);outline-offset:4px}
.systems-course .cover{width:min(1080px,calc(100% - 34px));margin:28px auto 0;padding:clamp(28px,5vw,52px);border:1px solid #ffffffa1;border-radius:28px;background:radial-gradient(ellipse at 90% 0,#78b6a633,transparent 60%),linear-gradient(125deg,#084d40f5,#0d584aef);box-shadow:inset 0 1px 1px #ffffff50,0 14px 30px #1c604d12;color:#fff}
.systems-course .cover h1{font-size:clamp(2rem,4.5vw,3.2rem);font-weight:600;line-height:1.2;letter-spacing:-.035em}
.systems-course .eyebrow{color:#bcebd2;font-size:.7rem;font-weight:600}
.systems-course .subtitle{color:#e0eee5;font-size:1rem;line-height:1.8;margin-top:20px}
.systems-course .cover-meta{gap:10px;margin-top:24px}
.systems-course .cover-meta span{font-size:.72rem;font-weight:500;padding:10px 12px;border-color:#ffffff60;line-height:1.4}
.systems-course .page{margin-top:28px}
.systems-course :is(.toc,.question){min-width:0;background:linear-gradient(145deg,#ffffffe3,#ffffffba);border-color:#ffffffdb;border-radius:var(--radius);box-shadow:inset 0 1px 1px #fff,0 8px 26px #264a3606}
.systems-course .toc h2{font-size:clamp(1.5rem,3vw,2rem);font-weight:600}
.systems-course .toc ol{columns:2 360px;column-gap:40px}
.systems-course .toc a{font-size:.9rem;line-height:1.65}
.systems-course .question{margin-block:28px;padding:clamp(22px,4vw,44px);overflow-wrap:anywhere}
.systems-course h2{font-size:clamp(1.4rem,2.5vw,2rem);line-height:1.4;font-weight:600;overflow-wrap:anywhere}
.systems-course h3{font-size:1rem;font-weight:600;line-height:1.6;letter-spacing:0;text-transform:none}
.systems-course h4{font-weight:600;line-height:1.6}
.systems-course .qnum,.systems-course .label{font-weight:600}
.systems-course .question::before{background:linear-gradient(var(--brand),var(--teal));width:4px}
.systems-course :is(.definition,.theorem,.proof,.example,.note,.warning,.oral,.followups){border-radius:14px}
.systems-course .definition,.systems-course .example{background:#e9f4f780;border-color:var(--teal)}
.systems-course .proof,.systems-course .oral{background:#eaf5eebf;border-color:var(--brand)}
.systems-course .theorem,.systems-course .followups{background:#fff5e0a8;border-color:var(--gold)}
.systems-course .figure{max-width:100%;min-width:0;background:#f4f8f6;border-color:var(--line);border-radius:16px}
.systems-course .figure svg{display:block;max-width:100%;height:auto;margin-inline:auto}
.systems-course .formula-grid,.systems-course .phase-portraits,.systems-course .bode-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.systems-course :is(.formula-grid,.phase-portraits,.bode-grid)>*{min-width:0;max-width:100%}
.systems-course .figure .curve{stroke:var(--teal)}
.systems-course .figure .curve2{stroke:var(--gold)}
.systems-course .back{font-weight:500;text-transform:none;letter-spacing:0;line-height:1.5;min-height:44px;padding-block:12px}
.systems-course .katex-display{max-width:100%}
.systems-course :not(.katex-display)>.katex{display:inline-block;max-width:100%;overflow-x:auto;overflow-y:hidden;vertical-align:middle}
.systems-course table{display:block;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden}
.systems-course .footer{line-height:1.8}
@media(max-width:760px){
 .systems-course .course-masthead{width:calc(100% - 24px);gap:10px}
 .systems-course .course-subject{display:none}
 .systems-course .course-index-link{font-size:11px}
 .systems-course .cover{width:calc(100% - 24px);margin-top:20px;padding:28px 22px}
 .systems-course .page{width:calc(100% - 24px);margin-top:20px}
 .systems-course .question{padding:24px 18px 26px 22px;margin-block:20px}
 .systems-course .toc{padding:24px 20px}
 .systems-course .toc ol{columns:1}
 .systems-course .cover-meta span{font-size:.68rem}
}
@media(prefers-reduced-motion:reduce){.systems-course{scroll-behavior:auto}.systems-course *{scroll-behavior:auto}}
@media(prefers-reduced-transparency:reduce){.systems-course :is(.toc,.question),.electronics-course :is(.training-shell,.professor-video,.tutor-question-box){background:var(--card)}}
@media print{
 .systems-course{background:white;line-height:1.46}
 .systems-course .course-masthead,.systems-course .skip-link{display:none}
 .systems-course .cover{width:auto;margin:0;box-shadow:none;background:white;color:black;border:2px solid black;padding:50mm 14mm 20mm;border-radius:0}
 .systems-course .eyebrow,.systems-course .subtitle{color:black}
 .systems-course .cover-meta span{border-color:#555}
 .systems-course :is(.toc,.question){background:white;box-shadow:none;border:0;border-radius:0}
 .systems-course .question{margin:0;padding:0}
 .systems-course .page{width:auto;margin:0}
}
