/*
 * MyKlerk public website – typography hotfix (2026-11-02)
 * Loaded AFTER site.css in _Layout.cshtml.
 *
 * Existing website CSS was not part of the supplied ZIP. The rules below
 * intentionally affect headings only, and do not change font families,
 * colors, sizes, buttons, or AppHost styling.
 */

/* Natural tracking prevents large, bold glyphs from visually merging.
   The main element's ID gives these rules priority over typical page-specific
   selectors in the existing site.css. */
main#main-content h1,
main#main-content h2,
main#main-content h3 {
    letter-spacing: 0 !important;
}

/* Give ascenders and descenders enough room on multi-line headings. */
main#main-content h1 {
    line-height: 1.16 !important;
}

main#main-content h2 {
    line-height: 1.24 !important;
}

main#main-content h3 {
    line-height: 1.32 !important;
}

/* The FAQ screenshot shows descenders touching the introductory text.
   This space also keeps the home, pricing, modules and news heroes consistent. */
main#main-content .page-hero h1,
main#main-content .pricing-page-hero h1,
main#main-content .hero-section h1 {
    margin-bottom: clamp(1.125rem, 2vw, 1.75rem) !important;
}

/* Keep headings easy to read when they wrap onto several lines. */
main#main-content .section-heading h2,
main#main-content .split-heading h2,
main#main-content .pricing-section-heading h2,
main#main-content .final-cta h2 {
    text-wrap: balance;
}

/* Modal headings sit outside <main>, so they need a separate scoped rule. */
.beta-modal h2 {
    letter-spacing: 0 !important;
    line-height: 1.24 !important;
}

/* Slightly roomier leading helps narrow screens and longer translations. */
@media (max-width: 767px) {
    main#main-content h1 {
        line-height: 1.2 !important;
    }

    main#main-content h2 {
        line-height: 1.28 !important;
    }

    main#main-content .page-hero h1,
    main#main-content .pricing-page-hero h1,
    main#main-content .hero-section h1 {
        margin-bottom: 1.25rem !important;
    }
}
