/* Compact announcement bar above the main navigation */
.notification-bar {
    position: relative;
    z-index: 1030;
    min-height: 48px;
    background: linear-gradient(100deg, #af955f 0%, #c4a76d 54%, #b69b63 100%);
    color: var(--sc-ink, #17221c);
    border-bottom: 1px solid rgba(23, 34, 28, .13);
}

.notification-bar.is-hidden {
    display: none !important;
}

.sc-notice-shell {
    position: relative;
    width: 100%;
    max-width: 1540px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: .38rem 5.5rem;
}

.sc-notice-content {
    min-width: 0;
    width: 100%;
    text-align: center;
}

.notification-item {
    display: none;
}

.notification-item.active {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: .45rem .75rem;
    font-size: .86rem;
    line-height: 1.35;
}

.sc-notice-title {
    flex: 0 0 auto;
    font-weight: 810;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.sc-notice-separator {
    flex: 0 0 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(23, 34, 28, .45);
}

.sc-notice-text {
    min-width: 0;
    color: rgba(23, 34, 28, .86);
    font-weight: 560;
}

.sc-notice-text p {
    display: inline;
    margin: 0;
    hyphens: none;
    text-wrap: pretty;
}

.sc-notice-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    padding: .3rem .62rem;
    border: 1px solid rgba(23, 34, 28, .24);
    border-radius: 999px;
    background: rgba(255, 253, 248, .28);
    color: var(--sc-ink, #17221c);
    font-size: .78rem;
    font-weight: 790;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .18s ease, border-color .18s ease;
}

.sc-notice-link:hover {
    border-color: rgba(23, 34, 28, .46);
    background: rgba(255, 253, 248, .55);
    color: var(--sc-ink, #17221c);
}

.sc-notice-code {
    flex: 0 0 auto;
    padding: .28rem .55rem;
    border-radius: 7px;
    background: rgba(23, 34, 28, .11);
    font-size: .76rem;
    font-weight: 820;
    letter-spacing: .05em;
    white-space: nowrap;
}

.sc-notice-controls {
    position: absolute;
    left: clamp(1rem, 2.4vw, 2.4rem);
    top: 50%;
    display: flex;
    gap: .28rem;
    transform: translateY(-50%);
}

.sc-notice-controls.is-empty {
    display: none;
}

.sc-notice-control,
.sc-notice-close {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(23, 34, 28, .15);
    border-radius: 50%;
    background: rgba(255, 253, 248, .2);
    color: var(--sc-ink, #17221c);
    font: inherit;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}

.sc-notice-control {
    font-size: .68rem;
}

.sc-notice-close {
    position: absolute;
    right: clamp(1rem, 2.4vw, 2.4rem);
    top: 50%;
    font-size: 1.25rem;
    line-height: 1;
    transform: translateY(-50%);
}

.sc-notice-control:hover,
.sc-notice-close:hover {
    border-color: rgba(23, 34, 28, .38);
    background: rgba(255, 253, 248, .5);
}

.sc-notice-control:focus-visible,
.sc-notice-close:focus-visible,
.sc-notice-link:focus-visible {
    outline: 3px solid rgba(255, 253, 248, .72);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .sc-notice-shell {
        padding: .48rem 3.5rem;
    }

    .notification-item.active {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .35rem .7rem;
        align-items: center;
    }

    .sc-notice-title,
    .sc-notice-separator {
        display: none;
    }

    .sc-notice-text {
        text-align: right;
    }
}

@media (max-width: 767.98px) {
    .notification-bar,
    .sc-notice-shell {
        min-height: 52px;
    }

    .sc-notice-shell {
        padding: .45rem 3rem;
    }

    .notification-item.active {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: .18rem .5rem;
        font-size: .78rem;
        line-height: 1.3;
    }

    .sc-notice-text {
        text-align: center;
    }

    .sc-notice-link {
        padding: .2rem .5rem;
        font-size: .72rem;
    }

    .sc-notice-controls {
        left: .55rem;
    }

    .sc-notice-close {
        right: .55rem;
    }

    .sc-notice-control,
    .sc-notice-close {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 420px) {
    .sc-notice-shell {
        padding-right: 2.55rem;
        padding-left: 2.55rem;
    }

    .notification-item.active {
        font-size: .74rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sc-notice-control,
    .sc-notice-close,
    .sc-notice-link {
        transition: none !important;
    }
}
