/* The skill journey page (STORY-04.44; prototype version 10): the header with the skill switcher, six tabs, the detail area
   (the A2 narrow list beside what it opens, the lists, the start cards) and the soft green path panel. The app's own tokens
   only (tokens.css); one accent, state by shape (a ring, a half ring, a tick, a dashed ring). Below 861 px one column:
   header, tabs scrolling inside their row, the detail, then the path panel. Every control is 44 px. Light and dark come
   from tokens.css (STORY-04.49: the page's own dark palette folded into the app's dark set). */

/* The journey sits in the one container on the one page background (STORY-04.49; SN :135, :138). */
@media (min-width: 861px) {
  body.on-journey .main { padding: var(--s4) 0 var(--s7); }
}

.jr { --jr-on: var(--on-teal); display: flex; flex-direction: column; min-width: 0; color: var(--ink); }
.jr h1, .jr h2, .jr h3 { letter-spacing: normal; }
.jr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- marks ---- */
.jr-mk { display: inline-block; flex: none; width: 18px; height: 18px; }
.jr-mk--none, .jr-mk--nw { color: var(--line-strong); }
.jr-mk--half, .jr-mk--done { color: var(--teal); }

/* ---- header ---- */
.jr-up { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-inline-start: -4px; padding-inline: 4px var(--s3); border-radius: 10px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.jr-head.page-head { align-items: center; justify-content: flex-start; gap: var(--s3); margin-bottom: 0; min-width: 0; }
.jr-head__main { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); min-width: 0; flex: 1 1 auto; }
.jr-switch { position: relative; }
.jr-title { margin: 0; font: inherit; }
.jr-skill { display: inline-flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s2); border: 0; border-radius: 12px; background: none; color: var(--ink); font: 700 1.75rem/1.05 var(--display); letter-spacing: -0.015em; }
.jr-skill__ic { width: 28px; height: 28px; color: var(--teal); }
.jr-skill__c { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-2); border-radius: 7px; color: var(--ink-2); }
.jr-skill[aria-expanded="true"] .jr-skill__c .i { transform: rotate(180deg); }
.jr-menu { position: absolute; z-index: 20; top: calc(100% + 4px); inset-inline-start: 0; display: grid; gap: 2px; min-width: 260px; margin: 0; padding: var(--s1); list-style: none; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-2), var(--float); }
.jr-menu__i { display: flex; align-items: center; gap: var(--s3); min-height: 48px; padding: 0 var(--s3); border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.jr-menu__i[aria-current] { background: var(--paper-2); }
.jr-menu__ck { margin-inline-start: auto; color: var(--teal); }
.jr-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px 0 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.jr-bdgs { display: flex; align-items: center; gap: var(--s2); margin-inline-start: auto; }
.jr-bdgs__l { margin-inline-end: var(--s1); font-size: var(--fs-xs); color: var(--ink-2); }
.jr-bdgs__l b { color: var(--ink); }
.jr-ab { display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px dashed var(--line-strong); border-radius: 50%; color: var(--ink-2); }
.jr-ab.is-got { border: 1.5px solid var(--teal); color: var(--teal); }

/* ---- the six tabs ---- */
.jr-tabs { position: relative; margin-top: var(--s1); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.jr-tabs::-webkit-scrollbar { display: none; }
.jr-tabs__l { display: flex; gap: 2px; min-width: max-content; margin: 0; padding: 0; list-style: none; }
.jr-tabs__i { position: relative; display: flex; }
.jr-tab { position: relative; display: inline-flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 12px; color: var(--ink-2); font-size: var(--fs-m); font-weight: 600; text-decoration: none; white-space: nowrap; }
.jr-tab:focus-visible { outline-offset: -3px; } /* the row scrolls (overflow-x), so a ring drawn outside would be cut */
.jr-tab__i { width: 18px; height: 18px; color: var(--ink-2); }
.jr-tabs__mk { display: grid; place-items: center; min-width: 15px; }
.jr-tabs__mk .jr-mk { width: 15px; height: 15px; }
.jr-tab[aria-current="page"] { color: var(--ink); }
.jr-tab[aria-current="page"] .jr-tab__i { color: var(--teal); }
.jr-tab[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--teal); transform-origin: left; animation: jr-grow 350ms var(--ease-out) both; }
@keyframes jr-grow { from { transform: scaleX(0); } to { transform: none; } }

/* ---- body: the detail, then the path panel ---- */
.jr-body { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 0 var(--s4); align-items: start; }
.jr-detail { min-width: 0; padding: var(--s4) 0 var(--s5); }
.jr-detail:focus { outline: none; }
.jr-detail__in { display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.jr-split { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 0 var(--s5); align-items: start; }
.jr-split__c { min-width: 0; }

/* ---- the narrow list (A2) ---- */
.jr-ol { position: sticky; top: calc(var(--bar-top) + var(--s3)); display: grid; gap: 2px; padding-inline-end: var(--s4); border-inline-end: 1px solid var(--line); }
.jr-ol__h { padding: 2px 10px 6px; }
.jr-ol__p { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 10px; min-height: 48px; padding: 4px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.jr-ol__p[aria-current="true"] { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.jr-ol__pt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.jr-ol__pt b { font-size: var(--fs-m); }
.jr-ol__pt span { font-size: var(--fs-xs); color: var(--ink-2); }
.jr-ol__pt .jr-ol__sg { color: var(--teal); font-weight: 700; }
.jr-ol__s { display: grid; gap: 1px; margin: 2px 0 6px 19px; padding: 0 0 0 12px; list-style: none; border-inline-start: 1.5px solid var(--line-2); }
.jr-ol__st { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 0 9px; min-height: 44px; padding: 0 8px; border-radius: 8px; color: var(--ink-2); font-size: var(--fs-s); font-weight: 500; line-height: 1.2; text-decoration: none; }
.jr-ol__st .jr-mk { width: 16px; height: 16px; }
.jr-ol__st[aria-current="true"] { background: var(--paper-2); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line-2); }
.jr-ol__sep { height: 1px; margin: 6px 10px; background: var(--line); }
.jr-lvb { display: inline-flex; align-items: flex-end; gap: 2px; width: 13px; height: 13px; }
.jr-lvb i { width: 3px; border-radius: 1px; background: var(--line-2); }
.jr-lvb i:nth-child(1) { height: 5px; } .jr-lvb i:nth-child(2) { height: 9px; } .jr-lvb i:nth-child(3) { height: 13px; }
.jr-lvb--1 i:nth-child(1), .jr-lvb--2 i:nth-child(-n+2), .jr-lvb--3 i { background: var(--ink-2); }

/* ---- the detail heading ---- */
.jr-dh { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 2px 0 4px; }
.jr-dh__ic { display: grid; place-items: center; width: 26px; height: 26px; color: var(--teal); }
.jr-dh__h { margin: 0; font-size: 1.25rem; line-height: 1.2; outline-offset: 4px; }
.jr-dh__sub { font-weight: 600; color: var(--ink-2); }
.jr-dh__m { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-inline-start: auto; color: var(--ink-2); font-size: var(--fs-xs); }
.jr-dh__m > * { white-space: nowrap; }
.jr-ring { position: relative; width: 20px; height: 20px; border-radius: 50%; background: conic-gradient(var(--teal) calc(var(--p, 0) * 360deg), var(--line-2) 0); }
.jr-ring::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--surface); }
.jr-dh__d { flex: 1 0 100%; margin: 0 0 var(--s2); max-width: 96ch; color: var(--ink-2); font-size: var(--fs-s); }

/* ---- lists and rows ---- */
.jr-lrows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.jr-lrows--after { margin-top: var(--s3); border-bottom: 1px solid var(--line); }
.jr-lrows--plain { border-top: 0; }
.jr-lh, .jr-lr__g { display: grid; grid-template-columns: minmax(0, 1fr) 58px 106px 76px; column-gap: var(--s2); align-items: center; }
.jr-lh { padding: 4px 8px 5px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.jr-lr { border-bottom: 1px solid var(--line); }
.jr-lr.is-open { background: var(--paper-2); }
.jr-lr__g { min-height: 56px; padding: 6px 8px; }
.jr-lr__n { display: flex; flex-direction: column; min-width: 0; }
.jr-lr__t { font-weight: 600; font-size: var(--fs-m); line-height: 1.3; }
.jr-lr__s { font-size: var(--fs-xs); line-height: 1.3; color: var(--ink-2); }
.jr-sz { font-size: var(--fs-xs); color: var(--ink-2); }
.jr-stc { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-xs); color: var(--ink-2); white-space: nowrap; }
.jr-lr__a { display: flex; justify-content: flex-end; }
.jr-lopen { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 6px 0 10px; border-radius: 8px; color: var(--teal); font-size: var(--fs-xs); font-weight: 700; text-decoration: none; white-space: nowrap; }
.jr-rr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 var(--s3); min-height: 56px; padding: 6px 8px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.jr-rr--go:hover, .jr-lopen:hover { background: var(--paper-2); }
.jr-rr--nw { color: var(--ink-2); border-bottom-style: dashed; }
.jr-rr__t { display: flex; flex-direction: column; min-width: 0; }
.jr-rr__ic { width: 22px; height: 22px; color: var(--ink-2); }
.jr-rr__e { display: inline-flex; align-items: center; gap: var(--s2); }
.jr-rr__go { color: var(--ink-2); }
.jr-lrows > li > .jr-rr, .jr-lrows > .jr-rr { border-bottom: 1px solid var(--line); }
.jr-cur { display: inline-flex; align-items: center; height: 18px; margin-inline-start: 8px; padding: 0 7px; border: 1px solid var(--teal); border-radius: 999px; color: var(--teal); font-size: 0.6875rem; font-weight: 700; }
.jr-empty { padding: var(--s4) var(--s2); color: var(--ink-2); font-size: var(--fs-m); }
.jr-more { display: grid; gap: var(--s2); margin-top: var(--s2); }
.jr-lnk { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--teal); font-weight: 700; font-size: var(--fs-s); text-decoration: underline dotted; text-underline-offset: 3px; }
.jr-flt { display: flex; flex-wrap: wrap; gap: 0 2px; margin: 0 0 4px; }
.jr-fb { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink-2); font-size: var(--fs-s); font-weight: 600; text-decoration: none; white-space: nowrap; }
.jr-fb[aria-current="true"] { color: var(--ink); }
.jr-fb[aria-current="true"]::after { content: ""; position: absolute; inset-inline: 10px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--teal); }
.jr-pg { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s3); min-height: 48px; padding-top: 6px; }
.jr-pg__c { font-size: var(--fs-xs); color: var(--ink-2); }
.jr-pg__n { display: flex; align-items: center; gap: 2px; }
.jr-pb { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 8px; color: var(--ink-2); font-size: var(--fs-s); font-weight: 600; text-decoration: none; }
.jr-pb[aria-current="page"] { color: var(--ink); }
.jr-pb[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 10px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--teal); }
.jr-qa { display: grid; }
.jr-qrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 var(--s3); width: 100%; min-height: 56px; padding: 6px 8px; border: 0; border-block: 1px solid var(--line); background: none; color: var(--ink); text-align: start; }
.jr-qrow[aria-expanded="true"] { background: var(--paper-2); }
.jr-qrow__c { color: var(--ink-2); }

