/* ==========================================================================
   Section: announcement-bar  →  assets/section-announcement-bar.css
   Figma 1164-2322: 32px #080808 strip above the header, messages centred, 20px apart.
   It sits in the page flow, so it scrolls away and the sticky header takes its place.
   ========================================================================== */
:root {
  --announcement-height: 32px; /* lives here so removing the section also removes the offset */
}

.announcement-bar {
  background: var(--color-surface-primary);
  color: var(--color-text-inverse);
}

.announcement-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: var(--announcement-height);
  padding-left: calc(var(--page-gutter) + 1px); /* Figma centres the row on 720.5, which also keeps the separators on whole pixels */
}

.announcement-bar__inner .icon-bar {
  color: var(--color-icon-secondary);
}

.announcement-bar__item {
  width: var(--width-whole-px);
  font-size: var(--text-label-s-size);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.announcement-bar__link {
  text-underline-offset: 2px;
}

.announcement-bar__link:hover {
  text-decoration-line: underline;
}

/* The three messages need 503px; the Figma file has no mobile bar, so phones get the first one */
@media (max-width: 749px) {
  .announcement-bar__inner > :not(:first-child) {
    display: none;
  }
}
