/* KL Prépa — cours publics (/cours, un programme, un chapitre). Même langage que l'accueil et les tarifs : le cercle
   de l'écusson pour les numéros, les pastilles et les boutons, des teintes douces par matière (maths : ciel,
   physique-chimie : menthe), aucun liseré de couleur sur un bord. Les jetons viennent de landing.css. */
.cp { --sec: clamp(64px, 8vw, 120px); --r: clamp(28px, 3vw, 44px); --f-aqua: #d4f1ef; --f-peach: #fde4cf; --line: #e2e7f0; --tint: var(--f-step); --deep: var(--ink); }
.cp .maths, .cp.maths { --tint: var(--f-sky); --deep: var(--f-maths); --sheet: var(--f-sky); }
.cp .pc, .cp.pc { --tint: var(--f-mint); --deep: var(--f-pc); --sheet: var(--f-aqua); }
.cp ul, .cp ol { margin: 0; padding: 0; list-style: none; }
.cp .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cp section, .cp aside { scroll-margin-top: 24px; }
.cp .hi { flex: none; }
.cp .empty { padding: 24px; border-radius: 24px; background: var(--paper); color: var(--muted); }

/* underline drawn under one word of a title (same stroke as the landing page) */
.cp .ul { position: relative; display: inline-block; white-space: nowrap; }
.cp .ul svg { position: absolute; left: -2%; bottom: -.17em; width: 104%; height: auto; overflow: visible; }
.cp .ul path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .cp .ul path { transition: stroke-dashoffset .8s var(--ease) .45s; }
.js .cp :is(h1, h2):not(.in) .ul path { stroke-dashoffset: 1; }

/* ---------- shared: crumbs, hero, pills ---------- */
.cp-crumbs { padding-top: 4px; }
.cp-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; font-size: var(--step-small); color: var(--muted); }
.cp-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.cp-crumbs li + li::before { content: ""; flex: none; width: 5px; height: 5px; margin: 0 12px; border-radius: 50%; background: #b5c0d6; }
.cp-crumbs a { display: inline-block; padding: 10px 0; text-decoration: none; font-weight: 600; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .cp-crumbs a:hover { color: var(--f-maths); } }

.cp-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(28px, 4vw, 72px); padding-top: clamp(20px, 3.4vw, 48px); padding-bottom: clamp(32px, 5vw, 72px); }
.cp-eyebrow { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--paper); font-size: var(--step-small); font-weight: 600; }
.cp-eyebrow .dot { width: 10px; height: 10px; }
.cp-hero h1 { margin-top: clamp(18px, 2.4vw, 28px); font-size: clamp(2.5rem, 1.1rem + 5vw, 5.5rem); letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }
.cp-hero .lede { margin-top: clamp(20px, 2.6vw, 32px); max-width: 32em; font-size: var(--step-lead); line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.cp .pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: var(--step-small); font-weight: 600; white-space: nowrap; }
.cp .pill.free { background: var(--accent); color: var(--on-accent); }
.cp .pill.lock { background: var(--f-step); color: var(--ink); }

/* ---------- catalogue: the four programmes as discs ---------- */
.cp-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(6px, 1vw, 14px); width: min(100%, 560px); margin-inline: auto; padding-bottom: 9%; }
.cp-map .disc { display: grid; place-content: center; justify-items: center; gap: .3em; aspect-ratio: 1; padding: 12%; border-radius: 50%; text-align: center; text-decoration: none; line-height: 1.1; transition: scale .3s var(--ease), background-color .2s; }
.cp-map .disc:nth-child(even) { translate: 0 18%; }
.cp-map .disc small { font-size: var(--step-small); font-weight: 600; opacity: .8; }
.cp-map .disc b { font-size: clamp(1.0625rem, .8rem + 1.2vw, 2rem); font-weight: 500; letter-spacing: -0.03em; }
.cp-map .disc span { font-size: var(--step-small); font-weight: 600; }
.cp-map .pre { background: var(--tint); color: var(--ink); }
.cp-map .tle.maths { background: var(--ink); color: var(--paper); }
.cp-map .tle.pc { background: var(--accent); color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) { .cp-map .disc:hover { scale: 1.04; } }

