/* A course's overview (tools/track_page.py, assets/js/track2.js; owner, 12 Oct 2026: never overwhelming). Plain rows
   split by a quiet line, one icon per row, folded modules, 44px targets. Tokens from site.css (light and dark). */
.t2 { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }
.t2-head { padding: 24px 0 8px; }
.t2-name { display: flex; align-items: center; gap: 14px; margin: 10px 0 8px; }
.t2-name .glyph { width: 44px; height: 44px; border-radius: 11px; font-size: 17px; }
.t2-line { margin: 0; max-width: 56ch; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.t2-prog { margin: 12px 0 0; font-weight: 650; color: var(--teal-text); }
.t2-prog[hidden] { display: none; }
.t2-act { margin: 18px 0 0; }
.t2-cta { max-width: 100%; white-space: normal; text-align: center; min-height: 48px; }
.t2-sec { margin: 32px 0 0; }
.t2-h2 { margin: 0 0 8px; font: 750 20px/1.25 var(--f-display); color: var(--ink); }
.t2-lv { margin: 20px 0 4px; font: 700 14px/1.2 var(--font); color: var(--ink-3); }
.t2-free { flex: none; color: var(--free); font: 650 14px/1.35 var(--font); }   /* plain words, never a pill (owner bans pills, 14 Oct), in the free colour (owner, 13 Oct) */
.t2-lock { display: inline-flex; flex: none; color: var(--ink-3); }
.t2-lock svg, .t2-lock .icon { width: 16px; height: 16px; }

/* a module: one row, folded unless it is where you are */
.t2-mod { border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); }
.t2-mh { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; cursor: pointer; list-style: none; border-radius: 10px; }
.t2-mh::-webkit-details-marker { display: none; }
.t2-mh:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.t2-mt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.t2-mn { font: 700 16.5px/1.3 var(--font); color: var(--ink); }
.t2-mc { font-size: 14px; color: var(--ink-3); }
.t2-chev { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.t2-mod[open] > .t2-mh .t2-chev { transform: rotate(180deg); }
.t2-ring { flex: none; width: 28px; height: 28px; }
.t2-ring circle { fill: none; stroke-width: 3.2; }
.t2-ring .tr { stroke: var(--rule); }
.t2-ring .fl { stroke: var(--teal); stroke-linecap: round; }
.t2-ring .fl[stroke-dasharray^="0 "] { visibility: hidden; }
.t2-ring .tk { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.t2-mod.is-done .t2-ring .tr { fill: var(--teal); stroke: var(--teal); }
.t2-mod.is-done .t2-ring .tk { opacity: 1; }
:root[data-theme="dark"] .t2-mod.is-done .t2-ring .tk { stroke: #04161c; }

/* lessons: plain rows */
.t2-ls-w { padding: 0 0 8px; }
.t2-lsx:not(.is-all) > .t2-more { display: none; }
.t2-l { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 4px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.t2-l + .t2-l { border-top: 1px solid color-mix(in srgb, var(--rule) 50%, transparent); }
.t2-l:hover .t2-lt { text-decoration: underline; text-underline-offset: 3px; }
.t2-l:focus-visible, .t2-p:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.t2-l .node { width: 26px; height: 26px; flex: none; box-shadow: inset 0 0 0 3.5px var(--tc); }
.t2-l .node .icon { width: 13px; height: 13px; }
.t2-l[data-tier="premium"] .node { background: var(--paper-2); box-shadow: none; color: var(--ink-3); }
.t2-l[data-tier="premium"] .n-lock { display: grid; }
.is-entitled .t2-l[data-tier="premium"] .node { background: var(--paper); box-shadow: inset 0 0 0 3.5px var(--tc); }
.is-entitled .t2-l[data-tier="premium"] .n-lock { display: none; }
.t2-l.done .node { background: var(--tc); box-shadow: none; color: #0e1620; }
.t2-l.done .n-lock { display: none; }
.t2-l.done .n-done { display: grid; }
.t2-l.is-target .node { box-shadow: inset 0 0 0 3.5px var(--ink); }
.t2-l.is-target .t2-lt { color: var(--teal-text); }
.t2-n { flex: none; width: 22px; font: 650 13px/1 var(--mono); color: var(--ink-3); }
.t2-lm { display: grid; gap: 2px; flex: 1; min-width: 0; }
.t2-lt { font-weight: 650; line-height: 1.35; overflow-wrap: break-word; }
.t2-ls { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 13.5px; color: var(--ink-3); }
.t2-ls [data-state-label]:empty { display: none; }
.t2-ls [data-state-label] { color: var(--teal-text); font-weight: 650; }
.t2-kw { color: var(--ink-2); }
.t2-all, .pj-all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 2px 0 0; padding: 0 2px; border: 0; background: none; color: var(--teal-text); font: 700 15px var(--font); cursor: pointer; }
.t2-all[hidden] { display: none; }
.t2-all .t2-chev { stroke: currentColor; width: 18px; height: 18px; }
.t2-all[aria-expanded="true"] .t2-chev { transform: rotate(180deg); }
.t2-all:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 8px; }

/* projects and practice */
.t2-p { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 4px; color: var(--ink); text-decoration: none; border-radius: 10px; }
.t2-p + .t2-p { border-top: 1px solid color-mix(in srgb, var(--rule) 50%, transparent); }
.t2-p:hover .t2-pt { text-decoration: underline; text-underline-offset: 3px; }
.t2-ic { flex: none; width: 24px; height: 24px; color: var(--teal-text); }
.t2-pm { display: grid; gap: 2px; flex: 1; min-width: 0; }
.t2-pt { font-weight: 650; line-height: 1.35; }
.t2-ps { font-size: 13.5px; color: var(--ink-3); }
.t2-go { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-90deg); }
[dir="rtl"] .t2-go { transform: rotate(90deg); }

/* about the course: folded */
.t2-about { margin: 32px 0 0; border-top: 1px solid var(--rule); }
.t2-ah { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; cursor: pointer; list-style: none; font: 700 16.5px var(--font); color: var(--ink); border-radius: 10px; }
.t2-ah::-webkit-details-marker { display: none; }
.t2-ah:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.t2-about[open] .t2-ah .t2-chev { transform: rotate(180deg); }
.t2-ab { padding: 0 0 16px; color: var(--ink-2); line-height: 1.55; }
.t2-ab p { margin: 0 0 10px; max-width: 62ch; }
.t2-meta { color: var(--ink-3); font-size: 15px; }
.t2-k { margin-top: 14px !important; font-weight: 700; color: var(--ink); }
/* by the end you can: a tick in the course's colour then the text, one left edge, one even gap; two columns on a wide
   screen (owner, 13 Oct: every row its own marker, never a mix) */
.t2-can { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px 28px; align-items: start; }
@media (min-width: 640px) { .t2-can { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t2-can li { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; align-items: start; margin: 0; color: var(--ink-2); }
.t2-tk { width: 20px; height: 20px; margin-top: 2px; color: var(--tc-text, var(--teal-text)); }
.t2-ab .sig { max-width: 420px; margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) { .t2-chev { transition: none; } }
/* the placement offer on a course page: one quiet line, the three choices behind it (assets/js/placement.js) */
.t2 .place-offer.po-quiet { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 10px 0 0; padding: 0; border: 0; background: none; box-shadow: none; }
.t2 .po-quiet .po-line { flex: 1 1 auto; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-2); font: 500 15px/1.35 var(--font); text-align: start; cursor: pointer; }
.t2 .po-quiet .po-line span { color: var(--teal-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.t2 .po-quiet .po-line:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 8px; }
.t2 .po-quiet .po-x { position: static; flex: none; width: 44px; height: 44px; }
.t2 .po-quiet .po-btns { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.t2 .po-quiet .po-btns[hidden] { display: none; }
.t2 .po-quiet .po-btns .btn { min-height: 44px; }
.t2 .po-quiet .po-x { order: 1; }
.t2 .po-quiet .po-btns { order: 2; }
.t2 .po-quiet .po-btns .btn { flex: 0 1 auto; }
/* /projects/: a free brief's milestones folded under the brief */
.pj-ms > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; list-style: none; color: var(--teal-text); font-weight: 700; border-radius: 8px; }
.pj-ms > summary::-webkit-details-marker { display: none; }
.pj-ms > summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.pj-ms > summary .t2-chev { stroke: currentColor; width: 18px; height: 18px; }
.pj-ms[open] > summary .t2-chev { transform: rotate(180deg); }
.t2 .po-quiet .po-line { flex: 1 1 0; min-width: 0; }
