/* ServiceAgent University catalog.
   One reading line: a big poster, then rows of posters with their titles on them.
   Everything else hides until you ask for it. */
:root {
  --st-catch: #2563eb; --st-book: #d97706; --st-collect: #16a34a;
  --st-keep: #db2777; --st-run: #64748b; --st-prove: #0891b2;
  --tree-w: 232px;
  --gap: 24px;
  --shade: linear-gradient(0deg, rgba(14,13,20,.86) 0%, rgba(14,13,20,.35) 45%, rgba(14,13,20,0) 70%);
}
.sau { overflow-x: clip; display: grid; grid-template-columns: var(--tree-w) minmax(0, 1fr); max-width: 1680px; margin: 0 auto; padding: 40px max(16px, var(--gut-r, 40px)) 140px max(16px, var(--gut-l, 40px)); }
.sau-main { min-width: 0; padding-left: 56px; outline: 0; }
.sau-treebtn { display: none; }

.stg { display: inline-flex; align-items: center; gap: 7px; font: 600 11px/14px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.stg::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.stg--catch { color: var(--st-catch); } .stg--book { color: var(--st-book); } .stg--collect { color: var(--st-collect); }
.stg--keep { color: var(--st-keep); } .stg--run { color: var(--st-run); } .stg--prove { color: var(--st-prove); }

/* ---------- sidebar: titles only ---------- */
.tree { position: sticky; top: calc(var(--top) + 40px); align-self: start; max-height: calc(100vh - var(--top) - 80px); max-height: calc(100dvh - var(--top) - 80px); display: flex; flex-direction: column; }
.tree__head { display: flex; align-items: center; }
.tree__brand { text-decoration: none; color: var(--ink); }
.tree__brand b { font: 800 20px/26px var(--font-display); letter-spacing: -0.01em; }
.tree__close { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: var(--paper); box-shadow: var(--frame); font: 700 24px/1 var(--font-display); cursor: pointer; color: var(--ink); }
.tree__prog { padding: 14px 24px 0 0; }
.bar { height: 3px; background: var(--line); }
.bar i { display: block; height: 100%; width: 0; background: var(--cta); transition: width .5s steps(10); }
.tree__search { margin: 22px 24px 14px 0; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.tree__search:focus-within { box-shadow: var(--frame); }
.tree__search svg { width: 14px; height: 14px; fill: var(--ink-3); flex: none; }
.tree__search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 15px/1 var(--font-display); color: var(--ink); outline: 0; }
.tree__nav { flex: 1; overflow-y: auto; padding: 0 16px 24px 0; overscroll-behavior: contain; scrollbar-width: none; }
.tree__nav::-webkit-scrollbar { display: none; }
.tree__none { font-size: 15px; color: var(--ink-3); }
.tp > summary, .tc > summary { list-style: none; cursor: pointer; }
.tp > summary::-webkit-details-marker, .tc > summary::-webkit-details-marker { display: none; }
.tp > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; font: 700 16px/22px var(--font-display); color: var(--ink-3); }
.tp > summary:hover, .tp[open] > summary { color: var(--ink); }
.tp[open] { padding-bottom: 8px; }
.tc > summary { display: flex; align-items: center; gap: 8px; padding: 0; }
.tc > summary .tc__t { flex: 1; min-width: 0; }
.tc__t { display: block; padding: 6px 0 6px 14px; font: 500 15px/21px var(--font-display); color: var(--ink-3); text-decoration: none; box-shadow: inset 2px 0 0 var(--line); }
.tc__t:hover { color: var(--ink); }
.tc.cur .tc__t { color: var(--ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--ink); }
.tc ol { margin: 2px 0 10px; padding: 0; list-style: none; box-shadow: inset 2px 0 0 var(--line); }
.tl a { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; padding: 5px 0 5px 26px; text-decoration: none; color: var(--ink-3); font-size: 14px; line-height: 19px; }
.tl a:hover { color: var(--ink); }
.tl__ck { width: 10px; height: 10px; margin-top: 5px; box-shadow: inset 0 0 0 1.5px #c9c6bd; display: block; }
.tl__ck svg, .tl__n { display: none; }
.tl.done .tl__ck { background: var(--cta); box-shadow: none; }
.tl.cur a { color: var(--ink); font-weight: 700; }
.tl.cur .tl__ck { background: var(--ink); box-shadow: none; }
.tl--mod { padding: 10px 0 3px 26px; font: 600 11px/14px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tree-scrim { display: none; }

/* ---------- the big poster ---------- */
.bill { position: relative; height: clamp(440px, 58vh, 620px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.bill__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }
.bill.bill--home .bill__art { left: 22%; width: 78%; object-position: 70% 35%; }
.bill--home { background: #1b1830; }
.bill.bill--home::after { background: linear-gradient(90deg, #1b1830 0%, #1b1830 22%, rgba(27,24,48,.85) 34%, rgba(27,24,48,.2) 52%, rgba(27,24,48,0) 64%), linear-gradient(0deg, rgba(14,13,20,.5) 0%, rgba(14,13,20,0) 40%); }
.bill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,13,20,.78) 0%, rgba(14,13,20,.5) 34%, rgba(14,13,20,0) 62%), linear-gradient(0deg, rgba(14,13,20,.55) 0%, rgba(14,13,20,0) 45%); pointer-events: none; }
.bill__copy { position: relative; z-index: 1; max-width: 560px; padding: 0 56px 56px; display: flex; flex-direction: column; gap: 18px; color: #fff; }
.bill__k { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font: 600 12px/16px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cta); text-decoration: none; }
.bill__back { color: #fff; opacity: .85; }
.bill__back:hover { opacity: 1; }
.bill__back svg { width: 12px; height: 12px; fill: currentColor; transform: scaleX(-1); }
.bill h1 { margin: 0; color: #fff; font: 800 clamp(34px, 3.6vw, 56px)/1.02 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
.bill p { margin: 0; max-width: 460px; font-size: 19px; line-height: 29px; color: rgba(255,255,255,.88); }
.bill__cta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.bill .btn--ghost { background: rgba(255,255,255,.94); }
.btn svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.bill__bar { display: block; width: 220px; height: 4px; background: rgba(255,255,255,.3); }
.bill__bar i { display: block; height: 100%; background: var(--cta); }

/* ---------- rows ---------- */
.row { margin-top: 72px; }
.row__h h2 { margin: 0 0 18px; font: 800 24px/30px var(--font-display); letter-spacing: -0.02em; }
.row__wrap { position: relative; }
.row__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--gap)) / 3.2); gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: 24px; padding: 26px 24px 26px 24px; margin: -26px -24px -26px -24px; scrollbar-width: none; }
.row__track::-webkit-scrollbar { display: none; }
.row__track > * { scroll-snap-align: start; }
.row--bp .row__track { grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); }
.row__nav { position: absolute; z-index: 3; top: calc(50% - 22px); width: 44px; height: 44px; display: grid; place-items: center; border: 0; cursor: pointer; background: var(--paper); box-shadow: var(--frame3), 4px 5px 0 0 var(--ink); color: var(--ink); opacity: 0; transition: opacity .15s; }
.row__wrap:hover .row__nav, .row__nav:focus-visible { opacity: 1; }
.row__nav svg { width: 18px; height: 18px; fill: currentColor; }
.row__nav--l { left: -22px; } .row__nav--l svg { transform: scaleX(-1); }
.row__nav--r { right: -22px; }
.row__nav:hover { background: var(--cta); }

