/* V640: shared LK navigation. The isolated Flow market header is intentionally untouched. */
.lk-nav-wrap{position:relative;flex:0 0 40px;min-width:40px}
.lk-nav-toggle{width:40px;height:40px;padding:0;display:grid;place-items:center;position:relative;border:0;border-radius:10px;background:#ececf1;color:#444;cursor:pointer;transition:background .16s ease,color .16s ease}
.lk-nav-toggle svg{width:23px;height:23px;display:block;overflow:visible}
/* Two independent, centered icons; no skewed CSS rotations. */
.lk-nav-burger-shape,.lk-nav-close-shape{transform-origin:50% 50%;transition:opacity .16s ease}
.lk-nav-close-shape{opacity:0}
.lk-nav-toggle.is-open .lk-nav-burger-shape{opacity:0}
.lk-nav-toggle.is-open .lk-nav-close-shape{opacity:1}
.lk-nav-toggle.is-open{background:#e5f0ff;color:#007aff}
.lk-nav-toggle:focus-visible,.lk-nav-item:focus-visible{outline:2px solid #007aff;outline-offset:3px}
.lk-nav-desktop{position:absolute;right:0;top:calc(100% + 13px);z-index:5;width:min(326px,calc(100vw - 32px));max-height:calc(100dvh - 112px)}
.lk-nav-desktop[hidden],.lk-nav-dim[hidden]{display:none!important}
.lk-nav-popover{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 112px);overflow:auto;overscroll-behavior:contain;padding:9px;border:1px solid #e5e7ed;border-radius:18px;background:#fff;box-shadow:0 18px 58px rgba(22,28,42,.16);scrollbar-width:thin;scrollbar-color:rgba(93,98,110,.35) transparent}
.lk-nav-popover::-webkit-scrollbar,.lk-nav-sheet-body::-webkit-scrollbar{width:6px}
.lk-nav-popover::-webkit-scrollbar-thumb,.lk-nav-sheet-body::-webkit-scrollbar-thumb{border-radius:99px;background:rgba(93,98,110,.35)}
.lk-nav-links{display:grid;gap:3px;min-width:0}
.lk-nav-footer{display:grid;gap:3px;min-width:0;border-top:1px solid #edf0f4;margin-top:8px;padding-top:8px}
.lk-nav-item{width:100%;min-height:46px;min-width:0;padding:6px 8px;border:0;border-radius:10px;background:transparent;display:flex;align-items:center;gap:10px;text-decoration:none;text-align:left;font-family:inherit;font-size:16px;line-height:20px;font-weight:400;color:var(--lk-text,#22252b);cursor:pointer}
.lk-nav-item-label{min-width:0;white-space:normal;overflow-wrap:anywhere}
.lk-nav-item-icon{width:30px;height:30px;flex:0 0 30px;border-radius:9px;display:grid;place-items:center;background:#f0f1f5;color:#5f636b}
.lk-nav-item-icon svg{display:block;width:18px;height:18px}
.lk-nav-item.is-active{background:#f5f8fc;font-weight:600}
.lk-nav-item.is-active .lk-nav-item-icon{background:#e6f0ff;color:var(--lk-blue,#007aff)}
@media(hover:hover) and (pointer:fine){.lk-nav-item:not(.is-active):hover{background:#fafafd}.lk-nav-toggle:hover{background:#e1e3e9}}
@media(min-width:571px){
 .lk-header-shell.lk-nav-open{position:relative;z-index:10020}
 .lk-header-shell.lk-nav-open>.lk-header{position:relative;z-index:2}
 .lk-header-shell.lk-nav-open .lk-nav-wrap{z-index:3}
 .lk-nav-dim{position:fixed;inset:0;z-index:1;border:0;background:rgba(0,0,0,.6);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);cursor:default}
 .lk-nav-layer{display:none!important}
}
@media(max-width:570px){
 .lk-nav-desktop,.lk-nav-dim{display:none!important}
 /* The menu uses the exact same shared .sheet-layer / .sheet sizing and
    header as the working LK role-switcher BottomSheet. */
 .lk-nav-sheet-body{scrollbar-width:thin;-ms-overflow-style:auto}
 .lk-nav-sheet-body::-webkit-scrollbar{display:block}
 .lk-nav-sheet-content{padding:0 3px 4px}
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item{min-height:51px;font-size:16px;line-height:21px}
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item-icon{width:35px;height:35px;flex-basis:35px}
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item-icon svg{width:19px;height:19px}
}
body[data-lk-state="booting"] .lk-nav-toggle{background-color:#ededf1!important;background-image:linear-gradient(90deg,#ededf1 24%,#f7f7f9 38%,#ededf1 52%)!important;background-size:220% 100%!important;animation:ms-header-skeleton 1.25s ease-in-out infinite!important;color:transparent!important;pointer-events:none}
body[data-lk-state="booting"] .lk-nav-toggle>*{visibility:hidden!important}
@media(prefers-reduced-motion:reduce){.lk-nav-burger-shape,.lk-nav-close-shape,.lk-nav-toggle{transition:none}}

/* V641: vacancy-list direction hysteresis, desktop only; Flow has no nav button. */
@media(min-width:571px){
 body>.lk-header-shell:is(:has(.lk-nav-wrap),:has(.lk-login-link)){
  position:sticky;top:0;z-index:10020;
  background:#fff;
  transition:transform .18s ease,opacity .18s ease;
 }
 body>.lk-header-shell:is(:has(.lk-nav-wrap),:has(.lk-login-link))::before{
  content:"";position:absolute;z-index:0;top:0;bottom:0;
  left:50%;width:100vw;transform:translateX(-50%);
  background:#fff;box-shadow:0 3px 15px rgba(31,45,61,.025);
  pointer-events:none;
 }
 body>.lk-header-shell:is(:has(.lk-nav-wrap),:has(.lk-login-link))>.lk-header{position:relative;z-index:2}
 body>.lk-header-shell.lk-nav-header-hidden{transform:translateY(calc(-100% - 8px));opacity:0;pointer-events:none}
 body>.lk-header-shell.lk-nav-open{
  position:fixed!important;top:0!important;
  left:max(16px,calc((100vw - 840px)/2));
  right:auto;width:min(840px,calc(100vw - 32px));
  margin:0!important;transform:none!important;opacity:1!important;
  pointer-events:auto;transition:none!important;
 }
 /* Dim covers the page, while the opaque header remains above it. */
 body>.lk-header-shell.lk-nav-open>.lk-nav-dim{z-index:1}
 body>.lk-header-shell.lk-nav-open>.lk-header{z-index:2}
 body>.lk-header-shell.lk-nav-open .lk-nav-wrap{z-index:3}
 body>.lk-header-shell.lk-nav-open .lk-nav-desktop{
  /* Anchored to .lk-nav-wrap (the menu button), not to a one-time viewport coordinate.
     With the 58px bar and 40px button: 9px to header bottom + 15px gap. */
  position:absolute;top:calc(100% + 24px);
  right:0;bottom:auto;
  width:min(326px,calc(100vw - 32px));height:auto;max-height:max(0px,calc(100dvh - 88px));
  display:block;z-index:3;
 }
 body>.lk-header-shell.lk-nav-open .lk-nav-popover{
  flex:none;min-height:0;box-sizing:border-box;max-height:max(0px,calc(100dvh - 88px));overflow-y:auto;overflow-x:hidden;
 }
}
@media(max-width:570px){
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item{background:#f7f7fa}
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item.is-active{background:#eef5ff}
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item-icon{width:34px;height:34px;flex-basis:34px}
}
@media(prefers-reduced-motion:reduce){
 body>.lk-header-shell:is(:has(.lk-nav-wrap),:has(.lk-login-link)){transition:none}
}
/* Keep the entire white header above the dimmer, not just its buttons. */
@media(min-width:571px){
 body>.lk-header-shell.lk-nav-open::before{z-index:2}
 body>.lk-header-shell.lk-nav-open>.lk-header{z-index:3}
 body>.lk-header-shell.lk-nav-open .lk-nav-wrap{z-index:4}
}


/* V642 — shared ordinary LK header. The special Resume/Flow header has no nav root. */
/* Remove the empty 18px/10px space above the bar; give its controls 4px more breathing room on both sides. */
.lk-header-shell:is(:has(.lk-nav-wrap),:has(.lk-login-link)){padding-top:0}
.lk-header-shell:is(:has(.lk-nav-wrap),:has(.lk-login-link))>.lk-header{
  height:58px;min-height:58px;display:flex;align-items:center;
}
.lk-header-shell:is(:has(.lk-nav-wrap),:has(.lk-login-link)) .lk-header-actions{align-items:center}
/* Opening, hovering or pressing the menu changes ONLY its SVG, never its background or text color. */
.lk-header-shell .lk-nav-toggle,
.lk-header-shell .lk-nav-toggle.is-open,
.lk-header-shell .lk-nav-toggle:hover,
.lk-header-shell .lk-nav-toggle:active,
.lk-header-shell .lk-nav-toggle:focus{
  background:#ececf1;color:#444;transition:none;
}

@media(min-width:571px){
  /* The header shadow follows scroll position, not the open/closed state of the menu. */
  body>.lk-header-shell:is(:has(.lk-nav-wrap),:has(.lk-login-link))::before{box-shadow:none}
  body>.lk-header-shell.lk-nav-scrolled:is(:has(.lk-nav-wrap),:has(.lk-login-link))::before{
    box-shadow:0 5px 16px rgba(30,40,55,.14);
  }
  /* /go/ renders the shared header inside .page-container, rather than directly under body. */
  .page-container>.lk-header-shell:is(:has(.lk-nav-wrap),:has(.lk-login-link)){
    position:sticky;top:0;z-index:10020;background:#fff;
    transition:transform .18s ease,opacity .18s ease;
  }
  .page-container>.lk-header-shell:is(:has(.lk-nav-wrap),:has(.lk-login-link))::before{
    content:"";position:absolute;z-index:0;top:0;bottom:0;
    left:50%;width:100vw;transform:translateX(-50%);
    background:#fff;box-shadow:none;pointer-events:none;
  }
  .page-container>.lk-header-shell.lk-nav-scrolled:is(:has(.lk-nav-wrap),:has(.lk-login-link))::before{
    box-shadow:0 5px 16px rgba(30,40,55,.14);
  }
  .page-container>.lk-header-shell:is(:has(.lk-nav-wrap),:has(.lk-login-link))>.lk-header{position:relative;z-index:2}
  .page-container>.lk-header-shell.lk-nav-header-hidden{
    transform:translateY(calc(-100% - 8px));opacity:0;pointer-events:none;
  }
  .page-container>.lk-header-shell.lk-nav-open{
    position:fixed!important;top:0!important;
    left:max(16px,calc((100vw - 840px)/2));
    right:auto;width:min(840px,calc(100vw - 32px));
    margin:0!important;transform:none!important;opacity:1!important;
    pointer-events:auto;transition:none!important;
  }
  .page-container>.lk-header-shell.lk-nav-open>.lk-nav-dim{z-index:1}
  .page-container>.lk-header-shell.lk-nav-open::before{z-index:2}
  .page-container>.lk-header-shell.lk-nav-open>.lk-header{z-index:3}
  .page-container>.lk-header-shell.lk-nav-open .lk-nav-wrap{z-index:4}
  .page-container>.lk-header-shell.lk-nav-open .lk-nav-desktop{
    /* Same button-anchored geometry on /go/. */
    position:absolute;top:calc(100% + 24px);
    right:0;bottom:auto;
    width:min(326px,calc(100vw - 32px));height:auto;max-height:max(0px,calc(100dvh - 88px));
    display:block;z-index:3;
  }
  .page-container>.lk-header-shell.lk-nav-open .lk-nav-popover{
    flex:none;min-height:0;box-sizing:border-box;max-height:max(0px,calc(100dvh - 88px));overflow-y:auto;overflow-x:hidden;
  }
}


/* V660: mobile menu matches desktop spacing and icon tiles, but rows stay
   transparent to preserve the white bottom-sheet/safe-area appearance. */
@media(max-width:570px){
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-links,
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-footer{gap:3px}
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item,
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item:hover,
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item:active,
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item.is-active{
  min-height:46px;padding:6px 8px;gap:10px;
  font-size:16px;line-height:20px;
  background:transparent!important;background-image:none!important;
 }
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item-icon{
  width:30px;height:30px;flex:0 0 30px;
  border-radius:9px;background:#f0f1f5!important;
  background-image:none!important;color:#5f636b;
 }
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item-icon svg{width:18px;height:18px}
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item.is-active{color:var(--lk-blue,#007aff)}
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item.is-active .lk-nav-item-icon{
  background:#e6f0ff!important;color:var(--lk-blue,#007aff);
 }
}

/* V661: consistent selected rows in both mobile navigation views. */
@media(max-width:570px){
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item.is-active,
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item.is-active:hover,
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item.is-active:active{
  background:#f5f8fc!important;background-image:none!important;
  color:#22252b!important;font-weight:600;
 }
 #lkRoleLayer[data-lk-sheet-view="menu"] .lk-nav-item.is-active .lk-nav-item-icon{
  background:#e6f0ff!important;color:var(--lk-blue,#007aff);
 }
 #lkRoleLayer .lk-role-sheet-options{gap:3px}
 #lkRoleLayer .lk-role-sheet-options .lk-role-option,
 #lkRoleLayer .lk-role-sheet-options .lk-role-option:hover,
 #lkRoleLayer .lk-role-sheet-options .lk-role-option:active{
  height:46px;min-height:46px;padding:6px 38px 6px 8px;gap:10px;
  background:transparent;color:#22252b;
 }
 #lkRoleLayer .lk-role-sheet-options .lk-role-option-icon{
  width:30px;height:30px;flex:0 0 30px;border-radius:9px;
  background:#f0f1f5;color:#5f636b;
 }
 #lkRoleLayer .lk-role-sheet-options .lk-role-option-icon svg{width:18px;height:18px}
 #lkRoleLayer .lk-role-sheet-options .lk-role-option.is-active,
 #lkRoleLayer .lk-role-sheet-options .lk-role-option.is-active:hover,
 #lkRoleLayer .lk-role-sheet-options .lk-role-option.is-active:active{
  background:#f5f8fc;color:#22252b;font-weight:600;
 }
 #lkRoleLayer .lk-role-sheet-options .lk-role-option.is-active .lk-role-option-icon{
  background:#e6f0ff;color:var(--lk-blue,#007aff);
 }
}
