/* ============================================================
   SEOSource — nav.css
   Modern mega-menu navigation system
   Design: glassmorphism bar · card-layout mega panels
   · animated indicator · command-palette search
   · slide-in mobile drawer with accordion
   ============================================================ */

/* ── Design tokens (local to nav) ─────────────────────────── */
:root {
  --nb-h:          68px;
  --nb-bg:         rgba(10,15,30,0.82);
  --nb-bg-solid:   rgba(10,15,30,0.98);
  --nb-border:     rgba(255,255,255,0.08);
  --nb-panel-bg:   #0f1729;
  --nb-panel-br:   rgba(255,255,255,0.07);
  --nb-item-c:     #c8d3ee;
  --nb-item-hover: rgba(0,232,122,0.10);
  --nb-green:      #00e87a;
  --nb-green-d:    #00b85f;
  --nb-navy:       #0a0f1e;
  --nb-pi-desc-c:  #6d7d9e;
  --nb-radius:     14px;
  --nb-ease:       cubic-bezier(0.22,1,0.36,1);
  --nb-drawer-w:   320px;
  --nb-z-nav:      1000;
  --nb-z-panel:    999;
  --nb-z-drawer:   1010;
  --nb-z-backdrop: 1005;
  --nb-z-search:   1020;
}

/* ── Skip link ─────────────────────────────────────────────── */
#skip-link {
  position: fixed; top: -120px; left: 16px;
  z-index: calc(var(--nb-z-search) + 1);
  background: var(--nb-green); color: var(--nb-navy);
  padding: 10px 20px; border-radius: 0 0 10px 10px;
  font-weight: 700; font-size: 0.88rem;
  transition: top 0.2s ease; text-decoration: none;
}
#skip-link:focus { top: 0; }

