/* Founder's Lab portal pages (the old portal's layout, drawn with Study Hub's tokens: no colour is defined here).
   Role mapping from the old portal's dash-* palette:
     page bg -> --bg            card -> --surface          tint -> --surface-2        border -> --border
     ink -> --text              secondary + muted text -> --text-muted (Study Hub has two text levels)
     accent fill (gold) -> --gold with --on-gold          accent text -> --gold      success -> --success    error -> --danger
     dark panel (navy) -> --next-bg with --next-text / --next-muted / --next-label
   Fonts: --font-head (display), --font-body, --mono. Spacing and radii keep the old portal's values. */

/* ---------- sidebar: "Your journey" widget, top bar title ---------- */
.side-widget { flex: none; padding: 12px; border-top: 1px solid var(--border); }
.side-widget[hidden] { display: none; }
.app.rail .side-widget { display: none; }
.jw { display: block; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); transition: border-color .2s; }
.jw:hover { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.jw-top { display: flex; align-items: center; justify-content: space-between; }
.jw-top b { font: 700 .875rem var(--font-head); }
.jw-chev { width: 16px; height: 16px; color: var(--text-muted); }
.jw:hover .jw-chev { color: var(--gold); }
.jw-chev svg { width: 100%; height: 100%; }
.jw-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.jw-track { flex: 1; height: 6px; overflow: hidden; border-radius: 999px; background: var(--track); }
.jw-track i { display: block; height: 100%; border-radius: 999px; background: var(--gold); transform-origin: left; animation: pt-grow .8s cubic-bezier(.22, 1, .36, 1) .2s both; }
.jw-pct { font: 600 .75rem var(--mono); color: var(--text); }
.jw-lab { margin: 6px 0 0; font: 500 .625rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

.topbar.is-titled .crumb { font-family: var(--font-head); text-transform: none; letter-spacing: normal; }
.topbar.is-titled .bar-title { font: 700 1.125rem var(--font-head); letter-spacing: -.01em; color: var(--text); }
.topbar.is-titled .today { font-size: .625rem; letter-spacing: .16em; }

/* ---------- shared bits ---------- */
.pt-page { min-width: 0; }
.app-panel .pt-eyebrow { margin: 0; font: 600 .6875rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }
.pt-card { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); min-width: 0; }
.pt-ghost { display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: 600 .875rem var(--font-body); transition: border-color .2s, color .2s; }
.pt-ghost:hover { border-color: color-mix(in srgb, var(--gold) 60%, transparent); color: var(--gold); }
.pt-ghost svg { width: 14px; height: 14px; }

/* ---------- Overview ---------- */
.pt-hero { display: flex; flex-direction: column; gap: 32px; }
.app-panel .pt-h1 { font: 700 clamp(2.25rem, 4vw, 3rem)/1.1 var(--font-head); letter-spacing: -.025em; color: var(--text); }
.pt-sub { margin: 12px 0 0; color: var(--text-muted); font-size: 1rem; }
.pt-hero-side { display: flex; flex: none; align-items: center; gap: 20px; }
.pt-quote { max-width: 170px; margin: 0; text-align: right; font: italic 400 1rem/1.4 var(--font-head); color: var(--text); }
.pt-art { flex: none; width: 96px; height: 96px; overflow: hidden; border-radius: 50%; box-shadow: 0 20px 45px -15px color-mix(in srgb, var(--gold) 55%, transparent); }
.pt-art svg { display: block; width: 100%; height: 100%; }

.pt-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
.pt-two { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
.pt-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pt-head .pt-right { text-align: right; font-size: .875rem; color: var(--text-muted); }
.pt-pct { margin-left: 12px; font: 700 1.5rem var(--font-head); color: var(--text); }
.pt-cur { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 20px; }
.pt-cur-name { margin: 0; font: 700 1.5rem var(--font-head); color: var(--text); }
.pt-cur-sub { margin: 4px 0 0; font-size: .875rem; color: var(--text-muted); }

.pt-rail { position: relative; margin-top: 32px; }
.pt-rail-line, .pt-rail-fill { position: absolute; left: 0; right: 0; top: 13px; height: 1px; }
.pt-rail-line { background: var(--border); }
.pt-rail-fill { background: var(--gold); transform-origin: left; animation: pt-grow .8s cubic-bezier(.22, 1, .36, 1) .2s both; }
.pt-rail ol { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 0; margin: 0; padding: 0; list-style: none; }
.pt-rail li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pt-node { display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 2px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text-muted); }
.pt-node svg { width: 14px; height: 14px; }
.pt-rail .is-reached .pt-node { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
.pt-rail b { margin-top: 12px; font: 600 .75rem var(--font-body); color: var(--text); }
.pt-rail small { margin-top: 2px; font: 400 .5625rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.pt-rail .is-current small { color: var(--gold); }

.pt-next { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 24px; border: 1px solid var(--next-border); border-radius: 16px; background: var(--next-bg); color: var(--next-text); }
.pt-next-top { display: flex; align-items: center; justify-content: space-between; }
.pt-next .pt-eyebrow { color: var(--next-muted); }
.pt-pill { padding: 4px 12px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font: 600 .6875rem var(--font-body); }
.app-panel .pt-next h3 { margin: 20px 0 0; font: 700 1.5rem var(--font-head); color: var(--next-text); letter-spacing: -.01em; }
.pt-next p { margin: 8px 0 0; font-size: .875rem; line-height: 1.6; color: var(--next-muted); }
.pt-next-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 32px; }
.pt-next-foot > span { font-size: .75rem; color: var(--next-muted); }
.pt-round { display: flex; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--gold); color: var(--on-gold); transition: transform .2s; }
.pt-round:hover { transform: scale(1.05); }
.pt-round svg { width: 16px; height: 16px; }

.pt-line { display: flex; align-items: center; justify-content: space-between; }
.pt-link { display: inline-flex; align-items: center; gap: 4px; font: 600 .75rem var(--font-body); color: var(--text-muted); transition: color .2s; }
.pt-link:hover { color: var(--gold); }
.pt-link svg { width: 12px; height: 12px; }
.pt-session { display: flex; gap: 16px; margin-top: 20px; }
.pt-date { display: flex; flex: none; width: 64px; height: 64px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.pt-date small { font: 600 .625rem var(--mono); text-transform: uppercase; color: var(--gold); }
.pt-date b { font: 700 1.25rem var(--font-head); color: var(--text); }
.pt-date em { font: normal 400 .5625rem var(--mono); text-transform: uppercase; color: var(--text-muted); }
.pt-session p { margin: 0; min-width: 0; }
.pt-session .t { font: 600 .875rem var(--font-body); color: var(--text); }
.pt-session .m { margin-top: 4px; font-size: .75rem; color: var(--text-muted); }
.pt-none { margin: 20px 0 0; font-size: .875rem; color: var(--text-muted); }
.pt-acts { display: grid; gap: 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.pt-acts li { display: flex; align-items: flex-start; gap: 12px; }
.pt-act-ic { display: flex; flex: none; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--success); color: var(--on-teal); }
.pt-act-ic svg { width: 16px; height: 16px; }
.pt-acts p { margin: 0; min-width: 0; }
.pt-acts .t { font: 600 .875rem var(--font-body); color: var(--text); }
.pt-acts .d { font-size: .75rem; color: var(--text-muted); }

.pt-quick { margin-top: 20px; }
.pt-quick .pt-line .note { display: none; font-size: .75rem; color: var(--text-muted); }
.pt-quick ul { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.pt-qcard { display: flex; align-items: center; gap: 12px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); transition: border-color .2s; }
.pt-qcard:hover { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.pt-qic { display: flex; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--gold-tint); color: var(--gold); }
.pt-qic svg { width: 20px; height: 20px; }
.pt-qtxt { flex: 1; min-width: 0; }
.pt-qtxt b { display: block; font: 600 .875rem var(--font-body); }
.pt-qtxt span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; color: var(--text-muted); }
.pt-qarrow { width: 16px; height: 16px; flex: none; color: var(--text-muted); transition: color .2s; }
.pt-qcard:hover .pt-qarrow { color: var(--gold); }
.pt-qarrow svg { width: 100%; height: 100%; }

.pt-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.pt-foot .tag { margin: 0; font: 600 .625rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.pt-foot .co { margin: 0; font-size: .75rem; color: var(--text-muted); text-align: right; }
.pt-foot .rule { width: 96px; height: 1px; margin: 8px 0 0 auto; background: var(--gold); }

@media (min-width: 640px) {
  .pt-rail ol { grid-template-columns: repeat(4, 1fr); }
  .pt-quick ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* minmax: the nowrap card text ellipsises instead of widening the page */
  .pt-quick .pt-line .note { display: block; }
}
@media (min-width: 1024px) {
  .pt-hero { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .pt-grid { grid-template-columns: 1fr 340px; }
  .pt-two { grid-template-columns: 1fr 1fr; }
  .pt-rail ol { grid-template-columns: repeat(7, 1fr); }
}

/* ---------- motion ---------- */
@keyframes pt-rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes pt-grow { from { transform: scaleX(0); } }
.pt-stagger > * { animation: pt-rise .5s cubic-bezier(.22, 1, .36, 1) both; }
.pt-stagger > :nth-child(2) { animation-delay: .08s; }
.pt-stagger > :nth-child(3) { animation-delay: .16s; }
.pt-stagger > :nth-child(4) { animation-delay: .24s; }
.pt-stagger > :nth-child(5) { animation-delay: .32s; }
.pt-stagger > :nth-child(n + 6) { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .pt-stagger > *, .pt-rail-fill, .jw-track i { animation: none; }
  .jw, .pt-ghost, .pt-link, .pt-round, .pt-qcard, .pt-qarrow { transition: none; }
  .pt-round:hover { transform: none; }
}

/* ======================================================================
   Shared view pieces (My Journey, Toolkit, Sessions, Documents, Profile)
   ====================================================================== */
.pt-tag { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; font: 600 .625rem/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.pt-tag.is-neutral { background: var(--surface-2); color: var(--text-muted); }
.pt-tag.is-active { border-color: color-mix(in srgb, var(--gold) 40%, transparent); background: var(--gold-tint); color: var(--gold); }
.pt-tag.is-done { border-color: var(--next-bg); background: var(--next-bg); color: var(--next-text); }
.pt-tag.is-ok { border-color: color-mix(in srgb, var(--success) 30%, transparent); background: color-mix(in srgb, var(--success) 10%, transparent); color: var(--success); }
.pt-tag.is-err { border-color: color-mix(in srgb, var(--danger) 30%, transparent); background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }

.app-panel .pt-eyebrow.is-gold { color: var(--gold); }
.app-panel .pt-h2 { margin: 16px 0 0; font: 700 clamp(1.875rem, 3vw, 2.25rem)/1.15 var(--font-head); letter-spacing: -.025em; color: var(--text); }
.pt-view-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.pt-view { margin-top: 40px; }
.pt-tabs { display: inline-flex; max-width: 100%; overflow-x: auto; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); }
.pt-tabs a { flex: none; padding: 8px 16px; border-radius: 999px; font: 600 .6875rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); transition: color .2s, background-color .2s; }
.pt-tabs a:hover { color: var(--text); }
.pt-tabs a[aria-current="page"] { background: var(--next-bg); color: var(--next-text); }
.pt-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); }
.pt-seg button { padding: 6px 14px; border: 0; border-radius: 999px; background: none; font: 600 .625rem var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); cursor: pointer; transition: color .2s, background-color .2s; }
.pt-seg button:hover { color: var(--text); }
.pt-seg button[aria-pressed="true"] { background: var(--next-bg); color: var(--next-text); }
.pt-empty { padding: 24px 20px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; font-size: .875rem; color: var(--text-muted); list-style: none; }
.pt-field { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: 400 .875rem var(--font-body); outline: none; }
.pt-field:focus { border-color: var(--gold); }
.pt-field[aria-invalid="true"] { border-color: var(--danger); }
.pt-field:disabled { opacity: .6; }
.pt-field.is-pill { width: auto; padding: 6px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
textarea.pt-field { resize: vertical; line-height: 1.5; }

/* ---------- uploader + submission status ---------- */
.up { margin-top: 12px; padding: 12px; border: 1px dashed var(--border); border-radius: 12px; }
.up-row { display: flex; flex-wrap: wrap; gap: 8px; }
.up-row .pt-field { flex: 1 1 220px; width: auto; }
.up-hint { margin: 8px 0 0; font-size: .75rem; color: var(--text-muted); }
.up-msg { margin: 0; font-size: .8125rem; }
.up-msg:not(:empty) { margin-top: 8px; }
.up-msg.bad { font-weight: 500; color: var(--danger); }
.up-msg.ok { color: var(--success); }
.sub-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sub-status .pt-tag.is-active { border-color: var(--sage-line); background: var(--sage-tint); color: var(--teal); } /* Submitted */
.sub-v { font: 500 .625rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.sub-file { margin: 6px 0 0; font-size: .75rem; color: var(--text-muted); word-break: break-all; }
.sub-file a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.sub-file a:hover { color: var(--gold); }
.sub-note { margin: 8px 0 0; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--danger) 6%, transparent); font-size: .75rem; color: var(--text); }

