/* ============================================================
   PVRSC Redesign — consolidated stylesheet
   Loaded ONLY on pages using the PVRSC page templates.
   ============================================================ */

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.pvrsc-redesign { background: #0A0A0B; color: #F4F4F2; font-family: Switzer, system-ui, sans-serif; }

/* === TYPOGRAPHY ============================================ */
.font-display {
  font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-weight: 900;
  letter-spacing: -0.005em;
  line-height: 0.86;
  text-transform: uppercase;
}
.font-display-tight {
  font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
}
/* Lighter display face for content/item labels — pricing rows, calendar
   court names, contact info, flash banners. Keeps the Big Shoulders
   typeface so it still feels on-brand, but drops the weight from 900 to
   500 and removes the always-uppercase. The intent: reserve the heavy
   900-weight all-caps `.font-display` for actual section titles. */
.font-display-md {
  font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 0.95;
}
.num {
  font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: Switzer, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}
.micro {
  font-family: Switzer, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
}

::selection { background: #22C55E; color: #0A0A0B; }

/* === LINKS / DECOR ========================================== */
.vlink {
  background-image: linear-gradient(#22C55E, #22C55E);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .4s;
  padding-bottom: 3px;
}
.vlink:hover { background-size: 100% 2px; }

.ulink {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
}

/* === LIVE PULSE ============================================ */
.live-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #FF4D2E;
  box-shadow: 0 0 0 0 rgba(255,77,46,0.65);
  animation: pulse 1.6s infinite;
  display: inline-block;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,77,46,0.65); }
  70%  { box-shadow: 0 0 0 10px rgba(255,77,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,46,0); }
}

/* State variants set by JS via data-state */
.live-dot[data-state="open"] {
  background: #28A745;
  box-shadow: 0 0 0 0 rgba(40,167,69,0.55);
  animation: pulse-open 2s infinite;
}
@keyframes pulse-open {
  0%   { box-shadow: 0 0 0 0 rgba(40,167,69,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(40,167,69,0); }
  100% { box-shadow: 0 0 0 0 rgba(40,167,69,0); }
}
.live-dot[data-state="closed"] {
  background: #E53935;
  box-shadow: 0 0 0 1px rgba(229,57,53,0.3);
  animation: none;
}
.live-dot[data-state="idle"] {
  background: #A8A8B0;
  box-shadow: none;
  animation: none;
}

/* === MARQUEE ================================================ */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { animation: marquee 40s linear infinite; will-change: transform; }

/* === GRAIN OVERLAY ========================================== */
.grain { position: relative; }
.grain::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
}

/* === REVEAL ON SCROLL ======================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-d="1"] { transition-delay: .06s; }
.reveal[data-d="2"] { transition-delay: .12s; }
.reveal[data-d="3"] { transition-delay: .18s; }
.reveal[data-d="4"] { transition-delay: .24s; }
.reveal[data-d="5"] { transition-delay: .30s; }

/* === HERO PHOTO TREATMENT ===================================
   Photo is BUSY (banners + players + sponsors + crowd) so to keep
   the hero type bulletproof:
     1. Slight desaturate + darken the photo (filter)
     2. Heavy dark overlay on the left where text lives
     3. Gold halo on the right where action is — accent pops there
     4. Bottom fade so marquee transition is clean
   ============================================================ */
.hero-photo {
  background-size: cover;
  background-position: center;
  filter: contrast(1.05) saturate(0.6) brightness(0.82);
}
.hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background:
    /* Layer 1: gold halo over the jump-ball (broadcast colour-wash) */
    radial-gradient(ellipse 60% 55% at 70% 40%, rgba(34,197,94,0.40), transparent 70%),
    /* Layer 2: vignette — darken edges/corners, focus the centre on the action */
    radial-gradient(ellipse 60% 75% at 65% 45%, transparent 0%, transparent 22%, rgba(10,10,11,0.96) 95%),
    /* Layer 3: text-side darkening — keeps the headline near-solid black */
    linear-gradient(90deg,
      rgba(10,10,11,0.99) 0%,
      rgba(10,10,11,0.95) 30%,
      rgba(10,10,11,0.70) 60%,
      rgba(10,10,11,0.35) 100%),
    /* Layer 4: bottom fade into the marquee strip */
    linear-gradient(180deg, transparent 45%, rgba(10,10,11,0.92) 100%);
}

