/* ════════════════════════════════════════
   DWELLTRY, Shared right-side dot rail
   Extracted from home.css so muni main + subpages use the SAME
   rail markup, styles, and animations as the homepage.
   On non-home pages we set body.past-hero permanently
   (no slogan / "SCROLL" letters exist), so the collapsed
   pill state from the homepage is the default look.
════════════════════════════════════════ */

.hero-rail {
  position: fixed;
  right: 2.5rem;
  top: calc(50% + var(--nav-h) / 2);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  z-index: 95;
  max-height: calc(100vh - var(--nav-h) - 2rem);
  pointer-events: auto;
}
/* Wider hit area than the visible pill */
.hero-rail::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  right: -0.75rem;
  left: -2rem;
}

/* Backdrop, blurs and dims the page when the rail is hovered */
.rail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 23, 0.55);
  backdrop-filter: blur(8px) saturate(0.9);
  -webkit-backdrop-filter: blur(8px) saturate(0.9);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}
body.rail-expanded .rail-backdrop { opacity: 1; }

/* Expanded resting glow on every dot */
body.rail-expanded .hero-rail-dot {
  background: rgba(240,168,0,0.55);
  box-shadow: 0 0 8px rgba(240,168,0,0.45);
}
body.rail-expanded .hero-rail-dot.is-active {
  background: var(--gold);
  box-shadow: 0 0 16px rgba(240,168,0,0.95), 0 0 4px rgba(240,168,0,0.7);
}

/* Section labels, slide-in to the LEFT of each dot */
.hero-rail-dot-label {
  position: absolute;
  right: calc(100% + 1.15rem);
  top: 50%;
  transform: translate(10px, -50%);
  white-space: nowrap;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.2,0.7,0.2,1), font-size 0.22s ease, color 0.22s ease;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
body.rail-expanded .hero-rail-dot-label {
  opacity: 0.9;
  transform: translate(0, -50%);
  pointer-events: auto;
  cursor: pointer;
}
body.rail-expanded .hero-rail-dot.is-active .hero-rail-dot-label {
  color: var(--gold);
  opacity: 1;
}
.hero-rail-dot:hover .hero-rail-dot-label {
  color: var(--gold);
  opacity: 1;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  font-weight: 400;
}

/* PAST HERO, the default for non-home pages
   (we set body.past-hero permanently on muni pages) */
body.past-hero .hero-rail-text, body.past-hero .hero-rail-scroll { display: none; }
body.past-hero .hero-rail {
  top: 50%;
  right: 1.25rem;
}
body.past-hero .hero-rail-dots {
  gap: 1.5rem;
  padding: 1rem 0.35rem;
  background: rgba(15, 17, 23, 0.55);
  -webkit-backdrop-filter: blur(8px) saturate(0.9);
  backdrop-filter: blur(8px) saturate(0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 28px -10px rgba(0,0,0,0.55);
}
body.past-hero .hero-rail-dot {
  width: 13px;
  height: 13px;
  animation: none;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 6px rgba(0,0,0,0.45);
}
body.past-hero .hero-rail-dot.is-active, body.past-hero .hero-rail-dot:hover {
  background: var(--gold);
  box-shadow:
    0 0 16px rgba(240,168,0,0.95), 0 0 6px rgba(240,168,0,0.65);
}
body.past-hero .hero-rail-dot.is-active::after { display: none; }

/* Dot column */
.hero-rail-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}
.hero-rail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(240, 168, 0, 0.22);
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, width 0.3s ease, height 0.3s ease;
}
.hero-rail-dot:hover {
  transform: scale(1.6);
  background: var(--gold);
  box-shadow:
    0 0 16px rgba(240,168,0,0.95), 0 0 6px rgba(240,168,0,0.75);
}
.hero-rail-dot.is-active::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(240,168,0,0.55);
  pointer-events: none;
}

@media (max-width: 960px) {
  .hero-rail { display: none; }
}
