/* KAC language layout 1.1.6. Mirror chrome, never the page's reading direction. */
html:lang(en) body.kac-site .site-header .header-inner {
  direction:rtl!important;
  flex-direction:row!important;
}
html:is(:lang(ps),:lang(fa),:lang(ar),:lang(ur)) body.kac-site .site-header .header-inner {
  direction:ltr!important;
  flex-direction:row!important;
}
/* Brand inherits the mirrored row: the logo stays on the outside edge. */
html:lang(en) body.kac-site .site-header .brand {direction:rtl!important;flex-direction:row!important;}
html:is(:lang(ps),:lang(fa),:lang(ar),:lang(ur)) body.kac-site .site-header .brand {direction:ltr!important;flex-direction:row!important;}
html:lang(en) body.kac-site .site-header :is(.brand-name,#site-menu,.kac-language-switch) {direction:ltr!important;}
html:is(:lang(ps),:lang(fa),:lang(ar),:lang(ur)) body.kac-site .site-header :is(.brand-name,#site-menu,.kac-language-switch) {direction:rtl!important;}
body.kac-site .site-header .brand-name {text-align:start!important;}
body.kac-site .site-header .brand-name small {direction:ltr;unicode-bidi:isolate;}
body.kac-site .site-header #site-menu a {text-align:start!important;}
/* Align the popup on the new side without changing its items' direction. */
html:lang(en) body.kac-site .site-header .kac-language-switch .kac-language-options {left:0!important;right:auto!important;}
html:is(:lang(ps),:lang(fa),:lang(ar),:lang(ur)) body.kac-site .site-header .kac-language-switch .kac-language-options {right:0!important;left:auto!important;}
/* Reserve real visible height above the floating actions, including logged-in toolbar. */
@media(max-width:900px){
  body.kac-site .site-header #site-menu.is-open {
    box-sizing:border-box!important;
    max-height:var(--kac-menu-room,calc(100dvh - 150px))!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
}
/* Scroll-revealed action rail. Keep existing dialogs, events, and theme palette. */
html body.kac-site.kace-active.kac-scroll-rail{--kac-rail-base:max(10px,calc(env(safe-area-inset-bottom,0px) + 8px));--kac-rail-step:34px;--kac-rail-edge:max(10px,env(safe-area-inset-left,0px));padding-bottom:0!important;}
html body.kac-site.kace-active.kac-scroll-rail .kace-action{left:var(--kac-rail-edge)!important;right:auto!important;bottom:calc(var(--kac-rail-base) + var(--kac-rail-index,0)*var(--kac-rail-step))!important;width:min(90px,calc(100vw - 24px))!important;min-width:0!important;max-width:min(90px,calc(100vw - 24px))!important;height:25px!important;min-height:25px!important;max-height:25px!important;padding:1px 3px!important;border-radius:999px!important;gap:2px!important;white-space:nowrap!important;font:700 10.5px/1.2 system-ui,sans-serif!important;opacity:0!important;pointer-events:none!important;transform:translateX(-14px) scale(.98)!important;transition:opacity 2s ease-in-out,transform 2s cubic-bezier(.22,.61,.36,1)!important;animation:none!important;}
html:lang(en) body.kac-site.kace-active.kac-scroll-rail .kace-action{left:auto!important;right:max(10px,env(safe-area-inset-right,0px))!important;transform:translateX(14px) scale(.98)!important;}
html body.kac-site.kace-active.kac-scroll-rail .kace-contact{--kac-rail-index:0;}
html body.kac-site.kace-active.kac-scroll-rail .kace-review{--kac-rail-index:1;}
html body.kac-site.kace-active.kac-scroll-rail .kace-assistant{--kac-rail-index:2;}
html body.kac-site.kace-active.kac-scroll-rail .kace-action svg{width:12px!important;height:12px!important;flex:0 0 12px!important;}
html body.kac-site.kace-active.kac-scroll-rail .kace-action .kace-label{position:static!important;width:auto!important;height:auto!important;padding:0!important;margin:0!important;overflow:visible!important;clip-path:none!important;white-space:nowrap!important;}
html body.kac-site.kace-active.kac-scroll-rail.kac-rail-visible:not(.kac-rail-blocked) .kace-action,html body.kac-site.kace-active.kac-scroll-rail:not(.kac-rail-blocked) .kace-action:focus-visible{opacity:1!important;pointer-events:auto!important;transform:none!important;transition-delay:0s!important;}
@media(prefers-reduced-motion:reduce){html body.kac-site.kace-active.kac-scroll-rail .kace-action{transition:none!important;transform:none!important;}}

/* Semantic icon colors; preserve theme background and text. */
html body.kac-site.kace-active.kac-scroll-rail .kace-contact svg{color:#16803d!important;}
html body.kac-site.kace-active.kac-scroll-rail .kace-review svg{color:#d3224f!important;}
html body.kac-site.kace-active.kac-scroll-rail .kace-assistant svg{color:#176bd1!important;}
@supports(color:color-mix(in srgb,red,white)){
html body.kac-site.kace-active.kac-scroll-rail .kace-contact svg{color:color-mix(in srgb,#20b663 75%,var(--kace-ink,#0a3447) 25%)!important;}
html body.kac-site.kace-active.kac-scroll-rail .kace-review svg{color:color-mix(in srgb,#ee365e 75%,var(--kace-ink,#0a3447) 25%)!important;}
html body.kac-site.kace-active.kac-scroll-rail .kace-assistant svg{color:color-mix(in srgb,#278dff 75%,var(--kace-ink,#0a3447) 25%)!important;}
}
/* Only the existing 16-image carousel, and only after successful JS setup. */
body.kac-site .hero-gallery[data-kac-slide16="1"] .kac16-stage[data-kac-motion="1"] .hero-slide {
  visibility:hidden!important;
  opacity:0!important;
  transition:none!important;
  pointer-events:none!important;
  z-index:1!important;
}
body.kac-site .hero-gallery[data-kac-slide16="1"] .kac16-stage[data-kac-motion="1"] .hero-slide.kac-motion-shown {
  visibility:visible!important;
  opacity:1!important;
  z-index:2!important;
  background:linear-gradient(150deg,#f7fdff,#e3f2f6);
}
body.kac-site .hero-gallery[data-kac-slide16="1"] .kac16-stage[data-kac-motion="1"] .hero-slide.kac-motion-incoming {
  z-index:3!important;
}
