/**
 * Site-onderdelen die op ELKE Carmel-site hetzelfde zijn: header en
 * navigatie, mobiel menu, footer, zoekresultaten en de agenda.
 *
 * Deze regels stonden letterlijk gelijk in alle drie de thema's
 * (theme-ccg, theme-ccs, theme-bce) en zijn daar in oktober 2026 uit
 * gehaald (zie CSS-ANALYSE.md). Wat per school verschilt (kleuren,
 * maten, fonts) blijft in het thema — dat laadt na dit bestand en wint
 * dus altijd.
 *
 * Paden naar afbeeldingen zijn relatief aan dit bestand
 * (assets/images/ in de plugin).
 */

.knop-terug svg path {
    fill: currentColor;
}
.wp-block-kadence-rowlayout .wp-block-kadence-rowlayout {
    margin-bottom: 0;
}
.wp-block-kadence-rowlayout.no-row-margin {
    margin-bottom: 0;
}
.colorbackgroundrow > div {
    padding: 0 !important;
}
@media (max-width:768px) {
    .hide-on-mobile {
        display: none;
    }
}
header.site-header:has(.menu-item--toggled-on) {
    z-index: 4;
}
/* Topmenu: icoon naast een menu-item (bv. "Inloggen") in een vierkantje
   met rand. Formaat en afronding zijn bij alle scholen gelijk; de randkleur
   volgt standaard de tekstkleur van het menu en is per thema in te stellen
   met --carmel-menu-icon-border-color. */
#secondary-menu .kadence-menu-has-icon .menu-label-icon-wrap {
    border: 1px solid var(--carmel-menu-icon-border-color, currentColor);
    border-radius: 8px !important;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* geen dropdown-pijltje naast zo'n icoon (het submenu opent nog steeds bij hover) */
#secondary-menu .kadence-menu-has-icon .menu-label-icon-wrap + .dropdown-nav-toggle {
    display: none;
}
nav#site-navigation {
    height: 100%;
}
nav#site-navigation ul:not(.sub-menu) > li {
    height: 100%;
    display: flex;
    align-items: center;
}
.header-menu-container a {
    text-decoration: none;
}
.header-navigation ul ul.sub-menu {
    box-shadow: none !important;
}
.header-navigation ul ul.submenu {
    box-shadow: none !important;
}
.carmel-menu-hover-link {
    line-height: 24px;
    text-decoration: none;
}
.carmel-menu-hover-link:last-child {
    margin-bottom: 0;
}
@media (max-width:1025px) {
    .mobile-navigation ul li .sub-menu a {
        line-height: 1.2;
        padding: 0 .5em;
    }
    .iconmenu {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        background-image: url('../../images/loginicon.svg');
        background-repeat: no-repeat;
        background-size: 20px 20px;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0.5px solid rgba(0, 0, 0, 0.3);
    }
    .search-toggle-open-container .search-toggle-open.search-toggle-style-bordered {
        border: 0.5px solid rgba(0, 0, 0, 0.3);
    }
    .mobile-header-button-wrap .mobile-header-button-inner-wrap .mobile-header-button {
        border: 0.5px solid rgba(0, 0, 0, 0.3);
    }
    .mobile-toggle-open-container #mobile-toggle {
        border: 0.5px solid rgba(0, 0, 0, 0.3);
    }
    .search-toggle-open-container .search-toggle-open .search-toggle-icon {
        font-size: 20px !important;
    }
}
div#mobile-drawer .drawer-header {
    width: calc(100% - 32px);
    margin: 0 auto;
}
ul.sub-menu.show-drawer {
    padding-left: 0 !important;
}
.bighero .wp-block-search .wp-block-search__button {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carmel-infohub__nav ul {
    padding-left: 0 !important;
}
.search-results .site-main h1 {
    text-align: center;
}
.search-results .excerpt_part {
    line-height: 120%;
    color: #000;
}
.search-archive .excerpt_part strong {
    text-decoration: underline;
}
.search-results .site-main .entry-list-item article {
    box-shadow: none;
}
.search-results .site-main .entry-list-item article .entry-content-wrap {
    padding: 0;
}
.search-results .site-main article.type-attachment {
    box-shadow: none;
}
.search-results .site-main .entry-list-item article .wp-element-button {
    display: flex;
    padding: 10px;
}
.search-results .site-main article.type-attachment .wp-element-button {
    display: flex;
    padding: 10px;
}
#main.site-main:has(.carmel-search-results-searchbar) {
    display: flex;
    flex-direction: column;
}
#main.site-main:has(.carmel-search-results-searchbar) .entry-header.search-archive-title {
    order: 1;
}
#main.site-main:has(.carmel-search-results-searchbar) .carmel-search-results-searchbar {
    order: 2;
}
#main.site-main:has(.carmel-search-results-searchbar) #archive-container {
    order: 3;
}
#main.site-main:has(.carmel-search-results-searchbar) nav.pagination {
    order: 4;
}
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 4L12 12M12 4L4 12' stroke='%23030A0A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.carmel-search-results-searchbar {
    border: 1px solid #E5E5E5;
}
.carmel-search-results-searchbar input[type=search] {
    border-width: 0 !important;
    height: 104px;
}
.carmel-search-results-searchbar .wp-block-search__button.wp-block-search__button {
    height: 104px;
    width: 104px;
    background-size: 90px 90px;
}
.carmel-search-results-searchbar .wp-block-search__button.wp-block-search__button:hover {
    transform: scale(1.1);
}
@media (max-width:1024px) {
    .carmel-search-results-searchbar input[type=search] {
        height: 72px;
    }
    .carmel-search-results-searchbar .wp-block-search__button.wp-block-search__button {
        width: 72px;
        height: 72px;
        background-size: 56px 56px;
    }
}
.entry-content .simcal-default-calendar-grid .simcal-day {
    height: 118px;
    min-height: 118px;
    gap: 4px;
    flex: 1 0 0;
}
.entry-content .simcal-default-calendar-grid .simcal-day > div {
    min-height: 118px !important;
}
.entry-content .simcal-default-calendar-grid .simcal-event {
    border-bottom: 0;
}
.entry-content .simcal-default-calendar-grid.simcal-default-calendar-light .simcal-event {
    border-bottom: 0;
}
footer.site-footer .linklist a {
    display: block;
    width: 100%;
    position: relative;
}
footer.site-footer .linklist a:after {
    content: '';
    background-image: url('../../images/arrow.svg');
    background-repeat: no-repeat;
    background-size: 12px 12px;
    background-position: center;
    width: 32px;
    height: 32px;
    position: absolute;
    right: 12px;
    top: -3px;
    transition: 0.3s;
}
footer.site-footer .linklist a:hover {
    text-decoration: none;
}
footer.site-footer .linklist a:hover:after {
    right: 0;
}
footer.site-footer .linklist p {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
