/* AnnouncementBar — slim, elegant, dismissible top strip (admin-toggled via
   config/dynalink.php). Sits above the page chrome on every view. */

.announcement-bar {
    position: relative;
    background-color: var(--primary-color-darkened);
    color: #eafff2;
    overflow: hidden;
    transition: height 0.25s ease, opacity 0.25s ease;
}

.announcement-bar__inner {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    min-height: 42px;
    padding: 0.5rem 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-align: center;
}

.announcement-bar__dot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background-color: var(--secondary-color);
}

.announcement-bar__text {
    margin: 0;
    color: #eafff2;
    font-family: var(--body-font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.announcement-bar__link {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.announcement-bar__link:hover {
    color: #ffffff;
}

.announcement-bar__close {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: #9fd9b6;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.announcement-bar__close:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.announcement-bar__close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color-darkened), 0 0 0 4px var(--secondary-color);
}

.announcement-bar__close svg {
    width: 16px;
    height: 16px;
}

/* Collapse on dismiss (JS sets an explicit pixel height first, then this). */
.announcement-bar.is-dismissing {
    height: 0 !important;
    opacity: 0;
}

/* Phone: a readable notice with a separate, reachable dismiss control. */
@media (max-width: 599px) {
  .announcement-bar__inner {
    justify-content: flex-start;
    min-height: 0;
    padding-top: 0.875rem;
    padding-right: 3.5rem;
    padding-bottom: 0.875rem;
    padding-left: 1rem;
    text-align: left;
  }
}

@media (max-width: 599px) {
  .announcement-bar__dot {
    display: none;
  }
}

@media (max-width: 599px) {
  .announcement-bar__text {
    font-size: 14px;
    line-height: 1.45;
    letter-spacing: normal;
  }
}

@media (max-width: 599px) {
  .announcement-bar__link {
    display: table;
    margin-top: 0.375rem;
    white-space: normal;
  }
}

@media (max-width: 599px) {
  .announcement-bar__close {
    top: 0.5rem;
    right: 0.375rem;
    width: 44px;
    height: 44px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-bar {
    transition: none;
  }
}