/* ---- start cards ---- */
.jr-card { display: grid; gap: var(--s3); margin: var(--s2) 0 var(--s3); padding: var(--s4) var(--s4); border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.jr-card--in { margin: var(--s2) 0; }
.jr-lr .jr-card { margin: 0 var(--s3) var(--s3); }
.jr-card--nw { border-style: dashed; background: transparent; color: var(--ink-2); }
.jr-card__h { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 var(--s3); align-items: start; }
.jr-card__h .jr-mk { margin-top: 3px; width: 22px; height: 22px; }
.jr-card__t { margin: 0; font-size: var(--fs-l); line-height: 1.3; }
.jr-card__d { margin-top: 2px; max-width: 64ch; color: var(--ink-2); font-size: var(--fs-s); line-height: 1.45; }
.jr-card__n { color: var(--ink-2); font-size: var(--fs-s); line-height: 1.4; max-width: 66ch; }
.jr-facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); margin: 0; padding: 10px 0; border-block: 1px solid var(--line); }
.jr-facts > div { display: grid; gap: 1px; min-width: 0; }
.jr-facts dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.jr-facts dd { display: flex; flex-wrap: wrap; align-items: center; gap: 0 7px; margin: 0; font-size: var(--fs-m); font-weight: 600; }
.jr-facts small { color: var(--ink-2); font-size: var(--fs-xs); font-weight: 400; }
.jr-card__a { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.jr-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s4); border: 1.5px solid var(--teal); border-radius: 12px; background: transparent; color: var(--teal); font-size: var(--fs-m); font-weight: 700; text-decoration: none; }
.jr-btn--main { background: var(--teal); color: var(--jr-on); }
.jr-xo { width: 15px; height: 15px; stroke-width: 2.2; }
.jr-xn { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: var(--fs-xs); }
.jr-xn .jr-xo { width: 13px; height: 13px; color: var(--teal); }
.jr-after { display: grid; gap: 2px; }
.jr-parts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.jr-parts li { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px; gap: 0 var(--s3); align-items: center; min-height: 34px; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-2); }
.jr-parts li span:first-child { font-weight: 600; color: var(--ink); }
.jr-parts li span:last-child { text-align: end; }
.jr-tip { display: flex; align-items: flex-start; gap: var(--s2); margin-top: var(--s2); color: var(--ink-2); font-size: var(--fs-s); }
.jr-tip .i { margin-top: 2px; color: var(--teal); }

