/* Candidate 13 only. A single dark palette for every page and interaction. */
html:root,
body,
body.paper-page,
body.paper-page .site-header {
  --background: #18191b;
  --surface: #222427;
  --text: #f4f0e8;
  --muted: #cbc5b9;
  --line: #625b4f;
  --accent: #e0c58e;
  --accent-warm: #dfa46c;
  --editorial-paper: #222427;
  --editorial-ink: #f4f0e8;
  --editorial-muted: #cbc5b9;
  --editorial-line: #625b4f;
  --editorial-accent: #e0c58e;
  color-scheme: dark;
}

html,
body,
body.paper-page {
  background: #18191b;
  color: #f4f0e8;
}

body .site-header,
body.paper-page .site-header {
  background: #18191bf7;
  border-color: var(--line);
  color: var(--text);
}
body .brand,
body.paper-page .site-header .brand,
body .site-footer strong,
body.paper-page .site-footer strong { color: var(--text); }
body .brand small,
body .main-nav a { color: #d9d3c7; }
body .main-nav a[aria-current="page"],
body .main-nav a:hover {
  color: #f4d89f;
  border-bottom-color: var(--accent);
}
body .hero-position { color: #eee6d7; }
body .hero-lead,
body .hero-evidence p span,
body .path-preview,
body .focus-list p,
body .page-lead,
body .candidate-path-title > p:last-child,
body .contact-subjects,
body .materials-teaser-copy > p,
body .contact-teaser > div:last-child p { color: var(--muted); }
body .eyebrow,
body .hero-evidence strong,
body .candidate-timeline time { color: var(--accent); }
body .portrait-frame {
  background: #37332b;
  border-color: #aa9875;
  box-shadow: 0 18px 40px #0006;
}

body .button,
body .button-outline,
body .topic-filters :is(button,a),
body .editorial-quote-controls button,
body .editorial-quote-note [data-note-save] {
  background: #222427;
  color: #f0d69e;
  border-color: #8a7654;
}
body .button-primary,
body .topic-filters :is(button,a)[aria-pressed="true"],
body .editorial-quote-controls button[aria-pressed="true"] {
  background: #443722;
  color: #fff0cf;
  border-color: #d4b477;
}
body .button:hover,
body .topic-filters :is(button,a):hover,
body .editorial-quote-controls button:hover,
body .editorial-quote-note [data-note-save]:hover {
  background: #54432b;
  color: #fff1d2;
  border-color: #e0c58e;
}
body .text-link,
body .candidate-timeline a,
body .reading-surface a,
body .reader-breadcrumb a,
body .editorial-toc a,
body .editorial-reader-end a,
body .editorial-path-links a {
  color: #ead09a;
  border-color: #9a835a;
}

body .recent-grid > .editorial-card,
body .article-list > .editorial-card,
body .candidate-recent-grid > .editorial-card:first-of-type {
  background: #222427;
  color: var(--text);
  border-color: var(--line);
}
body .candidate-recent-grid > .editorial-card:first-of-type {
  background: #2b2924;
  border-color: #9a835a;
}
body .candidate-recent-grid > .editorial-card:first-of-type a,
body .editorial-title,
body .editorial-title a { color: var(--text); }
body .editorial-topic,
body .candidate-recent-grid > .editorial-card:first-of-type .editorial-topic {
  color: #e2c88f;
}
body .prototype-label,
body .candidate-recent-grid > .editorial-card:first-of-type .prototype-label {
  background: #252522;
  color: #dfd2b8;
  border-color: #8a7855;
}
body .editorial-summary,
body .candidate-recent-grid > .editorial-card:first-of-type .editorial-summary,
body .editorial-prototype-notice,
body .editorial-reader-boundary,
body .editorial-caption,
body .editorial-publication p { color: var(--muted); }
body .editorial-publication,
body .editorial-open {
  color: var(--text);
  border-color: var(--line);
}

body .reading-surface,
body .editorial-reader,
body .editorial-path,
body .editorial-materials,
body .editorial-not-found { color: var(--text); }
body .reading-surface,
body .contact-panel { background: var(--surface); }
body .editorial-prose,
body .editorial-lead,
body .editorial-prose h2,
body .editorial-prose h3,
body .editorial-path h2 { color: var(--text); }
body .reader-breadcrumb,
body .reader-breadcrumb span,
body .reader-aside,
body .reader-aside > p:last-child,
body .editorial-toc span,
body .editorial-path-fact span,
body .editorial-material-note,
body .editorial-download small,
body .editorial-empty-state,
body .editorial-figure figcaption,
body .editorial-table-hint,
body .editorial-quote-source,
body .editorial-quote-note [data-note-panel] > p,
body .contact-panel > p:not(.eyebrow):not(.demo-status) { color: var(--muted); }
body .editorial-figure img {
  background: #202123;
  border-color: var(--line);
}

body .editorial-table-scroll,
body .editorial-table-scroll table {
  background: #222427;
  color: var(--text);
  border-color: var(--line);
}
body .editorial-table-scroll caption {
  background: #1c1e20;
  color: #d8cfbd;
  border-color: var(--line);
}
body .editorial-table-scroll th,
body .editorial-table-scroll td {
  color: var(--text);
  background: #222427;
  border-color: var(--line);
}
body .editorial-table-scroll tbody tr:nth-child(even) > * { background: #292b2e; }
body .editorial-table-scroll thead th {
  background: #353027;
  color: #f7dfb1;
}
body .editorial-callout {
  background: #302b23;
  color: #eee6d8;
  border-color: var(--accent);
}
body .editorial-example-quote,
body .editorial-quote-note,
body .editorial-quote-note blockquote {
  color: var(--text);
  border-color: var(--accent);
}
body .editorial-quote-note [data-quote-target].quote-marked {
  color: #fff2d4;
  background: linear-gradient(transparent 53%, #8b6d324d 53%, #8b6d324d 94%, transparent 94%);
}
body .editorial-quote-note textarea,
body input,
body select {
  color-scheme: dark;
  background: #151719;
  color: #f4f0e8;
  border-color: #8b795a;
  caret-color: #f4d89f;
}
body .editorial-quote-note textarea::placeholder,
body input::placeholder { color: #bcb4a5; }
body .editorial-quote-note label { color: var(--text); }
body [data-note-status],
body [data-demo-status],
body .demo-status,
body .list-status { color: #e2ceaa; }
body .editorial-download {
  color: var(--text);
  background: #222427;
  border-color: var(--line);
}
body .editorial-download:hover {
  background: #302d26;
  border-color: #b39a6b;
}
body .site-footer {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}
body .page-stats.static-view-counter {
  background: #202225;
  color: var(--text);
  border-color: var(--line);
}
body .page-stats.static-view-counter p,
body .page-stats.static-view-counter dt { color: var(--muted); }
body .page-stats.static-view-counter dd { color: #f0d69e; }
body .read-progress [data-progress-fill],
body.paper-page .read-progress [data-progress-fill] { background: #e0c58e; }
body a:focus-visible,
body button:focus-visible,
body textarea:focus-visible,
body input:focus-visible,
body select:focus-visible,
body .editorial-table-scroll:focus-visible { outline-color: #f0d69e; }
::selection { background: #705932; color: #fff4dc; }
