/* Celebrity-only additions for the sealed Jamidusu chart pages. */
.celebrity-profile-top {
    max-width: 820px;
    margin: -4px auto 12px;
    text-align: center;
}

.celebrity-profile-line {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: #332a3d;
    font-size: 1rem;
    line-height: 1.5;
}

.celebrity-star {
    color: #8a63b8 !important;
    font-size: 1rem !important;
}

.celebrity-profile-name,
.celebrity-profile-name a,
.celebrity-profile-birth,
.celebrity-profile-divider {
    color: inherit !important;
    font-size: inherit !important;
}

.celebrity-profile-name { font-weight: 600; }

.celebrity-profile-name a,
.celebrity-chart-name {
    color: inherit;
    text-decoration: none;
}

.celebrity-profile-name a:hover,
.celebrity-chart-name:hover { text-decoration: underline; }

.celebrity-birth-note {
    margin: 4px auto 0;
    padding: 0 8px;
    color: #756c7d;
    font-size: 0.78rem !important;
    line-height: 1.55;
}

/* Celebrity header readability on the sealed legacy mobile chart.
   The mobile chart intentionally preserves its original no-viewport geometry,
   so these use explicit phone sizes to avoid browser scaling the profile text too small. */
@media screen and (max-device-width: 700px) {
    .celebrity-profile-top {
        margin: -2px auto 14px;
        padding: 0 12px;
    }

    #mainHeading {
        font-size: 40px !important;
        line-height: 1.2 !important;
        margin-bottom: 18px !important;
    }

    .celebrity-profile-line {
        gap: 10px;
        font-size: 36px !important;
        line-height: 1.35 !important;
    }

    .celebrity-star {
        font-size: 36px !important;
    }

    .celebrity-birth-note {
        margin-top: 7px;
        padding: 0 14px;
        font-size: 22px !important;
        line-height: 1.45 !important;
    }
}