/* ---- the path panel (B1) ---- */
.jr-path { position: sticky; top: calc(var(--bar-top) + var(--s3)); margin-top: var(--s3); padding: 14px 12px 12px; border-radius: 16px; background: var(--teal-tint); box-shadow: inset 0 0 0 1px var(--teal-soft); }
.jr-path__h { margin: 0; padding: 0 6px 8px; font-size: var(--fs-base); line-height: 1.2; }
.jr-path__l { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.jr-path__i { position: relative; }
.jr-path__i:not(:last-child)::after { content: ""; position: absolute; z-index: 0; inset-inline-start: 23px; top: 44px; bottom: -6px; width: 2px; border-radius: 2px; background: var(--teal-soft); }
.jr-path__i.is-done:not(:last-child)::after { background: var(--teal); }
.jr-path__b { position: relative; z-index: 1; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0 10px; align-items: center; min-height: 44px; padding: 6px 8px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.jr-path__n { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--teal-soft); }
.jr-path__ic { width: 17px; height: 17px; }
.jr-path__i.is-here .jr-path__n { color: var(--teal); }
.jr-path__b[aria-current="step"] .jr-path__n { box-shadow: inset 0 0 0 2px var(--teal); color: var(--teal); }
.jr-path__k { position: absolute; inset-inline-end: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); }
.jr-path__k .jr-mk { width: 16px; height: 16px; display: block; }
.jr-path__t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.jr-path__r { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); }
.jr-path__nm { min-width: 0; font-size: var(--fs-s); font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.jr-path__c { flex: none; font-size: var(--fs-xs); line-height: 1.3; color: var(--ink-2); white-space: nowrap; }
.jr-path__b[aria-current="step"] .jr-path__nm { font-weight: 700; color: var(--ink); }
.jr-path__d { display: grid; grid-template-rows: 0fr; margin-inline-start: 50px; visibility: hidden; transition: grid-template-rows 300ms var(--ease-out), visibility 0s linear 300ms; }
.jr-path__d > div { min-height: 0; overflow: hidden; }
.jr-path__d ul { display: grid; gap: 3px; margin: 0; padding: 1px 4px 8px 0; list-style: none; opacity: 0; transition: opacity 200ms ease; }
.jr-path__d li { position: relative; padding-inline-start: 12px; font-size: var(--fs-xs); line-height: 1.35; color: var(--ink-2); }
.jr-path__d li::before { content: ""; position: absolute; inset-inline-start: 1px; top: 0.55em; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-2); }
.jr-path__i.is-sel .jr-path__d { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 300ms var(--ease-out), visibility 0s; }
.jr-path__i.is-sel .jr-path__d ul { opacity: 1; transition-delay: 80ms; }
.jr-path__go { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: 6px; padding: 8px 4px 0; border-top: 1px solid var(--teal-soft); }
.jr-path__nx { min-width: 0; font-size: var(--fs-xs); line-height: 1.3; color: var(--ink-2); }
.jr-path__nx b { display: block; color: var(--ink); font-size: var(--fs-s); font-weight: 600; }
.jr-cta { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--teal); color: var(--jr-on); font-size: var(--fs-s); font-weight: 700; text-decoration: none; }
.jr-here { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; color: var(--teal); }
.jr-here[hidden] { display: none; }
.jr-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.jr-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal); animation: jr-ping 1.9s ease-out infinite; }
@keyframes jr-ping { 0% { transform: scale(1); opacity: 0.6; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .jr-dot::after { display: none; animation: none; }
  .jr-tab[aria-current="page"]::after { animation: none; }
  .jr-path__d, .jr-path__d ul { transition: none; }
}

/* ---- hover, for a mouse only ---- */
@media (hover: hover) and (pointer: fine) {
  .jr-up:hover, .jr-skill:hover, .jr-menu__i:hover, .jr-ol__p:hover, .jr-ol__st:hover, .jr-pb:hover, .jr-qrow:hover { background: var(--paper-2); }
  .jr-tab:hover, .jr-fb:hover { color: var(--ink); }
  .jr-btn:hover:not(.jr-btn--main) { background: var(--paper-2); }
  .jr-btn--main:hover, .jr-cta:hover { filter: brightness(1.08); }
  .jr-path__b:not([aria-current="step"]):hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
}

/* ---- 861 to 1000 px (STORY-04.49, the 04.48 review's note): three columns leave the middle narrow, so its head's facts and
   its list rows take the phone's two-line form and wrap, and nothing reaches under the path panel ---- */
@media (min-width: 861px) and (max-width: 1000px) {
  .jr-dh__m { margin-inline-start: 0; flex-basis: 100%; }
  .jr-dh__m > * { white-space: normal; }
  .jr-lh { display: none; }
  .jr-lr__g { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n a" "st sz"; row-gap: 0; }
  .jr-lr__n { grid-area: n; } .jr-lr__a { grid-area: a; } .jr-stc { grid-area: st; } .jr-sz { grid-area: sz; justify-self: end; }
  .jr-parts li { grid-template-columns: minmax(0, 1fr) auto; }
  .jr-parts li span:nth-child(2) { display: none; }
}

/* ---- below 861 px: one column ---- */
@media (max-width: 860px) {
  .jr-skill { font-size: 1.5rem; }
  .jr-bdgs { margin-inline-start: 0; flex-basis: 100%; }
  .jr-body { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .jr-path { position: static; margin-top: var(--s2); }
  .jr-split { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .jr-ol { position: static; padding-inline-end: 0; border-inline-end: 0; padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
  .jr-lh { display: none; }
  .jr-lr__g { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n a" "st sz"; row-gap: 0; }
  .jr-lr__n { grid-area: n; } .jr-lr__a { grid-area: a; } .jr-stc { grid-area: st; } .jr-sz { grid-area: sz; justify-self: end; }
  .jr-lr .jr-card { margin-inline: 0; }
  .jr-parts li { grid-template-columns: minmax(0, 1fr) auto; }
  .jr-parts li span:nth-child(2) { display: none; }
  .jr-dh__m { margin-inline-start: 0; flex-basis: 100%; }
}

/* ======================================================================================================================
   The Study landing, `#/study` (STORY-04.46; storyboard study-landing, variant V3): the Continue line, four equal skill cards
   and the model tests as a paged list. It uses the app's tokens, light and dark (tokens.css), and the journey's
   pieces (marks, the filter underline, the pager, the buttons). No pill chips: the facts in the header are plain text, the track
   of a card's marks is a rounded rectangle; only the step marks, the ring and the badges are round. Every control is 44 px.
   ====================================================================================================================== */

@media (min-width: 861px) {
  body:has(.st) .main { padding: var(--s4) 0 var(--s7); }
}
.st { gap: var(--s3); }

/* ---- header ---- */
.st-head.page-head { margin-bottom: 0; }
.st-title { display: inline-flex; align-items: center; gap: var(--s3); margin: 0; min-height: 48px; font: 700 1.75rem/1.05 var(--display); letter-spacing: -0.015em; }
.st-title__ic { width: 28px; height: 28px; color: var(--teal); }
.st-fact { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: var(--ink-2); font-size: var(--fs-s); font-weight: 600; white-space: nowrap; }
.st-fact .i { color: var(--teal); }

/* ---- Continue where you left off ---- */
.st-cont { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 0 var(--s3); min-height: 56px; padding: 6px var(--s3); border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.st-cont__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--teal-tint); color: var(--teal); }
.st-cont__t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--s3); min-width: 0; }
.st-cont__t .eyebrow { flex: none; font-size: 0.6875rem; }
.st-cont__t b { font: 700 0.9375rem/1.25 var(--display); }
.st-cont__m { min-width: 0; color: var(--ink-2); font-size: var(--fs-s); }

/* ---- the four skill cards ---- */
/* The Continue line, and beside it the Paid plan card for a free student (STORY-04.49; SN :140). */
.st-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.st-top:has(.st-paid) { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
.st-paid { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 0 var(--s3); min-height: 56px; padding: 6px var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--teal-tint); }
.st-paid__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-s); background: var(--surface); color: var(--teal); }
.st-paid__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.st-paid__go { min-height: 44px; }
.st-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.st-card { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 8px 13px 12px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.st-card__h { display: flex; align-items: center; gap: 8px; }
.st-card__nm { flex: 1 1 auto; min-width: 0; margin: 0; font: 700 1.0625rem/1.2 var(--display); }
.st-card__a { display: flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; text-decoration: none; }
.st-card__a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; } /* the whole card opens the skill's journey */
.st-card__a:focus-visible { outline: none; }
.st-card__a:focus-visible::after { outline: 3px solid var(--ink); outline-offset: 2px; }
.st-card__a .i { width: 20px; height: 20px; color: var(--teal); }
.st-ring { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; }
.st-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.st-ring__t { fill: none; stroke: var(--line-2); stroke-width: 3; }
.st-ring__v { fill: none; stroke: var(--teal); stroke-width: 3.6; stroke-linecap: round; }
.st-ring b { font: 700 0.6875rem/1 var(--text); font-variant-numeric: tabular-nums; }
.st-steps { position: relative; display: flex; align-items: center; justify-content: space-between; height: 44px; margin: 0; padding: 0 2px; list-style: none; border-radius: 10px; background: var(--teal-tint); box-shadow: inset 0 0 0 1px var(--teal-soft); }
.st-steps::before { content: ""; position: absolute; inset-inline: 18px; top: 21px; height: 2px; border-radius: 2px; background: var(--teal-soft); }
.st-steps::after { content: ""; position: absolute; inset-inline-start: 18px; top: 21px; height: 2px; border-radius: 2px; background: var(--teal); width: calc((100% - 36px) * var(--f, 0)); }
.st-steps li { position: relative; z-index: 1; display: flex; }
.st-step { display: grid; place-items: center; min-width: 32px; height: 44px; text-decoration: none; }
.st-step__c { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.25px var(--teal-soft); }
.st-step__c .jr-mk { width: 18px; height: 18px; }
.st-step.is-cur .st-step__c, .st-step:hover .st-step__c { box-shadow: inset 0 0 0 2px var(--teal); }
.st-where { margin: 0; color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.3; }
.st-where b { color: var(--ink); }
.st-kv { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 48px; color: var(--ink); line-height: 1.3; text-decoration: none; }
.st-kv__l { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.st-kv__v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-s); font-weight: 600; }
a.st-kv--last .st-kv__v { color: var(--ink-2); font-weight: 500; text-decoration: underline dotted; text-underline-offset: 3px; }
.st-kv--none .st-kv__v { color: var(--ink-2); font-weight: 500; }
.st-go { position: relative; z-index: 1; width: 100%; margin-top: auto; min-height: 48px; }
.st-cont .jr-btn { min-height: 44px; padding: 0 var(--s4); }

