/**
 * Delta v5 — site-wide dark base.
 * Scoped to body.v5-scope so it can never affect legacy pages or other sessions.
 * Generic resets use :where() (zero specificity) so page-level rules always win.
 * Layers over the legacy CSS (new/delta/new-app/prod/black-mode) loaded before it.
 */

body.v5-scope {
  background: var(--v5-bg);
  color: var(--v5-text);
}

.v5-scope :where(a) {
  color: var(--v5-link);
}

.v5-scope :where(a:hover) {
  color: var(--v5-link-hover);
}

.v5-scope :where(h1, h2, h3, h4, h5, h6) {
  color: var(--v5-text);
}

.v5-scope :where(hr) {
  border-color: var(--v5-border);
}

/* Common legacy surface container — dark by default; pages refine further. */
.v5-scope .card {
  background: var(--v5-surface);
  box-shadow: none;
}

/* Keyboard focus stays visible on the dark ground. */
.v5-scope :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--v5-accent-blue);
  outline-offset: 2px;
}
