/* The public site's top navigation — templates/_site_nav.html, static/js/sitenav.js
   (owner, 2026-10-19: WebHR's navigation pattern, Boardways's look). A frosted-glass
   bar; mega panels drop from the bar; a Sign In popover; a drawer below 1100px.
   On the home page the bar floats over the hero video, see-through until the
   page scrolls. */
:root {
  --vn-h: 76px;
  --vn-ink: #0f2742;
  --vn-ink-2: #3b4d63;
  --vn-muted: #6b7a8f;
  --vn-line: rgba(15, 39, 66, .09);
  --vn-brand: var(--accent, #0c64ae);
  --vn-grad: linear-gradient(118deg, #0c64ae -20%, #7b3fe4 120%);
  --vn-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- the bar ---- */
.vn { position: sticky; top: 0; z-index: 1000; }
/* The glass is a layer behind the bar, not on .vn itself: a backdrop-filter on the
   header would make it the containing block for the fixed mobile drawer. */
.vn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(170%) blur(20px); backdrop-filter: saturate(170%) blur(20px);
  border-bottom: 1px solid var(--vn-line);
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.vn-scrolled .vn::before { box-shadow: 0 10px 30px rgba(15, 39, 66, .08); }
/* Home: over the dark hero video — dark glass with white text and the white logo,
   turning white once the page scrolls or a menu opens. */
.vn-logo-w { display: none !important; }
body.home-hero-dark .vn { position: fixed; left: 0; right: 0; }
body.home-hero-dark:not(.vn-scrolled) .vn:not(.is-open)::before { background: rgba(6, 16, 30, .28); border-bottom-color: rgba(255, 255, 255, .14); }
body.home-hero-dark:not(.vn-scrolled) .vn:not(.is-open) .vn-logo-c { display: none; }
body.home-hero-dark:not(.vn-scrolled) .vn:not(.is-open) .vn-logo-w { display: block !important; }
body.home-hero-dark:not(.vn-scrolled) .vn:not(.is-open) .vn-trigger,
body.home-hero-dark:not(.vn-scrolled) .vn:not(.is-open) .vn-text-btn { color: rgba(255, 255, 255, .92); }
body.home-hero-dark:not(.vn-scrolled) .vn:not(.is-open) .vn-trigger:hover,
body.home-hero-dark:not(.vn-scrolled) .vn:not(.is-open) .vn-text-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
body.home-hero-dark:not(.vn-scrolled) .vn:not(.is-open) .vn-burger span { background: #fff; }
body.home-hero-dark .vn.is-open::before, body.home-hero-dark.vn-scrolled .vn::before { background: rgba(255, 255, 255, .95); border-bottom-color: var(--vn-line); }

.vn-bar { height: var(--vn-h); display: flex; align-items: center; gap: 20px; }
.vn-logo { display: flex; align-items: center; flex: none; margin-inline-end: 8px; }
.vn-logo img { height: 48px; width: auto; display: block; }

/* ---- menu items ---- */
.vn-menu { flex: 1; min-width: 0; }
.vn-items { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.vn-item { position: static; }
.vn-trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px;
  border: 0; border-radius: 999px; background: transparent; color: var(--vn-ink-2);
  font: inherit; font-size: 15.5px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.vn-trigger:hover, .vn-trigger[aria-expanded="true"] { color: var(--vn-ink); background: rgba(12, 100, 174, .07); text-decoration: none; }
.vn-trigger[aria-expanded="true"], .vn-trigger.is-on { color: var(--vn-brand); }
.vn-trigger:focus-visible, .vn-text-btn:focus-visible, .vn-btn:focus-visible, .vn-link:focus-visible, .vn-burger:focus-visible, .vn-drawer-head:focus-visible {
  outline: 3px solid rgba(12, 100, 174, .35); outline-offset: 2px;
}
.vn-chev { font-size: 11px; opacity: .6; transition: transform .25s var(--vn-ease); }
[aria-expanded="true"] > .vn-chev { transform: rotate(180deg); opacity: 1; }

/* ---- mega panels ---- */
.vn-panel {
  position: absolute; left: 0; right: 0; top: 100%; padding-top: 10px;   /* hover bridge between bar and sheet */
  visibility: hidden; opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .18s ease, transform .22s var(--vn-ease), visibility 0s linear .22s;
}
.vn-panel.is-open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .2s ease, transform .28s var(--vn-ease), visibility 0s; }
.vn-sheet {
  max-width: 1180px; margin: 0 auto; width: calc(100% - 32px); background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 39, 66, .18), 0 0 0 1px rgba(15, 39, 66, .06);
}
.vn-cols { display: flex; gap: 8px; padding: 26px; }
.vn-col { flex: 1; min-width: 0; padding: 4px 8px; }
.vn-col + .vn-col { border-inline-start: 1px solid var(--vn-line); padding-inline-start: 22px; }
.vn-col--modules { flex: 2.2; }
.vn-col--rich { flex: 1.5; }
.vn-eyebrow { margin: 0 0 12px; padding-inline-start: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--vn-muted); }
.vn-grid { display: grid; gap: 2px; }
.vn-grid--modules { grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.vn-col--list2 { flex: 1.5; }
.vn-grid--list2 { grid-template-columns: 1fr 1fr; gap: 2px 6px; }

.vn-link { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--vn-ink); text-decoration: none; font-size: 15px;
  transition: background-color .15s ease, color .15s ease; }
.vn-link:hover { background: #f1f6fc; color: var(--vn-brand); text-decoration: none; }
.vn-link--rich { align-items: flex-start; padding: 10px; }
.vn-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: #eaf2fb; color: var(--vn-brand); font-size: 15px;
  transition: background .2s ease, color .2s ease, transform .2s var(--vn-ease); }
.vn-link--rich .vn-ico { width: 40px; height: 40px; border-radius: 12px; font-size: 17px; }
.vn-link:hover .vn-ico { background: var(--vn-grad); color: #fff; transform: scale(1.05); }
.vn-txt { display: flex; flex-direction: column; min-width: 0; }
.vn-label { line-height: 1.3; }
.vn-link--rich .vn-label { font-weight: 600; }
.vn-desc { font-size: 13px; line-height: 1.4; color: var(--vn-muted); margin-top: 2px; }

/* feature cards */
.vn-feature { flex: 1.05; min-width: 0; margin: -6px -6px -6px 12px; padding: 24px; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; }
.vn-feature--start { color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%), var(--vn-grad); }
.vn-feature--soft { background: linear-gradient(160deg, #eef5fc, #f5effd); color: var(--vn-ink); }
.vn-feature-tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 255, 255, .2); }
.vn-feature--soft .vn-feature-tag { background: #fff; color: var(--vn-brand); }
.vn-feature-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; }
.vn-feature-text { margin: 0; font-size: 14px; line-height: 1.5; opacity: .88; }
.vn-feature-btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  background: #fff; color: var(--vn-brand); text-decoration: none; font-size: 15px; font-weight: 600; box-shadow: 0 8px 20px rgba(15, 39, 66, .18);
  transition: transform .2s var(--vn-ease); }
.vn-feature--soft .vn-feature-btn { background: var(--vn-grad); color: #fff; }
.vn-feature-btn:hover { transform: translateY(-2px); text-decoration: none; }

.vn-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 14px 34px; background: #f7f9fc; border-top: 1px solid var(--vn-line);
  font-size: 14px; color: var(--vn-muted); }
.vn-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--vn-brand); text-decoration: none; font-weight: 600; }
.vn-foot a i { font-size: 12px; transition: transform .2s var(--vn-ease); }
.vn-foot a:hover i { transform: translateX(3px); }

