:root{--blue-ink:#15294d;--blue:#235eba;--blue-deep:#174483;--blue-pale:#edf5ff}
body{color:var(--blue-ink);background:linear-gradient(165deg,#edf4ff 0,#f6f9ff 355px,#f8faff 100%);background-attachment:fixed}
.top{gap:7px;background:#f7faff;}
.bottom-nav a[aria-current]{background:linear-gradient(150deg,#f8fcff,#d7e8ff);color:#1d4e9b}
.subject-control button[aria-pressed=true]{color:#1b4b94}
.primary,.hero-button{border-color:#2e6ace;background:linear-gradient(#4387ea,#2665cb);color:white;box-shadow:0 4px 0 #184786,0 5px 9px #0e337221;text-shadow:0 1px #224987}
.primary:hover,.hero-button:hover{background:#235ebc;color:white}
.primary:disabled{box-shadow:none;background:#d8e3f3;border-color:#d8e3f3;color:#536180;text-shadow:none}
.button.secondary,.step-button{background:#f8fbff;border-color:#c8dbf8;color:#224c92;box-shadow:0 3px 0 #c5d5ee}
.button:not(:disabled):active,.step-button:not(:disabled):active{transform:translateY(3px);box-shadow:0 1px 0 #153c7424}
.route-selector,.track-cta,.route-stages{max-width:790px;margin-inline:auto}
.route-selector-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
.route-selector-top h1{font-size:clamp(1.28rem,4.4vw,1.9rem);color:#173665}
.route-selector-top .plain-link{margin:0;color:#1b52a0;font-size:.78rem;white-space:nowrap}
.route-slide{display:grid;grid-template-columns:28px minmax(0,1fr) 28px;gap:4px;align-items:center}
.route-arrow{display:grid;place-items:center;padding:0;border:1px solid #ccdff7;background:#f4faff;color:#1c4f9e;border-radius:10px;min-height:38px;font-size:1.6rem;line-height:1;box-shadow:0 2px 0 #d2e1f5}
.route-arrow:disabled{opacity:.43;cursor:default}
.track-rail{--rail-card:clamp(106px,calc((100% - 6px)/2),238px);position:relative;display:flex;overflow-x:auto;gap:6px;scroll-snap-type:x mandatory;scrollbar-width:none;align-items:stretch;padding:4px 0 6px;cursor:grab;user-select:none;overscroll-behavior-x:contain}
.track-rail::after{content:"";flex:0 0 max(0px,calc(100% - var(--rail-card) - 6px))}
.track-rail::-webkit-scrollbar{display:none}
.track-rail.dragging{scroll-snap-type:none;cursor:grabbing}
.route-chip{display:flex;align-items:center;gap:7px;flex:0 0 var(--rail-card);min-width:0;min-height:48px;border-radius:13px;padding:5px 8px;background:#f6faff;border:1px solid #dae6f8;scroll-snap-align:start;color:#3a537b;font-weight:850;font-size:.82rem;line-height:1.18;cursor:inherit}
.route-chip[aria-current]{background:#e0edff;color:#174482;border-color:#84ace9;box-shadow:0 2px 0 #c6daf8}
.route-chip>span:last-child{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.route-number{display:grid;place-items:center;border-radius:8px;min-width:25px;height:25px;background:#dceaff;color:#235191;font-size:.76rem;font-weight:950;flex:none}
.route-chip[aria-current] .route-number{background:#2865bb;color:#fff}
.track-cta{display:flex;gap:8px;flex-wrap:wrap}
.track-cta .button{min-height:38px;padding:8px 10px;font-size:.83rem}
.route-stages{margin-top:24px}
.route-stages .section-title h2{color:#1b3e73}
.route-divider{display:grid;grid-template-columns:minmax(9px,1fr) auto minmax(9px,1fr);gap:8px;align-items:center;color:#466489;font-size:.78rem;font-weight:950;text-align:center;margin:12px 0 9px}
.route-divider::before,.route-divider::after{content:"";display:block;border-top:1px solid #d6e4f6}
.route-lessons{list-style:none;padding:1px 0 2px;margin:0;display:grid;gap:9px}
.route-node{position:relative;--indent:0px}
.route-node:nth-child(4n + 2){--indent:11px}
.route-node:nth-child(4n + 3){--indent:21px}
.route-node:nth-child(4n + 4){--indent:11px}
.route-lesson{width:100%;display:grid;grid-template-columns:55px minmax(0,1fr);gap:11px;align-items:center;border:0;border-radius:15px;background:transparent;min-height:61px;padding:4px 6px 7px calc(8px + var(--indent));text-align:left;font:inherit;color:#294667}
.route-lesson:disabled{cursor:default}
.route-circle{display:grid;place-items:center;width:49px;height:49px;border-radius:50%;font-size:1.1rem;font-weight:950;color:#fff;background:linear-gradient(155deg,#519bf8,#2d66c5);box-shadow:0 5px 0 #17477f,inset 0 1px 0 #baddff}
.route-circle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.route-open .route-circle{outline:2px solid #b8d8ff;outline-offset:3px}
.route-lesson:not(:disabled):hover{background:#e8f2ff}
.route-lesson:not(:disabled):active .route-circle{transform:translateY(4px);box-shadow:0 1px 0 #17477f}
.route-node.route-done .route-circle{background:linear-gradient(#3e9fe8,#2675bd)}
.route-node.route-locked .route-circle{background:#e4edf9;color:#617b9d;box-shadow:0 5px 0 #c8d6ea,inset 0 1px 0 #fff}
.route-content{display:grid;gap:2px;min-width:0}
.route-content strong{font-size:.99rem;line-height:1.21;font-weight:950}
.route-content small{color:#597395;font-size:.77rem;font-weight:800}
.catalog-card .small-icon{background:#e5efff;color:#2059ad}
.guided-quiz .step-challenge,.math-phase,#teach-practice-heading{scroll-margin-block:168px 82px}
@media(max-width:350px){.route-slide{grid-template-columns:24px minmax(0,1fr) 24px}.route-chip{min-height:54px;font-size:.75rem;gap:5px}}
@media(prefers-reduced-motion:reduce){
 .header-meter i::before,.progress-beacon,.progress-beacon::before,.progress-beacon::after{animation:none}
 .button:not(:disabled):active,.route-lesson:not(:disabled):active .route-circle{transform:none}
}
