/* The Desk's top bar, the only menu since v70 (14 Oct 2026). Harsh: "since we have a menu at the top right, do we need
   the menu panel below?" He chose to remove the bottom bar & have the top bar come back when you scroll up. The bar
   stays at the top of the screen, slides away while you scroll down & comes back on the way up (BAR_JS sets
   .bar-hide / .bar-show on .hvd & --bar-h, the bar's height). Loaded after every other sheet of a Desk page. */
html body .hvd>.hvd-bar{position:sticky;top:8px;z-index:60;transition:transform .28s cubic-bezier(.2,.7,.2,1)}
html body .hvd.bar-hide>.hvd-bar{transform:translateY(calc(-100% - 24px))}
@media (prefers-reduced-motion:reduce){html body .hvd>.hvd-bar{transition:none}}
/* Over the page it is nearly solid, so the words underneath never show through. */
html body .hvd.hvd.bar-show>.hvd-bar.hvd-bar{background:#FFFBF7}

/* Things that stay on screen move down while the bar is showing, so it never covers them. */
html body .hvd{--bar-gap:0px}
html body .hvd.bar-show{--bar-gap:calc(var(--bar-h,64px) + 8px)}
html body .hvd .cf.cf2 nav.cf2-idx{top:calc(var(--bar-gap) + 10px);transition:top .28s cubic-bezier(.2,.7,.2,1)}
html body .hvd .dsk .rail{top:calc(var(--bar-gap) + 16px);transition:top .28s cubic-bezier(.2,.7,.2,1)}
html body.hv-brief-page .hvd .hvbr-desktop-toc{top:calc(var(--bar-gap) + 80px);transition:top .28s cubic-bezier(.2,.7,.2,1)}
html body.hv-brief-page .hvd .brief-reading-tools{top:var(--bar-gap)}
html body .hvd .mnx .mnx-rail{top:calc(var(--bar-gap) + 18px)}
@media(max-width:760px){
 html body .hvd>.hvd-bar{top:6px}
 html body .hvd.bar-show{--bar-gap:calc(var(--bar-h,64px) + 6px)}
 html body .hvd .cf.cf2 nav.cf2-idx{top:calc(var(--bar-gap) + 6px)}
}

/* The footer & the end of each page no longer leave room for the bottom bar (it was 110px under the page & 104px under
   the footer). */
html body .hvd .hvd-main{padding-bottom:40px}
body:has(>.hvd)>footer{padding-bottom:32px}
html body .hvd .hvd-dock{display:none}
