/* SMI Ticker: a CSS-only marquee. Paused on hover/focus or with the pause button;
   prefers-reduced-motion turns it into a static wrapped list. */
.smi-ticker {
  --smi-ticker-bg: #15171c;
  --smi-ticker-fg: #e6e7ea;
  --smi-ticker-accent: #c62828;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  background: var(--smi-ticker-bg);
  color: var(--smi-ticker-fg);
  font: 500 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow: hidden;
  position: relative;
  z-index: 50;
}
.smi-ticker *, .smi-ticker *::before, .smi-ticker *::after { box-sizing: border-box; }
.smi-ticker__label {
  flex: none;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--smi-ticker-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.smi-ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}
.smi-ticker__track {
  display: inline-flex;
  white-space: nowrap;
  animation: smi-ticker-scroll var(--smi-ticker-duration, 60s) linear infinite;
}
.smi-ticker:hover .smi-ticker__track,
.smi-ticker:focus-within .smi-ticker__track,
.smi-ticker.is-paused .smi-ticker__track { animation-play-state: paused; }
.smi-ticker__run {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.smi-ticker__item { margin: 0; padding: 0 14px 0 0; }
.smi-ticker__item + .smi-ticker__item::before { content: "•"; margin-right: 14px; opacity: .5; }
.smi-ticker__item a { color: inherit; text-decoration: none; }
.smi-ticker__item a:hover { text-decoration: underline; }
.smi-ticker__item a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.smi-ticker__source { font-weight: 700; }
.smi-ticker__item.is-urgent { font-weight: 700; }
.smi-ticker__urgent {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--smi-ticker-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.smi-ticker__toggle {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
}
.smi-ticker__toggle:hover, .smi-ticker__toggle:focus-visible { opacity: 1; }
@keyframes smi-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Fallback (theme without wp_body_open): pinned to the top of the window. */
.smi-ticker--fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 99990; }
body.admin-bar .smi-ticker--fixed { top: 32px; }
@media (max-width: 782px) { body.admin-bar .smi-ticker--fixed { top: 46px; } }

@media (max-width: 600px) {
  .smi-ticker { font-size: 13px; padding: 0 8px; gap: 8px; }
  .smi-ticker__label { font-size: 10px; padding: 2px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .smi-ticker { align-items: flex-start; padding-top: 6px; padding-bottom: 6px; }
  .smi-ticker__viewport { -webkit-mask-image: none; mask-image: none; }
  .smi-ticker__track { animation: none; display: block; white-space: normal; }
  .smi-ticker__run { flex-wrap: wrap; row-gap: 4px; }
  .smi-ticker__copy, .smi-ticker__toggle { display: none; }
}
