/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Imports
	# Custom properties
	# Reset
	# Typography
	# Elements
	# Links
	# Accessibility
	# Header
		# Main navigation menu
	# Footer
	# Accessibility
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Imports
--------------------------------------------------------------*/
@import "_custom-properties.css";
@import "_icons.css";
@import "_bx-tokens.css";
@import "_blocks-style.css";
@import "_reset.css";
@import "_grid.css";
@import "_typography.css";
@import "_elements.css";
@import "_links.css";
@import "_header.css";
@import "_footer.css";
@import "_accessibility.css";
@import "_color-mode-toggle.css";



canvas {
    width: 100% !important;
    height: auto !important;
}

body.elementor-editor-active .site-header-wrapper {
    z-index: 99;
}

.elementor-template-full-width #page>.container,
.elementor-template-full-width #page>.container-fluid {
    max-width: 100%;
    padding: 0;
}

p:empty {
    content: none;
    margin: 0;
}

p:empty::before {
    content: none;
}

body.elementor_library-template-default .primary-sidebar,
body.elementor-editor-active .primary-sidebar {
    display: none;
}

body.elementor_library-template-default .site-wrapper,
body.elementor-editor-active .site-wrapper {
    grid-template-columns: 1fr !important;
}

/*--------------------------------------------------------------
# Content navigation
--------------------------------------------------------------*/
.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation,
.site-main .pagination {
    border-bottom: 1px solid var(--global-border-color);
    margin: 0 auto 2em;
    max-width: var(--content-width);
    overflow: hidden;
    padding: 0 1.5rem 2em;
}

.site-main .posts-navigation,
.site-main .post-navigation {
    position: relative;
    margin: 1rem 0;
    padding: 1em 0;
    border-top: 1px solid var(--global-border-color);
    border-bottom: 1px solid var(--global-border-color);
}

.post-navigation-sub {
    display: none;
}

.nav-previous a::before {
    content: "";
    display: inline-block;
    width: 0.625em;
    height: 1em;
    vertical-align: -0.125em;
    margin-right: 10px;
    background-color: currentcolor;
    -webkit-mask: var(--bx-icon-angle-left) center / contain no-repeat;
    mask: var(--bx-icon-angle-left) center / contain no-repeat;
}

.nav-next a::after {
    content: "";
    display: inline-block;
    width: 0.625em;
    height: 1em;
    vertical-align: -0.125em;
    margin-left: 10px;
    background-color: currentcolor;
    -webkit-mask: var(--bx-icon-angle-right) center / contain no-repeat;
    mask: var(--bx-icon-angle-right) center / contain no-repeat;
}

@media (--content-query) {

    .site-main .comment-navigation,
    .site-main .pagination {
        position: relative;
        margin: 1rem 0;
        padding: 1em;
        border: 1px solid var(--global-border-color);
        box-shadow: 0 1px 2px 0 var(--bx-color-shadow);
        border-radius: var(--global-border-radius);
        background: var(--bx-color-bg-elevated);
    }
}

.nav-links {
    display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
    width: 50%;
    flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
    text-align: end;
    flex: 1 0 50%;
}

.post-navigation-sub span {
    color: var(--global-font-color);
    text-decoration: none;
    display: inline-block;
}

.site-main .pagination {
    background: transparent;
    margin-bottom: 1.5em;
    border: 0;
    box-shadow: none;
}

.pagination .nav-links {
    justify-content: center;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    margin-bottom: 0.5em;
    margin-inline-end: 1em;
    min-width: 1.75em;
    line-height: 1.5;
    text-align: center;
    background: var(--bx-color-bg-elevated);
    font-weight: 400;
    border-radius: .28571429rem;
    text-transform: none;
    text-shadow: none !important;
    box-shadow: inset 0 0 0 1px var(--bx-color-border);
    padding: 10px 15px;
    text-decoration: none;
}

.pagination a:hover,
.pagination a:active {
    border-color: var(--bx-color-accent);
}

/* The theme's post pagination draws its frame with an inset box-shadow, not a border, so
   border-color alone changed nothing on hover. Plugin lists that reuse .pagination with real
   borders (Dokan) keep the border change only. */
.navigation.pagination a:hover,
.navigation.pagination a:active {
    box-shadow: inset 0 0 0 1px var(--bx-color-accent);
}

.pagination .prev,
.pagination .next {
    min-width: auto;
    border-color: transparent;
}

.pagination .prev:hover,
.pagination .prev:focus,
.pagination .prev:active,
.pagination .next:hover,
.pagination .next:focus,
.pagination .next:active {
    border-color: transparent;
}

