/* Shared type scale for the storefront, the full admin shell and standalone admin pages. */
:root {
    --k-page-title: clamp(1.375rem, 1.18rem + .8vw, 1.75rem);
    --k-section-title: clamp(1.125rem, 1.03rem + .6vw, 1.5rem);
    --k-item-title: clamp(1rem, .97rem + .26vw, 1.125rem);
    --k-admin-title: clamp(1.25rem, 1.2rem + .25vw, 1.375rem);
    --k-field-size: 1rem;
}

#main-content h1,
#main-content .industry-hero .slidecopy h2 {
    font-size: var(--k-page-title);
    letter-spacing: normal;
}
/* The compact title band on item pages also serves long equipment names. */
#main-content .product-title-inner h1 {
    font-size: min(var(--k-page-title), clamp(1.125rem, .95rem + .6vw, 1.625rem));
}
#main-content :is(.industry-heading, .workshop-summary, .pw-head, .pw-story, .head,
    .company-page, .contact-copy, .inquiry-product, .product-description-heading,
    .product-related-heading) h2 {
    font-size: var(--k-section-title);
}
#main-content :is(.cardinfo, .pw-caption, .ct-panel) h3 { font-size: var(--k-item-title); }
#main-content .workshop-intro p,
#main-content .company-intro p { font-size: 1rem; }

.kleepr-admin .ka-content h1,
.kleepr-admin .ka-catalog-heading h1,
.ks-auth .ks-auth-body h1,
.kleepr-admin :is(.ka-dashboard-stat, .ka-gauge-copy) bdi {
    font-size: var(--k-admin-title);
}
.kleepr-admin .ka-content > section > h2,
.kleepr-admin .ka-content > h2 { font-size: 1.25rem; }

body[data-kleepr-strings] :is(input:not([type]), input[type=text], input[type=tel],
    input[type=email], input[type=number], input[type=search], textarea, select),
.ks-auth .form-unit-field input:is([type=email], [type=password], [data-ks-password]),
.kleepr-admin .ka-content form :is(input:not([type]), input[type=text], input[type=search],
    input[type=tel], input[type=email], input[type=number], input[type=password],
    input[type=url], input[type=date], select, textarea) {
    font-size: var(--k-field-size);
}
