/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */


/* GENERAL SITE TEMPLATE */
/* :where(.wp-site-blocks *:focus){outline-width:2px;outline-style:solid} */



/* for full-height on short pages; only content area expands */
body {
    min-height: 100vh;
    flex-direction: column;
    display: flex;
}
body.admin-bar { min-height: calc(100vh - 32px); }
body > * { flex: 0 0 auto; }
.wp-site-blocks {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.wp-site-blocks > * { flex: 0 0 auto; }
.wp-site-blocks > main { flex-grow: 1; }


main,
.wp-block-post-title,
.entry-content,
footer {
    margin-block-start: 0;
}

header {
    position: relative;
    z-index: 1001;
}

header .wp-container-core-navigation-is-layout-1 { row-gap: var(--wp--preset--spacing--10); }

.wp-block-site-logo img {
    min-width: 240px;
}

/* mobile menu */
.wp-block-navigation__responsive-container-close svg, 
.wp-block-navigation__responsive-container-open svg {
    width: 68px;
    height: 68px;
}
.wp-block-navigation__responsive-container,
.wp-block-navigation__responsive-container ul.wp-block-navigation__container {
    --navigation-layout-justification-setting: flex-start;
    --navigation-layout-justification: flex-start;
}
.wp-block-navigation__responsive-container.is-menu-open ul.wp-block-navigation__container li {
    font-size: 1.5rem !important;
}

#modal-1 { /* mobile menu */
    background-color: var(--wp--preset--color--base-2);
}

.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) ul.all_keyohs_list {
    /* flexbox with flex-wrap won't extend the menu's background to more than one column wide */
    /*
    max-height: 85vh;
    flex-wrap: wrap;
    align-content: end;
    min-width: unset !important;
    */
    display: grid;
    grid-template-columns: repeat(auto-fill, 240px);
    width: 720px !important;
    right: 50% !important;
    transform: translateX(50%);
    background-color: var(--wp--preset--color--base-2);
    box-shadow: var(--wp--preset--shadow--shadow-1);
}
    @media (max-width: 1440px) {
        .wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) ul.all_keyohs_list {
            grid-template-columns: repeat(auto-fill, 220px);
            width: 660px !important;
        }
    }
    @media (max-width: 960px) {
        .wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) ul.all_keyohs_list {
            right: 0 !important;
            transform: translateX(0);
            width: 440px !important;
        }
    }

.headerArea,
.titleBar {
    position: relative;
    z-index: 1000;
}

@media (max-width: 782px) {
    body {
        --wp--style--root--padding-right: var(--wp--preset--spacing--40);
        --wp--style--root--padding-left: var(--wp--preset--spacing--40);
    }
}

@media (max-width: 600px) {
    .wp-block-site-logo img {
        width: 240px;
    }
}


.trees {
    background-size: unset !important;
    background-position: bottom;
    background-repeat: repeat-x;
}

@media (min-width: 600px) {
    .wp-block-latest-posts.columns-3 li {
        /* width: calc(33.33333% - .83333em); */
        width: calc(33.33333% - .83333em - 48px);
    }
}

.headerArea .wp-block-post-featured-image {
    margin: 0 !important;
}

.wp-block-post-title {
    margin-block-start: 0;
}



/* HOME PAGE */

.news {
    margin-block-start: 0;
}

body.home .headerArea { display: none; }


.bannerArt {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    max-width: unset;
    z-index: 1;
    background-position: center;
}

    .bannerArt::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: 1;
        background-image: url('https://dev.badmath.com:8443/keyoh.net/wp-content/uploads/2025/03/102_0484.jpg');
        background-size: cover;
        background-position: center;
        animation: cross-fade 10s linear infinite 
    }

    @keyframes cross-fade {
      0% {
        opacity: 0;
      }
      25% {
        opacity: 0;
      }
      50% {
        opacity: 1;
      }
      75% {
        opacity: 1;
      }
      100% {
        opacity: 0;
      }
    }

.bannerArt + * { 
    z-index: 2; 
    position: relative;
}

@media (max-width: 782px) {
    .banner {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0 !important;
    }
    .banner > .wp-block-columns {
        border-radius: 0 !important;
        padding: var(--wp--preset--spacing--40) !important;
    }
    .bannerArt {
        position: relative;
        height: 200px;
    }
}


