/* course-v1.css — course paths (M2 / CET-D35-A19, 2 October 2026).
 * Loaded after theory-v2.css on learn/<course>.html and on every mapped theory module page.
 * Colour comes only from theory-v2.css tokens (--ink, --muted, --card, --line, --cat, --ok ...),
 * so light and dark follow the site theme with no rules of their own here. */

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- module page: "AQA 4.1.3.2 · Edexcel 1.2.3" ----------------------------------- */
.tcourses { margin: 6px 0 10px; font-size: 13.5px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.tcourses .tcb { white-space: normal; }
.tcourses a { color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.tcourses a:hover { text-decoration-color: var(--cat); }
.tcourses a.tcbn { font-weight: 800; color: var(--cat); text-decoration: none; }

/* ---- path page -------------------------------------------------------------------- */
.cppage h1, .cppage h2, .cppage h3, .cppage h4 { overflow-wrap: anywhere; }
.cpbar { height: 8px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; margin: 14px 0 4px; }
.cpbar span { display: block; height: 100%; width: 0; background: var(--ok); border-radius: 999px; transition: width .3s; }
.cpcount { margin: 0 0 12px; color: var(--muted); }
.cpcont { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k i" "t i" "s i"; align-items: center;
  gap: 2px 12px; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 2px solid var(--cat);
  color: var(--ink); text-decoration: none; margin: 4px 0 8px; }
.cpcont .k { grid-area: k; font-size: 12.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--cat); }
.cpcont .t { grid-area: t; font-size: 17px; font-weight: 800; line-height: 1.3; }
.cpcont .s { grid-area: s; font-size: 13.5px; color: var(--muted); }
.cpcont .ic { grid-area: i; color: var(--cat); }
.cpcont:hover { background: var(--soft); }
.cpswitch { margin: 8px 0 0; color: var(--muted); }
.cpswitch a { color: var(--ink); font-weight: 700; }

.cpidx { margin: 22px 0 8px; }
.cpidx ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.cpidx a { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 9px 12px;
  border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14.5px; }
.cpidx a:hover { border-color: var(--cat); }
.cpidx .c { font-weight: 800; color: var(--cat); font-variant-numeric: tabular-nums; }
.cpidx .t { min-width: 0; overflow-wrap: anywhere; }
.cpidx .p { font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.cpidx a.is-done .p { color: var(--ok); }

.cpu { margin: 28px 0 0; }
.cpuh { font-size: 20px; margin: 0 0 4px; padding-top: 14px; border-top: 2px solid var(--line); }
.cps { margin: 18px 0 0; scroll-margin-top: 64px; }
.cpsh { font-size: 17px; margin: 0 0 6px; }
.cpsh .c, .cpst-h .c { color: var(--cat); font-variant-numeric: tabular-nums; margin-right: 4px; }
.cpst-h { font-size: 14.5px; font-weight: 750; color: var(--muted); margin: 14px 0 0; scroll-margin-top: 64px; }
.cps .tlist { margin-top: 8px; }
.cpm .cpst:not(:empty)::before { content: " \00b7 "; }
.cpm .cpst { font-weight: 800; }
.cpm.is-done .cpst { color: var(--ok); }
.cpm.is-done .n { background: var(--ok-fill); color: var(--ok); }
.cpm.is-started .cpst { color: var(--cat); }
.cpabove { margin: 8px 0 0; color: var(--muted); }
.cpabove a { color: var(--ink); font-weight: 650; }
.cpsrc { margin: 28px 0 0; color: var(--muted); }
:target { scroll-margin-top: 64px; }