.pagination .dots {
    min-width: auto;
    border: none;
}

.pagination .current {
    color: var(--color-theme-primary);
    border-color: var(--global-font-color);
}

/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/

/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll .pagination,
.infinite-scroll.neverending .site-footer {

	/* Theme Footer (when set to scrolling) */
	display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that
were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/
.site {
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
}

/* clip hides overflow without creating a scroll container, so position: sticky keeps working inside .site. */
@supports (overflow: clip) {
    .site {
        overflow: clip;
    }
}

.site-wrapper {
    margin: 1rem 0;
}

.site-wrapper #item-header {
    margin-top: -1rem;
}

/* Sticky footer. Templates that bring their own wrapper (The Events Calendar, other plugins) have no
   .site-wrapper, so the min-height rules below never applied and a short page left blank space under
   the footer. #page now fills the viewport (less the admin bar) and the footer takes the spare room.
   Children keep their block width: width is set at zero specificity so any .container width still wins. */
#page {
    display: flex;
    flex-direction: column;
    /* stylelint-disable-next-line declaration-block-no-duplicate-properties -- 100vh is the fallback for browsers without dvh. */
    min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}

:where(#page) > :where(:not(.skip-link)) {
    width: 100%;
}

/* order keeps the footer last when a sibling (#primary on narrow screens) sets its own order. */
#page > .site-footer {
    order: 999;
    margin-top: auto;
}

@media (min-width: 768px) {
    .site-wrapper {
        margin: 2rem 0;
    }

    .site-wrapper #item-header {
        margin-top: -2rem;
    }

    #primary,
    .site-wrapper {
        min-height: calc(100vh - 190px);
    }

    .page-template-full-width #primary,
    .page-template-full-width .site-wrapper {
        min-height: calc(100vh - 130px);
    }
}