/* ---------- catalogue: one level, two subject paths ---------- */
.cp-level { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 2.6vw, 40px); margin-top: var(--sec); }
.cp-cat .cp-hero + .cp-level { margin-top: clamp(24px, 4vw, 64px); }
.lv-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: clamp(16px, 2vw, 28px); row-gap: 10px; }
.lv-head .lv-n { grid-row: span 2; display: grid; place-items: center; width: clamp(72px, 7vw, 112px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: clamp(1.375rem, 1rem + 1.4vw, 2.25rem); font-weight: 500; letter-spacing: -0.03em; }
.lv-head h2 { font-size: clamp(2.5rem, 1.2rem + 4.4vw, 5rem); letter-spacing: -0.04em; line-height: 1; }
.lv-head p { max-width: 26em; color: var(--muted); line-height: 1.45; text-wrap: pretty; }
.cp-level .tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(12px, 1.4vw, 20px); }
.cp-track { display: flex; flex-direction: column; padding: clamp(18px, 2.2vw, 32px); border-radius: var(--r); background: var(--paper); }
.cp-track .tr-head { display: flex; align-items: center; gap: 16px; padding: 0 4px; }
.cp-track .ic, .cp-start .ic, .cp-inside .ic { display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--tint); color: var(--deep); }
.cp-track .tr-head .ic { width: 60px; height: 60px; }
.cp-track h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); letter-spacing: -0.03em; }
.cp-track h3 a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .cp-track h3 a:hover { color: var(--deep); } }
.cp-track .tr-head p { margin-top: 6px; font-size: var(--step-small); color: var(--muted); }
/* the path: numbered stations joined by a thin neutral line through their centres */
.cp-seq { position: relative; display: grid; gap: 2px; margin-top: clamp(16px, 2vw, 24px); }
.cp-seq::before { content: ""; position: absolute; left: 29px; top: 28px; bottom: 28px; width: 2px; border-radius: 2px; background: #dfe5f0; }
.cp-seq a { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 56px; padding: 8px 14px 8px 10px; border-radius: 24px; text-decoration: none; line-height: 1.3; transition: background-color .18s; }
.cp-seq .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--f-step); font-size: var(--step-small); font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .18s, color .18s; }
.cp-seq .t { text-wrap: pretty; overflow-wrap: break-word; hyphens: auto; }
.cp-seq .free a { background: var(--f-peach); }
.cp-seq .free .n { background: var(--accent); color: var(--on-accent); }
.cp-seq .free .t { font-weight: 600; }
.cp .tag-free { padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 600; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .cp-seq a:hover { background: var(--ground); }
  .cp-seq a:hover .n { background: var(--ink); color: var(--paper); }
  .cp-seq .free a:hover { background: #fbd6b6; }
}
.cp-track .tr-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; margin-top: clamp(14px, 1.8vw, 22px); padding: 10px 14px 10px 22px; border-radius: 999px; background: var(--tint); font-weight: 600; line-height: 1.25; text-decoration: none; transition: background-color .18s, color .18s; }
.cp-track .tr-more .hi { transition: translate .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .cp-track .tr-more:hover { background: var(--ink); color: var(--paper); } .cp-track .tr-more:hover .hi { translate: 4px 0; } }

