/* The contour owns tab paint. State is derived from the actual tab, including keyboard focus. */
[data-sidebar-s-contour] { isolation:isolate; }
[data-sidebar-s-contour] > [role=tab] { position:relative; z-index:1; border:0; border-radius:0; background:transparent; box-shadow:none; color:var(--website-color-text); }
[data-sidebar-s-contour] > [role=tab]::before { content:none; }
[data-sidebar-s-art] { position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; z-index:0; }
[data-sidebar-s-fill] { fill:var(--website-color-surface); stroke:none; }
[data-sidebar-s-fill][data-state=hover] { fill:var(--website-state-hover-background); }
[data-sidebar-s-fill][data-state=focus] { fill:var(--website-state-focus-background); }
[data-sidebar-s-line] { fill:none; stroke:var(--website-color-accent); stroke-width:1; vector-effect:non-scaling-stroke; }

:is([data-area=sidebar],#tracking-sidebar):has([data-sidebar-s-contour]) { overflow:clip; overflow-clip-margin:2px; }

/* Closed sidebars must not expand the application's scrollable overflow. */
:is([data-area=sidebar],#tracking-sidebar)[aria-hidden=true]:has([data-sidebar-s-contour]) { overflow-clip-margin:0px; }

/* Keep the closed sidebar contour's resize edge inside the viewport. */
:root:not([data-sidebar-state=show]) [data-layout-owner=sidebar-resize]::before { right:0; }
