/* Public dark-surface caption colors; Builder and paper Clock keep their own palette. */
html[data-site-contrast="dark"], html[data-site-contrast="dark"] body {
  --text-dim:#b8ae9e!important;
  --text-muted:#b8ae9e!important;
  --text-faint:#b8ae9e!important;
  --text-d:#b8ae9e!important;
  --text-xd:#b8ae9e!important;
  --text-s:#c3baad!important;
  --muted:#b8ae9e!important;
}
html[data-site-contrast="dark"] :is(.grp-lbl,.group-lbl,.stat-lbl,.browse-card-label,.browse-item-mfr,.browse-item-pid,.platform-mfr,.product-meta,.source-note,.grant-meta,.deadline-label,.doc-card-desc,.doc-card-time,.sheet-mfr,.sheet-country,.sheet-notes,.section-label,.tool-card-desc,.dataset-purpose,.dataset-date,.hub-desc,.acad-card-desc,.full-card-desc,.sw-code-label,.regime-cite,.row-label,.impact-label) {
  color:#b8ae9e!important;
}
.site-field-caption { display:block; font-weight:600; font-size:12px; line-height:1.4; margin:0 0 4px; color:inherit; }
:where(button,a,input,select,textarea,[tabindex="0"]):focus-visible {
  outline:2px solid #f2b955;
  outline-offset:3px;
}
html[data-site-contrast="dark"], html[data-site-contrast="dark"] body {
  --dim:#b8ae9e!important; --g2:#b8ae9e!important;
  --gray:#b8ae9e!important; --text-3:#b8ae9e!important;
}
html[data-site-contrast="dark"] :is(.plat-stats,.plat-chip,.c,.gauge-sub,.legend-item,.nav-pill,.meta,.tag,.coverage-note,.score-badge,.banner-time,.rating-note,.rating-dim summary,.filter-pill,.fpill,.card-desc,.spec,.spec b,.spec span,.gallery-header p,.reg-meta,.field-label,.r-meta-label) { color:#b8ae9e!important; }
html[data-site-contrast="dark"] :is([style*="color:#6b6358"],[style*="color: #6b6358"],[style*="color:#5e5a50"],[style*="color: #5e5a50"],[style*="color:#817b6d"],[style*="color: #817b6d"],[style*="color:#555"],[style*="color: #555"],[style*="color:#79746e"],[style*="color:#3e3e34"],[style*="color:#4a4540"],[style*="color:#2e2e26"]) { color:#b8ae9e!important; }
/* Distinct status hues retained against their existing tinted cards. */
html[data-site-contrast="dark"] :is(.ai-gloss-card h4,.ai-info-purple,.ai-info-purple div,.ai-info-purple strong,.cu-pipe-track,.badge-combat,.b-purple,.purple.hub-badge,.badge-purple,.hedge-label) { color:#c5a2ff!important; }
html[data-site-contrast="dark"] :is(.cu-pipe-decide,.comply-cell.no,.missing-badge,.badge-dfr,.new-pill,.badge-critical,.deadline-pill.critical,.badge-advanced,.btn-build,.pe-score.red,.pp-pct.red) { color:#ff9393!important; }
html[data-site-contrast="dark"] :is(.b-blue,.badge-blue,.hub-badge.blue,.action-label,a.reporting) { color:#86b6ff!important; }
html[data-site-contrast="dark"] :is(.badge-green,.badge-done) { color:#8ad4a6!important; }
html[data-site-contrast="dark"] .supply-window { color:#72d2e8!important; }
html[data-site-contrast="dark"] :is(.action-link,.badge-closed,.chip.dfr) { color:#d1c19f!important; }
html[data-site-contrast="dark"] .badge-commercial { color:#aaaaff!important; }
html[data-site-route="/waiver/"] [style*="color:var(--commercial)"] { color:#aaaaff!important; }
html[data-site-route="/intel-dfr/"] .hub-badge { color:#86b6ff!important; }
html[data-site-route="/intel/"] [style*="color:#e53e3e"] { color:#ff9393!important; }
html[data-site-route="/template/"] #btn-add-category, html[data-site-route="/tools/"] #rf-calc-btn { background:#b91c3c!important; color:#fff!important; }
html[data-site-route="/tools/"] button[data-mtool="rf-terrain"] { color:#ff9393!important; }
html:is([data-site-route="/autonomy/"],[data-site-route="/start/"]) a:not([class]) { color:#86b6ff!important; text-decoration:underline; }
html[data-site-route="/pid-tuning/"] :is(.divider, th) { color:#b8ae9e!important; }
html[data-site-route="/grants/"] :is(.equipment.tag,.federal.tag,.public-safety.tag) { color:#d1c19f!important; }
/* Clock mixes paper panels with ink masthead/footer; treat those independently. */
html[data-site-route="/clock/"] body { --muted:#655b4d!important; --amber:#956000!important; }
html[data-site-route="/clock/"] :is(.masthead-sub,#footer-ts,footer span) { color:#c3baad!important; }
html[data-site-route="/clock/"] :is(.forge-disclaimer p,.forge-disclaimer strong,.forge-disclaimer__tag) { color:#632626!important; }
html[data-site-route="/clock/"] .clock-main [style*="color:var(--text-s)"] { color:#655b4d!important; }
html[data-site-contrast="dark"] .gauge-sub { opacity:1!important; }
html[data-site-route="/grants/"] .grant-card.closed, html[data-site-route="/regs/"] .reg-card.done { opacity:1!important; }
html[data-site-route="/entity-graph/"] :is(#status,#loading) { color:#b8ae9e!important; }
html[data-site-route="/clock/"] .footer span { color:#c3baad!important; }
html[data-site-route="/clock/"] [style*="color:#b8b0a0"] { color:#655b4d!important; }
html[data-site-contrast="dark"] .acad-card-read-more { color:#c5a2ff!important; }
html[data-site-route="/pid-tuning/"] [style*="color:var(--g3)"] { color:#b8ae9e!important; }
html[data-site-route="/wingman/"] .icon-btn { color:#b8ae9e!important; }
html[data-site-route="/waiver/"] .gen-btn { background:#b91c3c!important; }
/* Prose/source links keep a non-color cue alongside improved text contrast. */
a[href]:not([class]) { text-decoration:underline!important; text-underline-offset:.15em; }
html[data-site-route="/guide/"] .guide-editor-guide-item:not(.active) { background:#1c1c17!important; }
