/* MinerTest uses signal red on graphite in dark mode and on stone in light mode.
   The handoff at the foot of each page uses the same palette. */
:root {
  --bg: #131313;
  --fg: #f3f1ee;
  --muted: #a9a5a0;
  --card: #1c1c1c;
  --border: #333232;
  --accent: #ff6b5e;
  --good: #4ade80;
  --warn: #fbbf24;
  --radius: 0;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f2ee;
  --fg: #181716;
  --muted: #615d58;
  --card: #ffffff;
  --border: #dcd8d1;
  --accent: #c4161c;
  --good: #15803d;
  --warn: #a15c07;
  color-scheme: light;
}

:root[data-theme="auto"] { color-scheme: light dark; }

@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f4f2ee;
    --fg: #181716;
    --muted: #615d58;
    --card: #ffffff;
    --border: #dcd8d1;
    --accent: #c4161c;
    --good: #15803d;
    --warn: #a15c07;
  }
}

/* The test label beside the nav, and the handoff box in the footer of every page. */
.test-label { color: var(--accent); font-weight: 600; }
/* The label makes the nav too long for one row beside the brand: the nav keeps the phone's row of its own at every
   width, under the brand and the theme button, with the label at its end. */
header nav { order: 1; flex-basis: 100%; }
.test-label { margin-left: auto; }
/* The intro's links, on a line of their own that fits a 320px phone. */
.test-links a { white-space: nowrap; }
@media (max-width: 22rem) { .test-links { font-size: 0.875rem; } }
.test-handoff {
  color: var(--fg);
  font-size: 1rem;
  border-top: 3px solid var(--accent);
  margin: 0 0 1.5rem;
  padding-top: 1rem;
}
.test-handoff h2 { font-size: 1.25rem; margin: 0 0 0.5rem; }
.test-handoff ul { list-style: none; margin: 0.75rem 0; padding: 0; }
.test-handoff li { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 0.25rem 1rem;
  align-items: baseline; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.test-handoff li[data-from="true"] { border-left: 3px solid var(--accent); padding-left: 0.5rem; }
.test-handoff li span { color: var(--muted); font-size: 0.875rem; display: block; }
@media (max-width: 40rem) { .test-handoff li { grid-template-columns: minmax(0, 1fr); } }
