/* Full-bleed info ticker under header */
.info-ticker {
  --info-ticker-bg: linear-gradient(90deg, #e8f2fa 0%, #e4f0f8 45%, #e8f2fa 100%);
  --info-ticker-fg: #3b6fd9;
  position: relative;
  z-index: 40;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--info-ticker-bg);
  border-top: 1px solid rgba(90, 130, 160, 0.12);
  border-bottom: 1px solid rgba(90, 130, 160, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

html.info-ticker-dismissed .info-ticker,
.info-ticker.is-hidden {
  display: none !important;
}

/* Compact restore control when ticker is hidden — dots only, no layout gap */
.info-ticker-restore {
  display: none;
  width: auto;
  margin: 0 auto;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #3b6fd9;
  font: 700 12px/1 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.28em;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  line-height: 1;
}

html.info-ticker-dismissed .info-ticker-restore {
  display: block;
  width: 100%;
  height: 0;
  margin: 3px 0 0;
  padding: 0;
  overflow: visible;
  line-height: 0;
  font-size: 0;
  color: transparent;
  position: relative;
  z-index: 5;
}

html.info-ticker-dismissed .info-ticker-restore::before {
  content: "····";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  font: 700 12px/1 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.28em;
  color: #c0c4cc;
  pointer-events: none;
}

html.info-ticker-dismissed .info-ticker-restore::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 18px;
}

html.info-ticker-dismissed .info-ticker-restore:hover::before {
  color: #9aa0a8;
}

.info-ticker-restore:hover {
  color: #9aa0a8;
  background: transparent;
}

.info-ticker-restore:focus-visible {
  outline: 2px solid rgba(59, 111, 217, 0.4);
  outline-offset: 2px;
  border-radius: 6px;
}


.info-ticker__viewport {
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  padding-right: 36px;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 92%, transparent);
}

.info-ticker__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  gap: 0;
  padding: 9px 0;
  animation: info-ticker-scroll 42s linear infinite;
  will-change: transform;
}

.info-ticker:hover .info-ticker__track {
  animation-play-state: paused;
}

.info-ticker__group {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  font: 700 13px/1.35 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.01em;
  color: var(--info-ticker-fg);
  text-shadow: none;
}

.info-ticker__item {
  display: inline-flex;
  align-items: center;
  padding: 0 1.25rem;
}

.info-ticker__sep {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0.15rem;
  border-radius: 50%;
  background: rgba(59, 111, 217, 0.35);
  flex: 0 0 auto;
}

.info-ticker__close {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--info-ticker-fg);
  font: 700 16px/1 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.15s ease, color 0.15s ease;
}

.info-ticker__close:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #2f5fc4;
}

.info-ticker__close:focus-visible {
  outline: 2px solid rgba(59, 111, 217, 0.45);
  outline-offset: 1px;
}

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

@media (prefers-reduced-motion: reduce) {
  .info-ticker__track {
    animation: none;
    justify-content: center;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .info-ticker__group:nth-child(n + 2) {
    display: none;
  }

  .info-ticker__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@media (max-width: 640px) {
  .info-ticker__group {
    font-size: 12px;
  }

  .info-ticker__track {
    padding: 8px 0;
    animation-duration: 36s;
  }

  .info-ticker__close {
    right: 4px;
    width: 24px;
    height: 24px;
  }
}
