/* Reuse the host palette, cards, answer options, feedback and buttons. */
:is(#courseScreen,#textCourseScreen) .learning-hero h1 { font-size: clamp(1.65rem, 6vw, 2.5rem); }
:is(#courseScreen,#textCourseScreen) .course-sections { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
:is(#courseScreen,#textCourseScreen) .course-sections a, :is(#courseScreen,#textCourseScreen) a { color: var(--blue); overflow-wrap: anywhere; }
:is(#courseScreen,#textCourseScreen) .course-sections a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; }
#courseSteps { list-style: none; padding: 0; display: grid; gap: 8px; }
#courseSteps .secondary-button { text-align: left; padding: 12px 14px; margin: 0; overflow-wrap: anywhere; }
#courseSteps [aria-current="step"] { border: 2px solid var(--cyan); }
:is(#courseScreen,#textCourseScreen) .course-diagram { list-style: none; display: grid; gap: 8px; padding: 0; margin: 16px 0; }
:is(#courseScreen,#textCourseScreen) .course-diagram li { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2); overflow-wrap: anywhere; }
:is(#courseScreen,#textCourseScreen) fieldset { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
:is(#courseScreen,#textCourseScreen) legend { font-weight: 800; margin-bottom: 14px; padding: 0; }
:is(#courseScreen,#textCourseScreen) .answer-option:focus-within { outline: 3px solid var(--amber); outline-offset: 3px; }
:is(#courseScreen,#textCourseScreen) :focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
:is(#courseScreen,#textCourseScreen) h3 { line-height: 1.4; }
:is(#courseScreen,#textCourseScreen) p, :is(#courseScreen,#textCourseScreen) legend, :is(#courseScreen,#textCourseScreen) .answer-text { overflow-wrap: anywhere; }
:is(#courseScreen,#textCourseScreen) .course-meta { color: var(--muted); line-height: 1.5; }
.main-nav { gap: 2px; }
.main-nav .nav-button { min-width: 0; padding: 7px 5px; text-align: center; overflow-wrap: anywhere; font-size: .9rem; }
@media (max-width: 430px) { .main-nav { grid-template-columns: repeat(3,minmax(0,1fr)) !important; } }


#courseScreen .course-catalog{display:flex;flex-wrap:wrap;gap:14px;margin-top:24px}
#courseScreen .course-catalog a{display:flex;align-items:center;justify-content:center;flex:1 1 180px;min-height:72px;padding:18px 24px;border:1px solid var(--cyan);border-radius:16px;background:var(--surface-2);color:var(--text);font-size:1.1rem;font-weight:800;text-decoration:none;overflow-wrap:anywhere}
#courseScreen .course-catalog a:hover{background:#16494e}
#courseScreen .course-catalog a:focus-visible{outline:3px solid var(--amber);outline-offset:3px}
