/* DYOR Contrast Colorway v1 — Ink / Paper / Signal */
:root,
html[data-theme="dark"],
html[data-theme="light"] {
  color-scheme: light !important;
  --ink: #171613;
  --white: #fffaf0;
  --paper: #f3eee4;
  --jet: #f3eee4;
  --black-blue: #ece5d9;
  --coal: #e8e0d3;
  --charcoal: #f8f3e9;
  --slate-charcoal: #ded5c7;
  --panel: #fffaf0;
  --panel-strong: #fffaf0;
  --panel-soft: rgba(23, 22, 19, .045);
  --muted: #514b43;
  --muted-soft: #686158;
  --line: rgba(23, 22, 19, .38);
  --blue: #174ea6;
  --blue-strong: #103a7d;
  --blue-neon: #174ea6;
  --blue-soft: rgba(23, 78, 166, .12);
  --accent: #d94700;
  --accent-strong: #9d3400;
  --success: #006b4f;
  --green: #006b4f;
  --amber: #7a4b00;
  --red: #a61b2b;
  --lime: #E85002;
  --orange: #d94700;
  --surface: #fffaf0;
  --launch-raised: #fffaf0;
  --shadow: 0 18px 55px rgba(23, 22, 19, .13);
}

body {
  color: #171613 !important;
  background:
    linear-gradient(90deg, rgba(23, 22, 19, .045) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(rgba(23, 22, 19, .045) 1px, transparent 1px) 0 0 / 52px 52px,
    #f3eee4 !important;
}

:where(.view, .page-heading, .panel, .asset-browser-panel, .watchlist-card, .research-workspace, .report-controls) {
  color: #171613;
}

:where(.panel, .asset-browser-panel, .watchlist-card) {
  border-color: rgba(23, 22, 19, .38) !important;
  background-color: #fffaf0 !important;
}

:where(.panel, .asset-browser-panel, .watchlist-card) :where(h1, h2, h3, h4, strong, b) {
  color: #171613;
}

:where(.panel, .asset-browser-panel, .watchlist-card) :where(p, li, dd, small) {
  color: #514b43;
}

.side-nav {
  border-color: rgba(23, 22, 19, .4) !important;
  background: rgba(243, 238, 228, .96) !important;
  color: #171613 !important;
}

.side-nav :where(.nav-link, summary, label, kbd) {
  color: #514b43 !important;
}

.side-nav :where(.nav-link.active, .nav-link[aria-current="page"], .nav-link:hover, .nav-link:focus-visible) {
  background: #171613 !important;
  color: #fffaf0 !important;
}

.side-nav input,
.side-nav textarea,
:where(input, select, textarea) {
  border-color: #686158 !important;
  background: #fffaf0 !important;
  color: #171613 !important;
}

:where(input, textarea)::placeholder {
  color: #686158 !important;
  opacity: 1 !important;
}

:where(a:not(.dyor-wordmark), .text-link) {
  color: #174ea6;
}

:where(.primary-button, button.primary, [data-primary-action]) {
  border-color: #171613 !important;
  background: #E85002 !important;
  color: #171613 !important;
  text-shadow: none !important;
}

:where(.primary-button, button.primary, [data-primary-action]):hover,
:where(.primary-button, button.primary, [data-primary-action]):focus-visible {
  background: #171613 !important;
  color: #fffaf0 !important;
}

:where(.text-button, .save-button):not(.asset-price-actions *) {
  border-color: rgba(23, 22, 19, .55) !important;
  color: #171613 !important;
}

:where(.label, .eyebrow, .tip-kicker) {
  color: #9d3400 !important;
}

:where(.source-stage-badge, .pill, .asset-tag) {
  color: #171613;
}

:focus-visible {
  outline-color: #174ea6 !important;
}

::selection {
  background: #174ea6;
  color: #fffaf0;
}

/* Intentional inverse surfaces use one guaranteed pairing. */
:where(
  #asset-view #asset-read-accordion > .asset-research-card-header,
  #asset-view #asset-read-accordion > .research-snapshot,
  .asset-signal-field,
  .buddy-handle,
  .buddy-thread
) {
  --ink: #fffaf0;
  --muted: #d8d0c2;
  --muted-soft: #bfb6a7;
  --line: rgba(255, 250, 240, .38);
  --panel: #171613;
  --panel-strong: #171613;
  --surface: #171613;
}

:where(
  #asset-view #asset-read-accordion > .asset-research-card-header,
  #asset-view #asset-read-accordion > .research-snapshot,
  .asset-signal-field
) :where(a:not(.primary-button), .text-link) {
  color: #d6e5ff;
}

/* Signals are never used as low-contrast body text. */
.signal-positive,
.data-status-live,
.data-status-recent {
  color: #005d45 !important;
}

.signal-negative,
.data-status-conflicting {
  color: #a61b2b !important;
}

/* Rendered acceptance lock: light research surfaces and intentional dark footer. */
#discover-view, #watchlist-view, #report-view { --ink:#171613; --muted:#514b43; --muted-soft:#686158; --panel:#fffaf0; --panel-strong:#fffaf0; --surface:#fffaf0; color:#171613 !important; }
#discover-view :where(h1,h2,h3,h4,strong,b), #watchlist-view :where(h1,h2,h3,h4,strong,b), #report-view :where(h1,h2,h3,h4,strong,b) { color:#171613 !important; }
#discover-view :where(p,li,dd,small,span:not(.source-stage-badge):not(.state-pill)), #watchlist-view :where(p,li,dd,small,span:not(.source-stage-badge):not(.state-pill)), #report-view :where(p,li,dd,small,span:not(.source-stage-badge):not(.state-pill)) { color:#514b43 !important; }
#discover-view :where(.label,.eyebrow,.tip-kicker), #watchlist-view :where(.label,.eyebrow,.tip-kicker), #report-view :where(.label,.eyebrow,.tip-kicker) { color:#9d3400 !important; }
#discover-view :where(.primary-button,button.primary,[data-primary-action]), #watchlist-view :where(.primary-button,button.primary,[data-primary-action]), #report-view :where(.primary-button,button.primary,[data-primary-action]) { border-color:#171613 !important; background:#E85002 !important; color:#171613 !important; }
#discover-view .discover-filter-rail button { color:#171613 !important; background:#fffaf0 !important; }
#discover-view .discover-filter-rail button.active { color:#fffaf0 !important; background:#171613 !important; }
#watchlist-view .save-button.saved { background:#171613 !important; color:#fffaf0 !important; }
.site-footer { background:#171613 !important; color:#fffaf0 !important; }
.site-footer :where(a,p,span,small,strong) { color:#fffaf0 !important; }
.site-footer a { color:#d6e5ff !important; }
.entrance .report-sheet { transform:none !important; }

#discover-view :where(.live-discovery-panel,.research-engine-surface,.live-queue), #discover-view #live-discovery-briefing > div, #discover-view .verified-change-event > article, #discover-view .verified-change-proof { background:#171613 !important; border-color:rgba(255,250,240,.32) !important; }
#watchlist-view :where(.watchlist-card,.watch-alert-card,.watchlist-options,.saved-evidence-change-card,.research-engine-surface) { background:#fffaf0 !important; border-color:rgba(23,22,19,.38) !important; }
#report-view :where(.report-hero-card,.report-controls,.report-preview-stack,.asset-identity-copy,.export-status) { background:#fffaf0 !important; border-color:rgba(23,22,19,.38) !important; }
#report-view .report-orb :where(span,small) { color:#171613 !important; }
#compare-view :where(.primary-button,button[data-buddy-tooltip-title]) { background:#E85002 !important; color:#171613 !important; border-color:#171613 !important; }
#asset-view .server-evidence-summary { background:#fffaf0 !important; color:#171613 !important; }
#asset-view .server-evidence-summary :where(h2,h3,strong,b) { color:#171613 !important; }
#asset-view .server-evidence-summary :where(p,li,small) { color:#514b43 !important; }
#asset-view .server-evidence-summary .label { color:#9d3400 !important; }
#asset-view .server-evidence-summary a { color:#174ea6 !important; }
#asset-view :where(.primary-button,button[data-re-checkpoint]) { background:#E85002 !important; color:#171613 !important; border-color:#171613 !important; }
#asset-view .data-status-near_real_time b { color:#005d45 !important; }

html body #discover-view .verified-change-event > article :where(.source-stage-badge,time) { color:#171613 !important; }
html body #discover-view .verified-change-event > article .verified-change-proof a { color:#f2f2f2 !important; }
html body #discover-view .research-engine-surface .re-presets button span { color:#514b43 !important; }
html body #watchlist-view .watchlist-card { background:#fffaf0 !important; color:#171613 !important; }
html body #watchlist-view .watchlist-card :where(dd,small,.saved-workflow-state,.saved-state-control span) { color:#514b43 !important; }
html body #watchlist-view .watchlist-options > summary { background:#fffaf0 !important; color:#171613 !important; }
html body #report-view .asset-identity-copy > strong { color:#171613 !important; }
html body #compare-view button[data-buddy-tooltip-title="Risk comparison"] { background:#E85002 !important; color:#171613 !important; }
html body #asset-view .data-status-near_real_time b { color:#fffaf0 !important; }

html body #discover-view .research-engine-surface .re-presets button span { color:#171613 !important; }
html body #watchlist-view .watchlist-card :where(.asset-identity-copy strong,.asset-identity-copy small,.watchlist-card-summary,dt) { color:#171613 !important; }
html body #asset-view .data-status-near_real_time b { color:#005d45 !important; }
html body #compare-view button[data-buddy-tooltip-title="Risk comparison"] { min-width:44px !important; min-height:44px !important; }

html[data-theme] body #watchlist-view .watchlist-card .asset-identity-copy > strong, html[data-theme] body #watchlist-view .watchlist-card .asset-identity-copy > small, html[data-theme] body #watchlist-view .watchlist-card > .watchlist-card-summary, html[data-theme] body #watchlist-view .watchlist-card dl dt { color:#171613 !important; }
html[data-theme] body #asset-view #asset-read-accordion > .research-snapshot .snapshot-essential-facts .data-status-near_real_time > b { color:#005d45 !important; }

/* Live Discover signal tiles retain their dark instrument surface after API hydration. */
html[data-theme] body #discover-view .discover-signal-strip .mini-metric :where(span,b,strong,small,.info-dot) { color:#fffaf0 !important; }

/* Final acceptance locks: status copy must remain ink-on-paper across every freshness state, and the compare help action must expose its full target. */
html[data-theme] body #asset-view #asset-read-accordion > .research-snapshot .snapshot-essential-facts .data-status > b { color:#171613 !important; }
html[data-theme] body #compare-view .tooltip-actions > button[data-buddy-tooltip-title="Risk comparison"] { position:relative !important; inset:auto !important; z-index:3 !important; flex:0 0 44px !important; inline-size:44px !important; block-size:44px !important; min-inline-size:44px !important; min-block-size:44px !important; width:44px !important; height:44px !important; min-width:44px !important; min-height:44px !important; margin:0 !important; overflow:visible !important; }

@media (min-width:900px) { html[data-theme] body #compare-view > .page-heading { margin-top:120px !important; } }

@media (forced-colors: active) {
  * { forced-color-adjust: auto; }
  :focus-visible { outline: 3px solid Highlight !important; }
}
.radar-filter-row button{color:#2b2118!important}
.re-summary-grid article ul li{color:#2b2118!important}

/* Investor-demo acceptance: late hydrated surfaces keep readable foregrounds. */
html[data-theme] body #command-centre-launcher > kbd,
html[data-theme] body #buddy-launcher :where(small,kbd) { color:#d8d2c5 !important; }
html[data-theme] body .side-nav a[aria-current="page"] span { color:#fffaf0 !important; }

html[data-theme] body #discover-view #live-discovery-briefing > div :where(h2,h3,h4,strong,b,p,small,time,span:not(.label):not(.source-stage-badge)) { color:#f2f2f2 !important; }
html[data-theme] body #discover-view :where(#live-discovery-briefing,.verified-change-event>article,.verified-change-proof) .label { color:#f2f2f2 !important; }
html[data-theme] body #discover-view .verified-change-event > article :where(h2,h3,h4,strong,b,p,small,time,span:not(.label):not(.source-stage-badge)) { color:#f2f2f2 !important; }
html[data-theme] body #discover-view .verified-change-event > article .source-stage-badge { border-color:#f2f2f2 !important; background:#202020 !important; color:#f2f2f2 !important; }

html[data-theme] body #compare-view .compare-hero-card :where(h2,h3,strong,b,p,small,span:not(.label)) { color:#f2f2f2 !important; }
html[data-theme] body #compare-view .compare-hero-card .label { color:#f2f2f2 !important; }
html[data-theme] body #compare-view .re-divergence-list article :where(strong,b,span,p) { color:#f2f2f2 !important; }
html[data-theme] body #compare-view :where(.compare-hero-card,.re-divergence-list>article) { background:#171613 !important; border-color:#686158 !important; }

html[data-theme] body #watchlist-view :where(.research-tip,.re-empty) :where(strong,b,h2,h3) { color:#fffaf0 !important; }
html[data-theme] body #watchlist-view :where(.research-tip,.re-empty) :where(p,small,span) { color:#d8d2c5 !important; }
html[data-theme] body #watchlist-view button[aria-label^="Open "] :where(span,p,small,strong) { color:#171613 !important; }

html[data-theme] body #report-view button[data-report-outcome][aria-pressed="true"] :where(strong,small,span) { color:#171613 !important; }
html[data-theme] body #report-view :where(#report-advanced-settings,.report-export-options) > summary { color:#fffaf0 !important; }
html[data-theme] body #report-view button[data-report-chapter-target][aria-selected="true"],
html[data-theme] body #report-view button[data-report-chapter-target].active { background:#202020 !important; border-color:#ff4d00 !important; }
html[data-theme] body #report-view button[data-report-chapter-target][aria-selected="true"] :where(span,strong),
html[data-theme] body #report-view button[data-report-chapter-target].active :where(span,strong) { color:#f2f2f2 !important; }
html[data-theme] body #report-view #report-chapter-executive > span { color:#d8d2c5 !important; }
html[data-theme] body #watchlist-view > .page-heading > .eyebrow { color:#ff7542 !important; }
