/* despani-scrollv (preview). ?scrollv=center: : page chrome stays put, only the middle column scrolls.
   Contract: the column grid is [data-desp-rail]; its children become independent scroll areas, the widest one is the
   main scroll root (window.despScroll.root()). Pages without that grid scroll their .desp-paper instead. Desktop only. */
@media(min-width:901px){
 html[data-scrollv="center"]{height:100%;overflow:hidden}
 html[data-scrollv="center"] body{height:100%;margin:0;overflow:hidden;display:flex;flex-direction:column}
 html[data-scrollv="center"] body>*{flex:none}
 html[data-scrollv="center"] body .desp-scroller>.desp-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
 html[data-scrollv="center"] body .desp-scroller>.desp-body>.desp-paper{flex:1 1 auto;min-height:0;width:100%;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
 html[data-scrollv="center"] body .desp-scroller>.desp-body>.desp-paper>*{flex:none}
 html[data-scrollv="center"] body .desp-scroller>.desp-body>.desp-paper:not(:has(>[data-desp-rail])){overflow-y:auto;display:block;scrollbar-color:auto;scrollbar-width:auto}
 html[data-scrollv="center"] body .desp-scroller>.desp-body>.desp-paper>[data-desp-rail]{flex:1 1 auto;min-height:0;margin-bottom:0!important;grid-template-rows:minmax(0,1fr)!important}
 /* Let nested widgets chain to their owning column, not trap wheel at a capped list edge. */
 html[data-scrollv="center"] [data-scroll-main] *{overscroll-behavior-y:auto}
 /* every column scrolls on its own when taller than the viewport; side columns keep their natural height */
 html[data-scrollv="center"] [data-desp-rail]>*{min-height:0;max-height:100%;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;scrollbar-color:auto;scrollbar-width:auto}
 html[data-scrollv="center"] [data-desp-rail]>:not([data-desp-rail-content]){align-self:stretch;height:100%;scrollbar-gutter:stable;padding-bottom:16px}
 html[data-scrollv="center"] [data-desp-rail]>[data-desp-rail-content]{position:relative;top:auto}
 html[data-scrollv="center"] [data-desp-rail]>*::-webkit-scrollbar,html[data-scrollv="center"] body .desp-scroller>.desp-body>.desp-paper::-webkit-scrollbar{width:8px}
 html[data-scrollv="center"] [data-desp-rail]>*::-webkit-scrollbar-thumb,html[data-scrollv="center"] body .desp-scroller>.desp-body>.desp-paper::-webkit-scrollbar-thumb{background:rgba(125,0,1,.5);border-radius:8px;border:2px solid transparent;background-clip:padding-box}
 html[data-scrollv="center"] [data-desp-rail]>*::-webkit-scrollbar-thumb:hover{background-color:#7d0001}
 html[data-scrollv="center"] [data-desp-rail]>*::-webkit-scrollbar-track{background:transparent}
 html[data-scrollv="center"] [data-desp-rail]>:focus-visible{outline:2px solid #7d0001;outline-offset:-2px}
}
@supports not selector(::-webkit-scrollbar){@media(min-width:901px){html[data-scrollv="center"] [data-desp-rail]>*,html[data-scrollv="center"] body .desp-scroller>.desp-body>.desp-paper{scrollbar-width:thin;scrollbar-color:rgba(125,0,1,.45) transparent}}}

/* ?scrollv=below: header, menu, the red band and the breadcrumb bar stay at the top; everything under the
   breadcrumb (rail, centre, right column, footer) is ONE scroll area, [data-desp-scroller]. The body (and its
   backdrop) never scrolls. Without the mode the scroller is display:contents and the crumbbar is hidden, so the
   normal page is unchanged. */
.desp-scroller{display:contents}
.desp-crumbbar{display:none}
@media(min-width:901px){
 html[data-scrollv="below"]{height:100%;overflow:hidden}
 html[data-scrollv="below"] body{height:100%;margin:0;overflow:hidden;display:flex;flex-direction:column}
 html[data-scrollv="below"] body>*{flex:none}
 html[data-scrollv="below"] body>.desp-crumbbar:has(.j10-path){display:block;flex:none;background:#fff;box-sizing:border-box}
 html[data-scrollv="below"] body>.desp-crumbbar .desp-crumbbar-in{box-sizing:border-box;padding:10px 10px 0!important;zoom:var(--c-page-zoom)}
 html[data-scrollv="below"] body:has(>.desp-crumbbar .j10-path)>.desp-scroller>.desp-body>.desp-paper{padding-top:0!important}
 html[data-scrollv="below"] body>.desp-scroller{display:block;flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:auto;scrollbar-width:auto;outline:0}
 html[data-scrollv="below"] body>.desp-scroller::-webkit-scrollbar{width:8px}
 html[data-scrollv="below"] body>.desp-scroller::-webkit-scrollbar-track{background:transparent}
 html[data-scrollv="below"] body>.desp-scroller::-webkit-scrollbar-thumb{background:rgba(125,0,1,.45);border-radius:8px;border:2px solid transparent;background-clip:padding-box}
 html[data-scrollv="below"] body>.desp-scroller::-webkit-scrollbar-thumb:hover{background-color:#7d0001}
 html[data-scrollv="below"] body>.desp-scroller:focus-visible{box-shadow:inset 0 0 0 2px #7d0001}
}
@supports not selector(::-webkit-scrollbar){@media(min-width:901px){html[data-scrollv="below"] body>.desp-scroller{scrollbar-width:thin;scrollbar-color:rgba(125,0,1,.45) transparent}}}

/* sticky box taller than the scroll area (set by despani-scrollv.js) */
html[data-scrollv] .desp-unstick{position:relative!important;top:auto!important}