.outline-volt {
  -webkit-text-stroke: 1px #22C55E;
  color: transparent;
}

/* === CARDS ================================================== */
.card-dark {
  background: linear-gradient(180deg, #15151A 0%, #1F1F26 100%);
  border: 1px solid rgba(255,255,255,0.06);
  color: #F4F4F2;  /* off-white by default so children inherit when card sits in a bg-off section */
}
.card-hover { transition: transform .5s cubic-bezier(.2,.6,.2,1), border-color .3s, background .3s; }
.card-hover:hover { transform: translateY(-4px); border-color: rgba(34,197,94,0.45); }
.card-hover:hover .arrow { transform: translate(4px, -4px); }
.arrow { transition: transform .4s cubic-bezier(.2,.6,.2,1); display: inline-block; }

/* === SPORT-CODED PLACEHOLDER GRADIENTS ===================== */
.ph { position: relative; overflow: hidden; }
.ph-basketball { background: radial-gradient(circle at 30% 30%, #FF6B35 0%, #6B1A05 100%); }
.ph-netball    { background: radial-gradient(circle at 70% 30%, #FF2E63 0%, #5C0E26 100%); }
.ph-volleyball { background: radial-gradient(circle at 30% 70%, #00D9E6 0%, #053E47 100%); }
.ph-futsal     { background: radial-gradient(circle at 70% 70%, #D5FF3F 0%, #3A4A0A 100%); }
.ph-pickleball { background: radial-gradient(circle at 50% 30%, #FFD23F 0%, #5A4407 100%); }
.ph-taekwondo  { background: radial-gradient(circle at 30% 50%, #FF1F4B 0%, #3D0712 100%); }
.ph-boccia     { background: radial-gradient(circle at 70% 30%, #B967FF 0%, #2D1054 100%); }
.ph-fitness    { background: radial-gradient(circle at 50% 50%, #FF7A1F 0%, #5C2106 100%); }
.ph-badminton  { background: radial-gradient(circle at 50% 70%, #FBBF24 0%, #5A3A0A 100%); }
.ph-rollerderby{ background: radial-gradient(circle at 50% 30%, #E11D48 0%, #4C0519 100%); }
.ph-artistic   { background: radial-gradient(circle at 30% 50%, #C084FC 0%, #3B0764 100%); }
.ph-skating    { background: radial-gradient(circle at 70% 50%, #0EA5E9 0%, #082F49 100%); }
.ph-indoornb   { background: radial-gradient(circle at 30% 70%, #FF4D8F 0%, #5C0E2A 100%); }

/* === PROGRESS BAR =========================================== */
.bar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: #22C55E; }
.bar-fire > span { background: #FF4D2E; }

/* === BUTTON ================================================= */
.btn-volt { transition: transform .25s, box-shadow .25s; }
.btn-volt:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(34,197,94,0.5); }

/* === SCHEDULE ROW HOVER ===================================== */
.sch-row { transition: background .25s, padding-left .25s; }
.sch-row:hover { background: rgba(34,197,94,0.05); padding-left: 1.5rem; }

/* === MOBILE STICKY CTA ====================================== */
.sticky-cta { padding-bottom: env(safe-area-inset-bottom); }

/* === Avada override safety net ============================= */
body.pvrsc-redesign .fusion-builder-container,
body.pvrsc-redesign .fusion-row,
body.pvrsc-redesign .fusion-column-wrapper { all: revert; }


/* ============================================================
   PVRSC DAY CALENDAR — custom daily availability view.
   Light card on a dark page. Mobile: horizontal-scroll.
   ============================================================ */
#pvrscDayCal {
  background: #FFFFFF;
  color: #0A0A0B;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 22px;
  padding: 18px 18px 24px;
  font-family: Switzer, system-ui, sans-serif;
  position: relative;
}

/* Loading indicator — a clearly visible volt-green spinner centred over
   the grid, plus a light dim on the data behind it so the spinner reads
   crisply. Slight dim (not the full half-opacity blackout we used to
   have) keeps the previous day's data legible — it's a "refresh"
   indicator, not a "load from scratch" curtain. Cached date navigation
   is silent + instant. */
#pvrscDayCal.is-loading .dc-scroll-wrap {
  opacity: 0.72;
  pointer-events: none;
  transition: opacity .15s;
}
#pvrscDayCal::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 36px; height: 36px;
  border: 3px solid rgba(34,197,94,0.18);
  border-top-color: #22C55E;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .1s;
  animation: dc-spin 0.7s linear infinite;
  z-index: 5;
}
#pvrscDayCal.is-loading::after { opacity: 1; }
@keyframes dc-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Toolbar */
.dc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.dc-date-main {
  font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-weight: 700; text-transform: uppercase;
  font-size: 26px; line-height: 1; letter-spacing: -0.01em;
  color: #0A0A0B;
}
.dc-date-sub {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: #6B6B73; margin-top: 4px;
}
.dc-special {
  display: inline-block;
  background: #E53935; color: #fff;
  padding: 2px 8px; border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 11px;
}
.dc-controls { display: flex; align-items: center; gap: 6px; }
.dc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  background: #0A0A0B; color: #22C55E;
  border: 0; border-radius: 10px;
  font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-weight: 600; font-size: 16px; cursor: pointer;
  letter-spacing: 0.02em;
  transition: background .2s, color .2s, transform .15s;
  padding: 0 12px;
}
.dc-btn.dc-today { font-size: 12px; padding: 0 14px; letter-spacing: 0.10em; }
.dc-btn:hover  { background: #22C55E; color: #0A0A0B; }
.dc-btn:active { transform: translateY(1px); }
.dc-pick {
  display: inline-flex; align-items: center;
  background: rgba(0,0,0,0.05); color: #0A0A0B;
  height: 36px; padding: 0 10px; border-radius: 10px;
  gap: 6px; cursor: pointer;
}
.dc-pick input {
  border: 0; background: transparent; outline: none;
  font-family: inherit; font-size: 13px; cursor: pointer;
  color: #0A0A0B;
  /* Hide the native chrome since we render our own icon */
  width: 110px;
}

/* Legend */
.dc-legend {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px;
  padding: 12px 0 16px;
  font-size: 11px; color: #6B6B73;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.dc-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; }
.dc-tip { margin-left: auto; color: #0A0A0B; font-weight: 600; }

/* Grid */
.dc-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -18px;
  padding: 0 18px 4px;
}
.dc-grid {
  position: relative;
  min-width: 720px;             /* horizontal scroll on mobile */
}

/* Hour axis — uses the same .dc-row grid as data rows so it aligns by
   construction. Hour markers absolutely positioned by % within the
   .dc-row-grid time-area, same maths as bookings + NOW line. */
.dc-row-hours { min-height: 28px; border-top: 0; }
.dc-row-hours .dc-row-label-empty { border-right: 1px solid rgba(0,0,0,0.08); }
.dc-row-grid-hours {
  background: transparent !important;
  cursor: default !important;
  position: relative;
}
.dc-row-grid-hours:hover { background: transparent !important; }
.dc-hour-marker {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  font-size: 11px;
  color: #6B6B73;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}
.dc-hour-marker:first-child { transform: none; left: 4px !important; }
.dc-hour-marker:last-child  { transform: translateX(-100%); }

/* Rows */
.dc-rows {
  display: flex;
  flex-direction: column;
  position: relative;
}
.dc-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  min-height: 56px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.dc-row:last-child { border-bottom: 1px solid rgba(0,0,0,0.06); }
.dc-row-label {
  display: flex; align-items: center;
  padding-right: 8px;
  font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-weight: 500; font-size: 16px; letter-spacing: 0.01em;
  color: #15151A; text-transform: uppercase;
  border-right: 1px solid rgba(0,0,0,0.08);
}
.dc-row-label.dc-room {
  font-size: 13px;
  letter-spacing: 0;
}
.dc-row-grid {
  position: relative;
  background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(0,0,0,0.025) 6px 12px);
  cursor: cell;
}
.dc-row-grid:hover {
  background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(34,197,94,0.10) 6px 12px);
}
.dc-gridline {
  position: absolute; top: 0; bottom: 0;
  width: 1px;
  background: rgba(0,0,0,0.06);
  pointer-events: none;
}

/* Staffed-hours overlay */
.dc-staffed {
  position: absolute; top: 0; bottom: 0;
  pointer-events: none;
}

/* Booking block */
.dc-booking {
  position: absolute;
  top: 6px; bottom: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 2px 8px -3px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.12);
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  z-index: 2;
}
.dc-booking:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -5px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.25);
}
.dc-booking-title {
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.dc-booking-time {
  font-weight: 500;
  font-size: 10px;
  opacity: 0.92;
  font-variant-numeric: tabular-nums;
}
.dc-half-a { top: 6px; bottom: 50%; }
.dc-half-b { top: 50%; bottom: 6px; }

/* Now line — position computed by JS in absolute pixels off .dc-grid */
.dc-now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #FF4D2E;
  pointer-events: none;
  z-index: 5;             /* above bookings (z-index 2) */
  box-shadow: 0 0 10px rgba(255,77,46,0.7);
  transform: translateX(-1px);  /* centre the 2px line on the exact moment */
}
.dc-now-label {
  position: absolute; top: -20px; left: 50%;
  transform: translateX(-50%);
  background: #FF4D2E; color: #fff;
  font-size: 9px; font-weight: 800;
  padding: 2px 6px; border-radius: 3px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(255,77,46,0.4);
}

/* Tooltip */
.dc-tooltip {
  position: fixed;
  transform: translate(-50%, -100%);
  background: #0A0A0B; color: #F4F4F2;
  border: 1px solid rgba(34,197,94,0.5);
  padding: 6px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 500;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 6px 20px -5px rgba(0,0,0,0.5);
}

/* Form flash on prefill */
.dc-flash {
  animation: dc-flash 1.2s ease-out;
}
@keyframes dc-flash {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
  20%  { box-shadow: 0 0 0 6px rgba(34,197,94,0.45); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .dc-date-main { font-size: 20px; }
  .dc-row-label { font-size: 13px; padding-left: 4px; }
  .dc-row       { grid-template-columns: 78px 1fr; min-height: 48px; }
  .dc-hours     { grid-template-columns: 78px 1fr; }
  .dc-booking-title { font-size: 11px; }
  .dc-booking-time  { font-size: 9px; }
}


/* ============================================================
   FULLCALENDAR SCHEDULER (Bookings page) — legacy, kept for ref — light card inside a
   dark page. Lifted from the legacy /bookings page + retuned for
   our type system.
   ============================================================ */
#pvrsc-cal-wrap { position: relative; font-family: Switzer, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

#cal-loading {
  display: none; position: absolute; inset: 0;
  background: rgba(255,255,255,0.72);
  z-index: 9000;
  align-items: center; justify-content: center;
  border-radius: 6px;
}
#cal-loading.active { display: flex; }
.cal-spinner {
  width: 38px; height: 38px;
  border: 3px solid #e0e7ef; border-top-color: #22C55E;
  border-radius: 50%;
  animation: cal-spin 0.7s linear infinite;
}
@keyframes cal-spin { to { transform: rotate(360deg); } }

#no-roster-banner {
  display: none; align-items: center; gap: 8px;
  background: #fff8e1; border-left: 4px solid #ffc107;
  padding: 9px 14px; font-size: 13px; color: #5d4037;
  border-radius: 0 6px 6px 0; margin-bottom: 10px;
}
#no-roster-banner.visible { display: flex; }

#cal-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 6px 2px 14px; font-size: 12px; color: #555;
}
.cl-item   { display: flex; align-items: center; gap: 5px; }
.cl-swatch { width: 13px; height: 13px; border-radius: 3px; flex-shrink: 0; opacity: 0.85; }

/* FullCalendar typography retune to match our system */
.fc .fc-toolbar-title { font-size: 20px !important; font-weight: 800 !important; color: #1a1a2e !important; letter-spacing: -0.005em; }
.fc-toolbar.special-day { background: #ffebee !important; }
.fc .fc-datagrid-cell-cushion { white-space: normal; word-break: break-word; }
.fc .fc-button {
  background: #0A0A0B !important; border-color: #0A0A0B !important;
  color: #22C55E !important; font-weight: 600 !important;
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px !important;
  padding: 6px 12px !important;
}
.fc .fc-button:hover  { background: #22C55E !important; border-color: #22C55E !important; color: #0A0A0B !important; }
.fc .fc-button:focus  { box-shadow: 0 0 0 3px rgba(34,197,94,0.35) !important; }

@media (max-width: 640px) {
  .fc .fc-toolbar { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
  .fc .fc-toolbar-title { width: 100%; text-align: center; font-size: 14px; order: -1; padding: 4px 0; }
  .fc .fc-toolbar-chunk  { display: flex; justify-content: center; }
  .fc .fc-button { padding: 5px 10px; font-size: 10px; }
  .fc .fc-datagrid-cell-cushion { padding: 3px 4px; font-size: 11px; }
  .fc .fc-timeline-event .fc-event-title { font-size: 11px; }
  #cal-legend { gap: 10px; font-size: 11px; }
}

/* ─────────────────────────────────────────────────────────────
   Results Ticker — broadcast-style score marquee
   ───────────────────────────────────────────────────────────── */
#resultsTicker .ticker-viewport {
  /* fade edges so items slide in/out instead of clipping hard */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
#resultsTicker[data-state="empty"] .ticker-viewport {
  -webkit-mask-image: none;
          mask-image: none;
}
#resultsTicker .ticker-track {
  animation: pvrsc-ticker-scroll 60s linear infinite;
  /* Duration is overridden in JS based on content width so speed feels
     consistent regardless of how many results are returned. */
}
#resultsTicker:hover .ticker-track,
#resultsTicker:focus-within .ticker-track {
  animation-play-state: paused;
}
#resultsTicker .ticker-sep {
  padding: 0 4px;
  font-size: 11px;
}
@keyframes pvrsc-ticker-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }   /* half because content is duplicated */
}

/* Honour reduced-motion: stop scrolling, fade dividers and let the
   strip sit static. Long content will simply clip — acceptable trade
   for users who explicitly opted out of motion. */
@media (prefers-reduced-motion: reduce) {
  #resultsTicker .ticker-track { animation: none !important; transform: none !important; }
}

/* ─────────────────────────────────────────────────────────────
   Back-to-top button — hidden until the user scrolls past ~one
   viewport, then fades + slides up. JS toggles .is-visible.
   ───────────────────────────────────────────────────────────── */
.back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:focus-visible {
  outline: 3px solid rgba(34,197,94,0.5);
  outline-offset: 2px;
}

/* ─────────────────────────────────────────────────────────────
   WP admin toolbar offset for the sticky nav.
   When a user is logged in, WordPress adds the `admin-bar` class to
   <body> and pins its 32px toolbar to top:0 (fixed). Our sticky nav
   also wants top:0, so without this they overlap. Public visitors
   don't have the class so this rule never affects them.

   On screens <783px WP's admin bar is `position: absolute` (scrolls
   away), so no offset needed there.
   ───────────────────────────────────────────────────────────── */
@media screen and (min-width: 783px) {
  body.admin-bar header.sticky.top-0 {
    top: 32px !important;
  }
}
