/* Dark mode for the producer site. Switched on by the Dark mode button (set up in js/layout.js).
   Only the colour tokens change; the layout stays the same. */
html[data-theme="dark"] {
  color-scheme: dark;

  --blue-600: #3d8bff;
  --blue-700: #8ab8ff;
  --blue-100: #17294a;
  --blue-bar: #2f5fb0;
  --blue-on-dark: #d6e7ff;
  --blue-shadow: rgba(61, 139, 255, 0.35);

  --neutral-0: #1a1d24;            /* cards, inputs, secondary buttons */
  --neutral-30: #2c313c;           /* borders */
  --neutral-40: #3a404c;           /* chip borders */
  --neutral-60: #7c8494;           /* placeholder and muted text */
  --neutral-100: #f2f4f7;          /* main text */
  --neutral-text-soft: #a4acb9;    /* secondary text */
  --neutral-nav: #c9cfd9;          /* navigation text */
  --surface-muted: #151820;        /* table header, notes */
  --page-bg: #0f1116;

  --green-50: #0f2a1e;
  --green-700: #6ee7a8;
  --orange-50: #2e2212;
  --orange-700: #fdb022;
  --red-50: #2e1513;
  --red-700: #fda29b;
  --red-border: #7a2a24;

  --step-border: #3a404c;
  --otp-border: #3a404c;
  --radio-off: #4a5160;
  --dashed: #3a4a66;
  --segmented-bg: #1d2129;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] body { background: var(--page-bg); color: var(--neutral-100); }

/* Text on blue buttons stays white */
html[data-theme="dark"] .btn--primary { color: #ffffff; }

/* The dark mode button, bottom right of every producer page */
.theme-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  box-shadow: var(--shadow-xs);
}

/* Contact support page (its layout and the sign-in style cards) */
html[data-theme="dark"] .status { background: var(--page-bg); color: var(--neutral-100); }
html[data-theme="dark"] .status__card { background: var(--neutral-0); border-color: var(--neutral-30); color: var(--neutral-100); box-shadow: none; }
html[data-theme="dark"] .status__title { color: var(--neutral-100); }
html[data-theme="dark"] .status__logo { filter: brightness(0) invert(1); }
html[data-theme="dark"] .back-link { color: var(--blue-700); }
html[data-theme="dark"] .note { background: var(--surface-muted); border-color: var(--neutral-30); color: var(--neutral-text-soft); }
