/* ===================== Kitex Digital: shared header =====================
   One file, every page. Redesigned pages link it directly; legacy pages
   (journal, website check) get it through the @import at the top of style.css.
   It is self-contained on purpose: its own font-face and its own variables, so
   it renders the same whichever stylesheet the page underneath uses.
   Markup lives in js/layout.js (var HEADER). */

/* Switzer (Fontshare, ITF Free Font License), one variable file, self-hosted */
@font-face{font-family:'Switzer';font-style:normal;font-weight:100 900;font-display:swap;src:url('/fonts/switzer-variable.woff2') format('woff2')}

.kx-hd{
  --hd-h:68px;
  --hd-pad:32px;
  --hd-bg:#080809;
  --hd-panel:#080809;
  --hd-line:rgba(255,255,255,.11);
  --hd-ink:#f4f5f8;
  --hd-mute:#9aa1b6;
  --hd-blue:#233FB3;
  --hd-blue-h:#1B3290;
  --hd-link:#8ea2ff;
  --hd-font:'Switzer',system-ui,-apple-system,'Segoe UI',sans-serif;
  position:fixed;top:0;left:0;right:0;z-index:500;height:var(--hd-h);
  font-family:var(--hd-font);color:var(--hd-ink);
  background:rgba(8,8,9,.84);
  -webkit-backdrop-filter:saturate(140%) blur(14px);backdrop-filter:saturate(140%) blur(14px);
  border-bottom:1px solid var(--hd-line);
}
.kx-hd *{box-sizing:border-box}
.kx-hd a{color:inherit;text-decoration:none}
.kx-hd-in{height:100%;display:flex;align-items:center;padding:0 var(--hd-pad)}

/* the logo sits in the corner of the screen, not on the content column */
.kx-hd-logo{flex:none;display:flex;align-items:center;height:100%}
.kx-hd-logo img{display:block;height:30px;width:auto}

.kx-hd-nav{display:flex;align-items:stretch;height:100%;margin-left:38px}
.kx-hd-item{display:flex;align-items:stretch}
.kx-hd-link{display:flex;align-items:center;gap:7px;height:100%;padding:0 14px;
  font-size:15px;font-weight:400;letter-spacing:-.005em;color:var(--hd-ink);white-space:nowrap;
  transition:color .18s ease}
