/* P03.17 compact accessible floating chapter navigator */
.ast-p03-chapters[hidden],.ast-p03-chapters-panel[hidden]{display:none!important}
.ast-p03-chapters{position:fixed;z-index:165;right:clamp(12px,2vw,28px);bottom:clamp(78px,7vw,92px);font-family:inherit;font-size:14px;color:var(--ast-text,#fff);max-width:calc(100vw - 24px)}
.ast-p03-chapters-toggle{display:flex;align-items:center;gap:9px;padding:11px 16px;min-height:48px;border-radius:999px;background:#221a44;border:1px solid #8f6dce;box-shadow:0 12px 38px #030416b8;color:#fff;cursor:pointer;font-weight:800;font-size:14px;transition:background .2s,transform .2s}
.ast-p03-chapters-toggle:hover,.ast-p03-chapters-toggle[aria-expanded="true"]{background:#44306b}
.ast-p03-chapters-toggle:focus-visible,.ast-p03-chapters-panel a:focus-visible,.ast-p03-chapters-close:focus-visible{outline:3px solid var(--ast-focus,#5FE0F5);outline-offset:3px}
.ast-p03-chapters-toggle span[aria-hidden]{font-size:20px;line-height:1}
.ast-p03-chapters-panel{position:absolute;right:0;bottom:calc(100% + 10px);width:min(346px,calc(100vw - 28px));max-height:min(65vh,520px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #8f72c4;background:linear-gradient(145deg,#1b1c3c,#10152d);box-shadow:0 24px 65px #000c;border-radius:18px}
.ast-p03-chapters-head{display:flex;align-items:center;justify-content:space-between;padding:13px 15px 9px;gap:12px}.ast-p03-chapters-head strong{font-size:15px;line-height:1.3}.ast-p03-chapters-close{width:36px;height:36px;flex:none;cursor:pointer;font-size:24px;line-height:1;border-radius:10px;color:#fff;background:#31254e;border:1px solid #75689e}
.ast-p03-chapters-list{padding:5px 12px 14px;margin:0;list-style:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;min-height:0}
.ast-p03-chapters-list li+li{margin-top:3px}.ast-p03-chapters-list a{display:block;padding:11px 13px;border-radius:10px;text-decoration:none;color:#D9DEFB;line-height:1.38;font-size:13px;overflow-wrap:anywhere}.ast-p03-chapters-list a:hover{background:#2d2c5c;color:#fff}.ast-p03-chapters-list a[aria-current="location"]{background:#463075;color:#fff;box-shadow:inset 3px 0 #5FE0F5;font-weight:760}
#main h2[id^="ast-chapter-"]{scroll-margin-top:110px}
@media(max-width:600px){.ast-p03-chapters{right:12px;bottom:72px}.ast-p03-chapters-panel{width:min(328px,calc(100vw - 24px));max-height:56vh}}
@media(prefers-reduced-motion:reduce){.ast-p03-chapters-toggle{transition:none}}
