/* Native block controls own content, colors, type, spacing and menu links.
 * This component adds responsive placement and the existing drawer interaction. */
.header-part { position: sticky; top: 0; z-index: 1000; }
.wp-block-group.desktop-navigation, .language-desktop { display: none; }
.site-logo { flex: none; line-height: 0; }
.site-logo img, .drawer-logo img { display: block; }
.site-logo img { max-width: none; }
.language-mobile { width: 99.46px; max-width: 100%; justify-self: end; }
.menu-control { justify-self: start; }
.menu-toggle > button, .menu-close > button { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; cursor: pointer; }
.header-actions { flex: none; }
.header-actions .wp-element-button { display: block; min-height: 38px; white-space: nowrap; }

/* Preserve TranslatePress's flags, translated destinations and click/focus behavior. */
.site-header .trp_language_switcher_shortcode { width: auto; height: 42px; }
.site-header .trp-language-switcher { margin: 0; width: 100%; height: 42px; font: 18px/26px Roboto,sans-serif; }
.site-header .trp-language-switcher > div { width: 100% !important; border: 0; border-radius: 0; background-color: transparent; }
.site-header .trp-language-switcher > div > a > img { width: 18px; height: 12px; vertical-align: baseline; margin: 0 4px 0 0; }
.language-desktop { height: 42px; text-align: right; }
.language-desktop .trp-language-switcher > div { padding: 0 45px 0 0 !important; background: #18335e url("data:image/svg+xml,%3Csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5.065 5L11 1' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 18px top 18px / 10.8px; }
.language-desktop .trp-language-switcher a { font-size: 12.8px; line-height: 26px; padding: 10.24px 0 10.24px 12.8px; text-align: right; color: white; }
.language-desktop .trp-ls-shortcode-language { background-color: #18335e; top: 0; min-width: 0; }
.site-header .trp-ls-shortcode-current-language { visibility: visible !important; }
.site-header .trp-language-switcher .trp-ls-shortcode-language { display: none !important; }
.site-header .trp-language-switcher.language-open .trp-ls-shortcode-language { display: block !important; visibility: visible; opacity: 1; position: absolute; height: auto; max-height: 85vh; overflow: auto; z-index: 1200; }
.language-mobile .trp_language_switcher_shortcode { width: 99.46px; max-width: 100%; }
.language-mobile .trp-language-switcher > div { padding: 4px 20px 3px 13px; background-position: right 55%; background-color: #fff; }
.language-mobile .trp-language-switcher a { font-size: 16px; line-height: 26px; padding: 7px 12px; color: #1e1e1e; white-space: nowrap; }
.language-mobile .trp-language-switcher > div > a > img { margin: 0; }
.language-mobile .trp-ls-shortcode-language { top: 0; left: 0; min-width: 100%; right: auto; }

/* Native Navigation supplies links, submenu state and keyboard interaction. */
nav.site-navigation .wp-block-navigation-item__content { padding: 0; text-decoration: none; background-repeat: no-repeat; background-position: left bottom; background-size: 0 2px; transition: color .5s, background-size .5s; }
nav.site-navigation .wp-block-navigation-item > .wp-block-navigation-item__content:is(:hover, [aria-current="page"]) { color: var(--wp--preset--color--headings); background-image: linear-gradient(to right,var(--wp--custom--color--hover--accent),var(--wp--custom--color--hover--accent-dark)); background-size: 100% 2px; }
.site-navigation a { white-space: nowrap; }
.site-navigation .wp-block-navigation__submenu-icon, .drawer-navigation .wp-block-navigation__submenu-icon { display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; background: transparent; color: #17335e; border: 0; }
.site-navigation .wp-block-navigation__submenu-icon { width: 20px; min-width: 20px; height: 24px; }
.site-navigation .wp-block-navigation__submenu-icon svg, .drawer-navigation .wp-block-navigation__submenu-icon svg { display: none; }
.site-navigation .wp-block-navigation__submenu-icon::after, .drawer-navigation .wp-block-navigation__submenu-icon::after { content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
nav.site-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded] ~ .wp-block-navigation__submenu-container { top: 100%; left: auto; right: -10px; width: 240px; min-width: 240px; padding: 20px; background: white; border: 0; border-top: 1px solid #eee; box-shadow: 0 6px 28px #00000014; }
nav.site-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content { font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 6px; white-space: normal; width: 100%; }
nav.site-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover, nav.site-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content:focus-visible { background: var(--wp--custom--color--hover--background); color: var(--wp--preset--color--white); }
.site-navigation [aria-expanded="true"] ~ .wp-block-navigation__submenu-container { animation: submenu-reveal .65s cubic-bezier(.2,.8,.25,1); }
@keyframes submenu-reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* The drawer's native Groups, Navigation, Buttons and Images remain editable. */
dialog.navigation-dialog:not([open]) { display: none; }
.menu-open, .menu-open .block-shell { overflow: hidden; }
.wp-block-group.drawer-panel { align-items: stretch; }
.drawer-top { height: 76px; flex: none; position: relative; text-align: center; }
.drawer-logo { display: inline-block; line-height: 0; }
.drawer-close-control { position: absolute; right: 26px; top: 42px; }
.drawer-menu-region { flex-shrink: 0; }
nav.drawer-navigation, nav.drawer-navigation > .wp-block-navigation__container { width: 100%; align-items: stretch; }
nav.drawer-navigation > .wp-block-navigation__container { transform: translateX(110px); transition: transform .8s cubic-bezier(.15,.2,.1,1); }
.drawer-open nav.drawer-navigation > .wp-block-navigation__container { transform: translateX(0); }
nav.drawer-navigation > ul > .wp-block-navigation-item { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0 13.5px; border-top: 1px solid #e0e0e0; }
nav.drawer-navigation > ul > .wp-block-navigation-item:first-child { border-top: 0; }
nav.drawer-navigation .wp-block-navigation-item__content { padding: 0; text-decoration: none; }
nav.drawer-navigation .wp-block-navigation-item__content img { margin-right: 4px; }
nav.drawer-navigation .wp-block-navigation__submenu-icon { position: absolute; top: 2px; right: -14px; width: 44px; height: 44px; }
.drawer-navigation .wp-block-navigation__submenu-icon[aria-expanded="true"]::after { transform: rotate(225deg); }
nav.drawer-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded] ~ .wp-block-navigation__submenu-container { grid-column: 1/-1; position: static; height: auto; min-width: 0; width: 100%; max-height: 0; padding: 0 0 0 20px; border: 0; overflow: hidden; opacity: 1; visibility: visible; transition: max-height .5s cubic-bezier(.215,.61,.355,1); }
nav.drawer-navigation .wp-block-navigation__submenu-container > li:first-child { padding-top: 10px; }
nav.drawer-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content { font: inherit; padding: 0; }
.wp-block-group.drawer-footer { flex: 1 0 auto; align-items: stretch; }
.drawer-footer .wp-block-buttons { width: 100%; }
.drawer-footer .wp-element-button { display: block; }
.drawer-social { width: 100%; flex: none; }
.drawer-social figure { flex: none; line-height: 0; }
.drawer-social img { display: block; object-fit: contain; }
.drawer-social a { display: block; opacity: .8; transition: opacity .3s ease; }
.drawer-social a:is(:hover,:focus-visible) { opacity: 1; }

.hamburger { position: relative; display: block; width: 22px; height: 16px; overflow: hidden; }
.hamburger > span { position: absolute; top: 0; left: 0; width: 22px; height: 2px; background: currentColor; box-shadow: -30px 0 currentColor; transition: transform .65s cubic-bezier(.3,1,.3,1) .08s; }
.hamburger > span:nth-child(2) { top: 7px; transition-delay: .04s; }
.hamburger > span:nth-child(3) { top: 14px; width: 16px; transition-delay: 0s; }
@media (hover:hover) and (pointer:fine) {
    .menu-toggle:hover .hamburger > span { transform: translateX(30px); }
    .menu-toggle:hover .hamburger > span:first-child { transition-delay: 0s; }
    .menu-toggle:hover .hamburger > span:last-child { transition-delay: .08s; }
}
@media (max-width: 999px) {
    .header-part { position: relative; }
    .wp-block-group.header-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); min-height: 74px !important; padding-inline: 31px !important; }
    .site-logo { justify-self: center; transform: translateY(1.12px); }
    .site-logo img { height: 24px !important; width: auto !important; }
}
@media (min-width: 1000px) {
    .admin-bar .header-part { top: 32px; }
    .stage-active .header-part { top: 0; }
}
@media (min-width: 1300px) {
    .language-desktop, .wp-block-group.desktop-navigation { display: block; }
    .wp-block-group.desktop-navigation { display: flex; flex-shrink: 0; }
    .site-header .menu-control, .site-header .language-mobile { display: none; }
}
/* Material off-canvas motion: the page recedes while the menu is revealed behind it. */
.block-shell:has(.stage-active){background:#17335e}
.stage-active{position:fixed;inset:0 var(--menu-gutter,0px) 0 0;height:100dvh;overflow:hidden;background:#fff;transform-origin:center;transition:transform .8s cubic-bezier(.15,.2,.1,1);box-shadow:0 80px 145px #0005}
.stage-active #ajax-content-wrap{position:relative}
.stage-active .header-part{position:relative}
.stage-open{transform:scale(.835) translateX(-466px)}
.block-shell .navigation-dialog{inset:0;margin:0;width:calc(100% - var(--menu-gutter,0px));height:100dvh;max-width:none;max-height:none;border:0;padding:0;background:transparent;overflow:hidden;color:#17335e}
.navigation-dialog::backdrop{background:transparent}
.drawer-panel{margin-left:auto;width:360px;height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;background:white;display:flex;flex-direction:column;opacity:0;transition:opacity .3s ease}
.drawer-panel::-webkit-scrollbar{display:none}
.drawer-open .drawer-panel{opacity:1}
.close-wrap{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:block;width:20px;height:20px;overflow:hidden}
.close-line{position:absolute;left:9px;width:2px;height:100%;border-radius:5px;background:#000;backface-visibility:hidden;animation-duration:.4s;animation-timing-function:cubic-bezier(.52,.01,.16,1);animation-fill-mode:forwards}
.close-icon-pending .close-wrap{visibility:hidden}
.close-line-1{transform:translate(0,0) rotate(-45deg);animation-name:cross-left-close}
.close-line-2{transform:translate(0,0) rotate(45deg);animation-name:cross-right-close;animation-delay:.06s}
.close-icon-open .close-line-1{transform:translate(30px,-30px) rotate(45deg);animation-name:cross-right;animation-delay:.29s}
.close-icon-open .close-line-2{transform:translate(-30px,-30px) rotate(-45deg);animation-name:cross-left;animation-delay:.15s}
@keyframes cross-right{to{transform:translate(0,0) rotate(45deg)}}
@keyframes cross-left{to{transform:translate(0,0) rotate(-45deg)}}
@keyframes cross-left-close{to{transform:translate(22px,22px) rotate(-45deg)}}
@keyframes cross-right-close{to{transform:translate(-22px,22px) rotate(45deg)}}
@media(prefers-reduced-motion:reduce){.close-line-1{transform:rotate(45deg)!important}.close-line-2{transform:rotate(-45deg)!important}}
@media (max-width: 450px) { .stage-open { transform: scale(.8) translateX(-110vw); } .drawer-panel { width: 100vw; clip-path: inset(0 0 0 2vw); } }
@media (min-width: 1000px) { .stage-open { transform: scale(.8) translateX(-32vw); } .drawer-panel { width: 33.3%; } }
@media (prefers-reduced-motion: reduce) { .header-part *, .navigation-dialog *, .stage-active { animation: none !important; transition: none !important; } }

/* Show both variants for editing; neither editor preview becomes a modal. */
.editor-styles-wrapper .site-header { position: relative; }
.editor-styles-wrapper .site-header .language-desktop,
.editor-styles-wrapper .site-header .language-mobile { display: block; }
.editor-styles-wrapper .site-header .menu-control { display: flex; }
.editor-styles-wrapper .header-row { display: grid; grid-template-columns: 180px 1fr 140px; gap: 16px; }
.editor-styles-wrapper .site-header .desktop-navigation { display: flex; flex-wrap: wrap; grid-column: 1/-1; grid-row: 2; justify-content: center; }
.editor-styles-wrapper .site-logo { grid-column: 2; grid-row: 1; justify-self: center; }
.editor-styles-wrapper .menu-control { grid-column: 1; grid-row: 1; }
.editor-styles-wrapper .language-mobile { grid-column: 3; grid-row: 1; }
.editor-styles-wrapper .menu-toggle > button,
.editor-styles-wrapper .menu-close > button { width: auto; height: auto; min-width: 0; }
.editor-styles-wrapper .navigation-dialog { display: block; position: static; width: 100%; height: auto; }
.editor-styles-wrapper .drawer-panel { margin-inline: auto; width: 390px; max-width: 100%; height: auto; opacity: 1; clip-path: none; }
.editor-styles-wrapper .drawer-top { height: auto; }
.editor-styles-wrapper .drawer-close-control { position: static; justify-content: center; margin-top: 12px; }
.editor-styles-wrapper .drawer-navigation > .wp-block-navigation__container { transform: none; }
.editor-styles-wrapper .drawer-navigation .wp-block-navigation__submenu-container { max-height: none; }
