/* Main menu (desktop): a pill that slides to the item under the mouse, and one panel that reshapes itself between the menus.
   The phone menu (.hd__m) is separate and unchanged. Markup: <nav class="hd__nav nv"> in each page's header; behaviour: nav.js */
.hd__nav.nv { position: relative; gap: 2px; align-items: center; font-size: 14.5px; }
.nv__i { all: unset; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 99px; cursor: pointer; color: var(--ink-2, #39435a); font-weight: 500; transition: color .3s; }
.hd__nav.nv a.nv__i { padding: 8px 14px; border: 0; color: var(--ink-2, #39435a); }
.nv__i:hover, .nv__m.open > .nv__i, .hd__nav.nv a.nv__i:hover { color: var(--ink, #0d1626); }
.hd__nav.nv a.nv__i[aria-current], .nv__i.on { color: var(--blue, #1f55b5); }
.nv__i:focus-visible { outline: 2px solid var(--blue, #1f55b5); outline-offset: 2px; }
.nv__i svg { width: 16px; height: 16px; transition: transform .3s; }
.nv__m.open > .nv__i svg, .nv__i:hover svg { transform: rotate(180deg); }

/* the hover pill, moved by nav.js */
.nv__pill { position: absolute; z-index: 0; top: 0; left: 0; height: 0; width: 0; border-radius: 99px; background: rgba(31, 85, 181, .1); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.3,.8,.3,1), width .35s cubic-bezier(.3,.8,.3,1), height .35s, opacity .2s; }
.nv.pill-on .nv__pill { opacity: 1; }

/* the panel: one white box (.nv__bg) that moves and resizes to the open menu; the menus' own content fades in on top */
.nv__m { position: relative; }
.nv__bg { position: absolute; z-index: 60; top: 0; left: 0; width: 0; height: 0; background: #fff; border: 1px solid var(--rule, #e2dfd7); border-radius: 16px; box-shadow: 0 24px 48px -24px rgba(13, 22, 38, .28); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.3,.8,.3,1), width .35s cubic-bezier(.3,.8,.3,1), height .35s cubic-bezier(.3,.8,.3,1), opacity .2s; }
.nv.panel-on .nv__bg { opacity: 1; }
.nv.panel-fresh .nv__bg { transition: opacity .2s; }
.nv__p { position: absolute; z-index: 61; top: 100%; left: 0; padding-top: 10px; opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.nv__m.open > .nv__p { opacity: 1; visibility: visible; transition: opacity .25s .08s; }
.nv__cols { display: flex; gap: 36px; padding: 18px; white-space: nowrap; }
.nv__c h3 { margin: 0 0 16px; font: 500 13px/1 var(--sans, sans-serif); letter-spacing: 0; color: var(--ink-3, #6a7183); }
.nv__c ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.hd__nav.nv .nv__c a { display: flex; align-items: flex-start; gap: 12px; padding: 0; border: 0; text-decoration: none; color: var(--ink, #0d1626); }
.nv__ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--rule, #e2dfd7); border-radius: 8px; color: var(--ink, #0d1626); transition: background .3s, color .3s, border-color .3s; }
.nv__ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nv__c a:hover .nv__ic, .nv__c a[aria-current] .nv__ic { background: var(--blue, #1f55b5); border-color: var(--blue, #1f55b5); color: #fff; }
.nv__c b { display: block; font: 500 14px/1.35 var(--sans, sans-serif); color: var(--ink, #0d1626); }
.nv__c small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--ink-3, #6a7183); transition: color .3s; }
.nv__c a:hover small { color: var(--ink, #0d1626); }
.nv__c a[aria-current] b { color: var(--blue, #1f55b5); }

/* Hebrew: panels open from the item's right edge */
html[dir=rtl] .nv__p { left: auto; right: 0; }
@media (prefers-reduced-motion: reduce) { .nv__pill, .nv__bg, .nv__p, .nv__i svg { transition: none; } }
