/* Medalia-inspired hierarchy: regular reading, medium UI, semibold headings.
   Inter Tight is used throughout; code and plugin icon fonts stay independent. */
:root {
    --kd-font: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body.kaktusdocs-theme,
.editor-styles-wrapper {
    font-family: var(--kd-font);
    font-weight: 400;
    line-height: 1.7;
}
.kaktusdocs-theme :is(h1,h2,h3,h4,h5,h6),
.editor-styles-wrapper :is(h1,h2,h3,h4,h5,h6) {
    font-family: var(--kd-font);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.01em;
}
.kaktusdocs-theme h1,.editor-styles-wrapper h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.025em;
}
.kaktusdocs-theme h2,.editor-styles-wrapper h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.kaktusdocs-theme h3,.editor-styles-wrapper h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
.kaktusdocs-theme .kd-navigation { font-size: 14px; font-weight: 500; }
.kaktusdocs-theme :is(.kd-support,.kd-menu-toggle,.kd-search button,.wp-block-button__link) { font-family: var(--kd-font); font-weight: 500; }
.kaktusdocs-theme :is(input,select,textarea) { font-family: var(--kd-font); }
/* Explicit plugin fonts otherwise override the site font, including in blocks.
   Target text elements only: never reset i, svg, code, pre or icon spans. */
.kaktusdocs-theme :is(.betterdocs-wrapper,[class*="betterdocs-"]) :is(h1,h2,h3,h4,h5,h6,p,a,li,input,button,textarea,label),
.kaktusdocs-theme :is(.betterdocs-wrapper,.betterdocs-search-modal,.betterdocs-search-form-wrapper) {
    font-family: var(--kd-font) !important;
}
.kaktusdocs-theme [class*="betterdocs-"] :is(h1,h2,h3,h4,h5,h6) {
    font-weight: 600 !important;
    letter-spacing: -.01em;
}
.kaktusdocs-theme #betterdocs-entry-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.025em;
}
.kaktusdocs-theme #betterdocs-single-content {
    font-family: var(--kd-font);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.75;
}
.kaktusdocs-theme #betterdocs-single-content :is(p,ul,ol) { font-size: inherit; line-height: inherit; }
.kaktusdocs-theme #betterdocs-single-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
.kaktusdocs-theme #betterdocs-single-content h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); line-height: 1.25; }
.kaktusdocs-theme :is(strong,b),.editor-styles-wrapper :is(strong,b) { font-weight: 700; }
@media (max-width: 768px) {
    .kaktusdocs-theme #betterdocs-single-content { font-size: 17px; }
}
