/* Desktop navigation and topbar search: one compact tab row. */
@media (min-width: 761px) {
  .desktop-search-toggle {
    display: inline-grid !important;
  }

  .desktop-search-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .desktop-search-panel {
    display: flex;
    justify-content: flex-end;
    padding: 0 0 10px;
  }

  .desktop-search-panel[hidden] {
    display: none !important;
  }

  .desktop-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(420px, 100%);
    min-height: 44px;
    padding: 0 13px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 5px 18px #173c5c14;
  }

  .desktop-search-field input {
    width: 100%;
    min-width: 0;
    height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
  }

  .main-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .main-nav > .nav-links {
    order: 1 !important;
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
  }

  .main-nav > .nav-links .mobile-drawer-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2px !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .main-nav > .nav-links .nav-link {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    justify-content: center !important;
    padding-inline: 7px !important;
    font-size: clamp(11px, 0.85vw, 14px) !important;
  }

  .main-nav > .nav-search-control {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .desktop-search-toggle,
  .desktop-search-panel {
    display: none !important;
  }
}