@media (--sidebar-query) {

    .has-sidebar-right:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress):not(.single-fluent-products) .site-wrapper,
    .has-sidebar-right.buddyx-dokan.woocommerce:not(.buddypress):not(.bbpress):not(.woocommerce-page):not(.page-template-full-width-container) .site-wrapper,
    .has-sidebar-right.bpsh-buddypress .site-wrapper,
    .has-buddypress-sidebar-right:not(.bp-user):not(.single-item):not(.group-create):not(.page-template-full-width-container) .site-wrapper,
    .has-bbpress-sidebar-right.bbpress:not(.buddypress) .site-wrapper,
    .has-woocommerce-sidebar-right .site-wrapper,
    .has-fluentcart-sidebar-right.single-fluent-products .site-wrapper,
    .has-sidebar-right.buddypress.search-results .site-wrapper {
        display: grid;
        grid-template-columns: 3fr 260px;
        grid-gap: 2rem;
        justify-content: center;
    }

    .has-sidebar-left:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress):not(.single-fluent-products) .site-wrapper,
    .has-sidebar-left.buddyx-dokan.woocommerce:not(.buddypress):not(.bbpress):not(.woocommerce-page):not(.page-template-full-width-container) .site-wrapper,
    .has-sidebar-left.bpsh-buddypress .site-wrapper,
    .has-buddypress-sidebar-left:not(.bp-user):not(.single-item):not(.group-create):not(.page-template-full-width-container) .site-wrapper,
    .has-bbpress-sidebar-left.bbpress:not(.buddypress) .site-wrapper,
    .has-woocommerce-sidebar-left .site-wrapper,
    .has-fluentcart-sidebar-left.single-fluent-products .site-wrapper,
    .has-sidebar-left.buddypress.search-results .site-wrapper {
        display: grid;
        grid-template-columns: 260px 3fr;
        grid-gap: 2rem;
        justify-content: center;
    }

    .has-sidebar-both:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress):not(.single-fluent-products) .site-wrapper,
    .has-sidebar-both.buddyx-dokan.woocommerce:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container) .site-wrapper,
    .has-sidebar-both.bpsh-buddypress .site-wrapper,
    .has-buddypress-sidebar-both:not(.bp-user):not(.single-item):not(.group-create):not(.page-template-full-width-container) .site-wrapper,
    .has-bbpress-sidebar-both.bbpress:not(.buddypress) .site-wrapper,
    .has-woocommerce-sidebar-both .site-wrapper,
    .has-fluentcart-sidebar-both.single-fluent-products .site-wrapper,
    .has-sidebar-both.buddypress.search-results .site-wrapper {
        display: grid;
        grid-template-columns: 260px 2fr 260px;
        grid-gap: 1.5rem;
        justify-content: center;
    }

    .has-sidebar-both:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress):not(.single-fluent-products) .primary-sidebar,
    .has-sidebar-both.buddyx-dokan.woocommerce:not(.buddypress):not(.bbpress):not(.woocommerce-page):not(.page-template-full-width-container) .primary-sidebar,
    .has-sidebar-both.bpsh-buddypress .primary-sidebar,
    .has-buddypress-sidebar-both:not(.bp-user):not(.single-item):not(.group-create):not(.page-template-full-width-container) .primary-sidebar,
    .has-bbpress-sidebar-both.bbpress:not(.buddypress) .primary-sidebar,
    .has-woocommerce-sidebar-both .primary-sidebar,
    .has-fluentcart-sidebar-both.single-fluent-products .primary-sidebar,
    .has-sidebar-both.buddypress.search-results .primary-sidebar {
        padding: 0;
        grid-column: 3;
        min-width: 0;
    }

    .has-sidebar-both:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress):not(.single-fluent-products) .site-main,
    .has-sidebar-both.buddyx-dokan.woocommerce:not(.buddypress):not(.bbpress):not(.woocommerce-page):not(.page-template-full-width-container) .site-main,
    .has-sidebar-both.bpsh-buddypress .site-main,
    .has-buddypress-sidebar-both:not(.bp-user):not(.single-item):not(.group-create):not(.page-template-full-width-container) .site-main,
    .has-bbpress-sidebar-both.bbpress:not(.buddypress) .site-main,
    .has-woocommerce-sidebar-both .site-main,
    .has-fluentcart-sidebar-both.single-fluent-products .site-main,
    .has-sidebar-both.buddypress.search-results .site-main {
        grid-column: 2;
        min-width: 0;
    }

    .has-sidebar-both:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress):not(.single-fluent-products) .primary-sidebar,
    .has-sidebar-both.buddyx-dokan.woocommerce:not(.buddypress):not(.bbpress):not(.woocommerce-page):not(.page-template-full-width-container) .primary-sidebar,
    .has-sidebar-both.bpsh-buddypress .primary-sidebar,
    .has-buddypress-sidebar-both:not(.bp-user):not(.single-item):not(.group-create):not(.page-template-full-width-container) .primary-sidebar,
    .has-bbpress-sidebar-both.bbpress:not(.buddypress) .primary-sidebar,
    .has-woocommerce-sidebar-both .primary-sidebar,
    .has-fluentcart-sidebar-both.single-fluent-products .primary-sidebar,
    .has-sidebar-both.buddypress.search-results .primary-sidebar {
        grid-column: 3;
        min-width: 0;
    }

    .site-header {
        grid-column: span 2;
    }

    .site-main,
    .has-woocommerce-sidebar-right .site-wrapper>.content-area,
    .has-fluentcart-sidebar-right.single-fluent-products .site-wrapper>.content-area {
        grid-column: 1;
        min-width: 0;
    }

    .has-sidebar-left:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress):not(.single-fluent-products) .site-main,
    .has-sidebar-left.buddyx-dokan.woocommerce:not(.buddypress):not(.bbpress):not(.woocommerce-page):not(.page-template-full-width-container) .site-main,
    .has-sidebar-left.bpsh-buddypress .site-main,
    .has-buddypress-sidebar-left:not(.bp-user):not(.single-item):not(.group-create):not(.page-template-full-width-container) .site-main,
    .has-bbpress-sidebar-left.bbpress:not(.buddypress) .site-main,
    .has-woocommerce-sidebar-left .site-main,
    .has-fluentcart-sidebar-left.single-fluent-products .site-main,
    .has-sidebar-left.buddypress.search-results .site-main {
        grid-column: 2;
        min-width: 0;
    }

    .primary-sidebar,
    .has-woocommerce-sidebar-left .site-wrapper>.content-area,
    .has-woocommerce-sidebar-both .site-wrapper>.content-area,
    .has-fluentcart-sidebar-left.single-fluent-products .site-wrapper>.content-area,
    .has-fluentcart-sidebar-both.single-fluent-products .site-wrapper>.content-area {
        grid-column: 2;
        min-width: 0;
    }

    .site-footer {
        grid-column: span 2;
    }

    /* BuddyPress Sidebar */
    .has-buddypress-sidebar-both.has-no-buddypress-sidebar-left .site-wrapper {
        grid-template-columns: 3fr 260px !important;
    }

    .has-buddypress-sidebar-both.has-no-buddypress-sidebar-right .site-wrapper {
        grid-template-columns: 260px 3fr !important;
    }

    .has-buddypress-sidebar-both.has-no-buddypress-sidebar-left .site-main {
        grid-column: 1 !important;
    }

    .has-buddypress-sidebar-both.has-no-buddypress-sidebar-left .primary-sidebar {
        grid-column: 2 !important;
    }

    /* Page Templates */
    .page-template-page-left-sidebar .site-wrapper {
        display: grid;
        grid-template-columns: 260px 3fr !important;
        grid-gap: 2rem;
        justify-content: center;
    }

    .page-template-page-left-sidebar .site-main {
        grid-column: 2 !important;
        min-width: 0;
    }

    .page-template-page-right-sidebar .site-wrapper {
        display: grid;
        grid-template-columns: 3fr 260px !important;
        grid-gap: 2rem;
        justify-content: center;
    }

    .page-template-page-right-sidebar .site-main {
        grid-column: 1 !important;
        min-width: 0;
    }

    .page-template-page-right-sidebar .primary-sidebar {
        grid-column: 2 !important;
        min-width: 0;
    }

    .page-template-page-both-sidebar .site-wrapper {
        display: grid;
        grid-template-columns: 260px 2fr 260px !important;
        grid-gap: 1.5rem;
        justify-content: center;
    }

    .page-template-page-both-sidebar .site-main {
        grid-column: 2 !important;
        min-width: 0;
    }

    .page-template-page-both-sidebar .primary-sidebar {
        grid-column: 3 !important;
        min-width: 0;
    }

    /* Post Templates */
    .post-template-post-left-sidebar .site-wrapper {
        display: grid;
        grid-template-columns: 260px 3fr !important;
        grid-gap: 2rem;
        justify-content: center;
    }

    .post-template-post-left-sidebar .site-main {
        grid-column: 2 !important;
        min-width: 0;
    }

    .post-template-post-right-sidebar .site-wrapper {
        display: grid;
        grid-template-columns: 3fr 260px !important;
        grid-gap: 2rem;
        justify-content: center;
    }

    .post-template-post-right-sidebar .site-main {
        grid-column: 1 !important;
        min-width: 0;
    }

    .post-template-post-right-sidebar .primary-sidebar {
        grid-column: 2 !important;
        min-width: 0;
    }

    .post-template-post-both-sidebar .site-wrapper {
        display: grid;
        grid-template-columns: 260px 2fr 260px !important;
        grid-gap: 1.5rem;
        justify-content: center;
    }

    .post-template-post-both-sidebar .site-main {
        grid-column: 2 !important;
        min-width: 0;
    }

    .post-template-post-both-sidebar .primary-sidebar {
        grid-column: 3 !important;
        min-width: 0;
    }

    /* Single Post Sidebar  */
    .has-single-post-left-sidebar .site-wrapper {
        display: grid;
        grid-template-columns: 260px 3fr !important;
        grid-gap: 2rem;
        justify-content: center;
    }

    .has-single-post-left-sidebar .site-main {
        grid-column: 2 !important;
        min-width: 0;
    }

    .has-single-post-right-sidebar .site-wrapper {
        display: grid;
        grid-template-columns: 3fr 260px !important;
        grid-gap: 2rem;
        justify-content: center;
    }

    .has-single-post-right-sidebar .site-main {
        grid-column: 1 !important;
        min-width: 0;
    }

    .has-single-post-right-sidebar .primary-sidebar {
        grid-column: 2 !important;
        min-width: 0;
    }

    .has-single-post-both-sidebar .site-wrapper {
        display: grid;
        grid-template-columns: 260px 2fr 260px !important;
        grid-gap: 1.5rem;
        justify-content: center;
    }

    .has-single-post-both-sidebar .site-main {
        grid-column: 2 !important;
        min-width: 0;
    }

    .has-single-post-both-sidebar .primary-sidebar {
        grid-column: 3 !important;
        min-width: 0;
    }

    .has-single-post-no-sidebar .site-wrapper {
        grid-template-columns: 1fr !important;
    }

    .has-single-post-no-sidebar .site-main {
        grid-column: 1 !important;
        min-width: 0;
    }

    /* Docs Component */
    .has-sidebar-left.bp-docs .site-wrapper,
    .has-sidebar-right.bp-docs .site-wrapper,
    .has-sidebar-both.bp-docs .site-wrapper {
        display: block !important;
    }

    .has-sidebar-left.has-docs-sidebar-right .site-wrapper,
    .has-sidebar-right.has-docs-sidebar-right .site-wrapper,
    .has-sidebar-both.has-docs-sidebar-right .site-wrapper {
        display: grid !important;
        grid-template-columns: 3fr 260px !important;
        grid-gap: 2rem;
        justify-content: center;
    }

    .has-sidebar-left.has-docs-sidebar-right .site-main,
    .has-sidebar-right.has-docs-sidebar-right .site-main,
    .has-sidebar-both.has-docs-sidebar-right .site-main {
        grid-column: 1 !important;
        min-width: 0;
    }

    .has-sidebar-left.has-docs-sidebar-right .primary-sidebar,
    .has-sidebar-right.has-docs-sidebar-right .primary-sidebar,
    .has-sidebar-both.has-docs-sidebar-right .primary-sidebar {
        grid-column: 2 !important;
        min-width: 0;
    }
}

