/* First Mainland Hospital — Phase 6: Smaller, responsive H1 headings. */
/* Only heading typography is overridden; colors, layout and buttons remain unchanged. */
html body h1 {
    font-size: clamp(30px, 3.2vw, 40px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
    overflow-wrap: break-word;
}
/* Homepage H1 remains a little more prominent, but is smaller than before. */
html body .fm6-hero-copy h1,
html body .v7-hero h1,
html body .fmp-hero-copy h1 {
    font-size: clamp(34px, 4vw, 48px) !important;
}
/* Staff dashboards should use compact headings. */
html body.admin-body h1,
html body .admin-top h1,
html body .admin-login-brand h1 {
    font-size: clamp(24px, 2.25vw, 30px) !important;
}
/* Nearby hospital directory is a separate frontend. */
html body .nb-hero h1,
html body .nb-detail-hero h1 {
    font-size: clamp(30px, 3.2vw, 40px) !important;
}
@media (max-width: 700px) {
    html body h1 {
        font-size: clamp(27px, 6vw, 33px) !important;
        line-height: 1.18 !important;
        letter-spacing: -0.018em !important;
    }
    html body .fm6-hero-copy h1,
    html body .v7-hero h1,
    html body .fmp-hero-copy h1 {
        font-size: clamp(30px, 7vw, 36px) !important;
    }
    html body.admin-body h1,
    html body .admin-top h1,
    html body .admin-login-brand h1 {
        font-size: clamp(22px, 5vw, 27px) !important;
    }
    html body .nb-hero h1,
    html body .nb-detail-hero h1 {
        font-size: clamp(28px, 6.4vw, 34px) !important;
    }
}