/* AOG progressive depth (src/dpnav.js): side rail, edge rail with progress marker, reachable collapse (memory bars removed, REFINE-02). Pure CSS. */
html{scroll-behavior:smooth;scroll-padding-top:76px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* PASS 1 (trust UX): a stuck control is a light frosted tint, not an opaque block. The page ground is a gradient, so any solid colour shows as a dark band; the tint takes the card's own surface and blurs what scrolls beneath it. */
/* the page's own + panels stay reachable while open, so closing them never loses the place */
/* overflow:clip keeps the card's rounded clipping but, unlike hidden, is not a scroll container, so the open card's control can stick */
.page-content .ov-card.open{overflow:clip}
.page-content .ov-card.open>.ov-card-head{position:sticky;top:64px;z-index:6;background:color-mix(in srgb,var(--bg-1,#08080d) 28%,transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.page-content .ov-card details.ws-deep[open]>summary{position:sticky;top:116px;z-index:5;background:color-mix(in srgb,var(--bg-1,#08080d) 28%,transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.page-content details.ws-deep details.ws-deep[open]>summary{top:160px;z-index:4;background:color-mix(in srgb,var(--bg-1,#08080d) 28%,transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
/* light theme: the page ground is flat, so a firmer tint keeps the blurred text beneath from smearing */
html[data-theme="light"] .page-content .ov-card.open>.ov-card-head,html[data-theme="light"] .page-content .ov-card details.ws-deep[open]>summary,html[data-theme="light"] .page-content details.ws-deep details.ws-deep[open]>summary{background:color-mix(in srgb,var(--bg-1,#faf8f4) 82%,transparent)}
.dp-rail{display:none}
.dp-rail ol,.dp-edge nav ol{list-style:none;margin:0;padding:0}
.dp-rail a,.dp-edge nav a{display:block;padding:7px 0 7px 12px;border-left:2px solid var(--bdr,rgba(255,255,255,.12));color:var(--t4,#828292);text-decoration:none;font:500 12px/1.3 var(--fm,ui-monospace,Menlo,Consolas,monospace);letter-spacing:.04em;overflow-wrap:anywhere}
.dp-rail a:hover,.dp-edge nav a:hover{color:var(--t1,#fff);border-left-color:var(--a,#d4af37)}
/* CONTENTS control (below 1540px): a slim bar that lives in the navigation surface, under the header, in the page flow. It never floats over copy.
   Tap it for the sections; tap anywhere outside to close. The thin line along its foot is the reading-progress marker. */
.dp-edge{position:sticky;top:var(--nav-h,64px);z-index:90}
.dp-edge>summary{list-style:none;position:relative;z-index:1;display:flex;align-items:center;gap:12px;height:40px;box-sizing:border-box;padding:0 max(clamp(20px,5vw,60px),calc((100% - 1100px)/2));cursor:pointer;background:var(--bg-1,#08080d);border-bottom:1px solid var(--bdr,rgba(255,255,255,.12));font:700 .68rem/1 var(--fm,ui-monospace,Menlo,Consolas,monospace);letter-spacing:.16em;text-transform:uppercase;color:var(--t3,#9a9aae)}
.dp-edge>summary::-webkit-details-marker{display:none}
.dp-edge>summary::after{content:"+";margin-left:auto;font:400 1.15rem/1 var(--fd,Georgia,serif);letter-spacing:0;color:var(--a,#d4af37);transition:transform .2s}
.dp-edge[open]>summary::after{transform:rotate(45deg)}
.dp-edge>summary:hover,.dp-edge>summary:focus-visible{color:var(--a,#d4af37)}
.dp-edge>summary::before{content:"Contents"}
.dp-edge .dp-bar{position:absolute;left:0;right:0;bottom:-1px;height:2px;background:transparent;pointer-events:none}
.dp-edge .dp-mark{position:absolute;left:0;top:0;width:100%;height:2px;background:var(--a,#d4af37);transform:scaleX(0);transform-origin:left}
.dp-edge nav{position:fixed;z-index:91;top:calc(var(--nav-h,64px) + 46px);left:16px;width:min(340px,calc(100vw - 32px));max-height:calc(100vh - var(--nav-h,64px) - 70px);overflow:auto;background:var(--bg-2,#0f0f18);border:1px solid var(--bdr-a,rgba(212,175,55,.3));border-radius:8px;padding:8px 10px 8px 6px;box-shadow:0 8px 30px rgba(0,0,0,.6)}
.dp-edge:not([open]) nav{display:none}
/* the dimmed field under an open panel belongs to the summary, so tapping it closes the panel without script */
.dp-edge[open]>summary .dp-bar::before{content:"";position:fixed;left:0;right:0;bottom:0;top:calc(var(--nav-h,64px) + 40px);background:rgba(0,0,0,.4);pointer-events:auto;z-index:-1}
@supports (animation-timeline:scroll()){
  .dp-edge .dp-mark{animation:dpprog linear both;animation-timeline:scroll(root)}
  @keyframes dpprog{from{transform:scaleX(0)}to{transform:scaleX(1)}}
}
/* the bar takes 40px under the header: stuck controls and anchor jumps clear it */
@media (max-width:1539px){
  html:has(.dp-edge){scroll-padding-top:116px}
  .page-content:has(.dp-edge) .ov-card.open>.ov-card-head{top:104px}
  .page-content:has(.dp-edge) .ov-card details.ws-deep[open]>summary{top:156px}
  .page-content:has(.dp-edge) details.ws-deep details.ws-deep[open]>summary{top:200px}
}
/* wide screens: a quiet rail in the left margin, only where the margin is genuinely wide enough to hold it clear of the copy
   (the copy column is 1100px; the rail takes what is left, minus 20px to the edge and 24px of air). Below this width the CONTENTS bar serves. */
@media (min-width:1540px){
  .dp-edge{display:none}
  .dp-rail{display:block;position:fixed;left:20px;top:96px;width:min(240px,calc((100vw - 1100px)/2 - 44px));max-height:calc(100vh - 120px);overflow:auto;z-index:40}
}
/* the centered proof strip is wider than the copy column (four labels across, ~1230px); between 1540 and 1799px its first label would sit under the rail, so its gap closes up there */
@media (min-width:1540px) and (max-width:1799px){.page-content .aog-trust .proof{gap:32px}}
/* a long explanatory line keeps a readable measure inside the opened depths */
.aog-trust .ws-deep-in>p,.aog-trust .ws-deep-in>.ws-u{max-width:46rem}

/* FAQ: the open question's control stays reachable (its category sidebar and mobile bar already do the rail's job) */
.page-content .faq-item:has(.faq-q[aria-expanded="true"]){overflow:clip}
.page-content .faq-q[aria-expanded="true"]{position:sticky;top:64px;z-index:6;background:var(--bg-1,#08080d)}
@media (max-width:899px){.page-content .faq-q[aria-expanded="true"]{top:112px}}
