/* Sofa-Man Multilingual 1.6 — compact mobile-first picker */
#smm-language-bar{display:flex!important;justify-content:flex-end!important;align-items:center!important;background:#fff!important;padding:0 12px!important;min-height:0!important;position:relative!important;z-index:80!important;box-sizing:border-box!important}
#smm-header-anchor{position:static!important;display:block!important;margin:0!important;line-height:1!important}
.smm-picker{position:relative!important;display:inline-block!important;font-family:inherit!important;line-height:1.2!important}
.smm-trigger{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:auto!important;min-width:74px!important;height:32px!important;min-height:32px!important;padding:3px 8px!important;margin:0!important;background:#fff!important;color:#17395d!important;border:1px solid #dce5ee!important;border-radius:9px!important;box-shadow:0 1px 4px rgba(20,45,70,.06)!important;font-size:12px!important;font-weight:700!important;cursor:pointer!important;line-height:1!important}
.smm-trigger .smm-flag{font-size:17px!important;line-height:1!important}.smm-chevron{font-size:16px!important;font-weight:400!important;margin-left:2px!important}
.smm-menu{position:absolute!important;top:calc(100% + 5px)!important;right:0!important;left:auto!important;width:205px!important;max-height:min(360px,65vh)!important;overflow-y:auto!important;background:#fff!important;border:1px solid #dce5ee!important;border-radius:12px!important;box-shadow:0 12px 32px rgba(10,30,55,.18)!important;padding:5px!important;z-index:99999!important;box-sizing:border-box!important}
.smm-menu[hidden]{display:none!important}
.smm-choice{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;min-height:36px!important;padding:7px 10px!important;margin:0!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#17395d!important;text-align:left!important;font:500 13px/1.3 inherit!important;cursor:pointer!important;box-shadow:none!important}
.smm-choice:hover,.smm-choice:focus-visible,.smm-choice[aria-pressed="true"]{background:#eef4fb!important}.smm-choice[aria-pressed="true"]{font-weight:750!important}
.smm-fallback{position:fixed!important;top:105px!important;right:12px!important;z-index:999!important}
body:has(#smm-language-bar) #content{padding-top:0!important}
body:has(#smm-language-bar) .entry-header{margin-top:0!important;margin-bottom:4px!important;padding-top:0!important;padding-bottom:0!important}
body:has(#smm-language-bar) .entry-title{margin-top:0!important;margin-bottom:6px!important}
#smm-status{position:fixed;bottom:8px;left:8px;z-index:9999;background:#fff;border:1px solid #ddd;padding:5px 9px;font:12px Arial;max-width:90vw}
@media(max-width:921px){#smm-language-bar{padding-right:12px!important;padding-top:0!important;padding-bottom:0!important}.smm-trigger{height:30px!important;min-height:30px!important}}

/* v1.6.1: title and compact selector share one line */
#smm-title-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin:0 0 10px!important;padding:0!important;width:100%!important;min-width:0!important}
#smm-title-row .entry-title,#smm-title-row .wp-block-post-title,#smm-title-row h1{flex:1 1 auto!important;min-width:0!important;margin:0!important;padding:0!important}
#smm-title-row #smm-header-anchor{flex:0 0 auto!important;position:relative!important;z-index:100!important}
#smm-title-row .smm-trigger{min-width:69px!important;height:30px!important;min-height:30px!important}
body:has(#smm-title-row) .entry-header{margin:0 0 8px!important;padding:0!important}
body:has(#smm-title-row) #content{padding-top:0!important}
@media(max-width:480px){#smm-title-row{gap:4px!important}#smm-title-row .entry-title,#smm-title-row h1{font-size:clamp(24px,8vw,42px)!important}}

/* 1.6.4: prevent translated home cover hero headlines clipping on mobile */
body.home .wp-block-cover,body.front-page .wp-block-cover{box-sizing:border-box;overflow:hidden}
body.home .wp-block-cover__inner-container,body.front-page .wp-block-cover__inner-container{max-width:100%;min-width:0}
body.home .wp-block-cover h1,body.home .wp-block-cover h2,body.front-page .wp-block-cover h1,body.front-page .wp-block-cover h2{font-size:clamp(23px,6vw,43px)!important;line-height:1.15!important;overflow-wrap:break-word!important;max-width:100%!important;margin-block:.3em!important}
body.home .wp-block-cover p,body.front-page .wp-block-cover p{font-size:clamp(16px,3.8vw,23px)!important;line-height:1.3!important;overflow-wrap:break-word!important}
@media(max-width:600px){body.home .wp-block-cover,body.front-page .wp-block-cover{min-height:0!important;height:auto!important;padding:22px 14px!important}body.home .wp-block-cover__inner-container,body.front-page .wp-block-cover__inner-container{padding:0!important}}

/* v1.7.6: give the selector a dedicated top-right row above the Astra logo/menu. */
@media(max-width:921px){
 header.smm-header-with-picker,#masthead.smm-header-with-picker{position:relative!important;padding-top:43px!important;box-sizing:border-box!important}
 .smm-header-with-picker>#smm-header-anchor{position:absolute!important;top:5px!important;right:12px!important;left:auto!important;display:block!important;z-index:10000!important;width:max-content!important;max-width:calc(100% - 24px)!important}
 .smm-header-with-picker>#smm-header-anchor .smm-trigger{height:32px!important;min-height:32px!important;min-width:65px!important}
 .smm-header-with-picker>#smm-header-anchor .smm-menu{z-index:10001!important}
}

/* v1.7.7: keep selector and Astra mobile menu together on the top-right;
   logo stays on its own compact row below. No DOM reparenting of Astra controls. */
@media(max-width:921px){
 header.smm-header-with-picker,#masthead.smm-header-with-picker{padding-top:37px!important}
 .smm-header-with-picker>#smm-header-anchor{top:3px!important;right:56px!important;z-index:10000!important}
 .smm-header-with-picker .ast-mobile-menu-trigger-minimal,
 .smm-header-with-picker .ast-mobile-menu-trigger-outline,
 .smm-header-with-picker .ast-mobile-menu-trigger-fill,
 .smm-header-with-picker .ast-button-wrap:has(.menu-toggle){position:absolute!important;top:3px!important;right:10px!important;z-index:10002!important;margin:0!important}
 .smm-header-with-picker .ast-mobile-menu-trigger-minimal .menu-toggle,
 .smm-header-with-picker .ast-mobile-menu-trigger-outline .menu-toggle,
 .smm-header-with-picker .ast-mobile-menu-trigger-fill .menu-toggle{min-height:32px!important}
 .smm-header-with-picker .ast-primary-header-bar{padding-top:0!important;padding-bottom:0!important}
 .smm-header-with-picker .ast-builder-grid-row{min-height:0!important}
}

/* v1.7.8: real top control row; keep Astra button behaviour intact. */
@media(max-width:921px){
 header.smm-header-with-picker,#masthead.smm-header-with-picker{padding-top:39px!important}
 .smm-header-with-picker #smm-mobile-controls{position:absolute!important;top:3px!important;right:10px!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;height:32px!important;z-index:10020!important}
 .smm-header-with-picker #smm-mobile-controls>#smm-header-anchor{position:static!important;width:auto!important;max-width:none!important;margin:0!important}
 .smm-header-with-picker #smm-mobile-controls>.ast-button-wrap{position:static!important;top:auto!important;right:auto!important;left:auto!important;display:flex!important;align-items:center!important;margin:0!important;transform:none!important}
 .smm-header-with-picker #smm-mobile-controls .menu-toggle{position:static!important;min-height:32px!important;height:32px!important;padding:3px 8px!important;margin:0!important}
 .smm-header-with-picker .ast-primary-header-bar{padding-top:0!important;padding-bottom:0!important}
}

/* v1.7.9: preserve native Astra menu markup/handlers and visual styling. */
@media(max-width:921px){
 .smm-header-with-picker #smm-mobile-controls{right:58px!important;pointer-events:none!important}
 .smm-header-with-picker #smm-mobile-controls>#smm-header-anchor{pointer-events:auto!important}
 .smm-header-with-picker .ast-mobile-header-wrap .ast-button-wrap:has(.menu-toggle){position:absolute!important;top:3px!important;right:10px!important;left:auto!important;z-index:10030!important;margin:0!important;transform:none!important}
 .smm-header-with-picker .ast-mobile-header-wrap .ast-button-wrap .menu-toggle{background:transparent!important;background-color:transparent!important;color:#0872ba!important;border:0!important;box-shadow:none!important;padding:3px 8px!important;min-height:32px!important;height:32px!important}
 .smm-header-with-picker .ast-mobile-header-wrap .ast-button-wrap .menu-toggle svg{fill:currentColor!important}
}

/* v1.8.0: compact top-right controls without relocating Astra's menu node. */
@media(max-width:921px){
 #masthead.smm-header-with-picker,header.site-header.smm-header-with-picker{position:relative!important;padding-top:38px!important}
 .smm-header-with-picker #smm-mobile-controls{position:absolute!important;top:3px!important;right:59px!important;height:32px!important;pointer-events:none!important}
 .smm-header-with-picker #smm-mobile-controls>#smm-header-anchor{pointer-events:auto!important}
 /* Make Astra's original menu wrapper position against the masthead, not the logo row. */
 .smm-header-with-picker .ast-mobile-header-wrap,
 .smm-header-with-picker .ast-mobile-header-content,
 .smm-header-with-picker .ast-primary-header-bar,
 .smm-header-with-picker .ast-builder-grid-row-container,
 .smm-header-with-picker .ast-builder-grid-row,
 .smm-header-with-picker .site-header-primary-section-right,
 .smm-header-with-picker .ast-builder-layout-element:has(.menu-toggle){position:static!important}
 .smm-header-with-picker .ast-mobile-header-wrap .ast-button-wrap:has(.menu-toggle){position:absolute!important;top:3px!important;right:9px!important;z-index:10030!important}
 .smm-header-with-picker .ast-primary-header-bar,
 .smm-header-with-picker .ast-builder-grid-row-container{padding-top:0!important;padding-bottom:0!important;margin-top:0!important;margin-bottom:0!important}
 .smm-header-with-picker .ast-builder-grid-row{min-height:0!important;align-items:center!important}
 .smm-header-with-picker .site-branding,.smm-header-with-picker .ast-site-identity{margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important}
}

/* v1.8.1: picker flush-right; native Astra hamburger centred on logo row. */
@media(max-width:921px){
 #masthead.smm-header-with-picker,header.site-header.smm-header-with-picker{padding-top:32px!important}
 .smm-header-with-picker #smm-mobile-controls{top:2px!important;right:5px!important;height:30px!important}
 .smm-header-with-picker #smm-mobile-controls>#smm-header-anchor{position:static!important}
 .smm-header-with-picker .ast-mobile-header-wrap .ast-button-wrap:has(.menu-toggle){position:relative!important;top:auto!important;right:auto!important;left:auto!important;transform:none!important;margin:0!important;align-self:center!important}
 .smm-header-with-picker .site-header-primary-section-right{display:flex!important;align-items:center!important;justify-content:flex-end!important}
 .smm-header-with-picker .ast-primary-header-bar,.smm-header-with-picker .ast-builder-grid-row-container{padding-top:0!important;padding-bottom:0!important}
 .smm-header-with-picker .ast-builder-grid-row{align-items:center!important}
}

/* v1.8.2: retain the top-right selector; centre the native Astra hamburger
   against the actual logo bounds, and reduce the top-row gap. */
@media(max-width:921px){
 #masthead.smm-header-with-picker,header.site-header.smm-header-with-picker{padding-top:23px!important}
 .smm-header-with-picker #smm-mobile-controls{top:2px!important;right:5px!important}
 .smm-header-with-picker .ast-mobile-header-wrap .ast-button-wrap:has(.menu-toggle){position:absolute!important;top:var(--smm-hamburger-top,55px)!important;right:9px!important;left:auto!important;transform:none!important;margin:0!important;z-index:10030!important}
}

/* v1.8.3: restore Astra hamburger to native flow and lift it alongside logo. */
@media(max-width:921px){
 .smm-header-with-picker .ast-mobile-header-wrap .ast-button-wrap:has(.menu-toggle){position:relative!important;top:auto!important;right:auto!important;left:auto!important;transform:translateY(-20px)!important;align-self:center!important;margin:0!important}
 .smm-header-with-picker .site-header-primary-section-right{display:flex!important;align-items:center!important;justify-content:flex-end!important}
}
