/* On-site marketing: sub-header banner + splash modal */

/* ── Sub-header banner ───────────────────────────────────────── */
.atm-mkt-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 500;
    position: sticky;
    top: 56px;
    z-index: 70;
}
body.admin-bar .atm-mkt-banner { top: 88px; }
.atm-mkt-banner__text { flex: 1; }
.atm-mkt-banner__cta {
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.atm-mkt-banner__cta:hover { text-decoration: underline; }
.atm-mkt-banner__close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0 2px;
}
.atm-mkt-banner__close:hover { opacity: 1; }

@media (max-width: 600px) {
    .atm-mkt-banner { padding: 10px 16px; font-size: 13px; }
}

/* ── Splash modal ────────────────────────────────────────────── */
.atm-mkt-splash-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: atm-mkt-fade 0.25s ease forwards;
}
@keyframes atm-mkt-fade { to { opacity: 1; } }

.atm-mkt-splash {
    position: relative;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
    transform: translateY(8px);
    animation: atm-mkt-rise 0.28s ease forwards;
}
@keyframes atm-mkt-rise { to { transform: translateY(0); } }

.atm-mkt-splash__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.atm-mkt-splash__close:hover { background: rgba(0, 0, 0, 0.55); }
.atm-mkt-splash__img {
    width: 100%;
    max-height: 240px;
    overflow: hidden;
    background: #0f172a;
    flex: 0 0 auto;
}
.atm-mkt-splash__img img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
}
.atm-mkt-splash__body {
    padding: 26px 28px 28px;
    overflow-y: auto;
}
.atm-mkt-splash__body h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.3px;
}
.atm-mkt-splash__body p {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}
.atm-mkt-splash__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.atm-mkt-splash__cta {
    display: inline-block;
    background: #00a9e0;
    color: #fff;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
}
.atm-mkt-splash__cta:hover { background: #0090c0; color: #fff; }
.atm-mkt-splash__dismiss {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 2px;
    text-decoration: underline;
}
.atm-mkt-splash__dismiss:hover { color: #374151; }