/* ---- the model tests ---- */
.st-papers { display: grid; gap: 4px; margin-top: var(--s1); }
.st-mh { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--s3); }
.st-mh__t { margin: 0; font: 700 1.125rem/1.2 var(--display); letter-spacing: -0.005em; }
.st-mh__d { margin: 0; color: var(--ink-2); font-size: var(--fs-s); }
.st-fbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s4); }
.st-flt { display: flex; flex-wrap: wrap; }
.st-fb { border: 0; background: none; font: inherit; font-size: var(--fs-s); font-weight: 600; }
.st-fb[aria-pressed="true"] { color: var(--ink); }
.st-fb[aria-pressed="true"]::after { content: ""; position: absolute; inset-inline: 10px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--teal); }
.st-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s3); }
.st-srch { position: relative; display: block; }
.st-q { width: 232px; max-width: 100%; min-height: 44px; padding: 0 44px 0 12px; border: 1px solid var(--edge); border-radius: 9px; background: var(--surface); color: var(--ink); font: 500 var(--fs-s) var(--text); -webkit-appearance: none; appearance: none; }
.st-q::placeholder { color: var(--ink-2); opacity: 1; }
.st-q::-webkit-search-cancel-button { display: none; }
.st-qx { position: absolute; inset-inline-end: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--ink-2); }
.st-sel { display: inline-flex; align-items: center; gap: 8px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.st-sel__w { position: relative; display: inline-flex; align-items: center; }
.st-sel__s { -webkit-appearance: none; appearance: none; width: auto; min-height: 44px; padding: 0 34px 0 12px; border: 1px solid var(--edge); border-radius: 9px; box-shadow: none; background: var(--surface) none; color: var(--ink); font: 600 var(--fs-s) var(--text); letter-spacing: 0; text-transform: none; }
.st-sel__w .i { position: absolute; inset-inline-end: 10px; color: var(--ink-2); pointer-events: none; }
.st-lh, .st-row__g { display: grid; grid-template-columns: minmax(0, 1.1fr) 224px 84px minmax(0, 1.4fr) 164px; column-gap: var(--s3); align-items: center; }
.st-lh { padding: 4px 8px 5px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.st-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.st-row { border-bottom: 1px solid var(--line); }
.st-row__g { min-height: 56px; padding: 5px 8px; }
.st-row__n { min-width: 0; font-size: var(--fs-m); font-weight: 600; line-height: 1.3; }
.st-secs { display: flex; align-items: center; gap: 4px; }
.st-sb { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 52px; min-height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); font: 700 0.75rem var(--text); letter-spacing: 0.02em; text-decoration: none; }
.st-sb .jr-mk { width: 16px; height: 16px; }
.st-sb.is-sel { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); color: var(--ink); }
.st-row__m { display: contents; }
.st-row__t b { font-weight: 600; color: var(--ink); }
.st-row__t, .st-row__l { font-size: var(--fs-s); color: var(--ink-2); line-height: 1.25; }
.st-row__l { display: flex; flex-direction: column; min-width: 0; }
.st-row__l b { font-weight: 600; color: var(--ink); }
.st-row__l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-row__a { display: flex; justify-content: flex-end; }
.st-act { min-height: 44px; padding: 0 var(--s3); border-radius: 10px; font-size: var(--fs-s); text-align: center; }
.st-act--n { border-color: var(--line-2); color: var(--ink); }
.st-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s3); padding: var(--s3) var(--s2); border-block: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-m); }
.st-all { min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--teal); font-weight: 700; text-decoration: underline dotted; text-underline-offset: 3px; }
.st-pb { padding: 0 9px; gap: 2px; border: 0; background: none; font: 600 var(--fs-s) var(--text); }
.st-pb:disabled { color: var(--line-strong); opacity: 0.6; cursor: default; }
.st-pb .i { width: 14px; height: 14px; }
.st-gap { min-width: 20px; text-align: center; color: var(--ink-2); font-size: var(--fs-s); }
.st-pgn { padding-inline-start: 8px; }
.st-pg[hidden] { display: none; }

