.heritageforge-family-tree {
    color: #1e293b; /* dark slate for body text */
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
}

.person-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.person-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.8rem;
    border: 2px solid #0066cc; /* restore border color */
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.08);
}

.portrait {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #f3f4f6;
    margin: 0 auto 1.2rem;
    display: block;
}

.family-section {
    margin: 3rem 0;
}

.dates {
    margin-top: 0.4rem;
}

.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.parent-card,
.spouse-card,
.child-card {
    padding: 1.2rem;
    background: #f9fafb;
    border: 1px solid #0066cc33; /* light blue border */
    border-radius: 10px;
    text-align: center;
    transition: all 0.15s ease;
}

.parent-card:hover,
.spouse-card:hover,
.child-card:hover {
    transform: translateY(-3px);
    border-color: #0066cc;
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.15);
}

h3 {
    font-size: 1.45rem;
    margin: 2.2rem 0 1rem;
    text-align: center;
}

.person-name,
h2, h3 {
    color: #0066cc; /* your original nice blue */
    font-weight: 600;
}

/* Pro Teaser Banner */
.pro-teaser-banner {
    margin: 2.5rem 0;
    padding: 1.8rem 1.5rem;
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1rem;
    color: #1e293b;
}

.pro-teaser-banner strong {
    color: #d97706;
    font-size: 1.25rem;
}

.pro-upgrade-btn {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 0.9rem 2.2rem;
    background: #d97706;           /* nice orange */
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}

.pro-upgrade-btn:hover,
.pro-upgrade-btn:focus {
    background: #b45309;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.import-status-notice {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #e0f2fe;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    color: #1e40af;
}

.import-status-notice strong {
    color: #1e3a8a;
}

/* Mobile portrait adjustments */
@media (max-width: 640px) {
    .heritageforge-family-tree {
        color: #1e293b;
        padding: 1rem 0.8rem;
        overflow-x: hidden;
    }

    .portrait {
        width: 110px;
        height: 110px;
    }

    .family-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* All cards same width on mobile — person card, parents, spouses, children */
    .person-card,
    .parent-card,
    .spouse-card,
    .child-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 1.2rem;
    }

    h3 {
        font-size: 1.45rem;
        margin: 2.2rem 0 1rem;
        text-align: center;
    }

    .family-section {
        margin: 3rem 0 2rem;
    }

    a {
        padding: 0.4rem;
        display: inline-block;
    }

    .pro-upgrade-btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        min-width: 180px;
    }
}

@media (max-width: 1024px) {
    .family-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem;
    }

    .parent-card,
    .spouse-card,
    .child-card {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .portrait {
        width: 130px;
        height: 130px;
    }
}