/* rs-dark-paper.css · dark mode for the pages built on the "paper" colour set (expert pages, company pages, contact, badges...).
   2026-11-25, his words: "I recommend having all pages on all sites follow whatever the device is set to, or the browser is set to".
   Follows prefers-color-scheme only (same rule as /search's rs-dark.css), same palette. Link it AFTER the page's own styles. */
:root{color-scheme:light dark}
@media (prefers-color-scheme:dark){
  :root{--paper:#0F1514;--paper-2:#0b1110;--paper-3:#1b2625;--surface:#161E1D;--ink:#e3ebe9;--text:#cfdad7;--muted:#a3b5b1;--dim:#8fa39f;--border:#2a3836;--border-soft:#223130;
    --teal:#5FBFB4;--teal-deep:#7FD0C6;--teal-soft:#1d3634;--amber:#d9a94a;--amber-deep:#e6bd63;--amber-soft:#2b2410;--clay:#ff8a7a;--clay-soft:#2A0F0F;
    --bg:#0F1514;--card-bg:#161E1D;--card-border:#2a3836;--cyan:#5FBFB4;--pink:#ff8a7a;--gold:#d9a94a;--gold-soft:#2b2410;--grid-line:rgba(227,235,233,.05);
    --silver:#b7c2c4;--silver-soft:#2a3436;--bronze:#d19a66;--warn:#f0a070;--on-teal:#06201e;
    --safety:#8ec3e6;--safety-soft:#12232e;--safety-border:rgba(142,195,230,.35)}
  .nav,body>nav,body>header{background:#121a19!important}
  html,body{background:var(--paper)!important;color:var(--text)}   /* pages whose body colour is a hardcoded light value or a variable defined elsewhere */
}
/* 2026-11-25 sweep: filled brand buttons keep dark text in dark mode (the brand colours are light there, so white text washed out). */
@media (prefers-color-scheme:dark){
  .btn-primary,.btn-accent,.btn-clay,.nav-cta,.btn:not(.btn-secondary):not(.btn-ghost):not(.btn-small),.viral a,.cf-chip[aria-pressed="true"]{color:var(--on-teal)}
}
/* 2026-11-25 sweep: the score page's API banner is drawn with the ink colour (light in dark mode), and the 404 search button is a light teal fill. */
@media (prefers-color-scheme:dark){
  .api-banner{background:var(--paper-3)}
  .searchbox button{color:var(--on-teal)}
}