.kx-hd-link:hover,.kx-hd-item:hover>.kx-hd-link,.kx-hd-item:focus-within>.kx-hd-link{color:#fff}
.kx-hd-link.is-active{color:#fff}
.kx-hd-caret{flex:none;opacity:.7;transition:transform .2s ease}
.kx-hd-item:hover .kx-hd-caret,.kx-hd-item:focus-within .kx-hd-caret{transform:rotate(180deg)}
.kx-hd-tag{font-size:10.5px;font-weight:500;letter-spacing:.04em;line-height:1;padding:4px 6px 3px;border-radius:4px;
  color:var(--hd-link);border:1px solid rgba(142,162,255,.38)}

/* actions, right edge */
.kx-hd-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.kx-hd-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 18px;
  font-family:var(--hd-font);font-size:14.5px;font-weight:500;letter-spacing:-.005em;line-height:1;white-space:nowrap;
  border-radius:6px;border:1px solid transparent;transition:background .18s ease,border-color .18s ease}
.kx-hd-btn svg{flex:none;transition:transform .18s ease}
.kx-hd-btn:hover svg{transform:translateX(2px)}
.kx-hd .kx-hd-btn-ghost{border-color:rgba(255,255,255,.2);color:var(--hd-ink)}
.kx-hd .kx-hd-btn-ghost:hover{border-color:rgba(255,255,255,.42)}
.kx-hd .kx-hd-btn-solid{background:var(--hd-blue);border-color:var(--hd-blue);color:#fff}
.kx-hd .kx-hd-btn-solid:hover{background:var(--hd-blue-h);border-color:var(--hd-blue-h)}

/* drop panel: runs the full width of the window, straight under the bar */
.kx-hd-panel{position:absolute;left:0;right:0;top:100%;
  background:var(--hd-panel);border-top:1px solid var(--hd-line);border-bottom:1px solid var(--hd-line);
  box-shadow:0 40px 70px -20px rgba(0,0,0,.75);
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s}
.kx-hd-item:hover>.kx-hd-panel,.kx-hd-item:focus-within>.kx-hd-panel{opacity:1;visibility:visible;transform:none;transition-delay:0s}
.kx-hd-panel-in{display:grid;grid-template-columns:repeat(3,minmax(0,250px)) minmax(0,1fr);gap:0 44px;
  padding:26px var(--hd-pad) 30px calc(var(--hd-pad) + 108px)}
.kx-hd-panel-in.is-two{grid-template-columns:minmax(0,300px) minmax(0,1fr)}
.kx-hd-sub{display:block;padding:7px 0}
.kx-hd-sub b{display:block;font-size:15px;font-weight:500;color:var(--hd-link);transition:color .15s ease}
.kx-hd-sub span{display:block;font-size:14px;line-height:1.4;color:var(--hd-mute);margin-top:2px}
.kx-hd-sub:hover b{color:#fff}
.kx-hd-more{justify-self:end;align-self:start;width:min(300px,100%);display:block;padding:20px 22px 20px;
  border:1px solid var(--hd-line);border-radius:8px;
  background:transparent;
  transition:border-color .18s ease}
.kx-hd-more:hover{border-color:rgba(142,162,255,.5)}
.kx-hd-more b{display:block;font-size:16px;font-weight:500;color:#fff}
.kx-hd-more span{display:block;font-size:14px;line-height:1.45;color:var(--hd-mute);margin:6px 0 16px}
.kx-hd-more i{font-style:normal;display:inline-flex;align-items:center;gap:6px;font-size:14.5px;font-weight:500;color:var(--hd-link)}

.kx-hd-burger{display:none}
.kx-hd-m-actions{display:none}

.skip-link{position:fixed;left:12px;top:-60px;z-index:600;background:#3058F8;color:#fff;padding:12px 20px;border-radius:6px;
  font-family:'Switzer',system-ui,sans-serif;font-weight:600;font-size:14px;transition:top .2s ease}
.skip-link:focus{top:12px}
.kx-hd a:focus-visible,.kx-hd button:focus-visible{outline:2px solid #6E8BFF;outline-offset:2px;border-radius:6px}

@media(max-width:1180px){
  .kx-hd-panel-in{padding-left:var(--hd-pad);gap:0 28px}
  .kx-hd-link{padding:0 11px}
  .kx-hd-nav{margin-left:22px}
}

/* ---------- phones and small tablets: square menu button, full-screen sheet ---------- */
@media(max-width:960px){
  .kx-hd{--hd-h:60px;--hd-pad:20px}
  .kx-hd-logo img{height:27px}
  .kx-hd-actions{display:none}
  .kx-hd-burger{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;margin-left:auto;
    width:40px;height:40px;padding:0;border-radius:6px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.04);cursor:pointer}
  .kx-hd-burger span{display:block;width:16px;height:1.5px;background:#fff;border-radius:2px;transition:transform .22s ease,opacity .15s ease}
  .kx-hd.is-open .kx-hd-burger span:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
  .kx-hd.is-open .kx-hd-burger span:nth-child(2){opacity:0}
  .kx-hd.is-open .kx-hd-burger span:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}

  .kx-hd-nav{display:none;position:fixed;left:0;right:0;top:var(--hd-h);bottom:0;margin:0;height:auto;
    flex-direction:column;align-items:stretch;overflow-y:auto;-webkit-overflow-scrolling:touch;
    background:var(--hd-bg);padding:6px var(--hd-pad) 0}
  .kx-hd.is-open{background:var(--hd-bg);-webkit-backdrop-filter:none;backdrop-filter:none}
  .kx-hd.is-open .kx-hd-nav{display:flex}
  .kx-hd-item{display:block;border-bottom:1px dashed rgba(255,255,255,.14)}
  .kx-hd-link{height:auto;padding:17px 0;font-size:20px;font-weight:400;letter-spacing:-.01em;justify-content:flex-start}
  .kx-hd-caret{display:none}
  .kx-hd-tag{font-size:11px}
  .kx-hd-panel{position:static;opacity:1;visibility:visible;transform:none;transition:none;background:none;border:0;box-shadow:none}
  .kx-hd-panel-in,.kx-hd-panel-in.is-two{display:grid;grid-template-columns:1fr 1fr;gap:2px 20px;padding:0 0 16px}
  .kx-hd-col{display:contents}
  .kx-hd-sub{padding:6px 0}
  .kx-hd-sub b{font-size:15px;font-weight:400}
  .kx-hd-sub span{display:none}
  .kx-hd-more{display:none}
  .kx-hd-m-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;position:sticky;bottom:0;margin-top:auto;
    padding:18px 0 max(18px,env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(8,8,9,0),var(--hd-bg) 26%)}
  .kx-hd-m-actions .kx-hd-btn{height:48px;font-size:16px}
  html.kx-lock,html.kx-lock body{overflow:hidden}
}
@media(prefers-reduced-motion:reduce){
  .kx-hd-panel,.kx-hd-btn svg,.kx-hd-caret,.kx-hd-burger span{transition:none}
}
