/* Study hub colors. The dashboard stylesheets retain their existing layout and data signal colors. */
:root {
  color-scheme:light;
  --wm-paper:#f7f9fd;
  --wm-ink:#172841;
  --wm-muted:#4f6078;
  --wm-blue:#3455c5;
  --wm-blue-deep:#2b4099;
  --wm-highlight:#abc1ff;
  --wm-brand-highlight:#4561bf;
  --wm-focus:#3557c1;
  --wm-dark-control:#253d64;
  --wm-dark-muted:#dce7fb;
  --wm-white:#fff;
  --wm-control-line:#8395b3;
  --wm-sage:var(--wm-blue);
  --wm-line:#cfd8e7;
  --wm-light:#eaf0fa;
  --wm-sans:Arial,Helvetica,sans-serif;
  --ink:var(--wm-ink);
  --muted:var(--wm-muted);
  --sage:var(--wm-sage);
  --line:var(--wm-line);
  --light:var(--wm-light);
  --bg:var(--wm-paper);
  --paper:var(--wm-paper);
  --accent:var(--wm-sage);
  --sidebar:var(--wm-light);
  --font:var(--wm-sans);
  --head:var(--wm-sans);
  --wm-detail-paper:var(--wm-white);
  --wm-detail-border:var(--wm-line);
  --wm-detail-ink:var(--wm-ink);
  --wm-detail-muted:var(--wm-muted);
  --wm-detail-hover:var(--wm-line);
  --wm-detail-tooltip:var(--wm-ink);
}
body {
  background:var(--wm-paper);
  color:var(--wm-ink);
  font-family:var(--wm-sans);
  font-size:16px;
  line-height:1.55;
}
button,input,select,textarea {font-family:var(--wm-sans);}
h1,h2 {font-family:var(--wm-sans);font-weight:400;}
a {text-underline-offset:3px;}
:is(a,button,input,select,textarea,summary):focus-visible {
  outline:2px solid var(--wm-focus);
  outline-offset:4px;
}
.eyebrow {
  color:var(--wm-sage);
  font-family:var(--wm-sans);
  font-size:11px;
  font-weight:600;
  letter-spacing:.15em;
  line-height:1.5;
}
/* Page titles share the Cost of Living scale; compact card titles remain compact. */
body[data-wm-page="home"] .intro h1,
body[data-wm-page="economy"] .hero h1,
body[data-wm-page="housing"] .intro h1,
body[data-wm-page="recession"] .intro h1 {
  font-family:var(--wm-sans);
  font-size:clamp(47px,5.7vw,76px);
  font-weight:400;
  line-height:1.02;
  letter-spacing:-.055em;
  max-width:none;
}
body[data-wm-page="home"] .intro h1 em,
body[data-wm-page="housing"] .intro h1 em {color:var(--wm-sage);}
body[data-wm-page="home"] .intro p {font-size:18px;color:var(--wm-muted);}
body[data-wm-page="home"] .directory h2,
body[data-wm-page="economy"] :is(.section-heading,.outlook-heading) h2,
body[data-wm-page="housing"] :is(.section-head,.brief-section,.changes-heading) h2,
body[data-wm-page="recession"] :is(.section-heading,.changes-heading) h2 {
  font-family:var(--wm-sans);
  font-weight:400;
  font-size:clamp(30px,3.3vw,43px);
  line-height:1.16;
  letter-spacing:-.035em;
}
body[data-wm-page="housing"] :is(.pressure-card,.calc-result),
body[data-wm-page="recession"] .pressure-card,
body[data-wm-page="home"] .feature {background:var(--wm-ink);}
body[data-wm-page="home"] .feature {border-radius:10px;}
body[data-wm-page="housing"] :is(.payment-card,.brief-section),
body[data-wm-page="recession"] .model-card {background:var(--wm-light);border-color:var(--wm-line);border-radius:8px;}
body[data-wm-page="housing"] :is(.indicator-card,.trend-panel,.calculator,.changes-section),
body[data-wm-page="recession"] :is(.indicator-card,.trend-panel,.changes-section,.household-card) {background:var(--wm-white);border-color:var(--wm-line);border-radius:8px;}
body[data-wm-page="housing"] :is(.model-value,.payment-value,.context-item strong,.metric-value),
body[data-wm-page="recession"] :is(.model-value,.context-item strong,.metric-value,.household-values strong) {font-family:var(--wm-sans);font-weight:400;}
body[data-wm-page="housing"] :is(.intro-copy,.section-head p),
body[data-wm-page="recession"] :is(.intro-copy,.section-heading p) {color:var(--wm-muted);font-size:14px;line-height:1.65;}
body[data-wm-page="housing"] :is(.calc-field>div,.trend-select select),
body[data-wm-page="recession"] .select-wrap select {
  background:var(--wm-paper);
  border-color:var(--wm-control-line);
  border-radius:5px;
}
body[data-wm-page="housing"] :is(.refresh-btn,.download-btn),
body[data-wm-page="recession"] :is(.refresh-btn,.download-btn) {background:transparent;border-color:var(--wm-control-line);border-radius:4px;}
body[data-wm-page="housing"] :is(.refresh-btn,.download-btn):hover,
body[data-wm-page="recession"] :is(.refresh-btn,.download-btn):hover {background:var(--wm-light);}

