/* ── Floating ticker widget — shared across all pages ─────────────────────── */

.ticker-widget {
  position: fixed;
  left: 0;
  top: 75%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  align-items: stretch;
  width: 218px;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.45));
}

.ticker-widget[hidden] { display: none !important; }

.ticker-spine {
  width: 8px;
  background: #e85d2a;
  border-radius: 4px 0 0 4px;
  flex: none;
}

.ticker-body {
  flex: 1;
  background: linear-gradient(155deg, #1b3e3c 0%, #122b29 100%);
  border-radius: 0 14px 14px 0;
  padding: 11px 12px 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}

/* slide track */
.ticker-track {
  position: relative;
  height: 30px;
  overflow: hidden;
}

.ticker-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .38s ease, transform .38s ease;
  pointer-events: none;
}

.ticker-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ticker-check {
  color: #e85d2a;
  font-size: .78rem;
  flex: none;
  line-height: 1;
}

.ticker-text {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  line-height: 1.3;
  flex: 1;
}

.ticker-text em {
  font-style: normal;
  color: #7fc4d3;
}

.ticker-arrow {
  color: rgba(255,255,255,.45);
  font-size: .78rem;
  flex: none;
  transition: color .15s, transform .15s;
}

.ticker-slide:hover .ticker-arrow,
.ticker-slide:focus-visible .ticker-arrow {
  color: #e85d2a;
  transform: translateX(2px);
}

/* footer row */
.ticker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ticker-dots {
  display: flex;
  gap: 4px;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .2s;
}

.ticker-dot.active { background: #e85d2a; }

.ticker-close {
  background: none;
  border: 0;
  color: rgba(255,255,255,.38);
  font-size: .9rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 3px;
  transition: color .15s;
}

.ticker-close:hover { color: rgba(255,255,255,.75); }

/* focus styles */
.ticker-slide:focus-visible,
.ticker-dot:focus-visible,
.ticker-close:focus-visible {
  outline: 2px solid #e85d2a;
  outline-offset: 2px;
  border-radius: 3px;
}

/* collapsed edge tab */
.ticker-tab {
  position: fixed;
  left: 0;
  top: 75%;
  transform: translateY(-50%);
  z-index: 50;
  background: #e85d2a;
  color: #fff;
  border: 0;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  padding: 16px 7px;
  display: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.3));
  transition: background .15s;
}

.ticker-tab:hover { background: #cf4a1c; }

.ticker-tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* mobile — bottom-left corner, above mobile bar */
@media (max-width: 560px) {
  .ticker-widget {
    top: auto;
    bottom: 72px;
    left: 12px;
    transform: none;
    width: 196px;
  }
  .ticker-tab {
    top: auto;
    bottom: 72px;
    left: 0;
    transform: none;
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ticker-slide {
    transition: opacity .01s;
    transform: none !important;
  }
}
