/* Reserve space below the fixed header on the reordered pages. */
body :is(.kfw-page, .kfs-page) {
    padding-top: 96px !important;
}

@media (max-width: 1024px) {
    body :is(.kfw-page, .kfs-page) {
        padding-top: 88px !important;
    }
}

/* Give each line its own space, including the italic accent. */
body :is(.kf-hero__title, .kwshowcase__title, .kf-cta__title,
         .kfw-hero__title, .kfs-hero__title, .kfc-hero__title,
         .kfw-cta__title, .kfs-cta__title, .kfc-cta__title,
         .kf-about-heading__stack) {
    display: grid;
    gap: .10em;
    line-height: 1.08 !important;
    min-width: 0;
}

body :is(.kf-hero__title, .kwshowcase__title, .kf-cta__title,
         .kfw-hero__title, .kfs-hero__title, .kfc-hero__title,
         .kfw-cta__title, .kfs-cta__title, .kfc-cta__title,
         .kf-about-heading__stack) > :is(span, div) {
    position: static !important;
    display: block;
    margin: 0 !important;
    line-height: 1.08 !important;
    transform: none !important;
    opacity: 1 !important;
    white-space: normal;
    overflow-wrap: anywhere;
}

body .kf-about-heading__stack {
    padding-bottom: 0 !important;
}

body .kf-about-heading__stack > br {
    display: none;
}

body :is(.kfw-hero__eyebrow, .kfs-hero__eyebrow, .kfc-hero__eyebrow,
         .kf-hero__eyebrow, .kwshowcase__eyebrow, .kf-cta__eyebrow,
         .kfw-cta__eyebrow, .kfs-cta__eyebrow, .kfc-cta__eyebrow) {
    position: static !important;
    margin-bottom: .8rem !important;
    line-height: 1.35 !important;
    transform: none !important;
    opacity: 1 !important;
}

body .ftbar .ftbar__kit img {
    width: min(100%, 420px);
    max-width: 100%;
    height: auto;
}

body .ftbar .ftbar__eu {
    font-size: .875rem;
    line-height: 1.55;
    color: #c5c5c5;
}

body :is(.kwcard, .kfw-card) {
    min-width: 0;
    text-decoration: none;
}

@media (max-width: 1024px) {
    body .elementor-element.elementor-element-6ddf50e {
        display: none !important;
    }

    body .elementor-element.elementor-element-3442c12 {
        display: block !important;
    }

    body .nx-header .nx-header__nav,
    body .nx-header .nx-header__cta {
        display: none;
    }

    body .nx-header .nx-header__burger {
        display: flex;
    }

    body .nx-header .nx-header__drawer {
        position: absolute;
        inset: 100% 0 auto;
        width: 100%;
        max-height: 70vh;
        box-sizing: border-box;
        overflow-y: auto;
        padding: 12px 20px 18px;
        background: #101010;
        z-index: 5;
    }

    body .nx-header .nx-header__drawer a {
        display: block;
        color: #fff;
        padding: 12px 4px;
        text-decoration: none;
    }
}

@media (max-width: 767px) {
    body :is(.kf-hero__title-main, .kf-about-heading__main,
             .kfw-hero__title-main, .kfs-hero__title-main, .kfc-hero__title-main) {
        font-size: clamp(2.6rem, 12vw, 5rem) !important;
    }

    body :is(.kf-cta__title-main, .kfw-cta__title-main,
             .kfs-cta__title-main, .kfc-cta__title-main) {
        font-size: clamp(1.7rem, 7.5vw, 3.5rem) !important;
    }

    body :is(.kf-hero__title-accent, .kwshowcase__title-accent,
             .kf-about-heading__accent, .kfw-hero__title-accent,
             .kfs-hero__title-accent, .kfc-hero__title-accent,
             .kf-cta__title-accent, .kfw-cta__title-accent,
             .kfs-cta__title-accent, .kfc-cta__title-accent) {
        font-size: clamp(1.6rem, 7vw, 3rem) !important;
    }
}
