/* One map through Craie, on the existing chalkboard. */
.craie-header, .craie-crumbs {
 --nav-ink: var(--theme-ink, #f4f1e6);
 --nav-paper: var(--theme-paper, #1b1e1c);
 --nav-line: var(--craie-line, var(--line, #7e8780));
}
.craie-header { width: min(100% - 3rem, 80rem); margin: 0 auto; padding: 1.1rem 0; display: grid; grid-template-columns: auto auto 1fr; gap: 2rem; align-items: center; position: relative; z-index: 10; font-size: 1.1rem; color: var(--nav-ink); }
.craie-header .wordmark { font: 400 2.4rem/1.2 "CHAWP",sans-serif; text-decoration: none; color: inherit; }
.craie-explore { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1rem; color: #22302b; background: var(--magnet-green, var(--green, #9dbca4)); background-image: linear-gradient(165deg, rgb(255 255 255 / 16%), transparent 42%, rgb(0 0 0 / 5%)); box-shadow: var(--magnet-rest, inset 0 2px 1px rgb(255 255 255 / 45%), inset 0 -4px 2px rgb(0 0 0 / 19%), 2px 5px 8px rgb(0 0 0 / 42%)); border-radius: 8px; font: 600 .95rem/1.3 "Atkinson Hyperlegible Next",sans-serif; text-decoration: none; }
.craie-explore:hover { text-decoration: none; box-shadow: var(--magnet-lift, inset 0 2px 1px rgb(255 255 255 / 50%), inset 0 -4px 2px rgb(0 0 0 / 19%), 3px 7px 11px rgb(0 0 0 / 48%)); }
.craie-explore:active { transform: translateY(1px); }
.craie-header .craie-explore { padding: .5rem .15rem; background: transparent; color: inherit; border: 0; border-radius: 0; box-shadow: none; font: inherit; text-decoration: none; }
.craie-header .craie-explore:hover, .craie-header .craie-explore[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.craie-explore[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.craie-nav-panel { display: flex; align-items: center; justify-content: end; gap: 2rem; }
.craie-header nav { display: flex; gap: 2rem; align-items: center; }
.craie-header details { position: relative; margin: 0; padding: 0; border: 0; background: transparent; }
.craie-header summary { display: flex; align-items: center; gap: .65rem; min-height: 48px; padding: .5rem 0; cursor: pointer; list-style: none; }
.craie-header summary::-webkit-details-marker { display: none; }
.craie-header summary::after { content: ""; width: .42rem; height: .42rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.craie-header details[open] > summary::after { transform: rotate(225deg) translate(-2px,-1px); }
.craie-nav-dropdown { position: absolute; right: 0; min-width: 17rem; padding: .65rem; background: var(--nav-paper); box-shadow: 0 8px 24px rgb(0 0 0 / 35%); border-radius: 4px; }
.craie-nav-dropdown a { display: flex; align-items: center; min-height: 48px; padding: .6rem .85rem; text-decoration: none; white-space: nowrap; }
.craie-nav-dropdown a:hover, .craie-nav-dropdown a[aria-current] { text-decoration: underline; }
.craie-header .theme-toggle { margin: 0; font-size: 1rem; }
.craie-menu-toggle { min-height: 48px; align-items: center; gap: .6rem; padding: .5rem .75rem; background: transparent; color: inherit; border: 0; border-radius: 0; font: inherit; cursor: pointer; text-underline-offset: .3em; }
.craie-header .craie-menu-toggle:hover, .craie-header .craie-menu-toggle:active, .craie-header .craie-menu-toggle[aria-expanded="true"] { background: transparent; color: inherit; text-decoration: underline; }
.craie-menu-icon, .craie-menu-icon::before, .craie-menu-icon::after { display: block; width: 15px; height: 1px; background: currentColor; position: relative; }
.craie-menu-icon::before, .craie-menu-icon::after { content: ""; position: absolute; left: 0; }
.craie-menu-icon::before { top: -5px; }.craie-menu-icon::after { top: 5px; }
.craie-header :focus-visible, .craie-crumbs a:focus-visible { outline: 3px solid var(--nav-ink); outline-offset: 4px; }
.craie-crumbs { width: min(100% - 3rem,80rem); margin: .5rem auto 1.5rem; color: var(--nav-ink); font: 400 1rem/1.5 "Patrick Hand",sans-serif; }
.craie-crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.portal-search-link { margin: 1rem 0 .5rem; }
.portal-search-link .craie-explore { min-height: 52px; }
.catalogue-explore { margin: 1.2rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
@media(max-width:760px) {
 .craie-header { width: calc(100% - 2.5rem); grid-template-columns: 1fr auto auto; gap: .8rem; padding-block: 1rem; }
 .craie-header .wordmark { font-size: 2rem; }
 .craie-explore { min-height: 48px; padding: .55rem .8rem; font-size: .9rem; }
 .craie-menu-toggle:not([hidden]) { display: inline-flex; }
 .craie-nav-panel { grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: .5rem; padding: .75rem 0; border-bottom: 1px solid var(--nav-line); }
 .craie-header nav { display: block; }
 .craie-header details { border-top: 1px solid var(--nav-line); }
 .craie-header summary { min-height: 52px; justify-content: space-between; }
 .craie-nav-dropdown { position: static; min-width: 0; padding: 0 0 .65rem .5rem; background: transparent; box-shadow: none; }
 .craie-header .theme-toggle { align-self: start; min-height: 48px; padding-left: 0; }
 .craie-crumbs { width: calc(100% - 2.5rem); }
}
@media(prefers-reduced-motion:reduce) { .craie-header * { scroll-behavior: auto; } }
@media(forced-colors:active) { .craie-explore { border: 1px solid ButtonText; } }

.craie-course-link { display: inline-flex; align-items: center; min-height: 44px; font: 400 1rem/1.3 "Patrick Hand",sans-serif; white-space: nowrap; text-underline-offset: .2em; }

.craie-nav-panel[hidden], .craie-menu-toggle[hidden], .course-nav-toggle[hidden], #course-topics[hidden] { display: none !important; }
.course-nav-toggle { min-height: 48px; width: 100%; padding: .65rem 1rem; color: var(--theme-ink); background: transparent; border: 1px solid currentColor; border-radius: 4px; font: 400 1.1rem/1.4 "Patrick Hand",sans-serif; text-align: left; cursor: pointer; }
.course-nav-toggle:focus-visible { outline: 3px solid var(--theme-ink); outline-offset: 4px; }

/* The optional catalogue overview stays behind one native disclosure. */
.roadmap-disclosure { padding-block: 3rem; }
.roadmap-disclosure > summary.section-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; list-style: none; cursor: pointer; }
.roadmap-disclosure > summary::-webkit-details-marker { display: none; }
.roadmap-disclosure > summary h2 { margin: 0; }
.roadmap-disclosure .roadmap-description { max-width: 65ch; margin: 0 0 1.5rem auto; }
.roadmap-disclosure > .section-inner { display: block; margin-top: 2rem; }
.roadmap-disclosure .roadmap-list { max-width: 65ch; margin-left: auto; }
.disclosure-action { display: inline-flex; min-height: 48px; align-items: center; gap: 1rem; flex-shrink: 0; text-decoration: underline; text-underline-offset: .3em; }
.disclosure-action::after { content: ''; width: .55rem; height: .55rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.roadmap-disclosure[open] .disclosure-action::after { transform: rotate(225deg); }
.roadmap-disclosure > summary:focus-visible { outline: 3px solid var(--theme-ink); outline-offset: 6px; }
@media(max-width:680px) { .roadmap-disclosure > summary.section-inner { align-items: start; flex-direction: column; gap: .5rem; } .roadmap-disclosure .roadmap-list { margin-left: 0; } }
