/* Announcement banner promoting the new site design on the legacy homepage. */

:root {
    --banner-h: 0px;
}

.new-design-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    padding: 10px 20px;
    background: linear-gradient(90deg, #2f9163, #257a53);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.new-design-banner.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.new-design-banner__text {
    font-weight: 400;
}

.new-design-banner__cta {
    display: inline-block;
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 999px;
    background: #fff;
    color: #1f6b47;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.new-design-banner__cta:hover,
.new-design-banner__cta:focus {
    background: #eafff2;
    color: #14513a;
}

/* Pushes the existing fixed top-bar (and its .break spacer) down by the
   banner's live-measured height; JS keeps --banner-h in sync and drops it
   to 0 once the banner hides on scroll, so both animate back up together. */
.top-bar {
    top: var(--banner-h);
    transition: top 0.35s ease;
}

.break {
    margin-top: var(--banner-h);
    transition: margin-top 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
    .new-design-banner,
    .top-bar,
    .break {
        transition: none;
    }
}

@media screen and (max-width: 560px) {
    .new-design-banner {
        padding: 8px 14px;
        font-size: 13px;
    }

    .new-design-banner__cta {
        padding: 5px 13px;
    }
}
