/* Course chapters are native links; the meter is an optional local enhancement. */
.course-chapters{--header-height:90px;position:sticky;top:var(--header-height);z-index:20;max-width:100%;border-block:1px solid #d5e2e9;background:rgba(251,250,248,.96);box-shadow:0 6px 18px #24445406;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.course-chapters-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;min-width:0}
.course-chapters .pilot-page-nav{display:flex;flex-wrap:nowrap;gap:4px;min-width:0;max-width:100%;margin:0;padding:8px 2px;border:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#acbecb transparent;scroll-behavior:auto}
.course-chapters .pilot-page-nav::-webkit-scrollbar{height:4px}
.course-chapters .pilot-page-nav::-webkit-scrollbar-thumb{border-radius:4px;background:#acbecb}
.course-chapters .pilot-page-nav a{display:inline-flex;flex:none;align-items:center;gap:8px;min-height:44px;padding:9px 12px;border:1px solid transparent;border-radius:12px;color:var(--muted);font-size:12px;line-height:1.5;font-weight:600;white-space:nowrap;text-decoration:none;transition:background .18s,color .18s,border-color .18s}
.course-chapters .pilot-page-nav a:hover{color:var(--ink);background:#edf3f6;text-decoration:none}
.course-chapters .pilot-page-nav a[aria-current=location]{color:var(--tone-ink,var(--blue));border-color:#cbdde7;background:var(--tone,#eaf4fa)}
.course-chapters .pilot-page-nav a:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.course-chapter-index{display:inline-flex;align-items:center;justify-content:center;flex:none;width:22px;height:22px;border-radius:7px;background:#e9eff2;color:#526873;font-size:9px;font-weight:650;font-variant-numeric:tabular-nums}
.course-chapters .pilot-page-nav a[aria-current=location] .course-chapter-index{color:var(--tone-ink,var(--blue));background:#ffffffc9}
.course-chapters .pilot-page-nav a[data-course-chapter-auxiliary]{margin-inline-start:6px;border-inline-start-color:#d5e2e9}
.course-chapters .pilot-page-nav a[data-course-chapter-auxiliary] .course-chapter-index{font-size:16px;font-weight:500;background:transparent}
.course-chapters-progress{display:grid;grid-template-columns:auto 64px 4ch;align-items:center;gap:8px;min-width:0;color:var(--muted);font-size:10px;line-height:1.5}
.course-chapters-progress[hidden]{display:none}
.course-chapters-progress-label{font-weight:500}
.course-chapters-progress-value{text-align:right;font-variant-numeric:tabular-nums}
.course-chapters-progress progress{display:block;width:64px;height:5px;overflow:hidden;border:0;border-radius:8px;appearance:none;-webkit-appearance:none;background:#dae6ed;color:var(--blue);accent-color:var(--blue)}
.course-chapters-progress progress::-webkit-progress-bar{border-radius:8px;background:#dae6ed}
.course-chapters-progress progress::-webkit-progress-value{border-radius:8px;background:var(--blue)}
.course-chapters-progress progress::-moz-progress-bar{border-radius:8px;background:var(--blue)}
:root:has([data-course-chapters]){scroll-padding-top:var(--course-chapters-clearance,188px)}
body[data-course-pilot] :is(#course-overview,#pilot-programme,#pilot-practice,#pilot-sessions,#course-inclusions,#course-authority,#programme-variants,#pilot-teacher,#hero-trainer-ia,#hero-trainer-sistemas){scroll-margin-top:0}
@media(max-width:960px){.course-chapters{--header-height:82px}.course-chapters-inner{gap:14px}}
@media(max-width:760px){
 .course-chapters-inner{grid-template-columns:minmax(0,1fr);gap:0}
 .course-chapters .pilot-page-nav{margin-inline:-2px;padding-block:7px}
 .course-chapters .pilot-page-nav a{padding-inline:10px}
 .course-chapters-progress{position:absolute;inset:auto 0 0;display:block;width:100%;height:3px;padding:0}
 .course-chapters-progress-label,.course-chapters-progress-value{display:none}
 .course-chapters-progress progress{width:100%;height:3px;border-radius:0}
 .course-chapters-progress progress::-webkit-progress-bar,.course-chapters-progress progress::-webkit-progress-value{border-radius:0}
 :root:has([data-course-chapters]){scroll-padding-top:var(--course-chapters-clearance,172px)}
}
@media(max-height:600px){.course-chapters{position:relative;top:auto}:root:has([data-course-chapters]){scroll-padding-top:var(--course-chapters-clearance,106px)}}
@media(prefers-reduced-motion:reduce){
 :root:has([data-course-chapters]){scroll-behavior:auto}
 .course-chapters .pilot-page-nav a{transition:none}
}
@media print{.course-chapters{display:none!important}}
