/* Sticky stack: header stays full height; ticker sits directly under it.
   Brand primary fills full viewport width so constrained header content
   does not leave white side gaps. */
.sct-header-stack {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  max-width: none;
  margin: 0;
  background-color: #091057; /* theme Primary */
  box-sizing: border-box;
}

.sct-header-stack > .wp-block-template-part,
.sct-header-stack > header,
.sct-header-stack .wp-block-template-part {
  width: 100%;
  max-width: none;
  background-color: transparent;
}

/* If the theme made the header itself sticky/fixed, neutralize so the stack owns stickiness */
.sct-header-stack .wp-block-template-part,
.sct-header-stack header,
.sct-header-stack .wp-block-group.has-background,
.sct-header-stack [class*="sticky"] {
  position: relative !important;
  top: auto !important;
}

.sct-weather-ticker {
  --sct-ticker-bg: #0b3a4a;
  --sct-ticker-fg: #f7f4ef;
  --sct-ticker-muted: rgba(247, 244, 239, 0.72);
  --sct-ticker-accent: #d4a574;
  position: relative;
  display: block;
  width: 100%;
  clear: both;
  flex-shrink: 0;
  background: var(--sct-ticker-bg);
  color: var(--sct-ticker-fg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1.2;
  z-index: 1;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transform: none;
}

.sct-weather-ticker__viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.sct-weather-ticker__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  white-space: nowrap;
  padding: 0.55rem 0;
  will-change: transform;
}

.sct-weather-ticker__track.is-ready {
  animation: sct-ticker-scroll 80s linear infinite;
}

.sct-weather-ticker__track:hover {
  animation-play-state: paused;
}

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

.sct-weather-ticker__loading {
  display: inline-block;
  padding: 0 1rem;
  color: var(--sct-ticker-muted);
}

.sct-weather-ticker__group {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1.25rem;
}

.sct-weather-ticker__region {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sct-ticker-accent);
  font-weight: 600;
  margin-right: 0.35rem;
}

.sct-weather-ticker__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0 0.15rem;
}

.sct-weather-ticker__item + .sct-weather-ticker__item::before,
.sct-weather-ticker__group + .sct-weather-ticker__group::before {
  content: "•";
  color: var(--sct-ticker-muted);
  margin-right: 0.85rem;
}

.sct-weather-ticker__group + .sct-weather-ticker__group::before {
  margin-right: 1.25rem;
}

.sct-weather-ticker__city {
  font-weight: 600;
}

.sct-weather-ticker__meta {
  color: var(--sct-ticker-muted);
  font-variant-numeric: tabular-nums;
}

.sct-weather-ticker__temp {
  color: var(--sct-ticker-fg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 781px) {
  .sct-weather-ticker {
    font-size: 12px;
  }

  .sct-weather-ticker__track.is-ready {
    animation-duration: 95s;
  }

  .sct-weather-ticker__group {
    padding: 0 0.9rem;
    gap: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sct-weather-ticker__track.is-ready {
    animation: none;
    transform: none;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .sct-weather-ticker__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
}
