/* A clearer professional profile and fewer repeated classroom actions. */
.subject-strip p { font-size: clamp(14px,1vw,22px); color: var(--text); display: flex; align-items: center; gap: 15px; }
.subject-strip p:before { content: ''; width: 4px; height: 4px; background: var(--amber); border-radius: 50%; }
.professional-section { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px,7vw,160px); padding-block: clamp(75px,7vw,150px); }
.professional-intro h2 { margin-top: 24px; }
.professional-intro h2 span { color: var(--amber-light); }
.professional-note { font-size: clamp(15px,1vw,21px); line-height: 1.85; max-width: 38ch; margin-top: 27px; }
.professional-details article { display: flex; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.professional-details article:first-child { padding-top: 0; }
.professional-details article:last-child { border: 0; }
.professional-mark { display: grid; place-items: center; color: var(--amber-light); width: 48px; height: 48px; border: 1px solid #d6ad5545; border-radius: 50%; flex-shrink: 0; }
.professional-mark svg { width: 23px; height: 23px; }
.professional-details h3 { font-size: clamp(23px,1.6vw,35px); margin-bottom: 15px; }
.professional-details p { font-size: clamp(14px,.95vw,19px); max-width: 44ch; line-height: 1.8; }
.pending-profile { display: inline-block; color: #b5c7d8; font-size: 11px; margin-top: 18px; padding-left: 12px; border-left: 2px solid var(--amber); }
.library-tools { align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 0; flex-wrap: wrap; }
.topic-menu { display: flex; flex-direction: column; gap: 7px; min-width: 215px; }
.topic-menu>span { font-size: 11px; color: var(--amber-light); }
.topic-menu select { border: 1px solid #a7c2df55; background: #0a1b32; color: #eff7ff; border-radius: 8px; padding: 11px 36px 11px 14px; height: 46px; font-size: 14px; cursor: pointer; width: 100%; }
.library-tools .search { flex: 0 1 360px; min-width: 220px; max-width: 420px; padding: 10px 14px; height: 46px; margin-top: 25px; }
.library-tools .search input { font-size: 14px; }
.library-tools .search svg { width: 17px; height: 17px; }
.library-tools .filter-button { margin-left: auto; margin-top: 25px; height: 46px; padding: 10px 18px; font-size: 13px; }
.classroom-heading { margin-top: 12px; }
.closing-section .wrap { padding-block: clamp(65px,6vw,125px); }
@media(max-width:960px){
 .professional-section { gap: 35px; }
 .professional-intro h2 { font-size: 36px; }
 .library-tools .search { flex: 1; min-width: 180px; }
}
@media(max-width:640px){
 .subject-strip p { font-size: 11px; gap: 7px; }
 .subject-strip p:before { width: 3px; height: 3px; }
 .professional-section { grid-template-columns: 1fr; padding-block: 65px; gap: 38px; }
 .professional-intro h2 { font-size: 36px; }
 .professional-details article { gap: 18px; }
 .professional-mark { width: 42px; height: 42px; }
 .topic-menu { min-width: 0; flex: 1 1 100%; }
 .topic-menu select { font-size: 16px; }
 .library-tools { gap: 12px; }
 .library-tools .search { flex: 1 1 100%; min-width: 0; max-width: 100%; margin-top: 0; }
 .library-tools .search input { font-size: 16px; }
 .library-tools .filter-button { margin: 0; }
 footer>div:nth-child(2) { gap: 18px; flex-wrap: wrap; }
}

/* Match the portrait's quieter color treatment without altering the source file. */
.portrait { filter: saturate(.78); }
.class-progress { margin: 20px 0 4px; }
.class-progress>span { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #c8d5e2; font-size: 12px; }
.class-progress strong, .lesson-progress strong { color: var(--amber-light); }
.class-progress progress, .lesson-progress progress { appearance: none; display: block; width: 100%; height: 5px; margin-top: 12px; border: 0; border-radius: 6px; overflow: hidden; background: #a7c2df25; }
progress::-webkit-progress-bar { background: #a7c2df25; border-radius: 6px; }
progress::-webkit-progress-value { background: #d6ad55; border-radius: 6px; }
progress::-moz-progress-bar { background: #d6ad55; border-radius: 6px; }
.lesson-progress { padding: 23px 0; border-bottom: 1px solid var(--line); }
.lesson-progress>div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lesson-progress strong { font-size: 14px; }
.lesson-progress button { background: transparent; border: 0; color: #f0ce86; font-size: 12px; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; padding: 5px 0; }
.lesson-progress p { margin: 12px 0 0; font-size: 12px; color: #b5c7d8; line-height: 1.7; }
.video-player:has(iframe) { min-height: 200px; }

/* Presentation mode only, not authentication: the editor changes browser-local data. */
body:not(.editing-mode) .editor-only { display: none !important; }

/* Full biography supplied by the client, retaining the white editorial section. */
.about-section { grid-template-columns: .8fr 1.2fr; gap: clamp(38px,5vw,100px); }
.about-section h2 { font-size: clamp(34px,3vw,60px); max-width: 15ch; }
.about-section .about-copy { padding-top: 0; }
.about-copy #profile-bio { max-width: 74ch; font-size: clamp(16px,1.04vw,21px); line-height: 1.85; white-space: pre-line; margin-top: 23px; }
@media(max-width:800px){
 .about-section { grid-template-columns: 1fr; gap: 28px; }
 .about-section h2 { max-width: 20ch; font-size: clamp(32px,6vw,42px); }
 .about-copy #profile-bio { font-size: 16px; line-height: 1.85; }
}
