/* Share the homepage's saved appearance while keeping scientific figures intact. */
:root {
  color-scheme: light;
  --background: #fff;
  --surface: #fff;
  --control-line: #aab6c8;
  --conclusion: #eaf0fc;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #171b21;
  --surface: #202733;
  --ink: #e6eaf0;
  --muted: #adb7c4;
  --blue: #8bbcf5;
  --orange: #f0a272;
  --line: #343d49;
  --pale: #222c3c;
  --dark: #101925;
  --control-line: #56657a;
  --conclusion: #202c40;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --background: #171b21;
    --surface: #202733;
    --ink: #e6eaf0;
    --muted: #adb7c4;
    --blue: #8bbcf5;
    --orange: #f0a272;
    --line: #343d49;
    --pale: #222c3c;
    --dark: #101925;
    --control-line: #56657a;
    --conclusion: #202c40;
  }
}
body, header { background: var(--background); }
select, button, .skip, .feature-grid figure { background: var(--surface); }
select { border-color: var(--control-line); }
.conclusion { background: var(--conclusion); }
figure img { background: #fff; border-radius: 6px; }
header { flex-wrap: wrap; }
.header-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.header-tools nav { flex-wrap: wrap; }
.appearance-control[hidden] { display: none; }
.appearance-control select { width: auto; margin: 0; padding: 8px 10px; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .header-tools { width: 100%; gap: 12px 20px; }
  .header-tools nav { gap: 12px 20px; }
}
@media print {
  :root, :root[data-theme], :root:not([data-theme]) {
    color-scheme: light;
    --background: #fff;
    --surface: #fff;
    --ink: #152039;
    --muted: #546277;
    --blue: #275fe5;
    --line: #dbe2ee;
    --pale: #f3f6fc;
    --conclusion: #fff;
  }
}