.weAre {
    overflow-wrap: normal;
    word-break: normal;
}

    .weAre > * {
        margin-block-start: 0;
        line-height: 1;
    }

.topo {
    background-size: 50% !important;
}









/* BLOCKS */

.wp-block-latest-posts {
    --latest-posts-gap: 72px;
}
.wp-block-latest-posts.is-grid { gap: var(--latest-posts-gap); }

.wp-block-latest-posts.columns-3 li {
    /* width:calc(33.33333% - .83333em) */
    width: calc((100% / 3) - (var(--latest-posts-gap) * 2 / 3));
    min-width: 270px;
    margin-right: 0;
    margin-bottom: 1.25em;
}

    @media screen and (max-width: 1280px) {
        .wp-block-latest-posts.columns-3 li { width: calc(50% - (var(--latest-posts-gap) / 2)); }
    }

    @media screen and (max-width: 768px) {
        .wp-block-latest-posts.is-grid { --latest-posts-gap: 48px; }
        .wp-block-latest-posts.columns-3 li { width: 100%; }
    }

.wp-block-latest-posts__list {
    justify-content: space-between;
}
.wp-block-latest-posts__post-title {
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    display: block;
    margin: 0.5rem 0 1rem;
    font-family: var(--wp--preset--font-family--marcellus);
}



.wp-block-latest-posts__list .keyoh-link {
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 15px;
    display: block;
    margin: 0.75em 0 1em;
}

.wp-block-latest-posts__list li > *:first-child { margin-top: 0; }


.wp-block-latest-posts__featured-image:hover + .wp-block-latest-posts__post-title, 
.wp-block-latest-posts__post-title:hover {
    text-decoration: underline;
}

.wp-block-latest-posts__read-more {
    text-transform: uppercase;
    color: var(--wp--preset--color--accent-3) !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    display: block;
    text-align: right;
    margin-top: 1em;
}

.wp-block-latest-posts__read-more:hover {
    color: inherit !important;
}

.wp-block-latest-posts__read-more::after {
    content: '>';
    margin-left: 0.375em;
}

.wp-block-keyoh-documents {
    background-color: var(--wp--preset--color--base-2);
    grid-column: 2;
    grid-row: 2;
    padding: var(--wp--preset--spacing--30);
    margin-bottom: var(--wp--preset--spacing--40);
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.wp-block-keyoh-documents > .wp-block-file.keyoh-file:last-child { margin-bottom: 0; }
.wp-block-keyoh-documents h5 {
    font-family: var(--wp--preset--font-family--noto-sans);
    font-size: clamp(14.642px, 0.915rem + ((1vw - 3.2px) * 0.46), 22px);
    margin-top: 0;
    margin-bottom: var(--wp--preset--spacing--20);
}


#all-keyohs-map {
    position: relative;
    height: 750px;
    max-height: 80vh;
}

#single-keyoh-map {
    position: relative;
    height: 400px;
}

#all-keyohs-map .map {
    height: 100%;
    box-shadow: var(--wp--preset--shadow--shadow-1);
}

#single-keyoh-map .map {
    box-shadow: var(--wp--preset--shadow--shadow-1);
}
#all-keyohs-map path{
    /*
    filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.9));
    fill: rgb(from var(--wp--preset--color--accent-5) r g b / 0.5);
    stroke: rgb(from var(--wp--preset--color--accent-5) r g b / 1.0);
    */
    fill: color(srgb 0.1 0.58 0 / 0.25);
    stroke: rgb(93 122 0);
    stroke-dasharray: 8px 6px;    
    stroke-width: 2.5px;
}
#single-keyoh-map path {
    /*
    filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.9));
    fill: rgb(from var(--wp--preset--color--accent-5) r g b / 0.25);
    stroke: rgb(from var(--wp--preset--color--accent-5) r g b / 0.4);
    */
    fill: color(srgb 0.1 0.58 0 / 0.25);
    stroke: rgb(93 122 0);
    stroke-dasharray: 8px 6px;
    stroke-width: 2.5px;      
}
#single-keyoh-map .current {
    fill: rgb(from var(--wp--preset--color--contrast-2) r g b / 0.5);
    stroke: var(--wp--preset--color--contrast-2);
    stroke-dasharray: unset; 
}
#all-keyohs-map path:hover,
#single-keyoh-map path:hover,
#all-keyohs-map .selected,
#single-keyoh-map .selected {
    /*
    fill: rgb(from var(--wp--preset--color--base-2) r g b / 0.5);
    stroke: rgb(from var(--wp--preset--color--base-2) r g b / 1.0);
    */
    fill: #68432b;
    stroke: #68432b;
    stroke-dasharray: unset; 
}

