/* A narrow travelling highlight on the blue surfaces. The content never changes colour. */
@property --vv-edge-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 24deg;
}

.vv-rgb-anchor { position: relative; }

.vv-rgb-rail {
  display: block;
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #258baf75 22%, #2884b979 78%, transparent);
}

.vv-rgb-rail::after {
  content: "";
  position: absolute;
  inset: 0 -100% 0 0;
  background: linear-gradient(90deg, transparent 8%, #80f3b9 17%, #64f8f4 24%, #63b4ff 33%, #ae96ff 40%, #fa8fc8 45%, transparent 57%);
  background-size: 50% 100%;
  opacity: .86;
  animation: vv-rail-travel 10s linear infinite;
}

.vv-rgb-rail.vv-rgb-page-edge {
  top: 0;
  bottom: auto;
  z-index: 8;
}

/* Where there is a dedicated navigation rail it replaces the generic page edge. */
body:has(.vv-rgb-rail:not(.vv-rgb-page-edge)) > .vv-rgb-page-edge { display: none; }

@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
  .vv-rgb-frame::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    padding: var(--vv-frame-weight, 1.5px);
    border-radius: inherit;
    box-sizing: border-box;
    pointer-events: none;
    background: conic-gradient(from var(--vv-edge-angle), transparent 0deg 180deg, #76f5bf 212deg, #66f5ff 238deg, #7ca7ff 257deg, #c797ff 277deg, #fc97bf 289deg, transparent 326deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: var(--vv-frame-opacity, .88);
    animation: vv-border-lap var(--vv-frame-period, 16s) linear infinite;
  }
}

@keyframes vv-border-lap { to { --vv-edge-angle: 384deg; } }
@keyframes vv-rail-travel {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.courses-plan.vv-rgb-frame { position: relative; }
.courses-orbit-one { --vv-frame-weight: 2px; --vv-frame-period: 20s; }
.cover-clients { --vv-frame-opacity: .67; }
.cover-still .vv-rgb-rail::after, .cover-still .vv-rgb-frame::after { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .vv-rgb-rail::after, .vv-rgb-frame::after {
    animation: none;
  }
}

@media print, (forced-colors: active) {
  .vv-rgb-rail, .vv-rgb-frame::after { display: none !important; }
}
