/* PREVISION DESIGN SYSTEM 0.5
   A shared source of truth for every Prevision document and analysis viewer.
   Background colour = material type. Accent colour = change in investment opinion.
   Never use an opinion colour as the background for an original document. */
:root {
 --pv-document-bg:#FAD1DA; --pv-document-line:#C8788D; --pv-document-ink:#703848;
 --pv-analysis-bg:#C6ACF8; --pv-analysis-line:#7353B2; --pv-analysis-ink:#38236E;
 --pv-preview-bg:#D3D1CB; --pv-preview-line:#777970; --pv-preview-ink:#30383A;
 --pv-up:#237A60; --pv-up-bg:#E8F5EE; --pv-up-line:#B6DCCB;
 --pv-down:#B44E52; --pv-down-bg:#FBECED; --pv-down-line:#EAC2C5;
 --pv-mixed:#916512; --pv-mixed-bg:#FFF5DF; --pv-mixed-line:#E8D4AA;
 --pv-same:#376A82; --pv-same-bg:#EAF2F5; --pv-same-line:#C0D4E0;
 --pv-initial:#5C6964; --pv-initial-bg:#F0F2F0; --pv-initial-line:#D7DDDA;
}
/* Material blocks always have both a colour and a written label. */
.pv-material-document {background:var(--pv-document-bg)!important;border-color:var(--pv-document-line)!important}
.pv-material-analysis {background:var(--pv-analysis-bg)!important;border-color:var(--pv-analysis-line)!important}
.pv-material-preview {background:var(--pv-preview-bg)!important;border-color:var(--pv-preview-line)!important}
.pv-material-heading {font-size:.75rem;line-height:1.35;font-weight:800;letter-spacing:.035em;text-transform:uppercase;margin:0 0 6px}
.pv-material-document .pv-material-heading{color:var(--pv-document-ink)}
.pv-material-analysis .pv-material-heading{color:var(--pv-analysis-ink)}
.pv-material-preview .pv-material-heading{color:var(--pv-preview-ink)}
/* Compact identical legends across all the views. */
.pv-legend {display:flex;flex-wrap:wrap;align-items:center;gap:8px 17px;font:12px/1.4 system-ui,Arial,sans-serif;color:#4f606b;margin:10px 0 13px}
.pv-legend-title{font-weight:780;color:#344651;margin-right:1px}
.pv-legend-item{display:inline-flex;gap:6px;align-items:center;white-space:nowrap}
.pv-legend-square{width:13px;height:13px;flex:none;border-radius:3px;border:1px solid}
.pv-legend-square.document{background:var(--pv-document-bg);border-color:var(--pv-document-line)}
.pv-legend-square.analysis{background:var(--pv-analysis-bg);border-color:var(--pv-analysis-line)}
.pv-legend-square.preview{background:var(--pv-preview-bg);border-color:var(--pv-preview-line)}
.pv-legend-dot{height:11px;width:11px;flex:none;border-radius:4px;background:var(--pv-initial);}
.pv-legend-dot.more_favourable{background:var(--pv-up)}
.pv-legend-dot.less_favourable{background:var(--pv-down)}
.pv-legend-dot.mixed{background:var(--pv-mixed)}
.pv-legend-dot.unchanged{background:var(--pv-same)}
.pv-legend-dot.initial,.pv-legend-dot.pending{background:var(--pv-initial)}
.pv-eval-tag{display:inline-flex;align-items:center;border:1px solid var(--pv-initial-line);border-radius:6px;padding:3px 8px;font-size:.75rem;font-weight:750;line-height:1.4;background:var(--pv-initial-bg);color:var(--pv-initial)}
.pv-eval-tag.more_favourable{background:var(--pv-up-bg);border-color:var(--pv-up-line);color:#1C694F}
.pv-eval-tag.less_favourable{background:var(--pv-down-bg);border-color:var(--pv-down-line);color:#963E44}
.pv-eval-tag.mixed{background:var(--pv-mixed-bg);border-color:var(--pv-mixed-line);color:#79530F}
.pv-eval-tag.unchanged{background:var(--pv-same-bg);border-color:var(--pv-same-line);color:#2A6077}
.pv-eval-tag.initial,.pv-eval-tag.pending{background:var(--pv-initial-bg);border-color:var(--pv-initial-line);color:var(--pv-initial)}
.pv-eval-accent.more_favourable{border-left-color:var(--pv-up)!important}
.pv-eval-accent.less_favourable{border-left-color:var(--pv-down)!important}
.pv-eval-accent.mixed{border-left-color:var(--pv-mixed)!important}
.pv-eval-accent.unchanged{border-left-color:var(--pv-same)!important}
.pv-eval-accent.initial,.pv-eval-accent.pending{border-left-color:var(--pv-initial)!important}
.pv-provenance-note{font-size:.78rem;color:#52616d;margin:5px 0 8px}
@media print{.pv-legend{break-inside:avoid}.pv-material-document,.pv-material-analysis,.pv-material-preview{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* PREVISION MATERIAL CONTRAST PATCH 0.8
   Material backgrounds are visibly stronger at typical browser zoom levels.
   Source type remains distinct from investment judgement colours. */
.pv-legend-square{width:17px;height:17px;border-width:2px}
.pv-material-document,.pv-material-analysis,.pv-material-preview{border-width:2px}
/* The document text is pink too, rather than a large white inset. */
.workspace .document-card pre{background:#FCE7EC!important;border:1px solid var(--pv-document-line)!important}
.document-card .source-foot{background:#F6C3CE!important}
/* Separate source and analysis blocks stay clear even when nested. */
.summary-cell.evidence,.details-panel .columns.document-full{background:var(--pv-document-bg)!important;border-color:var(--pv-document-line)!important}
.summary-cell.analysis,.details-panel .columns.analysis-full{background:var(--pv-analysis-bg)!important;border-color:var(--pv-analysis-line)!important}
.panel.assessment,.panel.investment,.panel.changed-panel{background:var(--pv-analysis-bg)!important;border-color:var(--pv-analysis-line)!important}
@media print{.pv-material-document,.pv-material-analysis,.pv-material-preview,.workspace .document-card,.workspace .summary-card,.workspace .judgement-card{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