/* ---------- poster card: title on the poster, details on hover ---------- */
.cc { position: relative; min-width: 0; }
.cc__a { display: block; text-decoration: none; color: #fff; }
.cc__a:focus-visible { outline: 0; }
.cc__art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); transition: transform .2s steps(4), box-shadow .2s steps(4); }
.cc:hover .cc__art, .cc__a:focus-visible .cc__art { box-shadow: var(--frame3), 6px 8px 0 0 var(--ink); }
.cc__art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }

.cc--ep:hover .cc__art img { transform: scale(1.7) !important; }
.cc__art::after { content: ""; position: absolute; inset: 0; background: var(--shade); transition: opacity .25s; }
.cc__art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(14,13,20,.94) 0%, rgba(14,13,20,.72) 55%, rgba(14,13,20,.25) 100%); opacity: 0; transition: opacity .25s; }
.cc:hover .cc__art::before, .cc__a:focus-visible .cc__art::before { opacity: 1; }
.cc__info { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.cc__t { font: 700 18px/24px var(--font-display); letter-spacing: -0.01em; color: #fff; text-wrap: balance; }
.cc__k { font: 600 11px/14px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cta); }
.cc__stg { display: flex; flex-wrap: wrap; gap: 4px 12px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s ease, opacity .25s; }
.cc__stg .stg { color: #fff; }
.cc__stg .stg::before { background: var(--cta); }
.cc__more { display: flex; flex-direction: column; gap: 8px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .25s ease .05s; }
.cc:hover .cc__more, .cc__a:focus-visible .cc__more { max-height: 200px; opacity: 1; }
.cc:hover .cc__stg, .cc__a:focus-visible .cc__stg { max-height: 20px; opacity: 1; }
.cc__p { font: 500 14px/20px var(--font-display); color: rgba(255,255,255,.9); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc__m { font: 500 12px/16px var(--font-mono); color: rgba(255,255,255,.7); }
.cc__go { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 7px 12px; font: 700 13px/1 var(--font-display); background: var(--cta); color: var(--ink); }
.cc__go svg { width: 12px; height: 12px; fill: currentColor; }
.cc__bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.3); }
.cc__bar i { display: block; height: 100%; background: var(--cta); }
.cc > .later { position: absolute; z-index: 4; top: 12px; right: 12px; opacity: 0; transition: opacity .2s, transform .2s steps(4); }
.cc:hover > .later, .cc > .later:focus-visible, .cc > .later[aria-pressed="true"] { opacity: 1; }

.cc__art--soon { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.cc__art--soon::after, .cc__art--soon::before { display: none; }
.cc--soon .cc__t { position: absolute; left: 18px; right: 18px; bottom: 38px; color: var(--ink-3); }
.cc--soon:hover .cc__art { transform: none; box-shadow: inset 0 0 0 1px var(--line); }
.cc__lock { position: absolute; left: 18px; bottom: 16px; font: 600 11px/14px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #9a988f; }

/* watch later button */
.later { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; cursor: pointer; background: rgba(255,255,255,.95); color: var(--ink); box-shadow: var(--frame); }
.later__i { display: grid; place-items: center; }
.later svg { width: 14px; height: 14px; fill: currentColor; }
.later:hover { background: var(--cta); }
.later[aria-pressed="true"] { background: var(--cta); }
.later--txt { width: auto; height: auto; display: inline-flex; gap: 10px; }
.later--txt[aria-pressed="true"] { background: var(--cta); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bpc { display: flex; flex-direction: column; gap: 14px; min-width: 0; height: 100%; min-height: 128px; padding: 22px; color: var(--ink); text-decoration: none; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: transform .18s steps(3), box-shadow .18s steps(3); }
.bpc:hover { transform: translateY(-4px); box-shadow: var(--frame3), 6px 8px 0 0 var(--ink); }
.bpc b { margin-top: auto; font: 700 19px/25px var(--font-display); }

/* ---------- course: tabs and episodes ---------- */
.svtabs { display: flex; gap: 32px; margin-top: 48px; border-bottom: 1px solid var(--line); }
.svt { position: relative; height: 52px; padding: 0; border: 0; background: none; font: 700 18px/1 var(--font-display); color: var(--ink-3); cursor: pointer; }
.svt.on { color: var(--ink); }
.svt.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ink); }
.tabp { max-width: 980px; }
.seasons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.season { height: 38px; padding: 0 16px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font: 600 15px/1 var(--font-display); color: var(--ink-3); cursor: pointer; }
.season.on { background: var(--ink); color: #fff; box-shadow: none; }
.eplist { display: flex; flex-direction: column; margin-top: 20px; }
.ep { position: relative; display: grid; grid-template-columns: 28px 176px minmax(0, 1fr) auto 38px; align-items: center; gap: 24px; padding: 18px 12px; border-bottom: 1px solid var(--line); transition: background .15s; }
.ep:hover { background: var(--paper); }
.ep__n { font: 700 20px/1 var(--font-display); color: var(--ink-3); text-align: center; }
.ep__th { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.ep__th img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.7); }
.ep__th i { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14,13,20,.25); opacity: 0; transition: opacity .15s; }
.ep__th i svg { width: 34px; height: 34px; padding: 9px; fill: var(--ink); background: var(--cta); }
.ep:hover .ep__th i, .ep--done .ep__th i { opacity: 1; }
.ep__t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ep__a { font: 700 18px/25px var(--font-display); color: var(--ink); text-decoration: none; }
.ep__a::after { content: ""; position: absolute; inset: 0; }
.ep__d { font-size: 16px; line-height: 24px; color: var(--ink-3); }
.ep__m { align-self: start; padding-top: 3px; font: 500 14px/20px var(--font-mono); color: var(--ink-3); white-space: nowrap; text-align: right; }
.ep .later { position: relative; z-index: 2; align-self: center; background: var(--paper); opacity: 0; }
.ep:hover .later, .ep .later:focus-visible, .ep .later[aria-pressed="true"] { opacity: 1; }
.ep .later[aria-pressed="true"] { background: var(--cta); }
.ep--done .ep__a { color: var(--ink-3); }
.soon { margin: 32px 0 0 10px; font-size: 16px; line-height: 25px; color: var(--ink-3); }
.info { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; margin-top: 36px; align-items: start; }
.info__about { margin: 0 0 36px; font-size: 19px; line-height: 31px; color: var(--ink-2); }
.info h3, .info__bh { margin: 0 0 14px; font: 700 17px/24px var(--font-display); }
.info__bh { margin-top: 48px; }
.ticks { margin: 0 0 36px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; font-size: 17px; line-height: 26px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--cta); box-shadow: 0 0 0 1px var(--ink); }
.sell { padding: 24px; background: #eefad8; }
.sell h3 { font-size: 15px; }
.sell p { margin: 0; font-size: 16px; line-height: 26px; color: var(--ink-2); }
.sell b { color: var(--ink); }
.sell small { display: block; margin-top: 14px; font-size: 13px; line-height: 19px; color: var(--ink-3); }
.bpgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); }