/* ── Reading progress ──────────────────────────────────────── */
#readingProgress {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--nb-green), #00b85f 60%, #00e1b4);
  z-index: calc(var(--nb-z-nav) + 2);
  transition: width 0.1s linear;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { #readingProgress { transition: none; } }

/* ════════════════════════════════════════════════════════════
   NAVBAR SHELL
   ════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; inset: 0 0 auto;
  height: var(--nb-h);
  z-index: var(--nb-z-nav);
  background: var(--nb-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--nb-border);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s var(--nb-ease);
}
.navbar.nb-solid   { background: var(--nb-bg-solid); box-shadow: 0 2px 32px rgba(0,0,0,0.45); }
.navbar.nb-hidden  { transform: translateY(-100%); }
.navbar.nb-visible { transform: translateY(0); }

/* inner flex row */
.nb-inner {
  max-width: 1380px; margin: 0 auto;
  height: 100%; padding: 0 28px;
  display: flex; align-items: center; gap: 0;
  position: relative;
}

/* ── Logo ──────────────────────────────────────────────────── */
.nb-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem; font-weight: 900;
  color: #f8faff; letter-spacing: -0.03em;
  text-decoration: none; flex-shrink: 0;
  margin-right: 28px;
  transition: opacity 0.2s;
}
.nb-logo span { color: var(--nb-green); }
.nb-logo:hover { opacity: 0.8; color: #f8faff; }
.nb-logo:focus-visible { outline: 2px solid var(--nb-green); outline-offset: 4px; border-radius: 4px; }

/* ── Nav list ──────────────────────────────────────────────── */
.nb-list {
  display: flex; list-style: none;
  align-items: center; gap: 0;
  flex: 1; margin: 0; padding: 0;
}

/* ── Nav item (link OR button) ─────────────────────────────── */
.nb-item {
  display: flex; align-items: center; gap: 5px;
  height: var(--nb-h);
  padding: 0 13px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.87rem; font-weight: 500;
  color: var(--nb-item-c);
  text-decoration: none; cursor: pointer;
  border: none; background: none;
  position: relative; white-space: nowrap;
  transition: color 0.2s ease;
}
.nb-item:hover  { color: #f8faff; }
.nb-item.is-active { color: var(--nb-green); }
.nb-item.is-active::after {
  content: ''; position: absolute; bottom: 0; left: 13px; right: 13px;
  height: 2px; background: var(--nb-green); border-radius: 2px 2px 0 0;
}
.nb-item:focus-visible { outline: 2px solid var(--nb-green); outline-offset: -3px; border-radius: 6px; }

/* Chevron inside mega button */
.nb-chev {
  opacity: 0.5; flex-shrink: 0;
  transition: transform 0.25s var(--nb-ease), opacity 0.2s;
}
.nb-mega-wrap.is-open > .nb-mega-btn .nb-chev { transform: rotate(180deg); opacity: 0.8; }

/* Animated slide indicator (JS moves it) */
.nb-indicator {
  position: absolute; bottom: 0;
  height: 2px; background: var(--nb-green);
  border-radius: 2px 2px 0 0;
  transition: left 0.3s var(--nb-ease), width 0.3s var(--nb-ease);
  pointer-events: none; opacity: 0;
}
.nb-indicator.nb-ind-visible { opacity: 1; }

/* ── Right-side actions ────────────────────────────────────── */
.nb-actions {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto; flex-shrink: 0;
}

/* Search button */
.nb-search-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #8b96b0; font-size: 0.82rem;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  cursor: pointer; white-space: nowrap;
  transition: all 0.2s ease;
}
.nb-search-btn:hover { border-color: rgba(0,232,122,0.35); color: #f8faff; background: rgba(0,232,122,0.07); }
.nb-search-btn:focus-visible { outline: 2px solid var(--nb-green); outline-offset: 2px; }
.nb-search-btn kbd {
  font-size: 0.72rem; padding: 1px 5px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px; font-family: inherit; color: #6d7d9e;
}
.nb-search-btn > span { color: #8b96b0; }

/* CTA button */
.nb-cta {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 17px; border-radius: 50px;
  background: var(--nb-green); color: #0a0f1e;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.82rem; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  border: 2px solid transparent;
  transition: all 0.22s ease; cursor: pointer;
  flex-shrink: 0;
}
.nb-cta:hover { background: var(--nb-green-d); color: #0a0f1e; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,232,122,0.30); }
.nb-cta.is-active { box-shadow: 0 0 0 2px var(--nb-green), 0 0 0 4px rgba(0,232,122,0.2); }
.nb-cta:focus-visible { outline: 2px solid var(--nb-green); outline-offset: 3px; }
.nb-cta-ghost {
  background: transparent; color: var(--nb-green);
  border-color: rgba(0,232,122,0.35);
}
.nb-cta-ghost:hover { background: rgba(0,232,122,0.10); color: var(--nb-green); transform: translateY(-1px); box-shadow: none; }

/* ════════════════════════════════════════════════════════════
   MEGA-MENU PANELS
   ════════════════════════════════════════════════════════════ */
.nb-mega-wrap { position: static; }

.nb-panel {
  position: fixed;
  top: var(--nb-h);
  left: 0; right: 0;
  z-index: var(--nb-z-panel);
  /* Hidden state */
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 0.22s ease,
    transform 0.22s var(--nb-ease),
    visibility 0.22s;
}
.nb-mega-wrap.is-open .nb-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}

.nb-panel-inner {
  max-width: 1380px; margin: 0 auto;
  background: var(--nb-panel-bg);
  border: 1px solid var(--nb-panel-br);
  border-top: none;
  border-radius: 0 0 20px 20px;
  padding: 28px 32px;
  display: flex; gap: 0;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,232,122,0.04);
}

/* Top edge green glow line */
.nb-panel-inner::before {
  content: ''; position: absolute; top: 0; left: 32px; right: 32px;
  height: 1px; background: linear-gradient(90deg, transparent, rgba(0,232,122,0.3), transparent);
}

/* ── Panel columns ─────────────────────────────────────────── */
.nb-col {
  flex: 1; padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.05);
  min-width: 0;
}
.nb-col:first-child { padding-left: 0; }
.nb-col:last-child  { border-right: none; padding-right: 0; }

/* Column heading */
.nb-ph {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0 0 10px; padding: 0 8px;
}

/* ── Panel item ────────────────────────────────────────────── */
.nb-pi {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 8px; border-radius: 10px;
  text-decoration: none;
  margin-bottom: 2px;
  transition: background 0.18s ease, transform 0.18s ease;
  position: relative;
}
.nb-pi:hover {
  background: rgba(0,232,122,0.07);
  transform: translateX(3px);
}
.nb-pi.is-active {
  background: rgba(0,232,122,0.10);
}
.nb-pi.is-active::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; background: var(--nb-green); border-radius: 0 2px 2px 0;
}
.nb-pi:focus-visible {
  outline: 2px solid var(--nb-green); outline-offset: -2px;
}

