/* UM Site/ Global Footer Link Overrides */
.um-site-footer a, .um-global-footer a {
    font-weight: var(--wp--custom--font-weight--regular);
}

/* Links */
a:focus {
    outline: thin dotted;
    outline-offset: 0.25rem;
}
/* Some help for Kadence links so that the a:focus outline works */
a.kb-advanced-heading-link:focus,
.um-logo a.kb-advanced-image-link:focus {
    display: block;
}

/* Global Header */
.global-header .global-nav .kb-nav-link-content {
    font-weight: var(--wp--custom--font-weight--black);
}

.wp-block-kadence-off-canvas .kb-off-canvas-close {
	top: 8px;
	right: 0;
    	margin-right: var(--wp--style--root--padding-right);
}
.kb-header-container.kb-header-sticky-wrapper {
    transition: top 0.2s ease-in-out;
}

/* 404 svg bg */
body.error404 {
    background-color: var(--wp--preset--color--base-2);
}

/* Google Search Results */
.search-results, .search-no-results {

    .gsc-inline-block {
        font-family: var(--wp--preset--font-family--primary);
        font-weight: var(--wp--custom--font-weight--regular);
        font-size: 1rem;
        color: var(--wp--preset--color--brand-1);
    }

    .gsc-selected-option-container {
        background-color: var(--wp--preset--color--base-2);
        border: 0;
        border-radius: 35px;
        font-size: 1rem;
        padding: 0 36px 0 20px;
        font-weight: normal;
    }

    .gsc-orderby-label {
        color: var(--wp--preset--color--brand-1);
        padding: 4px 4px 10px 4px;
    }

    .gsc-result-info {
        color: var(--wp--preset--color--main);
        font-size: var(--wp--preset--font-size--base);
    }

    .gsc-control-cse .gsc-results .gsc-imageResult {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .gsc-control-cse .gs-result .gs-title, .gsc-control-cse .gs-result .post-title {
        font-family: var(--wp--preset--font-family--primary);
        margin-bottom: 5px;
        font-weight: var(--wp--custom--font-weight--medium);
        font-size: var(--wp--preset--font-size--medium);
        line-height: var(--wp--custom--line-height--relaxed);
        height: auto;
        overflow: visible;
    }

    .gs-result .gsc-url-top {
        margin-bottom: 5px;
        text-transform: uppercase;
        color: var(--wp--preset--color--brand-1);
        font-family: var(--wp--preset--font-family--quaternary);
        font-size: var(--wp--preset--font-size--small);
        font-weight: var(--wp--custom--font-weight--bold);
        letter-spacing: 1.4px;
    }

    .gs-webResult div.gs-visibleUrl {
        color: #757575;
    }

    .gs-webResult.gs-result {
        margin-bottom: 10px;
        padding: 20px 0;
    }

    .gsc-webResult .gsc-result, 
    .gsc-webResult.gsc-result:hover {
        border-bottom: 1px solid #3698D4;
    }

    .gsc-expansionArea > div:nth-last-child(-n + 2), .gsc-expansionArea > div:nth-last-child(-n + 2):hover {
        border-bottom: none;
    }

    .gsc-control-cse.gsc-control-cse-en {
        padding: 10px 0;
    }

    .gs-webResult:not(.gs-no-results-result):not(.gs-error-result) .gs-snippet, .gs-fileFormatType {
        color: var(--wp--preset--color--main);
        font-weight: var(--wp--custom--font-weight--regular);
        font-size: var(--wp--preset--font-size--base);
        font-family: var(--wp--preset--font-family--primary);
    }

    .gsc-refinementHeader > span {
        font-size: var(--wp--preset--font-size--medium);
    }

    .wp-element-button, .wp-block-button__link {
        background-color: var(--wp--preset--color--brand-1);
    }

    .gsc-control-cse .gs-result .gs-title * {
        font-size: revert;
    }
    .gsc-control-cse .gsc-option-menu {
        font-size: 16px;
        font-weight: var(--wp--custom--font-weight--medium);
    }
}

/* GSE Pagination */
.gsc-results .gsc-cursor-box .gsc-cursor-page {
    padding: 0.4em 0.8em;
    color: var(--wp--preset--color--accent-2) !important;
    font-family: var(--wp--preset--font-family--quaternary);
    font-weight: var(--wp--custom--font-weight--bold);
    text-underline-offset: 2px;
}

.gsc-results .gsc-cursor-box .gsc-cursor-page:hover {
    text-decoration: underline;
    color: var(--wp--preset--color--accent-3) !important;
}

.gsc-results .gsc-cursor-page.gsc-cursor-current-page {
    color: var(--wp--preset--color--brand-1) !important;
}

.gsc-results .gsc-cursor-box .gsc-cursor-current-page:hover {
    text-decoration: none !important;
    color: var(--wp--preset--color--brand-1) !important;
}

.gsc-cursor-page {
    text-decoration: none;
    font-size: 17px;
    text-transform: uppercase;
}

.gcsc-more-maybe-branding-root {
    display: none;
}

.gsc-results .gsc-cursor-box {
    margin: 10px 10px 10px 0 !important;
}

/* single.html, post-feature.html, post-no-feature.html templates */
.single-post figcaption {
    max-width: 750px;
    margin: 0.5rem auto 0 auto;
    font-family: var(--wp--preset--font-family--primary);
    font-size: 0.94rem;
    color: #575757;
    line-height: 1.5;
}
.single-post .fullwidth-featured-img h1 {
    max-width: 60ch;
    text-wrap: balance;
}
.single-post .um-post-date-social-share {
    align-items: center;
}
.single-post .um-post-social-share {
    font-size: 1em;
    gap: 0.4ch;
}
.single-post .wp-block-post-terms a {
    font-weight: var(--wp--custom--font-weight--regular);;
}
@media only screen and (max-width : 1024px) {
    .post-template-default main {
        margin-top: 5vw!important;
    }
}
.single-post .is-layout-constrained .wp-block-kadence-image  {
    max-width: 1000px;
}
.single-post .is-layout-constrained .alignleft,
.single-post .is-layout-constrained .alignright {
    margin-block-start: 2em;
    margin-block-end: 1em;
}
.single-post .is-layout-constrained .alignleft {
    margin-inline-start: 0;
    margin-inline-end: 2em;
}
.single-post .is-layout-constrained .alignright {
    margin-inline-start: 2em;
    margin-inline-end: 0;
}
@media only screen and (max-width : 640px) {
    .single-post .is-layout-constrained .alignleft,
    .single-post .is-layout-constrained .alignright {
        float: none;
        margin-inline: auto;
        margin-block: 1.5em;
    }
}

/* The Events Calendar style overrides */
html * {
    --tec-color-link-accent: var(--wp--preset--color--accent-2);
    --tec-color-link-accent-hover: var(--wp--preset--color--accent-2);
    --tec-color-link-primary: var(--wp--preset--color--accent-2);
    --tec-color-background-events-bar-submit-button: var(--wp--preset--color--accent-2);
    --tec-color-accent-primary: var(--wp--preset--color--accent-2);
    --tec-color-button-primary:  var(--wp--preset--color--accent-2);
    --tec-color-background-events-bar-submit-button-hover: var(--wp--preset--color--accent-2);
}
.tribe-events-content a:active,
.tribe-events-content a:focus,
.tribe-events-content a:hover {
    border-bottom: none;
}
.tribe-common .tribe-common-anchor-thin:active,
.tribe-common .tribe-common-anchor-thin:focus,
.tribe-common .tribe-common-anchor-thin:hover {
    border-bottom-color: unset !important;
}
.tribe-events .tribe-events-c-search__button:focus,
.tribe-events .tribe-events-c-search__button:hover,
.tribe-events button.tribe-events-c-search__button:focus,
.tribe-events button.tribe-events-c-search__button:hover {
    opacity: .8;
}
.tribe-events-single-event-title {
    font-family: var(--wp--preset--font-family--tertiary);
    color: var(--wp--preset--color--brand-1);
}

/* The Events Calendar organizer shortcode style overrides */
.single-tribe_organizer section.tribe-common-l-container {
    padding-top: var(--tec-spacer-0) !important;
}
.single-tribe_organizer .tribe-common-l-container br {
    /* remove extraneous <br> tags generated by shortcode */
    display: none;
}

/* Print Styles */
@media print {
    /* Stop Kadence Blocks animation */
    [data-aos^=fade] {
        opacity: 1 !important;
    }
    img {
        max-height: 300px !important;
        width: auto !important;
        margin: auto !important;
    }
    h1, h2, h3, h4, h5, h6, strong, em {
        color: #003263 !important;
        text-transform: none !important;
        text-decoration: none !important;
        font-weight: normal !important;
    }

    /* Only show logo out of the header, hide everything else */
    header .wp-block-kadence-header-desktop {
        display: block !important;
        position: static !important;
    }
    header .wp-block-kadence-header-tablet, header .wp-block-kadence-header-tablet.kb-header-sticky-wrapper {
        display: none !important;
        height: 0 !important;
    }
    header .kadence-header-row-inner {
        display: block !important;
    }
    header .kb-header-sticky-wrapper {
        display: block !important;
    }
    header .kb-header-container div:not(:first-child), .back-to-top-button, .area-footer, .area-cta, .um-post-date-social-share > *:not(.wp-block-post-date), .featured-img-wrapper, .kt-post-grid-layout-carousel-wrap {
        display: none !important;
        visibility: hidden !important;
    }

    /* Make date a darker color on news posts */
    .um-post-date-social-share .wp-block-post-date {
        color: #003263 !important;;
    }

    /* Show Accordion and Tab content */
    .kt-accordion-panel.kt-accordion-panel-hidden, .wp-block-kadence-tab.kt-tab-inner-content {
        max-height: unset !important;
        overflow: unset !important;
        display: block !important;
    }
    .kt-accordion-panel .kt-accordion-panel-inner {
        border: 0 !important;
    }
    .kt-blocks-accordion-header, .wp-block-kadence-tabs .kt-tab-title, .wp-block-kadence-tab {
        border: 0 !important;
        background-color: none !important;
        background: none !important;
    }
    .kt-blocks-accordion-title, .wp-block-kadence-tabs .kt-title-text {
        font-size: 24px !important;
        color: #003263 !important;
    }

    /* Add copyright */
    .wp-site-blocks:after {
        content: "© The University of Maine";
        text-align: center;
        display: inline-block;
        width: 100%;
    }
}

/* Campus Maps */
@media (min-width: 48em) {
	.ums-building-list-inner-container {
		column-count: 2;
		column-gap: 20px;
		width: unset;
		padding-right: unset;
	}
}
.ums-campus-map-legend-ul li label input,
.ums-campus-map-legend-ul li label img {
	display: inline-block;
	vertical-align: middle;
}