#all-keyohs-map .keyoh-select,
#all-keyohs-map .resetButton,
#single-keyoh-map .keyoh-select,
#single-keyoh-map .resetButton {
    position: absolute;
    left: 54px;
    z-index: 500;
    background-color: #93b7c3;
    border-radius: 10px;
    padding: 10px 12px;
}

#all-keyohs-map .keyoh-select,
#single-keyoh-map .resetButton {
    top: 10px;
}

#all-keyohs-map .resetButton {
    top: 60px;
}


@media (max-width: 782px) {
    #all-keyohs-map {
        padding-left: var(--wp--preset--spacing--40);
        padding-right: var(--wp--preset--spacing--40);
        padding-bottom: var(--wp--preset--spacing--40);
    }   
    #all-keyohs-map .keyoh-select,
    #all-keyohs-map .resetButton,
    #single-keyoh-map .keyoh-select,
    #single-keyoh-map .resetButton {
        left: calc(var(--wp--preset--spacing--40) + 54px) !important;
    }
}

#all-keyohs-map .leaflet-bar a,
#single-keyoh-map .leaflet-bar a {
    background-color: #93b7c3;
}

#all-keyohs-map .leaflet-touch .leaflet-control-layers,
#all-keyohs-map .leaflet-touch .leaflet-bar,
#all-keyohs-map .keyoh-select,
#all-keyohs-map .resetButton,
#single-keyoh-map .leaflet-touch .leaflet-control-layers,
#single-keyoh-map .leaflet-touch .leaflet-bar,
#single-keyoh-map .keyoh-select,
#single-keyoh-map .resetButton {
    border-width: 0;
    box-shadow: 4px 4px 4px rgba(0,0,0,0.2);
}

.leaflet-container { font-family: inherit; }

.leaflet-popup-content-wrapper, 
.leaflet-popup-tip {
    background: var(--wp--preset--color--base-2);
    color: var(--wp--preset--color--contrast-2);
}

.leaflet-popup-content-wrapper {
    border-radius: 0;
}

    .leaflet-popup-content {
        display: flex;
        flex-direction: column;
        font-size: 18px;
        font-weight: 500;
    }

        .leaflet-popup-content .title {
            font-size: 22px;
            font-weight: 800;
            margin: 0 0 0.5em;
        }

        .leaflet-popup-content .keyohwhudachun .name {
            font-weight: 800;
            color: var(--wp--preset--color--accent-5);
            display: block;
        }

        .leaflet-popup-content .link {
            align-self: end;
            text-decoration: none;
            text-transform: uppercase;
            margin-top: 1em;
            font-weight: 500;
            color: inherit;
            font-size: 14px;
        }
            .leaflet-popup-content .link::after {
                content: '>';
                margin-left: 0.375em;
            }

            .leaflet-popup-content .link:hover {
                color: var(--wp--preset--color--accent-5);
            }