.nb-pi-icon {
  font-size: 15px; flex-shrink: 0; margin-top: 1px;
  line-height: 1; width: 20px; text-align: center;
}
.nb-pi-dot {
  flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.2); margin-top: 7px;
}
.nb-pi-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nb-pi-lbl {
  font-size: 0.87rem; font-weight: 500; color: #dce4f5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nb-pi.is-active .nb-pi-lbl { color: var(--nb-green); }
.nb-pi:hover      .nb-pi-lbl { color: #f8faff; }
.nb-pi-desc {
  font-size: 0.76rem; color: var(--nb-pi-desc-c);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── CTA column ────────────────────────────────────────────── */
.nb-cta-col {
  flex: 0 0 200px; max-width: 200px; padding-left: 24px;
}
.nb-pcta {
  background: linear-gradient(145deg, rgba(0,232,122,0.07), rgba(0,232,122,0.03));
  border: 1px solid rgba(0,232,122,0.15);
  border-radius: 14px; padding: 20px 18px;
  display: flex; flex-direction: column; gap: 8px;
  height: 100%; box-sizing: border-box;
}
.nb-pcta-icon { font-size: 22px; line-height: 1; }
.nb-pcta strong { display: block; color: #f8faff; font-size: 0.9rem; font-family: 'Fraunces',serif; }
.nb-pcta p { color: #6d7d9e; font-size: 0.78rem; line-height: 1.55; margin: 0; }
.nb-pcta-btn {
  display: inline-flex; align-items: center;
  margin-top: auto; padding: 8px 14px;
  background: var(--nb-green); color: #0a0f1e;
  font-size: 0.78rem; font-weight: 700;
  border-radius: 50px; text-decoration: none;
  transition: all 0.2s ease;
  align-self: flex-start;
}
.nb-pcta-btn:hover { background: var(--nb-green-d); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,232,122,0.25); }

/* ════════════════════════════════════════════════════════════
   HAMBURGER
   ════════════════════════════════════════════════════════════ */
.nb-burger {
  display: none; flex-direction: column; gap: 5px;
  padding: 10px 11px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  cursor: pointer; flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
  margin-left: 10px;
}
.nb-burger:hover  { border-color: rgba(0,232,122,0.4); background: rgba(0,232,122,0.07); }
.nb-burger:focus-visible { outline: 2px solid var(--nb-green); outline-offset: 2px; }
.nb-burger span {
  display: block; width: 20px; height: 2px;
  background: #c8d3ee; border-radius: 2px;
  transition: all 0.28s ease; transform-origin: center;
}
.nb-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nb-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nb-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════════
   MOBILE DRAWER
   ════════════════════════════════════════════════════════════ */
.nb-backdrop {
  position: fixed; inset: 0;
  z-index: var(--nb-z-backdrop);
  background: rgba(5,10,22,0.7);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.nb-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.nb-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: var(--nb-drawer-w); max-width: 92vw;
  z-index: var(--nb-z-drawer);
  background: #0d1424;
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--nb-ease);
  overflow: hidden;
}
.nb-drawer.is-open { transform: translateX(0); }

.nb-drawer-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: var(--nb-h);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.nb-drawer-close {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: #8b96b0; cursor: pointer;
  transition: all 0.2s;
}
.nb-drawer-close:hover { background: rgba(0,232,122,0.1); border-color: rgba(0,232,122,0.3); color: var(--nb-green); }
.nb-drawer-close:focus-visible { outline: 2px solid var(--nb-green); outline-offset: 2px; }

/* Drawer search */
.nb-drawer-srch { padding: 14px 16px 10px; flex-shrink: 0; }
.nb-drawer-srch input {
  width: 100%; padding: 9px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; color: #f8faff;
  font-size: 0.88rem; font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  outline: none; transition: border-color 0.2s;
}
.nb-drawer-srch input:focus { border-color: rgba(0,232,122,0.4); }
.nb-drawer-srch input::placeholder { color: #4a5570; }

/* Drawer nav */
.nb-drawer-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.nb-drawer-nav::-webkit-scrollbar { width: 4px; }
.nb-drawer-nav::-webkit-scrollbar-track { background: transparent; }
.nb-drawer-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* Direct links in drawer */
.nb-dl {
  display: block; padding: 10px 20px;
  color: #b8c4de; font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nb-dl:hover  { color: #f8faff; background: rgba(255,255,255,0.04); }
.nb-dl.is-active { color: var(--nb-green); background: rgba(0,232,122,0.07); }

/* Group label inside drawer accordion */
.nb-dg {
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: rgba(255,255,255,0.25);
  padding: 12px 20px 4px; margin: 0;
}

/* Accordion section */
.nb-dsec { border-bottom: 1px solid rgba(255,255,255,0.05); }
.nb-dsec-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 12px 20px;
  background: none; border: none; cursor: pointer;
  color: #c8d3ee; font-size: 0.9rem; font-weight: 500;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  transition: color 0.15s;
}
.nb-dsec-btn:hover { color: #f8faff; }
.nb-dsec.is-open .nb-dsec-btn { color: var(--nb-green); }
.nb-dchev { flex-shrink: 0; opacity: 0.5; transition: transform 0.25s var(--nb-ease); }
.nb-dsec.is-open .nb-dchev { transform: rotate(180deg); opacity: 0.8; }
.nb-dsec-btn:focus-visible { outline: 2px solid var(--nb-green); outline-offset: -2px; }

.nb-dsec-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--nb-ease);
}
.nb-dsec.is-open .nb-dsec-body { max-height: 800px; }

.nb-drawer-ft {
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.07); flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   COMMAND PALETTE SEARCH OVERLAY
   ════════════════════════════════════════════════════════════ */
.nb-soverlay {
  position: fixed; inset: 0;
  z-index: var(--nb-z-search);
  background: rgba(5,10,20,0.75);
  backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.nb-soverlay.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
}

.nb-sbox {
  width: 100%; max-width: 580px; margin: 0 16px;
  background: #0f1729;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,232,122,0.06);
  transform: translateY(-10px) scale(0.98);
  transition: transform 0.25s var(--nb-ease);
}
.nb-soverlay.is-open .nb-sbox { transform: translateY(0) scale(1); }

.nb-shd {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: #6d7d9e;
}
.nb-shd svg { flex-shrink: 0; }
.nb-shd input {
  flex: 1; background: none; border: none; outline: none;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1rem; color: #f8faff;
}
.nb-shd input::placeholder { color: #3d4d6a; }
.nb-shd kbd {
  font-size: 0.72rem; padding: 2px 7px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px; color: #4a5570; flex-shrink: 0;
}

/* Results list */
.nb-sresults {
  list-style: none; max-height: 380px; overflow-y: auto;
  padding: 8px; margin: 0;
}
.nb-sresults::-webkit-scrollbar { width: 4px; }
.nb-sresults::-webkit-scrollbar-track { background: transparent; }
.nb-sresults::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.nb-sr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s;
  color: inherit;
}
.nb-sr-item:hover,
.nb-sr-item[aria-selected="true"] { background: rgba(0,232,122,0.08); }
.nb-sr-item:focus-visible { outline: 2px solid var(--nb-green); outline-offset: -2px; }

.nb-sr-icon { font-size: 16px; flex-shrink: 0; width: 22px; text-align: center; }
.nb-sr-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nb-sr-title {
  font-size: 0.88rem; font-weight: 500; color: #dce4f5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nb-sr-item[aria-selected="true"] .nb-sr-title { color: var(--nb-green); }
.nb-sr-desc {
  font-size: 0.74rem; color: #4a5570;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nb-sr-badge {
  font-size: 0.68rem; padding: 2px 8px; border-radius: 50px;
  background: rgba(255,255,255,0.07); color: #6d7d9e;
  flex-shrink: 0; margin-left: auto;
}

/* mark highlight in results */
.nb-sresults mark {
  background: rgba(0,232,122,0.2); color: var(--nb-green);
  border-radius: 2px; padding: 0 1px;
}

.nb-sempty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 40px 20px; color: #3d4d6a; text-align: center;
}
.nb-sempty p { font-size: 0.9rem; margin: 0; }

.nb-sfoot {
  display: flex; gap: 18px; padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.75rem; color: #3d4d6a;
}
.nb-sfoot kbd {
  font-size: 0.7rem; padding: 1px 5px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px; margin-right: 3px;
}

/* ════════════════════════════════════════════════════════════
   BACK TO TOP
   ════════════════════════════════════════════════════════════ */
#backToTop {
  position: fixed; bottom: 26px; right: 26px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--nb-green); color: #0a0f1e;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,232,122,0.35);
  z-index: 890;
  opacity: 0; transform: translateY(10px) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s var(--nb-ease);
  pointer-events: none;
}
#backToTop.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
#backToTop:hover { background: var(--nb-green-d); transform: translateY(-2px) scale(1.07); }
#backToTop:focus-visible { outline: 2px solid var(--nb-green); outline-offset: 3px; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1060px) {
  .nb-search-btn > span { display: none; }
  .nb-search-btn kbd    { display: none; }
  .nb-item  { padding: 0 10px; font-size: 0.83rem; }
  .nb-cta   { padding: 7px 13px; font-size: 0.79rem; }
}

@media (max-width: 900px) {
  .nb-list    { display: none; }
  .nb-actions { display: none; }
  .nb-burger  { display: flex; }
  .nb-search-btn { display: flex; margin-right: 4px; }
  .nb-actions { display: flex; margin-left: auto; }
}

@media (max-width: 480px) {
  .nb-search-btn { display: none; }
  :root { --nb-drawer-w: 100vw; }
  .nb-drawer { border-left: none; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .nb-panel, .nb-drawer, .nb-backdrop, .nb-soverlay,
  .nb-indicator, .nb-item, .nb-pi, .nb-dsec-body,
  #backToTop, .nb-burger span { transition: none !important; }
}