/* ---------- lesson ---------- */
.lv__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font: 600 15px/1 var(--font-display); color: var(--ink-3); text-decoration: none; }
.lv__back svg { width: 12px; height: 12px; fill: currentColor; transform: scaleX(-1); }
.lv__back:hover { color: var(--ink); }
.lv__player { position: relative; aspect-ratio: 16 / 9; max-height: 68vh; width: 100%; overflow: hidden; background: var(--ink); }
.lv__player img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.5); transform: scale(1.3); }
.lv__ov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.lv__play { width: 76px; height: 76px; display: grid; place-items: center; background: var(--cta); }
.lv__play svg { width: 30px; height: 30px; fill: var(--ink); }
.lv__soon { font: 600 12px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.lv__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 24px; margin-top: 40px; max-width: 980px; }
.lv__meta { grid-column: 1 / -1; margin: 0; font: 500 13px/20px var(--font-mono); color: var(--ink-3); }
.lv__head h1 { margin: 0; font: 800 clamp(30px, 3vw, 42px)/1.1 var(--font-display); letter-spacing: -0.03em; }
.lv__done[aria-pressed="true"] { background: var(--cta); }
.lv__acts { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.lv__acts .btn { min-height: 46px; padding: 0 16px; font-size: 15px; margin: 3px 3px 7px; }
.lv__d { grid-column: 1 / -1; margin: 6px 0 0; max-width: 720px; font-size: 19px; line-height: 30px; color: var(--ink-2); }
.lv__body { display: flex; flex-direction: column; gap: 48px; margin-top: 44px; max-width: 760px; }
.lv__sec h2, .qc h2 { margin: 0 0 12px; font: 800 22px/28px var(--font-display); }
.lv__sec p, .qc > p { margin: 0 0 14px; font-size: 18px; line-height: 30px; color: var(--ink-2); }
.lv__pending { margin: 0; font-size: 18px; line-height: 28px; color: var(--ink-3); }
.say { padding: 28px 30px; background: var(--brand-tint); }
.say blockquote { margin: 12px 0 0; font: 600 22px/33px var(--font-display); color: var(--ink); }
.qc__q { margin: 0 0 22px; padding: 0; border: 0; }
.qc__q legend { margin-bottom: 12px; font: 700 18px/26px var(--font-display); }
.qc__q label { display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 8px 0; padding: 10px 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; cursor: pointer; }
.qc__q label:has(input:checked) { background: var(--ink); color: #fff; box-shadow: none; }
.qc__q input { accent-color: var(--cta); }
.qc__res { margin: 12px 0 0; font: 700 16px/24px var(--font-display); }
.qc__res.ok { color: #3f6212; } .qc__res.no { color: #b91c1c; }
.nextup { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 64px; max-width: 760px; padding: 10px; color: var(--ink); text-decoration: none; transition: background .15s; }
.nextup:hover { background: var(--paper); }
.nextup__th { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.nextup__th img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(2.1); }
.nextup__th i { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--cta); }
.nextup__th i svg { width: 13px; height: 13px; fill: var(--ink); }
.nextup__k { font: 600 12px/16px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.nextup b { display: block; margin-top: 6px; font: 700 20px/27px var(--font-display); }
.done-banner { margin-top: 40px; max-width: 760px; padding: 20px 24px; background: #eefad8; font-size: 18px; line-height: 27px; }
.lv__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; max-width: 760px; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .row__track { grid-auto-columns: calc((100% - var(--gap)) / 2.3); }
  .row--bp .row__track { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3.2); }
  .info { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 1080px) {
  .sau { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .sau-main { padding-left: 0; }
  .sau-treebtn { position: sticky; top: calc(var(--top) + 10px); z-index: 20; justify-self: start; display: inline-flex; align-items: center; gap: 10px; height: 42px; margin-bottom: 20px; padding: 0 16px; border: 0; background: var(--paper); box-shadow: var(--frame3), 4px 5px 0 0 var(--ink); font: 700 15px/1 var(--font-display); color: var(--ink); cursor: pointer; }
  .sau-treebtn svg { width: 15px; height: 15px; fill: currentColor; }
  /* a full-width page-coloured strip behind the sticky button, so lesson text
     scrolls under the strip and never shows around the button */
  .sau-treebtn { box-shadow: var(--frame3), 4px 5px 0 0 var(--ink), 0 0 0 100vmax var(--page); clip-path: inset(-10px -100vmax -11px -100vmax); }
  .tree { position: fixed; z-index: 70; top: 0; left: 0; bottom: 0; max-height: none; width: min(340px, 86vw); padding: calc(env(safe-area-inset-top, 0px) + 22px) 0 0 22px; background: var(--page); box-shadow: var(--frame3); transform: translateX(-110%); transition: transform .22s steps(6); }
  .tree-open .tree { transform: none; }
  .tree__close { display: grid; place-items: center; margin-right: 16px; }
  .tree-scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(18,17,23,.4); }
  .tree-scrim[hidden] { display: none; }
  .row__nav { display: none; }
}
@media (max-width: 760px) {
  :root { --gap: 14px; }
  .bill { height: auto; flex-direction: column; align-items: stretch; }
  .bill__art { position: relative; height: auto; aspect-ratio: 16 / 10; }
  .bill::after { display: none; }
  .bill__copy { padding: 24px 22px 26px; gap: 14px; }
  .bill p { font-size: 17px; line-height: 26px; }
  .row { margin-top: 52px; }
  .row__h h2 { font-size: 21px; margin-bottom: 14px; }
  .row__track { grid-auto-columns: 80%; }
  .row--bp .row__track { grid-auto-columns: 62%; }
  .cc__t { left: 14px; right: 14px; bottom: 12px; font-size: 17px; line-height: 22px; }
  .svtabs { margin-top: 32px; }
  .ep { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding: 16px 0; }
  .ep__n, .ep__th { display: none; }
  .ep__t { grid-column: 1; grid-row: 1 / span 2; }
  .ep__a { font-size: 17px; line-height: 23px; }
  .ep__d { font-size: 15px; line-height: 22px; }
  .ep__m { grid-column: 2; grid-row: 1; font-size: 12px; }
  .ep .later { grid-column: 2; grid-row: 2; justify-self: end; opacity: 1; }
  .cc > .later { opacity: 1; }
  .nextup { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 8px 0; }
  .lv__head { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .lv__head .lv__done { justify-self: start; }
  .lv__play { width: 58px; height: 58px; } .lv__play svg { width: 24px; height: 24px; }
  .say { padding: 22px 20px; }
  .say blockquote { font-size: 19px; line-height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc__art, .bpc, .tree, .bar i { transition: none; }
}
@media (max-width: 760px) {
  .bill.bill--home .bill__art { left: 0; width: 100%; }
  .bill.bill--home::after { display: none; }
  .bill--home .bill__copy { background: #1b1830; }
}

/* dropdown chevrons in the lesson tree */
.chev { flex: none; width: 22px; height: 22px; display: grid; place-items: center; margin-right: 4px; transition: transform .15s steps(2); }
.chev::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
details[open] > summary > .chev { transform: rotate(180deg); }
.tc > summary .chev { color: var(--ink-3); }
.tc > summary:hover .chev, .tc.cur > summary .chev { color: var(--ink); }

/* hover: the whole card grows; text keeps its size and sits in the lower part so the art stays visible */
.cc { --grow: 1.12; transition: transform .22s cubic-bezier(.2,.7,.2,1); transform-origin: center; }
.cc:first-child { transform-origin: left center; }
.cc:last-child { transform-origin: right center; }
.cc:hover, .cc:focus-within { z-index: 6; transform: scale(var(--grow)); }
.cc--soon:hover { transform: none; }
.cc:hover .cc__info, .cc:focus-within .cc__info { transform: scale(calc(1 / var(--grow))); transform-origin: left bottom; }
.cc__info { transition: transform .22s cubic-bezier(.2,.7,.2,1); }
.cc:hover > .later, .cc:focus-within > .later { transform: scale(calc(1 / var(--grow))); transform-origin: right top; }
.cc__art::before { background: linear-gradient(0deg, rgba(14,13,20,.92) 0%, rgba(14,13,20,.7) 34%, rgba(14,13,20,0) 66%); }
.cc__go { display: none; }
.cc__more { gap: 6px; }
.cc__m::before { content: "\25B6\00a0\00a0"; color: var(--cta); font-size: 10px; }
.cc--ep:hover .cc__art img { transform: scale(1.6) !important; }
@media (max-width: 1080px) { .cc:hover, .cc:focus-within { transform: none; } .cc:hover .cc__info, .cc:hover > .later { transform: none; } }

/* ---------- card art: brand paper tints, no text in the art; the title sits on the empty left side ---------- */
/* at rest the title sits under the art; on hover it moves into the dark info panel */
.cc__cap { display: block; margin-top: 12px; font: 700 18px/24px var(--font-display); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; transition: opacity .15s; }
.cc:hover .cc__cap, .cc:focus-within .cc__cap { opacity: 0; }
.cc:not(.cc--ep):not(.cc--soon) .cc__info > .cc__t { opacity: 0; transition: opacity .2s; }
.cc:not(.cc--ep):not(.cc--soon):hover .cc__info > .cc__t, .cc:not(.cc--ep):not(.cc--soon):focus-within .cc__info > .cc__t { opacity: 1; }
.cc__art { background: var(--paper); box-shadow: inset 0 0 0 1px rgba(18,17,23,.08); }
.cc__art::after { background: none; }
.cc--ep .cc__art::after { background: var(--shade); }
.cc__art::before { background: linear-gradient(0deg, rgba(14,13,20,.9) 0%, rgba(14,13,20,.62) 38%, rgba(14,13,20,0) 70%); }
/* big banner and course header on light colour, dark text */
.bill { background: #f3f2fa; color: var(--ink); box-shadow: var(--frame3), 8px 10px 0 0 var(--ink); }
.bill::after, .bill.bill--home::after { display: none; }
.bill.bill--home { background: #f3f2fa; }
.bill.bill--home .bill__art { left: auto; right: 0; width: 66%; object-fit: cover; object-position: 100% 50%; }
.sv__hero .bill__art { left: auto; right: 0; width: 58%; object-fit: cover; object-position: 100% 50%; }
.bill__copy { color: var(--ink); }
.bill__k { color: var(--brand-deep); }
.bill__back { color: var(--ink-3); opacity: 1; }
.bill__back:hover { color: var(--ink); }
.bill h1 { color: var(--ink); }
.bill p { color: var(--ink-2); }
.bill .btn--ghost { background: var(--paper); }
.bill__bar { background: rgba(18,17,23,.12); }
.lv__player img { filter: none; transform: none; object-fit: cover; object-position: 50% 50%; }
.lv__player::after { content: ""; position: absolute; inset: 0; background: rgba(18,17,23,.35); }
.lv__ov { z-index: 1; }
@media (max-width: 760px) {
  .bill.bill--home .bill__art, .sv__hero .bill__art { position: relative; width: 100%; aspect-ratio: 16 / 10; object-position: 85% 50%; }
  .bill--home .bill__copy { background: transparent; }
}

/* course header: full title card on the right, words and buttons on the left */
.bill.sv__hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 40px; height: auto; min-height: 0; padding: 40px; }
.bill.sv__hero .bill__art { position: static; order: 2; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; box-shadow: var(--frame); }
.bill.sv__hero .bill__copy { padding: 0; max-width: none; }
.bill.sv__hero h1 { font-size: clamp(30px, 2.8vw, 44px); }
.bill.sv__hero p { font-size: 20px; line-height: 30px; color: var(--ink); font-weight: 500; }
@media (max-width: 1080px) { .bill.sv__hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; } .bill.sv__hero .bill__art { order: 0; } }
@media (max-width: 760px) { .bill.sv__hero { padding: 16px; } .bill.sv__hero .bill__art { aspect-ratio: 16 / 9; object-position: center; } .bill.sv__hero .bill__copy { padding: 4px 6px 10px; } }

/* episode stills: a light zoom on the object, a different crop per episode */
.ep__th img, .nextup__th img { transform: scale(1.4); }
.cc--ep:hover .cc__art img { transform: scale(1.5) !important; }
/* main banner: cast on the right, fading into the plain left side */
.bill.bill--home .bill__art { width: 72%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%); mask-image: linear-gradient(90deg, transparent 0%, #000 18%); }
.bill--home .bill__copy { max-width: 470px; }
.bill--home h1 { font-size: clamp(32px, 3vw, 46px); }
@media (max-width: 760px) { .bill.bill--home .bill__art { width: 100%; -webkit-mask-image: none; mask-image: none; } }

/* main banner: words left, object art in a frame on the right (same as the course header) */
.bill.bill--home { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 40px; height: auto; min-height: 0; padding: 40px 40px 40px 56px; }
.bill.bill--home .bill__art { position: static; order: 2; left: auto; width: 100%; height: auto; aspect-ratio: 1260 / 686; object-fit: cover; object-position: center; -webkit-mask-image: none; mask-image: none; box-shadow: var(--frame); }
.bill.bill--home .bill__copy { padding: 0; max-width: none; }
@media (max-width: 1080px) { .bill.bill--home { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; } .bill.bill--home .bill__art { order: 0; } }
@media (max-width: 760px) { .bill.bill--home { padding: 16px; } .bill.bill--home .bill__art { aspect-ratio: 1260 / 686; } .bill--home .bill__copy { padding: 4px 6px 10px; } }

/* lesson notes from the lesson team */
.lv__notes h3 { margin: 26px 0 10px; font: 800 19px/26px var(--font-display); }
.lv__notes p, .lv__notes li { font-size: 18px; line-height: 30px; color: var(--ink-2); }
.lv__notes p { margin: 0 0 14px; }
.lv__notes ol, .lv__notes ul { margin: 0 0 16px; padding-left: 26px; }
.lv__notes li { margin: 0 0 8px; padding-left: 4px; }
.lv__notes code { padding: 1px 6px; background: var(--brand-tint); color: var(--ink); font: 600 15px/1 ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
.qc__ex { margin: 6px 0 0; font-size: 16px; line-height: 24px; color: var(--ink-2); }
.qc__q.is-ok legend::after { content: "  Correct"; color: #166534; font-weight: 700; }
.qc__q.is-no legend::after { content: "  Try again"; color: #b42318; font-weight: 700; }

/* ---------- Long-form lesson reading and figures ---------- */
.lv__notes h3 { margin: 40px 0 12px; font: 800 21px/28px var(--font-display); letter-spacing: -0.01em; }
.lv__notes h3:first-of-type { margin-top: 8px; }
.lv__notes a { color: var(--brand-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lv__notes li + li { margin-top: 6px; }
.lv__notes b { color: var(--ink); }
.callout { margin: 22px 0; padding: 16px 20px; background: var(--brand-tint); box-shadow: inset 4px 0 0 0 var(--brand); }
.callout p { margin: 0; font-size: 17px; line-height: 28px; color: var(--ink); }
.callout p + p { margin-top: 8px; }

.fg { margin: 30px 0; padding: 20px 22px 18px; background: var(--paper); box-shadow: var(--frame), 0 6px 0 0 var(--ink); }
.fg__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font: 600 11px/14px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.fg__src { letter-spacing: .06em; }
.fg__t { margin: 8px 0 18px !important; font: 800 18px/24px var(--font-display) !important; color: var(--ink) !important; text-wrap: balance; }
.fg figcaption { margin-top: 16px; padding-top: 12px; border-top: 2px solid var(--line); font-size: 15px; line-height: 24px; color: var(--ink-3); }

/* job loop */
.fjl { display: grid; grid-template-columns: 1fr 18px 1fr 18px 1fr 18px 1fr; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.fjl__s { margin: 0 !important; padding: 12px 6px; text-align: center; font: 700 15px/20px var(--font-display) !important; color: var(--ink-3) !important; background: var(--page); box-shadow: var(--frame); }
.fjl__s.is-on { color: #fff !important; }
.fjl__s--catch.is-on { background: var(--st-catch); } .fjl__s--book.is-on { background: var(--st-book); }
.fjl__s--collect.is-on { background: var(--st-collect); } .fjl__s--keep.is-on { background: var(--st-keep); }
.fjl__a { margin: 0 !important; height: 2px; background: var(--ink); position: relative; }
.fjl__a::after { content: ""; position: absolute; right: 0; top: -4px; border: 5px solid transparent; border-left-color: var(--ink); border-right: 0; }
.fjl__base { display: grid; gap: 8px; margin-top: 14px; }
.fjl__u { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 12px; background: var(--page); box-shadow: var(--frame); font-size: 14px; line-height: 20px; color: var(--ink-3); }
.fjl__u b { font: 700 14px/20px var(--font-display); color: var(--ink-2); }
.fjl__u.is-on { color: #fff; } .fjl__u.is-on b { color: #fff; }
.fjl__u--run.is-on { background: var(--st-run); } .fjl__u--prove.is-on { background: var(--st-prove); }

/* flow */
.ffl { counter-reset: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ffl li { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0 !important; padding: 14px 14px 16px; background: var(--page); box-shadow: var(--frame); font-size: 15px !important; line-height: 22px !important; }
.ffl li b { font: 700 16px/22px var(--font-display); color: var(--ink); }
.ffl li span:not(.ffl__n) { color: var(--ink-3); }
.ffl__n { display: grid; place-items: center; width: 28px; height: 28px; font: 700 14px/1 var(--font-mono); color: var(--on-cta); background: var(--cta); box-shadow: var(--frame); }

/* bars */
.fbr { display: grid; gap: 12px; }
.fbr__r { display: grid; grid-template-columns: minmax(90px, 32%) minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 15px; line-height: 20px; }
.fbr__l { color: var(--ink-2); }
.fbr__t { height: 22px; background: var(--page); box-shadow: var(--frame); }
.fbr__t i { display: block; height: 100%; background: var(--brand); opacity: .55; }
.fbr__r.is-on .fbr__t i { background: var(--cta); opacity: 1; }
.fbr__v { font: 700 15px/20px var(--font-mono); color: var(--ink); min-width: 4ch; text-align: right; }

/* stats */
.fst { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.fst div { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--page); box-shadow: var(--frame); }
.fst b { font: 800 32px/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.fst span { font-size: 15px; line-height: 21px; color: var(--ink-3); }

/* compare */
.fcp { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 14px; }
.fcp__c { padding: 14px 16px; background: var(--page); box-shadow: var(--frame); }
.fcp__c > b { display: block; margin-bottom: 8px; font: 700 16px/22px var(--font-display); }
.fcp__c--bad { background: #fdecec; } .fcp__c--good { background: #ecf8e3; }
.fcp__c ul { margin: 0 !important; padding-left: 20px !important; }
.fcp__c li { font-size: 15px !important; line-height: 22px !important; }

/* math ledger */
.fmt { max-width: 520px; font: 500 15px/22px var(--font-mono); }
.fmt__r { display: flex; justify-content: space-between; gap: 16px; padding: 8px 2px; border-bottom: 2px dashed var(--line); }
.fmt__r span { color: var(--ink-2); } .fmt__r i { font-style: normal; display: inline-block; width: 2ch; color: var(--ink-3); }
.fmt__r b { color: var(--ink); white-space: nowrap; }
.fmt__res { margin-top: 6px; padding: 10px 12px; border: 0; background: var(--cta); box-shadow: var(--frame); }
.fmt__res span, .fmt__res b { color: var(--on-cta); font-weight: 700; }

/* timeline */
.ftl { margin: 0; padding: 0 0 0 4px; list-style: none; }
.ftl li { position: relative; display: grid; grid-template-columns: minmax(80px, 24%) minmax(0, 1fr); gap: 12px; margin: 0 !important; padding: 0 0 14px 22px; border-left: 2px solid var(--ink); font-size: 15px !important; line-height: 22px !important; }
.ftl li:last-child { border-left-color: transparent; padding-bottom: 0; }
.ftl li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; background: var(--cta); box-shadow: var(--frame); }
.ftl b { font: 700 14px/22px var(--font-mono); color: var(--ink); }
.ftl span { color: var(--ink-2); }

/* checklist */
.fck { margin: 0 !important; padding: 0 !important; list-style: none; display: grid; gap: 10px; }
.fck li { position: relative; margin: 0 !important; padding-left: 32px; font-size: 16px !important; line-height: 24px !important; }
.fck li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 16px; height: 16px; background: var(--paper); box-shadow: var(--frame); }
.fck li::after { content: ""; position: absolute; left: 7px; top: 5px; width: 5px; height: 9px; border: solid var(--green-text); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* funnel */
.ffn { display: grid; gap: 8px; }
.ffn__r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, 38%); align-items: center; gap: 12px; }
.ffn__b { display: flex; align-items: center; height: 36px; padding: 0 10px; background: var(--brand-tint); box-shadow: var(--frame); }
.ffn__r:last-child .ffn__b { background: var(--cta); }
.ffn__b b { font: 700 15px/1 var(--font-mono); color: var(--ink); white-space: nowrap; }
.ffn__l { font-size: 15px; line-height: 20px; color: var(--ink-2); }

/* table */
.ftb { overflow-x: auto; }
.ftb table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 21px; }
.ftb th, .ftb td { padding: 9px 10px; text-align: left; border-bottom: 2px solid var(--line); vertical-align: top; }
.ftb thead th { font: 700 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--ink); }
.ftb tbody th { font-weight: 700; color: var(--ink); }

@media (max-width: 640px) {
  .fg { padding: 16px 14px 14px; }
  .fjl { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fjl__a { display: none; }
  .fcp { grid-template-columns: 1fr; }
  .fbr__r { grid-template-columns: minmax(0, 1fr) auto; }
  .fbr__l { grid-column: 1 / -1; }
  .ftl li { grid-template-columns: 1fr; gap: 2px; }
  .ffn__r { grid-template-columns: 1fr; gap: 4px; }
}
.lv__notes .fg ol, .lv__notes .fg ul { padding-left: 0; margin: 0; }
.lv__notes .fcp__c ul { padding-left: 20px !important; }
.lv__notes code { overflow-wrap: anywhere; white-space: normal; }
.lv__notes .fg { overflow-wrap: anywhere; }
.lv__notes .ftb { overflow-wrap: normal; }
.lv__notes .ftb th, .lv__notes .ftb td { min-width: 6em; }

/* ---------- lesson page: final exam banner ---------- */
.lv__wrap { display: grid; grid-template-columns: minmax(0, 760px) 252px; gap: 44px; align-items: start; margin-top: 44px; }
.lv__wrap .lv__body { margin-top: 0; min-width: 0; }
.exb { order: 2; position: sticky; top: calc(var(--top, 80px) + 24px + env(safe-area-inset-top, 0px)); display: grid; gap: 8px; padding: 18px 18px 16px; background: var(--paper); box-shadow: var(--frame3), 0 8px 0 0 var(--ink); }
.exb__badges { display: flex; gap: 2px; margin-bottom: 6px; }
.exb__badges .sau-badge { width: 40px; height: 48px; }
.exb__k { margin: 0; font: 600 11px/14px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-deep); }
.exb__t { margin: 0; font: 800 21px/26px var(--font-display); color: var(--ink); }
.exb__d { margin: 0 0 8px; font-size: 15px; line-height: 22px; color: var(--ink-3); }
.exb__go { justify-self: start; margin: 3px 3px 9px; }
@media (max-width: 1240px) {
  .lv__wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .exb { order: 0; position: static; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 14px 16px; max-width: 760px; }
  .exb__badges { grid-row: 1 / span 3; margin: 0; }
  .exb__badges .sau-badge { width: 28px; height: 34px; }
  .exb__k, .exb__t, .exb__d { grid-column: 2; } .exb__d { margin: 0; }
  .exb__go { grid-column: 3; grid-row: 1 / span 3; }
}
@media (max-width: 640px) {
  .exb { grid-template-columns: minmax(0, 1fr); }
  .exb__badges { grid-row: auto; }
  .exb__k, .exb__t, .exb__d, .exb__go { grid-column: 1; grid-row: auto; }
}

/* ---- v3 figure types ---- */
:root { --fx-0: #dbeafe; --fx-1: #fef3c7; --fx-2: #dcfce7; --fx-3: #fce7f3; --fx-4: #e0e7ff; --fx-5: #cffafe;
        --fxd-0: #2563eb; --fxd-1: #d97706; --fxd-2: #16a34a; --fxd-3: #db2777; --fxd-4: #4f46e5; --fxd-5: #0891b2; }

/* decision flowchart */
.fdc { display: grid; justify-items: center; gap: 0; margin: 0 !important; padding: 0 !important; list-style: none; }
.fdc > li { margin: 0 !important; width: 100%; max-width: 560px; font-size: 15px !important; line-height: 22px !important; }
.fdc__s { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; text-align: center; background: var(--page); box-shadow: var(--frame); }
.fdc__s b { font: 700 16px/22px var(--font-display); color: var(--ink); }
.fdc__s span { color: var(--ink-3); }
.fdc__s--start, .fdc__s--end { border-radius: 999px; }
.fdc__s--end { background: var(--cta); } .fdc__s--end span { color: var(--ink-2); }
.fdc__s--alert { background: #fdecec; }
.fdc__a { position: relative; height: 26px; width: 2px !important; background: var(--ink); }
.fdc__a::after { content: ""; position: absolute; left: -5px; bottom: -1px; border: 6px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.fdc__q { display: grid; gap: 10px; }
.fdc__d { justify-self: center; display: grid; place-items: center; min-width: min(300px, 100%); padding: 12px 22px; text-align: center; background: var(--brand-tint);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%); }
.fdc__d b { font: 700 15px/21px var(--font-display); color: var(--ink); }
.fdc__br { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fdc__y, .fdc__n { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--paper); box-shadow: var(--frame); color: var(--ink-2); }
.fdc__y i, .fdc__n i { font: 700 11px/14px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; font-style: normal; }
.fdc__y { box-shadow: var(--frame), inset 5px 0 0 0 var(--green-text); } .fdc__y i { color: var(--green-text); }
.fdc__n { box-shadow: var(--frame), inset 5px 0 0 0 #b91c1c; } .fdc__n i { color: #b91c1c; }

/* swimlane */
.fsl { container-type: inline-size; }
.fsl__g { display: grid; grid-template-columns: 112px repeat(var(--n), minmax(80px, 1fr)); gap: 6px; padding: 3px 4px 6px 3px; }
.fsl--v .fsl__g { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.fsl--v .fsl__l { justify-content: center; text-align: center; }
.fsl--v .fsl__c { min-height: 0; } .fsl--v .fsl__c--gap { background: linear-gradient(var(--line), var(--line)) 50% 0 / 2px 100% no-repeat; min-height: 20px; }
.fsl--v .fsl__c.is-on { font-size: 14px; line-height: 19px; }
.fsl__h { font: 700 11px/14px var(--font-mono); letter-spacing: .1em; color: var(--ink-3); text-align: center; }
.fsl__l { display: flex; align-items: center; padding: 8px 10px; font: 700 13px/17px var(--font-display); color: var(--ink); overflow-wrap: normal; word-break: normal; hyphens: none; }
.fsl__l--0 { background: var(--fx-0); } .fsl__l--1 { background: var(--fx-1); } .fsl__l--2 { background: var(--fx-2); } .fsl__l--3 { background: var(--fx-3); }
.fsl__c { min-height: 54px; background: linear-gradient(var(--line), var(--line)) 0 50% / 100% 2px no-repeat; }
.fsl__c.is-on { display: flex; flex-direction: column; gap: 4px; padding: 8px 8px; background: var(--paper); box-shadow: var(--frame); font-size: 13px; line-height: 18px; color: var(--ink-2); overflow-wrap: normal; word-break: normal; }
.fsl__c--0.is-on { box-shadow: var(--frame), inset 0 4px 0 0 var(--fxd-0); } .fsl__c--1.is-on { box-shadow: var(--frame), inset 0 4px 0 0 var(--fxd-1); }
.fsl__c--2.is-on { box-shadow: var(--frame), inset 0 4px 0 0 var(--fxd-2); } .fsl__c--3.is-on { box-shadow: var(--frame), inset 0 4px 0 0 var(--fxd-3); }
.fsl__k { font: 700 12px/1 var(--font-mono); color: var(--ink-3); }
.fsl__list { display: none; margin: 0 !important; padding: 0 !important; list-style: none; counter-reset: sl; }
.fsl__list li { counter-increment: sl; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0 0 10px !important; font-size: 15px !important; line-height: 22px !important; color: var(--ink-2); }
.fsl__list li::before { content: counter(sl); grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; font: 700 13px/1 var(--font-mono); background: var(--cta); box-shadow: var(--frame); }
.fsl__tag { justify-self: start; padding: 1px 8px; font: 700 11px/18px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.fsl__tag--0 { background: var(--fx-0); } .fsl__tag--1 { background: var(--fx-1); } .fsl__tag--2 { background: var(--fx-2); } .fsl__tag--3 { background: var(--fx-3); }

/* screen schematic */
.fsc { max-width: 620px; background: var(--paper); box-shadow: var(--frame3); }
.fsc__bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--ink); }
.fsc__bar i { width: 10px; height: 10px; background: #3f3e47; }
.fsc__bar em { margin-left: auto; font: 600 10px/14px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: #b9b8c2; }
.fsc__body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.fsc__path { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font: 600 13px/18px var(--font-mono); }
.fsc__path span { padding: 3px 8px; background: var(--brand-tint); color: var(--ink); }
.fsc__path span + span::before { content: "\2192"; margin: 0 8px 0 -2px; color: var(--ink-3); }
.fsc__path span:last-child { background: var(--cta); }
.fsc__h { margin: 6px 0 2px !important; font: 800 16px/22px var(--font-display) !important; color: var(--ink) !important; }
.fsc__r { display: grid; grid-template-columns: minmax(110px, 40%) minmax(0, 1fr); gap: 10px; padding: 8px 10px; background: var(--page); font-size: 14px; line-height: 20px; }
.fsc__r span { color: var(--ink-3); } .fsc__r b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.fsc__btn { justify-self: start; margin-top: 4px; padding: 8px 14px; font: 700 14px/1 var(--font-display); background: var(--cta); box-shadow: var(--frame), 0 4px 0 0 var(--ink); }

/* chat */
.fch { display: grid; gap: 10px; max-width: 520px; margin: 0 !important; padding: 0 !important; list-style: none; }
.fch__m { max-width: 85%; margin: 0 !important; padding: 10px 14px; font-size: 15px !important; line-height: 22px !important; color: var(--ink); background: var(--page); box-shadow: var(--frame); }
.fch__m small { display: block; margin-bottom: 2px; font: 700 11px/15px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fch__m--us { justify-self: end; background: var(--brand-tint); } .fch__m--us small { color: var(--brand-deep); }
.fch__m--note small { display: none; }
.fch__m--note { justify-self: center; max-width: 100%; background: transparent; box-shadow: none; text-align: center; color: var(--ink-3); font-size: 13px !important; }

/* before / after */
.fba { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: stretch; gap: 10px; }
.fba__c { padding: 14px 16px; box-shadow: var(--frame); }
.fba__c--b { background: #f1f0ec; } .fba__c--a { background: #ecf8e3; }
.fba__c > b { display: block; margin-bottom: 8px; font: 700 13px/18px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.fba__c ul { margin: 0 !important; padding-left: 18px !important; } .fba__c li { font-size: 15px !important; line-height: 22px !important; }
.fba__c--b li { color: var(--ink-3); }
.fba__ar { align-self: center; height: 4px; background: var(--ink); position: relative; }
.fba__ar::after { content: ""; position: absolute; right: -2px; top: -8px; border: 10px solid transparent; border-left-color: var(--ink); border-right: 0; }

/* 2x2 matrix */
.fmx { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; gap: 8px; }
.fmx__y { grid-row: 1; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font: 700 11px/14px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.fmx__x { grid-column: 2; text-align: center; font: 700 11px/14px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.fmx__g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fmx__q { display: flex; flex-direction: column; gap: 4px; min-height: 92px; padding: 12px; background: var(--page); box-shadow: var(--frame); font-size: 14px; line-height: 20px; color: var(--ink-3); }
.fmx__q b { font: 700 15px/20px var(--font-display); color: var(--ink); }
.fmx__q.is-on { background: var(--cta); color: var(--ink-2); }

/* split bar */
.fsp__bar { display: flex; height: 30px; box-shadow: var(--frame); background: var(--page); }
.fsp__s { display: block; height: 100%; }
.fsp__s--0 { background: var(--fxd-4); } .fsp__s--1 { background: var(--fxd-1); } .fsp__s--2 { background: var(--fxd-2); }
.fsp__s--3 { background: var(--fxd-3); } .fsp__s--4 { background: var(--fxd-5); } .fsp__s--5 { background: var(--st-run); }
.fsp__bar .fsp__s + .fsp__s { box-shadow: -2px 0 0 0 var(--paper); }
.fsp__leg { display: grid; gap: 6px; margin: 14px 0 0 !important; padding: 0 !important; list-style: none; }
.fsp__leg li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0 !important; font-size: 15px !important; line-height: 21px !important; color: var(--ink-2); }
.fsp__leg li i { width: 14px; height: 14px; }
.fsp__leg b { font: 700 15px/21px var(--font-mono); color: var(--ink); }
.fsp__tot { display: flex; justify-content: space-between; margin: 10px 0 0 !important; padding: 8px 10px; background: var(--cta); font-weight: 700; }

/* scale bands */
.fsk { position: relative; padding-bottom: 34px; }
.fsk__row { display: flex; gap: 3px; }
.fsk__b { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 8px; font-size: 13px; line-height: 17px; color: var(--ink-2); box-shadow: var(--frame); }
.fsk__b b { font: 700 14px/18px var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
.fsk__b span { font-family: var(--font-mono); font-size: 12px; }
.fsk__b--0 { background: #fde2e2; } .fsk__b--1 { background: var(--fx-1); } .fsk__b--2 { background: var(--fx-2); } .fsk__b--3 { background: #bbf7d0; }
.fsk__b--4 { background: var(--fx-0); } .fsk__b--5 { background: var(--fx-4); }
.fsk__m { position: absolute; bottom: 0; transform: translateX(-50%); white-space: nowrap; }
.fsk__m::before { content: ""; position: absolute; left: 50%; top: -10px; border: 6px solid transparent; border-bottom-color: var(--ink); border-top: 0; transform: translateX(-50%); }
.fsk__m span { display: inline-block; padding: 2px 8px; font: 700 12px/18px var(--font-mono); background: var(--ink); color: #fff; }

@media (max-width: 640px) {
  .fdc__br { grid-template-columns: 1fr; }
  .fsl__g { display: none; } .fsl__list { display: block; }
  .fba { grid-template-columns: 1fr; } .fba__ar { justify-self: center; width: 4px; height: 26px; }
  .fba__ar::after { right: auto; top: auto; left: -8px; bottom: -6px; border: 10px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
  .fsk__row { flex-direction: column; } .fsk { padding-bottom: 0; } .fsk__m { position: static; transform: none; margin-top: 10px; } .fsk__m::before { display: none; }
  .fsc__r { grid-template-columns: 1fr; gap: 2px; }
  .fmx__q { min-height: 0; }
}
.lv__notes .lv__tbl { margin: 18px 0 22px; } .lv__notes .lv__tbl td, .lv__notes .lv__tbl th { font-size: 15px; }
/* client conversation (v3) */
.say--talk { padding: 24px 26px; }
.talk { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.talk__l { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: baseline; margin: 0; padding: 10px 14px; background: var(--paper); box-shadow: var(--frame); }
.talk__l b { font: 700 11px/18px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.talk__l span { font-size: 17px; line-height: 26px; color: var(--ink); }
.talk__l--me { background: var(--cta); } .talk__l--me b { color: var(--ink); }
@media (max-width: 640px) { .say--talk { padding: 18px 14px; } .talk__l { grid-template-columns: 1fr; gap: 2px; } .talk__l span { font-size: 16px; line-height: 24px; } }

@container (max-width: 600px) { .fsl__g { display: none; } .fsl__list { display: block; } }
.ffn__b { min-width: max-content; }
.fdc__y.is-end, .fdc__n.is-end { background: var(--page); }
.fdc__stop { align-self: flex-start; margin-top: 2px; padding: 0 6px; font: 700 10px/16px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--ink-3); box-shadow: var(--frame); }
.qc code { padding: 1px 5px; background: var(--brand-tint); font: 600 14px/1 ui-monospace, Menlo, Consolas, monospace; }

/* Catalog billboard: the page H1 is the kicker, the featured course title is an h2. */
.bill h1.bill__k { margin: 0; font: 600 12px/16px var(--font-mono); letter-spacing: .16em; color: var(--brand-deep); text-wrap: initial; }
.bill .bill__t { margin: 0; color: var(--ink); font: 800 clamp(34px, 3.6vw, 56px)/1.02 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
.bill--home .bill__t { font-size: clamp(32px, 3vw, 46px); }
