/* Public reading scale. Keep the theme's typefaces and colours. */
body {
    --ys-title: clamp(42px, 3.2vw, 46px);
    --ys-section: clamp(32px, 2.5vw, 35px);
    --ys-subtitle: clamp(22px, 1.75vw, 26px);
    --ys-price: clamp(30px, 2.5vw, 36px);
    --ys-nav: 15px;
}
@media (max-width: 767px) {
    body {
        --ys-title: clamp(32px, 8.4vw, 34px);
        --ys-section: 26px;
        --ys-subtitle: 21px;
        --ys-price: 30px;
        --ys-nav: 16px;
    }
}
/* Some older templates set heading sizes on an inner span or em. */
body.single-services main h1, body main h1, body main h1 :is(span,em,strong) { font-size: var(--ys-title) !important; }
body main h2, body main h2 :is(span,em,strong) { font-size: var(--ys-section) !important; }
body main h3, body main h3 :is(span,em,strong) { font-size: var(--ys-subtitle) !important; }
body main :is(h1,h2,h3), body main :is(h1,h2,h3) :is(span,em,strong) {
    line-height: 1.2 !important;
    overflow-wrap: break-word;
}
body main p, body main :is(.entry-content,.desc__content,.price-terms,.tm-tariff,.us-price-card,.intl-price-card) li {
    font-size: 16px !important;
    line-height: 1.6 !important;
}
body main :is(.hc-lead,.about-lead,.contacts-lead,.tm-lead,.service-catalog__lead) {font-size: clamp(16px,1.3vw,18px) !important;}
body main :is(.tm-tariff__price,.us-price-amount,.intl-amount) {
    font-size: var(--ys-price) !important;
    line-height: 1.2 !important;
}
body main :is([class*="eyebrow"],.contacts-kicker,.materials-date,.article-updated-local,.home-feedback__required) {
    font-size: 13px !important;
    line-height: 1.45 !important;
}
body main .tm-split .tm-eyebrow { color: #765a30; }
body main :is(.tm-selection,.tm-selection strong,.home-feedback__agreement label,.home-feedback__agreement label span) {
    font-size: 14px !important;
    line-height: 1.5 !important;
}
body main form :is(input:not([type]),input[type=text],input[type=email],input[type=tel],input[type=search],textarea,select,button[type=submit]) {
    font-size: 16px !important;
}
body main :is(.us-gold-button,.tm-tariff__button,.sr-button,.home-feedback__submit),
body header nav a {font-size: var(--ys-nav) !important;}
body main .us-fee-link {font-size: 15px !important;}

/* Shared exceptions for legacy service, expert and catalogue templates. */
body :is(main,#yustis-main) .tm-split p,
body :is(main,#yustis-main) .home-expert__specialty p { font-size: 16px !important; line-height: 1.6 !important; }
body :is(main,#yustis-main) :is(.home-expert__role,.home-expert__number,.service-catalog__eyebrow) {
    font-size: 13px !important;
    line-height: 1.45 !important;
}
body main .price-filter label, body main form label:not(.screen-reader-text) {
    font-size: 14px !important;
    line-height: 1.5 !important;
}
body header .yustis-mobile-nav a {font-size: 16px !important;}