.keyoh > .entry-content {
    display: grid;
    grid-template-columns: auto calc((var(--wp--style--global--content-size) / 2) - 50px) calc((var(--wp--style--global--content-size) / 2) - 50px) auto;
    column-gap: 100px;
    padding: 0;
}

    .keyoh > .entry-content .contact-info {
        grid-column: 2;
        width: 100%;
    }


    .keyoh > .entry-content #single-keyoh-map {
        grid-column: 3;
        grid-row: 1 / 3;
        width: 100%;
        margin: 2rem 0 4rem;
    }

    .keyoh > .entry-content .keyoh_news {
        grid-column: 1 / 5;
        background-image: url('topoDark-scaled.jpg');
        width: 100%;
        max-width: unset;
    }

        .keyoh > .entry-content .keyoh_news h2 {
            color: var(--wp--preset--color--base-2);
            text-align: center;
            margin: var(--wp--preset--spacing--40) auto;
        }

        .keyoh > .entry-content .keyoh_news .blog_posts {
            max-width: var(--wp--style--global--content-size);
            margin: auto;
            color: var(--wp--preset--color--base-2);
            list-style: none;
            padding: 0;
        }

        .keyoh > .entry-content .keyoh_news .blog_posts a {
            color: var(--wp--preset--color--base-2);
        }

        .keyoh > .entry-content .keyoh_news .blog_posts .wp-post-image {
            max-width: 100%;
            height: auto;
        }


    @media screen and (max-width: 1480px) {
        .keyoh > .entry-content {
            grid-template-columns: 0 1fr 1fr 0;
            column-gap: var(--wp--style--root--padding-right);
        }
        .keyoh > .entry-content .keyoh_news .blog_posts {
            max-width: calc(100% - var(--wp--style--root--padding-left) - var(--wp--style--root--padding-right));
        }
    }

    @media screen and (max-width: 1024px) {
        .keyoh > .entry-content {
            grid-template-columns: 0 1fr 0;
        }
        .keyoh > .entry-content #single-keyoh-map { grid-column: 2; grid-row: 2; margin-bottom: 2rem; }
        .keyoh > .entry-content .contact-info { grid-row: 1; margin-top: 1.5rem; }
        .keyoh > .entry-content .wp-block-keyoh-documents {
            grid-row: 3;
            margin-left: 0 !important;
            margin-right: 0 !important;
            margin-bottom: 3rem;
        }

        .keyoh > .entry-content .keyoh_news { grid-column: 1 / 4; }
    }

/* BLOG POSTS */

.wp-block-post-featured-image {
    /* max-height: 600px; */
    height: auto;
    max-width: 100%;
}

.wp-block-post-featured-image .wp-post-image { 
    border-radius: 0; 
}

figure.wp-block-post-featured-image { 
    box-shadow: var(--wp--preset--shadow--shadow-1);
    padding: 0 !important; 
    aspect-ratio: unset !important;
}

body.single-post .wp-block-post-date,
body.single-post .wp-block-keyoh-link {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}
body.single-post .wp-block-keyoh-link:hover { text-decoration: underline; }

.wp-block-post-navigation-link {
    font-size: 24px;
}
.wp-block-post-navigation-link a { text-decoration: none !important; }
.wp-block-post-navigation-link a:hover { text-decoration: underline !important; }

:root :where(.wp-block-gallery) {
    margin-bottom: var(--wp--preset--spacing--20);
}


/* file embed block */

.wp-block-file:not(.keyoh-file) {
    display: grid;
    gap: 20px;
    word-break: break-word;
    margin-bottom: 6rem !important;
}
.wp-block-file.keyoh-file {
    margin-bottom: 1.5rem;
}

    .wp-block-file:not(.keyoh-file) .wp-block-file__embed {
        grid-row: 2;
        grid-column: 1 / 3;
    }

    .wp-block-file:not(.keyoh-file) a:not(.wp-block-file__button) {
        font-size: var(--wp--preset--font-size--x-large);
        font-family: var(--wp--preset--font-family--marcellus-sc);
        font-weight: 400;
        line-height: 1.2;
        text-decoration: none;
    }

    .wp-block-file.keyoh-file a:not(.wp-block-file__button) {
        position: relative;
        font-size: var(--wp--preset--font-size--medium);
        padding-left: 2.25rem;
        display: block;
        line-height: 1.2;
        text-decoration: none;
    }


        .wp-block-file.keyoh-file a:not(.wp-block-file__button):hover { text-decoration: underline; }

        .wp-block-file.keyoh-file a:not(.wp-block-file__button)::before {
            content: '';
            display: block;
            width: 2em;
            background-image: url('file-regular.svg');
            height: 1.8rem;
            background-repeat: no-repeat;
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
        }
        .wp-block-file.keyoh-file a.application_pdf:not(.wp-block-file__button)::before { background-image: url('file-pdf-regular.svg'); }

    .wp-block-file:not(.keyoh-file) a.wp-block-file__button {
        align-self: center;
        justify-self: end;
        grid-column: 2;
        grid-row: 1;
    }





