/* Root warehouse trial only. Layers on the live night beacon.
   Does not restyle the portal, and does not add a second pulse.
   Motion itself is in root-viz-trial.js (transform + opacity, one shot).
   prefers-reduced-motion keeps the same emphasis as a static hairline. */

#root-viz-next {
  margin: 0 2px 12px;
  padding: 8px 12px;
  max-width: 100%;
  border-left: 1px solid rgba(245, 158, 11, 0.55);
  color: var(--text, #f8fafc);
  font-family: var(--ui, system-ui, sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

#hero-title .accent {
  --viz-line: 0;
}

#hero-title .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  height: 1px;
  background: rgba(245, 158, 11, 0.62);
  transform: scaleX(var(--viz-line, 0));
  transform-origin: left center;
  pointer-events: none;
}

/* One owner for the entrance. The live rise-in stays unless this class is set. */
html.root-viz-motion .hero-copy,
html.root-viz-motion #tonight .door-card {
  animation: none;
}

html.root-viz-motion .door-card:focus-visible,
html.root-viz-motion .portal:focus-visible,
html.root-viz-motion .station-card:focus-visible {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 720px) {
  #root-viz-next {
    margin-bottom: 8px;
    padding: 6px 8px 6px 10px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero-title .accent { --viz-line: 1; }

  #root-viz-next {
    background: rgba(245, 158, 11, 0.06);
    border-left-color: rgba(251, 191, 36, 0.85);
  }

  #doors .portal-student h3 {
    padding-bottom: 4px;
    box-shadow: inset 0 -1px 0 rgba(245, 158, 11, 0.55);
  }

  #academic-station .station-card {
    box-shadow: inset 0 1px 0 rgba(245, 158, 11, 0.4);
  }
}

html.root-viz-reduce #hero-title .accent { --viz-line: 1; }

html.root-viz-reduce #root-viz-next {
  background: rgba(245, 158, 11, 0.06);
  border-left-color: rgba(251, 191, 36, 0.85);
}

html.root-viz-reduce #doors .portal-student h3 {
  padding-bottom: 4px;
  box-shadow: inset 0 -1px 0 rgba(245, 158, 11, 0.55);
}

html.root-viz-reduce #academic-station .station-card {
  box-shadow: inset 0 1px 0 rgba(245, 158, 11, 0.4);
}
