/* Shared native scrollbars: page, panels, forms and tables in either direction. */
:root {
 --rj-scrollbar-track:#edf1f2;
 --rj-scrollbar-thumb:#667f8a;
 --rj-scrollbar-hover:#365c6d;
}
* {
 scrollbar-width:thin;
 scrollbar-color:var(--rj-scrollbar-thumb) var(--rj-scrollbar-track);
}
html {scrollbar-width:auto}

/* Rounded controls where the browser exposes native scrollbar pseudo-elements. */
@supports selector(::-webkit-scrollbar) {
 * {scrollbar-width:auto;scrollbar-color:auto}
 *::-webkit-scrollbar {width:10px;height:10px}
 html::-webkit-scrollbar {width:12px;height:12px}
 *::-webkit-scrollbar-track,
 *::-webkit-scrollbar-corner {background:var(--rj-scrollbar-track)}
 *::-webkit-scrollbar-track {border-radius:999px}
 *::-webkit-scrollbar-thumb {
  background:var(--rj-scrollbar-thumb);
  border:2px solid var(--rj-scrollbar-track);
  border-radius:999px;
  min-height:36px;
 }
 *::-webkit-scrollbar-thumb:hover {background:var(--rj-scrollbar-hover)}
 *::-webkit-scrollbar-thumb:active {background:var(--rj-scrollbar-hover)}
}

/* Follow system contrast choices instead of imposing the journal palette. */
@media (forced-colors:active) {
 * {scrollbar-width:auto;scrollbar-color:auto}
 *::-webkit-scrollbar {width:auto;height:auto}
 *::-webkit-scrollbar-track,
 *::-webkit-scrollbar-corner {background:Canvas}
 *::-webkit-scrollbar-thumb {background:CanvasText;border-color:Canvas}
}
