/*
Theme Name:   zeal - Twenty Twenty Four
Theme URI:    http://code.ecomerc.com/
Description:  Custom Twenty Twenty-Four child theme for zeal
Author:       zeal
Author URI:   http://zealofzebras.com
Template:     twentytwentyfour
Version:      1.2.15
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain:  twentytwentyfour-zeal
*/

:root {
    --zeal-header-height: 78px;
    --zeal-header-height-mobile: 68px;
    --zeal-header-surface: rgba(83, 71, 97, 0.92);
    --zeal-header-border: rgba(255, 255, 255, 0.5);
    --zeal-header-shadow: 0 12px 32px rgba(47, 41, 53, 0.22);
    --zeal-menu-text: #172033;
    --zeal-menu-on-bar: #ffffff;
    --zeal-menu-muted: #5b6475;
    --zeal-menu-panel: rgba(255, 255, 255, 0.98);
}

body.page-template-wp-custom-template-cover-page.z-top > .wp-site-blocks:before,
body.post-template-default.z-top > .wp-site-blocks:before {
    height: 0;
}

h5 {
    text-transform: none;
}

body.page-template-wp-custom-template-cover-page main {
    margin-top: 0 !important;
}


body > .wp-site-blocks:before {
    content: ' ';
    width: 100%;
    display: block;
    height: var(--zeal-header-height);
    background-color: var(--zeal-header-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: fixed;
    border-bottom: 1px solid var(--zeal-header-border);
    box-shadow: var(--zeal-header-shadow);
    z-index: 100;
    top: 0;
}
body > .wp-site-blocks header > div.has-background {
    /* background: transparent; */
    background-color: transparent;
    background: none !important;
}

body > .wp-site-blocks {
    position: relative;
    padding-bottom: 0;
    padding-top: var(--zeal-header-height);
}

main .wp-block-cover.cover-feature {
    margin-top: -159px;
    position: relative;
    z-index: 99;
    background-color: white;
}



main .wp-block-cover.cover-feature-2 {
    margin-top: -110px;
    background-color: white;
}

body.page-template-wp-custom-template-cover-page main .wp-block-cover.cover-feature-2 {
    height: 100vh;
    align-items: flex-end;
    justify-content: flex-end;
}

main .wp-block-cover.cover-feature-2 h1 {
    text-align: right;
    color: #000
}

body.page-template-wp-custom-template-cover-page main .wp-block-cover.cover-feature-2 h1 {
    color: #fff
}


body.admin-bar main .wp-block-cover.cover-feature-2 {
    margin-top: -125px;
    background-color: white;
}

.cover-feature-2.wp-block-cover .wp-block-cover__inner-container {
    color: white;
}

footer hr.wp-block-separator {
    margin-top: 4em;
    margin-bottom: 4em;
}

.wp-block-cover.is-layout-constrained > .wp-block-cover__inner-container {
    max-width: var(--wp--style--global--wide-size);
}

.wp-block-cover.is-layout-constrained .has-background-dim {
    max-width: 100%;
    margin: 0;
}

header > div > div {
    padding-top: 16px;
    padding-right: 28px;
    padding-bottom: 16px;
    padding-left: 28px;
}
header.wp-block-template-part {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

@media only screen and (max-width: 1000px) {
    header > div > div {
        padding-right: 20px;
        padding-left: 20px;
    }
    
    /*
    main .wp-block-cover.cover-feature {
        min-height: 120px !important;
    }*/
}


footer .wp-block-navigation__container {
    row-gap: 0;
    line-height: 1.6;
}



body.admin-bar header.wp-block-template-part ,
body.admin-bar > .wp-site-blocks:before

{
    top: 28px;
    
} 
/*body.admin-bar #wrapper{margin-top: 145px;}*/
@media (max-width: 781px) {
    .order-second-mobile {
     order: 2;
    }
}

.wp-block-gallery.logolist .wp-block-image {
height: 150px;
/*border: 1px solid #00000012;*/
	padding: 0;
}

.wp-block-gallery.logolist.has-nested-images .wp-block-image img {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	margin: 0 auto;
	left: 0;
	right: 0;
	max-height: 140px;
	max-width: 95% !important;
}
.wp-block-gallery.logolist.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a, .wp-block-gallery.logolist.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
    object-fit: contain;
}

main ._text_highlighted mark {
color: #f3f3f3;
background: #7C6A86;
}

figure.team-image:hover figcaption {
    transition: opacity 1s;
    opacity: 100%;
}

figure.team-image figcaption {
    display: block;
    position: absolute;
    bottom: 0;
    background: white;
    width: 100%;
    margin-bottom: 0;
    padding: 10px;
    transition: opacity 1s;
    opacity: 0;
}

figure.team-image {
    position: relative;
}

.papercite_bibtex pre, .papercite_item pre {
    white-space: pre-wrap;
    font-size: 0.6em;
    overflow: scroll;
}

.papercite_item_image {
    float: left;
    /* margin-right: 10px; */
    padding-right: 10px;
    max-width: 30%;
}

img.papercite_thumb {
    float: left;
    padding-right: 10px;
    max-height: 6em;
}

.papercite_bibliography li {
    margin-top: 1.5em;
}

.papercite_toggle:link, .papercite_toggle:visited {
    color: lightgrey;
}


.page-template-default  .cover-feature, .page-template-default .cover-feature-2 {
    background: none !important;
    color: black;
    
}

.page-template-default .cover-feature .has-background-dim, .page-template-default .cover-feature-2 .has-background-dim {
    display: none;
}

.page-template-default .cover-feature-2 h2.wp-block-post-title {
    color: black !important;
    /* padding-bottom: 100px; */
}

main > div:not(.entry-content) > hr.wp-block-separator, footer hr.wp-block-separator {
    margin-top:6em;
    margin-bottom: 6em;
    color: lightgrey;
}

footer nav {
    margin-bottom: 4em;
}

footer .wp-container-9 + p {
    margin-top: 4em;
}


header img, body > .wp-site-blocks:before {
    -webkit-transition: height 1s, width 1s; 
    -moz-transition: height 1s, width 1s; 
    -ms-transition: height 1s, width 1s; 
    -o-transition: height 1s, width 1s; 
    transition: height 1s, width 1s; 
}

.has-media-on-the-right:not(.has-background).alignwide .wp-block-media-text__content {
 padding-left: 0;
}

@media (max-width: 1000px) {
    nav .wp-block-navigation__responsive-container-open:not(.always-show) {
        display: flex;
    }
    nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }
        
    header img {
        width: 70px;
    }
    
    body > .wp-site-blocks:before {
        height: var(--zeal-header-height-mobile);
    }

    body > .wp-site-blocks {
        padding-top: var(--zeal-header-height-mobile);
    }
}

