/* Existing anchors remain usable before the disclosure is enhanced. */
.wmd-chapter-rail>a[hidden]{display:none!important}
#landingChapterRail[data-mobile-rail-enhanced="true"]:not([hidden]){
  position:fixed;right:max(0px,env(safe-area-inset-right));top:50%;bottom:auto;left:auto;
  transform:translateY(-50%);z-index:70;display:flex;align-items:stretch;flex-direction:column;
  width:44px;gap:0;margin:0;padding:0;border:0;border-radius:14px;background:transparent;
  box-shadow:none;box-sizing:border-box;
}
#landingChapterRail[data-mobile-rail-enhanced="true"]::before,
#landingChapterRail[data-mobile-rail-enhanced="true"]::after{display:none}
#landingChapterRail[data-mobile-revealed="false"]{visibility:hidden;pointer-events:none}
#landingChapterRail[data-expanded="false"]>a{display:none!important}
.wmd-chapter-toggle{
  position:relative;align-self:flex-end;flex:none;width:44px;height:44px;
  min-width:44px;min-height:44px;margin:0;padding:0;cursor:pointer;
  border:0;border-radius:14px;background:transparent;color:#a9d7ef;touch-action:manipulation;
}
.wmd-chapter-toggle::before{
  content:"";position:absolute;inset:0 10px;border:1px solid #45647b;
  border-radius:999px;background:#10283b;
}
.wmd-chapter-toggle::after{
  content:"";position:absolute;top:calc(50% - 2px);left:calc(50% - 2px);
  width:4px;height:4px;border-radius:50%;background:currentColor;
  box-shadow:0 -7px currentColor,0 7px currentColor;
}
#landingChapterRail[data-expanded="true"]:not([hidden]){
  width:max-content;max-width:calc(100vw - 24px);max-height:80vh;max-height:80dvh;
  overflow:auto;overscroll-behavior:contain;padding:0 0 4px;
  border:1px solid #45647b;background:#10283b;box-shadow:0 6px 22px rgba(4,14,24,.32);
}
#landingChapterRail[data-expanded="true"] .wmd-chapter-toggle::before{border-color:transparent}
#landingChapterRail[data-expanded="true"]>a:not([hidden]){
  display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 auto;
  width:auto;min-height:44px;padding:0 14px;color:#e6f2fd;text-decoration:none;
}
#landingChapterRail[data-expanded="true"] .wmd-chapter-label{
  position:static;order:-1;visibility:visible;opacity:1;transform:none;
  width:auto;max-width:none;margin:0;padding:0;border:0;background:transparent;
  box-shadow:none;pointer-events:auto;font:650 13px/1.3 system-ui,sans-serif;
}
#landingChapterRail .wmd-chapter-dot{
  display:block;flex:none;width:8px;height:8px;border-radius:50%;
  background:#24435c;border:1px solid #81a5c0;
}
#landingChapterRail a.is-complete .wmd-chapter-dot{background:#658ca9}
#landingChapterRail a[aria-current="location"] .wmd-chapter-dot{background:#a3d9ff;outline:2px solid #a3d9ff}
#landingChapterRail :is(button,a):focus-visible{outline:2px solid #bce7ff;outline-offset:-3px}
@media(max-width:820px){
}
