/* --- Optional styling for key notice elements --- */

.notice-lead {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 3px solid #0066cc;
}

.notice-highlight {
    font-weight: 600;
    padding: 0 3px;
    border-radius: 3px;
    background: rgba(255, 215, 0, 0.18); /* soft golden highlight */
}

.notice-roles {
    display: inline-block;
    padding: 2px 0;
}
.notice-signoff {
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
    font-size: 0.95rem;
}


/* ===== Popup base styles ===== */
#notice-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* darken background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

/* When visible */
#notice-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.notice-modal {
    background: #ffffff;
    max-width: 640px;
    width: 90%;
    border-radius: 14px;
    padding: 24px 28px 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
    color: #222;
    line-height: 1.5;
    transform: translateY(10px) scale(0.96);
    opacity: 0;
    transition:
        transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.4s ease;
    position: relative;
}

#notice-overlay.is-visible .notice-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.notice-title {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

.notice-close {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 999px;
}

.notice-close:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.notice-body p {
    margin: 0 0 10px;
    font-size: 0.96rem;
}

.notice-body p:last-child {
    margin-bottom: 0;
}

.notice-signoff {
    margin-top: 16px;
    font-size: 0.94rem;
}

.notice-signoff strong {
    display: inline-block;
    margin-bottom: 4px;
}

.notice-email {
    color: #0066cc;
    text-decoration: none;
}

.notice-email:hover {
    text-decoration: underline;
}

/* Small screen tweaks */
@media (max-width: 480px) {
    .notice-modal {
        padding: 18px 16px 16px;
        border-radius: 10px;
    }

    .notice-title {
        font-size: 1.05rem;
    }

    .notice-body p {
        font-size: 0.9rem;
    }
}
