/* The navbar as icons. Every item is a 36px icon in the brand's line style with one rust
   bead; its name sits in a small ink tooltip that shows on hover and on keyboard focus.
   The name stays in the page (translated through data-i18n), so screen readers read it.
   Loaded last on every page, after the page's own header rules. */
.site-header .nav-ic,
.site-header .nav-links a.nav-ic,
.site-header .nav-actions .nav-fit,
.site-header .nav-actions .nav-btn-solid.nav-ic {
    position: relative; display: inline-grid; place-items: center; flex: none;
    width: 36px; height: 36px; min-width: 0; padding: 0; gap: 0;
    border-radius: var(--ctl-radius, 8px); border: 1px solid transparent; background: transparent;
    color: var(--ink, #1c1c1e); text-decoration: none; overflow: visible;
    transition: background 0.16s, border-color 0.16s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header .nav-ic:hover, .site-header .nav-links a.nav-ic:hover { background: var(--paper, #fff6f4); border-color: rgba(28,28,30,0.14); }
.site-header .nav-links a.nav-ic[aria-current="page"], .site-header .nav-links a.nav-ic.is-active { border-color: var(--ink, #1c1c1e); background: #fff; }
.site-header .nav-links { gap: 0.3rem; }

/* Fit check keeps its pink chip; Book a call stays the one solid ink button */
.site-header .nav-actions .nav-fit { border-color: rgba(224,48,30,0.45); background: var(--paper, #fff6f4); }
.site-header .nav-actions .nav-fit:hover, .site-header .nav-actions .nav-fit[aria-current="page"] { background: #ffece8; border-color: var(--rust, #e0301e); }
.site-header .nav-actions .nav-fit .fit-ic { width: 20px; height: 20px; }
.site-header .nav-actions .nav-btn-solid.nav-ic { background: var(--ink, #1c1c1e); border-color: var(--ink, #1c1c1e); color: #fff; }
.site-header .nav-actions .nav-btn-solid.nav-ic:hover { background: #000; }
.site-header .nav-actions { gap: 0.4rem; }

.site-header .nv-ic { width: 20px; height: 20px; overflow: visible; }
.site-header .nv-ic .nv-b { transform-box: view-box; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.site-header .nav-ic:hover .nv-b, .site-header .nav-ic:focus-visible .nv-b { transform: translateX(-2.5px); }

/* the name, as a tooltip under the icon */
.site-header .nv-tip {
    position: absolute; top: calc(100% + 8px); left: 50%; z-index: 5;
    transform: translate(-50%, -3px); opacity: 0; pointer-events: none;
    display: block; width: max-content; max-width: 14rem; padding: 5px 9px; border-radius: 6px;
    background: var(--ink, #1c1c1e); color: #fff; font: 600 11.5px/1.2 var(--font, system-ui), sans-serif; letter-spacing: 0; white-space: nowrap;
    transition: opacity 0.16s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header .nv-tip * { color: inherit !important; font: inherit !important; display: inline !important; }
.site-header .nv-tip::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 1px; }
.site-header :is(.nav-ic, .nav-fit, .rec-toggle):is(:hover, :focus-visible) .nv-tip { opacity: 1; transform: translate(-50%, 0); }
/* the last icons sit near the edge: their tooltips open to the left */
.site-header .nav-actions > .nav-btn-solid .nv-tip { left: auto; right: 0; transform: translateY(-3px); }
.site-header .nav-actions > .nav-btn-solid:is(:hover, :focus-visible) .nv-tip { transform: none; }
.site-header .nav-actions > .nav-btn-solid .nv-tip::before { left: auto; right: 14px; transform: rotate(45deg); }

/* the recruiter switch on the home page: the switch alone, its name as a tooltip */
.site-header .rec-toggle { position: relative; }
.site-header .rec-toggle .rec-toggle-label.nv-tip { margin: 0; }

/* phones: the four section icons live in the menu; the action icons stay in the bar */
@media (max-width: 640px) {
    .site-header .nav-actions .nav-btn-solid.nav-ic { display: inline-grid; }
    .site-header .nav-actions { gap: 0.3rem; }
}
/* small phones: the mark stands for the name, so every icon fits */
@media (max-width: 430px) { .site-header .brand-name { display: none; } .site-header .site-nav { gap: 0.5rem; } }
@media (hover: none) { .site-header .nv-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .site-header .nv-tip, .site-header .nv-ic .nv-b { transition: none; } }

/* One minimal bar at every width, desktop and phone alike: the mark and name, the four sections
   (Work, Research, About, Updates), then CV, Book a call and the language bead. No menu button,
   no hidden sheet: what you see on a phone is what you see on a desktop. */
.site-header .nav-links { display: flex !important; margin: 0 auto 0 0.75rem; gap: 0.3rem; }
.site-header .nav-toggle, .site-header .nav-sheet, .site-header .nav-indicator { display: none !important; }
.site-header .site-nav { gap: 0.75rem; }
@media (max-width: 640px) {
    .site-header .nav-links { margin-left: auto; gap: 0.2rem; }
    .site-header .nav-actions { gap: 0.2rem; }
    .site-header .nav-ic, .site-header .nav-links a.nav-ic, .site-header .nav-actions .nav-btn-solid.nav-ic, .site-header .lang-btn { width: 34px !important; height: 34px !important; }
}
@media (max-width: 380px) {
    .site-header .container { padding: 0 0.75rem; }
    .site-header .nav-ic, .site-header .nav-links a.nav-ic, .site-header .nav-actions .nav-btn-solid.nav-ic, .site-header .lang-btn { width: 32px !important; height: 32px !important; }
    .site-header .nv-ic { width: 18px; height: 18px; }
}

/* The bar's call to action: Book a call, the one labelled button. Ink, the calendar icon, the
   words, and a red bead that answers once when the page opens. Phones keep it, with the short label. */
.site-header .nav-book {
    position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none;
    height: 36px; padding: 0 14px 0 11px; border-radius: var(--r-tag, 4px);
    background: var(--ink, #1c1c1e); color: #fff; font: 600 0.84rem/1 var(--font, system-ui), sans-serif; white-space: nowrap;
    text-decoration: none; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s;
}
.site-header .nav-book:hover { background: #000; transform: translateY(-1px); text-decoration: none; }
.site-header .nav-book:focus-visible { outline: 2px solid var(--rust, #e0301e); outline-offset: 3px; }
.site-header .nav-book .nv-ic { width: 18px; height: 18px; }
.site-header .nav-book .bk-s { display: none; }
.site-header .bk-bead { width: 8px; height: 8px; border-radius: 50%; background: var(--bead-red, #e0301e); margin-left: 2px; animation: bk-once 1.6s cubic-bezier(0.22, 1, 0.36, 1) 1.2s 2 both; }
@keyframes bk-once { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(224, 48, 30, 0.55); } 50% { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(224, 48, 30, 0); } }
@media (max-width: 640px) {
    .site-header .nav-book { height: 34px; padding: 0 10px 0 9px; gap: 6px; font-size: 0.8rem; }
    .site-header .nav-book .bk-l { display: none; }
    .site-header .nav-book .bk-s { display: inline; }
}
@media (max-width: 380px) { .site-header .nav-book .nv-ic { display: none; } .site-header .nav-book { padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .site-header .bk-bead { animation: none; } }

/* Recruiter view: an icon like the others. On the home page it switches the recruiter card on
   and off (pressed: ink face); elsewhere it opens the home page with the card on. */
.site-header .nav-rec { cursor: pointer; font: inherit; }
.site-header .nav-rec[aria-pressed="true"] { background: var(--ink, #1c1c1e) !important; border-color: var(--ink, #1c1c1e) !important; color: #fff !important; }
.site-header .nav-rec[aria-pressed="true"] .nv-b { fill: #ff8f80; }

/* Recruiter view, back as a switch: a wooden rod with a bead that slides. Off: a pearl bead at the
   left; on: the red bead at the right and an ink frame. On the home page it opens and closes the
   recruiter card; elsewhere it takes you to the home page with the card open. The words show from
   tablet width; on phones the switch alone, with its name read out. */
.site-header .nav-switch {
    display: inline-flex; align-items: center; gap: 9px; flex: none; height: 36px; padding: 0 12px 0 10px;
    border-radius: var(--r-tag, 4px); border: 1px solid rgba(28, 28, 30, 0.14); background: #fff; color: var(--ink, #1c1c1e);
    font: 600 0.8rem/1 var(--font, system-ui), sans-serif; white-space: nowrap; cursor: pointer; text-decoration: none;
    transition: border-color 0.16s, background 0.16s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header .nav-switch:hover { border-color: #e0301e; transform: translateY(-1px); text-decoration: none; }
.site-header .nav-switch:focus-visible { outline: 2px solid var(--rust, #e0301e); outline-offset: 3px; }
.site-header .sw-rod { position: relative; width: 30px; height: 14px; flex: none; }
.site-header .sw-rod::before { content: ""; position: absolute; left: 0; right: 0; top: 5.5px; height: 3px; border-radius: 2px;
    background: var(--rod, linear-gradient(180deg, #e9d8bd 0%, #f4eadb 35%, #d2b48d 75%, #b8946a 100%)); }
.site-header .sw-rod i { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%;
    background: var(--bead-pearl, radial-gradient(circle at 34% 30%, #fff 0%, #ece6df 38%, #b8afa5 100%));
    box-shadow: inset 0 0 0 0.5px rgba(28, 28, 30, 0.2); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s; }
.site-header .nav-switch[aria-pressed="true"] { border-color: var(--ink, #1c1c1e); background: var(--ink, #1c1c1e); color: #fff; }
.site-header .nav-switch[aria-pressed="true"] .sw-rod i { transform: translateX(16px); background: var(--bead-red, #e0301e); box-shadow: none; }
.site-header .nav-switch:hover .sw-rod i { transform: translateX(3px); }
.site-header .nav-switch[aria-pressed="true"]:hover .sw-rod i { transform: translateX(13px); }
@media (max-width: 900px) {
    .site-header .nav-switch { padding: 0 8px; }
    .site-header .nav-switch .sw-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 380px) { .site-header .nav-switch { height: 32px; padding: 0 6px; } .site-header .sw-rod { width: 26px; } .site-header .nav-switch[aria-pressed="true"] .sw-rod i { transform: translateX(12px); } }
@media (prefers-reduced-motion: reduce) { .site-header .sw-rod i, .site-header .nav-switch { transition: none; } }
/* phones: the switch and the Book button share the bar's last 150px; the button drops its icon */
@media (max-width: 420px) { .site-header .nav-book .nv-ic { display: none; } .site-header .nav-book { padding: 0 10px; } .site-header .nav-switch { padding: 0 7px; } }
/* the smallest phones (320px): tighter boxes, no gaps to spare */
@media (max-width: 340px) {
    .site-header .container { padding: 0 0.5rem; }
    .site-header .site-nav, .site-header .nav-links, .site-header .nav-actions { gap: 0.1rem !important; }
    .site-header .nav-links { margin-left: 0.25rem !important; }
    .site-header .nav-ic, .site-header .nav-links a.nav-ic { width: 28px !important; height: 30px !important; }
    .site-header .nv-ic { width: 17px; height: 17px; }
    .site-header .nav-switch { padding: 0 5px; } .site-header .sw-rod { width: 22px; } .site-header .sw-rod i { width: 12px; height: 12px; top: 1px; }
    .site-header .nav-switch[aria-pressed="true"] .sw-rod i { transform: translateX(10px); }
    .site-header .nav-book { padding: 0 8px; font-size: 0.76rem; }
}
/* hidden tooltips must not widen the page: the bar clips sideways, never downwards */
.site-header { overflow-x: clip; }

/* The menu: the guide's two rods with beads (the "gear"), at the end of the bar on every page and
   at every width, with the current language's letter on a small bead. It opens one panel in the
   bar's own materials (white, a hairline, the frame's corner, ink words, rust labels): the
   language beads first, then a few more links. Same panel on a phone and on a desktop. */
.site-header .nav-menu { position: relative; flex: none; }
.site-header .nav-menu-btn {
    position: relative; display: inline-grid !important; place-items: center; width: 36px !important; height: 36px !important; padding: 0 !important;
    border-radius: var(--r-tag, 4px) !important; border: 1px solid rgba(28, 28, 30, 0.14) !important; background: #fff !important; color: var(--ink, #1c1c1e) !important;
    cursor: pointer; transition: border-color 0.16s, background 0.16s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.site-header .nav-menu-btn:hover { border-color: #e0301e !important; transform: translateY(-1px); }
.site-header .nav-menu-btn[aria-expanded="true"] { background: var(--ink, #1c1c1e) !important; border-color: var(--ink, #1c1c1e) !important; color: #fff !important; }
.site-header .nav-menu-btn .mt-lang { top: -6px; right: -6px; min-width: 16px; height: 16px; font-size: 10px; border-radius: 50%; background: var(--bead-ink, #1c1c1e); outline: 2px solid #fff; }
.site-header .nav-menu-btn[aria-expanded="true"] .mt-lang { background: var(--bead-red, #e0301e); }
.site-header .nav-menu-btn:is(:hover, :focus-visible) .nv-tip { opacity: 1; transform: translate(-50%, 0); }
.site-header .nav-menu .nv-tip { left: auto; right: 0; transform: translateY(-3px); }
.site-header .nav-menu .nv-tip::before { left: auto; right: 12px; transform: rotate(45deg); }
.site-header .nav-menu-btn:is(:hover, :focus-visible) .nv-tip { transform: none; }

.site-header .nav-panel {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 90; width: 300px; padding: 14px 14px 12px;
    background: #fff; border: 1px solid rgba(28, 28, 30, 0.14); border-radius: var(--r-tag, 4px); box-shadow: 0 18px 40px -18px rgba(28, 28, 30, 0.35);
    animation: mt-drop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* the panel's top edge is a wooden rod, like the frames */
.site-header .nav-panel::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; border-radius: 4px 4px 0 0; background: var(--rod, linear-gradient(180deg, #e9d8bd, #f4eadb 35%, #d2b48d 75%, #b8946a)); }
.site-header .nav-panel .sheet-lang-k { display: block; margin: 0 0 8px; font: 500 0.66rem/1 var(--font-mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: #b4200f; }
.site-header .nav-panel .np-k { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(28, 28, 30, 0.1); }
.site-header .nav-panel .lang-beads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.site-header .nav-panel .lang-bead {
    display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 6px; border-radius: var(--r-tag, 4px) !important;
    border: 0 !important; background: #fff !important; box-shadow: inset 0 0 0 1px rgba(28, 28, 30, 0.14); color: var(--ink, #1c1c1e) !important;
    font: 600 0.8rem/1 var(--font, system-ui), sans-serif; cursor: pointer; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s;
}
.site-header .nav-panel .lang-bead i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 0.8rem; color: var(--ink, #1c1c1e);
    background: var(--bead-white, radial-gradient(circle at 34% 30%, #fff, #f6f2ee 40%, #ddd5cd)) !important; box-shadow: inset 0 0 0 0.5px rgba(28, 28, 30, 0.2); }
.site-header .nav-panel .lang-bead:hover { transform: translateX(2px); box-shadow: inset 0 0 0 1px #e0301e; }
.site-header .nav-panel .lang-bead[aria-pressed="true"] { background: var(--ink, #1c1c1e) !important; color: #fff !important; box-shadow: none; }
.site-header .nav-panel .lang-bead[aria-pressed="true"] i { background: var(--bead-red, #e0301e) !important; color: #fff; box-shadow: none; }
.site-header .nav-panel .lang-note { margin: 8px 0 0; font-size: 0.72rem; color: #6e6e73; }
.site-header .np-links { display: grid; gap: 2px; }
.site-header .np-links a { position: relative; display: flex; align-items: center; height: 34px; padding: 0 8px 0 16px; border-radius: var(--r-tag, 4px); font-size: 0.86rem; font-weight: 600; color: var(--ink, #1c1c1e); text-decoration: none; }
.site-header .np-links a::before { content: ""; position: absolute; left: 4px; top: 9px; bottom: 9px; width: 4px; border-radius: 2px; background: var(--dowel, linear-gradient(90deg, #b48a5c, #d8bb94 24%, #f1e3cc 48%, #dcc29e 70%, #ad8455)); transition: background 0.2s; }
.site-header .np-links a::after { content: "\2192"; margin-left: auto; color: #6e6e73; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s; }
.site-header .np-links a:hover { background: var(--paper, #fff6f4); text-decoration: none; }
.site-header .np-links a:hover::before { background: #e0301e; }
.site-header .np-links a:hover::after { transform: translateX(3px); color: #b4200f; }
@media (max-width: 640px) { .site-header .nav-menu-btn { width: 34px !important; height: 34px !important; } }
@media (max-width: 380px) { .site-header .nav-menu-btn { width: 32px !important; height: 32px !important; } }
@media (max-width: 340px) { .site-header .nav-menu-btn { width: 28px !important; height: 30px !important; } .site-header .nav-cv { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .site-header .nav-panel { animation: none; } }
/* phones, with the menu in the bar too: smaller boxes and gaps so all nine controls fit */
@media (max-width: 640px) {
    .site-header .site-nav, .site-header .nav-links, .site-header .nav-actions { gap: 0.1rem !important; }
    .site-header .nav-links { margin-left: 0.4rem !important; }
    .site-header .nav-ic, .site-header .nav-links a.nav-ic, .site-header .nav-menu-btn { width: 32px !important; height: 32px !important; }
    .site-header .nav-switch { height: 32px; padding: 0 6px; } .site-header .sw-rod { width: 24px; } .site-header .sw-rod i { width: 12px; height: 12px; top: 1px; }
    .site-header .nav-switch[aria-pressed="true"] .sw-rod i { transform: translateX(12px); }
    .site-header .nav-book { height: 32px; padding: 0 9px; }
    .site-header .container { padding: 0 0.75rem; }
}
@media (max-width: 380px) {
    .site-header .nav-ic, .site-header .nav-links a.nav-ic, .site-header .nav-menu-btn { width: 29px !important; height: 30px !important; }
    .site-header .nv-ic { width: 17px; height: 17px; }
    .site-header .container { padding: 0 0.5rem; }
}
.site-header .nav-menu-btn[aria-expanded="true"] .nv-tip { display: none; } /* no tooltip under the open panel */

/* the menu: the sections, the switch and the CV, then the language beads */
.site-header .nav-panel .np-k { display: block; margin: 12px 0 6px; padding: 0; height: 0; border-top: 1px solid rgba(28, 28, 30, 0.1); }
@media (max-width: 640px) {
    .site-header .nav-panel { position: fixed; top: var(--np-top, 64px); left: 12px; right: 12px !important; width: auto !important; }
}

/* The clean bar (every page, every width): the brand, Book a call, and the menu. The menu holds the
   sections, the Recruiter view switch, the CV and the languages. */
.site-header .site-nav { display: flex; align-items: center; gap: 0.75rem; }
.site-header .nav-actions { margin-left: auto; gap: 0.5rem !important; }
.site-header .brand-name { display: inline-flex !important; }
.site-header .nav-book .bk-l { display: inline !important; }
.site-header .nav-book .bk-s { display: none !important; }
.site-header .nav-book .nv-ic { display: inline-block !important; }
.site-header .nav-book, .site-header .nav-menu-btn { height: 40px !important; }
.site-header .nav-menu-btn { width: 40px !important; }
.site-header .nav-book { padding: 0 14px !important; }
@media (max-width: 340px) {
    .site-header .nav-book .bk-l { display: none !important; }
    .site-header .nav-book .bk-s { display: inline !important; }
}

.site-header .nav-panel { width: 288px; padding: 10px 10px 12px; }
.site-header .np-sections { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-header .np-sections li { margin: 0; padding: 0; }
.site-header .np-item {
    position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 10px 0 12px;
    border-radius: var(--r-tag, 4px); color: var(--ink, #1c1c1e) !important; text-decoration: none !important;
    font: 600 0.95rem/1 var(--font, "Vahid Sora", system-ui), sans-serif;
}
.site-header .np-item:hover { background: var(--paper, #fff6f4); }
.site-header .np-item:focus-visible, .site-header .np-switch:focus-visible { outline: 2px solid #e0301e; outline-offset: -2px; }
.site-header .np-item[aria-current="page"], .site-header .np-item.is-active { background: var(--paper, #fff6f4); }
.site-header .np-item[aria-current="page"]::before, .site-header .np-item.is-active::before {
    content: ""; position: absolute; left: 3px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: #e0301e;
}
.site-header .np-tools { display: grid; gap: 2px; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(28, 28, 30, 0.1); }
.site-header .nav-panel .np-switch {
    display: flex !important; align-items: center; justify-content: space-between; width: 100%; height: 44px !important;
    padding: 0 10px 0 12px !important; border: 0 !important; border-radius: var(--r-tag, 4px); background: transparent !important;
    color: var(--ink, #1c1c1e) !important; font: 600 0.95rem/1 var(--font, "Vahid Sora", system-ui), sans-serif; cursor: pointer; text-decoration: none !important; transform: none !important;
}
.site-header .nav-panel .np-switch:hover { background: var(--paper, #fff6f4) !important; }
.site-header .nav-panel .np-switch .sw-l { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; }
.site-header .nav-panel .np-switch .sw-rod { width: 30px !important; }
.site-header .nav-panel .np-switch[aria-pressed="true"] { background: var(--paper, #fff6f4) !important; }
.site-header .nav-panel .np-switch[aria-pressed="true"] .sw-rod i { transform: translateX(14px) !important; }
.site-header .nav-panel .np-k { margin: 6px 0 10px; }
.site-header .nav-panel .sheet-lang-k { padding-left: 2px; }
@media (max-width: 640px) { .site-header .nav-panel { padding: 10px 10px 14px; } }
.site-header .nav-panel .np-sw-in { display: inline-flex; align-items: center; gap: 12px; }
/* while the menu is open, nothing floats over it */
html.np-open .vfa, html.np-open .vf-consent { visibility: hidden !important; }
/* touch screens: no blue tap flash and no hover that sticks after a tap */
.site-header a, .site-header button { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
    .site-header .nav-menu-btn:hover { border-color: rgba(28, 28, 30, 0.14) !important; transform: none; }
    .site-header .nav-menu-btn[aria-expanded="true"]:hover { border-color: var(--ink, #1c1c1e) !important; }
    .site-header .np-item:hover, .site-header .nav-panel .np-switch:hover { background: transparent !important; }
    .site-header .np-item[aria-current="page"]:hover, .site-header .np-item.is-active:hover { background: var(--paper, #fff6f4) !important; }
}
.site-header .nav-menu-btn:focus:not(:focus-visible) { outline: none; }
/* the panel opens solid: a quick drop, no see-through fade over the page */
.site-header .nav-panel { animation: np-in 0.18s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes np-in { from { transform: translateY(-6px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-header .nav-panel { animation: none; } }
