/* v12.1 — header-only alignment: shared home/detail shells + no text wrapping. */
.kg-app>.kg-header{
  width:100%;
  position:sticky;
  top:0;
  z-index:9999;
  margin:0;
  background:#fff;
  box-shadow:0 2px 12px rgba(20,43,73,.06);
}
.admin-bar .kg-app>.kg-header{top:32px}
/* Identical container dimensions and fixed right-hand cluster everywhere. */
.kg-app>.kg-header>.kg-header__inner{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  justify-content:space-between;
  width:min(1260px, calc(100% - 56px));
  min-height:82px;
  height:82px;
  margin-inline:auto;
  gap:18px;
}
.kg-app .kg-logo{flex:0 0 auto;min-width:0;white-space:nowrap}
.kg-app .kg-nav{margin-left:auto;min-width:0;flex:0 1 auto}
.kg-app .kg-nav>ul{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:clamp(11px,1.6vw,26px);margin:0;padding:0}
.kg-app .kg-nav li{flex:0 0 auto;min-width:0;list-style:none;margin:0}
.kg-app .kg-nav a{
  display:inline-block;
  white-space:nowrap;
  word-break:keep-all;
  overflow-wrap:normal;
  line-height:1.5;
  text-align:center;
  font-size:12px;
}
.kg-app .kg-header__cta{
  flex:0 0 auto;
  white-space:nowrap;
  word-break:keep-all;
  overflow-wrap:normal;
  min-height:42px;
  font-size:12px;
}
/* On smaller screens, show the same right-aligned menu button on every page.
   Do this before the desktop labels are forced to wrap or push each other. */
@media(max-width:1120px){
 .kg-app>.kg-header>.kg-header__inner{
   width:min(960px, calc(100% - 38px));
   min-height:72px;
   height:72px;
   gap:14px;
 }
 .kg-app>.kg-header{height:72px}
 .kg-app .kg-header__cta{display:none}
 .kg-app .kg-menu-btn{display:block;flex:0 0 auto;margin-left:auto;min-height:44px;padding:9px 14px;cursor:pointer;border-radius:12px}
 .kg-app .kg-nav{
   display:none;
   position:absolute;
   top:100%;
   right:max(19px,calc((100vw - 960px)/2));
   left:auto;
   width:min(340px,calc(100vw - 38px));
   max-height:min(76vh,620px);
   overflow-y:auto;
   margin:0;
   background:#fff;
   border:1px solid #e7edf3;
   border-radius:0 0 18px 18px;
   box-shadow:0 18px 32px rgba(20,43,73,.14);
   padding:12px 18px 17px;
 }
 .kg-app .kg-nav.is-open{display:block}
 .kg-app .kg-nav>ul{display:flex;flex-direction:column;align-items:stretch;gap:0}
 .kg-app .kg-nav li{width:100%;border-bottom:1px solid #e8edf1}
 .kg-app .kg-nav li:last-child{border-bottom:0}
 .kg-app .kg-nav a{display:block;padding:15px 5px;text-align:left;font-size:14px;white-space:normal;line-height:1.55}
}
@media(max-width:820px){
 .admin-bar .kg-app>.kg-header{top:46px}
 .kg-app>.kg-header,.kg-app>.kg-header>.kg-header__inner{height:66px;min-height:66px}
 .kg-app>.kg-header>.kg-header__inner{width:calc(100% - 32px)}
 .kg-app .kg-nav{right:16px;width:min(340px,calc(100vw - 32px));top:100%}
}
@media(max-width:600px){
 .kg-app>.kg-header>.kg-header__inner{width:calc(100% - 28px);gap:12px}
 .kg-app .kg-logo__text strong{font-size:clamp(18px,5vw,22px);white-space:nowrap}
 .kg-app .kg-logo__text small{font-size:9px}
 .kg-app .kg-logo__mark{width:38px;height:38px;flex-shrink:0}
 .kg-app .kg-nav{right:14px;width:min(340px,calc(100vw - 28px))}
}
@media(max-width:782px){
 /* WordPress admin toolbar is taller on narrow screens. */
 .admin-bar .kg-app>.kg-header{top:46px}
}
/* overflow:hidden on the original standalone wrapper prevents sticky positioning.
   clip still masks horizontal overflow but does not create a new scroll container. */
body.kg-standalone .kg-app{overflow:clip}