/* ---- actions ---- */
.vn-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-inline-start: auto; position: relative; }
.vn-text-btn { height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--vn-ink); font: inherit; font-size: 15.5px;
  font-weight: 500; cursor: pointer; }
.vn-text-btn:hover, .vn-text-btn[aria-expanded="true"] { background: rgba(12, 100, 174, .07); color: var(--vn-brand); }
.vn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--vn-ease), box-shadow .25s ease, background-color .2s ease; }
.vn-btn i { font-size: 13px; transition: transform .2s var(--vn-ease); }
.vn-btn:hover { text-decoration: none; }
.vn-btn:hover i { transform: translateX(3px); }
.vn-btn--primary { color: #fff; background: var(--vn-grad); box-shadow: 0 8px 22px rgba(12, 100, 174, .3), inset 0 1px 0 rgba(255, 255, 255, .25); }
.vn-btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(12, 100, 174, .4), inset 0 1px 0 rgba(255, 255, 255, .25); }
.vn-btn--glass { color: var(--vn-ink); background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(15, 39, 66, .14); }
.vn-btn--glass:hover { color: var(--vn-brand); background: #fff; }

/* the Sign In popover, anchored to the right edge of the actions */
.vn-login { position: static; }
.vn-panel--login { left: auto; right: 0; width: 380px; }
.vn-panel--login .vn-sheet { width: 100%; padding: 24px; }
.vn-login-title { margin: 0; font-size: 22px; font-weight: 700; color: var(--vn-ink); }
.vn-login-sub { margin: 4px 0 16px; font-size: 14px; color: var(--vn-muted); }
.vn-login-field { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 12px; background: #f5f7fb; box-shadow: inset 0 0 0 1px var(--vn-line);
  color: var(--vn-muted); transition: box-shadow .2s ease, background-color .2s ease; }
.vn-login-field:focus-within { background: #fff; box-shadow: inset 0 0 0 2px rgba(12, 100, 174, .45); }
.vn .vn-login-field input { flex: 1; min-width: 0; width: auto; height: 100%; border: 0 !important; outline: 0; box-shadow: none !important; border-radius: 0;
  background: transparent; font: inherit; font-size: 15.5px; color: var(--vn-ink); padding: 0; margin: 0; }
/* A browser-filled code (CR #450091, QA Screen506): Chrome painted its own pale box on the input, inside the rounded field — a box
   within a box that didn't line up. The input keeps the field's colour (a huge inset shadow is the only way past autofill's
   background), and the whole field takes the autofilled look instead. */
.vn .vn-login-field input:-webkit-autofill, .vn .vn-login-field input:-webkit-autofill:hover, .vn .vn-login-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f5f7fb inset !important; -webkit-text-fill-color: var(--vn-ink); caret-color: var(--vn-ink);
  transition: background-color 9999s ease 0s; }
.vn .vn-login-field:focus-within input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset !important; }
.vn .vn-login-field input:autofill { background: transparent; }
.vn-login-go { width: 100%; margin-top: 12px; height: 48px; }
.vn-login-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; }
.vn-login-links a { color: var(--vn-brand); }

