@charset "UTF-8";
/* =============================================================
   Cinematographers Schweiz – shared drag-to-scroll rail (V32 look)
   Opt-in: <body data-scroll-rail="document"> + scroll-rail.js
   Only this narrow right-hand area is restyled. Leaflet and the
   existing right-side PIN/navigation controls are not changed.
   ============================================================= */

.site-scroll-rail {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1100;
  width: 2.5rem;
  height: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid #000;
  background: #000;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: ns-resize;
}

.site-scroll-rail[hidden] { display: none !important; }

.site-scroll-rail__grip {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 4rem;
  min-height: 4rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #f4f4f4;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  outline: 0;
  transform: translateY(0);
  will-change: transform;
}

/* The V32 middle line: 1 px instead of 2 px. */
.site-scroll-rail__grip::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Full 1px focus/hover/drag rectangle around the unchanged 4rem grab area. */
.site-scroll-rail__grip::after {
  content: '';
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 1px solid currentColor;
  opacity: 0;
  transition: opacity .14s ease;
  pointer-events: none;
}

.site-scroll-rail:is(:hover, .is-dragging) .site-scroll-rail__grip::after,
.site-scroll-rail__grip:is(:hover, :focus-visible)::after {
  opacity: 1;
}

.site-scroll-rail.is-dragging,
.site-scroll-rail.is-dragging .site-scroll-rail__grip { cursor: grabbing; }

/* The rectangle is part of ::after, not the browser focus outline.
   It therefore reappears after using the bottom scroll buttons. */
.site-scroll-rail__grip:focus-visible {
  outline: none;
}

/* Keep the existing full-screen site menu completely interactive. */
body.menu-open .site-scroll-rail,
body:has(.menu-bar.open) .site-scroll-rail { display: none !important; }

/* Tablet and mobile remain exactly as on the live site. */
@media (max-width: 1024px) {
  .site-scroll-rail { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .site-scroll-rail__grip::after { transition: none; }
}
