/* Foundation for the existing X template and native Cornerstone markup. */
body.kk-home {
    --kk-color-text: #3c3c3c;
    --kk-color-accent: #a1000f;
    --kk-color-accent-hover: #f00;
    --kk-panel-background: rgb(255 255 255 / 80%);
    --kk-panel-radius: 7px;
    --kk-panel-padding: clamp(20px, 4vw, 48px);
    --kk-content-width: 90%;
    --kk-content-max: 1500px;
    margin: 0;
    color: var(--kk-color-text);
    background: #fff;
    font: 300 19px/1.7 "kk-proxima", Arial, sans-serif;
    text-align: center;
}

.kk-home *, .kk-home *::before, .kk-home *::after {
    box-sizing: border-box;
}

.kk-home :where(h1,h2,h3,h4,h5,h6,p,figure,ul,ol) {
    margin: 0;
    padding: 0;
}

.kk-home a {
    color: var(--kk-color-accent);
    text-decoration: none;
}

.kk-home a:hover {
    color: var(--kk-color-accent-hover);
}

.kk-home :where(button,input,textarea) {
    font: inherit;
}

.kk-home button {
    cursor: pointer;
}

.kk-home img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border: 0;
}

.kk-home video {
    max-width: 100%;
}

.kk-home :where([hidden]), .kk-home .kk-hidden {
    display: none !important;
}

.kk-home :where(a,button,[tabindex]):focus-visible {
    outline: 3px solid #d33;
    outline-offset: 5px;
}

/* Full width must work on a draft too, independently of WordPress's .home class. */
.kk-home :where(#top, .site, .x-site, .x-main, .hentry, .entry-content, .cs-content) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.kk-home #top > .x-container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.kk-home .entry-wrap {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.kk-home .entry-header, .kk-home .x-colophon {
    display: none;
}

.kk-home .x-container {
    margin-left: auto;
    margin-right: auto;
}

.kk-home .x-main {
    float: none;
}

/* Native accessibility labels stay available to screen readers without taking up space. */
.kk-home .screen-reader-text,
.kk-home .visually-hidden,
.kk-home .x-new-tab-notice,
.kk-home .mejs-offscreen,
.kk-home .mejs__offscreen {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.kk-home .x-skip-links { position: absolute; top: 0; left: 0; z-index: 10000; }
.kk-home .x-skip-link { position: fixed; top: -200px; left: 12px; padding: 12px; background: #fff; }
.kk-home .x-skip-link:focus { top: calc(var(--kk-header-offset, 0px) + 10px); }

.kk-home .kk-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 60px 0;
    scroll-margin-top: calc(var(--kk-header-height, 84px) + 20px);
}

.kk-home .kk-row {
    position: relative;
    width: var(--kk-content-width);
    max-width: var(--kk-content-max);
    margin: 0 auto;
    padding: 0;
}

.kk-home .kk-row > .x-row-inner {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    margin: 0;
}

.kk-home .kk-column {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.kk-home .kk-text {
    color: inherit;
    font: inherit;
    text-align: left;
}

.kk-home .kk-text p + p {
    margin-top: 1.3em;
}

.kk-home .kk-heading {
    margin: 0;
    color: inherit;
    text-align: center;
}

.kk-home .kk-heading :is(.x-text-content, .x-text-content-text) {
    display: block;
}

.kk-home .kk-heading :is(h1,h2,h3,h4,h5,h6,p) {
    color: inherit;
    font: inherit;
}

.kk-home .kk-heading--section {
    font-size: clamp(36px, 3.6vw, 54px);
    font-weight: 100;
    line-height: 1.1;
    text-shadow: 2px 2px 3px rgb(0 0 0 / 30%);
}

.kk-home .kk-heading--light {
    color: #fff;
}

.kk-home .kk-heading--accent .x-text-content-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.kk-home .kk-heading--accent .x-text-content-text::before, .kk-home .kk-heading--accent .x-text-content-text::after {
    content: "";
    width: 18%;
    height: 2px;
    background: currentColor;
    opacity: .5;
}

.kk-home .kk-heading--name {
    margin-bottom: .2em;
    font-size: clamp(28px, 3vw, 43px);
    font-weight: 100;
    line-height: 1.3;
}

.kk-home .kk-heading--role {
    margin-bottom: 32px;
    font-size: 28px;
    font-weight: 100;
    line-height: 1.3;
}

.kk-home .kk-panel {
    padding: var(--kk-panel-padding);
    border-radius: var(--kk-panel-radius);
    background: var(--kk-panel-background);
}

/* Keep real Gap elements. The preview's inline --cs-gap-size is an editor hint only. */
.kk-home .kk-space {
    display: block;
    width: 100%;
    height: var(--kk-space, 50px) !important;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.kk-home .kk-space--48 {
    --kk-space: 48px;
}

.kk-home .kk-space--50 {
    --kk-space: 50px;
}

.kk-home .kk-space--90 {
    --kk-space: 90px;
}

.kk-home .kk-space--100 {
    --kk-space: 100px;
}

.kk-home .kk-image {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.kk-home .kk-image img {
    display: block;
    width: 100%;
    height: auto;
}

.kk-home .kk-caption {
    padding: 5px;
    color: #fff;
    background: rgb(255 255 255 / 20%);
    font-size: 10px;
}

@media (prefers-reduced-motion: no-preference) {
    html:has(body.kk-home) {
        scroll-behavior: smooth;
    }
}

@media (max-width: 767px) {
    body.kk-home {
        font-size: 17px;
    }
    .kk-home .kk-heading--role {
        font-size: 24px;
    }
    .kk-home :is(.kk-space--100, .kk-space--90) {
        --kk-space: 50px;
    }
}
