/* Dark theme for candidate-facing pages, following the system preference. Admin dark tokens live in 01-base.css. Loaded in numeric order; later files may override earlier ones. */

/* ===== Dark mode (system preference) ===== */

@media (prefers-color-scheme: dark) {
  /* Candidate pages swap their palette tokens; every component picks them up automatically. */
  .guest-body {
    --guest-ink: #e8e8e8;
    --guest-paper: #141414;
    --guest-surface: #1e1e1e;
    --guest-muted: #999999;
    --guest-placeholder: #666666;
    --guest-line: #333333;
    --guest-control-line: #444444;
    --guest-chip-line: #444444;
    --guest-dashed: #555555;
    --guest-soft: #252525;
    --guest-soft-strong: #2a2a2a;
    --guest-danger: #ef6b6b;
  }

  /* The black logo would disappear on the dark background. */
  .guest-body .guest-brand__logo {
    filter: invert(1);
  }

  /* The dropdown arrow is an inline SVG, so it cannot read a token. */
  .guest-body .guest-language__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aaa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}
