/* ── Numerology Meanings Plugin ── */

.num-mean-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    font-family: sans-serif;
    color: #555;
    line-height: 1.7;
}

/* ── Headline (shared rrd-headline pattern) ── */
.num-mean-wrapper .rrd-headline {
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.num-mean-wrapper .rrd-headline-category {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #666;
    margin-bottom: 1.2rem;
    font-family: sans-serif;
}

.num-mean-wrapper .rrd-headline-title {
    font-family: Georgia, serif;
    font-size: 51.2px;
    font-weight: 700;
    color: #666;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.num-mean-wrapper .rrd-headline-title em {
    font-size: 51.2px;
    font-style: italic;
    font-weight: 700;
    color: #666;
    display: block;
}

.num-mean-wrapper .rrd-headline-subtitle p {
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 400;
    color: #666;
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

/* ── Hero ── */
.nm-hero {
    background: #1F3B6B;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.75rem;
    align-items: center;
}

.nm-numwrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
}

.nm-num {
    font-family: Georgia, serif;
    font-size: 140px;
    font-weight: 500;
    color: #FAC775;
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.nm-num-reduces {
    font-size: 0.7rem;
    color: #A8C0E0;
    font-style: italic;
    margin-top: 8px;
    letter-spacing: 0.04em;
    font-family: Georgia, serif;
}

.nm-num-l {
    font-size: 0.65rem;
    color: #A8C0E0;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-top: 4px;
    font-family: sans-serif;
}

.nm-hero-eyebrow {
    font-size: 0.72rem;
    color: #A8C0E0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 8px;
    font-family: sans-serif;
}

.nm-hero-master {
    color: #FAC775;
    font-weight: 600;
}

.nm-hero-h2 {
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
    color: #EAF1FA;
    margin: 0 0 12px;
    line-height: 1.15;
}

.nm-hero-h2 em {
    font-style: italic;
    font-weight: 500;
}

.nm-hero-essence {
    font-family: Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    color: #EAF1FA;
    margin: 0 0 14px;
    line-height: 1.6;
}

.nm-hero-essence em {
    font-style: italic;
}

.nm-meta-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nm-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(168, 192, 224, 0.3);
    border-radius: 999px;
    font-size: 0.72rem;
    color: #EAF1FA;
}

.nm-meta-chip-l {
    font-size: 0.6rem;
    color: #A8C0E0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nm-meta-chip-v {
    font-weight: 500;
}

/* ── Light / Shadow cards ── */
.nm-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.nm-card {
    background: #fff;
    border: 1px solid #e8edf8;
    border-radius: 10px;
    padding: 1.15rem 1.4rem;
    border-left-width: 4px;
    border-left-style: solid;
    border-radius: 0 10px 10px 0;
}

.nm-card--light {
    border-left-color: #4169A8;
}

.nm-card--shadow {
    border-left-color: #d4a857;
}

.nm-card-h {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.6rem;
    font-family: sans-serif;
}

.nm-card--light .nm-card-h {
    color: #4169A8;
}

.nm-card--shadow .nm-card-h {
    color: #a07820;
}

.nm-card-p {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* ── Life-path purpose ── */
.nm-purpose {
    background: #fafbff;
    border: 1px solid #e8edf8;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
}

.nm-purpose-h {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #4169A8;
    margin: 0 0 0.85rem;
    font-family: sans-serif;
}

.nm-purpose-p {
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    color: #444;
    line-height: 1.65;
    margin: 0;
}

/* ── Three domains ── */
.nm-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.nm-domain {
    background: #fff;
    border: 1px solid #e8edf8;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
}

.nm-domain-h {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4169A8;
    margin: 0 0 0.6rem;
    font-family: sans-serif;
}

.nm-domain-p {
    font-size: 0.86rem;
    color: #555;
    line-height: 1.65;
    margin: 0;
}

/* ── Affinity / friction ── */
.nm-affinity {
    background: #fafbff;
    border: 1px solid #e8edf8;
    border-radius: 12px;
    padding: 1.1rem 1.4rem;
    margin-bottom: 1.5rem;
}

.nm-aff-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.55rem;
}

.nm-aff-row:last-child {
    margin-bottom: 0;
}

.nm-aff-l {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    min-width: 110px;
    font-family: sans-serif;
}

.nm-aff-l--pos {
    color: #4169A8;
}

.nm-aff-l--neg {
    color: #a07820;
}

.nm-aff-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nm-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 999px;
    font-family: Georgia, serif;
    font-size: 0.92rem;
    font-weight: 500;
}

.nm-pill--pos {
    background: #f0f4fb;
    color: #4169A8;
    border: 1px solid #d0dcf0;
}

.nm-pill--neg {
    background: #fdf6e8;
    color: #a07820;
    border: 1px solid #e0c870;
}

/* ── CTA strip (matching other plugins) ── */
.nm-cta-strip {
    border-left: 4px solid #4169A8;
    border-radius: 0 8px 8px 0;
    background: #f5f7fb;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.nm-cta-main {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #e8edf8;
}

.nm-cta-main p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-family: sans-serif;
}

.nm-cta-main em {
    font-style: italic;
}

.nm-cta-main a {
    color: #4169A8;
    text-decoration: none;
    font-weight: 500;
}

.nm-cta-main a:hover {
    text-decoration: underline;
}

.nm-cta-free {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nm-free-badge {
    background: #4169A8;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: sans-serif;
}

.nm-free-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    flex: 1;
    margin: 0;
    font-family: sans-serif;
}

.nm-free-text a {
    color: #4169A8;
    font-weight: 500;
    text-decoration: none;
}

.nm-free-text a:hover {
    text-decoration: underline;
}

.nm-disclaimer {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.6;
    margin: 0;
    font-family: sans-serif;
}

.num-mean-error {
    background: #fdf6e8;
    border-left: 4px solid #d4a857;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    color: #6b5320;
    font-family: sans-serif;
    margin: 1rem 0;
}

.num-mean-error p {
    margin: 0;
    font-size: 0.9rem;
}

/* ── Mobile ≤ 768px ── */
@media (max-width: 768px) {
    .num-mean-wrapper {
        padding: 0 20px;
    }

    .num-mean-wrapper .rrd-headline-title    { font-size: 2.4rem; }
    .num-mean-wrapper .rrd-headline-title em { font-size: 32px; }

    .nm-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem 1.25rem;
    }

    .nm-numwrap {
        margin: 0 auto;
    }

    .nm-num {
        font-size: 110px;
    }

    .nm-meta-chips {
        justify-content: center;
    }

    .nm-2 {
        grid-template-columns: 1fr;
    }

    .nm-3 {
        grid-template-columns: 1fr;
    }

    .nm-aff-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .nm-aff-l {
        min-width: 0;
    }

    .nm-cta-free {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .nm-hero {
        padding: 1.25rem 1rem;
    }

    .nm-num {
        font-size: 90px;
    }

    .nm-hero-h2 {
        font-size: 1.5rem;
    }

    .nm-purpose {
        padding: 1.2rem 1.25rem;
    }

    .nm-purpose-p {
        font-size: 1rem;
    }
}
