.course-catalogue{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;max-width:1500px;padding:22px 26px 34px;margin:auto;box-sizing:border-box;width:100%;height:auto!important;min-height:450px}.course-catalogue[hidden],main[hidden]{display:none!important}.catalogue-sidebar{padding:22px 18px;align-self:start}.catalogue-tag{margin:0 0 18px;padding:10px 12px;border:1px solid #c38cef;border-radius:8px;background:linear-gradient(#8541b5,#512178);font-weight:bold;font-size:12px}.catalogue-sidebar h1{font-size:26px;margin:0 0 14px}.catalogue-sidebar p{line-height:1.7}.catalogue-panel{padding:24px;min-width:0;align-self:start}.catalogue-panel h2{margin:0 0 15px;font-size:23px}.catalogue-panel>.muted{font-size:14px;line-height:1.7;margin-bottom:22px}.catalogue-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.catalogue-card{padding:18px;border:1px solid #326182;border-radius:12px;background:linear-gradient(135deg,#173d5e,#0d2943);min-width:0}.catalogue-card h3{font-size:16px;line-height:1.5;margin:0 0 12px}.catalogue-card p{font-size:12px;color:#b7d6ed;line-height:1.6;margin:0 0 15px}.catalogue-card button{font-size:12px;min-height:40px}.course-all-units:not([hidden]){display:inline-flex;width:fit-content;max-width:100%;align-items:center;margin:0 0 18px;text-align:left}.typing-unit-menu .lesson-group>summary{display:none}.typing-unit-menu .lesson-group:not([open])>.lesson-group-items{display:block}.course-overview .mobile-nav-toggle{display:none!important}.story-embedded #chapter-switch{display:none}.story-embedded .back-link{width:100%;box-sizing:border-box}.course-overview{overflow:auto!important;height:auto!important}#reading-drills{overflow-anchor:none}#lesson-menu{overflow-anchor:none}
#typing-workspace[data-course-overview=true],#story-workspace[data-course-overview=true]{height:auto!important;min-height:0!important;overflow:visible!important}iframe[data-course-overview=true]{min-height:0!important;max-height:none!important}
.story-embedded aside[data-mobile-open=false]>.back-link{display:block!important}
@media(max-width:900px){.course-catalogue{display:block;padding:12px 10px 25px;min-height:350px}.catalogue-sidebar{margin-bottom:12px;padding:16px}.catalogue-sidebar h1{font-size:23px}.catalogue-tag{margin-bottom:12px}.catalogue-panel{padding:18px 14px}.catalogue-grid{grid-template-columns:1fr}.catalogue-panel h2{font-size:21px}.catalogue-card{padding:16px}.course-all-units{min-height:44px}.catalogue-sidebar>.muted{margin-bottom:0}}
.catalogue-panel>h2[tabindex="-1"]:focus{outline:none}
/* Shared course catalogue geometry follows the Arabic unit picker. */
@media(min-width:901px){
.course-catalogue,.story-embedded .course-catalogue{max-width:1560px!important;grid-template-columns:minmax(0,1fr)!important;gap:20px!important;padding:18px 18px 24px!important}
}
.catalogue-card p{font-size:13px;line-height:1.55}
.catalogue-panel>.muted{font-size:16px;line-height:1.55}
.catalogue-sidebar>.muted{font-size:16px;line-height:1.55}
/* Catalogues are sized by the outer shell; never reserve an inner scrollbar. */
html:has(body.course-overview){overflow:clip!important}
body.course-overview{overflow:clip!important}
@media(max-width:900px){.course-catalogue,.story-embedded .course-catalogue{padding:12px 10px 25px!important}.catalogue-card{overflow-wrap:anywhere}}
/* The current-area label shares one appearance across all course catalogues. */
/* Use the approved Arabic unit card as the common selection-card design. */
.catalogue-grid .catalogue-card,.access-unit-grid article{padding:15px;border:1px solid #376d99;border-radius:12px;background:linear-gradient(#153b60,#0b2642);color:#f2f7ff;font:400 16px/1.55 Arial,system-ui,sans-serif}
.catalogue-grid .catalogue-card h3,.access-unit-grid h3{margin:0;color:#f2f7ff;font:700 16px/1.55 Arial,system-ui,sans-serif}
.catalogue-grid .catalogue-card p,.access-unit-grid p{margin:12px 0;color:#aec9e1;font:400 13px/1.55 Arial,system-ui,sans-serif}
.catalogue-grid .catalogue-card button,.access-unit-grid button{min-height:44px;padding:9px 12px;font:800 12px/1.45 Arial,sans-serif;border-radius:12px}
.catalogue-grid .catalogue-card button.primary,.access-unit-grid button.primary{color:#fff;border-color:#83d3ff;background:linear-gradient(#299dff,#0870d9 55%,#0854a7)}
.catalogue-sidebar .catalogue-tag,body.unit-selection-view #back-to-units{
 display:block!important;box-sizing:border-box;width:100%;min-height:0!important;height:auto!important;
 margin:0 0 18px!important;padding:10px 12px!important;border:1px solid #c38cef!important;border-radius:8px!important;
 background:linear-gradient(#8541b5,#512178)!important;box-shadow:none!important;text-shadow:none!important;
 color:#f0f6ff!important;font:700 12px/1.6 Arial,sans-serif!important;text-align:left!important;
}

/* Selection pages use the full width; lesson navigation remains intact. */
.course-catalogue,.story-embedded .course-catalogue{grid-template-columns:minmax(0,1fr)!important}
.course-catalogue>.catalogue-panel{width:100%;grid-column:1/-1}
.catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.catalogue-grid .catalogue-card{display:flex;flex-direction:column;gap:12px;padding:22px;overflow-wrap:break-word}
.catalogue-grid .catalogue-card h3,.catalogue-grid .catalogue-card p{margin:0}
.catalogue-grid .catalogue-card button{align-self:flex-start;margin-top:auto}
@media(max-width:650px){.catalogue-grid{grid-template-columns:minmax(0,1fr);gap:14px}.catalogue-grid .catalogue-card{padding:18px}}
body.unit-selection-view #language-workspace>.lesson-sidebar{display:none!important}body.unit-selection-view #language-workspace{grid-template-columns:minmax(0,1fr)!important}
#unit-access-home>.eyebrow{display:none}

#story-collection-chooser .catalogue-card>a.whole-story-link {
  display:flex;align-items:center;justify-content:center;min-height:44px;padding:9px 12px;
  border:2px solid #3898e3;border-radius:12px;background:linear-gradient(#285e91,#174572 42%,#103153);
  color:#f7fbff;box-shadow:inset 0 2px #99d8ff99,inset 0 0 0 3px #062346,inset 0 -5px #071b35,0 3px #020c19;
  font:800 12px/1.45 Arial,sans-serif;text-decoration:none;
}
#story-collection-chooser .catalogue-card>a.whole-story-link:hover {
  background:linear-gradient(#3478b5,#174675);border-color:#86d4ff;
}
