/* Exam Prep (Study Path V2, paid Course Hub). Final converged design (owner 2026-11-24): source cards + station stepper, one cyan
   primary per screen, secondaries the same shape (flat, hairline), no tertiary text links. Uses the evo tokens (evo.css); no new colours.
   Cyan = action and "you are here"; yellow = the marked question on the real page (viewer) only; PYQ purple = past-paper provenance;
   notes blue = notes. No red/green, no correctness. Motion one level down; none under prefers-reduced-motion.
.sp2 { container: sp2 / inline-size; scroll-margin-top: calc(var(--header-height, 64px) + 64px); }
.sp2 > h2 { margin-bottom: 6px; }
/* a deep link (#sp/…) or a return from the viewer: the step replaces the server's first screen once the pack arrives. Until it paints,
   paint neither that first screen nor what follows it, and give the heading its step layout, so nothing moves when the step lands
   (laptop CLS). The flag is set by an inline line before first paint and cleared by studypath2.js; if the script never runs,
   everything shows after 4 s anyway. */
.sp2-deep .sp2 > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0; }
.sp2-deep .sp2-app, .sp2-deep #hub-path ~ * { visibility: hidden; animation: sp2-hold 0s 4s forwards !important; }   /* !important: evo.css stops every hub section's animation */
@keyframes sp2-hold { to { visibility: visible; } }

/* a task is the page: while a step is open the rest of the Course Hub (its hero, "Pick up where you left off", the course tab bar, the
   other sections, the footer) is set aside; the site header, the course tab bar (Exam Prep · Notes · Solutions · PYQs: one tap to the
   rest of the course) and the Sticky Note stay. */
