/* Sumai Gyosha DB Engine v3.1.55 — consistent mobile header on plugin-owned standalone pages.
 * Does not alter the theme header's JavaScript or any ASP links. */
body.kdbe-standalone .kdbe-site-header .kdbe-logo-text-short,
body.kdbe-standalone .kdbe-site-header .kdbe-header-search-toggle {display:none!important}
body.kdbe-standalone .kdbe-site-header .kdbe-header-search-panel[hidden] {display:none!important}
body.kdbe-standalone .kdbe-site-header .kdbe-mobile-button-label {display:none!important}
body.kdbe-standalone .kdbe-site-header .kdbe-menu-toggle svg,
body.kdbe-standalone .kdbe-site-header .kdbe-header-search-toggle svg{display:block;width:23px;height:23px;flex:0 0 auto}
@media (min-width:721px){
 body.kdbe-standalone .kdbe-site-header .kdbe-logo-text-full{display:block!important}
}
@media (max-width:720px){
 body.kdbe-standalone .kdbe-site-header{position:sticky!important;top:0!important;z-index:300!important;overflow:visible!important;background:rgba(255,255,255,.98)!important}
 body.kdbe-standalone .kdbe-site-header .kdbe-header-inner{
  position:relative!important;display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;
  grid-template-rows:64px!important;align-items:center!important;justify-items:stretch!important;
  column-gap:6px!important;row-gap:0!important;width:100%!important;max-width:100%!important;
  height:64px!important;min-height:64px!important;max-height:none!important;
  margin:0 auto!important;padding:0 10px!important;box-sizing:border-box!important;
 }
 body.kdbe-standalone .kdbe-site-header .kdbe-menu-toggle,
 body.kdbe-standalone .kdbe-site-header .kdbe-header-search-toggle{
  display:flex!important;align-items:center!important;justify-content:center!important;
  position:static!important;top:auto!important;left:auto!important;right:auto!important;
  transform:none!important;grid-row:1!important;width:44px!important;height:44px!important;
  min-width:44px!important;min-height:44px!important;max-width:44px!important;
  margin:0!important;padding:0!important;border:1px solid #d7e3ed!important;
  border-radius:12px!important;background:#fff!important;color:#173d57!important;
  box-shadow:none!important;cursor:pointer!important;box-sizing:border-box!important;
 }
 body.kdbe-standalone .kdbe-site-header .kdbe-menu-toggle{grid-column:1!important}
 body.kdbe-standalone .kdbe-site-header .kdbe-header-search-toggle{grid-column:3!important}
 body.kdbe-standalone .kdbe-site-header .kdbe-site-logo{
  grid-column:2!important;grid-row:1!important;position:static!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  justify-self:center!important;align-self:center!important;
  width:auto!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;transform:none!important;top:auto!important;
  gap:6px!important;overflow:hidden!important;white-space:nowrap!important;
 }
 body.kdbe-standalone .kdbe-site-header .kdbe-logo-symbol{
  display:block!important;width:36px!important;height:36px!important;flex:0 0 36px!important;
  border-radius:10px!important;
 }
 body.kdbe-standalone .kdbe-site-header .kdbe-logo-text-full{display:none!important}
 body.kdbe-standalone .kdbe-site-header .kdbe-logo-text-short{
  display:block!important;color:#173d57!important;font-weight:900!important;
  font-size:clamp(13px,3.8vw,16px)!important;line-height:1.15!important;
  letter-spacing:-.04em!important;white-space:nowrap!important;overflow:visible!important;
  text-overflow:clip!important;
 }
 body.kdbe-standalone .kdbe-site-header .kdbe-main-nav{
  position:absolute!important;display:none!important;grid-row:auto!important;grid-column:auto!important;
  top:calc(100% - 1px)!important;left:10px!important;right:10px!important;
  width:calc(100% - 20px)!important;max-width:none!important;
  max-height:calc(100dvh - 80px)!important;overflow:auto!important;
  padding:9px!important;margin:0!important;transform:none!important;
  border:1px solid #d6e3eb!important;border-radius:0 0 14px 14px!important;
  background:#fff!important;box-shadow:0 16px 25px rgba(19,49,73,.15)!important;
  flex-direction:column!important;gap:0!important;align-items:stretch!important;
  z-index:5!important;
 }
 body.kdbe-standalone .kdbe-site-header .kdbe-main-nav.is-open{display:flex!important}
 body.kdbe-standalone .kdbe-site-header .kdbe-main-nav a{
  display:block!important;padding:12px 10px!important;font-size:14px!important;
  line-height:1.5!important;color:#173d57!important;text-align:left!important;
 }
 body.kdbe-standalone .kdbe-site-header .kdbe-header-search-panel:not([hidden]){
  display:block!important;position:absolute!important;z-index:6!important;
  top:calc(100% - 1px)!important;left:10px!important;right:10px!important;
  padding:16px!important;border:1px solid #d6e3eb!important;
  border-radius:0 0 14px 14px!important;background:#fff!important;
  box-shadow:0 16px 25px rgba(19,49,73,.15)!important;
 }
 body.kdbe-standalone .kdbe-header-search-panel form{margin:0!important}
 body.kdbe-standalone .kdbe-header-search-panel label{display:block!important;font-size:13px!important;font-weight:800!important;margin:0 0 9px!important;color:#203d50!important}
 body.kdbe-standalone .kdbe-header-search-fields{display:flex!important;gap:8px!important;align-items:stretch!important}
 body.kdbe-standalone .kdbe-header-search-fields input{flex:1 1 0!important;width:0!important;min-width:0!important;height:46px!important;margin:0!important;padding:0 10px!important;box-sizing:border-box!important;background:#fff!important;border:1px solid #c3d3df!important;border-radius:9px!important;font-size:14px!important}
 body.kdbe-standalone .kdbe-header-search-fields button{flex:0 0 auto!important;border:0!important;background:#176d64!important;color:#fff!important;padding:0 12px!important;border-radius:9px!important;font-weight:800!important;font-size:13px!important}
 body.kdbe-standalone .kdbe-site-header .kdbe-menu-toggle:focus-visible,
 body.kdbe-standalone .kdbe-site-header .kdbe-header-search-toggle:focus-visible,
 body.kdbe-standalone .kdbe-site-header a:focus-visible {outline:3px solid #378ee1!important;outline-offset:2px!important}
}
@media (max-width:359px){
 body.kdbe-standalone .kdbe-site-header .kdbe-logo-symbol{width:30px!important;height:30px!important;flex-basis:30px!important}
 body.kdbe-standalone .kdbe-site-header .kdbe-logo-text-short{font-size:12px!important}
}
/* The actual SWELL header controls are native and remain clickable.
   Only improve header logo legibility on normal WordPress pages. */
@media (max-width:959px){
 body:not(.kdbe-standalone) .l-header .c-headLogo__link,
 body:not(.kdbe-standalone) .l-header .l-header__logo{align-items:center!important;justify-content:center!important}
 body:not(.kdbe-standalone) .l-header .c-headLogo__img{
   display:block!important;height:52px!important;max-height:56px!important;
   max-width:min(100%,235px)!important;width:auto!important;object-fit:contain!important
 }
 body:not(.kdbe-standalone) .l-header .l-header__inner{min-height:64px}
}
@media (min-width:960px){
 body:not(.kdbe-standalone) .l-header .c-headLogo__img{height:auto!important;max-height:72px!important;max-width:280px!important;object-fit:contain!important}
}

/* v3.1.55 unified branding: original SWELL image on desktop, concise DB brand on phones. */
.kdbe-theme-mobile-brand{display:none}
body.kdbe-standalone .kdbe-official-header-logo{display:none!important}
@media(min-width:721px){
 body.kdbe-standalone .kdbe-site-header .kdbe-has-official-logo>.kdbe-logo-symbol,
 body.kdbe-standalone .kdbe-site-header .kdbe-has-official-logo>.kdbe-logo-text{display:none!important}
 body.kdbe-standalone .kdbe-site-header .kdbe-official-header-logo{
  display:block!important;width:auto!important;max-width:min(290px,80vw)!important;
  height:auto!important;max-height:62px!important;object-fit:contain!important;
 }
}
@media(max-width:720px){
 /* Exact sibling-brand layout used by /local-guide/ and /local-company/. */
 body:not(.kdbe-standalone) .l-header .c-headLogo__link{
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:7px!important;max-width:100%!important;min-width:0!important;
  text-decoration:none!important;white-space:nowrap!important;
 }
 body:not(.kdbe-standalone) .l-header .c-headLogo__link>img,
 body:not(.kdbe-standalone) .l-header .c-headLogo__link>picture{
  display:none!important;
 }
 body:not(.kdbe-standalone) .l-header .c-headLogo__link>.kdbe-theme-mobile-brand{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:7px!important;min-width:0!important;max-width:100%!important;
 }
 body:not(.kdbe-standalone) .l-header .kdbe-theme-mobile-symbol{
  display:block!important;position:relative!important;width:36px!important;height:36px!important;
  flex:0 0 36px!important;border-radius:10px!important;
  background:linear-gradient(135deg,#4aa5d9,#5bc4b4)!important;
  box-shadow:0 8px 18px rgba(36,104,181,.18)!important;
 }
 body:not(.kdbe-standalone) .l-header .kdbe-theme-mobile-symbol:before{
  content:""!important;position:absolute!important;inset:0!important;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M9.5 20.5 20 11l10.5 9.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M13 19.5V30h14V19.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M18 30v-6h4v6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/27px 27px no-repeat!important;
 }
 body:not(.kdbe-standalone) .l-header .kdbe-theme-mobile-name{
  font-size:clamp(12px,3.8vw,16px)!important;line-height:1.15!important;
  letter-spacing:-.04em!important;font-weight:900!important;color:#173d57!important;
  white-space:nowrap!important;
 }
 body:not(.kdbe-standalone) .l-header .c-headLogo{
  min-width:0!important;max-width:100%!important;
 }
 /* On the standalone pages, always show the same concise branding at mobile size. */
 body.kdbe-standalone .kdbe-site-header .kdbe-official-header-logo{display:none!important}
 body.kdbe-standalone .kdbe-site-header .kdbe-logo-symbol{display:block!important}
 body.kdbe-standalone .kdbe-site-header .kdbe-logo-text-short{display:block!important}
}
@media(max-width:359px){
 body:not(.kdbe-standalone) .l-header .kdbe-theme-mobile-symbol{width:30px!important;height:30px!important;flex-basis:30px!important}
 body:not(.kdbe-standalone) .l-header .kdbe-theme-mobile-name{font-size:12px!important}
}
