/* notifications.css — Market Alerts signup page.
   Uses design tokens from site.css (--ink, --paper, --card, --accent, etc.). */

.notif-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px 0 48px;
}

.notif-intro {
    margin-bottom: 28px;
    color: var(--muted);
    font: 400 15px/1.55 var(--serif);
}

.notif-card {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 28px 24px;
}

.notif-card h2 {
    margin: 0 0 6px;
    font: 700 22px var(--serif);
}

.notif-card + .notif-card {
    margin-top: 24px;
}

.notif-card-newsletter .notif-email-row {
    margin-bottom: 0;
}

.notif-card-sub {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 13px;
}

/* ---------- Email field ---------- */

.notif-email-row {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.notif-email-row input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: var(--paper);
    font: 400 14px var(--sans);
    color: var(--ink);
}

.notif-email-row input::placeholder {
    color: var(--muted);
}

.notif-email-row input:focus {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

/* ---------- Topic checkboxes ---------- */

.notif-topics {
    margin-bottom: 22px;
}

.notif-topics legend {
    display: block;
    margin-bottom: 10px;
    font: 700 11px var(--sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.notif-topic {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}

.notif-topic:last-child {
    border-bottom: 0;
}

.notif-topic input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.notif-topic-label {
    flex: 1;
}

.notif-topic-name {
    display: block;
    font: 600 14px var(--serif);
    color: var(--ink);
}

.notif-topic-desc {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

/* ---------- Buttons ---------- */

.notif-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.notif-actions .btn {
    flex: 1 1 200px;
    text-align: center;
}

.notif-btn-push {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.notif-btn-push:hover {
    background: #6e1815;
    border-color: #6e1815;
}

.notif-btn-push[disabled] {
    opacity: .55;
    cursor: default;
}

.notif-btn-email {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.notif-btn-email:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.notif-btn-unsub {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.notif-btn-unsub:hover {
    background: var(--accent);
    color: #fff;
}

/* ---------- Status area ---------- */

.notif-status {
    margin-top: 18px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s, padding .25s;
    font: 400 13px/1.5 var(--sans);
}

.notif-status.show {
    padding: 12px 14px;
    max-height: 200px;
    border-left: 3px solid var(--line);
    background: var(--soft);
}

.notif-status.show.ok {
    border-left-color: var(--green);
    color: var(--green);
}

.notif-status.show.err {
    border-left-color: var(--accent);
    color: var(--accent);
}

.notif-status.show.info {
    border-left-color: var(--muted);
    color: var(--muted);
}

/* ---------- iOS instructions ---------- */

.notif-ios {
    display: none;
    margin-top: 22px;
    padding: 16px;
    border: 1px dashed var(--line);
    background: var(--soft);
}

.notif-ios.show {
    display: block;
}

.notif-ios h3 {
    margin: 0 0 8px;
    font: 700 14px var(--serif);
}

.notif-ios ol {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.notif-ios li + li {
    margin-top: 4px;
}

/* ---------- No-JS fallback ---------- */

.notif-nojs {
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--card);
    text-align: center;
    color: var(--muted);
    font: 400 14px/1.5 var(--serif);
}

.notif-nojs strong {
    color: var(--ink);
}

/* ---------- Homepage widget (footer promo) ---------- */

.notif-widget {
    border: 1px solid var(--line);
    background: var(--card);
    padding: 18px 20px;
    margin: 0 0 18px;
    text-align: center;
}

.notif-widget h3 {
    margin: 0 0 6px;
    font: 700 17px var(--serif);
}

.notif-widget p {
    margin: 0 0 12px;
    color: var(--muted);
    font: 400 13px/1.5 var(--serif);
}

.notif-widget a {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font: 600 11px var(--sans);
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
}

.notif-widget a:hover {
    background: #6e1815;
    border-color: #6e1815;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
    .notif-card {
        padding: 20px 16px;
    }

    .notif-email-row {
        flex-direction: column;
    }

    .notif-email-row .btn {
        width: 100%;
    }

    .notif-actions {
        flex-direction: column;
    }

    .notif-actions .btn {
        flex: none;
        width: 100%;
    }
}