.sp2-focus .content-slider.hub > :not(#hub-path):not(.hub-bar), .sp2-focus .header-wrapper, .sp2-focus body > .warning, .sp2-focus body > .quote-block,
.sp2-focus body > footer { display: none !important; }
.sp2-focus #hub-path { margin-top: 0 !important; padding-top: 12px; min-height: 100svh; }
.sp2-focus #hub-path > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0; }

.sp2-app { max-width: 640px; padding-bottom: 28px; color: var(--e-soft); }
.sp2-focus .sp2-app { max-width: 1120px; margin: 0 auto; padding: 0 0 96px; }   /* room under the last control for the floating Sticky Note */
.sp2-app a, .sp2-app button, .sp2-dlg a, .sp2-dlg button { padding-left: 0; padding-right: 0; }   /* the site-wide a, button { padding: 10px } rule */
.sp2-app h3, .sp2-app h4, .sp2-app p, .sp2-app ol, .sp2-app ul, .sp2-app figure, .sp2-dlg h2, .sp2-dlg p { margin: 0; padding: 0; }
.sp2-app ol, .sp2-app ul { list-style: none; }
.sp2-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sp2-app [data-focus]:focus { outline: none !important; box-shadow: none !important; }   /* headings get focus only to move the screen reader */
.sp2-app :focus-visible, .sp2-dlg :focus-visible { outline: 3px solid #fff !important; outline-offset: 3px; border-radius: 12px; }
.sp2-in > * { animation: sp2-in .16s ease-out both; }
@keyframes sp2-in { from { opacity: 0; transform: translateY(4px); } }
.sp2-adv .sp2-lead, .sp2-adv .sp2-done { animation: sp2-come .18s ease-out both; }
@keyframes sp2-come { from { opacity: 0; transform: translateX(8px); } }

/* ---------- buttons: one primary per screen; secondaries the same shape, flat, hairline. Most carry a second line saying what happens ---------- */
.sp2-b { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 50px; padding: 8px 16px !important; border-radius: 12px; border: 1px solid transparent;
  font: 600 16px/1.25 var(--f-ui, inherit); text-align: center; text-decoration: none !important; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none;
  transition: transform .14s var(--e-ease), background-color .14s, border-color .14s; -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
.sp2-b:active { transform: translateY(1px); }
.sp2-b small { font: 500 13px/1.3 var(--f-ui, inherit); opacity: .82; }
.sp2-b .sp2-bl { display: block; }
.sp2-p { background: var(--e-cy); color: var(--e-on-cy) !important; min-height: 54px; font-size: 17px; box-shadow: inset 0 -2px 0 rgba(3,37,45,.22), 0 1px 2px rgba(0,0,0,.4); }
.sp2-p:active { background: #19cfe8; box-shadow: inset 0 -1px 0 rgba(3,37,45,.22); }
.sp2-s { background: var(--e-s2); color: var(--e-text) !important; border-color: var(--e-line2); }
.sp2-s:active { background: var(--e-s3); }
.sp2-sm { min-height: 44px; padding: 6px 14px !important; font-size: 15px; flex-direction: row; gap: 7px; }
.sp2-w { width: 100%; }
.sp2-ic { display: inline-flex; flex: none; } .sp2-ic svg { display: block; }
.sp2-b[aria-busy] { pointer-events: none; }
.sp2-b.is-ok { flex-direction: row; gap: 8px; } .sp2-b.is-ok small { display: none; }
@media (hover: hover) and (pointer: fine) {
  .sp2-p:hover { background: #55eaff; } .sp2-s:hover { background: var(--e-s3); border-color: rgba(255,255,255,.26); }
  a.sp2-tcard:hover, .sp2-urow:hover, .sp2-mini:hover { background: var(--e-s2); border-color: var(--e-line2); }
}

/* ---------- shared ---------- */
.sp2-eb { font-size: 12.5px; font-weight: 600; line-height: 1.3; letter-spacing: .07em; text-transform: uppercase; color: var(--e-muted); }
.sp2-eb--cy { color: var(--e-cy); }
.sp2-tray { display: grid; gap: 12px; background: var(--e-s1); border: 1px solid var(--e-line); border-radius: 22px; padding: 14px; }
.sp2-card { background: var(--e-s2); border: 1px solid var(--e-line2); border-radius: 16px; padding: 12px; }
.sp2-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .sp2-pair.is-one { grid-template-columns: 1fr; }
.sp2-lede { font-size: 16px; color: var(--e-text); line-height: 1.5; margin-top: 8px !important; }
.sp2-why { margin-top: 6px !important; font-size: 14.5px; color: var(--e-muted); line-height: 1.45; }
.sp2-note { padding: 10px 6px 2px !important; font-size: 14.5px; color: var(--e-soft); line-height: 1.45; }
.sp2-note + .sp2-note { padding-top: 2px !important; }
.sp2-err { padding: 24px 0; display: grid; gap: 12px; max-width: 560px; }
/* the bar on every Exam Prep page: Back · (unit progress) · Change unit. Phones: the progress takes its own compact row under the two
   buttons; from 700 px it sits between them, with the unit's title */
.sp2-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "back . change" "prog prog prog"; align-items: center; column-gap: 10px; row-gap: 8px; min-height: 48px; margin-bottom: 12px; }
.sp2-top > .sp2-back { grid-area: back; justify-self: start; } .sp2-top > .sp2-change { grid-area: change; }
.sp2-top > .sp2-uprog { grid-area: prog; } .sp2-top > .sp2-top__u { grid-area: 1 / 2; }   /* the public preview keeps the plain unit label */
@media (min-width: 700px) {
  .sp2-top { grid-template-areas: "back prog change"; column-gap: 20px; }
  .sp2-top > .sp2-uprog { width: 100%; max-width: 480px; justify-self: center; }
  .sp2-top .sp2-uprog__t { display: inline; }
  .sp2-top > .sp2-uprog { align-self: start; padding-top: 6px; }   /* owner 2026-11-26: the label never lands under the sticky course bar (was 5 px with the first-topic helper) */
}
.sp2-back .sp2-ic { margin-left: -2px; } .sp2-back { gap: 4px; padding-left: 12px !important; padding-right: 14px !important; }
.sp2-top__u { flex: 1; min-width: 0; text-align: center; font-size: 15px; color: var(--e-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp2-top__u b { color: var(--e-text); font-weight: 600; } .sp2-top__u span { display: none; }
@media (max-width: 699px) { .sp2-top__u { visibility: hidden; } }
@media (min-width: 700px) { .sp2-top__u span { display: inline; } }
.sp2-nd { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--e-s3); color: var(--e-soft); font-size: 14px; font-weight: 700; line-height: 1; }
.sp2-nd.is-done { background: var(--e-ledge); color: #fff; } .sp2-nd.is-here { background: var(--e-cy); color: var(--e-on-cy); }
.sp2-chev { display: inline-flex; color: var(--e-muted); }
.sp2-vt { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 10px; background: linear-gradient(135deg, #1b2434, #0e131c); border: 1px solid var(--e-line2); color: #fff; overflow: hidden; }
.sp2-vt .sp2-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(5,7,11,.72); }
.sp2-vt em { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(5,7,11,.82); font: 600 12px/1.2 var(--f-ui, inherit); font-style: normal; }
.sp2-ktile { flex: none; display: grid; place-items: center; width: 88px; height: 56px; border-radius: 8px; background: var(--e-s3); border: 1px solid var(--e-line2); color: var(--e-soft); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.sp2-ktile.is-pyq { color: var(--e-pyq); }

/* ---------- entry (in the Course Hub) ---------- */
.sp2-promise { font-size: clamp(17px, 4.5vw, 20px); line-height: 1.4; color: var(--e-soft); max-width: 24em; text-wrap: balance; }
.sp2-promise b { color: var(--e-text); font-weight: 700; white-space: nowrap; background: linear-gradient(transparent 58%, var(--e-hl) 58%, var(--e-hl) 94%, transparent 94%); padding: 0 .12em; margin: 0 -.12em; }
.sp2-support { margin-top: 10px !important; font-size: 15px; color: var(--e-muted); max-width: 30em; line-height: 1.45; }
.sp2-entry .sp2-tray { margin-top: 18px; }
.sp2-unitline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sp2-uh { font-size: 20px !important; font-weight: 700; line-height: 1.2; color: var(--e-text); margin-top: 3px !important; text-wrap: balance; letter-spacing: 0; }
.sp2-flow { font-size: 14.5px; color: var(--e-soft); margin-top: -4px !important; }
/* the unit's progress (owner 2026-11-26): one continuous tube under "Unit n of N · x% complete". Route coverage, never mastery. The
   percentage is always written, so the fill is never the only signal; the track keeps a hairline edge so 0% still reads as a bar. */
.sp2-uprog { min-width: 0; }
.sp2-uprog__l { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; line-height: 1.3; color: var(--e-muted); margin-bottom: 5px !important; white-space: nowrap; }
.sp2-uprog__l > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sp2-uprog__l b { color: var(--e-text); font-weight: 600; }
.sp2-uprog__v { flex: none; font-variant-numeric: tabular-nums; }
.sp2-uprog__t { display: none; }
.sp2-uprog__bar { position: relative; height: 8px; border-radius: 999px; background: var(--e-s3); box-shadow: inset 0 0 0 1px var(--e-line2); overflow: hidden; }
.sp2-uprog__bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--e-cy); transition: width .45s var(--e-ease); }
.sp2-uprog--entry .sp2-uprog__l { font-size: 14px; }
.sp2-uprog--entry .sp2-uprog__bar { height: 10px; }
.sp2-uprog__h { margin: 6px 0 0 !important; font-size: 13px; line-height: 1.35; color: var(--e-muted); }
.sp2-next { display: flex; gap: 12px; align-items: center; }
.sp2-next__t { min-width: 0; }
.sp2-next__t strong { display: block; color: var(--e-text); font-weight: 600; line-height: 1.25; }
.sp2-next__t span { font-size: 14px; color: var(--e-muted); }

/* ---------- unit topics ---------- */
.sp2-uhead .sp2-h { font-size: clamp(26px, 7vw, 34px) !important; margin: 6px 0 8px !important; }

.sp2-topics { display: grid; gap: 8px; margin: 18px 0 !important; }
.sp2-tcard { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 11px 12px !important; min-height: 60px; background: var(--e-s1); border: 1px solid var(--e-line); border-radius: 16px; text-decoration: none; color: inherit; transition: background-color .14s; }
.sp2-tcard strong { display: block; color: var(--e-text); font-weight: 600; line-height: 1.25; } .sp2-m { font-size: 13.5px; color: var(--e-muted); }
.sp2-tcard.is-here { border: 1.5px solid rgba(34,229,255,.5); grid-template-columns: 30px 1fr; padding: 14px 12px !important; border-radius: 20px; }
.sp2-tcard.is-here .sp2-eb { margin-bottom: 2px !important; }
.sp2-tcard__go { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 2px; }

/* ---------- a step ---------- */
.sp2-task { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.sp2-task > * { min-width: 0; }
.sp2-topic { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--e-soft); margin-top: 2px !important; }
.sp2-h { font-size: clamp(22px, 5.8vw, 28px) !important; font-weight: 700; line-height: 1.18; letter-spacing: -.01em; color: var(--e-text); text-wrap: balance; }
.sp2-thead .sp2-h { margin-top: 16px !important; }
.sp2-acts { display: grid; gap: 10px; align-content: start; }
/* the topic's steps: three tabs (Learn · Practice · Past exam) that jump; dots under each say how far along that step you are */
.sp2-stepper { display: flex; gap: 4px; margin: 12px 0 0 !important; padding: 4px; background: var(--e-s1); border: 1px solid var(--e-line); border-radius: 14px; }
.sp2-sg { flex: 1 1 0; min-width: 0; display: grid; gap: 6px; align-content: center; min-height: 48px; padding: 7px 8px !important; border-radius: 10px; text-decoration: none; color: inherit; transition: background-color .14s; }
.sp2-sg.is-on { background: var(--e-s3); box-shadow: inset 0 0 0 1.5px rgba(34,229,255,.55); cursor: default; }
.sp2-sg__l { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 13.5px; font-weight: 600; line-height: 1.1; color: var(--e-muted); white-space: nowrap; }
.sp2-sg__l em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--e-muted); font-variant-numeric: tabular-nums; }
.sp2-sg.is-on .sp2-sg__l, .sp2-sg.is-on .sp2-sg__l em { color: var(--e-text); }
.sp2-sg.is-past .sp2-sg__l { color: var(--e-soft); }
.sp2-sg__n { display: flex; align-items: center; gap: 3px; height: 6px; overflow: hidden; }
.sp2-sg__n i { flex: 1 1 0; max-width: 22px; height: 4px; border-radius: 2px; background: var(--e-s3); transition: background-color .3s; }
.sp2-sg.is-on .sp2-sg__n i:not(.is-done):not(.is-here):not(.is-skip) { background: var(--e-line2); }
.sp2-sg__n i.is-done { background: var(--e-ledge); } .sp2-sg__n i.is-skip { background: var(--e-line2); }
.sp2-sg__n i.is-here { background: var(--e-cy); animation: sp2-lit .3s ease-out both; }
@keyframes sp2-lit { from { opacity: .3; } }
/* the step heading with previous / next question beside it */
.sp2-hrow { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.sp2-hrow .sp2-h { flex: 1; min-width: 0; margin-top: 0 !important; font-size: clamp(19px, 5vw, 22px) !important; }
.sp2-qpg { display: flex; gap: 6px; flex: none; }
.sp2-ib { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0 !important; display: inline-grid !important; place-items: center; }
.sp2-ib .sp2-bl:empty { display: none; }
.sp2-ib[disabled] { opacity: .35; cursor: default; }
/* previous / next topic, under the step's own actions */
.sp2-tnav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--e-line); }
.sp2-tn { display: grid !important; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; text-align: left; min-height: 56px; padding: 8px 10px !important; }
.sp2-tn--n { grid-template-columns: 1fr auto; text-align: right; }
.sp2-tn .sp2-ic { grid-row: 1 / span 2; }
.sp2-tn .sp2-bl { font-size: 13px; color: var(--e-muted); font-weight: 600; }
.sp2-tn small { font-size: 13.5px !important; color: var(--e-text) !important; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.sp2-tn--n .sp2-ic { grid-column: 2; }
.sp2-tn--n .sp2-bl, .sp2-tn--n small { grid-column: 1; }
/* topic list: started topics carry a ring; wide screens list every unit beside the topics */
.sp2-nd.is-prog { background: transparent; box-shadow: inset 0 0 0 2px var(--e-cy); color: var(--e-cy); }
.sp2-unav { display: none; }
@media (min-width: 900px) {
  .sp2-unav { display: grid; gap: 4px; grid-column: 1; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--e-line); }
  .sp2-unav__r { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; min-height: 52px; padding: 8px 10px !important; border-radius: 12px; text-decoration: none; color: inherit; }
  .sp2-unav__r strong { display: block; color: var(--e-text); font-weight: 600; font-size: 14.5px; line-height: 1.25; }
  .sp2-unav__r span span { font-size: 13px; color: var(--e-muted); }
  .sp2-unav__r.is-here { background: var(--e-s2); }
}
@media (hover: hover) and (pointer: fine) { a.sp2-sg:not(.is-on):hover, .sp2-unav__r:not(.is-here):hover { background: var(--e-s2); } }

/* the paper: provenance (a citation, not a badge), the source, its tools */
.sp2-paper { padding: 6px; background: var(--e-s1); border: 1px solid var(--e-line); border-radius: 20px; }
.sp2-prov { display: flex; align-items: flex-start; gap: 8px; padding: 6px 6px 10px !important; font-size: 12.5px; font-weight: 600; line-height: 1.35; letter-spacing: .06em; text-transform: uppercase; color: #F6F3EC; }
.sp2-prov::before { content: ""; flex: none; width: 3px; height: 17px; border-radius: 2px; background: #F6F3EC; }
.sp2-prov--pyq { color: var(--e-pyq); } .sp2-prov--pyq::before { background: var(--e-pyq); }
.sp2-prov--notes { color: var(--e-notes); } .sp2-prov--notes::before { background: var(--e-notes); }
.sp2-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.sp2-unavail { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px !important; border: 1px dashed var(--e-line2); border-radius: 12px; font-size: 14px; color: var(--e-muted); text-align: center; }
/* the document viewport: the student's own PDF, cut to the question, words re-wrapped */
.sp2-doc { background: #fff; border-radius: 14px; padding: 14px 12px 12px; min-height: 96px; cursor: zoom-in; }
.sp2-doc.is-sk { background: linear-gradient(100deg, #eef0f3 30%, #f8f9fa 50%, #eef0f3 70%) 0 0 / 200% 100%; animation: sp2-sh 1.4s linear infinite; }
.sp2-doc.is-sk .sp2-sp { visibility: hidden; }
@keyframes sp2-sh { to { background-position: -200% 0; } }
.sp2-sp { display: inline-block; margin: 2.5px 0; }
.sp2-dp { display: flex; } .sp2-dm { flex: none; font-size: 0; line-height: 0; } .sp2-dw { flex: 1; min-width: 0; font-size: 0; line-height: 0; }
.sp2-dw .sp2-sp { margin-right: 4px; }
.sp2-dwh { font-size: 0; line-height: 0; margin-top: 4px; }
.sp2-pan { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); cursor: auto; }
.sp2-pan.is-end { -webkit-mask-image: none; mask-image: none; }
.sp2-pan::-webkit-scrollbar { display: none; }
.sp2-pan__in { display: inline-flex; white-space: nowrap; }
.sp2-pan__hint { margin: 2px 0 4px !important; font-size: 13px; line-height: 1.3; color: #5b6472; }
.sp2-docfail { display: grid; gap: 10px; justify-items: start; color: #333; font-size: 15px; }
/* Read as text */
.sp2-typed { margin-top: 6px; padding: 14px; background: var(--e-s2); border: 1px solid var(--e-line2); border-radius: 14px; color: var(--e-text); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.sp2-typed h4 { font-size: 12.5px; font-weight: 600; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--e-muted); margin: 0 0 8px; }
.sp2-tx p + p, .sp2-tx .sp2-mth + p, .sp2-tx .sp2-tabw + p { margin-top: 8px; }
.sp2-typed sub, .sp2-typed sup { font-size: .72em; line-height: 0; }
.sp2-mth { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 10px 0; overflow-x: auto; font-variant-numeric: tabular-nums; overflow-wrap: normal; }   /* the left side moves above the cases when the phone is narrow */
.sp2-mth > span:first-child { white-space: nowrap; }
.sp2-mth__g { display: flex; align-items: center; min-width: 0; }
.sp2-brace { font-weight: 200; line-height: 1; transform: scaleX(.7); margin: 0 -4px; }
.sp2-mth table { border-collapse: collapse; } .sp2-mth td { padding: 1px 12px 1px 0; vertical-align: top; } .sp2-mth td:first-child { white-space: nowrap; } .sp2-mth td + td { min-width: 6.5em; }   /* a case's condition wraps in its own cell, never leaving its row */
.sp2-tabw { overflow-x: auto; margin: 10px 0; max-width: 100%; }
.sp2-tab { border-collapse: collapse; font-variant-numeric: tabular-nums; overflow-wrap: normal; }
.sp2-tab th, .sp2-tab td { padding: 5px 10px; border: 1px solid var(--e-line2); text-align: center; white-space: nowrap; }
.sp2-tab th { color: var(--e-soft); font-weight: 600; }
.sp2-mth.is-wide, .sp2-tabw.is-wide { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }   /* still wider than the card: a visible fade says it scrolls */
.sp2-parts { margin-top: 8px !important; } .sp2-parts li { margin-top: 8px; } .sp2-parts li > b { font-weight: 600; } .sp2-tx--in { display: inline; } .sp2-tx--in > p:first-child { display: inline; }
.sp2-opts { margin: 6px 0 0 !important; color: var(--e-text); line-height: 1.55; }
.sp2-opts li { padding: 2px 0; }
.sp2-opts[type="a"] { counter-reset: o; } .sp2-opts[type="a"] li { counter-increment: o; display: grid; grid-template-columns: 2.1em 1fr; } .sp2-opts[type="a"] li::before { content: "(" counter(o, lower-alpha) ")"; color: var(--e-soft); }
.sp2-opts[type="i"] { counter-reset: o; } .sp2-opts[type="i"] li { counter-increment: o; display: grid; grid-template-columns: 2.6em 1fr; } .sp2-opts[type="i"] li::before { content: "(" counter(o, lower-roman) ")"; color: var(--e-soft); }
/* Need help, More videos: a secondary that opens in place */
.sp2-help summary { list-style: none; flex-direction: row; justify-content: space-between; width: 100%; }
.sp2-help summary::-webkit-details-marker { display: none; }
.sp2-help summary .sp2-ic { transition: transform .16s; } .sp2-help[open] summary .sp2-ic { transform: rotate(180deg); }
.sp2-help__body { display: grid; gap: 8px; padding: 12px; margin-top: 8px; background: var(--e-s1); border: 1px solid var(--e-line); border-radius: 16px; }
.sp2-help__body > p { font-size: 14.5px; color: var(--e-muted); padding: 0 2px !important; line-height: 1.45; }
.sp2-help__body > p.sp2-status { color: var(--e-text); } .sp2-status:empty { display: none; }
/* learn */
.sp2-choose { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--e-text); margin: 0 0 10px; }
.sp2-srcs { display: grid; gap: 10px; }
.sp2-srccard { display: grid; gap: 12px; padding: 10px; background: var(--e-s1); border: 1px solid var(--e-line); border-radius: 20px; }
.sp2-srccard__top { display: grid; grid-template-columns: 116px 1fr; gap: 12px; align-items: center; }
.sp2-srccard__top strong { color: var(--e-text); font-weight: 600; line-height: 1.25; display: block; }
.sp2-nt { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 10px; background: #F6F3EC; color: #3a4a66; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-left: 4px solid var(--e-notes); }
.sp2-vbig { display: block; text-decoration: none; } .sp2-vbig .sp2-vt { aspect-ratio: 16 / 9; border-radius: 14px; }
.sp2-cap { padding: 10px 6px 4px !important; } .sp2-cap strong { display: block; color: var(--e-text); font-weight: 600; line-height: 1.3; }
.sp2-player { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.sp2-player > .sp2-vt { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; }
.sp2-player__wait { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 8px; background: rgba(5,7,11,.8); color: var(--e-text); font-size: 13px; }
.sp2-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .2s; }
.sp2-player.is-ready iframe { opacity: 1; } .sp2-player.is-ready .sp2-player__wait { display: none; }
.sp2-mini { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px 8px 8px !important; min-height: 60px; background: var(--e-s1); border: 1px solid var(--e-line); border-radius: 14px; text-decoration: none; color: var(--e-muted); }
.sp2-mini strong { color: var(--e-text); font-weight: 600; font-size: 15px; line-height: 1.25; display: block; } .sp2-mini span { font-size: 13.5px; color: var(--e-muted); }
.sp2-pages { display: grid; gap: 8px; }
.sp2-pg { position: relative; border-radius: 14px; overflow: hidden; background: #fff; }
.sp2-pg.is-sk { background: linear-gradient(100deg, #eef0f3 30%, #f8f9fa 50%, #eef0f3 70%) 0 0 / 200% 100%; animation: sp2-sh 1.4s linear infinite; }
.sp2-pg canvas { display: block; width: 100%; height: auto; }
.sp2-pg figcaption { position: absolute; top: 8px; right: 8px; padding: 4px 9px; border-radius: 8px; background: rgba(9,12,18,.82); color: var(--e-text); font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.sp2-skipto { display: grid; gap: 8px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--e-line); }
.sp2-skipto p { font-size: 15px; color: var(--e-soft); }
/* finished */
.sp2-done { display: grid; gap: 12px; padding-top: 12px; max-width: 560px; }
.sp2-done .sp2-h { margin: 8px 0 2px !important; }
.sp2-fin { display: flex; align-items: center; gap: 7px; color: var(--e-soft); font-size: 15px; } .sp2-fin .sp2-ic { color: var(--e-cy); }

/* ---------- dialogs (outside .sp2-app): Change unit sheet, Enlarge ---------- */
.sp2-dlg { border: 0; padding: 0; margin: 0; color: var(--e-soft); background: transparent; max-width: none; max-height: none; font-family: var(--f-ui, inherit); }
.sp2-dlg::backdrop { background: rgba(3,5,9,.66); animation: sp2-fade .2s both; }
@keyframes sp2-fade { from { opacity: 0; } }
.sp2-dlg.is-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 560px; margin: 0 auto; max-height: 92dvh; overflow: auto; overscroll-behavior: contain; background: var(--e-s1); border: 1px solid var(--e-line2); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); animation: sp2-up .26s var(--e-ease) both; box-sizing: border-box; }
@keyframes sp2-up { from { transform: translateY(100%); } }
.sp2-dlg.is-closing { animation: sp2-down .15s ease-in both; } .sp2-dlg.is-closing::backdrop { animation: sp2-fade .15s reverse both; }
@keyframes sp2-down { to { transform: translateY(100%); } }
.sp2-grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--e-s3); margin: 4px auto 10px; }
.sp2-sheet__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; touch-action: none; }
.sp2-sheet__h h2 { font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--e-text); }
.sp2-sheet__sub { margin: 4px 0 14px !important; font-size: 14.5px; color: var(--e-muted); }
.sp2-units { display: grid; gap: 8px; margin-bottom: 14px; }
.sp2-urow { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; width: 100%; min-height: 60px; padding: 8px 12px !important; background: var(--e-s2); border: 1px solid var(--e-line2); border-radius: 14px; color: var(--e-muted); font: inherit; text-align: left; cursor: pointer; transition: background-color .14s; }
.sp2-urow.is-here { border: 1.5px solid rgba(34,229,255,.55); }
.sp2-urow__t { min-width: 0; line-height: 1.25; } .sp2-urow__t strong { color: var(--e-text); font-weight: 600; display: block; } .sp2-urow__t span { font-size: 13.5px; color: var(--e-muted); display: block; }
.sp2-tag { font-size: 11.5px; font-weight: 700; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--e-cy); }
@media (min-width: 900px) { .sp2-dlg.is-sheet { inset: 0; margin: auto; height: fit-content; border-radius: 24px; border-bottom: 1px solid var(--e-line2); padding-bottom: 18px; animation: sp2-fade .18s both; } .sp2-grab { visibility: hidden; margin-bottom: 0; } }
.sp2-dlg.is-zoom { position: fixed; inset: 0; width: 100%; height: 100dvh; background: var(--e-bg); display: none; grid-template-rows: auto 1fr auto; }
.sp2-dlg.is-zoom[open] { display: grid; }
.sp2-zm__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px max(16px, env(safe-area-inset-left)); border-bottom: 1px solid var(--e-line); }
.sp2-zm__bar .sp2-prov { padding: 0 !important; }
.sp2-zm__view { position: relative; overflow: hidden; background: var(--e-s1); touch-action: none; cursor: grab; outline-offset: -3px; }
.sp2-zm__sheet { position: absolute; left: 0; top: 0; width: 100%; padding: 20px 14px; box-sizing: border-box; transform-origin: 0 0; background: #fff; will-change: transform; }
@media (min-width: 700px) { .sp2-zm__sheet { padding: 40px 24px; } }
.sp2-zm__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--e-line); background: var(--e-s1); }
.sp2-zm__foot .sp2-sm { min-width: 48px; } .sp2-zm__foot .sp2-grow { flex: 1; }
@media (min-width: 700px) { .sp2-zm__foot { justify-content: flex-end; } .sp2-zm__foot .sp2-grow { flex: none; } }

@media (max-width: 349px) { .sp2-paper { padding: 4px; } .sp2-doc { padding: 12px 7px 10px; } .sp2-tray { padding: 12px; } }

/* ---------- desktop: the source left, what to do right (sticky) ---------- */
@media (min-width: 900px) {
  .sp2-unitpg { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 0 64px; align-items: start; }
  .sp2-unitpg .sp2-top { grid-column: 1 / -1; } .sp2-unitpg .sp2-uhead { grid-column: 1; grid-row: 2; padding-top: 12px; }
  .sp2-unitpg .sp2-topics { margin-top: 0 !important; grid-row: 2 / span 4; grid-column: 2; } .sp2-unitpg .sp2-ufoot { grid-column: 1; grid-row: 3; margin-top: 20px; }
  .sp2-unitpg .sp2-unav { grid-row: 4; }
  .sp2-task { grid-template-columns: minmax(0, 1fr) 350px; gap: 18px 44px; align-items: start; }
  .sp2-task > .sp2-thead, .sp2-task > .sp2-acts { grid-column: 2; } .sp2-task > .sp2-lead { grid-column: 1; grid-row: 1 / span 3; }
  .sp2-task > .sp2-acts { position: sticky; top: calc(var(--header-height, 64px) + 24px); }
  .sp2-paper { padding: 10px; } .sp2-doc { padding: 22px 24px; }
  .sp2-pages { grid-template-columns: 1fr 1fr; }
  .sp2-done { margin: 40px auto 0; }
}
@media (prefers-reduced-motion: reduce) { .sp2-app *, .sp2-app *::before, .sp2-app *::after, .sp2-dlg, .sp2-dlg *, .sp2-dlg::backdrop, .sp2-in > *, .sp2-adv .sp2-lead, .sp2-adv .sp2-done { animation: none !important; transition: none !important; } }

/* a course's self-check (diagram elements, answer parts): ticked by the student, never stored, never graded (as freeze 3) */
.sp2-chkw { margin: 12px 0 0; max-width: 640px; }
.sp2-chk { list-style: none; margin: 4px 0 0; padding: 0; }
.sp2-chk li { display: flex; align-items: center; gap: 12px; min-height: 46px; border-bottom: 1px solid var(--e-line); }
.sp2-chk input { width: 22px; height: 22px; margin: 0; accent-color: var(--e-cy); flex: none; }
.sp2-chk label { flex: 1; padding: 10px 0; color: var(--e-text); cursor: pointer; }

/* hub tab bar (carried over unchanged from V1 studypath.css, which a V2 hub does not load): the 4th tab gets a short label on phones,
   tighter tabs on the smallest, and a bar that scrolls whenever it overflows (auto margins centre it when it fits, never clip the first tab) */
.hub-bar:has(.hub-tab-path) .hub-tabs { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; overscroll-behavior-x: contain; }
.hub-bar:has(.hub-tab-path) .hub-tabs::-webkit-scrollbar { display: none; }
.hub-bar:has(.hub-tab-path) .hub-tabs > a { flex: 0 0 auto; }
.hub-bar:has(.hub-tab-path) .hub-tabs > a:first-child { margin-left: auto; }
.hub-bar:has(.hub-tab-path) .hub-tabs > a:last-child { margin-right: auto; }
@media (max-width: 420px) { .hub-tab-sp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (max-width: 360px) { .hub-bar:has(.hub-tab-path) .hub-tabs { gap: 2px !important; } .hub-bar:has(.hub-tab-path) .hub-tabs > a { padding-left: 6px !important; padding-right: 6px !important; gap: 4px !important; font-size: .84rem; } }
.hub-tab-path { --k: var(--e-cy); }
/* a fade shows there is more to scroll, only while the bar overflows (class set by studypath2.js) */
.hub-tabs.sp-overflow { mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
/* public hub locked card (carried over unchanged from V1 studypath.css: the public V2 hub renders the same sp-lock markup) */
.sp-lock { --k: var(--e-cy); }
.sp-lock-in { max-width: 760px; padding: 20px 22px 18px; border-radius: var(--e-r-card); background: var(--e-s1); border: 1.5px solid rgba(34,229,255,.45); }
.sp-lock-t { margin: 0 0 10px; color: var(--e-text); font-size: 1.08rem; font-weight: 650; line-height: 1.4; letter-spacing: -.005em; }
.sp-lock-l { margin: 0 0 16px; padding-left: 1.1em; display: grid; gap: 5px; color: var(--e-soft); font-size: .94rem; line-height: 1.45; }
.sp-lock-l li::marker { color: var(--e-cy); }
.sp-lock-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; }
.sp-lock-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; background: var(--e-cy); color: var(--e-on-cy); font-weight: 700; text-decoration: none; }
.sp-lock-btn:hover { background: #63f0ff; }
.sp-lock-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sp-lock-k { color: var(--e-muted); font-size: .84rem; }

/* cohesion pass 2026-11-25: Change unit is one line everywhere, whatever the unit title's length */
.sp2-change { flex: none; white-space: nowrap; }
.sp2-tcard.is-here { cursor: pointer; }

/* a long video title in "More videos" wraps inside its row (320 px) */
.sp2-mini > div { min-width: 0; overflow-wrap: anywhere; }

/* owner 2026-11-25: the topic list says unmistakably which unit it is (big number, step to the next/previous unit beside it),
   what finishing it gives you, and labels both lists */
.sp2-unum { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp2-unum__n { font-size: clamp(30px, 9vw, 44px); line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--e-text); margin: 0 !important; }
.sp2-unum__n span { color: var(--e-cy); } .sp2-unum__n b { color: var(--e-cy); font-weight: 800; } .sp2-unum__n em { font-style: normal; font-weight: 600; color: var(--e-muted); font-size: .55em; letter-spacing: 0; }
.sp2-uhead .sp2-h { margin: 10px 0 8px !important; }
.sp2-goal { font-size: 15.5px; line-height: 1.5; color: var(--e-text); max-width: 34em; margin: 6px 0 0 !important; }
.sp2-goal b { color: var(--e-text); }
.sp2-uhead .sp2-flow { margin-top: 8px !important; font-size: 14px; color: var(--e-muted); }
.sp2-lh { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--e-muted); margin: 18px 0 8px !important; }
.sp2-lh span { color: var(--e-cy); }
.sp2-tlist .sp2-topics { margin-top: 0 !important; }
@media (min-width: 900px) {
  .sp2-unitpg .sp2-tlist { grid-column: 2; grid-row: 2 / span 4; } .sp2-unitpg .sp2-tlist .sp2-lh { margin-top: 0 !important; }
  .sp2-unav .sp2-lh { margin: 0 0 4px !important; padding: 0 10px; }
}

.sp2-entry .sp2-goal { font-size: 14.5px; margin-top: 4px !important; }

/* owner 2026-11-25: a smaller entry on phones (same content; tighter type and spacing; touch targets stay >= 44 px) */
@media (max-width: 699px) {
  .sp2-promise { font-size: clamp(16.5px, 4.4vw, 18px); line-height: 1.35; }
  .sp2-support, .sp2-entry .sp2-goal { font-size: 13.5px; line-height: 1.4; margin-top: 6px !important; }
  .sp2-entry .sp2-goal { margin-top: 3px !important; }
  .sp2-entry .sp2-tray { margin-top: 12px; gap: 9px; padding: 12px 14px 14px; border-radius: 18px; }
  .sp2-entry .sp2-uh { font-size: 18px !important; }
  .sp2-entry .sp2-flow { font-size: 13.5px; }
  .sp2-app:not(.sp2-focus .sp2-app) { padding-bottom: 8px; }
}

/* owner 2026-11-25: a smaller topic list on phones (same content; tighter type and spacing; text >= 13 px, targets >= 44 px) */
@media (max-width: 699px) {
  .sp2-unitpg .sp2-top { margin-bottom: 8px; }
  .sp2-unum__n { font-size: clamp(26px, 7.5vw, 32px); }
  .sp2-unitpg .sp2-uhead .sp2-h { font-size: clamp(20px, 5.6vw, 24px) !important; margin: 6px 0 4px !important; }
  .sp2-unitpg .sp2-goal { font-size: 13.5px; line-height: 1.4; margin-top: 2px !important; }
  .sp2-unitpg .sp2-uhead .sp2-flow { font-size: 13px; margin-top: 4px !important; }
  .sp2-unitpg .sp2-lh { margin: 12px 0 6px !important; font-size: 13px; }
  .sp2-unitpg .sp2-topics { gap: 6px; }
  .sp2-unitpg .sp2-tcard { min-height: 52px; padding: 8px 10px !important; gap: 10px; grid-template-columns: 26px 1fr auto; border-radius: 14px; }
  .sp2-unitpg .sp2-tcard.is-here { grid-template-columns: 26px 1fr; padding: 10px !important; border-radius: 16px; }
  .sp2-unitpg .sp2-tcard strong { font-size: 14.5px; }
  .sp2-unitpg .sp2-tcard .sp2-m { font-size: 13px; }
  .sp2-unitpg .sp2-nd { width: 26px; height: 26px; font-size: 13px; }
  .sp2-unitpg .sp2-tcard__go { gap: 8px; }
}

@media (max-width: 699px) { .sp2-unitpg .sp2-tcard .sp2-m { display: block; line-height: 1.35; margin-top: 2px; } .sp2-unitpg .sp2-tcard strong { line-height: 1.25; } }

/* owner 2026-11-25: smaller step screens on phones (the frame around the question only; the question's own rendering is untouched) */
@media (max-width: 699px) {
  .sp2-screen .sp2-top { margin-bottom: 6px; }
  .sp2-screen .sp2-task { gap: 10px; }
  .sp2-screen .sp2-topic { font-size: 14.5px; }
  .sp2-screen .sp2-stepper { margin-top: 8px !important; padding: 3px; }
  .sp2-screen .sp2-sg { min-height: 44px; padding: 5px 8px !important; gap: 5px; }
  .sp2-screen .sp2-hrow { margin-top: 10px; }
  .sp2-screen .sp2-thead .sp2-h { margin-top: 10px !important; }
  .sp2-screen .sp2-hrow .sp2-h { font-size: clamp(18px, 5vw, 20px) !important; }
  .sp2-screen .sp2-thead > .sp2-h { font-size: clamp(20px, 5.4vw, 22px) !important; }
  .sp2-screen .sp2-why, .sp2-screen .sp2-lede { font-size: 13.5px; margin-top: 4px !important; }
  .sp2-screen .sp2-acts { gap: 8px; }
  .sp2-screen .sp2-tnav { margin-top: 2px; padding-top: 8px; }
  .sp2-screen .sp2-tn { min-height: 52px; padding: 6px 10px !important; }
  .sp2-screen .sp2-skipto { margin-top: 0; }
}

@media (max-width: 359px) { .sp2-screen .sp2-hrow .sp2-h { font-size: 17px !important; } .sp2-screen .sp2-qpg { gap: 4px; } }

/* owner 2026-11-25: on laptops the entry is two columns: the promise and what was sorted on the left, the unit card on the right */
@media (min-width: 900px) {
  html:not(.sp2-focus) .sp2-app { max-width: 1120px; }
  .sp2-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); column-gap: 56px; align-items: start; }
  .sp2-entry > .sp2-promise, .sp2-entry > .sp2-support, .sp2-entry > .sp2-goal { grid-column: 1; }
  .sp2-entry > .sp2-promise { font-size: 24px; max-width: 18em; }
  .sp2-entry > .sp2-tray { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
}

@media (min-width: 900px) { .sp2-entry { grid-template-rows: auto auto 1fr; } .sp2-entry > .sp2-goal { align-self: start; } }

/* owner 2026-11-25 (laptops, redone properly): Exam Prep uses the Course Hub's own content width (1200 px, the same edges as Lecture Notes)
   ENTRY: two equal columns, the text block centred against the unit card. TOPIC LIST: from 1200 px the topics sit in two columns, the
   "you are here" card across both; below that, one column (cards never narrower than ~380 px). */
@media (min-width: 900px) {
  html:not(.sp2-focus) .sp2-app { max-width: none; }
  .sp2-focus .sp2-app { max-width: 1200px; }
  .sp2-entry { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; column-gap: 48px; align-items: center; }
  .sp2-entry > .sp2-promise, .sp2-entry > .sp2-support, .sp2-entry > .sp2-goal { grid-column: 1; align-self: auto; }
  .sp2-entry > .sp2-tray { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .sp2-entry > .sp2-promise { font-size: clamp(22px, 2vw, 28px); line-height: 1.3; max-width: 20em; }
  .sp2-entry > .sp2-support { font-size: 15.5px; margin-top: 14px !important; max-width: 34em; }
  .sp2-entry > .sp2-goal { font-size: 15.5px; margin-top: 4px !important; max-width: 34em; }
  .sp2-unitpg { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: 48px; }
}
@media (min-width: 1200px) {
  .sp2-unitpg .sp2-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .sp2-unitpg .sp2-topics > li { display: grid; }
  .sp2-unitpg .sp2-topics > .sp2-tcard.is-here { grid-column: 1 / -1; }
  .sp2-unitpg .sp2-topics > li > a.sp2-tcard { height: 100%; box-sizing: border-box; }
}

@media (min-width: 900px) {
  .sp2-entry > .sp2-intro { grid-column: 1; grid-row: 1; align-self: center; }
  .sp2-entry > .sp2-tray { grid-row: 1; }
  .sp2-intro > .sp2-promise { font-size: clamp(22px, 2vw, 28px); line-height: 1.3; max-width: 20em; }
  .sp2-intro > .sp2-support { font-size: 15.5px; margin-top: 14px !important; max-width: 34em; }
  .sp2-intro > .sp2-goal { font-size: 15.5px; margin-top: 4px !important; max-width: 34em; }
}

@media (min-width: 900px) { .sp2-entry { align-items: start; } .sp2-entry > .sp2-intro, .sp2-entry > .sp2-tray { align-self: start; } .sp2-entry > .sp2-intro { padding-top: 10px; } }
/* the top bar keeps Change unit at the right edge even when the unit label is not shown (the topic list names the unit itself) */
.sp2-top { justify-content: space-between; }
@media (min-width: 900px) {
  /* topic list: the header and the units list sit together at the top of the left column; the topics take the right column */
  .sp2-unitpg { grid-template-rows: auto auto 1fr; }
  .sp2-unitpg .sp2-uhead { grid-row: 2; }
  .sp2-unitpg .sp2-unav { grid-column: 1; grid-row: 3; align-self: start; }
  .sp2-unitpg .sp2-tlist { grid-column: 2; grid-row: 2 / span 2; }
}

.sp2-focus #hub-path { padding-top: 16px; }
@media (min-width: 900px) { .sp2-focus #hub-path { padding-top: 22px; } .sp2-screen .sp2-top, .sp2-unitpg .sp2-top { margin-bottom: 18px; } }

/* owner 2026-11-25: step screens on laptops, properly two columns. The topic header spans the screen (where you are: topic, its steps,
   which question); below it the material (left) and what to do (right) start on the same line. One column template for both rows,
   so the step tabs sit exactly above the actions. */
@media (min-width: 900px) {
  .sp2-task { grid-template-columns: minmax(0, 1fr) 360px; gap: 22px 44px; align-items: start; }
  .sp2-task > .sp2-thead { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 44px; align-items: end;
    padding-bottom: 18px; border-bottom: 1px solid var(--e-line); }
  .sp2-thead > .sp2-eb { grid-column: 1; grid-row: 1; }
  .sp2-thead > .sp2-topic { grid-column: 1; grid-row: 2; }
  .sp2-thead > .sp2-hrow, .sp2-thead > .sp2-h { grid-column: 1; grid-row: 3; }
  .sp2-thead > .sp2-stepper { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin: 0 !important; }
  .sp2-thead > :not(.sp2-eb):not(.sp2-topic):not(.sp2-hrow):not(.sp2-h):not(.sp2-stepper) { grid-column: 1 / -1; }
  .sp2-thead > .sp2-hrow { margin-top: 14px; max-width: 640px; }
  .sp2-thead > .sp2-h { margin-top: 14px !important; }
  .sp2-task > .sp2-lead { grid-column: 1; grid-row: 2; }
  .sp2-task > .sp2-acts { grid-column: 2; grid-row: 2; position: sticky; top: calc(var(--header-height, 64px) + 24px); }
  /* the topic header is the same on every step, so the heading is the step's name at a calm size */
  .sp2-screen .sp2-thead .sp2-h { font-size: 24px !important; }
}

@media (min-width: 900px) { .sp2-thead > .sp2-hrow { max-width: none; justify-content: flex-start; gap: 16px; } .sp2-thead > .sp2-hrow .sp2-h { flex: none; } }

/* owner 2026-11-25: topic finished / end of unit, two columns on desktop like the step screens: what you finished (left), what's next (right) */
.sp2-done__l, .sp2-done__r { display: grid; gap: 12px; align-content: start; min-width: 0; }
@media (min-width: 900px) {
  .sp2-done { max-width: none; margin: 8px 0 0; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 44px; align-items: start; }
  .sp2-done .sp2-h { font-size: 28px !important; }
}

.sp2-cap span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--e-muted); }

/* a topic with only one neighbour: that card takes the full row (no half-empty pager) */
.sp2-tnav > span:empty { display: none; }
.sp2-tnav > a:only-of-type { grid-column: 1 / -1; }

/* Need help / See the solution (2026-11-25): a heading per group, an existing solution as its original (paper like the question,
   Solutions green edge), two copy-for-AI handoffs side by side when there is room, one quiet check line. Secondary actions only. */
.sp2-help__h { margin: 2px 2px 0; font-size: 15px; font-weight: 700; color: var(--e-text); }
.sp2-help__body > .sp2-help__h + p { margin-top: -4px; }
.sp2-help__body > p.sp2-solnone { color: var(--e-soft); }
.sp2-ai { display: grid; gap: 8px; }
.sp2-help__body > p.sp2-aichk { font-size: 13px; color: var(--e-muted); margin-top: -2px; }
.sp2-solfig { padding: 4px; border-color: var(--e-sol-line, rgba(103,214,168,.32)); }
.sp2-solfig .sp2-prov { color: var(--e-sol, #67D6A8); } .sp2-solfig .sp2-prov::before { background: var(--e-sol, #67D6A8); }
.sp2-soldoc { cursor: zoom-in; }
.sp2-solfig .sp2-tools { grid-template-columns: auto 1fr; align-items: center; }
.sp2-solnote { font-size: 13px; color: var(--e-muted); line-height: 1.35; padding: 0 4px !important; }
.sp2-help--sol > summary { border-color: var(--e-sol-line, rgba(103,214,168,.32)); }
.sp2-help--sol > summary .sp2-bl::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--e-sol, #67D6A8); vertical-align: 1px; }
@media (min-width: 430px) and (max-width: 899px) { .sp2-ai { grid-template-columns: 1fr 1fr; } }
/* the Sticky Note launcher floats bottom-right: a help control scrolled or focused into view stops above it, never under it */
.sp2-help__body .sp2-b, .sp2-help > summary, .sp2-acts > .sp2-b { scroll-margin-bottom: 112px; }

/* ---------- Exam Prep lessons (owner 2026-12-04 "Merge into Exam Prep"): the priority block, the plan list, the lesson cards ----------
   Lessons are the one place Exam Prep checks an answer (the quick check) and shows a model answer, labelled as UniCheatSheet's.
   Right = solutions green, "not quite" = a calm amber; never red. */

/* the plan: one path of lessons, biggest marks first, a band per step */
.sp2-lesson { max-width: 720px; margin: 0 auto; }
.sp2-lbar { height: 12px; border-radius: 999px; background: var(--e-s3); overflow: hidden; }
.sp2-lbar > i { display: block; height: 100%; border-radius: inherit; background: var(--e-cy); transition: width .4s var(--e-ease); }

/* a lesson: one card at a time, one primary */
.sp2-lesson .sp2-task, .sp2-lesson .sp2-task > .sp2-acts { grid-template-columns: minmax(0, 1fr) !important; position: static !important; }
.sp2-lesson .sp2-task > * { grid-column: 1 !important; grid-row: auto !important; }
.sp2-lesson .sp2-h { font-size: 26px; line-height: 1.2; color: var(--e-text); margin-top: -8px !important; }
.sp2-lesson .sp2-acts { margin-top: 6px; }
.sp2-les { color: var(--e-soft); font-size: 16.5px; line-height: 1.6; min-width: 0; }
.sp2-les p, .sp2-lans p { overflow-wrap: anywhere; }
.sp2-p:disabled { opacity: .45; cursor: default; }
.sp2-les > * + * { margin-top: 12px !important; }
.sp2-les p.big { font-size: 19.5px; line-height: 1.55; color: var(--e-text); }
.sp2-les b { color: var(--e-text); }
.sp2-les ol, .sp2-les ul { padding-left: 22px !important; } .sp2-les ol { list-style: decimal; } .sp2-les ul { list-style: disc; } .sp2-les li { margin: 4px 0; }
.sp2-les .muted, .sp2-les figcaption { color: var(--e-muted); font-size: 14px; }
.sp2-les .f { color: #FFB86B; font-weight: 700; }
.sp2-les .formula { border-left: 4px solid var(--e-cy); background: var(--e-s1); border-radius: 0 12px 12px 0; padding: 10px 14px; font-variant-numeric: tabular-nums; color: var(--e-text); }
.sp2-les .tw { overflow-x: auto; background: var(--e-s1); border: 1px solid var(--e-line); border-radius: 14px; padding: 4px 14px; }
.sp2-les table { border-collapse: collapse; font-size: 15px; width: 100%; }
.sp2-les th, .sp2-les td { border-bottom: 1px solid var(--e-line); padding: 8px 12px 8px 0; text-align: left; vertical-align: top; }
.sp2-les tr:last-child td { border-bottom: 0; }
.sp2-les th { font-weight: 700; color: var(--e-muted); font-size: 13px; }
.sp2-les table.pr td, .sp2-les table.pr th { text-align: center; padding: 5px 4px; min-width: 26px; }
.sp2-les table.pr td:first-child, .sp2-les table.pr th:first-child { text-align: left; white-space: nowrap; }
.sp2-les pre { font: 14px/1.5 ui-monospace, Menlo, Consolas, monospace; background: var(--e-dark); color: var(--e-text); border: 1px solid var(--e-line); padding: 12px 14px; border-radius: 12px; overflow-x: auto; }
.sp2-les figure.dia { background: #fff; border-radius: 14px; padding: 12px; }
.sp2-les figure.dia svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.sp2-les figure.dia figcaption { color: #5d6b76; text-align: center; margin-top: 6px; }
.sp2-les .gantt { display: flex; margin: 10px 0 30px !important; position: relative; font-size: 13px; color: var(--e-text); }
.sp2-les .gantt .g { border: 1.5px solid var(--e-muted); border-right: none; text-align: center; padding: 6px 0; position: relative; min-width: 0; }
.sp2-les .gantt .g:last-of-type { border-right: 1.5px solid var(--e-muted); }
.sp2-les .gantt .g span { overflow: hidden; white-space: nowrap; display: block; font-weight: 600; }
.sp2-les .gantt .g i { position: absolute; left: -4px; bottom: -22px; font-style: normal; color: var(--e-muted); font-size: 12px; }
.sp2-les .gantt .idle { background: var(--e-s3); }
.sp2-les .gantt b { position: absolute; right: -6px; bottom: -22px; font-weight: 400; color: var(--e-muted); font-size: 12px; }
.sp2-les .careful { background: rgba(255,184,107,.1); border: 1px solid rgba(255,184,107,.3); border-radius: 16px; padding: 14px 16px; color: #F6DDBE; }
.sp2-les .careful > b { display: block; color: #FFB86B; font-size: 16px; }
.sp2-les .careful p { margin-top: 4px !important; }
.sp2-les details.more { background: var(--e-s1); border: 1px solid var(--e-line); border-radius: 16px; padding: 0 16px; }
.sp2-les details.more summary { cursor: pointer; font-weight: 700; color: var(--e-text); padding: 13px 0; }   /* the whole bar is the tap target (keeps the disclosure triangle) */
.sp2-les details.more > div { padding-bottom: 14px; }
.sp2-les a.video { display: flex; gap: 14px; align-items: center; text-decoration: none !important; color: var(--e-text) !important; background: var(--e-s1); border: 1px solid var(--e-line2); border-radius: 16px; padding: 12px 14px !important; }
.sp2-les .video b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.sp2-les .video small { color: var(--e-muted); font-size: 13.5px; }
.sp2-les .play { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #e33; position: relative; }
.sp2-les .play::after { content: ""; position: absolute; left: 17px; top: 13px; border: 9px solid transparent; border-left: 14px solid #fff; border-right: 0; }
.sp2-lq .sp2-prov { color: var(--e-pyq); } .sp2-lq .sp2-prov::before { background: var(--e-pyq); }
.sp2-lq__t { padding: 4px 10px 10px; color: var(--e-text); font-size: 17px; line-height: 1.55; }
.sp2-lans { border-left: 4px solid var(--e-sol); background: var(--e-sol-bg); border-radius: 0 16px 16px 0; padding: 14px 16px; animation: sp2-in .2s ease-out both; }
.sp2-lans > * + * { margin-top: 10px !important; }
.sp2-lans__h { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--e-sol); }
.sp2-lq__q { font-size: 18.5px; line-height: 1.5; color: var(--e-text); }
.sp2-opts { display: grid; gap: 10px; }
.sp2-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; min-height: 56px; padding: 12px 16px !important; border-radius: 16px; cursor: pointer;
  background: var(--e-s1); color: var(--e-text); border: 2px solid var(--e-line2); box-shadow: 0 4px 0 var(--e-s3); font: 500 16.5px/1.4 var(--f-ui, inherit); transition: transform .08s, box-shadow .08s; }
.sp2-opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--e-s3); }
.sp2-opt kbd { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--e-line2); display: grid; place-items: center; font: 700 13px/1 var(--f-ui, inherit); color: var(--e-muted); background: none; }
.sp2-opt.is-sel { border-color: var(--e-cy); background: rgba(34,229,255,.08); box-shadow: 0 4px 0 var(--e-ledge); } .sp2-opt.is-sel kbd { border-color: var(--e-cy); color: var(--e-cy); }
.sp2-opt.is-right { border-color: var(--e-sol); background: var(--e-sol-bg); box-shadow: 0 4px 0 rgba(103,214,168,.45); } .sp2-opt.is-right kbd { border-color: var(--e-sol); color: var(--e-sol); }
.sp2-opt.is-wrong { border-color: #FFB86B; background: rgba(255,184,107,.1); box-shadow: 0 4px 0 rgba(255,184,107,.4); } .sp2-opt.is-wrong kbd { border-color: #FFB86B; color: #FFB86B; }
.sp2-opts[data-locked] .sp2-opt { cursor: default; }
.sp2-fb:empty { display: none; }
.sp2-fb { border-radius: 16px; padding: 14px 16px; animation: sp2-in .2s ease-out both; }
.sp2-fb strong { display: block; font-size: 18px; } .sp2-fb p { margin-top: 3px !important; color: var(--e-soft); font-size: 15.5px; line-height: 1.5; }
.sp2-fb.is-ok { background: var(--e-sol-bg); border: 1px solid var(--e-sol-line); } .sp2-fb.is-ok strong { color: var(--e-sol); }
.sp2-fb.is-no { background: rgba(255,184,107,.1); border: 1px solid rgba(255,184,107,.3); } .sp2-fb.is-no strong { color: #FFB86B; }
@media (max-width: 699px) { .sp2-lesson .sp2-h { font-size: 22px; } .sp2-les p.big { font-size: 18px; } .sp2-les { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .sp2-lans, .sp2-fb { animation: none !important; } }
/* owner 2026-12-04: a unit's topics in priority order, each with its priority and the section it usually comes in */
.sp2-pri { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 5px 0 3px; font-size: 12.5px; color: var(--e-muted); }
.sp2-pri em { font-style: normal; font-weight: 700; padding: 2px 8px; border-radius: 999px; line-height: 1.4; }
.sp2-pri__r { background: var(--e-s3); color: var(--e-soft); } .sp2-pri__r.is-top { background: var(--e-cy); color: var(--e-on-cy); }
.sp2-pri__s { background: var(--e-s2); color: var(--e-soft); box-shadow: inset 0 0 0 1px var(--e-line2); }
.sp2-pri__s.is-c { background: var(--e-pyq-bg); color: var(--e-pyq); box-shadow: inset 0 0 0 1px var(--e-pyq-line); }
.sp2-lprog { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--e-cy); }
.sp2-lprog > span { flex: none; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp2-lprog .sp2-lbar { flex: 1; height: 8px; }
.sp2-lvid .sp2-vbig { display: block; }
.sp2-lvid { margin-bottom: 6px; }
.sp2-ma { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.sp2-prow { display: flex; align-items: center; gap: 10px; min-height: 46px; box-sizing: border-box; padding: 8px 10px !important; border-radius: 12px; background: var(--e-s2);
  border: 1px solid var(--e-line2); color: var(--e-text) !important; text-decoration: none !important; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.sp2-prow .sp2-nd { width: 26px; height: 26px; font-size: 13px; }
.sp2-prow__t { flex: 1; min-width: 0; }
.sp2-prow .sp2-pri__s { flex: none; font-style: normal; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.sp2-prow .sp2-chev, .sp2-trow .sp2-chev { display: flex; color: var(--e-cy); }
@media (hover: hover) and (pointer: fine) { .sp2-prow:hover { border-color: var(--e-cy); } }

/* owner 2026-12-04: "the other buttons look grayed out". Every secondary now reads as a button: a cyan outline and a raised edge;
   only a disabled one is faded. */
.sp2-s { border: 1.5px solid rgba(34,229,255,.42); box-shadow: inset 0 -2px 0 rgba(0,0,0,.3); color: #EAFBFF !important; }
.sp2-s:disabled, .sp2-s[aria-disabled="true"] { opacity: .38; border-color: var(--e-line2); box-shadow: none; cursor: default; }
@media (hover: hover) and (pointer: fine) { .sp2-s:not(:disabled):hover { border-color: var(--e-cy); background: var(--e-s3); } }
.sp2-askai { display: grid; gap: 8px; margin-top: 14px !important; padding-top: 12px; border-top: 1px solid var(--e-line2); }
.sp2-askai__h { font-weight: 700; color: var(--e-text); font-size: 15px; }

/* owner 2026-12-04: Exam Prep on the course page is one small card; Exam Prep's own page holds the rest.
   Priority colours: High = red (the alert the owner asked for), Medium = amber, Low = grey. */
.sp2 { --e-hi: #FF5A6E; --e-md: #FFB547; --e-lo: #8A94A6; }
.sp2-dot { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--e-lo); vertical-align: middle; }
.sp2-dot--0 { background: var(--e-hi); box-shadow: 0 0 0 3px rgba(255,90,110,.22); } .sp2-dot--1 { background: var(--e-md); }
.sp2-ep__n { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px !important; }
.sp2-ep__n li { display: grid; align-content: start; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--e-s1); border: 1px solid var(--e-line); }
.sp2-ep__n b { font: 800 clamp(24px, 6vw, 32px)/1.05 var(--f-ui, inherit); color: var(--e-text); font-variant-numeric: tabular-nums; }
.sp2-ep__n li:last-child b { color: var(--e-hi); }
.sp2-ep__n span { font-size: 13.5px; line-height: 1.3; color: var(--e-soft); font-weight: 600; }
.sp2-ep__n small { font-size: 12.5px; line-height: 1.3; color: var(--e-muted); }
.sp2-ep { gap: 10px; }
.sp2-ep__d { font-size: 14.5px; line-height: 1.4; color: var(--e-muted); } .sp2-ep__d b { color: var(--e-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.sp2-ep__h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--e-hi); margin-top: 2px !important; }
.sp2-ep__l { display: grid; gap: 6px; }
/* Exam Prep's page */
.sp2-home { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.sp2-top--home { justify-content: flex-start; }
.sp2-hhead { display: grid; gap: 10px; }
.sp2-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--e-s1); border: 1px solid var(--e-line); border-radius: 16px; position: sticky; top: 8px; z-index: 3; }
.sp2-mode { display: grid; gap: 2px; padding: 10px 12px !important; border-radius: 12px; text-decoration: none !important; color: var(--e-soft) !important; border: 1.5px solid transparent; }
.sp2-mode strong { font-size: 16px; color: var(--e-text); } .sp2-mode span { font-size: 13px; color: var(--e-muted); }
.sp2-mode.is-on { background: var(--e-s3); border-color: var(--e-cy); cursor: default; }
.sp2-mode.is-on strong { color: var(--e-cy); }
.sp2-tier { display: grid; gap: 8px; }
.sp2-tierh { display: flex; align-items: center; gap: 10px; padding: 4px 2px; }
.sp2-tierh > div { flex: 1; min-width: 0; }
.sp2-tierh h4 { font-size: 17px; line-height: 1.25; color: var(--e-text); margin: 0 !important; } .sp2-tierh h4 span { font-weight: 500; color: var(--e-muted); font-size: 14px; }
.sp2-tierh p { font-size: 13.5px; color: var(--e-muted); margin-top: 1px !important; }
.sp2-tierh > b { flex: none; font-size: 13.5px; color: var(--e-soft); font-variant-numeric: tabular-nums; }
.sp2-tier--0 .sp2-tierh h4 { color: var(--e-hi); } .sp2-tier--1 .sp2-tierh h4 { color: var(--e-md); }
.sp2-tier--0 .sp2-dot, .sp2-tier--1 .sp2-dot, .sp2-tier--2 .sp2-dot { width: 12px; height: 12px; }
.sp2-tier--2 > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 0; border-radius: 12px; border: 1.5px solid rgba(34,229,255,.42); background: var(--e-s2); }
.sp2-tier--2 > summary::-webkit-details-marker { display: none; } .sp2-tier--2 > summary .sp2-tierh { flex: 1; padding-left: 12px; }
.sp2-tier--2[open] > summary .sp2-ic { transform: rotate(180deg); } .sp2-tier--2 > summary .sp2-ic { color: var(--e-cy); }
.sp2-tier--2 > .sp2-trows { margin-top: 8px; }
.sp2-trows { display: grid; gap: 6px; }
.sp2-trow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 58px; padding: 9px 12px !important; box-sizing: border-box;
  background: var(--e-s1); border: 1px solid var(--e-line2); border-radius: 14px; text-decoration: none !important; color: inherit !important; }
.sp2-trow strong { display: block; color: var(--e-text); font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.sp2-trow__m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 4px; font-size: 12.5px; color: var(--e-muted); }
.sp2-trow__m em { font-style: normal; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.sp2-trow__s { color: var(--e-cy); font-weight: 600; }
.sp2-trow.is-done strong { color: var(--e-soft); }
.sp2-tier--0 .sp2-trow { border-left: 4px solid var(--e-hi); } .sp2-tier--1 .sp2-trow { border-left: 4px solid var(--e-md); }
.sp2-tier--u { padding-top: 6px; }
.sp2-tier--u .sp2-tierh h4 { font-size: 16.5px; }
@media (hover: hover) and (pointer: fine) { .sp2-trow:hover { border-color: var(--e-cy); background: var(--e-s2); } a.sp2-mode:not(.is-on):hover { background: var(--e-s2); } }
@media (min-width: 900px) { .sp2-trows { grid-template-columns: 1fr 1fr; } .sp2-trows > li { display: grid; } }
/* a worked numerical's model answer: clean working on a white sheet, one step per line */
.sp2-sheet { background: #FDFDFB; color: #1B1F2A; border-radius: 12px; padding: 16px 18px 18px 26px; box-shadow: 0 1px 0 rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.28);
  font-size: 16px; line-height: 1.9; position: relative; overflow-x: auto; }
.sp2-sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 14px; width: 1.5px; background: rgba(230,80,90,.45); }
.sp2-sheet > * + * { margin-top: 12px !important; }
.sp2-sheet p, .sp2-sheet li, .sp2-sheet td, .sp2-sheet th { color: #1B1F2A !important; }
.sp2-sheet b, .sp2-sheet strong { color: #0B3D91 !important; }
.sp2-sheet table { border-collapse: collapse; background: #fff; font-size: 14.5px; line-height: 1.4; }
.sp2-sheet th, .sp2-sheet td { border: 1px solid #C9CED8 !important; padding: 6px 9px !important; background: #fff !important; text-align: center; }
.sp2-sheet th { background: #EEF2F8 !important; }
.sp2-sheet pre, .sp2-sheet code { background: #F1F3F7 !important; color: #1B1F2A !important; }
.sp2-sheet .gantt .g { color: #1B1F2A; }
/* owner 2026-12-04: navigation at a glance. Forward buttons carry an arrow; previous / next question are labelled; inside Learn,
   Back sits beside the primary from the second card on */
.sp2-fwd .sp2-bl::after { content: "\00a0→"; }
.sp2-qb { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 2px; min-height: 44px; padding: 0 12px 0 8px !important; font-size: 14.5px; }
.sp2-qb .sp2-bl { font-size: 14.5px; } .sp2-qb .sp2-ic + .sp2-bl { margin-left: 0; } .sp2-qb .sp2-bl + .sp2-ic { margin-right: -4px; }
a.sp2-qb[aria-label^="Next"] { padding: 0 8px 0 12px !important; }
.sp2-qb[disabled] { opacity: .35; cursor: default; }
.sp2-navrow { display: flex; gap: 8px; align-items: stretch; }
.sp2-navrow > .sp2-p { flex: 1; }
.sp2-lback { flex: none; display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 4px; padding: 0 14px 0 10px !important; min-height: 54px; }
/* a model answer that points at the lesson carries those cards first (lessons_export.py `ma`) */
.ma-ref { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px dashed var(--e-line2); }
.sp2-sheet .ma-ref { border-bottom-color: #C9CED8; }
/* "Watch in HD on YouTube" under a video: a quiet link, easy to tap */
.sp2-cap .sp2-hd { display: inline-block; margin-top: 6px; padding: 6px 0; color: var(--e-cy); font-size: 14px; font-weight: 600; text-decoration: none; }
.sp2-cap .sp2-hd:hover, .sp2-cap .sp2-hd:focus-visible { text-decoration: underline; }
/* a worked table wider than a phone (cipher grids, step tables) scrolls sideways inside its answer instead of leaving the screen */
.sp2-les table.pr, .sp2-sheet table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sp2-sheet .nw { white-space: nowrap; }
/* phones and small laptops: the three numbers become rows, number left, label right, so no label breaks every word */
@media (max-width: 479px), (min-width: 900px) and (max-width: 1179px) {   /* phones, and small laptops where the card is two columns: a tile would be ~65–140 px */
  .sp2-ep__n { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sp2-ep__n li { grid-template-columns: 52px minmax(0, 1fr); column-gap: 10px; align-items: center; align-content: center; min-height: 56px; padding: 8px 12px; }
  .sp2-ep__n b { grid-row: 1 / span 2; font-size: 26px; } .sp2-ep__n li:not(:has(small)) b { grid-row: 1; }
}
/* phones: previous / next topic stack, so a long topic name is not squeezed into ~110 px (5 lines at 375 px) */
@media (max-width: 419px) { .sp2-tnav { grid-template-columns: minmax(0, 1fr); } }
/* very narrow phones (< 360 px): the section chip moves under the topic name, and Prev / Next under the question heading */
@media (max-width: 359px) {
  .sp2-prow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 3px; }
  .sp2-prow:not(:has(> .sp2-nd)) { grid-template-columns: minmax(0, 1fr) auto; }
  .sp2-prow > .sp2-nd { grid-column: 1; grid-row: 1 / span 2; }
  .sp2-prow > .sp2-chev { grid-column: -2; grid-row: 1 / span 2; }
  .sp2-prow > .sp2-prow__t, .sp2-prow > .sp2-pri__s { grid-column: -3; }
  .sp2-prow > .sp2-pri__s { grid-row: 2; justify-self: start; }
  .sp2-hrow:has(> .sp2-qpg) { flex-wrap: wrap; row-gap: 8px; }
  .sp2-hrow:has(> .sp2-qpg) > .sp2-h { flex-basis: 100%; }
}
