/* Approved reusable course subnavigation. Loaded only by the five course-detail pages. */
.course-subnav{position:sticky;top:0;z-index:8;display:flex;align-items:center;gap:22px;margin-top:16px;padding:8px 16px;border:1px solid #cbd8d8;border-radius:5px;background:#f4f8f7}
.course-subnav .section-picker{flex:1;min-width:0}
.course-subnav summary{display:none}
.course-subnav nav{display:flex;align-items:center;justify-content:flex-end;gap:24px;font-size:16px;line-height:1.3}
.course-subnav .all-courses{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:16px;line-height:1.25;font-weight:600;color:#2f6670;flex:none;text-decoration:none}
.course-subnav .all-courses:hover{text-decoration:underline;text-underline-offset:4px}
.course-subnav .back-arrow{font-size:18px;flex:none}
.course-subnav nav a{display:inline-flex;align-items:center;min-height:44px;font-weight:600;white-space:nowrap;text-decoration:none;border-bottom:2px solid transparent}
.course-subnav nav a:hover{color:#24535b;border-bottom-color:#9bb5b8}
.course-subnav nav a[aria-current]{color:#2f6670;border-bottom-color:#2f6670}
.course-proposal .course-subnav .course-register{width:auto;min-width:122px;min-height:44px;font-size:16px;padding:10px 20px;flex:none}
.course-proposal .course-subnav a:focus-visible,.course-subnav summary:focus-visible{outline:3px solid #176e8a;outline-offset:3px}
.course-proposal .course-section,.course-proposal #overview{scroll-margin-top:84px}
.course-proposal h1:focus,.course-proposal h2:focus{outline:2px solid #2f6670;outline-offset:6px}
@media(max-width:1300px){.course-subnav nav{gap:10px}}
@media(max-width:1200px){
 .course-subnav{padding:8px 12px;gap:12px;align-items:flex-start;margin-top:12px}
 .course-subnav summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;font-size:16px;line-height:1.3;font-weight:650;color:#2f6670;list-style:none}
 .course-subnav summary::-webkit-details-marker{display:none}
 .section-chevron{width:8px;height:8px;border-right:1.5px solid #2f6670;border-bottom:1.5px solid #2f6670;transform:rotate(45deg);margin-right:4px;flex:none}
 .section-picker[open] .section-chevron{transform:rotate(225deg)}
 .course-subnav nav{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:8px 12px;background:white;border:1px solid #cbd8d8;border-radius:0 0 5px 5px}
 .js .course-subnav nav{position:absolute;top:calc(100% - 1px);left:-1px;right:-1px;max-height:calc(100dvh - 90px);overflow:auto}
 .course-subnav nav a{min-height:48px;padding:10px 8px;border-bottom:1px solid #dde6e6;white-space:normal}
 .course-subnav nav a[aria-current]{border-bottom-color:#2f6670;background:#f4f8f7}
 .course-subnav nav a:last-child{border-bottom:0}
 .course-proposal .course-subnav .course-register{min-width:108px;padding-inline:16px}
}
@media(max-width:650px){
 .course-subnav{gap:8px;padding-inline:8px}
 .course-subnav .all-courses{width:88px;gap:5px;font-size:15px;line-height:1.2}
 .course-subnav .back-arrow{font-size:16px}
 .course-subnav summary{gap:6px;font-size:15px;line-height:1.2}
 .course-subnav summary>span:first-child{min-width:0}
 .course-subnav .section-chevron{margin-right:0}
 .course-proposal .course-subnav .course-register{min-width:78px;font-size:15px;padding:10px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Without enhancement, the expanded native links scroll away instead of obscuring anchors. */
html:not(.js) .course-subnav{position:static}
@media(max-width:1200px){html:not(.js) .course-subnav{display:grid;grid-template-columns:1fr auto}html:not(.js) .course-subnav .section-picker{grid-column:1/-1;grid-row:2}html:not(.js) .course-subnav .course-register{grid-column:2;grid-row:1}}