/* Economy retains its denser navigation and chart layout, with the same type and palette. */
body[data-wm-page="economy"] :is(.metric-card,.panel,.loading-panel,.outlook-card,.search) {background:var(--wm-white);border-color:var(--wm-line);border-radius:8px;}
body[data-wm-page="economy"] .sidebar {background:var(--wm-light);border-color:var(--wm-line);}
body[data-wm-page="economy"] .nav-item.active {background:#dae5fb;color:var(--wm-ink);}
body[data-wm-page="economy"] .nav-item:hover {background:var(--wm-light);}
body[data-wm-page="economy"] .hero p {font-size:14px;line-height:1.65;color:var(--wm-muted);}
body[data-wm-page="economy"] .section-heading p {color:var(--wm-muted);font-size:14px;line-height:1.55;}
body[data-wm-page="economy"] :is(.focus-panel,.reading-panel,.dialog-inner) h2 {font-weight:400;}
body[data-wm-page="economy"] .reading-panel {background:var(--wm-light);border-color:var(--wm-line);}
body[data-wm-page="economy"] :is(.metric-value,.chart-summary strong,.detail-values strong) {font-family:var(--wm-sans);font-weight:400;}
body[data-wm-page="economy"] .global-value {font-family:var(--wm-sans);font-weight:500;}
body[data-wm-page="economy"] .outlook-card h3 {font-family:var(--wm-sans);font-weight:400;font-size:25px;letter-spacing:-.025em;}
body[data-wm-page="economy"] .outlook-icon {font-family:var(--wm-sans);}
body[data-wm-page="economy"] .learning-title {font-family:var(--wm-sans);font-weight:400;font-size:23px;}
body[data-wm-page="economy"] .learning-kicker {color:var(--wm-sage);}
body[data-wm-page="economy"] .orange-line {background:var(--wm-sage);}
body[data-wm-page="economy"] .chart-tabs button.selected {color:var(--wm-ink);border-bottom-color:var(--wm-sage);}
body[data-wm-page="economy"] .chart-tabs button:hover {color:var(--wm-ink);}
body[data-wm-page="economy"] .category-filters button.selected {background:var(--wm-ink);}
body[data-wm-page="economy"] :is(.outline-button,.global-jump) {border-color:var(--wm-control-line);background:transparent;border-radius:4px;}
body[data-wm-page="economy"] :is(.outline-button,.global-jump):hover {background:var(--wm-light);}
body[data-wm-page="economy"] :is(.metric-name,.card-category,.global-label,.table-note,.chart-footer,.card-date) {color:var(--wm-muted);}
body[data-wm-page="economy"] .chart-axis {font-family:var(--wm-sans);fill:var(--wm-muted);}
body[data-wm-page="economy"] .search input {font-size:13px;color:var(--wm-ink);}
body[data-wm-page="economy"] .search input::placeholder {color:var(--wm-muted);}
body[data-wm-page="economy"] .range-controls {background:var(--wm-light);border-color:var(--wm-line);}
body[data-wm-page="economy"] .range-controls button.selected {background:var(--wm-white);box-shadow:none;color:var(--wm-ink);}
/* The not-found screen also belongs to the same site. */
body[data-wm-page="not-found"] #message {background:var(--wm-white);border:1px solid var(--wm-line);border-radius:8px;box-shadow:none;max-width:600px;margin:65px auto;padding:30px;}
body[data-wm-page="not-found"] #message h1 {font:400 43px/1.16 var(--wm-sans);color:var(--wm-ink);letter-spacing:-.035em;}
body[data-wm-page="not-found"] #message h2 {color:var(--wm-sage);font:600 12px/1.5 var(--wm-sans);letter-spacing:.15em;}
body[data-wm-page="not-found"] #message h3 {color:var(--wm-ink);}
body[data-wm-page="not-found"] #message p {color:var(--wm-muted);}
@media(max-width:680px) {
  body[data-wm-page="home"] .intro p {font-size:16px;}
  body[data-wm-page="economy"] .hero h1 {font-size:47px;}
  body[data-wm-page="not-found"] #message {margin:35px 20px;padding:24px;}
}

/* Keep the existing dashboard geometry and recolor the remaining fixed surfaces. */
body[data-wm-page="economy"] :is(.outlook-world,.global-view-switch button,.global-annual-controls input) {
  background-color:var(--wm-light);
  border-color:var(--wm-line);
  color:var(--wm-ink);
}
body[data-wm-page="economy"] :is(.category-filters button.selected,.global-view-switch button[aria-pressed="true"]) {
  background-color:var(--wm-blue);
  border-color:var(--wm-blue);
  color:var(--wm-white);
}
body[data-wm-page="economy"] :is(.nav-item,.nav-icon,.nav-label,.workspace-label,.sidebar-bottom p,.reading-intro,.reading-item p,.reading-note,.outlook-card li p,.outlook-world p span) {
  color:var(--wm-muted);
}
body[data-wm-page="economy"] :is(.reading-panel h2,.reading-item strong) { color:var(--wm-ink); }
body[data-wm-page="economy"] .chart-tooltip { background-color:var(--wm-ink); }

body:is([data-wm-page="housing"],[data-wm-page="recession"]) :is(.housing-changes,.filter-tabs,.range-tabs,.chart-data th) {
  background-color:var(--wm-light);
  border-color:var(--wm-line);
}
body:is([data-wm-page="housing"],[data-wm-page="recession"]) :is(.filter-tabs,.range-tabs) button { color:var(--wm-muted); }
body:is([data-wm-page="housing"],[data-wm-page="recession"]) :is(.filter-tabs,.range-tabs) button:hover { background-color:#dae5fb; }
body:is([data-wm-page="housing"],[data-wm-page="recession"]) :is(.filter-tabs,.range-tabs) button.active {
  background-color:var(--wm-white);
  color:var(--wm-blue-deep);
}
body:is([data-wm-page="housing"],[data-wm-page="recession"]) .pressure-card,
body[data-wm-page="housing"] .calc-result { color:var(--wm-white); }
body:is([data-wm-page="housing"],[data-wm-page="recession"]) .pressure-card :is(.pressure-copy p,.eyebrow,.meter-legend > a,.signal-note),
body[data-wm-page="housing"] .calc-result .eyebrow,
body[data-wm-page="housing"] .calc-result > p { color:var(--wm-dark-muted); }
body:is([data-wm-page="housing"],[data-wm-page="recession"]) .context-strip {
  background-color:var(--wm-white);
  border-color:var(--wm-line);
}
body[data-wm-page="recession"] .household-context { background-color:var(--wm-light); }
body:is([data-wm-page="housing"],[data-wm-page="recession"]) .pressure-card .hero-foot {
  border-color:#abc1ff33;
  color:var(--wm-dark-muted);
}
body:is([data-wm-page="housing"],[data-wm-page="recession"]) .wm-signal-preview {
  background-color:var(--wm-light);
  border-color:var(--wm-line);
  color:var(--wm-ink);
}
body:is([data-wm-page="housing"],[data-wm-page="recession"]) .wm-signal-preview:hover { background-color:var(--wm-paper); }
body:is([data-wm-page="housing"],[data-wm-page="recession"]) .wm-signal-preview:focus-visible { outline-color:var(--wm-focus); }
body:is([data-wm-page="housing"],[data-wm-page="recession"]) :is(.wm-signal-preview-description,.wm-signal-preview-reading > span,.wm-signal-preview-foot) { color:var(--wm-muted); }
body:is([data-wm-page="housing"],[data-wm-page="recession"]) .wm-signal-preview-foot > span:last-child { color:var(--wm-blue-deep); }

body[data-wm-page="cost-of-living"] :is(.life-move-result,.life-chart-track,.state-abbr,.rank-track,.category-value .track) {
  background-color:var(--wm-light);
  border-color:var(--wm-line);
}
body[data-wm-page="cost-of-living"] :is(select,input[type="search"],.outline-button,.challenge-choices button,.life-input-wrap) {
  background-color:var(--wm-paper);
  border-color:var(--wm-control-line);
}
body[data-wm-page="cost-of-living"] :is(.outline-button,.challenge-choices button):hover { background-color:var(--wm-light); }
body[data-wm-page="cost-of-living"] .challenge-choices button[aria-pressed="true"] {
  background-color:var(--wm-blue);
  border-color:var(--wm-blue);
  color:var(--wm-white);
}
body[data-wm-page="cost-of-living"] :is(.paycheck-card,.life-monthly-result) { color:var(--wm-white); }
body[data-wm-page="cost-of-living"] .paycheck-card :is(label,.paycheck-kicker,.paycheck-result > span,.paycheck-result > p:first-child,#paycheck-note),
body[data-wm-page="cost-of-living"] .life-monthly-result > p { color:var(--wm-dark-muted); }
body[data-wm-page="cost-of-living"] .paycheck-card select {
  background-color:var(--wm-dark-control);
  border-color:var(--wm-highlight);
  color:var(--wm-white);
}
body[data-wm-page="cost-of-living"] .paycheck-card :is(button,input,select):focus-visible { outline-color:var(--wm-highlight); }
body[data-wm-page="cost-of-living"] :is(.rank-bar,.rank-row:nth-child(even) .rank-bar) { background-color:var(--wm-blue); }
body[data-wm-page="cost-of-living"] :is(.category-value.second .bar,.legend-dot.second,.life-chart-track > span) {
  background-color:#6885ce;
}

/* Recolor shared details and definition bubbles without touching their layout or type. */
:is(#detail-dialog,.wm-indicator-detail)::backdrop { background-color:#17284166; }
:is(#detail-dialog,.wm-indicator-detail) :is(.close-button,.wm-detail-close,#detail-category,.wm-detail-subtitle,.range-controls button,.wm-detail-ranges button),
:is(.wm-detail-source,.wm-detail-data,.wm-detail-data caption,.wm-detail-empty) { color:var(--wm-muted); }
:is(#detail-dialog,.wm-indicator-detail) :is(.close-button,.wm-detail-close):hover { color:var(--wm-blue); }
:is(#detail-dialog,.wm-indicator-detail) :is(.range-controls,.wm-detail-ranges),
:is(.wm-detail-data thead,.wm-detail-empty) {
  background-color:var(--wm-light);
  border-color:var(--wm-line);
}
:is(#detail-dialog,.wm-indicator-detail) :is(.range-controls button.selected,.wm-detail-ranges button[aria-pressed="true"]) {
  background-color:var(--wm-white);
  color:var(--wm-blue-deep);
}
:is(#detail-dialog .chart-tooltip,.wm-indicator-detail .wm-detail-readout) { background-color:var(--wm-ink); }
:is(#detail-dialog .chart-tooltip,.wm-indicator-detail .wm-detail-readout) small { color:var(--wm-dark-muted); }
.wm-detail-chart .wm-detail-grid { stroke:var(--wm-line); }
.wm-detail-chart .wm-detail-series { stroke:var(--wm-blue); }
.wm-detail-chart :is(.wm-detail-series-dot,.wm-detail-cursor-dot) { fill:var(--wm-blue); }
.wm-detail-chart .wm-detail-bar { fill:#6885ce; }
.wm-detail-chart .wm-detail-bar.is-selected { fill:var(--wm-blue-deep); }
.wm-detail-chart .wm-detail-bar-value { fill:var(--wm-ink); }
body[data-wm-page] :is(.learning-bubble,.help-bubble,.budget-tooltip) {
  background-color:var(--wm-white);
  border-color:var(--wm-line);
  color:var(--wm-ink);
}
body[data-wm-page] :is(.learning-title,.help-bubble-title,.budget-tooltip > strong) { color:var(--wm-ink); }
body[data-wm-page] :is(.learning-example,.budget-tooltip .tip-example) {
  background-color:var(--wm-light);
  color:var(--wm-ink);
}
