/*
 Mobile sizes
 */
@media screen and (max-width: 546px) {

    /*
     Slim header
     Separating the logo and burger on mobile
     */
    .csfse-header-slim>.wp-block-group {
        width: 100%;
        justify-content: space-between;
    }

    /*
     Footers
     */
    .footer-default {
        .wp-block-group {
            text-align: center;
        }

        .wp-block-group nav {
            display: flex;
            align-items: center;
        }

        .wp-block-group ul {
            display: grid;
            grid-column-gap: 16px;
            grid-template-columns: repeat(2, 1fr);
        }
    }

    .csfse-header-stacked {

        /*
         Links group on right
         */
        >.wp-block-group>.wp-block-group.is-content-justification-right,
        >.wp-block-group>.wp-block-group.is-content-justification-right>.wp-block-group {
            gap: unset;
            align-items: end;
            flex-direction: column;
        }

        /*
         Links group on right – pipe
         */
        >.wp-block-group>.wp-block-group.is-content-justification-right>.wp-block-group .has-text-color {
            display: none;
        }
    }

    .csfse-header-spaced {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 8px;
        grid-row-gap: 8px;

        >.wp-block-image {
            grid-area: 1 / 1 / 2 / 4;
        }

        >nav {
            grid-area: 1 / 4 / 2 / 5;
            justify-self: end;
        }

        >form {
            grid-area: 2 / 1 / 3 / 5;
        }
    }
}

/*
 Tablet sizes
 */
@media screen and (max-width: 781px) {

    /*
     Hero with aside, sidebar width
     */
    .wp-container-core-group-is-layout-43> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
        max-width: 100%;
    }
}

@media screen and (max-width: 767px) {

    /*
     Header slim
     */
    .csfse-header-slim {
        .wp-block-buttons {
            display: none;
        }
    }

    /*
     Footers
     */
    .footer-simple {
        .wp-block-column p {
            text-align: center;
        }

        .wp-block-column ul {
            display: flex;
            justify-content: center;
        }
    }

    /*
     Tabbed content
     */
    .wp-block-cs-core-ui-kit-tabbed-content-item__content>.wp-block-group {
        padding-left: 0 !important;
    }

    /*
     Footers
     */
    footer .wp-block-quote {
        max-width: 100%;
    }
}

/*
 Small desktop sizes
 */
@media screen and (max-width: 1110px) {

    /*
     Header spaced
     */
    .csfse-header-spaced {
        flex-direction: column;

        .wp-block-image {
            margin-bottom: 0 !important;
        }
    }
}

/*
 Headers
 */
.csfse-header-slim {
    .wp-block-buttons {
        white-space: nowrap;
    }
}



@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    .show-on-mobile {
        display: flex;
    }
}

@media (min-width: 768px) {

    .hide-on-desktop,
    .hide-on-desktop a {
        display: none !important;
    }

    .show-on-mobile {
        display: flex;
    }
}

/*
 Footers
 */
.footer-simple {}

.footer-slim {}

.footer-with-text {}

.footer-default {}

footer.wp-block-template-part {
    margin-top: 0px;
}

/*
 Nicer input default for line height
 */
input:not([type="image"], [type="range"], [type="checkbox"], [type="radio"]) {
    padding: 6px 4px 2px !important;
}

.wp-block-navigation__submenu-container {
    z-index: 20 !important;
}

.rank-math-breadcrumb p a {
    text-decoration: none !important;
}

.rank-math-breadcrumb p {
    display: flex;
    align-items: center;
}

.rank-math-breadcrumb p::before {
    background-image: url('/wp-content/uploads/2025/08/home-icon.png');
    background-repeat: no-repeat;
    content: '';
    width: 12px;
    height: 12px;
    display: flex;
    padding-right: 8px;
    padding-bottom: 5px;
}

.rank-math-breadcrumb .separator {
    padding: 0px 8px;
}


/* Button Link Hover classes */
.has-text-hover-color.has-black-text-hover-color:hover {
    color: var(--wp--preset--color--black) !important;
}

.has-text-hover-color.has-royal-blue-text-hover-color:hover {
    color: var(--wp--preset--color--royal-blue) !important;
}

.has-text-hover-color.has-white-text-hover-color:hover {
    color: var(--wp--preset--color--white) !important;
}

.has-text-hover-color.has-light-blue-text-hover-color:hover {
    color: var(--wp--preset--color--light-blue) !important;
}

.has-text-hover-color.has-navy-text-hover-color:hover {
    color: var(--wp--preset--color--navy) !important;
}

.has-text-hover-color.has-orange-text-hover-color:hover {
    color: var(--wp--preset--color--orange) !important;
}

.has-text-hover-color.has-teal-text-hover-color:hover {
    color: var(--wp--preset--color--teal) !important;
}

.has-text-hover-color.has-charcoal-text-hover-color:hover {
    color: var(--wp--preset--color--charcoal) !important;
}

.has-text-hover-color.has-fuchsia-text-hover-color:hover {
    color: var(--wp--preset--color--fuchsia) !important;
}

.has-text-hover-color.has-berry-text-hover-color:hover {
    color: var(--wp--preset--color--berry) !important;
}

.has-text-hover-color.has-grey-text-hover-color:hover {
    color: var(--wp--preset--color--grey) !important;
}

.has-text-hover-color.has-light-grey-text-hover-color:hover {
    color: var(--wp--preset--color--light-grey) !important;
}

/*Bakcground hover colours for button link */
.has-background-hover-color.has-black-background-hover-color:hover {
    background: var(--wp--preset--color--black) !important;
}

.has-background-hover-color.has-royal-blue-background-hover-color:hover {
    background: var(--wp--preset--color--royal-blue) !important;
}

.has-background-hover-color.has-white-background-hover-color:hover {
    background: var(--wp--preset--color--white) !important;
}

.has-background-hover-color.has-light-blue-background-hover-color:hover {
    background: var(--wp--preset--color--light-blue) !important;
}

.has-background-hover-color.has-navy-background-hover-color:hover {
    background: var(--wp--preset--color--navy) !important;
}

.has-background-hover-color.has-orange-background-hover-color:hover {
    background: var(--wp--preset--color--orange) !important;
}

.has-background-hover-color.has-teal-background-hover-color:hover {
    background: var(--wp--preset--color--teal) !important;
}

.has-background-hover-color.has-charcoal-background-hover-color:hover {
    background: var(--wp--preset--color--charcoal) !important;
}

.has-background-hover-color.has-fuchsia-background-hover-color:hover {
    background: var(--wp--preset--color--fuchsia) !important;
}

.has-background-hover-color.has-berry-background-hover-color:hover {
    background: var(--wp--preset--color--berry) !important;
}

.has-background-hover-color.has-grey-background-hover-color:hover {
    background: var(--wp--preset--color--grey) !important;
}

.has-background-hover-color.has-light-grey-background-hover-color:hover {
    background: var(--wp--preset--color--light-grey) !important;
}

.w-full {
    width: 100%;
}

.flex {
    display: flex;
}

.justify-end {
    justify-content: flex-end;
}

.center-button {
    display: flex;
    justify-content: center;
}