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

# The .btn class somehow got deleted by a bad regex earlier. We need to restore it so buttons have rounded corners and no black borders!
$btnClass = '
.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  background: transparent;
}
'

$css = $css -replace '(?=\.btn-primary\{)', $btnClass

Set-Content -Path $cssPath -Value $css -Encoding UTF8
Write-Host "Restored missing .btn base class."