@media (hover: hover) and (pointer: fine) {
  .st-card:hover { border-color: var(--teal); }
  .st-sb:hover { border-color: var(--teal); background: var(--paper-2); color: var(--ink); }
  .st-row:hover { background: var(--paper-2); }
  .st-fb:hover, .st-pb:not(:disabled):hover { color: var(--ink); }
  .st-kv:is(a):hover .st-kv__v { color: var(--teal); }
}

/* ---- below 861 px: one column, the same page (lead ruling 2) ---- */
@media (max-width: 860px) {
  .st-head.page-head { align-items: stretch; }
  .st-title { font-size: 1.5rem; }
  .st-cont { grid-template-columns: 36px minmax(0, 1fr); row-gap: var(--s2); padding-block: var(--s3); }
  .st-cont__t { flex-direction: column; align-items: flex-start; }
  .st-cont__go { grid-column: 1 / -1; }
  .st-cards { grid-template-columns: minmax(0, 1fr); }
  .st-top:has(.st-paid) { grid-template-columns: minmax(0, 1fr); }
  .st-card { padding-inline: 10px; }
  .st-steps { padding: 0; }
  .st-step { min-width: 44px; }
  .st-fbar { gap: var(--s1) 0; }
  .st-ctl { flex: 1 1 100%; }
  .st-srch { flex: 1 1 100%; }
  .st-q { width: 100%; }
  .st-lh { display: none; }
  .st-row__g { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n a" "s s" "m m"; row-gap: 2px; padding: 8px; }
  .st-row__n { grid-area: n; } .st-row__a { grid-area: a; } .st-secs { grid-area: s; }
  .st-row__m { grid-area: m; display: flex; align-items: baseline; gap: var(--s3); min-width: 0; }
  .st-row__t { flex: none; }
  .st-row__l { flex-direction: row; flex-wrap: wrap; gap: 0 var(--s2); }
  .st-row__l span { white-space: normal; }
}

/* The diamond on a paid item (STORY-04.50): after a locked item's name and in each control that opens it, the gem at the
   row's small icon size in the quiet ink (not the accent: the bar's filled diamond is the paid student's own mark); inside a
   button it takes the button's own ink. "Paid plan" is in the accessible name (its .sr text). */
.paid-gem { display: inline-flex; align-items: center; flex: none; margin-inline-start: 6px; color: var(--ink-2); vertical-align: -2px; }
.paid-gem > .i { width: 16px; height: 16px; }
.jr-btn .paid-gem, .btn .paid-gem, .st-act .paid-gem, .session__start .paid-gem { color: inherit; margin-inline-start: 2px; }
.jr-card__paid { margin: 2px 0 0; color: var(--ink-2); font-size: var(--fs-s); font-weight: 700; }
