/* ============================================================================
   core_city_marquee — reusable horizontal auto-scrolling text marquee
   (e.g. the running list of office cities under "We leave no patient behind").
   CSP-strict: external stylesheet only, no inline styles.

   Markup (list the items ONCE — core_city_marquee.js clones them for the loop):
     <div class="core-citymarquee" data-core-citymarquee>
       <div class="core-citymarquee__track">
         <div class="core-citymarquee__inner">
           <span class="core-citymarquee__item">CAMBRIDGE</span>
           <span class="core-citymarquee__sep" aria-hidden="true"></span>
           <span class="core-citymarquee__item">MIAMI</span>
           <span class="core-citymarquee__sep" aria-hidden="true"></span>
           ...
         </div>
       </div>
     </div>

   Per-instance tuning without inline styles — set a CSS variable via a class:
     --citymarquee-duration  (default 24s)  scroll speed
     --citymarquee-gap       (default 1.5rem) spacing between items
   ========================================================================== */

.core-citymarquee {
  padding: 1rem 0;
  border-top: 1px solid rgba(20, 20, 28, 0.08);
  border-bottom: 1px solid rgba(20, 20, 28, 0.08);
  overflow: hidden;
}

.core-citymarquee__track {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.core-citymarquee__inner {
  display: flex;
  align-items: center;
  gap: var(--citymarquee-gap, 1.5rem);
  white-space: nowrap;
  width: max-content;
  animation: coreCityMarqueeScroll var(--citymarquee-duration, 24s) linear infinite;
}

.core-citymarquee__item {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(20, 20, 28, 0.85);
  flex-shrink: 0;
}

.core-citymarquee__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.4;
  flex-shrink: 0;
}

/* Pause on hover so visitors can read a city */
.core-citymarquee__track:hover .core-citymarquee__inner {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .core-citymarquee__inner { animation: none; }
}

@keyframes coreCityMarqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
