/* Course lesson slides (/courses/<programme>/<lesson>/). Built by tools/courses/build.js.
   Slides are 1920x1080 boxes with inline styles; js/lesson-deck.js scales the stage to fit. */
.dk-body { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; margin: 0; background: #1E085D; color: #F6F5F0; font-family: 'Manrope', 'DM Sans', sans-serif; overflow: hidden; }
.dk { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.dk-viewport { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.dk-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; background: #1E085D; }
.dk-slide { box-sizing: border-box; position: relative; width: 1920px; max-width: none; height: 1080px; margin: 0; overflow: hidden; }
.dk-slide:not(.is-active) { display: none !important; }
.dk-slide, .dk-slide * { box-sizing: border-box; }
.dk-slide { line-height: 1.2; }
.dk-slide h1, .dk-slide h2, .dk-slide h3, .dk-slide p, .dk-slide ul, .dk-slide ol { margin: 0; }
.dk-slide h1, .dk-slide h2, .dk-slide h3 { font-family: 'Manrope', 'DM Sans', sans-serif; }
.dk-slide ul, .dk-slide ol { padding-left: 1.1em; }
.dk-slide li + li { margin-top: 0.3em; }
.dk-slide table { border-collapse: collapse; width: 100%; }
.dk-slide th, .dk-slide td { padding: 16px 24px 16px 0; border-bottom: 2px solid #D8D2EC; vertical-align: top; }
.dk-slide b { font-weight: 800; }
.dk-progress { height: 4px; background: rgba(246, 245, 240, .18); }
.dk-progress span { display: block; height: 100%; width: 0; background: #FEBBCC; transition: width .25s; pointer-events: none; }
/* Scrub: the line is a drag target with a taller invisible touch area; it thickens while in use. js/lesson-deck.js */
.dk-progress { position: relative; cursor: pointer; touch-action: none; transform-origin: 50% 100%; transition: transform .15s; }
.dk-progress::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; bottom: -10px; }
.dk-progress:hover, .dk.is-scrubbing .dk-progress { transform: scaleY(2.5); }
.dk.is-scrubbing .dk-progress span { transition: none; }
.dk-peek { position: fixed; z-index: 20; width: 13.75rem; padding: 6px; background: #1E085D; border: 2px solid #B6A5EE; border-radius: 14px; box-shadow: 0 12px 28px rgba(0, 0, 0, .4); pointer-events: none; }
.dk-peek[hidden] { display: none; }
.dk-peek-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #F6F5F0; }
.dk-peek-label { margin: 6px 4px 2px; font-size: 0.8125rem; font-weight: 700; color: #F6F5F0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .dk-progress { transition: none; } }
.dk-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 12px 20px; background: #1E085D; }
.dk-controls { display: flex; align-items: center; gap: 20px; }
.dk-btn { min-width: 6rem; padding: 10px 22px; font-family: inherit; font-weight: 800; cursor: pointer; }
.dk-count { margin: 0; min-width: 5.5rem; text-align: center; font-size: 1rem; font-weight: 700; color: #F6F5F0; font-variant-numeric: tabular-nums; }
.dk-full { justify-self: end; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: #F6F5F0; cursor: pointer; }
.dk-full:hover { background: rgba(246, 245, 240, .14); }
.dk-full:focus-visible, .dk-btn:focus-visible { outline: 3px solid #FEBBCC; outline-offset: 3px; }
.dk-btn[aria-disabled="true"] { opacity: .45; cursor: default; }
@media (max-width: 40em) {
  /* Phones: Back / count / Next on the first row so Next is always on screen; the trail is cut to
     "Lesson / Slides" on the second row beside the tools. */
  .dk-bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "controls controls" "crumbs tools"; gap: 8px 12px; padding: 10px 12px; }
  .dk-controls { grid-area: controls; gap: 10px; justify-content: space-between; }
  .dk-crumbs { grid-area: crumbs; min-width: 0; }
  .dk-tools { grid-area: tools; }
  .dk-btn { flex: 1 1 0; min-width: 0; padding: 10px 16px; }
  .dk-count { min-width: 4.5rem; }
  .dk-crumbs ol > li:not(:nth-last-child(-n+2)) { display: none; }
  .dk-crumbs ol > li:nth-last-child(2)::before { content: none; }
}


/* Breadcrumb in the player bar: Learn / Courses / course / lesson / Slides, each level a link. */
.dk-crumbs ol { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; font-weight: 700; white-space: nowrap; }
.dk-crumbs ol > li { display: inline-flex; align-items: center; color: #F6F5F0; }
.dk-crumbs ol > li + li::before { content: "/"; margin: 0 8px; color: #B6A5EE; font-weight: 400; }
.dk-crumbs a { color: #E6E1F5; text-decoration: none; }
.dk-crumbs a:hover { color: #FEBBCC; text-decoration: underline; text-underline-offset: 4px; }
.dk-crumbs a:focus-visible { outline: 3px solid #FEBBCC; outline-offset: 3px; border-radius: 4px; }
.dk-back { display: none; align-items: center; color: #E6E1F5; font-size: 0.9375rem; font-weight: 700; text-decoration: none; }
.dk-back:hover { color: #FEBBCC; }
.dk-back:focus-visible { outline: 3px solid #FEBBCC; outline-offset: 3px; border-radius: 4px; }

/* iPhone zooms in when Next is tapped twice quickly. Taps here never zoom; pinching still does on the bar. */
.dk-bar, .dk-bar *, .dk-exit { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.dk-bar { padding-bottom: max(12px, env(safe-area-inset-bottom)); padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* Present mode: no bar, the slide fills the window, X in the top right. */
.dk.is-present .dk-bar { display: none; }
.dk.is-present .dk-progress { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; height: 3px; }
.dk-exit { position: fixed; z-index: 10; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(30, 8, 93, .82); color: #F6F5F0; cursor: pointer; box-shadow: 0 0 0 1.5px rgba(246, 245, 240, .55); }
.dk-exit[hidden] { display: none; }
.dk-exit:hover { background: #4705D0; }
.dk-exit:focus-visible { outline: 3px solid #FEBBCC; outline-offset: 3px; }
.dk:fullscreen { background: #1E085D; }
.dk:-webkit-full-screen { background: #1E085D; }


/* Bar tools: arrange slides and full screen */
.dk-tools { justify-self: end; display: flex; align-items: center; gap: 4px; }
.dk-tools .dk-full { justify-self: auto; }

/* Arrange slides: a grid of small slides to drag into a new order (js/lesson-deck.js). */
.dk.is-arranging .dk-viewport { visibility: hidden; }
.ar { position: fixed; inset: 0; z-index: 40; overflow-y: auto; background: #1E085D; color: #F6F5F0; padding: max(20px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 48px max(24px, env(safe-area-inset-left)); }
.ar[hidden] { display: none; }
.ar-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding: 8px 0 12px; }
.ar-head h2 { margin: 0; font-size: 1.75rem; color: #F6F5F0; }
.ar-hint { margin: 6px 0 0; font-size: 0.9375rem; color: #E6E1F5; max-width: 40rem; }
.ar-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ar-btn { font: inherit; font-size: 0.9375rem; font-weight: 700; color: #1E085D; background: #EEE9FB; border: 0; border-radius: 100px; padding: 10px 20px; cursor: pointer; }
.ar-btn:hover { background: #FFFFFF; }
.ar-btn--primary { background: #FEBBCC; }
.ar-btn--primary:hover { background: #FFD3DE; }
.ar-btn:focus-visible, .ar-tile button:focus-visible { outline: 3px solid #FEBBCC; outline-offset: 3px; }
.ar-status { min-height: 1.4em; margin: 0 0 12px; font-size: 0.9375rem; font-weight: 700; color: #FEBBCC; }
.ar-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 22px 18px; }
.ar-tile { position: relative; display: flex; flex-direction: column; gap: 8px; border-radius: 14px; padding: 8px; background: rgba(246, 245, 240, .08); }
.ar-tile.is-current { box-shadow: 0 0 0 3px #FEBBCC; }
.ar-tile.is-lifted { opacity: .35; outline: 2px dashed #FEBBCC; }
.ar-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #F6F5F0; cursor: grab; text-align: left; }
.ar-thumb:active { cursor: grabbing; }
.ar-slide { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.ar-meta { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 8px; }
.ar-grip { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: #E6E1F5; cursor: grab; touch-action: none; }
.ar-grip:hover { background: rgba(246, 245, 240, .14); }
.ar-num { font-size: 0.875rem; font-weight: 800; color: #FEBBCC; min-width: 1.5em; }
.ar-name { font-size: 0.9375rem; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ar-move { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end; }
.ar-move button { width: 36px; height: 36px; border: 0; border-radius: 10px; font: inherit; font-size: 1.125rem; line-height: 1; color: #F6F5F0; background: rgba(246, 245, 240, .14); cursor: pointer; }
.ar-move button:hover:not(:disabled) { background: #4705D0; }
.ar-move button:disabled { opacity: .3; cursor: default; }
.ar-ghost { position: fixed; z-index: 60; margin: 0; pointer-events: none; opacity: .92; transform: rotate(-2deg); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); background: #2B1580; }
.ar-ghost .ar-move { visibility: hidden; }
@media (max-width: 40em) { .ar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; } .ar-name { font-size: 0.8125rem; } .ar-move button { width: 32px; height: 32px; } }
.dk-slide.is-removed { display: none !important; }
.ar-move button.ar-remove:hover:not(:disabled) { background: #B3261E; }
.ar-removed { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(246, 245, 240, .25); }
.ar-removed h3 { margin: 0 0 12px; font-size: 1.125rem; color: #F6F5F0; }
.ar-removed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 40rem; }
.ar-removed li { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(246, 245, 240, .08); border-radius: 12px; padding: 8px 8px 8px 16px; }
.ar-rname { font-size: 0.9375rem; font-weight: 600; }

/* Builds: parts of a slide that appear on the next click (js/lesson-deck.js). */
.dk-slide [data-build] { opacity: 0; visibility: hidden; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .6s; }
.dk-slide [data-build][data-fx="right"] { transform: translateX(140px); }
.dk-slide [data-build].is-in { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ar-slide [data-build] { opacity: 1 !important; visibility: visible !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .dk-slide [data-build] { transition: none; } }

/* Class tally on slides (js/lesson-poll.js): the options as a plain list on the left, number boxes and bars on the right. */
.dk-slide .pl-legend { display: flex; flex-direction: column; gap: 12px; }
.dk-slide .pl-leg { display: flex; flex-direction: row; align-items: center; gap: 24px; padding: 10px 26px; font-size: 30px; line-height: 1.25; color: #1E085D; background: #FBFAF6; border: 2px solid #D8D2EC; border-radius: 16px; }
.dk-slide .pl-key { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border: 2px solid currentColor; border-radius: 50%; font-size: 34px; font-weight: 800; }
.dk-slide .pl-key:empty { display: none; }
.dk-slide .pl-results { width: 760px; flex: none; align-self: stretch; display: flex; flex-direction: column; gap: 10px; background: #FBFAF6; border: 2px solid #D8D2EC; border-radius: 24px; padding: 24px 38px 22px; }
.dk-slide .pl-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dk-slide .pl-head h3 { font-size: 38px; font-weight: 800; }
.dk-slide .pl-reset { font: inherit; font-size: 22px; font-weight: 700; color: #4A4170; background: transparent; border: 0; border-radius: 100px; padding: 6px 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.dk-slide .pl-reset:hover { background: #ECE6FA; color: #1E085D; }
.dk-slide .pl-reset.is-armed { background: #FEBBCC; border-color: #FEBBCC; color: #1E085D; }
.dk-slide .pl-bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: center; }
.dk-slide .pl-row { display: flex; flex-direction: column; gap: 2px; }
.dk-slide .pl-row-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dk-slide .pl-lbl { font-size: 27px; font-weight: 800; line-height: 1.15; }
.dk-slide .pl-step { display: inline-flex; align-items: center; gap: 8px; }
.dk-slide .pl-minus, .dk-slide .pl-plus { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; font: inherit; color: #1E085D; background: #ECE6FA; border: 0; border-radius: 14px; cursor: pointer; }
.dk-slide .pl-plus { background: #4705D0; color: #FFFFFF; }
.dk-slide .pl-row:focus-within .pl-minus, .dk-slide .pl-row:focus-within .pl-plus, .dk-slide .pl-people:focus-within .pl-minus, .dk-slide .pl-people:focus-within .pl-plus { display: inline-flex; }
.dk-slide .pl-minus:hover { background: #DDD3F6; }
.dk-slide .pl-plus:hover { background: #3A04AB; }
.dk-slide .pl-minus:active, .dk-slide .pl-plus:active { transform: scale(0.94); }
.dk-slide .pl-count { width: 84px; height: 46px; font: inherit; font-size: 32px; font-weight: 800; text-align: right; color: #1E085D; background: transparent; border: 2px solid transparent; border-radius: 14px; padding: 0 12px; cursor: pointer; -moz-appearance: textfield; appearance: textfield; }
.dk-slide .pl-row:hover .pl-count, .dk-slide .pl-people:hover .pl-count { background: #ECE6FA; }
.dk-slide .pl-row:focus-within .pl-count, .dk-slide .pl-people:focus-within .pl-count { background: #FFFFFF; border-color: #1E085D; text-align: center; padding: 0; cursor: text; }
.dk-slide .pl-count::-webkit-outer-spin-button, .dk-slide .pl-count::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dk-slide .pl-minus:focus-visible, .dk-slide .pl-plus:focus-visible, .dk-slide .pl-count:focus-visible, .dk-slide .pl-reset:focus-visible { outline: 4px solid #4705D0; outline-offset: 3px; }
.dk-slide .pl-row-bar { display: flex; align-items: center; gap: 14px; }
.dk-slide .pl-track { flex: 1; height: 26px; background: #ECE6FA; border-radius: 10px; overflow: hidden; }
.dk-slide .pl-fill { display: block; height: 100%; width: 0; background: #4705D0; border-radius: 10px; transition: width .4s ease; }
.dk-slide .pl-name { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.dk-slide .pl-pct { font-size: 26px; font-weight: 800; color: #4705D0; }
.dk-slide .pl-total, .dk-slide .pl-saved { font-size: 20px; line-height: 1.3; color: #4A4170; }
@media (prefers-reduced-motion: reduce) { .dk-slide .pl-fill { transition: none; } }

.dk-slide .pl-people { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dk-slide .pl-people-lbl { font-size: 28px; font-weight: 700; color: #1E085D; }

/* Builds that leave again (data-hide-at) and bars that grow in (data-fx="grow"). */
.dk-slide [data-build][data-fx="grow"] { transform: scaleX(0); transform-origin: 0 50%; transition: opacity .3s ease, transform .9s cubic-bezier(.2, .8, .2, 1), visibility 0s linear 0s; }
.dk-slide [data-build][data-fx="grow"].is-in { transform: none; }
.dk-slide [data-hide-at].is-out { opacity: 0 !important; visibility: hidden !important; transform: translateX(-60px) !important; pointer-events: none; transition: opacity .4s ease, transform .5s ease, visibility 0s linear .5s; }
.ar-slide [data-hide-at] { opacity: 0 !important; visibility: hidden !important; }
@media (prefers-reduced-motion: reduce) { .dk-slide [data-hide-at].is-out, .dk-slide [data-build][data-fx="grow"] { transition: none; } }

/* Parts that rise into place one by one (data-fx="up"), and plain fades. */
.dk-slide [data-build][data-fx="up"] { transform: translateY(80px); }
.dk-slide [data-build][data-fx="up"].is-in { transform: none; }

/* Parts that grey out at a later step (data-dim-at). */
.dk-slide [data-dim-at] { transition: opacity .6s ease, filter .6s ease; }
.dk-slide [data-dim-at].is-dim { opacity: .3 !important; filter: grayscale(1); }

/* Parts that slide to a new place at a later step (data-move-at), and parts that leave without a gap (data-gone). */
.dk-slide [data-move-at] { transition: transform .9s cubic-bezier(.2, .8, .2, 1), border-radius .6s ease; }
.dk-slide [data-move-at].is-moved { transform: var(--move) !important; border-radius: 28px !important; }
.dk-slide [data-hide-at][data-gone].is-out { display: none; }
@media (prefers-reduced-motion: reduce) { .dk-slide [data-move-at] { transition: none; } }

/* The lesson crumb is a menu of the other lessons' slides (owner, 2026-11-10). Chevron right when closed, down when open. */
.dk-crumb-menu { position: relative; }
.dk-crumb-btn { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px; margin: 0 -4px; font: inherit; color: #E6E1F5; background: none; border: 0; border-radius: 4px; cursor: pointer; }
.dk-crumb-btn:hover { color: #FEBBCC; }
.dk-crumb-btn:focus-visible { outline: 3px solid #FEBBCC; outline-offset: 3px; }
.dk-chev { transform: rotate(-90deg); transition: transform .15s ease; }
.dk-crumb-btn[aria-expanded="true"] .dk-chev { transform: rotate(0deg); }
@media (prefers-reduced-motion: reduce) { .dk-chev { transition: none; } }
.dk-lessons { position: absolute; left: 0; bottom: calc(100% + 14px); z-index: 60; min-width: 300px; max-width: min(92vw, 380px); padding: 14px; background: #EEE9FB; border: 2px solid #B6A5EE; border-radius: 16px; box-shadow: 0 18px 40px rgba(30, 8, 93, .35); white-space: normal; font-weight: 600; }
.dk-lessons[hidden] { display: none; }
.dk-lessons-h { margin: 0 0 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4A4170; }
.dk-lessons ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.dk-lessons li { display: block; margin: 0; }
.dk-lessons li::before { content: none !important; }
.dk-lessons a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; color: #1E085D; text-decoration: none; background: #F6F5F0; }
.dk-lessons a:hover { background: #FDEDF1; text-decoration: none; }
.dk-lessons a:focus-visible { outline: 3px solid #1E085D; outline-offset: 2px; }
.dk-lessons a[aria-current="true"] { background: #FEBBCC; }
.dk-lessons-n { flex: none; min-width: 4.4em; font-size: 0.8125rem; font-weight: 800; color: #4A4170; }
.dk-lessons .dk-lessons-page { display: block; margin-top: 10px; padding: 8px 10px; font-size: 0.8125rem; font-weight: 700; color: #4705D0; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
/* Process diagrams: a purple circle marks the step you are on; earlier steps turn grey. */
.dk-slide .pd-num[data-dim-at].is-dim { opacity: 1 !important; filter: none; background: #E4E1EE !important; color: #5B5277 !important; }
.dk-slide .pd-num { transition: background-color .3s ease, color .3s ease; }
@media (prefers-reduced-motion: reduce) { .dk-slide .pd-num { transition: none; } }

/* Paths (docs/design-decisions/0052-branching-slide-decks.md): the cards on a choice slide are buttons. Slides are
   fixed-size pictures, so sizes here are in slide pixels like the rest of the slide styles. */
.dk-slide .dk-choice { font: inherit; color: #1E085D; cursor: pointer; box-shadow: 6px 6px 0 rgba(30, 8, 93, .14); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.dk-slide .dk-choice:hover { border-color: #1E085D !important; transform: translateY(-4px); box-shadow: 6px 10px 0 rgba(30, 8, 93, .18); }
.dk-slide .dk-choice:focus-visible { outline: 6px solid #4705D0; outline-offset: 6px; }
.dk-slide .dk-choice[aria-pressed="true"] { border-color: #1E085D !important; border-width: 5px !important; }
.dk-slide .dk-choice-on { display: none; }
.dk-slide .dk-choice[aria-pressed="true"] .dk-choice-on { display: inline-flex; }
.dk-slide [data-choice-need]:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .dk-slide .dk-choice { transition: none; } .dk-slide .dk-choice:hover { transform: none; } }

/* Side panels on slides (docs/design-decisions/0058): a panel slides in from the right inside the slide, over a dimmed scrim.
   Slide pixels, like the rest of the slide styles. */
.dk-slide .dk-panel-scrim { position: absolute; inset: 0; z-index: 20; background: rgba(30, 8, 93, .45); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
.dk-slide .dk-panel-scrim.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.dk-slide .dk-panel { position: absolute; top: 0; right: 0; bottom: 0; z-index: 21; width: 860px; box-sizing: border-box; background: #F6F5F0; color: #1E085D; box-shadow: -24px 0 60px rgba(30, 8, 93, .28); transform: translateX(100%); visibility: hidden; transition: transform .32s ease, visibility 0s .32s; overflow: auto; }
.dk-slide .dk-panel.is-open { transform: none; visibility: visible; transition: transform .32s ease; }
.dk-slide .dk-panel [data-panel-focus]:focus { outline: none; }
.dk-slide .dk-panel :focus-visible { outline: 5px solid #4705D0; outline-offset: 4px; border-radius: 8px; }
.dk-slide .dk-tool { font: inherit; color: #1E085D; text-align: left; cursor: pointer; position: relative; box-shadow: 5px 5px 0 rgba(30, 8, 93, .14); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.dk-slide .dk-tool:hover { border-color: #1E085D !important; transform: translateY(-3px); box-shadow: 5px 8px 0 rgba(30, 8, 93, .18); }
.dk-slide .dk-tool:focus-visible { outline: 6px solid #4705D0; outline-offset: 6px; }
.dk-slide .dk-tool-tick { display: none; position: absolute; top: 14px; right: 14px; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; color: #3F6B1F; }
.dk-slide .dk-tool.is-done { border-color: #3F6B1F !important; }
.dk-slide .dk-tool.is-done .dk-tool-tick { display: inline-flex; }
@media (prefers-reduced-motion: reduce) { .dk-slide .dk-panel, .dk-slide .dk-panel.is-open, .dk-slide .dk-panel-scrim, .dk-slide .dk-panel-scrim.is-open, .dk-slide .dk-tool { transition: none; } .dk-slide .dk-tool:hover { transform: none; } }

/* Steps inside a side panel: one block at a time (js/lesson-deck.js). */
.dk-slide [data-panel-step][hidden] { display: none !important; }
.dk-slide [data-panel-choose] { font: inherit; color: #1E085D; text-align: left; cursor: pointer; box-shadow: 5px 5px 0 rgba(30, 8, 93, .14); transition: border-color .2s ease, transform .2s ease; }
.dk-slide [data-panel-choose]:hover { border-color: #1E085D !important; transform: translateY(-3px); }
.dk-slide [data-panel-choose][aria-pressed="true"] { border-color: #1E085D !important; border-width: 5px !important; }
@media (prefers-reduced-motion: reduce) { .dk-slide [data-panel-choose] { transition: none; } .dk-slide [data-panel-choose]:hover { transform: none; } }

/* Dev notes: a small button that opens the note (set-up reference decks, docs/design-decisions/0058). The slide's note opens upward over the slide;
   a panel's note opens in place. */
.dk-slide .dk-dev { position: absolute; left: 128px; right: 128px; bottom: 26px; z-index: 5; }
.dk-slide .dk-dev > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; background: #FBF6DA; border: 2px solid #F3E28A; border-radius: 999px; padding: 6px 20px; font-size: 20px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #1E085D; }
.dk-slide .dk-dev > summary::-webkit-details-marker { display: none; }
.dk-slide .dk-dev > summary::after { content: "+"; font-size: 26px; line-height: 1; }
.dk-slide .dk-dev[open] > summary::after { content: "\2212"; }
.dk-slide .dk-dev > summary:focus-visible { outline: 5px solid #4705D0; outline-offset: 4px; }
.dk-slide .dk-dev-body { background: #FBF6DA; border: 2px solid #F3E28A; border-radius: 18px; padding: 14px 22px; font-size: 22px; line-height: 1.4; color: #1E085D; }
.dk-slide .dk-dev[open] > .dk-dev-body { position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 10px; }
.dk-slide .dk-dev--panel { position: static; }
.dk-slide .dk-dev--panel[open] > .dk-dev-body { position: static; margin: 10px 0 0; font-size: 20px; }

/* A setting shown as a real switch with a picture that follows it (set-up reference decks). Pure CSS: the picture for the off position shows
   when the switch is off. */
.dk-slide .dk-sw { display: flex; flex-direction: column; gap: 14px; }
.dk-slide .dk-sw-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dk-slide .dk-sw-row { display: flex; justify-content: space-between; align-items: center; gap: 22px; background: #F0F4E8; border: 2px solid #D6E2BF; border-radius: 22px; padding: 18px 26px; cursor: pointer; font-size: 36px; font-weight: 800; color: #1E085D; }
.dk-slide .dk-sw-knob { flex: none; position: relative; width: 76px; height: 42px; border-radius: 21px; background: #B9B2D3; transition: background .2s ease; }
.dk-slide .dk-sw-knob::after { content: ""; position: absolute; top: 4px; left: 4px; width: 34px; height: 34px; border-radius: 50%; background: #FFFFFF; transition: transform .2s ease; }
.dk-slide .dk-sw-input:checked + .dk-sw-row .dk-sw-knob { background: #1E085D; }
.dk-slide .dk-sw-input:checked + .dk-sw-row .dk-sw-knob::after { transform: translateX(34px); }
.dk-slide .dk-sw-input:focus-visible + .dk-sw-row { outline: 5px solid #4705D0; outline-offset: 4px; }
.dk-slide .dk-sw-note { font-size: 26px; line-height: 1.4; color: #4A4170; }
.dk-slide .dk-sw-off { display: none; }
.dk-slide .dk-sw-input:not(:checked) ~ .dk-sw-views .dk-sw-off { display: block; }
.dk-slide .dk-sw-input:not(:checked) ~ .dk-sw-views .dk-sw-on { display: none; }
.dk-slide .dk-help:hover { background: #EEE9FB; }
.dk-slide .dk-help:focus-visible { outline: 5px solid #4705D0; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .dk-slide .dk-sw-knob, .dk-slide .dk-sw-knob::after { transition: none; } }
