/* ================================================================
   Pio24 Tools – Notice Banner
   ================================================================ */

#sags-notice-banner {
    /* CSS custom properties set inline by PHP */
    --nb-bg:  #1a1a2e;
    --nb-tc:  #ffffff;
    --nb-lc:  #f0a500;

    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nb-bg);
    color: var(--nb-tc);
    z-index: 99999;
    box-sizing: border-box;

    /* Banner starts collapsed (height 0) – JS animates it open */
    max-height: 0;
    overflow: hidden;
    opacity: 0;

    /* Smooth slide-down + fade-in */
    transition:
        max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity    0.35s ease;
}

#sags-notice-banner.nb-visible {
    max-height: 120px; /* generously larger than any real banner height */
    opacity: 1;
}

/* ----------------------------------------------------------------
   Inner layout
---------------------------------------------------------------- */
.nb-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 11px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.nb-text {
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    flex: 1 1 auto;
}

.nb-text a {
    color: var(--nb-lc);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.nb-text a:hover,
.nb-text a:focus {
    border-bottom-color: var(--nb-lc);
    outline: none;
}

/* ----------------------------------------------------------------
   Close button
---------------------------------------------------------------- */
.nb-close {
    flex: 0 0 auto;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--nb-tc);
    font-size: 1rem;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 3px;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}

.nb-close:hover,
.nb-close:focus {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

/* ----------------------------------------------------------------
   Mobile
---------------------------------------------------------------- */
@media (max-width: 600px) {
    .nb-inner {
        padding: 10px 14px;
    }

    .nb-text {
        font-size: 0.82rem;
    }
}