.community-directory-left-sidebar {
    order: -1;
}

@media screen and (max-width: 60em) { 

    /* Sidebar and Content ordering in mobile */
    .site-wrapper {
        display: flex;
        flex-flow: row wrap;
    }

    .community-directory-left-sidebar {
        order: 0;
    }

    .left-sidebar,
    .woo-left-sidebar {
        order: 2;
        width: 100%;
        margin-top: 1rem;
    }

    #primary {
        order: 1;
        width: 100%;
    }

    .primary-sidebar,
    .woo-primary-sidebar {
        order: 3;
        width: 100%;
    }
}
/* Dark mode: classic TinyMCE (wp_editor) on any front-end form - bbPress,
 * BuddyPress Messages, Dokan, plugin forms. The editable body is an iframe
 * painted from custom.js; this block covers the chrome, the Text tab and the
 * menus and inline link toolbar TinyMCE appends to <body>. */
[data-bx-mode="dark"] .wp-editor-wrap .wp-editor-container,
[data-bx-mode="dark"] .wp-editor-wrap .mce-tinymce,
[data-bx-mode="dark"] .wp-editor-wrap .mce-toolbar-grp,
[data-bx-mode="dark"] .wp-editor-wrap .mce-statusbar,
[data-bx-mode="dark"] .wp-editor-wrap .mce-menubar,
[data-bx-mode="dark"] .wp-editor-wrap .mce-panel,
[data-bx-mode="dark"] .wp-editor-wrap .mce-listbox,
[data-bx-mode="dark"] .wp-editor-wrap .wp-switch-editor,
[data-bx-mode="dark"] .wp-editor-wrap .quicktags-toolbar,
[data-bx-mode="dark"] .wp-editor-wrap .wp-editor-area,
[data-bx-mode="dark"] .mce-floatpanel,
[data-bx-mode="dark"] .mce-inline-toolbar-grp {
    background-color: var(--bx-color-bg-elevated) !important;
    border-color: var(--bx-color-border) !important;
    color: var(--bx-color-fg) !important;
}

