/* Study Path V2 (paid Course Hub). Loaded only by a hub whose course has a V2 Study Path. Uses the evo tokens (evo.css); no new colours.
   Colour roles: cyan = where you are and what to press; yellow (--e-now) = a mark a person makes (the paper highlight, the sticky note)
   and is NOT used here; neutral for everything else, including "older paper", which is words, not a colour.
   Layout follows the section's width (container query), so a narrower main column later (AI Study side panel) needs no new rules. */
.sp2 { container: sp2 / inline-size; scroll-margin-top: calc(var(--header-height, 64px) + 64px); }
.sp2 > h2 { margin-bottom: 6px; }
/* inside a step the active tab and "‹ Study Path" already say where you are; the heading stays for screen readers only
   (on phones it otherwise shows through the frosted tab bar as a doubled "Study Path") */
.sp2:has(> .sp2-app:not([data-screen="home"])) > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0; }
/* 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; } }
.sp2-app { max-width: 1040px; padding-bottom: 8px; }   /* the hub's Notes section follows, so the floating sticky note never sits over a last control */
.sp2-app.sp2-in > * { animation: sp2-in .22s var(--e-ease) both; }
@keyframes sp2-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sp2-app.sp2-in > * { animation: none; } }

.sp2-eb { margin: 2px 0 10px; color: var(--e-muted); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sp2-hl { margin: 0 0 8px; color: var(--e-text); font-size: clamp(1.6rem, 6.2cqi, 2.2rem); font-weight: 750; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.sp2-hl2 { margin: 4px 0 6px; color: var(--e-text); font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.sp2-sub { margin: 0 0 18px; max-width: 62ch; color: var(--e-soft); font-size: 1rem; line-height: 1.5; }

/* the one next action */
.sp2-card { margin: 0 0 14px; padding: 16px; max-width: 640px; border: 1px solid var(--e-line2); border-left: 3px solid var(--e-cy); border-radius: var(--e-r-card, 16px); background: var(--e-s1); }
.sp2-k { margin: 0 0 4px; color: var(--e-cy); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sp2-ct { margin: 0 0 4px; color: var(--e-text); font-size: 1.32rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.22; }
.sp2-cost { margin: 0 0 14px; color: var(--e-soft); font-size: .94rem; }
.sp2-why { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--e-line); color: var(--e-soft); font-size: .95rem; line-height: 1.5; }
.sp2-why b { color: var(--e-text); font-weight: 650; }
.sp2-btn, .sp2-btn2, .sp2-btn3 { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 10px 16px; border-radius: var(--e-r-ctl, 12px);
  font: inherit; font-size: 1.02rem; font-weight: 650; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .16s var(--e-ease), border-color .16s var(--e-ease); }
.sp2-app .sp2-btn, .sp2-app .sp2-btn2, .sp2-app .sp2-btn3 { padding: 10px 16px; }
.sp2-app .sp2-btn { border: 1px solid var(--e-cy); background: var(--e-cy); color: var(--e-on-cy, #03252D); text-decoration: none; }
.sp2-app .sp2-btn2 { border: 1px solid var(--e-line2); background: transparent; color: var(--e-text); text-decoration: none; }
.sp2-btn3 { width: auto; display: inline-flex; min-height: 44px; font-size: .95rem; border: 1px solid var(--e-line2); background: transparent; color: var(--e-cy); }
.sp2-btn:focus-visible, .sp2-btn2:focus-visible, .sp2-btn3:focus-visible, .sp2-app a:focus-visible, .sp2-app summary:focus-visible { outline: 2px solid var(--e-cy); outline-offset: 2px; }
.sp2-app h3:focus, .sp2-app [data-focus]:focus, .sp2-app h3:focus-visible, .sp2-app [data-focus]:focus-visible { outline: none !important; box-shadow: none !important; }   /* headings get focus only to move the screen reader; they are not controls */
.sp2-app a, .sp2-app button { padding-left: 0; padding-right: 0; }   /* the site-wide a, button { padding: 10px } rule */
.sp2-app a { color: var(--e-cy); text-underline-offset: 3px; }
.sp2-inl, .sp2-alt a, .sp2-more a { display: inline-flex; align-items: center; min-height: 44px; }
.sp2-why .sp2-inl { display: inline; min-height: 0; padding: 13px 0 !important; }   /* 44px tall target without stretching the line */
.sp2-esc a { display: inline-block; padding: 11px 0; }
.sp2-alt { margin: 4px 0 0; color: var(--e-muted); font-size: .95rem; }
.sp2-esc { margin: 0 0 16px; color: var(--e-soft); font-size: .98rem; }
.sp2-esc a { font-weight: 600; }

/* the compact map: one unit, syllabus order, orientation only */
.sp2-map { margin: 4px 0 0; max-width: 640px; }
.sp2-mh { margin: 0 0 2px; color: var(--e-muted); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sp2-map ol, .sp2-ul, .sp2-ql { list-style: none; margin: 0; padding: 0; }
.sp2-map li, .sp2-ul li, .sp2-ql li { border-bottom: 1px solid var(--e-line); }
.sp2-app .sp2-map li a, .sp2-app .sp2-ul li a, .sp2-app .sp2-ql li a { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; min-height: 48px; padding: 6px 2px; color: var(--e-soft); text-decoration: none; }
.sp2-map li a::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--e-muted); }
.sp2-map li.is-cur a, .sp2-map li.is-rec a { color: var(--e-text); font-weight: 650; }
.sp2-map li.is-cur a::before, .sp2-map li.is-rec a::before { background: var(--e-cy); border-color: var(--e-cy); }
.sp2-mt { flex: 1 1 12rem; min-width: 0; }
.sp2-mm { color: var(--e-cy); font-size: .8rem; font-weight: 500; }
.sp2-ev, .sp2-qm { color: var(--e-muted); font-size: .84rem; }
.sp2-qn { flex: 1 1 100%; color: var(--e-text); font-weight: 600; }
.sp2-ql .sp2-qm { flex: 1 1 100%; margin-top: -4px; }
.sp2-more { margin: 2px 0 0; color: var(--e-muted); }
.sp2-ul2 .sp2-ev { flex: 1 1 100%; margin-top: -4px; }
.sp2-ul + .sp2-sub, nav + .sp2-sub { margin-top: 14px; }

/* a topic: where you are, the steps, the next action */
.sp2-top { margin: 0 0 12px; }
.sp2-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 6px; border-bottom: 1px solid var(--e-line); }
.sp2-bar a { display: inline-flex; align-items: center; min-height: 44px; color: var(--e-soft); font-size: .94rem; text-decoration: none; }
.sp2-back { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block !important; line-height: 44px; }
.sp2-pos { color: var(--e-muted); font-size: .88rem; white-space: nowrap; }
.sp2-ctx { margin: 8px 0 2px; color: var(--e-muted); font-size: .86rem; }
.sp2-tt { margin: 0 0 10px; color: var(--e-text); font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.18; }
.sp2-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp2-stages { display: flex; gap: 4px; padding: 4px; max-width: 520px; border-radius: 12px; background: var(--e-s1); border: 1px solid var(--e-line); }
.sp2-app .sp2-stages a { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 4px 8px; border-radius: 9px; color: var(--e-soft); font-size: .9rem; font-weight: 600; text-align: center; text-decoration: none; white-space: nowrap; }
.sp2-stages a[aria-current] { background: var(--e-s3); color: var(--e-text); box-shadow: inset 0 -2px 0 var(--e-cy); }
.sp2-n { color: var(--e-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.sp2-gapl { margin: 0; color: var(--e-muted); font-size: .9rem; }
.sp2-gap { margin: 0 0 14px; padding: 14px; max-width: 640px; border: 1px dashed var(--e-line2); border-radius: 14px; color: var(--e-soft); font-size: .98rem; line-height: 1.5; }
.sp2-gap b { color: var(--e-text); }
.sp2-next { margin: 16px 0 0; max-width: 640px; }
.sp2-vid.is-on { position: relative; aspect-ratio: 16 / 9; margin: 0 0 12px; border-radius: 12px; overflow: hidden; background: #000; }
.sp2-vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sp2-more-v { margin: 10px 0 0; max-width: 640px; }
.sp2-more-v summary, .sp2-help summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; color: var(--e-soft); font-weight: 600; list-style: none; }
.sp2-more-v summary::-webkit-details-marker, .sp2-help summary::-webkit-details-marker { display: none; }
.sp2-more-v summary::after, .sp2-help summary::after { content: "+"; margin-left: auto; color: var(--e-muted); font-weight: 400; font-size: 1.3rem; }
.sp2-more-v[open] summary::after, .sp2-help[open] summary::after { content: "–"; }
.sp2-vl { margin: 0; padding: 0 0 0 18px; color: var(--e-muted); }
.sp2-vl li { padding: 6px 0; }

/* a question: the question first, its source second, then what to do */
.sp2-src { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0 0 4px; color: var(--e-soft); font-size: .9rem; }
.sp2-src b { color: var(--e-text); font-weight: 650; }
.sp2-old { margin: 0 0 10px; color: var(--e-soft); font-size: .92rem; }
.sp2-qt { color: var(--e-text); font-size: 1.04rem; line-height: 1.6; max-width: 68ch; overflow-wrap: anywhere; }
.sp2-qt p { margin: 8px 0; }
.sp2-disp { margin: 6px 0 6px 1rem; color: var(--e-text); font-variant-numeric: tabular-nums; }
.sp2-qt sup, .sp2-qt sub, .sp2-opts sup, .sp2-opts sub { font-size: .72em; line-height: 0; }
.sp2-tabw { overflow-x: auto; margin: 8px 0; max-width: 100%; }
.sp2-tab { border-collapse: collapse; font-size: .96rem; font-variant-numeric: tabular-nums; }
.sp2-tab th, .sp2-tab td { padding: 6px 10px; border: 1px solid var(--e-line2); text-align: center; white-space: nowrap; }
.sp2-tab th { color: var(--e-soft); font-weight: 600; }
/* narrow phones (320): the same table, tighter cells, so a six-column table fits whole at the same type size */
@container sp2 (max-width: 300px) { .sp2-tab th, .sp2-tab td { padding-left: 6px; padding-right: 6px; } }
/* a table that is still wider than the screen scrolls sideways: fade its right edge while more columns wait (studypath2.js) */
.sp2-tabw.sp2-more { mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.sp2-tabw:focus-visible { outline: 2px solid var(--e-cy); outline-offset: 2px; }
.sp2-opts { margin: 4px 0 8px; padding-left: 2.1em; color: var(--e-text); line-height: 1.55; }
.sp2-opts li { padding: 2px 0; }
.sp2-opts[type="a"] { list-style: none; counter-reset: o; padding-left: 0; }
.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"] { list-style: none; counter-reset: o; padding-left: 0; }
.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); }
.sp2-parts { list-style: none; margin: 4px 0 8px; padding: 0; }
.sp2-parts li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 4px 0; }
.sp2-pl { color: var(--e-soft); font-weight: 600; white-space: nowrap; padding-top: 4px; line-height: 1.6; }
.sp2-pt { color: var(--e-text); line-height: 1.6; }
.sp2-pt p { margin: 4px 0; }
.sp2-pt sup, .sp2-pt sub, .sp2-tab sup, .sp2-tab sub { font-size: .72em; line-height: 0; }
.sp2-parts li.is-off .sp2-pt, .sp2-parts li.is-off .sp2-pl { color: var(--e-muted); }
.sp2-ptag { grid-column: 2; color: var(--e-muted); font-size: .84rem; }
.sp2-note, .sp2-time { margin: 6px 0 0; color: var(--e-soft); font-size: .92rem; }
.sp2-acts { margin: 16px 0 0; max-width: 640px; }
.sp2-help { margin: 14px 0 0; max-width: 640px; padding: 0 14px; border: 1px solid var(--e-line); border-radius: 14px; }
.sp2-help ul { list-style: none; margin: 0; padding: 0 0 10px; }
.sp2-help li { border-top: 1px solid var(--e-line); padding: 2px 0; }
.sp2-help li > a { display: flex; align-items: center; min-height: 46px; }
.sp2-none, .sp2-ai { margin: 10px 0; color: var(--e-muted); font-size: .92rem; line-height: 1.5; }
.sp2-ai b { display: block; color: var(--e-text); font-size: .98rem; margin-bottom: 2px; }
.sp2-copied { margin-left: 10px; color: var(--e-soft); font-size: .9rem; }
.sp2-err { padding: 8px 0 24px; }

/* the exam-questions index */
.sp2-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.sp2-app .sp2-chips > a, .sp2-chips > span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--e-line2); border-radius: 10px; color: var(--e-soft); font-size: .92rem; font-weight: 600; text-decoration: none; }
.sp2-chips > a[aria-current] { border-color: var(--e-cy); color: var(--e-text); }
.sp2-chips .is-none { opacity: .55; }

/* wide sections: the map becomes a rail beside the step */
.sp2-side { margin-top: 22px; }
@container sp2 (min-width: 860px) {
  .sp2-cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 0 40px; align-items: start; }
  .sp2-side { margin-top: 0; position: sticky; top: calc(var(--header-height, 64px) + 70px); }
  .sp2-side .sp2-mt { flex-basis: 0; }   /* keep "you are here" beside the title in the narrow rail */
  .sp2-step .sp2-top { max-width: 640px; }
}
.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; }
.sp2-gapt { margin: 0 0 12px; }

/* hover only where a pointer hovers: on phones a tapped control would otherwise keep its hover colour */
@media (hover: hover) {
  .sp2-app .sp2-btn:hover { background: #63f0ff; }
  .sp2-btn2:hover { border-color: var(--e-cy); }
  .sp2-bar a:hover { color: var(--e-text); }
  .sp2-map li a:hover .sp2-mt, .sp2-ul li a:hover .sp2-mt, .sp2-ql li a:hover .sp2-qn { color: var(--e-text); text-decoration: underline; text-underline-offset: 3px; }
}
/* short phones (iPhone SE 1st gen): the first screen's Start clears the floating Sticky Note */
@media (max-height: 600px) { .sp2-app[data-screen="home"] .sp2-eb { margin-bottom: 6px; } .sp2-app[data-screen="home"] .sp2-sub { margin-bottom: 12px; } }
/* 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; }
