/* "On this page" bar for the long pages (tools/gen/design.py OTP_PAGES). Shown once the reader is past the first
   section heading; sits under the shared navigation. */
.otp{position:fixed;left:0;right:0;top:58px;z-index:45;background:rgba(14,15,18,.95);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.1);font:500 14px/1.35 "Inter Site",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:#e6e6e9;transform:translateY(-110%);opacity:0;visibility:hidden;transition:transform .2s,opacity .2s,visibility .2s}
.otp.on{transform:none;opacity:1;visibility:visible}
.otp *{box-sizing:border-box}
.otp-in{max-width:1180px;margin:0 auto;display:flex;align-items:flex-start;gap:8px;padding:0 max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px))}
.otp details{flex:1;min-width:0}
.otp summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;min-height:44px;min-width:0}
.otp summary::-webkit-details-marker{display:none}
.otp-k{flex:none;font-size:11.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#f7931a}
.otp-c{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff}
.otp summary:after{content:"";flex:none;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px);margin:0 4px}
.otp details[open] summary:after{transform:rotate(-135deg) translateY(-2px)}
.otp ol{list-style:none;margin:0 0 10px;padding:6px 0 0;max-height:min(60vh,460px);overflow-y:auto;border-top:1px solid rgba(255,255,255,.08)}
.otp li a{display:block;padding:10px 4px;color:#d9dade;text-decoration:none;border-radius:6px}
.otp li a:hover,.otp li a[aria-current]{color:#f7931a}
.otp-top{flex:none;min-width:44px;min-height:44px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:none;color:#e6e6e9;font:600 16px/1 inherit;cursor:pointer}
.otp-top:hover{border-color:#f7931a;color:#f7931a}
.otp summary:focus-visible,.otp-top:focus-visible,.otp li a:focus-visible{outline:2px solid #f7931a;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.otp{transition:none}}
@media print{.otp{display:none}}