/* ---------- My Journey: the selectable rail and the checklist ---------- */
.jr-rail { position: relative; margin-top: 40px; }
.jr-rail ol { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 0; padding: 0; list-style: none; }
.jr-hline, .jr-hfill { display: none; position: absolute; left: 0; right: 0; top: 15px; height: 1px; }
.jr-hline { background: var(--border); }
.jr-hfill { background: var(--gold); transform-origin: left; animation: pt-grow .8s cubic-bezier(.22, 1, .36, 1) .2s both; }
.jr-vline { position: absolute; top: 4px; bottom: 4px; left: 15px; width: 1px; background: var(--border); }
.jr-stage { display: flex; width: 100%; align-items: center; gap: 16px; padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; font: inherit; }
.jr-node { position: relative; display: flex; flex: none; width: 32px; height: 32px; align-items: center; justify-content: center; border: 2px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text-muted); font: 600 .625rem var(--mono); transition: background-color .2s, border-color .2s; }
.jr-node svg { width: 14px; height: 14px; }
.jr-stage.is-done .jr-node { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
.jr-stage.is-current .jr-node { border-color: var(--gold); color: var(--gold); }
.jr-stage.is-selected .jr-node { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent); }
.jr-stage-t b { display: block; font: 600 .875rem var(--font-body); color: var(--text); }
.jr-stage.is-locked .jr-stage-t b { color: var(--text-muted); }
.jr-stage.is-selected .jr-stage-t b { color: var(--gold); }
.jr-stage-t small { display: block; margin-top: 2px; font: 400 .5625rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.jr-stage:focus-visible { outline: var(--focus-w) solid var(--gold); outline-offset: 4px; border-radius: 8px; }

.jr-section { margin-top: 40px; }
.app-panel .jr-h3 { margin: 8px 0 0; font: 700 1.25rem var(--font-head); letter-spacing: -.01em; color: var(--text); }
.jr-locked { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); font-size: .875rem; color: var(--text-muted); }
.jr-error { min-height: 20px; margin: 12px 0 0; font-size: .875rem; color: var(--danger); }
.jr-list { display: grid; gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.jr-row { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.jr-row-in { display: flex; min-width: 0; align-items: flex-start; gap: 12px; }
.jr-row-body { min-width: 0; flex: 1; }
.jr-row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jr-row-title p { margin: 0; font: 600 .875rem var(--font-body); color: var(--text); }
.jr-hint { margin: 4px 0 0; font-size: .75rem; color: var(--text-muted); }
.jr-box { display: flex; flex: none; width: 20px; height: 20px; margin-top: 2px; padding: 0; align-items: center; justify-content: center; border: 2px solid color-mix(in srgb, var(--text-muted) 60%, transparent); border-radius: 6px; background: var(--surface); color: transparent; transition: background-color .2s, border-color .2s; }
.jr-box svg { width: 12px; height: 12px; }
.jr-box.is-done { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
button.jr-box { cursor: pointer; }
button.jr-box:disabled { cursor: not-allowed; opacity: .5; }
button.jr-box:focus-visible { outline: var(--focus-w) solid var(--gold); outline-offset: 2px; }
.jr-text, .jr-proof { margin-top: 12px; }
.jr-ans { margin: 0 0 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: color-mix(in srgb, var(--surface-2) 60%, transparent); white-space: pre-line; font-size: .875rem; color: var(--text); }
.jr-text-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.jr-count { font: 400 .6875rem var(--mono); color: var(--text-muted); }
.jr-btns { display: flex; gap: 8px; }
.jr-btns .btn-pill, .jr-text .btn-pill { padding: 8px 18px; font-size: .875rem; }
.jr-err { margin: 4px 0 0; font-size: .75rem; font-weight: 500; color: var(--danger); }

/* ---------- Competitions ---------- */
.cp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cp-list { display: grid; gap: 20px; margin: 24px 0 0; padding: 0; list-style: none; }
.cp-card { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.cp-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cp-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.app-panel .cp-title h3 { font: 700 1.25rem var(--font-head); letter-spacing: -.01em; color: var(--text); }
.cp-org { margin: 4px 0 0; font-size: .75rem; color: var(--text-muted); }
.cp-star { flex: none; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: var(--text-muted); cursor: pointer; transition: color .2s; }
.cp-star:hover { color: var(--gold); }
.cp-star.is-on { color: var(--gold); }
.cp-star svg { width: 100%; height: 100%; }
.cp-about { margin: 16px 0 0; font-size: .875rem; line-height: 1.6; color: var(--text-muted); }
.cp-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.cp-facts dt { font: 600 .625rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.cp-facts dd { margin: 4px 0 0; font-size: .75rem; line-height: 1.6; color: var(--text-muted); }
.cp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.cp-status { display: flex; align-items: center; gap: 12px; font: 600 .625rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.cp-site { font-size: .75rem; font-weight: 600; color: var(--gold); }
.cp-site:hover { opacity: .7; }
.cp-err { font-size: .75rem; font-weight: 500; color: var(--danger); }

@media (min-width: 640px) { .cp-facts { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) {
  .jr-rail ol { grid-template-columns: repeat(7, 1fr); gap: 8px; }
  .jr-hline, .jr-hfill { display: block; }
  .jr-vline { display: none; }
  .jr-stage { flex-direction: column; text-align: center; }
  .jr-node { margin: 0 auto; }
  .jr-stage-t { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .jr-hfill { animation: none; }
  .jr-node, .jr-box, .pt-tabs a, .pt-seg button, .cp-star { transition: none; }
}

/* ======================================================================
   Toolkit: index cards and the tool worksheet pages
   ====================================================================== */
.tk-head { max-width: 640px; }
.tk-sub { margin: 8px 0 0; font-size: 1rem; line-height: 1.6; color: var(--text-muted); }
.tk-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 40px 0 0; padding: 0; list-style: none; }
.tk-num { font: 600 .875rem var(--mono); color: var(--text-muted); transition: color .2s; }
.tk-num.is-gold { color: var(--gold); }
.tk-card { display: flex; flex-direction: column; height: 100%; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); transition: transform .3s, border-color .3s, box-shadow .3s; }
.tk-card:hover, .tk-card:focus-visible { transform: translateY(-6px); border-color: color-mix(in srgb, var(--gold) 60%, transparent); box-shadow: 0 28px 56px -26px color-mix(in srgb, var(--gold) 35%, transparent); }
.tk-card:hover .tk-num { color: var(--gold); }
.tk-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tk-card h2 { margin: 24px 0 0; font: 700 1.25rem var(--font-head); letter-spacing: -.01em; }
.tk-card p { margin: 8px 0 0; font-size: .875rem; line-height: 1.6; color: var(--text-muted); }
.tk-open { margin-top: 24px; font-size: .875rem; font-weight: 600; color: var(--gold); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.tk-card:hover .tk-open, .tk-card:focus-visible .tk-open { opacity: 1; transform: none; }
/* Number and badge only: no name, no text, no link, no hover. */
.tk-soon { display: flex; flex-direction: column; min-height: 176px; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); }
.tk-soon .pt-tag { align-self: center; margin: auto; opacity: .7; }

.tk-back { display: inline-flex; align-items: center; gap: 8px; font: 500 .6875rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); transition: color .2s; }
.tk-back:hover { color: var(--gold); }
.tk-detail-head { margin-top: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.tk-badges { display: flex; align-items: center; gap: 12px; }
.tk-title { margin: 12px 0 0; font: 700 clamp(2rem, 4vw, 3rem)/1.1 var(--font-head); letter-spacing: -.025em; color: var(--text); }
.tk-detail { display: grid; gap: 40px; margin-top: 40px; }
.tk-detail aside .pt-eyebrow:not(:first-child) { margin-top: 32px; }
.tk-chips, .tk-tips { margin: 16px 0 0; padding: 0; list-style: none; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-chips li { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .75rem; font-weight: 500; color: var(--text-muted); }
.tk-tips { display: grid; gap: 12px; }
.tk-tips li { display: flex; gap: 12px; font-size: .875rem; line-height: 1.6; color: var(--text-muted); }
.tk-tips li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--gold); }
.tk-box { padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: border-color .2s; }
.tk-box:focus-within { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.tk-box-top, .tk-box-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tk-example { padding: 0; border: 0; background: none; font: 600 .75rem var(--font-body); color: var(--gold); cursor: pointer; }
.tk-example:hover { opacity: .7; }
.tk-box textarea { display: block; width: 100%; margin-top: 12px; padding: 0; border: 0; outline: none; resize: vertical; background: transparent; color: var(--text); font: 400 .9375rem/1.6 var(--font-body); }
.tk-box textarea::placeholder { color: var(--text-muted); }
.tk-box-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.tk-count { font: 500 .6875rem var(--mono); color: var(--text-muted); }
.tk-generate { padding: 12px 24px; border: 0; border-radius: 999px; background: var(--gold); color: var(--on-gold); font: 600 .875rem var(--font-body); opacity: .4; cursor: not-allowed; }
.tk-note { margin: 16px 0 0; font-size: .875rem; color: var(--text-muted); }
@media (min-width: 640px) { .tk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .tk-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .tk-detail { grid-template-columns: 300px 1fr; }
  .tk-detail aside { position: sticky; top: 96px; align-self: start; }
}
@media (prefers-reduced-motion: reduce) { .tk-card:hover, .tk-card:focus-visible { transform: none; } }

/* ======================================================================
   Sessions: the timeline and the page of a session
   ====================================================================== */
.sl { position: relative; display: flex; flex-direction: column; gap: 32px; margin: 40px 0 0; padding: 0; list-style: none; }
.sl::before { content: ""; position: absolute; top: 24px; bottom: 24px; left: 56px; width: 1px; transform: translateX(-50%); background: var(--border); display: none; }
.sl > li { position: relative; display: flex; flex-direction: column; gap: 12px; }
.sl-mark { display: flex; flex: none; align-items: center; gap: 12px; }
.sl-dot { position: relative; z-index: 1; display: flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text-muted); font: 600 .875rem var(--mono); }
.sl-dot.is-open { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
.sl-when { position: relative; padding: 4px; background: var(--bg); text-align: center; }
.sl-when b { display: block; font: 600 .6875rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.sl-when small { display: block; font: 500 .625rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.sl-card { min-width: 0; flex: 1; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: border-color .2s; }
.sl-card:not(.is-locked):hover { border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.sl-card h2 { margin: 12px 0 0; font: 700 1.25rem var(--font-head); letter-spacing: -.01em; }
.sl-card > p { margin: 4px 0 0; font-size: .875rem; color: var(--text-muted); }
.sl-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 16px; }
.sl-foot .ss-prog { width: 100%; max-width: 320px; }
.sl-card.is-locked { display: flex; align-items: center; gap: 12px; background: var(--surface-2); opacity: .7; }
.sl-card.is-locked svg { flex: none; width: 20px; height: 20px; color: var(--text-muted); }
.sl-card.is-locked p { flex: 1; margin: 0; font: 700 1.125rem var(--font-head); color: var(--text-muted); }
@media (min-width: 640px) {
  .sl::before { display: block; }
  .sl > li { flex-direction: row; align-items: flex-start; gap: 24px; }
  .sl-mark { flex-direction: column; width: 112px; gap: 6px; }
}

.ss-bar { height: 6px; overflow: hidden; border-radius: 999px; background: var(--track); }
.ss-bar i { display: block; height: 100%; border-radius: 999px; background: var(--teal); transition: width .3s; }
.ss-bar.is-lg { height: 8px; margin-top: 8px; }
.ss-steps { margin: 6px 0 0; font: 500 .625rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

.ss-head { margin-top: 16px; }
.ss-head .pt-h2 { margin-top: 12px; }
.ss-head .ss-prog { max-width: 320px; margin-top: 16px; }
.ss-tabs { position: sticky; top: 0; z-index: 5; margin: 32px -16px 0; padding: 0 16px; overflow-x: auto; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 97%, transparent); }
.ss-tabs ul { display: flex; min-width: max-content; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ss-tabs a { display: block; padding: 12px 16px; border-bottom: 2px solid transparent; font: 600 .875rem var(--font-body); color: var(--text-muted); transition: color .2s; }
.ss-tabs a:hover { color: var(--text); }
.ss-tabs a[aria-selected="true"] { border-bottom-color: var(--gold); color: var(--gold); }
.ss-panes { margin-top: 24px; }
.ss-panes > [hidden] { display: none; }
.ss-soon { padding: 48px 20px; font-size: 1rem; }
.rs-head .tk-back { display: inline-flex; margin-bottom: 12px; }

.ss-card { display: block; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); }
.ss-card.is-dashed { border-style: dashed; background: var(--surface-2); }
.ss-card.is-link { transition: border-color .2s; }
.ss-card.is-link:hover { border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.ss-card-t { margin: 0; font: 700 1.0625rem var(--font-head); }
.ss-card-s { margin: 4px 0 0; font-size: .875rem; line-height: 1.6; color: var(--text-muted); }
.ss-recap { margin: 0; font-size: .875rem; line-height: 1.7; color: var(--text-muted); }
.ss-take-h { margin-top: 24px !important; }
.ss-take { margin: 12px 0 0; padding-left: 20px; font-size: .875rem; color: var(--text); }
.ss-take li { margin-top: 8px; padding-left: 4px; }
.ss-take li::marker { color: var(--gold); font-weight: 600; }

.ss-acts, .ss-outs, .ss-slots, .ss-review { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ss-acts li { display: flex; align-items: flex-start; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.ss-acts .n { font: 600 .875rem var(--mono); color: var(--gold); }
.ss-acts p { flex: 1; margin: 0; font-size: .875rem; color: var(--text); }
.ss-acts .t { flex: none; font: 500 .6875rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.ss-instr { margin-top: 24px; padding: 20px; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: 16px; background: var(--gold-tint); }
.ss-instr p:last-child { margin: 12px 0 0; font-size: .875rem; line-height: 1.6; white-space: pre-line; color: var(--text); }
.ss-up-h { margin: 40px 0 16px !important; }
.ss-slot { padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.ss-slot-t { margin: 0; font-size: .875rem; font-weight: 600; }
.ss-slot-s { margin-top: 8px; }
.ss-slot [data-up] { margin-top: 12px; }
.ss-outs label { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); font-size: .875rem; cursor: pointer; }
.ss-outs input { margin-top: 2px; accent-color: var(--gold); }
.ss-outs label.is-done span { color: var(--text-muted); text-decoration: line-through; }
.ss-err { min-height: 1.2em; margin: 12px 0 0; font-size: .875rem; font-weight: 500; color: var(--danger); }

.ss-timer { margin-top: 24px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); text-align: center; }
.ss-clock { margin: 8px 0 0; font: 600 3rem var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.ss-clock.is-warn { color: var(--gold); }
.ss-clock.is-over { color: var(--danger); }
.ss-up { margin: 4px 0 0; font-size: .875rem; font-weight: 600; color: var(--danger); }
.ss-row { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.ss-row.is-between { justify-content: space-between; margin-top: 24px; }
.ss-row button:disabled { opacity: .45; cursor: not-allowed; }

.ss-q { margin: 24px 0 0; padding: 0; border: 0; }
.ss-q legend { padding: 0; font: 700 1.125rem var(--font-head); color: var(--text); }
.ss-q label { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: .875rem; cursor: pointer; transition: border-color .2s; }
.ss-q label:hover { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.ss-q label.is-on { border-color: var(--gold); background: var(--gold-tint); }
.ss-q input { margin-top: 2px; accent-color: var(--gold); }
.ss-q b { font-family: var(--mono); color: var(--text-muted); }
.ss-score { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); text-align: center; }
.ss-score p { margin: 8px 0 0; font-size: .875rem; color: var(--text-muted); }
.ss-score .ss-big { margin: 8px 0 0; font: 700 3rem var(--font-head); color: var(--text); }
.ss-big span { font-size: 1.5rem; color: var(--text-muted); }
.ss-score .btn-pill { margin-top: 16px; }
.ss-review { margin-top: 24px; }
.ss-review p { margin: 8px 0 0; font-size: .875rem; }
.ss-review .is-ok { color: var(--success); }
.ss-review .is-bad { color: var(--danger); }

/* ======================================================================
   Session 1's page, laid out like a course player: video, tabs, and the "Session content" list
   ====================================================================== */
.sd { padding: 24px clamp(16px, 3vw, 40px) 56px; }
.sd-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "player" "tabs" "side" "content"; column-gap: 32px; margin-top: 16px; }
.sd-player { grid-area: player; min-width: 0; }
.sd-tabs { grid-area: tabs; margin-top: 24px; margin-bottom: 0; }
.sd-side { grid-area: side; min-width: 0; margin-top: 24px; }
.sd-content { grid-area: content; min-width: 0; padding-top: 28px; }
.sd-content > .rs-sub:empty { display: none; }
.sd-content .rs-sub { margin: 0 0 20px; }

.sd-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: var(--next-bg); }
/* The shimmer shows through the player until its metadata loads. */
.sd-frame.is-loading { background: linear-gradient(90deg, var(--skel-a) 25%, var(--skel-b) 50%, var(--skel-a) 75%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.sd-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sd-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.sd-play:focus-visible { outline: 3px solid var(--gold); outline-offset: -4px; }
.sd-video-error { position: absolute; bottom: 0; inset-inline: 0; margin: 0; padding: .5rem; background: var(--surface); color: var(--text); text-align: center; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sd-frame.is-loading { animation: none; } }

.sd-info { margin-top: 20px; }
.sd-info h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.sd-watch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.sd-watch-row:empty { display: none; }
.sd-watch { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: 600 .875rem var(--font-body); cursor: pointer; transition: border-color .2s; }
.sd-watch:hover { border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.sd-watch:disabled { opacity: .6; cursor: progress; }
.sd-watch-box { display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid var(--text-muted); border-radius: 50%; }
.sd-watch[aria-pressed="true"] { border-color: var(--teal); }
.ss-video { margin-top: 20px; }
.ss-video .sd-watch-row { margin-top: 12px; }

/* the content list */
.sd-cur { border: 1px solid var(--border); border-radius: 16px; background: var(--panel); }
.sd-cur > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; font: 700 1rem var(--font-head); cursor: pointer; list-style: none; }
.sd-cur > summary::-webkit-details-marker { display: none; }
.sd-cur > summary b { margin-left: auto; font: 600 .875rem var(--mono); color: var(--gold); }
.sd-cur > summary::after { content: "▾"; color: var(--gold); }
.sd-cur[open] > summary::after { content: "▴"; }
.sd-cur > .nt-track { margin: 0 20px; }
.sd-secs { display: grid; gap: 4px; padding: 8px 8px 12px; }
.sd-sec { padding: 12px; }
.sd-sec + .sd-sec { border-top: 1px solid var(--border); }
.sd-sec:empty { display: none; }
.sd-sec .toc-list { margin-top: 12px; }
.sd-sec .nt-track { margin-top: 4px; }
.sd-sub { display: block; margin-top: 2px; color: var(--text-muted); font-size: .75rem; font-weight: 400; }
.toc-item:disabled { cursor: default; opacity: .65; }
.toc-item:disabled:hover { background: none; }
.toc-item.is-locked .toc-n { border-style: dashed; }
.toc-item.is-locked .toc-n svg { width: 13px; height: 13px; }
.sd-lock { margin: 4px 12px 0 48px; font-size: .8125rem; line-height: 1.5; color: var(--text-muted); }

/* beside the lesson from 1000px; under it the player, tabs and content list come in that order, the list as a drawer */
@container rs (min-width: 1000px) {
  .sd-grid { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "player side" "tabs side" "content side"; align-items: start; }
  .sd-side { position: sticky; top: calc(var(--top-h, 64px) + 16px); align-self: start; margin-top: 0; max-height: calc(100dvh - var(--top-h, 64px) - 32px); overflow-y: auto; }
  .sd-cur > summary { pointer-events: none; }
  .sd-cur > summary::after { content: none; }
}
/* the old in-page "Contents" dropdowns are replaced by the list in the right-hand panel */
.sd .nt-toc-m { display: none !important; }

.sd-ov { display: grid; gap: 40px; max-width: 760px; }
.sd-ov h2 { margin: 0 0 12px; font: 700 1.25rem var(--font-head); }
.sd-lead { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: var(--text); }
.sd-learn { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sd-learn li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; line-height: 1.55; }
.sd-learn li > span:first-child { display: grid; place-items: center; height: 1.55em; color: var(--teal); }
.sd-learn svg { width: 16px; height: 16px; }
.sd-ov .ss-prog { max-width: 360px; }

@media (prefers-reduced-motion: reduce) { .sd-watch { transition: none; } }
.sd-watch[aria-pressed="true"] .sd-watch-box { border-color: var(--teal); background: var(--teal); color: var(--on-teal); }
.sd-watch[aria-pressed="true"] .sd-watch-box::after { content: "✓"; font: 700 .6875rem/1 var(--font-body); }

/* ======================================================================
   Profile: the startup profile form with its completion meter
   ====================================================================== */
.pf { display: grid; gap: 20px; margin-top: 32px; max-width: 880px; }
.pf-card { display: grid; gap: 20px; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.pf-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pf-pct { font: 700 1.5rem var(--font-head); color: var(--text); }
.pf-hint { margin: -8px 0 0; font-size: .75rem; color: var(--text-muted); }
.pf-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.pf-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding: 0; font: 600 .875rem var(--font-body); color: var(--text); }
.pf-tag { font: 500 .625rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.pf-field .pt-field, .pf-member .pt-field { padding: 12px 16px; border-radius: 12px; font-size: .875rem; }
.pf-field textarea.pt-field { resize: vertical; line-height: 1.5; }
.pf-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pf-err { min-height: 0; margin: 6px 0 0; font-size: .75rem; color: var(--danger); }
.pf-err:empty { display: none; }
.pf-count { flex: none; margin: 6px 0 0; font: 500 .6875rem var(--mono); color: var(--text-muted); }
.pf-count.is-over { color: var(--danger); }
.pf-stages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pf-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font: 600 .875rem var(--font-body); color: var(--text-muted); cursor: pointer; transition: border-color .2s, background-color .2s; }
.pf-stage:hover { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.pf-stage input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pf-stage:has(input:checked) { border-color: var(--gold); background: var(--gold-tint); color: var(--gold); }
.pf-stage:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.pf-two { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.pf-team { display: grid; gap: 12px; margin: 0 0 12px; padding: 0; list-style: none; }
.pf-member { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.pf-member-top { display: flex; align-items: center; justify-content: space-between; }
.pf-remove { padding: 0; border: 0; background: none; font: 600 .75rem var(--font-body); color: var(--text-muted); cursor: pointer; }
.pf-remove:hover { color: var(--danger); }
.pf-three { display: grid; gap: 10px; margin-top: 10px; grid-template-columns: minmax(0, 1fr); }
.pf-bar { position: sticky; bottom: 16px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--surface) 97%, transparent); }
.pf-bar p { margin: 0; font-size: .75rem; color: var(--text-muted); }
.pf-bar .pf-err { flex: 1; color: var(--danger); }
.pf-bar [data-save]:disabled { opacity: .5; cursor: not-allowed; }
@media (min-width: 640px) {
  .pf-stages { grid-template-columns: repeat(4, 1fr); }
  .pf-two { grid-template-columns: repeat(2, 1fr); }
  .pf-three { grid-template-columns: repeat(3, 1fr); }
}


/* ---------- session thumbnail (js/hub/player.js videoThumbHtml): the session page's player and the Sessions list card ---------- */
.sd-frame.is-thumb { border: 1px solid var(--sage-line); }
.vt { position: relative; width: 100%; height: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream); }
.vt svg { display: block; width: 100%; height: 100%; }
.vt-bg { fill: var(--cream); }
.vt-wave { fill: var(--sage-tint); }
.vt-blob { fill: color-mix(in srgb, var(--teal) 8%, var(--cream)); }
.vt-line { fill: none; stroke: var(--teal); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.vt-soft { stroke: var(--sage); }
.vt-gold { stroke: var(--gold); }
.vt-dash { stroke-dasharray: 2 12; }
.vt-fill { fill: var(--surface); }
.vt-fill-sage { fill: var(--sage); }
.vt-fill-teal { fill: var(--teal); }
.vt-fill-gold { fill: var(--gold); }
.vt-badge { fill: var(--gold); }
.vt-badge-t { fill: var(--on-gold); font: 600 13px var(--mono, monospace); letter-spacing: .16em; }
.vt-title { fill: var(--text); font: 400 42px "Anton", Impact, "Arial Narrow", sans-serif; letter-spacing: .01em; }
.vt-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; padding-left: 4px; border: 3px solid color-mix(in srgb, var(--on-deep) 70%, transparent); border-radius: 50%; background: var(--teal-deep); color: var(--on-deep); transform: translate(-50%, -50%); }
.vt-soon { position: absolute; top: 14px; right: 14px; padding: 5px 12px; border: 1px solid var(--sage-line); border-radius: 999px; background: var(--surface); color: var(--teal); font: 600 .66rem/1.4 var(--mono, monospace); letter-spacing: .14em; text-transform: uppercase; }
.vt.is-compact .vt-play { width: 40px; height: 40px; border-width: 2px; padding-left: 2px; }
.vt.is-compact .vt-play svg { width: 16px; height: 16px; }
.vt.is-compact .vt-soon { top: 8px; right: 8px; padding: 2px 8px; font-size: .55rem; }

.sl-card.has-thumb { display: grid; gap: 16px; }
.sl-thumb { overflow: hidden; border: 1px solid var(--sage-line); border-radius: 12px; }
.sl-body { min-width: 0; }
@media (min-width: 720px) { .sl-card.has-thumb { grid-template-columns: 224px minmax(0, 1fr); align-items: start; } }
