/* ==========================================================================
   SAWT IBB — dark-theme.css
   Activated by [data-theme="dark"] on <html> (or by .si-dark wrapper).
   Accent stays brand red for fills; links use accent-text (7.5:1 on the dark bg).
   ========================================================================== */
[data-theme="dark"],
.si-dark {
  color-scheme: dark;

  --si-color-bg: #0F0F10;
  --si-color-bg-subtle: #161617;
  --si-color-bg-muted: #1C1C1E;
  --si-color-surface: #161617;
  --si-color-surface-2: #1F1F21;

  --si-color-text-primary: #F7F7F8;
  --si-color-text-secondary: #D6D6D8;
  --si-color-text-muted: #A1A1A6;
  --si-color-text-on-brand: #FFFFFF;

  --si-color-border: #2A2A2D;
  --si-color-border-strong: #3A3A3E;

  --si-color-accent: #E90200;
  --si-color-accent-hover: #C50100;
  --si-color-accent-text: #FF7A70;   /* 7.54:1 on #0F0F10 */
  --si-color-accent-soft: #2A0F0D;
  --si-color-focus-ring: #FF7A70;
  --si-color-overlay: rgba(0, 0, 0, .65);

  --si-shadow-card: var(--si-shadow-md);
  --si-shadow-raised: var(--si-shadow-lg);

  /* logo asset to use in this theme (white lettering, red stays red) */
  --si-logo-src: url("/brand/logo/logo-on-dark.svg");
}

/* keep solid red badges readable in dark mode */
[data-theme="dark"] .si-badge--soft,
.si-dark .si-badge--soft { color: #FF7A70; }

/* dark theme: images should not glow */
[data-theme="dark"] img { filter: brightness(.94); }
@media print { [data-theme="dark"] img { filter: none; } }
