/* SIPA Search */

.sipa-search-light button[type="submit"] {
    appearance: none;
    display: inline-block;
    background-color: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    font-size: 0;
}
.sipa-search-light button[type="submit"]:before {
    font-family: 'sl';
    content: '\e81b';
    font-size: 24px;
    color: #000000;
}
.sipa-search-light {
    margin: 0;
    padding: 0;
}
.sipa-search-light > * {
    margin: 0;
}
[sipop] .sipa-search-light > p {
    position: relative;
    z-index: 1;
}
[sipop] .sipa-search-results {
    max-width: 640px;
    max-height: 85vh;
    overflow: auto;
}
[sipop] .sipa-search-light [type="search"] {
    width: 100%;
    padding-left: 40px;
}
[sipop] .sipa-search-light button[type="submit"] {
    position: absolute;
    z-index: 5;
    inset: 0;
    width: max-content;
    height: max-content;
    margin: auto auto auto  10px;
} 

[sipop] {
    position: fixed;
    z-index: 1001;
    inset: 0;
    background-color: rgba(255,255,255,.68);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

[sipop] > .inner {
    position: absolute;
    z-index: 1;
    inset: 2em 0;
    height: max-content;
    width: max-content;
    min-width: 640px;
    box-sizing: border-box;
    background-color: #ffffff;
    padding: 2em;
    box-shadow: 0 0 10px 2px rgba(0,0,0,.2);
    border:1px solid #000000;
    margin: auto;
}

[sipop] a.close-sipa-popup {
    position: absolute;
    z-index: 10;
    inset: 0 0 auto auto;
    line-height: 1;
    background-color: #000000;
    color: #ffffff !important;
    padding: .2em;
}
[sipop] {
    visibility: hidden;
    content-visibility: hidden;
    opacity: 0;
    height: 0;
}
[sipop].active {
    visibility: visible;
    content-visibility: visible;
    opacity: 1;
    height: 100%;
}

.sipa-search-results.process {
    position: relative;
    z-index: 1;
    min-height: 120px;
}

.sipa-search-results {
    display: flex;
    flex-direction: column;
    gap: 2em;
}
.sipa-search-results > .result {
    display: flex;
    flex-direction: row;
    gap: 1em;
    align-items: center;
    position: relative;
    z-index: 1;
}
.sipa-search-results > .result a.stick {
    position: absolute;
    z-index: 10;
    inset: 0;
    font-size: 0;
}
.sipa-search-results > .result > picture {
    max-width: max-content;
    min-width: 150px;
}
.sipa-search-results > .result > picture img {
    display: block;
    width: 150px;
    height: auto;
    margin: 0;
}
.sipa-search-results > .result > .text h2 {
    font-size: 1.2em;
    margin: 0;
    line-height: 1.2;
}
.sipa-search-results > .result > .text p {
    margin: .25em 0 0;
    font-size: .8em;
}
.sipa-search-results > .result > .text p:empty {
    display: none;
}
.sipa-search-results.fill {
    padding-top: 2em;
}
.sipa-search-results:not(.fill) ~ p._go {
    display: none;
}

#mobile-menu-sidebar .sipa-search-light [type="search"] {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,.6);
    border-width: 0 0 1px 0;
    color: #ffffff;
    padding:0 0 1em 2em;
    width: 100%;
}
#mobile-menu-sidebar .sipa-search-light p {
    position: relative;
    z-index: 1;
}
#mobile-menu-sidebar .sipa-search-light [type="search"]::placeholder {
    color: rgba(255,255,255,.6);
}
#mobile-menu-sidebar .sipa-search-light button[type="submit"] {
    position: absolute;
    z-index: 1;
    width: max-content;
    height: max-content;
    inset: 0;
    margin: auto auto auto .2em;
    color: #ffffff;
}
#mobile-menu-sidebar .sipa-search-light button[type="submit"]:before {
    color: #ffffff;
}

#mobile-menu-sidebar .sipa-search-results > .result {
    align-items: flex-start;
}
#mobile-menu-sidebar .sipa-search-results > .result .text p {
    line-height: 1.3;
}
#mobile-menu-sidebar .sipa-search-results.process:before {
    background-color: transparent;
}
#mobile-menu-sidebar .sipa-search-results.process:after {
    color: #ffffff;
    font-size: 3rem;
    line-height: 1;
}

.sl-search-container a.open-sipa-popup {
    display: none;
}

a.open-sipa-popup.two {
    font-size: 1.5rem;
}

#sl-clonable-search {
	position:relative;
	z-index:1;
}
#sl-clonable-search :is([type="text"],[type="search"]) {
	width:100%;
}
#sl-clonable-search > #clonable-search-container {
	inset:100% 0 auto 0;
}

@media screen and (min-width:969px) {
    .sl-search > .inner:before {
        content: "";
        width: 0;
        position: absolute;
        z-index: 1;
        right: calc(100% + 1px);
        top: -1px;
        bottom: -1px;
        background: transparent url(../img/menu-marble.png) center top / auto repeat-y;
        width: 20px;
    }
}

@media screen and (orientation:portrait) {
    [sipop] > .inner {
        min-width: 100%;
        max-width: 100%;
    }
    [sipop] .sipa-search-results {
        max-width: unset;
        max-height: 90vh;
    }
    .sipa-search-results > .result > picture {
        min-width: 80px;
    }
    .sipa-search-results > .result > picture img {
        width: 80px;
    }

}

.trans300 { -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease; }
.trans700,
[sipop],
[sipop] > .inner { -webkit-transition: all 0.7s ease; -moz-transition: all 0.7s ease; -ms-transition: all 0.7s ease; -o-transition: all 0.7s ease; transition: all 0.7s ease; }