/* DVPershin 2026-10-17-v4: one-row desktop header, hover-only submenus. */
.dv-nav-ready .dv-header-host { display:flex; align-items:center; flex-wrap:nowrap !important; min-width:0; column-gap:7px; }
.dv-nav-ready nav.dv-enhanced-nav { display:flex; flex-flow:row nowrap !important; align-items:center;
  justify-content:flex-end; gap:clamp(5px, .6vw, 11px); width:auto; min-width:0; margin-left:auto;
  white-space:nowrap; }
.dv-enhanced-nav > a, .dv-enhanced-nav > .dv-nav-entry > a { white-space:nowrap; }
.dv-nav-entry { display:inline-flex; align-items:center; position:relative; vertical-align:middle; white-space:nowrap; }
.dv-nav-entry > a { white-space:nowrap; }
.dv-submenu { display:none; position:absolute; z-index:3000; top:100%; left:0; width:max-content;
  box-sizing:border-box; min-width:225px; max-width:min(350px, 92vw); max-height:min(70vh, 540px);
  overflow-y:auto; padding:12px 9px 9px; background:#0b1f2b; color:#e2f2f7;
  border:1px solid rgba(78,148,156,.36); border-radius:12px; box-shadow:0 17px 46px rgba(0,0,0,.4);
  white-space:normal; overscroll-behavior:contain; }
@media (min-width:1280px) {
  /* Top label remains a real link; simply hovering reveals genuine child pages. */
  .dv-nav-entry:hover > .dv-submenu,
  .dv-nav-entry:focus-within > .dv-submenu,
  .dv-nav-entry.dv-open > .dv-submenu { display:flex; flex-direction:column; gap:2px; }
}
.dv-enhanced-nav .dv-submenu-link, nav.nav .dv-submenu-link { display:block; padding:10px 11px;
  box-sizing:border-box; color:#dbeaf0 !important; text-decoration:none !important; border-radius:8px;
  font-size:13px; line-height:1.4; font-weight:500; white-space:normal; min-width:0; }
