/* Site-wide notice bar (site-gaps 20). A self-contained surface: the band
   colour and its readable foreground arrive as inline custom properties, so a
   dark-mode toggle never changes it. Normal flow, not sticky: the nav stays
   the sticky element. */
.ck-notice-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem var(--spacing-md, 1rem);
  background: var(--ck-notice-bg, #3498db);
  color: var(--ck-notice-fg, #212529);
}

.ck-notice-bar[hidden] {
  display: none;
}

.ck-notice-bar__message {
  margin: 0;
  flex: 1 1 auto;
  text-align: center;
  overflow-wrap: anywhere;
}

.ck-notice-bar__message a {
  color: inherit;
  text-decoration: underline;
}

.ck-notice-bar__dismiss {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.ck-notice-bar__dismiss:focus-visible,
.ck-notice-bar__message a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}

/* The fixed accessibility toggle sits top-right on desktop: keep the message
   and the dismiss button clear of it. */
@media (min-width: 992px) {
  .ck-notice-bar {
    padding-inline-end: 4rem;
  }
}