@media (max-width: 781px)
{
.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
    flex-basis: 100%!important;
    padding-left: 0;
    padding-right: 0;
}

figure.wp-block-video.alignfull {
    margin-left: -24px;
    margin-right: -24px;
}

}


.b-corp-table {
    overflow-x: auto;
    padding: 0.6em 0;
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style2: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.b-corp-table2::-webkit-scrollbar {
    display: none;
}


.b-corp-table.wp-block-table table.has-fixed-layout {
    min-width: 60em;
    position: relative;
    width: 96%;
    margin-left: 2%;
}

.b-corp-table td:empty {
    border: none;
}

.b-corp-table tbody tr td {
    position: relative;
}

.b-corp-table tbody tr td, .b-corp-table thead tr th {
    padding-top: 0.1em;
    padding-bottom: 0.1em;
}

.b-corp-table tbody tr:nth-of-type(n+2):nth-of-type(-n+10) td:nth-of-type(5):before,
.b-corp-table tbody tr:nth-of-type(n+5):nth-of-type(-n+10) td:nth-of-type(4):before,
.b-corp-table tbody tr:nth-of-type(n+5):nth-of-type(-n+9) td:nth-of-type(3):before,
.b-corp-table tbody tr:nth-of-type(n+5):nth-of-type(-n+6) td:nth-of-type(2):before,
.b-corp-table tbody tr:nth-of-type(3) td:nth-of-type(1):before
{
    display: block;
    content: ' ';
    position: absolute;
    width: 100%;
    z-index: -2;
    margin-left: -27px;
    margin-right: 18px;
    border-radius: 0px;
    height: 100%;
    top: -9px;
    padding-top: 0;
    padding-bottom: 1px;
    padding-right: 18px;
    padding-left: 18px;
}

.b-corp-table tbody tr:nth-of-type(2):nth-of-type(2) td:nth-of-type(5):before,
.b-corp-table tbody tr:nth-of-type(5):nth-of-type(5) td:nth-of-type(4):before,
.b-corp-table tbody tr:nth-of-type(5):nth-of-type(5) td:nth-of-type(3):before,
.b-corp-table tbody tr:nth-of-type(5):nth-of-type(5) td:nth-of-type(2):before,
.b-corp-table tbody tr:nth-of-type(3):nth-of-type(3) td:nth-of-type(1):before
{
    border-top-left-radius:45px;
    border-top-right-radius:50%;
}


.b-corp-table tbody tr:nth-of-type(10):nth-of-type(10) td:nth-of-type(5):before,
.b-corp-table tbody tr:nth-of-type(10):nth-of-type(10) td:nth-of-type(4):before,
.b-corp-table tbody tr:nth-of-type(9):nth-of-type(9) td:nth-of-type(3):before,
.b-corp-table tbody tr:nth-of-type(6):nth-of-type(6) td:nth-of-type(2):before,
.b-corp-table tbody tr:nth-of-type(3):nth-of-type(3) td:nth-of-type(1):before
{
    padding-bottom: 18px;
    border-bottom-left-radius:50%;
    border-bottom-right-radius:45px;
}

.b-corp-table tbody tr td:nth-of-type(5):before
{
    background: #efddcf7f;
    color: white;
}

.b-corp-table tbody tr td:nth-of-type(4):before
{
    background: #abd1c97f;
}

.b-corp-table tbody tr td:nth-of-type(3):before
{
    background: #91bfe37f;
}

.b-corp-table tbody tr td:nth-of-type(2):before
{
    background: #abd1c97f;
}

.b-corp-table tbody tr td:nth-of-type(1):before
{
    background: #efddcf7f;
}

.zeal-arrow {
    --zeal-arrow-focus-x: 0%;
    --zeal-arrow-bleed: 0px;
    background-image: url(assets/arrow-o.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: calc(50% + var(--zeal-arrow-focus-x)) center;
    height: 19em;
    padding-top: clamp(1.8rem, 3.6vw, 3.1rem);
    padding-right: clamp(3.2rem, 10vw, 8.2rem);
    padding-bottom: clamp(2.2rem, 4.4vw, 4.1rem);
    padding-left: clamp(2.8rem, 9vw, 7.4rem);
    max-height: 30vw;
    flex-wrap: nowrap !important;
    margin-top: 6em;
    margin-bottom: 6em;
    gap: clamp(0.75rem, 1.8vw, 1.5rem);
}


.zeal-arrow > .wp-block-group,
.zeal-arrow > .wp-block-group.zeal-arrow-lane {
    height: 100%;
    max-width: 31%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.zeal-arrow .zeal-arrow-lane > p:first-child {
    margin-bottom: 0.35rem;
}

.zeal-arrow .zeal-arrow-lane h4 {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

.zeal-arrow .zeal-arrow-lane p {
    margin-top: 0;
    margin-bottom: 0.65rem;
}

.zeal-arrow ul {
    margin-top: 0;
    padding-inline-start: 18px;
}

.zeal-arrow ul li {
    margin-top: 0.3em
}


@media (max-width: 1000px) {
        
    .zeal-arrow {
        --zeal-arrow-focus-x: 10%;
        --zeal-arrow-bleed: 2.25rem;
        background-size: contain;
        background-position: calc(50% + var(--zeal-arrow-focus-x)) center;
        height: auto;
        max-height: none;
        min-height: 18.5rem;
        padding-top: 2.2rem;
        padding-right: 1.3rem;
        padding-bottom: 2.4rem;
        padding-left: 1.3rem;
        width: calc(100% + (var(--zeal-arrow-bleed) * 2));
        margin-left: calc(var(--zeal-arrow-bleed) * -1);
        margin-right: calc(var(--zeal-arrow-bleed) * -1);
        flex-wrap: wrap !important;
        gap: 1rem;
    }

    .zeal-arrow > .wp-block-group,
    .zeal-arrow > .wp-block-group.zeal-arrow-lane {
            max-width: 100%;
            min-width: 100%;
            font-size: 80%;
    }
    
    .zeal-arrow ul {
        padding-inline-start: 0;
        list-style: none;
    }
    
    .zeal-arrow ul li {
        margin-top: 0.3em
    }
    
    .zeal-arrow ul li:first-letter {
        font-weight: bold;
    }
    
}

@media (max-width: 700px) {
    .zeal-arrow {
        --zeal-arrow-focus-x: 16%;
        --zeal-arrow-bleed: 3.25rem;
        min-height: 17.5rem;
        padding-top: 1.9rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 540px) {
    .zeal-arrow {
        --zeal-arrow-focus-x: 21%;
        --zeal-arrow-bleed: 3.75rem;
        min-height: 16.8rem;
    }
}

.zeal-arrow:before {
    content: none;
}
.zeal-arrow:after {
    content: none;
}


blockquote.wp-block-quote.clean {
    border-left: none;
}

.wpml-language-switcher-block.wp-block-navigation {
    width: auto !important;
    width: fit-content !important;
}


/*
            a:where(:not(.wp-element-button)) {
                color: var(--wp--preset--color--contrast);
                text-decoration: underline;
            }

            a:where(:not(.wp-element-button)):hover {
                text-decoration: none;
            }

            a:where(:not(.wp-element-button)):focus {
                text-decoration: underline dashed;
            }

            a:where(:not(.wp-element-button)):active {
                color: var(--wp--preset--color--secondary);
                text-decoration: none;
            }*/