.dv-enhanced-nav .dv-submenu-link:hover, .dv-enhanced-nav .dv-submenu-link:focus-visible {
  background:rgba(79,209,179,.14); color:#76f3dd !important; text-decoration:none; }
/* Never show chevrons in the desktop navigation. This + button is mobile-only. */
.dv-submenu-toggle { display:none; flex:none; place-items:center; border:0; border-radius:8px;
  color:inherit; cursor:pointer; background:transparent; width:36px; height:36px; padding:0; }
.dv-submenu-toggle .dv-icon, .dv-header-button .dv-icon { display:inline-flex; align-items:center; line-height:0; }
.dv-header-tools { display:inline-flex; align-items:center; justify-content:flex-end; flex:none;
  gap:6px; position:relative; z-index:50; margin-left:6px; }
.dv-header-button { display:inline-flex; align-items:center; justify-content:center; font:inherit;
  min-width:38px; width:38px; height:38px; cursor:pointer; border:0; border-radius:10px;
  padding:0; background:transparent; color:inherit; }
.dv-header-button:hover, .dv-header-button:focus-visible { background:rgba(84,182,168,.16); color:#7af2d8; }
.dv-header-button .dv-header-button-text { display:none; }
.dv-header-button.dv-search-trigger { margin:0; }
.dv-mobile-toggle { display:none; }
.dv-submenu-link:focus-visible, .dv-header-button:focus-visible, .dv-submenu-toggle:focus-visible,
.dv-search-dialog button:focus-visible, .dv-search-dialog input:focus-visible {
  outline:2px solid #51d0bc; outline-offset:3px;
}
@media (hover:none) and (min-width:1280px) {
  .dv-submenu-toggle { display:inline-grid; }
  .dv-nav-entry.dv-open > .dv-submenu { display:flex; flex-direction:column; }
}
@media (max-width:1279px) {
 .dv-nav-ready nav.dv-enhanced-nav { display:none !important; position:fixed !important; z-index:2999;
  top:var(--dv-nav-top, 74px); left:12px; right:12px; width:auto !important;
  max-height:calc(100dvh - var(--dv-nav-top, 74px) - 12px); overflow-y:auto;
  box-sizing:border-box; padding:12px; border:1px solid rgba(78,148,156,.36); border-radius:13px;
  background:#0b1f2b; color:#e2f2f7; box-shadow:0 18px 42px rgba(0,0,0,.4);
  flex-direction:column !important; align-items:stretch; gap:3px; flex-wrap:nowrap !important;
 }
 .dv-nav-ready nav.dv-enhanced-nav.dv-mobile-open { display:flex !important; }
 .dv-nav-ready .dv-header-host { justify-content:space-between; }
 .dv-mobile-toggle { display:inline-flex; }
 .dv-header-tools { margin-left:auto; gap:3px; }
 .dv-enhanced-nav > a, .dv-enhanced-nav > .dv-nav-entry { display:flex; width:100%; min-width:0;
  box-sizing:border-box; justify-content:space-between; align-items:center; border-bottom:1px solid rgba(175,215,222,.14); }
 .dv-enhanced-nav > .dv-nav-entry { flex-wrap:wrap; }
 .dv-enhanced-nav > a, .dv-enhanced-nav > .dv-nav-entry > a {
  color:#e2f2f7 !important; padding:11px 9px; flex:1; white-space:normal;
 }
 .dv-submenu-toggle { display:inline-grid; color:#a8d8da; }
 .dv-nav-entry.dv-open > .dv-submenu-toggle .dv-icon { transform:rotate(45deg); }
 .dv-nav-entry > .dv-submenu { position:static; display:none !important; box-shadow:none;
  border:0; border-radius:7px; background:rgba(19,52,63,.7); width:100%; max-width:100%; max-height:none;
  padding:4px 5px 7px 13px; }
 .dv-nav-entry.dv-open > .dv-submenu { display:flex !important; flex-direction:column; gap:2px; }
}
@media (max-width:500px) {
 .dv-nav-ready .dv-header-host { gap:5px; }
 .dv-header-button { width:36px; min-width:36px; height:36px; }
 .dv-submenu { min-width:0; }
}
.dv-search-dialog { box-sizing:border-box; width:min(780px, calc(100vw - 28px)); max-width:none; max-height:min(86dvh, 840px);
 padding:0; border:1px solid #dbe5ee; border-radius:17px; background:#fff; color:#152536;
 box-shadow:0 22px 80px rgba(6,18,43,.3); overflow:hidden; position:fixed; }
.dv-search-dialog::backdrop { background:rgba(4,17,32,.65); backdrop-filter:blur(3px); }
.dv-search-frame { display:flex; flex-direction:column; max-height:min(86dvh, 840px); }
.dv-search-top { display:flex; flex-shrink:0; align-items:center; gap:12px; padding:16px 18px 10px; border-bottom:1px solid #e9eef4; }
.dv-search-top > .dv-icon { color:#49718f; }
.dv-search-dialog .dv-search-input { width:100%; min-width:0; border:0; outline:none; background:transparent;
 box-shadow:none; color:#152536; font:inherit; font-size:18px; padding:10px 0; }
.dv-search-input::placeholder { color:#77889a; opacity:1; }
.dv-search-dialog .dv-search-close { display:inline-grid; place-items:center; flex:none; height:36px; width:36px; cursor:pointer;
 background:#eff4f8; color:#273e51; border:0; border-radius:9px; }
.dv-search-chips { display:flex; flex-shrink:0; gap:7px; padding:13px 18px 9px; overflow-x:auto; scrollbar-width:thin; }
.dv-search-chip, .dv-search-suggestion { font:inherit; font-size:13px; white-space:nowrap; cursor:pointer; border:1px solid #d4dfea;
 background:#f8fafc; color:#385069; border-radius:100px; padding:7px 13px; }
.dv-search-chip[aria-pressed="true"] { border-color:#2078b0; color:#fff; background:#196f9f; }
.dv-search-meta { padding:8px 18px 11px; font-size:12px; color:#698096; flex:none; }
.dv-search-results { overflow-y:auto; padding:0 10px 10px; min-height:100px; overscroll-behavior:contain; }
.dv-result-link { display:flex; flex-direction:column; gap:4px; padding:12px 14px; margin:3px 0;
 border:1px solid transparent; border-radius:11px; text-decoration:none !important; color:#263e50 !important; line-height:1.4; }
.dv-result-link:hover, .dv-result-link:focus-visible, .dv-result-link.dv-result-active { border-color:#cfdfed; background:#edf6fc; outline:none; }
.dv-result-meta { color:#427ba0; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.dv-result-title { color:#142c42; font-size:17px; font-weight:700; }
.dv-result-breadcrumb { color:#718397; font-size:12px; }
.dv-result-excerpt { color:#485e74; font-size:13px; line-height:1.55; }
.dv-result-link mark { background:#fff0a4; padding:0 1px; color:#183951; border-radius:2px; }
.dv-result-more { border:1px solid #d2e1ed; border-radius:9px; padding:10px 16px; background:#f4f9fc;
 cursor:pointer; color:#1a628f; width:100%; font:inherit; font-size:13px; }
.dv-search-empty-title { font-weight:700; padding:20px 12px 7px; font-size:16px; }
.dv-search-empty-hint { padding:0 12px 18px; color:#667f91; font-size:14px; }
.dv-search-suggestions { padding:5px 12px 25px; display:flex; gap:10px; flex-wrap:wrap; }
.dv-search-error { padding:10px 12px; color:#a32424; }
.dv-search-footer { border-top:1px solid #e9eef4; padding:11px 18px; display:flex; align-items:center;
 justify-content:space-between; gap:12px; font-size:12px; color:#7a8da0; flex-shrink:0; }
.dv-search-share { font:inherit; font-size:12px; color:#196e9d; border:0; background:none; cursor:pointer; }
@media (max-width:600px) {
 .dv-search-dialog { width:100%; max-height:94dvh; margin:0; top:auto; bottom:0; left:0; right:0; border-radius:16px 16px 0 0; }
 .dv-search-frame { max-height:94dvh; }
 .dv-search-top { padding:10px 12px 8px; gap:8px; }
 .dv-search-dialog .dv-search-input { font-size:16px; }
 .dv-search-footer > span { display:none; }
 .dv-search-footer { justify-content:flex-end; }
 .dv-result-title { font-size:16px; }
}
@media (prefers-reduced-motion:reduce) { .dv-enhanced-nav *, .dv-search-dialog * { transition:none !important; animation:none !important; } }

/* v4: independently navigable metrics tools, genuine second-level pages only. */
.dv-enhanced-nav .dv-subentry { position:relative; display:flex; align-items:center; min-width:0; }
.dv-enhanced-nav .dv-subentry > a.dv-submenu-link { flex:1; }
.dv-enhanced-nav .dv-submenu-nested {
  top:-8px; left:auto; right:calc(100% - 2px); min-width:255px;
  max-width:min(350px, 86vw); max-height:min(70vh, 540px);
}
@media (min-width:1280px) and (hover:hover) {
  .dv-enhanced-nav .dv-subentry:hover > .dv-submenu-nested,
  .dv-enhanced-nav .dv-subentry:focus-within > .dv-submenu-nested {
    display:flex; flex-direction:column; gap:2px;
  }
}
@media (min-width:1280px) and (hover:none) {
  .dv-enhanced-nav .dv-subentry.dv-open > .dv-submenu-nested { display:flex; flex-direction:column; gap:2px; }
}
@media (max-width:1279px) {
  .dv-enhanced-nav .dv-subentry { flex-wrap:wrap; align-items:center; width:100%; }
  .dv-enhanced-nav .dv-subentry > .dv-submenu-nested {
    position:static; display:none !important; min-width:0; width:100%; max-width:100%;
    box-shadow:none; border:0; padding:2px 4px 4px 13px; background:rgba(37,86,96,.25);
  }
  .dv-enhanced-nav .dv-subentry.dv-open > .dv-submenu-nested { display:flex !important; flex-direction:column; }
  .dv-enhanced-nav .dv-subentry > a.dv-submenu-link { min-width:0; white-space:normal; }
}
@media (min-width:1280px) {
  /* Flyout levels must not be clipped by the first dropdown's scrollbox. */
  .dv-enhanced-nav > .dv-nav-entry > .dv-submenu { overflow:visible; }
}

/* v5: use the existing site header as a single mobile toolbar.
   No second nav panel, and native menu remains the no-JS fallback. */
@media (max-width:1279px) {
  .dv-nav-ready .site-header .nav-wrap.dv-header-host {
    display:contents !important;
  }
  .dv-nav-ready .site-header .nav-toggle { display:none !important; }
  .dv-nav-ready .site-header .header-inner { gap:8px; }
  .dv-nav-ready .site-header .brand { min-width:0; }
  .dv-nav-ready .site-header .header-subscribe { flex:0 0 auto; }
}
@media (max-width:480px) {
  .dv-nav-ready .site-header .header-inner { gap:5px; }
  .dv-nav-ready .site-header .brand { gap:6px; }
  .dv-nav-ready .site-header .brand-mark { width:36px; height:36px; flex-shrink:0; }
  .dv-nav-ready .site-header .brand strong {
    font-size:clamp(.8rem,3.6vw,1rem); line-height:1.15; letter-spacing:0;
  }
  .dv-nav-ready .site-header .header-subscribe {
    padding:0 8px; min-height:36px; font-size:.75rem;
  }
  .dv-nav-ready .site-header .dv-header-tools { gap:0; margin-left:auto; }
  .dv-nav-ready .site-header .dv-header-button {
    width:32px; min-width:32px; height:36px;
  }
}
