/* ═══════════════════════════════════════════════════════════════════
   Alert-Banner System – Public-Facing Styles
   Renders full-width, dismissible banners above page content.
   ═══════════════════════════════════════════════════════════════════ */

/* ── container: stacks multiple banners ────────────────────────────── */
.alert-banners-wrap {
    position: relative;
    z-index: 1040;
    /* above content, below Bootstrap modals   */
    width: 100%;
}

/* ── individual banner ────────────────────────────────────────────── */
.alert-banner {
    width: 100%;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: .9rem;
    line-height: 1.45;
}

.alert-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .65rem 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.alert-banner__icon {
    flex-shrink: 0;
    font-size: 1.1rem;
}

.alert-banner__msg {
    flex: 1;
    text-align: center;
}

.alert-banner__link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: .35rem;
    white-space: nowrap;
}

.alert-banner__link:hover {
    opacity: .85;
}

.alert-banner__close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: .7;
    padding: 0 .3rem;
    color: inherit;
    transition: opacity .15s;
}

.alert-banner__close:hover {
    opacity: 1;
}

/* ── colour themes ────────────────────────────────────────────────── */
.alert-banner--info {
    background-color: #dbeafe;
    color: #1e3a5f;
    border-bottom: 1px solid #93c5fd;
}

.alert-banner--warning {
    background-color: #fef3c7;
    color: #78350f;
    border-bottom: 1px solid #fbbf24;
}

.alert-banner--danger {
    background-color: #fee2e2;
    color: #7f1d1d;
    border-bottom: 1px solid #f87171;
}

.alert-banner--success {
    background-color: #d1fae5;
    color: #064e3b;
    border-bottom: 1px solid #34d399;
}

.alert-banner--primary {
    background-color: #e0e7ff;
    color: #312e81;
    border-bottom: 1px solid #818cf8;
}

.alert-banner--dark {
    background-color: #1f2937;
    color: #e5e7eb;
    border-bottom: 1px solid #374151;
}

.alert-banner--dark .alert-banner__close {
    color: #9ca3af;
}

.alert-banner--dark .alert-banner__link {
    color: #93c5fd;
}

/* ── dark-mode overrides for public-modern pages ───────────────────── */
.public-modern .alert-banner--info {
    background-color: #1e3a5f;
    color: #93c5fd;
    border-bottom: 1px solid #1e40af55;
}

.public-modern .alert-banner--warning {
    background-color: #78350f;
    color: #fde68a;
    border-bottom: 1px solid #92400e55;
}

.public-modern .alert-banner--danger {
    background-color: #7f1d1d;
    color: #fca5a5;
    border-bottom: 1px solid #991b1b55;
}

.public-modern .alert-banner--success {
    background-color: #064e3b;
    color: #6ee7b7;
    border-bottom: 1px solid #065f4655;
}

.public-modern .alert-banner--primary {
    background-color: #312e81;
    color: #a5b4fc;
    border-bottom: 1px solid #3730a355;
}

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .alert-banner {
        font-size: .82rem;
    }

    .alert-banner__inner {
        padding: .5rem .75rem;
        gap: .4rem;
    }
}