[data-bx-mode="dark"] .wp-editor-wrap .mce-btn button,
[data-bx-mode="dark"] .wp-editor-wrap .mce-ico,
[data-bx-mode="dark"] .wp-editor-wrap .mce-statusbar .mce-path-item,
[data-bx-mode="dark"] .wp-editor-wrap .quicktags-toolbar input[type="button"],
[data-bx-mode="dark"] .mce-menu .mce-text,
[data-bx-mode="dark"] .mce-inline-toolbar-grp .mce-ico {
    color: var(--bx-color-fg) !important;
}

[data-bx-mode="dark"] .wp-editor-wrap .quicktags-toolbar input[type="button"] {
    background-color: var(--bx-color-bg-muted) !important;
    border-color: var(--bx-color-border) !important;
}

[data-bx-mode="dark"] .wp-editor-wrap .mce-btn:hover,
[data-bx-mode="dark"] .wp-editor-wrap .mce-btn.mce-active,
[data-bx-mode="dark"] .wp-editor-wrap .quicktags-toolbar input[type="button"]:hover,
[data-bx-mode="dark"] .mce-inline-toolbar-grp .mce-btn:hover,
[data-bx-mode="dark"] .mce-menu .mce-menu-item:hover,
[data-bx-mode="dark"] .mce-menu .mce-menu-item:focus,
[data-bx-mode="dark"] .mce-menu .mce-menu-item.mce-selected {
    background-color: var(--bx-color-bg-muted) !important;
    border-color: var(--bx-color-border-strong) !important;
}

/* WooCommerce draws cart remove links and required asterisks from --wc-red (#a00), which is 2.3:1 on the dark surface. This lives here, not in the WooCommerce sheet, because the mini cart also shows on pages where that sheet is not loaded. */
:root[data-bx-mode="dark"] {
    --wc-red: var(--bx-color-error);
}
