/* Localised typography and navigation; the course identity remains AHALab. */
html{--font-body:system-ui,"Nirmala UI","Segoe UI",sans-serif;--font-display:Georgia,"Nirmala UI","Segoe UI",serif}
body{font-family:var(--font-body)}h1,h2,h3{overflow-wrap:anywhere;hyphens:auto}p,li,td,th,label,summary,button,a{overflow-wrap:break-word;hyphens:auto}
.course-language{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:14px 0;font:13px/1.5 var(--font-body)}.course-language select{font:inherit;max-width:100%;min-height:38px;padding:6px 9px;background:#faf8f1;color:#183c32;border:1px solid #b2beb4;border-radius:3px}.sidebar .course-language{color:#f3f0e8;display:block}.sidebar .course-language label{display:block;margin-bottom:6px}.sidebar .course-language select{width:100%}.class-head .course-language{margin:0 0 0 auto;max-width:240px}.class-head .course-language label{max-width:90px}.classroom-page .slide-diagram svg{max-height:520px}.slide-diagram svg text{font-family:system-ui,"Nirmala UI","Segoe UI",Arial,sans-serif}.chapter-nav a{min-width:0}.chapter-nav a small{flex-shrink:0}.class-head p{flex:1 1 260px}.presenter{flex-wrap:wrap}.presenter button,.diagram-controls button{max-width:100%;white-space:normal}.study-tools{max-width:calc(100vw - 24px)}.study-progress{grid-template-columns:minmax(0,1fr)}.study-progress button{grid-column:1;grid-row:auto;justify-self:start}
html[dir="rtl"] .sidebar{left:auto;right:0}html[dir="rtl"] main{margin-left:0;margin-right:264px}html[dir="rtl"] .classroom-page main{margin-right:0}html[dir="rtl"] .class-head .course-language{margin-left:0;margin-right:auto}html[dir="rtl"] .speaker-layout{direction:rtl}html[dir="rtl"] .study-tools{right:auto;left:12px}html[dir="rtl"] .question,html[dir="rtl"] .study-task{border-left:0;border-right:3px solid #936320}html[dir="rtl"] #timer,html[dir="rtl"] #position,html[dir="rtl"] #speaker-time,html[dir="rtl"] #speaker-position{direction:ltr;unicode-bidi:isolate}html[dir="rtl"] .chapter-nav a small{margin-left:0;margin-right:auto}html[dir="rtl"]{--font-display:"Segoe UI","Nirmala UI",Arial,sans-serif}html[dir="rtl"] p,html[dir="rtl"] li{line-height:1.95}
@media(max-width:900px){html[dir="rtl"] main{margin-right:0}.sidebar .course-language{display:flex;margin:10px 0}.sidebar .course-language select{width:auto;max-width:220px}.sidebar .course-language label{margin:0}.class-head .course-language{flex:1 1 100%;max-width:none;justify-content:flex-start}.classroom-page .slide-heading h2{font-size:clamp(26px,4vw,40px)}.classroom-page .slide-diagram svg{max-height:none}.chapter-nav a{flex-wrap:wrap}.chapter-nav a small{margin-left:0}.presenter{position:static}.diagram-controls{position:static}.classroom-page main{padding-bottom:25px}}
@media print{html[dir="rtl"] main{margin:0}.course-language{display:none!important}.classroom-page .slide-diagram svg{max-height:275px}.sidebar{display:none!important}.classroom-page .slide-heading h2{font-size:20pt!important}.classroom-page .slide .question{font-size:10pt}.classroom-page .slide .explanation li{font-size:9pt}}

/* Match the existing site language picker without adding a language landing page. */
.course-language label.language-picker{position:relative;display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:40px;margin:0;padding:9px 34px 9px 13px;border:1px solid #b2beb4;border-radius:999px;background:#faf8f1;color:#183c32;line-height:1.4}
.course-language .language-picker-current{min-width:0;overflow-wrap:anywhere;font-weight:600}.course-language .language-picker-chevron{position:absolute;inset-inline-end:11px;width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.5;pointer-events:none}
.course-language select.language-select{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;margin:0;padding:0;opacity:0;cursor:pointer}.course-language .language-picker:focus-within{outline:3px solid #b47721;outline-offset:3px}
.meeting-link,.actions>a{max-inline-size:100%;min-inline-size:0;white-space:normal!important;overflow-wrap:anywhere}fieldset{min-inline-size:0}legend{max-inline-size:100%;overflow-wrap:anywhere}fieldset label{overflow-wrap:anywhere}textarea{min-inline-size:0;max-inline-size:100%}
/* Translations can be taller. Controls must not cover the learner's question. */
.classroom-page .presenter{position:static}
html[dir="rtl"] .course-language label.language-picker{padding-inline:13px 34px}
@media(max-width:900px){.course-language,.sidebar .course-language{position:fixed;z-index:60;top:max(10px,env(safe-area-inset-top));inset-inline-end:12px;max-width:calc(100vw - 24px);width:auto;margin:0}.study-step{scroll-margin-top:72px}}
