/* School catalog filter rail: a restrained 12/48 px measuring scale. */
.filter-ruler-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-ruler-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (min-width: 768px) {
  html.has-page-ruler-scroll,
  html.has-page-ruler-scroll body {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  html.has-page-ruler-scroll::-webkit-scrollbar,
  html.has-page-ruler-scroll body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}

.filter-ruler-rail {
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 20px;
  pointer-events: auto;
  cursor: default !important;
  opacity: 1;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 47px,
      rgba(17, 17, 17, 0.3) 47px 48px
    ) right center / 14px 100% no-repeat,
    repeating-linear-gradient(
      to bottom,
      transparent 0 11px,
      rgba(17, 17, 17, 0.17) 11px 12px
    ) right center / 7px 100% no-repeat;
  transition: opacity 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

.page-ruler-rail {
  right: 0;
}

.filter-ruler-thumb {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 20px;
  min-height: 96px;
  cursor: default !important;
  opacity: 0;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  transition:
    transform 180ms cubic-bezier(0.77, 0, 0.175, 1),
    opacity 140ms cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.filter-ruler-rail[data-scrollable="true"] .filter-ruler-thumb {
  opacity: 1;
}

.filter-ruler-thumb-core {
  position: absolute;
  inset: 0 0 0 auto;
  width: 1px;
  background: rgba(17, 17, 17, 0.52);
  opacity: 0.82;
  transition:
    background-color 140ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

.filter-ruler-thumb::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 16px;
  height: 1px;
  background: rgba(17, 17, 17, 0.52);
  transform: translateY(-50%);
  transition: background-color 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

.filter-ruler-thumb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(17, 17, 17, 0.52);
  background: #fff;
  transform: translateY(-50%);
  transition:
    border-color 140ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

.filter-ruler-rail.is-scrolling .filter-ruler-thumb,
.filter-ruler-rail.is-dragging .filter-ruler-thumb {
  transition-duration: 0ms, 140ms;
}

@media (hover: hover) and (pointer: fine) {
  .filter-ruler-shell:hover .filter-ruler-thumb-core {
    background: rgba(17, 17, 17, 0.72);
    opacity: 1;
  }

  .filter-ruler-shell:hover .filter-ruler-thumb::before {
    background: rgba(17, 17, 17, 0.72);
  }

  .filter-ruler-shell:hover .filter-ruler-thumb::after {
    border-color: rgba(17, 17, 17, 0.72);
  }
}

.filter-ruler-rail.is-scrolling .filter-ruler-thumb-core,
.filter-ruler-shell:hover .filter-ruler-rail.is-scrolling .filter-ruler-thumb-core {
  background: rgba(17, 17, 17, 0.78);
  opacity: 1;
}

.filter-ruler-rail.is-scrolling .filter-ruler-thumb::before {
  background: rgba(17, 17, 17, 0.78);
}

.filter-ruler-rail.is-scrolling .filter-ruler-thumb::after {
  border-color: rgba(17, 17, 17, 0.78);
  background: rgba(17, 17, 17, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .filter-ruler-thumb {
    transition: opacity 140ms linear;
  }

  .filter-ruler-thumb-core,
  .filter-ruler-shell:hover .filter-ruler-thumb-core,
  .filter-ruler-rail.is-scrolling .filter-ruler-thumb-core {
    transition: background-color 140ms linear, opacity 140ms linear;
  }
}
