.kd-search-toggle { display:inline-flex; flex:0 0 44px; align-items:center; justify-content:center; width:44px; height:44px; padding:10px; border:0; border-radius:8px; background:transparent; color:#14213d; cursor:pointer; }
.kd-search-toggle:hover { background:#edf3fc; color:#075fe4; }
/* Same saved navigation on home and theme pages; reserve the arrow before interaction. */
.kd-home-nav .wp-block-navigation__container,
header.superbthemes-navigation-three .wp-block-navigation__container { gap:32px !important; }
.kd-home-nav .wp-block-navigation__container > .wp-block-navigation-item,
header.superbthemes-navigation-three .wp-block-navigation__container > .wp-block-navigation-item {
 gap:0 !important; font-size:16px !important; flex-grow:0;
}
.kd-home-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content,
header.superbthemes-navigation-three .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
 padding:8px 0 !important; margin:0 !important; font-size:16px !important; font-weight:500 !important; line-height:1.5;
}
.kd-home-nav .wp-block-navigation__container > .wp-block-navigation-item > a strong { font-weight:500 !important; }
.kd-home-nav .wp-block-navigation__submenu-icon,
header.superbthemes-navigation-three .wp-block-navigation__submenu-icon {
 box-sizing:border-box; flex:0 0 28px; width:28px !important; height:44px !important;
 margin:0 !important; padding:0 8px !important; border:0; background:transparent; color:#14213d;
}
.kd-home-nav .wp-block-navigation__submenu-icon svg,
header.superbthemes-navigation-three .wp-block-navigation__submenu-icon svg {
 display:block; width:12px !important; height:12px !important; margin:0; stroke:currentColor;
}
.kd-home-nav .wp-block-navigation__submenu-container { background:#fff; color:#14213d; }
.kd-home-nav .wp-block-navigation__submenu-container a { font-size:14px; font-weight:400; padding:12px 16px; }
@media(min-width:900px) {
 .kd-home-nav .wp-block-navigation__submenu-icon,
 header.superbthemes-navigation-three .wp-block-navigation__submenu-icon { display:inline-flex !important; align-items:center; justify-content:center; }
}
@media(max-width:899px) {
 .kd-home-nav .wp-block-navigation { width:100%; }
 .kd-home-nav .wp-block-navigation__container { width:100%; flex-direction:column; align-items:stretch !important; gap:0 !important; }
 .kd-home-nav .wp-block-navigation__container > .wp-block-navigation-item { flex-wrap:wrap; justify-content:flex-start; }
 .kd-home-nav .wp-block-navigation__submenu-icon { display:inline-flex !important; align-items:center; justify-content:center; }
 .kd-home-nav .wp-block-navigation__submenu-container { position:static !important; display:none !important; width:100% !important; min-width:0 !important; padding:0 0 8px 16px; border:0; box-shadow:none; }
 .kd-home-nav .wp-block-navigation__submenu-icon[aria-expanded="true"] ~ .wp-block-navigation__submenu-container { display:flex !important; visibility:visible !important; opacity:1 !important; height:auto !important; overflow:visible !important; }
}
.kd-search-toggle:focus-visible,.kd-search-dialog button:focus-visible { outline:3px solid #075fe4; outline-offset:3px; }
.kd-site-header-inner > .kd-home-nav { margin-left:auto; }
.superbthemes-navigation-three-columns-nav { display:flex !important; align-items:center; justify-content:flex-end; gap:16px; }
.superbthemes-navigation-three-columns-nav > nav { min-width:0; }
.superbthemes-navigation-three-columns-nav > .kd-search-toggle { margin:0 !important; }
.kd-search-dialog { box-sizing:border-box; width:min(640px,calc(100% - 32px)); max-width:none; padding:0; border:0; border-radius:18px; background:#fff; color:#14213d; box-shadow:0 24px 80px #14213d40; }
.kd-search-dialog::backdrop { background:rgba(9,17,31,.65); }
.kd-search-dialog:not([open]) { display:none; }
.kd-search-dialog * { box-sizing:border-box; font-family:"Kdaeri NanumSquareNeo",sans-serif; }
.kd-search-panel { position:relative; padding:40px; }
.kd-search-dialog h2 { margin:0 36px 24px 0; color:#14213d; font-size:26px; line-height:1.4; font-weight:700; }
.kd-search-close { position:absolute; top:12px; right:12px; width:40px; height:40px; padding:0; border:0; background:transparent; color:#526079; font-size:30px; line-height:1; cursor:pointer; }
.kd-search-dialog label { display:block; margin-bottom:10px; font-size:15px; color:#526079; }
.kd-search-fields { display:flex; gap:10px; }
.kd-search-dialog input { min-width:0; width:100%; height:52px; padding:12px 14px; border:1px solid #bbcbe3; border-radius:8px; background:#fff; color:#14213d; font-size:16px; }
.kd-search-dialog input:focus { outline:2px solid #075fe4; outline-offset:1px; }
.kd-search-fields button { flex:0 0 76px; height:52px; padding:0 16px; border:0; border-radius:8px; background:#075fe4; color:#fff; font-size:16px; cursor:pointer; }
.kd-search-open { overflow:hidden; }
/* The theme places the results outside main and sets its bottom padding to zero. */
body.search main.blog-two-columns { padding-bottom:40px !important; }
@media(max-width:768px) {
 body.search main.blog-two-columns { padding-bottom:28px !important; }
}
@media(max-width:899px) {
 .kd-site-header-inner > .kd-site-brand { margin-right:auto; }
 .kd-site-header-inner > .kd-search-toggle { order:1; }
 .kd-site-header-inner > .kd-menu-toggle { order:2; flex-shrink:0; }
 .kd-site-header-inner > .kd-home-nav { margin-left:0; }
 .kd-site-header-inner { gap:6px; }
 .superbthemes-navigation-three-columns-nav { gap:6px; flex:0 0 94px !important; }
 .superbthemes-navigation-three-columns-nav > nav { flex:0 0 44px; min-width:44px; justify-content:center; }
 .superbthemes-navigation-three-columns-logo { flex:1 1 auto !important; min-width:0; }
 .superbthemes-navigation-three-columns-nav > .kd-search-toggle { order:-1; }
}
@media(max-width:480px) {
 .kd-search-panel { padding:32px 20px 24px; }
 .kd-search-dialog h2 { font-size:22px; }
}

/* Smaller mobile glyphs; retain 44px touch controls on home and theme headers. */
.kd-search-toggle > .kd-mobile-glyph { display:none; }
@media(max-width:899px) {
 .kd-search-toggle > svg:not(.kd-mobile-glyph) { display:none; }
 .kd-search-toggle > .kd-mobile-glyph { display:block; }
 .kd-search-toggle, .kd-menu-toggle,
 header.superbthemes-navigation-three .wp-block-navigation__responsive-container-open {
  box-sizing:border-box; width:44px; height:44px; min-height:44px;
  padding:12px; align-items:center; justify-content:center;
 }
 .kd-search-toggle svg,
 header.superbthemes-navigation-three .wp-block-navigation__responsive-container-open svg { width:20px; height:20px; }
 .kd-menu-toggle { align-items:center; gap:4px; }
 .kd-menu-toggle span { width:20px; height:2px; }
}
@media(max-width:768px) {
 .kd-site-header-inner { min-height:68px; padding:8px 14px; }
 .kd-site-brand { gap:8px; font-size:clamp(16px,5vw,20px) !important; font-weight:750 !important; letter-spacing:-.04em; }
 .kd-site-brand img { width:40px !important; height:40px !important; }
 .kd-site-brand-wrap { display:flex; align-items:center; }
 header.superbthemes-navigation-three { padding:8px 14px !important; }
 header.superbthemes-navigation-three .superbthemes-navigation-three-columns-wrapper { padding:0 !important; min-height:52px; align-items:center !important; }
 header.superbthemes-navigation-three .superbthemes-navigation-three-columns-logo { align-self:center !important; }
}
