/* Shared ticker: every selector is scoped to avoid changing portal layouts. */
.news-ticker {
  --ticker-bg: #eef4ff;
  --ticker-ink: #263e65;
  --ticker-border: #ccd9ef;
  --ticker-accent: #245ac7;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  padding: 10px 14px;
  margin: 0 0 24px;
  border: 1px solid var(--ticker-border);
  border-radius: 12px;
  background: var(--ticker-bg);
  color: var(--ticker-ink);
  font: inherit;
  font-size: .9rem;
  line-height: 1.5;
}
.news-ticker[hidden], .news-ticker [hidden] { display: none !important; }
[data-bs-theme="dark"] .news-ticker, [data-theme="dark"] .news-ticker {
  --ticker-bg: #16263e;
  --ticker-ink: #e2eafa;
  --ticker-border: #354c70;
  --ticker-accent: #a8c5ff;
}
.news-ticker__label { flex: 0 0 auto; font-weight: 750; color: var(--ticker-accent); }
.news-ticker__viewport { flex: 1; min-width: 0; overflow: hidden; }
.news-ticker__track { display: flex; width: 100%; }
.news-ticker__group { display: flex; align-items: center; flex: 0 0 auto; min-width: 100%; box-sizing: border-box; }
.news-ticker__item { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; white-space: nowrap; padding-right: 56px; }
.news-ticker__kind { padding: 2px 8px; border-radius: 6px; font-size: .76rem; font-weight: 750; background: #dce8ff; color: #234c99; }
.news-ticker__kind--maintenance { background: #ffebc7; color: #795100; }
.news-ticker__kind--incident { background: #ffe0e0; color: #9a2727; }
[data-bs-theme="dark"] .news-ticker__kind, [data-theme="dark"] .news-ticker__kind { background: #283f66; color: #d3e2ff; }
[data-bs-theme="dark"] .news-ticker__kind--maintenance, [data-theme="dark"] .news-ticker__kind--maintenance { background: #4d3d22; color: #ffdfa0; }
[data-bs-theme="dark"] .news-ticker__kind--incident, [data-theme="dark"] .news-ticker__kind--incident { background: #512e39; color: #ffc8cf; }
.news-ticker__title { font-weight: 700; }
.news-ticker__text { white-space: nowrap; }
.news-ticker__pause { flex: 0 0 auto; min-height: 36px; padding: 5px 10px; border: 1px solid var(--ticker-border); border-radius: 8px; background: transparent; color: var(--ticker-ink); font: inherit; font-size: .8rem; font-weight: 650; cursor: pointer; }
.news-ticker__pause:hover { background: color-mix(in srgb, var(--ticker-accent) 10%, transparent); }
.news-ticker__pause:focus-visible { outline: 3px solid var(--ticker-accent); outline-offset: 3px; }
.news-ticker__accessible { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.news-ticker--static { align-items: flex-start; }
.news-ticker--static .news-ticker__track { display: block; transform: none !important; }
.news-ticker--static .news-ticker__group { display: block; min-width: 0; }
.news-ticker--static .news-ticker__duplicate { display: none; }
.news-ticker--static .news-ticker__item { display: block; padding: 4px 0; white-space: normal; overflow-wrap: anywhere; }
.news-ticker--static .news-ticker__kind { display: inline-block; margin-right: 8px; }
.news-ticker--static .news-ticker__title { margin-right: 8px; }
.news-ticker--static .news-ticker__text { white-space: pre-line; }
@media (max-width: 480px) {
  .news-ticker { gap: 8px; padding: 10px; font-size: .85rem; border-radius: 10px; }
  .news-ticker__label { font-size: .78rem; }
  .news-ticker__pause { padding: 5px 7px; }
  .news-ticker--static { flex-wrap: wrap; }
  .news-ticker--static .news-ticker__viewport { flex-basis: calc(100% - 100px); }
}
@media (prefers-reduced-motion: reduce), print {
  .news-ticker { align-items: flex-start; }
  .news-ticker__track { display: block; transform: none !important; }
  .news-ticker__group { display: block; }
  .news-ticker__duplicate, .news-ticker__pause { display: none !important; }
  .news-ticker__item { display: block; padding: 4px 0; white-space: normal; overflow-wrap: anywhere; }
  .news-ticker__kind, .news-ticker__title { margin-right: 8px; }
  .news-ticker__text { white-space: pre-line; }
}