/* ---------- catalogue: the last word ---------- */
.cp-end { margin-top: var(--sec); }
.cp-end .band { position: relative; overflow: hidden; display: grid; justify-items: center; gap: clamp(14px, 1.8vw, 22px); padding: clamp(48px, 7vw, 112px) clamp(20px, 4vw, 56px); border-radius: var(--r); background: var(--accent); color: var(--on-accent); text-align: center; }
.cp-end .band > * { position: relative; }
.cp-end h2 { font-size: clamp(2.25rem, 1.1rem + 4.2vw, 4.75rem); letter-spacing: -0.035em; text-wrap: balance; }
.cp-end p { max-width: 32em; font-size: var(--step-lead); line-height: 1.35; text-wrap: pretty; }
.cp-end .frees { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 64em; }
.cp-end .frees a { display: grid; gap: 2px; min-height: 56px; align-content: center; padding: 8px 20px; border-radius: 28px; background: var(--paper); color: var(--ink); font-weight: 600; line-height: 1.25; text-decoration: none; text-align: left; transition: background-color .18s, color .18s; }
.cp-end .frees small { font-size: .75rem; color: var(--muted); transition: color .18s; }
@media (hover: hover) and (pointer: fine) { .cp-end .frees a:hover { background: var(--ink); color: var(--paper); } .cp-end .frees a:hover small { color: #c3d0ea; } }
.cp-end .btn-o { margin-top: 6px; background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .cp-end .btn-o:hover { background: #0d2c5e; } }
.cp-end .rings { position: absolute; inset: 0; pointer-events: none; }
.cp-end .rings span { position: absolute; left: 50%; top: 50%; translate: -50% -50%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(0, 26, 65, .14); }
.cp-end .rings span:nth-child(1) { width: 46%; } .cp-end .rings span:nth-child(2) { width: 72%; } .cp-end .rings span:nth-child(3) { width: 100%; }

/* ---------- one programme: the dial ---------- */
.cp-dial { position: relative; display: grid; place-content: center; justify-items: center; width: min(100%, 460px); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; background: var(--tint); text-align: center; }
.cp-dial .ic { display: grid; place-items: center; width: clamp(52px, 5vw, 64px); aspect-ratio: 1; margin-bottom: 6px; border-radius: 50%; background: var(--paper); color: var(--deep); }
.cp-dial > b { font-size: clamp(5rem, 3rem + 7vw, 9.5rem); font-weight: 500; letter-spacing: -0.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.cp-dial .lb { font-size: var(--step-lead); font-weight: 500; }
.cp-dial .stk { position: absolute; display: grid; place-content: center; justify-items: center; width: clamp(92px, 8vw, 120px); aspect-ratio: 1; border-radius: 50%; font-size: .8125rem; font-weight: 600; line-height: 1.15; box-shadow: 0 18px 36px -18px rgba(0, 26, 65, .5); animation: cp-float 7s ease-in-out infinite alternate; }
.cp-dial .stk b { font-size: clamp(1.375rem, 1.1rem + .8vw, 1.875rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.cp-dial .s1 { right: -2%; top: 8%; background: var(--ink); color: var(--paper); rotate: 8deg; }
.cp-dial .s2 { left: -2%; bottom: 6%; background: var(--accent); color: var(--on-accent); rotate: -8deg; animation-delay: -3s; }
@keyframes cp-float { from { translate: 0 -5px; } to { translate: 0 6px; } }

/* ---------- one programme: start panel + chapter path ---------- */
.cp-prog-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; gap: clamp(12px, 1.6vw, 24px); }
.cp-start { position: sticky; top: 24px; display: grid; gap: clamp(12px, 1.4vw, 20px); }
.cp-start .start, .cp-start .near { padding: clamp(22px, 2.4vw, 36px); border-radius: var(--r); background: var(--paper); }
.cp-start h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem); letter-spacing: -0.035em; }
.cp-start .near h2 { font-size: var(--step-lead); letter-spacing: -0.02em; }
.cp-start .lead { margin-top: 10px; color: var(--muted); line-height: 1.45; text-wrap: pretty; }
.cp-start .pick { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px 18px 12px 12px; border-radius: 28px; background: var(--f-peach); font-weight: 600; line-height: 1.3; text-decoration: none; transition: background-color .18s; }
.cp-start .pick .n { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .cp-start .pick:hover { background: #fbd6b6; } }
.cp-start .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cp-start .acts .btn-o { flex: 1 1 auto; }
.cp-start .acts .btn-o.paper { box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (hover: hover) and (pointer: fine) { .cp-start .acts .btn-o.paper:hover { background: var(--ink); color: var(--paper); } }
.cp-start .near ul { display: grid; gap: 8px; margin-top: 14px; }
.cp-start .near a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--ground); font-weight: 600; line-height: 1.2; text-decoration: none; transition: background-color .18s, color .18s; }
.cp-start .near a > span:not(.ic) { flex: 1; min-width: 0; }
.cp-start .near small { display: block; font-size: .75rem; color: var(--muted); }
.cp-start .near .ic { width: 48px; height: 48px; }
@media (hover: hover) and (pointer: fine) { .cp-start .near a:hover { background: var(--ink); color: var(--paper); } .cp-start .near a:hover small { color: #c3d0ea; } }

.cp-path ol { display: grid; gap: 10px; }
.cp-path a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "n tx st go"; align-items: center; gap: clamp(14px, 1.8vw, 28px); padding: clamp(14px, 1.6vw, 22px) clamp(16px, 2vw, 28px) clamp(14px, 1.6vw, 22px) clamp(14px, 1.6vw, 22px); border-radius: 32px; background: var(--paper); text-decoration: none; transition: background-color .18s; }
.cp-path .n { grid-area: n; display: grid; place-items: center; width: clamp(52px, 4.6vw, 72px); aspect-ratio: 1; border-radius: 50%; background: var(--tint); font-size: clamp(1.125rem, .9rem + .8vw, 1.5rem); font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color .18s, color .18s; }
.cp-path .tx { grid-area: tx; display: grid; gap: 6px; min-width: 0; }
.cp-path h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; text-wrap: pretty; overflow-wrap: break-word; hyphens: auto; }
.cp-path .m { font-size: var(--step-small); color: var(--muted); }
.cp-path .st { grid-area: st; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.cp-path .st.free { background: var(--accent); color: var(--on-accent); }
.cp-path .st.lock { background: var(--f-step); color: var(--muted); }
.cp-path .go { grid-area: go; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #c9d2e3; transition: background-color .18s, box-shadow .18s, translate .25s var(--ease); }
.cp-path .free a { background: var(--f-peach); }
.cp-path .free .n { background: var(--accent); color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) {
  .cp-path a:hover .n { background: var(--ink); color: var(--paper); }
  .cp-path a:hover .go { background: var(--accent); box-shadow: none; translate: 4px 0; }
}

/* ---------- one chapter: outline, study sheet, what's inside ---------- */
.cp-lesson .cp-hero h1 { font-size: clamp(2.125rem, 1.1rem + 3.6vw, 4.75rem); overflow-wrap: break-word; hyphens: auto; }
.cp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cp-lesson .cp-hero .lede { max-width: 36em; }
.cp-outline { padding: clamp(20px, 2.2vw, 32px); border-radius: var(--r); background: var(--paper); }
.cp-outline .h { padding: 0 8px 10px; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.cp-outline ol { display: grid; gap: 4px; }
.cp-outline a { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 16px 8px 8px; border-radius: 999px; text-decoration: none; transition: background-color .18s; }
.cp-outline .n { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); font-weight: 600; }
.cp-outline .l { flex: 1; min-width: 0; font-weight: 600; line-height: 1.25; }
.cp-outline small { flex: none; font-size: .8125rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .cp-outline a:hover { background: var(--ground); } }

.cp-lesson-body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; gap: clamp(12px, 1.6vw, 24px); }
/* the sheet: white paper with the faint squares of a French exercise book */
.cp-sheet { min-width: 0; padding: clamp(20px, 3.4vw, 56px); border-radius: var(--r); background-color: var(--paper);
  background-image: linear-gradient(rgba(31, 95, 191, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 95, 191, .06) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px; }
.sh-sec + .sh-sec { margin-top: clamp(40px, 5vw, 72px); }
.sh-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: clamp(16px, 2vw, 28px); }
.sh-head h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); letter-spacing: -0.035em; }
.sh-head .cnt { padding: 6px 14px; border-radius: 999px; background: var(--f-step); font-size: var(--step-small); font-weight: 600; }
.cp-kp { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 12px; }
.cp-kp li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px; padding: clamp(16px, 1.6vw, 22px); border-radius: 24px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); line-height: 1.55; }
.cp-kp .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: var(--step-small); font-weight: 600; }
.cp-kp li > div { min-width: 0; padding-top: 4px; overflow-wrap: break-word; }
.cp-kp b { font-weight: 600; }
.cp-formulas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.cp-formulas li { min-width: 0; padding: 18px 20px 12px; border-radius: 24px; background: var(--sheet); }
.cp-formulas .lb { font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.cp-formulas .fx { overflow-x: auto; overflow-y: hidden; }
.cp-formulas .katex-display { margin: .5em 0; }
.cp-held { display: flex; align-items: center; gap: 16px; padding: clamp(16px, 2vw, 24px); border-radius: 24px; background: var(--sheet); line-height: 1.45; }
.cp-held .ic { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); color: var(--deep); }
.cp-held b { font-weight: 600; }

.cp-inside { position: sticky; top: 24px; }
.cp-inside .box { padding: clamp(22px, 2.4vw, 36px); border-radius: var(--r); background: var(--paper); }
.cp-inside h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem); letter-spacing: -0.035em; }
.cp-inside .inc { display: grid; gap: 18px; margin: clamp(18px, 2vw, 26px) 0 clamp(20px, 2.4vw, 30px); }
.cp-inside .inc li { display: flex; align-items: flex-start; gap: 14px; }
.cp-inside .inc li > :last-child { flex: 1; min-width: 0; }
.cp-inside .ic { width: 44px; height: 44px; }
.cp-inside .inc b { display: block; font-weight: 600; line-height: 1.3; }
.cp-inside .inc small { display: block; margin-top: 2px; font-size: var(--step-small); color: var(--muted); line-height: 1.4; }
.cp-inside .diff { margin-top: 12px; }
.cp-inside .diff .bar { display: flex; gap: 3px; height: 10px; }
.cp-inside .diff i { flex-basis: 0; border-radius: 999px; }
.cp-inside .facile { --c: #8fd0a8; } .cp-inside .moyen { --c: #8fb3ec; } .cp-inside .difficile { --c: #f29aa9; }
.cp-inside .diff i { background: var(--c); }
.cp-inside .keys { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.cp-inside .keys span { display: inline-flex; align-items: center; gap: 6px; }
.cp-inside .keys u { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.cp-inside .btn-o { width: 100%; }
.cp-inside .note { display: grid; justify-items: start; gap: 10px; margin-top: 16px; font-size: var(--step-small); color: var(--muted); line-height: 1.45; }
.cp-inside .note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--accent); }

.cp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); margin-top: var(--sec); }
.cp-steps a { display: grid; align-content: start; gap: 8px; padding: clamp(20px, 2vw, 28px) clamp(22px, 2.4vw, 32px); border-radius: var(--r); background: var(--paper); text-decoration: none; transition: background-color .18s, color .18s; }
.cp-steps .k { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.cp-steps b { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; text-wrap: pretty; overflow-wrap: break-word; }
.cp-steps .next { text-align: right; } .cp-steps .next .k { justify-content: flex-end; }
.cp-steps .all { align-content: center; justify-items: center; text-align: center; background: var(--ink); color: var(--paper); }
.cp-steps .all .k { color: #c3d0ea; }
@media (hover: hover) and (pointer: fine) {
  .cp-steps .prev:hover, .cp-steps .next:hover { background: var(--tint); }
  .cp-steps .all:hover { background: #0d2c5e; }
}

/* ---------- wide screens ---------- */
@media (min-width: 1400px) {
  .cp-level { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); align-items: start; }
  .lv-head { position: sticky; top: 32px; grid-template-columns: minmax(0, 1fr); }
  .lv-head .lv-n { grid-row: auto; margin-bottom: 8px; }
}

/* ---------- tablets and phones ---------- */
@media (max-width: 1099px) {
  .cp-lesson-body { grid-template-columns: minmax(0, 1fr); }
  .cp-inside { position: static; }
}
@media (max-width: 999px) {
  .cp-hero { grid-template-columns: minmax(0, 1fr); }
  .cp-map { width: min(100%, 440px); }
  .cp-dial { width: min(100%, 380px); }
  .cp-prog-body { grid-template-columns: minmax(0, 1fr); }
  .cp-start { position: static; order: 2; }
  .cp-outline { max-width: 560px; }
}
@media (max-width: 899px) {
  .cp-level .tracks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 699px) {
  .cp-track .tr-head .ic { width: 48px; height: 48px; }
  .cp-path a { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "n tx" ". st"; row-gap: 10px; padding: 14px 16px 14px 12px; border-radius: 28px; }
  .cp-path .st { justify-self: start; }
  .cp-path .go { display: none; }
  .cp-dial .stk { width: 84px; font-size: .75rem; }
  .cp-dial .s1 { right: 0; } .cp-dial .s2 { left: 0; }
  .cp-outline small { display: none; }
  .cp-held { align-items: flex-start; }
  .cp-steps { grid-template-columns: minmax(0, 1fr); }
  .cp-steps .gap { display: none; }
  .cp-steps .next { order: -1; }
  .cp-end .frees li { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cp-dial .stk { animation: none; }
  .cp-map .disc, .cp-track .tr-more .hi, .cp-path .go { transition: none; }
}
