/* rmc-scroll-arrows.css — paint for js/rmc-scroll-arrows.js.
 * Every scrollable pane (vertical or horizontal) and the page itself get up/down
 * (or left/right) arrow buttons, shown only in a direction that can still scroll.
 * Tokens only; the layer is one fixed overlay so no pane's DOM is touched. */
.rmc-scroll-arrows {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  pointer-events: none;
  contain: layout style;
}
.rmc-scroll-arrow {
  position: fixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: 1px solid color-mix(in oklab, var(--border-default, currentColor) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface-elevated, var(--surface-primary, Canvas)) 92%, transparent);
  color: var(--text-primary, CanvasText);
  box-shadow: 0 1px 4px color-mix(in oklab, #000 28%, transparent);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.82;
  transition: opacity 120ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}
.rmc-scroll-arrow[hidden] {
  display: none;
}
.rmc-scroll-arrow:hover,
.rmc-scroll-arrow:focus-visible,
.rmc-scroll-arrow[data-held="1"] {
  opacity: 1;
  background: var(--school-primary, var(--surface-elevated, Canvas));
  color: var(--text-on-primary, #fff);
}
.rmc-scroll-arrow:focus-visible {
  outline: 2px solid var(--focus-ring, var(--school-primary, Highlight));
  outline-offset: 2px;
}
.rmc-scroll-arrow svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.rmc-scroll-arrow[data-dir="up"] svg {
  transform: rotate(180deg);
}
.rmc-scroll-arrow[data-dir="left"] svg {
  transform: rotate(90deg);
}
.rmc-scroll-arrow[data-dir="right"] svg {
  transform: rotate(-90deg);
}
/* Docked in a scrollbar track: reads as part of the bar, not a button over content. */
.rmc-scroll-arrow[data-docked="1"] {
  border: 0;
  border-radius: 2px;
  box-shadow: none;
  opacity: 1;
  background: var(--surface-elevated, var(--surface-primary, Canvas));
}
.rmc-scroll-arrow[data-docked="1"] svg {
  width: 10px;
  height: 10px;
  stroke-width: 3;
}
/* Page-level pair: larger, easier to hit on touch. */
.rmc-scroll-arrow[data-page="1"] {
  width: 36px;
  height: 36px;
  opacity: 0.9;
}
@media (pointer: coarse) {
  .rmc-scroll-arrow {
    width: 36px;
    height: 36px;
  }
  .rmc-scroll-arrow[data-page="1"] {
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rmc-scroll-arrow {
    transition: none;
  }
}
@media (forced-colors: active) {
  .rmc-scroll-arrow {
    border: 1px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
    box-shadow: none;
  }
  .rmc-scroll-arrow:hover,
  .rmc-scroll-arrow:focus-visible {
    background: Highlight;
    color: HighlightText;
  }
}
@media print {
  .rmc-scroll-arrows {
    display: none;
  }
}
