/* Simple Post Notifier — popup & signup form */
.spn-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(17, 24, 39, 0.55);
    animation: spn-fade 0.2s ease-out;
}
.spn-overlay[hidden] { display: none; }

.spn-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 32px 28px 24px;
    background: #fff;
    color: #111827;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    font-family: inherit;
    animation: spn-rise 0.25s ease-out;
}
.spn-modal h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    line-height: 1.25;
    color: inherit;
}
.spn-intro {
    margin: 0 0 20px;
    color: #4b5563;
    line-height: 1.5;
}
.spn-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}
.spn-close:hover, .spn-close:focus-visible { background: #f3f4f6; color: #111827; }

.spn-form { margin: 0; }
.spn-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.spn-row input[type="email"] {
    flex: 1 1 200px;
    min-width: 0;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 16px;
}
.spn-row input[type="email"]:focus {
    outline: 2px solid var(--spn-accent, #2563eb);
    outline-offset: 1px;
    border-color: transparent;
}
.spn-row button {
    flex: 0 0 auto;
    margin: 0;
    padding: 11px 20px;
    border: 0;
    border-radius: 8px;
    background: var(--spn-accent, #2563eb);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.spn-row button:hover { filter: brightness(0.92); }
.spn-row button:disabled { opacity: 0.6; cursor: wait; }

.spn-note {
    margin: 10px 0 0;
    font-size: 13px;
    color: #6b7280;
}
.spn-note a { color: inherit; text-decoration: underline; }

.spn-msg { margin: 10px 0 0; font-size: 14px; }
.spn-msg:empty { display: none; }
.spn-msg.is-success { color: #047857; }
.spn-msg.is-error { color: #b91c1c; }

/* Honeypot + screen-reader-only label */
.spn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.spn-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* Inline (shortcode) form */
.spn-inline {
    position: relative;
    max-width: 520px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

@media (max-width: 480px) {
    .spn-modal { padding: 28px 18px 20px; }
    .spn-row button { flex: 1 1 100%; }
}

@keyframes spn-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spn-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .spn-overlay, .spn-modal { animation: none; }
}