/* the language switcher keeps its own styles (styles.css); dark text on the light bar */
.vn .lang-switch summary { color: var(--vn-ink); }

/* ---- burger + drawer (below 1100px) ---- */
.vn-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; position: relative; cursor: pointer; }
.vn-burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--vn-ink); transition: transform .3s var(--vn-ease), opacity .2s ease; }
.vn-burger span:nth-child(1) { top: 15px; }
.vn-burger span:nth-child(2) { top: 21px; }
.vn-burger span:nth-child(3) { top: 27px; }
.vn-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.vn-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.vn-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.vn-drawer { position: fixed; left: 0; right: 0; top: var(--vn-h); bottom: 0; display: flex; flex-direction: column; background: #fff; animation: vn-in .28s var(--vn-ease); }
.vn-drawer[hidden] { display: none; }
@keyframes vn-in { from { opacity: 0; transform: translateY(-8px); } }
.vn-drawer-scroll { flex: 1; overflow-y: auto; padding: 8px 20px 20px; overscroll-behavior: contain; }
.vn-drawer-sec { border-bottom: 1px solid var(--vn-line); }
.vn-drawer-head, .vn-drawer-plain { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 4px; border: 0; background: none;
  text-align: start; color: var(--vn-ink); font: inherit; font-size: 20px; font-weight: 700; text-decoration: none; cursor: pointer; }
.vn-drawer-plain { border-bottom: 1px solid var(--vn-line); }
.vn-drawer-plain:hover { text-decoration: none; }
.vn-drawer-head .vn-chev { font-size: 14px; }
.vn-drawer-body { padding: 0 0 18px; }
.vn-drawer-body .vn-eyebrow { margin: 14px 0 6px; padding-inline-start: 4px; }
.vn-drawer-links { display: grid; }
.vn-drawer-links .vn-link { padding: 9px 4px; }
.vn-drawer-more { display: inline-flex; align-items: center; gap: 6px; margin: 10px 4px 0; color: var(--vn-brand); text-decoration: none; font-weight: 600; }
.vn-drawer-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--vn-line); background: #fff; }
.vn-drawer-cta .vn-btn { height: 50px; }
.vn-drawer-cta .vn-btn:only-child { grid-column: 1 / -1; }
body.vn-drawer-open { overflow: hidden; }

/* ---- responsive ---- */
@media (max-width: 1279.98px) { .vn-trigger { padding: 0 11px; } }
@media (max-width: 1099.98px) {
  :root { --vn-h: 68px; }
  .vn-menu, .vn-login { display: none; }
  .vn-burger { display: block; }
  .vn-logo img { height: 40px; }
}
@media (max-width: 479.98px) {
  .vn-bar { gap: 8px; }
  .vn-actions > .vn-btn--primary { height: 40px; padding: 0 14px; font-size: 14px; }
  .vn-actions > .vn-btn--primary i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vn-panel, .vn-panel.is-open, .vn-drawer, .vn-chev, .vn-burger span { transition: none; animation: none; }
}
.vn .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.vn-text-link { display: inline-flex; align-items: center; text-decoration: none; }
.vn-text-link:hover { text-decoration: none; }
@media (max-width: 479.98px) { .vn-actions > .vn-text-link { display: none; } }

/* The sign-in field keeps its size and edge while typing (CR #275015, QA Screen1092). Its edge was an inset shadow, which the input
   (full height) painted over once the browser filled or previewed a value (the autofill box), and the focus ring grew from 1px to
   2px inside it. The edge is now a real border, and the input sits inside it and never covers it. The focus ring goes outside,
   so nothing inside moves. */
.vn-login-field { box-sizing: border-box; border: 1px solid var(--vn-line); box-shadow: none; }
.vn-login-field:focus-within { border-color: rgba(12, 100, 174, .55); box-shadow: 0 0 0 3px rgba(12, 100, 174, .14); }
.vn .vn-login-field input { height: calc(100% - 2px); align-self: center; }
