/* =========================================================
   KHAGAN PREMIUM CORE v2
   Shared header / footer / typography utilities.
   Load AFTER css/style.css on premium pages.
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&display=swap");

:root{
  --khx-black:#080808;
  --khx-ink:#111;
  --khx-muted:#666662;
  --khx-line:#deded9;
  --khx-paper:#f1efeb;
  --khx-paper-2:#f7f6f3;
  --khx-gold:#f0b400;
  --khx-max:1440px;
  --khx-side:clamp(18px,3vw,48px);
  --khx-header:72px;
}

:is(.page-about-premium,.khx-page){
  margin:0;
  overflow-x:hidden;
  background:#fff;
  color:var(--khx-ink);
  font-family:Montserrat,Tahoma,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
:is(.page-about-premium,.khx-page) *, :is(.page-about-premium,.khx-page) *::before, :is(.page-about-premium,.khx-page) *::after{box-sizing:border-box}
:is(.page-about-premium,.khx-page) img{max-width:100%}
:is(.page-about-premium,.khx-page) button,:is(.page-about-premium,.khx-page) select{font:inherit}
:is(.page-about-premium,.khx-page) a{color:inherit}
:is(.page-about-premium,.khx-page) section[id]{scroll-margin-top:calc(var(--khx-header) + 50px)}

/* Header */
:is(.page-about-premium,.khx-page) .khx-header{
  position:sticky!important;
  top:0!important;
  z-index:9999!important;
  height:var(--khx-header)!important;
  min-height:var(--khx-header)!important;
  margin:0!important;
  padding:0!important;
  background:rgba(8,8,8,.96)!important;
  color:#fff!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.12)!important;
  box-shadow:none!important;
  backdrop-filter:blur(14px);
}
:is(.page-about-premium,.khx-page) .khx-header-inner{
  width:min(calc(100% - var(--khx-side)*2),var(--khx-max));
  height:100%;
  margin:0 auto;
  display:grid;
  grid-template-columns:180px 1fr auto;
  align-items:center;
  gap:28px;
}
:is(.page-about-premium,.khx-page) .khx-logo{display:flex;align-items:center;width:max-content;text-decoration:none}
:is(.page-about-premium,.khx-page) .khx-logo img{display:block;width:150px;height:auto;max-height:44px;object-fit:contain}
:is(.page-about-premium,.khx-page) .khx-nav{display:flex;align-items:stretch;justify-content:center;gap:clamp(18px,2vw,34px);height:100%;background:transparent!important;margin:0!important;padding:0!important}
:is(.page-about-premium,.khx-page) .khx-nav a{position:relative;display:flex;align-items:center;height:100%;padding:0!important;color:#eee!important;text-decoration:none!important;font-family:Montserrat,Tahoma,Arial,sans-serif!important;font-size:11px!important;font-weight:700!important;letter-spacing:.055em!important;white-space:nowrap;text-transform:none!important}
:is(.page-about-premium,.khx-page) .khx-nav a::after{content:"";position:absolute;left:0;right:100%;bottom:16px;height:1px;background:#fff;transition:right .22s ease}
:is(.page-about-premium,.khx-page) .khx-nav a:hover::after,:is(.page-about-premium,.khx-page) .khx-nav a.is-active::after{right:0}
:is(.page-about-premium,.khx-page) .khx-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px}
:is(.page-about-premium,.khx-page) .khx-language{display:flex;align-items:center;gap:8px;color:#777;font-size:10px;font-weight:800;letter-spacing:.12em}
:is(.page-about-premium,.khx-page) .khx-language a{color:#8a8a8a;text-decoration:none}:is(.page-about-premium,.khx-page) .khx-language a.is-active,:is(.page-about-premium,.khx-page) .khx-language a:hover{color:#fff}
:is(.page-about-premium,.khx-page) .khx-menu-button{display:none;position:relative;width:38px;height:38px;padding:0;border:0;background:transparent;color:currentColor;cursor:pointer}
:is(.page-about-premium,.khx-page) .khx-menu-button span{position:absolute;left:8px;width:22px;height:1.5px;background:currentColor;transition:transform .22s ease,top .22s ease}:is(.page-about-premium,.khx-page) .khx-menu-button span:first-child{top:14px}:is(.page-about-premium,.khx-page) .khx-menu-button span:last-child{top:22px}:is(.page-about-premium,.khx-page) .khx-menu-button[aria-expanded="true"] span:first-child{top:18px;transform:rotate(45deg)}:is(.page-about-premium,.khx-page) .khx-menu-button[aria-expanded="true"] span:last-child{top:18px;transform:rotate(-45deg)}

/* Shared type / links */
:is(.page-about-premium,.khx-page) .khx-kicker{margin:0;color:rgba(255,255,255,.72);font-size:9px;font-weight:800;letter-spacing:.18em;text-transform:uppercase}
:is(.page-about-premium,.khx-page) .khx-kicker--dark{color:#777}
:is(.page-about-premium,.khx-page) .khx-text-link{display:inline-flex;align-items:center;gap:18px;padding:9px 0;border-bottom:1px solid currentColor;text-decoration:none;font-size:10px;font-weight:800;letter-spacing:.1em}:is(.page-about-premium,.khx-page) .khx-text-link span{transition:transform .2s ease}:is(.page-about-premium,.khx-page) .khx-text-link:hover span{transform:translateX(4px)}:is(.page-about-premium,.khx-page) .khx-text-link--light{color:#fff}

/* Footer */
:is(.page-about-premium,.khx-page) .khx-footer{margin:0!important;background:#090909!important;color:#fff!important;border:0!important}
:is(.page-about-premium,.khx-page) .khx-footer-top{width:min(calc(100% - var(--khx-side)*2),var(--khx-max));margin:0 auto;padding:76px 0 72px;display:grid;grid-template-columns:1.45fr repeat(4,1fr);gap:52px}
:is(.page-about-premium,.khx-page) .khx-footer-brand img{width:150px;height:auto;display:block;margin-bottom:24px}:is(.page-about-premium,.khx-page) .khx-footer-brand p{max-width:300px;margin:0;color:#8c8c8c;font-family:Tahoma,Arial,sans-serif;font-size:13px;line-height:1.65}
:is(.page-about-premium,.khx-page) .khx-footer-col{display:flex;flex-direction:column;gap:9px}:is(.page-about-premium,.khx-page) .khx-footer-col h4{margin:0 0 8px;color:#737373;font-size:9px;font-weight:800;letter-spacing:.14em}:is(.page-about-premium,.khx-page) .khx-footer-col a,:is(.page-about-premium,.khx-page) .khx-footer-col span{margin:0;color:#d6d6d6;text-decoration:none;font-family:Tahoma,Arial,sans-serif;font-size:13px;line-height:1.55}:is(.page-about-premium,.khx-page) .khx-footer-col a:hover{color:#fff}
:is(.page-about-premium,.khx-page) .khx-footer-bottom{min-height:62px;padding:0 max(var(--khx-side),calc((100vw - var(--khx-max))/2));display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #242424;color:#777;font-size:10px;letter-spacing:.02em}:is(.page-about-premium,.khx-page) .khx-footer-bottom a{color:#aaa;text-decoration:none;font-weight:700;letter-spacing:.08em}
:is(.page-about-premium,.khx-page) .khx-scrolltop{position:fixed!important;right:18px!important;bottom:18px!important;z-index:9998!important;width:44px!important;height:44px!important;margin:0!important;padding:0!important;border-radius:50%!important;background:#111!important;color:#fff!important;border:1px solid rgba(255,255,255,.15)!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:18px!important;line-height:1!important;cursor:pointer!important;opacity:0;visibility:hidden;transform:translateY(8px);transition:.2s ease}:is(.page-about-premium,.khx-page) .khx-scrolltop.is-visible{opacity:1;visibility:visible;transform:none}

@media (max-width:1180px){
  :root{--khx-side:24px;--khx-header:68px}
  :is(.page-about-premium,.khx-page) .khx-header-inner{grid-template-columns:160px 1fr auto}
  :is(.page-about-premium,.khx-page) .khx-nav{gap:15px}:is(.page-about-premium,.khx-page) .khx-nav a{font-size:10px!important;letter-spacing:.035em!important}
  :is(.page-about-premium,.khx-page) .khx-footer-top{grid-template-columns:1.2fr repeat(2,1fr);row-gap:46px}:is(.page-about-premium,.khx-page) .khx-footer-brand{grid-row:span 2}
}

@media (max-width:900px){
  :root{--khx-side:18px;--khx-header:66px}
  :is(.page-about-premium,.khx-page) .khx-header{background:#fff!important;color:#111!important;border-bottom:1px solid #e8e8e5!important;backdrop-filter:none}
  :is(.page-about-premium,.khx-page) .khx-header-inner{width:calc(100% - 32px);grid-template-columns:1fr auto;gap:12px}
  :is(.page-about-premium,.khx-page) .khx-logo img{width:128px;filter:invert(1)}
  :is(.page-about-premium,.khx-page) .khx-header-actions{gap:10px}:is(.page-about-premium,.khx-page) .khx-language{color:#999}:is(.page-about-premium,.khx-page) .khx-language a{color:#777}:is(.page-about-premium,.khx-page) .khx-language a.is-active{color:#111}
  :is(.page-about-premium,.khx-page) .khx-menu-button{display:block}
  :is(.page-about-premium,.khx-page) .khx-nav{position:absolute;top:var(--khx-header);left:0;right:0;height:auto;display:none;flex-direction:column;align-items:stretch;gap:0;padding:10px 18px 18px!important;background:#fff!important;border-bottom:1px solid #ddd;box-shadow:0 12px 26px rgba(0,0,0,.08)}
  :is(.page-about-premium,.khx-page) .khx-nav.is-open{display:flex}:is(.page-about-premium,.khx-page) .khx-nav a{height:auto;padding:14px 0!important;color:#111!important;font-size:12px!important;border-bottom:1px solid #eee}:is(.page-about-premium,.khx-page) .khx-nav a:last-child{border-bottom:0}:is(.page-about-premium,.khx-page) .khx-nav a::after{display:none}
  :is(.page-about-premium,.khx-page) .khx-footer-top{width:calc(100% - 36px);grid-template-columns:repeat(2,1fr);gap:38px 24px;padding:58px 0}:is(.page-about-premium,.khx-page) .khx-footer-brand{grid-column:1/-1;grid-row:auto}:is(.page-about-premium,.khx-page) .khx-footer-bottom{padding:18px;min-height:0;align-items:flex-start;flex-direction:column;font-size:9px}
}

@media (max-width:520px){
  :is(.page-about-premium,.khx-page) .khx-footer-top{grid-template-columns:1fr 1fr}:is(.page-about-premium,.khx-page) .khx-footer-col a,:is(.page-about-premium,.khx-page) .khx-footer-col span{font-size:12px}
}

@media (prefers-reduced-motion:reduce){
  :is(.page-about-premium,.khx-page) *{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
