$cssPath = "site\assets\style.css"
$css = Get-Content $cssPath -Raw

# 1. Update the base .nav-link styles to revert the pill shape but keep the flex layout for icons
$oldNavLink = '(?s)\.nav-link \{\s*display: flex;.*?box-shadow: 0 2px 8px rgba\(124,47,245,0\.1\);\s*\}'

$newNavLink = @"
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--muted-2);
  font-weight: 600;
  font-size: 15px;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s ease;
  cursor: pointer;
}
.nav-link:hover {
  color: var(--ink);
}
.nav-link.is-active {
  color: var(--violet-700);
}
"@

$css = $css -replace $oldNavLink, $newNavLink

Set-Content -Path $cssPath -Value $css -Encoding UTF8
Write-Host "Reverted desktop nav links to plain text style while keeping icons."
