.kxd{margin:6px 0 30px;border:1px solid rgba(184,146,58,.35);border-radius:20px;background:linear-gradient(165deg,#fffefb,#f6f1e6);box-shadow:0 18px 50px rgba(20,17,10,.10);overflow:hidden;animation:kxdIn .8s cubic-bezier(.22,1,.36,1) both}
.kxd-tabs{position:relative;display:flex;gap:2px;padding:10px 12px 0;overflow-x:auto;border-bottom:1px solid rgba(184,146,58,.28);background:rgba(255,252,247,.7)}
.kxd-tab{appearance:none;border:0;background:transparent;font:600 14px/1 'Playfair Display',Georgia,serif;color:#3a3220;padding:13px 16px;cursor:pointer;border-radius:10px 10px 0 0;white-space:nowrap;transition:color .25s,background .25s,transform .25s}
.kxd-tab:hover{color:#8b6914;background:rgba(184,146,58,.10);transform:translateY(-1px)}
.kxd-tab.on{color:#14110a;background:#fff;box-shadow:inset 0 3px 0 #b8923a}
.kxd-ink{position:absolute;left:0;bottom:0;height:2px;width:0;background:linear-gradient(90deg,#b8923a,#e6c97a);transition:transform .4s cubic-bezier(.22,1,.36,1),width .4s}
.kxd-pane{display:none;padding:24px}
.kxd-pane.on{display:block;animation:kxdPane .55s cubic-bezier(.22,1,.36,1) both}
.kxd-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.kxd-card{padding:18px;border-radius:14px;background:#fff;border:1px solid rgba(0,0,0,.08);transition:transform .35s cubic-bezier(.34,1.56,.64,1),box-shadow .35s}
.kxd-card:hover{transform:translateY(-5px);box-shadow:0 16px 36px rgba(20,17,10,.12)}
.kxd-card h4{margin:0 0 6px;font-size:15px;color:#8b6914}.kxd-card p{margin:0;font-size:13.5px;line-height:1.65;color:#2a2418}
.kxd-steps{list-style:none;margin:0;padding:0;position:relative}
.kxd-steps::before{content:"";position:absolute;left:19px;top:8px;bottom:8px;width:2px;background:linear-gradient(180deg,#b8923a,rgba(184,146,58,.15));transform-origin:top;animation:kxdGrow 1.1s cubic-bezier(.22,1,.36,1) both}
.kxd-step{display:flex;gap:14px;align-items:center;padding:10px 0;animation:kxdRise .6s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--i)*.12s + .1s)}
.kxd-dot{flex:0 0 40px;height:40px;border-radius:50%;display:grid;place-items:center;font-weight:700;color:#14110a;background:linear-gradient(135deg,#e6c97a,#b8923a);box-shadow:0 0 0 5px rgba(184,146,58,.15);position:relative;z-index:1}
.kxd-step b{display:block;font-size:15px;color:#14110a}.kxd-step small{color:#5a4f36;font-size:12px}
.kxd-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.kxd-field{display:flex;align-items:center;gap:10px;padding:13px 14px;border-radius:12px;background:#fff;border:1px dashed rgba(184,146,58,.5);font-size:13.5px;color:#2a2418;animation:kxdRise .5s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--i)*.07s)}
.kxd-field i{width:8px;height:8px;border-radius:50%;background:#70581a;box-shadow:0 0 0 4px rgba(112,88,26,.15)}
.kxd-reps{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.kxd-rep{padding:16px;border-radius:14px;background:linear-gradient(145deg,#14110a,#241d0e);color:#f7ecd0;animation:kxdRise .55s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--i)*.08s);transition:transform .35s cubic-bezier(.34,1.56,.64,1)}
.kxd-rep:hover{transform:translateY(-5px) rotate(-.4deg)}.kxd-rep b{display:block;font-size:15px;color:#e6c97a}.kxd-rep span{font-size:12px;opacity:.8}
.kxd-rel{display:flex;flex-wrap:wrap;gap:10px}
.kxd-rel a{padding:11px 16px;border-radius:999px;background:#fff;border:1px solid rgba(184,146,58,.5);color:#14110a;text-decoration:none;font-size:13.5px;transition:all .3s cubic-bezier(.34,1.56,.64,1)}
.kxd-rel a span{display:inline-block;transition:transform .3s}.kxd-rel a:hover{background:linear-gradient(135deg,#e6c97a,#b8923a);transform:translateY(-3px)}.kxd-rel a:hover span{transform:translateX(5px)}
.kxd-faq{margin:0 0 10px;border:1px solid rgba(0,0,0,.1);border-radius:12px;background:#fff;overflow:hidden}
.kxd-faq summary{cursor:pointer;padding:14px 16px;font-weight:600;color:#14110a;list-style:none;position:relative}
.kxd-faq summary::after{content:"+";position:absolute;right:16px;color:#b8923a;font-size:20px;transition:transform .3s}.kxd-faq[open] summary::after{transform:rotate(45deg)}
.kxd-faq p{margin:0;padding:0 16px 16px;line-height:1.7;color:#2a2418;animation:kxdPane .4s both}
@keyframes kxdIn{from{opacity:0;transform:translateY(26px) scale(.985)}to{opacity:1;transform:none}}
@keyframes kxdPane{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes kxdRise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes kxdGrow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@media (prefers-reduced-motion:reduce){.kxd,.kxd *{animation:none!important;transition:none!important}}

.home-visual-row .kx-globe-wrap{position:relative;width:100%;max-width:520px;aspect-ratio:340/250;margin:0 auto;background:transparent;border:0;border-radius:0;overflow:visible;animation:kxGlobeIn 1.1s cubic-bezier(.22,1,.36,1) both}
.kx-globe-wrap canvas{display:block;width:100%;height:100%;filter:drop-shadow(0 24px 40px rgba(112,88,26,.18))}
.kx-globe-wrap::after{content:"";position:absolute;left:12%;right:12%;bottom:-6px;height:22px;border-radius:50%;background:radial-gradient(ellipse at center,rgba(0,0,0,.22),transparent 70%);filter:blur(6px);pointer-events:none}
@keyframes kxGlobeIn{from{opacity:0;transform:translateY(24px) scale(.94)}to{opacity:1;transform:none}}
.globe360-wrap,.earth-stage,.earth360-pin,.globe360-hint{display:none!important}
@media(max-width:900px){.home-visual-row .kx-globe-wrap{max-width:420px}}

.kb-social-dock{background: linear-gradient(165deg,rgba(255,252,245,.97),rgba(248,244,236,.95)) !important;border: 1px solid rgba(215,181,109,.35) !important;box-shadow: 0 12px 36px rgba(29,24,16,.14),0 0 0 1px rgba(215,181,109,.12) !important;backdrop-filter: blur(12px) !important}.kb-social-dock a{color: #1d1810 !important;background: #fff !important;border: 1px solid rgba(215,181,109,.22) !important;box-shadow: 0 2px 8px rgba(0,0,0,.04) !important}.kb-social-dock a:hover{background: linear-gradient(145deg,#d7b56d,#c9a227) !important;color: #0a0a0a !important;border-color: #c9a227 !important;transform: translateY(-3px) scale(1.08) !important;box-shadow: 0 8px 24px rgba(215,181,109,.4) !important}.kb-social-dock a svg{color: inherit !important;fill: currentColor !important}.kb-social-dock a[data-tip]::after,.kb-social-dock a[title]:hover::after{content: attr(data-tip);position: absolute;right: calc(100% + 14px);top: 50%;transform: translateY(-50%);white-space: nowrap;padding: 8px 14px;border-radius: 10px;background: linear-gradient(145deg,#1a1610,#13110d) !important;border: 1px solid rgba(215,181,109,.5) !important;color: #f5e6c8 !important;font-size: 12px !important;font-weight: 600 !important;opacity: 0;visibility: hidden;pointer-events: none;transition: opacity .22s,transform .25s;box-shadow: 0 10px 28px rgba(0,0,0,.35);z-index: 1300}.kb-social-dock a[title]:not([data-tip])::after{content: attr(title)}.kb-social-dock a:hover::after{opacity: 1 !important;visibility: visible !important;transform: translateY(-50%) translateX(-4px) !important}.kb-social-dock a[href*="wa.me"]:hover{background: linear-gradient(145deg,#25D366,#7f641f) !important;color: #fff !important;border-color: #25D366 !important}.kb-social-dock a[href*="linkedin"]:hover{background: linear-gradient(145deg,#0A66C2,#695219) !important;color: #fff !important;border-color: #0A66C2 !important}.kb-social-dock a[href*="mailto"]:hover{background: linear-gradient(145deg,#d7b56d,#a8892e) !important;color: #0a0a0a !important}#kelbrixLeftFramework .klf-item{transition: background .25s,transform .25s,box-shadow .25s !important}#kelbrixLeftFramework .klf-item:hover{background: rgba(215,181,109,.12) !important;transform: translateX(4px)}#kelbrixLeftFramework .klf-item .klf-tip{opacity: 0;max-width: 0;overflow: hidden;white-space: nowrap;transition: opacity .3s,max-width .35s,padding .3s;font-size: 11px;color: #8a7a55;background: rgba(255,252,245,.95);border: 1px solid rgba(215,181,109,.3);border-radius: 8px;padding: 0;margin-left: 0}#kelbrixLeftFramework .klf-item:hover .klf-tip{opacity: 1;max-width: 220px;padding: 6px 10px;margin-left: 8px}#kbPageSideRail{position: fixed;left: 72px;top: 50%;transform: translateY(-50%);z-index: 90;width: 200px;max-height: 70vh;overflow-y: auto;padding: 14px 12px;border-radius: 16px;background: linear-gradient(165deg,rgba(255,252,245,.96),rgba(248,244,236,.94));border: 1px solid rgba(215,181,109,.3);box-shadow: 0 16px 40px rgba(29,24,16,.12);backdrop-filter: blur(12px);display: none;flex-direction: column;gap: 6px}#kbPageSideRail.open{display: flex}#kbPageSideRail .rail-title{font-size: 10px;font-weight: 700;letter-spacing: .18em;text-transform: uppercase;color: #a8892e;margin-bottom: 8px;padding-bottom: 8px;border-bottom: 1px solid rgba(215,181,109,.25)}#kbPageSideRail a{display: flex;align-items: center;gap: 8px;padding: 8px 10px;border-radius: 10px;font-size: 12px;font-weight: 600;color: #1d1810;text-decoration: none;transition: background .2s,transform .2s}#kbPageSideRail a:hover{background: rgba(215,181,109,.15);transform: translateX(3px);color: #8a6d1a}#kbPageSideRail a span.dot{width: 6px;height: 6px;border-radius: 50%;background: #d7b56d;flex-shrink: 0}@media (max-width: 1100px){#kbPageSideRail{display: none !important}}.kb-bottom-cats{display: flex;flex-wrap: wrap;gap: 10px;justify-content: center;margin: 28px auto 12px;max-width: 960px;padding: 0 16px}.kb-bottom-cats a{display: inline-flex;align-items: center;gap: 8px;padding: 10px 18px;border-radius: 999px;font-size: 13px;font-weight: 600;color: #1d1810;background: linear-gradient(145deg,#fffefb,#f4f0e8);border: 1px solid rgba(215,181,109,.35);text-decoration: none;transition: transform .25s,box-shadow .25s,border-color .25s}.kb-bottom-cats a:hover{transform: translateY(-3px);border-color: #d7b56d;box-shadow: 0 10px 28px rgba(215,181,109,.25);color: #8a6d1a}
html body .kb-social-dock a,html body .kb-social-dock a svg,html body .kb-social-dock a path{color: #1d1810 !important;-webkit-text-fill-color: #1d1810 !important;fill: currentColor !important;background: #ffffff !important;border: 1px solid rgba(215,181,109,.28) !important}html body .kb-social-dock a:hover,html body .kb-social-dock a:focus{background: linear-gradient(145deg,#e8c872,#c9a227) !important;color: #0a0a0a !important;-webkit-text-fill-color: #0a0a0a !important;border-color: #c9a227 !important;transform: translateY(-3px) scale(1.1) !important;box-shadow: 0 10px 28px rgba(215,181,109,.45) !important}html body .kb-social-dock a:hover svg,html body .kb-social-dock a:hover path,html body .kb-social-dock a:focus svg,html body .kb-social-dock a:focus path{color: #0a0a0a !important;-webkit-text-fill-color: #0a0a0a !important;fill: #0a0a0a !important}html body .kb-social-dock a[href*="wa.me"]:hover{background: linear-gradient(145deg,#25D366,#7f641f) !important;color: #ffffff !important;-webkit-text-fill-color: #ffffff !important;border-color: #25D366 !important}html body .kb-social-dock a[href*="wa.me"]:hover svg,html body .kb-social-dock a[href*="wa.me"]:hover path{color: #ffffff !important;fill: #ffffff !important;-webkit-text-fill-color: #ffffff !important}html body .kb-social-dock a[href*="linkedin"]:hover{background: linear-gradient(145deg,#0A66C2,#695219) !important;color: #ffffff !important;-webkit-text-fill-color: #ffffff !important;border-color: #0A66C2 !important}html body .kb-social-dock a[href*="linkedin"]:hover svg,html body .kb-social-dock a[href*="linkedin"]:hover path{color: #ffffff !important;fill: #ffffff !important;-webkit-text-fill-color: #ffffff !important}html body .kb-social-dock a[href*="mailto"]:hover{background: linear-gradient(145deg,#e8c872,#a8892e) !important;color: #0a0a0a !important;-webkit-text-fill-color: #0a0a0a !important}html body .kb-social-dock a[href*="github"]:hover{background: linear-gradient(145deg,#333,#111) !important;color: #ffffff !important;-webkit-text-fill-color: #ffffff !important}html body .kb-social-dock a[href*="github"]:hover svg,html body .kb-social-dock a[href*="github"]:hover path{color: #ffffff !important;fill: #ffffff !important}html body .kb-social-dock a[href*="twitter"]:hover,html body .kb-social-dock a[href*="x.com"]:hover{background: #000000 !important;color: #ffffff !important;-webkit-text-fill-color: #ffffff !important}html body .kb-social-dock a[href*="twitter"]:hover svg,html body .kb-social-dock a[href*="twitter"]:hover path,html body .kb-social-dock a[href*="x.com"]:hover svg,html body .kb-social-dock a[href*="x.com"]:hover path{color: #ffffff !important;fill: #ffffff !important}html body .kb-social-dock a[href*="facebook"]:hover{background: linear-gradient(145deg,#1877F2,#ba922c) !important;color: #ffffff !important;-webkit-text-fill-color: #ffffff !important}html body .kb-social-dock a[href*="facebook"]:hover svg,html body .kb-social-dock a[href*="facebook"]:hover path{color: #ffffff !important;fill: #ffffff !important}html body .kb-social-dock a[href*="instagram"]:hover{background: linear-gradient(145deg,#f09433,#c05b4b,#b04d3e,#a34739,#bc1888) !important;color: #ffffff !important;-webkit-text-fill-color: #ffffff !important}html body .kb-social-dock a[href*="instagram"]:hover svg,html body .kb-social-dock a[href*="instagram"]:hover path{color: #ffffff !important;fill: #ffffff !important}html body .kb-social-dock a[data-tip]::after,html body .kb-social-dock a[title]::after{content: attr(data-tip) !important;position: absolute !important;right: calc(100% + 14px) !important;top: 50% !important;transform: translateY(-50%) !important;white-space: nowrap !important;padding: 8px 14px !important;border-radius: 10px !important;background: linear-gradient(145deg,#1a1610,#13110d) !important;border: 1px solid rgba(215,181,109,.55) !important;color: #f5e6c8 !important;-webkit-text-fill-color: #f5e6c8 !important;font-size: 12px !important;font-weight: 600 !important;opacity: 0 !important;visibility: hidden !important;pointer-events: none !important;z-index: 9999 !important;box-shadow: 0 10px 28px rgba(0,0,0,.4) !important}html body .kb-social-dock a[title]:not([data-tip])::after{content: attr(title) !important}html body .kb-social-dock a:hover::after,html body .kb-social-dock a:focus::after{opacity: 1 !important;visibility: visible !important;transform: translateY(-50%) translateX(-4px) !important}html body .navlink:hover,html body .navlink.active,html body .drop a:hover{color: #8a6d1a !important;-webkit-text-fill-color: #8a6d1a !important;background: rgba(215,181,109,.12) !important}html body .navlink.cta:hover{color: #050505 !important;-webkit-text-fill-color: #050505 !important;filter: brightness(1.08)}
.node-projects-grid{display:grid;grid-template-columns:1fr;gap:22px;margin:8px 0 12px}@media(min-width:900px){.node-projects-grid{grid-template-columns:1fr 1fr}}.node-projects-grid .node-project-card{display:grid;grid-template-columns:1fr;gap:16px;padding:26px 24px;border-radius:18px;background:linear-gradient(145deg,rgba(18,16,12,.97),rgba(13,13,11,.99));border:1px solid rgba(216,178,51,.28);position:relative;overflow:hidden;transition:border-color .45s ease,box-shadow .55s ease,transform .55s ease}@media(min-width:720px){.node-projects-grid .node-project-card{grid-template-columns:1.05fr .95fr;align-items:stretch}}.node-projects-grid .node-project-card:hover{border-color:rgba(216,178,51,.55);box-shadow:0 22px 48px -18px rgba(216,178,51,.35);transform:translateY(-3px)}.node-projects-grid .npc-body h3{font-family:'Playfair Display','Cormorant Garamond',Georgia,serif!important;font-size:clamp(18px,2.1vw,22px);margin:10px 0 8px;color:#f3e9d0!important;letter-spacing:-.01em;line-height:1.25}.node-projects-grid .npc-body p{color:#c8c0b0!important;line-height:1.65;margin:0 0 14px;font-size:14.5px}.node-projects-grid .node-badge{display:inline-block;font-family:Cinzel,'Cormorant Garamond',serif;font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#d8b233;background:rgba(216,178,51,.1);border:1px solid rgba(216,178,51,.28);padding:4px 10px;border-radius:999px}.node-projects-grid .phone-pills{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}.node-projects-grid .phone-pills span{font-size:11px;padding:3px 9px;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid rgba(216,178,51,.2);color:#e8d9b0;letter-spacing:.04em}.node-projects-grid .node-code{font-family:'IBM Plex Mono',JetBrains Mono,ui-monospace,monospace;font-size:11.5px;line-height:1.55;color:#9ad4b0;background:rgba(0,0,0,.45);border:1px solid rgba(214,178,90,.18);border-radius:12px;padding:14px 16px;white-space:pre-wrap;overflow:auto;margin:0}@media(min-width:900px){.node-projects-grid .node-project-card:nth-child(odd):last-child{grid-column:1/-1;max-width:920px;margin:0 auto;width:100%}}

.kb-shots-marquee{width:100%;overflow:hidden;padding:20px 0 30px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.kb-shots-track{display:flex !important;gap:20px;width:max-content;animation:kbShotsSlide 45s linear infinite !important;will-change:transform}
.kb-shots-track:hover{animation-play-state:paused !important}
html.kh-scrolling .kb-shots-track{animation-play-state:running !important}
.kb-shots-track .kb-shot{flex:0 0 330px;width:330px}
@keyframes kbShotsSlide{from{transform:translateX(-50%)}to{transform:translateX(0)}}
@media(max-width:700px){.kb-shots-track .kb-shot{flex-basis:260px;width:260px}.kb-shots-track{animation-duration:34s !important}}
@media(prefers-reduced-motion:reduce){.kb-shots-marquee{overflow-x:auto}.kb-shots-track{animation:none !important}}

/* ===== KX NAV FINAL (v46) — centered top nav, slim left rail with ERP department links, hover-only dropdowns ===== */
:root{--kxn-line:#f3efe4;--kxn-ink:#15120d;--kxn-mut:#5a5143;--kxn-blue:#8a6a24;--kxn-gold:#c9a227}

/* ---------- 1. TOP NAV: centered pill, Sign in + Book a Demo attached ---------- */
@media (min-width:1101px){
  html body #mainHeader.header,html body #mainHeader.header.scrolled{
    position:fixed !important;top:12px !important;left:50% !important;right:auto !important;
    width:max-content !important;max-width:calc(100vw - 32px) !important;margin:0 !important;
    transform:translateX(-50%) !important;border-radius:999px !important;
  }
  html body #mainHeader .nav{
    display:flex !important;align-items:center !important;justify-content:center !important;
    gap:4px !important;width:auto !important;max-width:none !important;margin:0 !important;padding:5px 10px !important;
  }
  html body #mainHeader .navlinks{display:flex !important;flex:0 0 auto !important;align-items:center !important;justify-content:center !important;gap:2px !important;margin:0 !important}
  html body #mainHeader .nav-actions{
    display:flex !important;align-items:center !important;gap:6px !important;margin:0 0 0 6px !important;
    padding:0 0 0 10px !important;border-left:1px solid rgba(29,24,16,.14) !important;flex:0 0 auto !important;
  }
  html body #mainHeader .hamb{display:none !important}
}
@media (min-width:1101px){html body #mainHeader .brand-logo{display:none !important}}
@media (min-width:1101px) and (max-width:1280px){
  html body #mainHeader.header,html body #mainHeader.header.scrolled{max-width:calc(100vw - 120px) !important}
  html body #mainHeader .navlink{padding-left:10px !important;padding-right:10px !important;font-size:13px !important}
}
@media (min-width:1101px) and (max-width:1180px){
  html body #mainHeader .navlink{padding-left:6px !important;padding-right:6px !important}
  html body #mainHeader .navlink .arrow{margin-left:2px !important}
}

@media (min-width:1101px) and (max-width:1180px){
  html body #mainHeader.header,html body #mainHeader.header.scrolled{max-width:calc(100vw - 112px) !important}
  html body #mainHeader .nav{padding:4px 6px !important;gap:2px !important}
  html body #mainHeader .navlinks{gap:0 !important}
  html body #mainHeader .navlink{padding:7px 6px !important;font-size:11.5px !important;letter-spacing:0 !important}
  html body #mainHeader .nav-actions{margin-left:2px !important;padding-left:6px !important;gap:3px !important}
  html body #mainHeader .nav-actions .navlink{padding:7px 8px !important}
}
@media (min-width:901px) and (max-width:1100px){
  html body #mainHeader.header,html body #mainHeader.header.scrolled{left:64px !important;right:12px !important;width:auto !important;max-width:none !important;transform:none !important;margin:0 !important}
  html body #mainHeader .nav{display:flex !important;align-items:center !important;justify-content:space-between !important;width:100% !important;padding:6px 12px !important}
  html body #mainHeader .navlinks,html body #mainHeader .nav-actions{display:none !important}
  html body #mainHeader .brand-logo{display:block !important}
  html body #mainHeader .hamb{display:block !important}
}
/* ---------- 2. DROPDOWN LAYERS: open on hover, vanish as soon as the cursor leaves ---------- */
@media (min-width:1101px){
  html body #mainHeader .navitem{position:relative !important}
  html body #mainHeader .navitem .dropdown,html body #mainHeader .navitem .dropdown.wide{
    left:50% !important;right:auto !important;top:calc(100% + 8px) !important;
    transform:translateX(-50%) translateY(6px) !important;
    transition:opacity .14s ease,transform .14s ease,visibility 0s linear .14s !important;
  }
  html body #mainHeader .navitem:hover .dropdown{
    opacity:1 !important;visibility:visible !important;pointer-events:auto !important;
    transform:translateX(-50%) translateY(0) !important;transition-delay:0s !important;
  }
  /* focus-within used to keep the layer open after a click — only hover may open it now */
  html body #mainHeader .navitem:not(:hover) .dropdown{opacity:0 !important;visibility:hidden !important;pointer-events:none !important}
  /* invisible bridge so the layer does not close while the cursor travels down into it */
  html body #mainHeader .navitem .dropdown::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
}

/* ---------- 3. LEFT RAIL: slim, full height, ERP department links ---------- */
@media (min-width:701px){
  html body #kelbrixLeftFramework.kelbrix-left-fw{
    left:0 !important;top:0 !important;bottom:0 !important;height:100vh !important;max-height:100vh !important;
    width:52px !important;padding:0 !important;border-radius:0 16px 16px 0 !important;
    overflow-x:hidden !important;overflow-y:auto !important;scrollbar-width:thin;scrollbar-color:#d9cdae transparent;
    box-shadow:3px 0 18px rgba(29,24,16,.12),inset -1px 0 0 rgba(201,162,39,.35) !important;
    transition:width .26s cubic-bezier(.22,1,.36,1),box-shadow .26s ease !important;
  }
  html body #kelbrixLeftFramework.kelbrix-left-fw:hover,
  html body #kelbrixLeftFramework.kelbrix-left-fw:focus-within,
  html body #kelbrixLeftFramework.kelbrix-left-fw.kx-open{
    width:216px !important;height:100vh !important;border-radius:0 16px 16px 0 !important;
    box-shadow:14px 0 40px rgba(29,24,16,.18),inset -1px 0 0 rgba(201,162,39,.4) !important;
  }
  html body #kelbrixLeftFramework::-webkit-scrollbar{width:4px}
  html body #kelbrixLeftFramework::-webkit-scrollbar-thumb{background:#d9cdae;border-radius:4px}
  html body #kelbrixLeftFramework .klf-logo-wrap{height:46px !important}
  html body #kelbrixLeftFramework .klx-mark{width:30px !important;height:32px !important;left:11px !important;top:8px !important}
  html body #kelbrixLeftFramework .klx-full{width:140px !important;height:34px !important;left:14px !important;top:7px !important}
  html body #kelbrixLeftFramework .klf-nav{width:calc(100% - 12px) !important;margin:2px 6px 0 !important}
  html body #kelbrixLeftFramework .klf-item{padding:7px 12px !important;gap:12px !important;font-size:12.5px !important;border-radius:10px !important;min-height:0 !important;letter-spacing:0 !important}
  html body #kelbrixLeftFramework .klf-item:hover{padding-left:12px !important}
  html body #kelbrixLeftFramework .klf-icon{width:18px !important;height:18px !important;flex:0 0 18px !important}
  html body #kelbrixLeftFramework .klf-svg{width:18px !important;height:18px !important}
  html body #kelbrixLeftFramework .klf-chev{display:none !important}
  html body #kelbrixLeftFramework .klf-promo,html body #kelbrixLeftFramework .klf-copy{display:none !important}
}

/* ERP department block (inside the rail) */
#kelbrixLeftFramework .klf-erp{margin:6px 6px 16px;width:calc(100% - 12px);padding-top:4px;border-top:1px solid rgba(201,162,39,.35)}
#kelbrixLeftFramework .klf-erp-title{font:700 10px/1 'Inter',system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#7a6f5d;padding:9px 12px 5px;white-space:nowrap;opacity:0;transition:opacity .2s ease}
#kelbrixLeftFramework .klf-dep-head{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;padding:7px 12px;border-radius:10px;font:500 12.5px/1.2 'Inter',system-ui,sans-serif;color:var(--kxn-ink);cursor:pointer;user-select:none;white-space:nowrap;outline:0;transition:background .15s}
#kelbrixLeftFramework .klf-dep-head:hover,#kelbrixLeftFramework .klf-dep-head:focus-visible{background:#faf8f2}
#kelbrixLeftFramework .klf-dep.open>.klf-dep-head{background:rgba(201,162,74,.10);color:var(--kxn-blue)}
#kelbrixLeftFramework .klf-dep-head .klf-icon{color:#7e662a;display:grid;place-items:center}
#kelbrixLeftFramework .klf-dep-lbl{flex:1;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .2s ease}
#kelbrixLeftFramework .klf-caret{font-variant-emoji:text;font-family:Arial,sans-serif;font-size:9px;color:#7a6f5d;opacity:0;transition:transform .2s ease,opacity .2s ease}
#kelbrixLeftFramework .klf-dep.open>.klf-dep-head .klf-caret{transform:rotate(90deg);color:var(--kxn-blue)}
#kelbrixLeftFramework:hover .klf-erp-title,#kelbrixLeftFramework:focus-within .klf-erp-title,#kelbrixLeftFramework.kx-open .klf-erp-title,
#kelbrixLeftFramework:hover .klf-dep-lbl,#kelbrixLeftFramework:focus-within .klf-dep-lbl,#kelbrixLeftFramework.kx-open .klf-dep-lbl,
#kelbrixLeftFramework:hover .klf-caret,#kelbrixLeftFramework:focus-within .klf-caret,#kelbrixLeftFramework.kx-open .klf-caret{opacity:1}
#kelbrixLeftFramework .klf-dep-panel{display:none;margin:2px 0 6px 21px;padding:0 0 2px 8px;border-left:1px solid #f2ecdc}
#kelbrixLeftFramework .klf-dep.open>.klf-dep-panel{display:block}
#kelbrixLeftFramework:not(:hover):not(:focus-within):not(.kx-open) .klf-dep-panel{display:none}
#kelbrixLeftFramework .klf-grp{font:700 9.5px/1 'Inter',system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#8f6b00;padding:9px 8px 3px;white-space:nowrap}
#kelbrixLeftFramework .klf-dep-panel a{display:block;padding:5px 8px;border-radius:7px;font:400 12px/1.25 'Inter',system-ui,sans-serif;color:#4a4032 !important;-webkit-text-fill-color:#4a4032 !important;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#kelbrixLeftFramework .klf-dep-panel a:hover,#kelbrixLeftFramework .klf-dep-panel a:focus-visible{background:#fbf8f2;color:var(--kxn-blue) !important;-webkit-text-fill-color:var(--kxn-blue) !important}
#kelbrixLeftFramework .klf-dep-panel a.klf-dep-open{font-weight:600;color:var(--kxn-blue) !important;-webkit-text-fill-color:var(--kxn-blue) !important}

/* ===== KX RESOLUTION + BORDERS (v46b) ===== */
/* --- resolution: use the width of big screens, stop the floating page rail covering content on small ones --- */
@media (min-width:1700px){
  html body .container{width:min(1480px,86%) !important}
  html body .page-hero,html body .kxn{max-width:none !important}
}
@media (min-width:2200px){
  html body .container{width:min(1840px,78%) !important}
  html body #mainHeader .navlink{font-size:15px !important}
}
@media (max-width:1699px){html body #kbPageSideRail{display:none !important}}
@media (max-height:760px) and (min-width:1101px){html body #mainHeader.header{top:8px !important}}

/* --- refined borders for cards / panels --- */
html body :is(.card,.mod-thumb,.partner-card,.cert-card,.mcard,.qa,.workspace-card,.metric,.kxd,.kxd-card,.kxd-faq,.kxd-field,.kxd-rep,.erp-live,.erp-panel,.portal-item,.ceo-card,.price-card,.pricing-card,.plan){
  border:1px solid rgba(201,162,39,.38) !important;border-radius:18px !important;
  box-shadow:0 10px 28px rgba(29,24,16,.08),inset 0 1px 0 rgba(255,255,255,.75) !important;
  transition:border-color .25s ease,box-shadow .3s ease,transform .3s ease !important;
}
html body :is(.card,.mod-thumb,.partner-card,.cert-card,.mcard,.qa,.workspace-card,.metric,.kxd-card,.kxd-rep,.portal-item,.price-card,.pricing-card,.plan):hover{
  border-color:rgba(201,162,39,.85) !important;
  box-shadow:0 18px 44px rgba(29,24,16,.14),0 0 0 3px rgba(201,162,39,.14),inset 0 1px 0 rgba(255,255,255,.85) !important;
}
html body :is(.header,.header.scrolled){border:1px solid rgba(201,162,39,.42) !important}
html body :is(.dropdown){border:1px solid rgba(201,162,39,.4) !important;border-top:3px solid #c9a227 !important;border-radius:16px !important}
html body :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]){border:1px solid rgba(201,162,39,.45) !important;border-radius:12px !important;transition:border-color .2s,box-shadow .2s !important}
html body :is(input,select,textarea):not([type=checkbox]):not([type=radio]):focus{border-color:#c9a227 !important;box-shadow:0 0 0 3px rgba(201,162,39,.2) !important;outline:0 !important}
html body :is(img.shot,.kb-shot,.lux-frame){border:1px solid rgba(201,162,39,.4) !important;border-radius:18px !important}

/* --- tabs: bar + each tab --- */
html body :is(.kxd-tabs,.kx-mod-tabs,.sol-tabs-bar,.kl-tabs,.video-pills,.auth-tabs){
  border:1px solid rgba(201,162,39,.45) !important;border-radius:16px !important;
  background:linear-gradient(180deg,#ffffff,#fcfbf7) !important;padding:6px !important;gap:6px !important;
  box-shadow:0 6px 20px rgba(29,24,16,.08),inset 0 1px 0 #fff !important;
}
html body :is(.kxd-tab,.kx-mod-tab,.sol-pill,.video-pill,.kl-tab,.related-chip,.why-tab,.auth-tab){
  border:1px solid rgba(201,162,39,.30) !important;border-radius:12px !important;background:#fff !important;
  box-shadow:none !important;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease !important;
}
html body :is(.kxd-tab,.kx-mod-tab,.sol-pill,.video-pill,.kl-tab,.related-chip,.why-tab,.auth-tab):hover{
  border-color:rgba(201,162,39,.85) !important;background:#fffaf0 !important;transform:translateY(-1px);
}
html body :is(.kxd-tab.on,.kxd-tab.active,.kx-mod-tab.active,.kx-mod-tab.on,.sol-pill.active,.sol-pill.on,.video-pill.active,.kl-tab.active,.kl-tab.on,.why-tab.active,.why-tab.on,.auth-tab.active,.auth-tab.on,[role=tab][aria-selected=true]){
  border-color:#c9a227 !important;background:linear-gradient(180deg,#fffdf4,#fbf0cf) !important;
  box-shadow:0 6px 16px rgba(201,162,39,.28),inset 0 -3px 0 #c9a227 !important;
}

/* ===== v47: when the left rail expands on hover, slide the top bar to the right of it (no overlap at 1101-1500px) ===== */
@media (min-width:1101px) and (max-width:1500px){
  html body #mainHeader.header,html body #mainHeader.header.scrolled{transition:left .26s cubic-bezier(.22,1,.36,1),max-width .26s ease !important}
  html body:has(#kelbrixLeftFramework:hover) #mainHeader.header,
  html body:has(#kelbrixLeftFramework:focus-within) #mainHeader.header,
  html body:has(#kelbrixLeftFramework.kx-open) #mainHeader.header{
    left:calc(228px + (100vw - 240px) / 2) !important;max-width:calc(100vw - 244px) !important;
  }
}
@media (min-width:1101px) and (max-width:1160px){
  html body:has(#kelbrixLeftFramework:hover) #mainHeader .navlink,
  html body:has(#kelbrixLeftFramework:focus-within) #mainHeader .navlink,
  html body:has(#kelbrixLeftFramework.kx-open) #mainHeader .navlink{padding-left:4px !important;padding-right:4px !important;font-size:11px !important}
}

/* Partners handshake: the centre Kelbrix logo sits on a DARK panel (.hs2), so it uses the light champagne logo
   (kelbrix-logo-dark.png). The navy logo was invisible there. */
html body .hs2 .hs2-logo-wrap,html body .hs2 .hs2-brand{opacity:1!important;visibility:visible!important}
html body .hs2 .hs2-logo-wrap .kxl-logo,html body .hs2 img.hs2-logo-img{display:block!important;opacity:1!important;visibility:visible!important;height:40px!important;width:auto!important;max-width:170px!important;filter:drop-shadow(0 2px 10px rgba(216,178,51,.35))!important}
