/* Wealth Compare tab (research/pages/wealth_compare.py). The stage, tiles and cards are research.css's own (#rp); this
   file only sets the two body.rp tokens research.css reads (this page keeps body.ds) and lays out the form and the stage
   hero's heading (an h2 here: the page's one h1 is the Wealth title). Scoped under .ds #rp.wc. */
.ds #rp.wc{--shadow:0 1px 2px rgb(15 23 42/.06),0 8px 24px rgb(15 23 42/.06);--t-price:44px}
:root[data-theme=dark] .ds #rp.wc{--shadow:0 1px 0 rgb(255 255 255/.04) inset}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .ds #rp.wc{--shadow:0 1px 0 rgb(255 255 255/.04) inset}}
.ds #rp.wc .wc-form{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end;margin:var(--s4) 0}
.ds #rp.wc .wc-form .fld{display:grid;gap:4px;min-width:150px;grid-template-columns:minmax(0,1fr)}.ds #rp.wc .wc-form select{max-width:100%}  /* a long episode name never makes a phone scroll sideways */
.ds #rp.wc .flab{font-size:var(--t-xs);color:var(--muted);font-weight:500}
.ds #rp.wc .wc-set{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center}
.ds #rp.wc .wc-set legend{padding:0;margin-bottom:4px}
.ds #rp.wc .wc-box{display:inline-flex;align-items:center;gap:6px;min-height:var(--tap,44px)}
.ds #rp.wc .wc-why{flex-basis:100%;margin:0;padding-left:18px}
.ds #rp.wc .rp-stage .wc-name{font:700 var(--t-stage-name)/1.15 var(--f-brand);letter-spacing:-.02em;margin:0;color:var(--ink)}
.ds #rp.wc .rp-stage .ahead{grid-template-areas:"id price price" "id when pill"}
.ds #rp.wc .rp-stage .wc-pill{grid-area:pill;justify-self:end}
.ds #rp.wc.rt .rp-stage .ahead{grid-template-areas:"id price acts" "id when pill"}  /* mock 4: a ratio's ⋯ top right, the pill under it, as on gold */
.ds #rp.wc .rp-stage .chart-card{background:none;border:0;box-shadow:none;padding:0;margin:var(--s4) 0 0;color:var(--ink)}
.ds #rp.wc .rp-stage .chart-card h2{font-size:var(--t-base);margin:0;color:var(--ink)}
.ds #rp.wc .wc-chart .chart-legend .sw{display:inline-block;width:14px;height:3px;border-radius:var(--r-sm);background:var(--c)}
.ds #rp.wc .wc-chart .chart-legend .sw.dash{background:repeating-linear-gradient(90deg,var(--c) 0 5px,transparent 5px 8px)}
.ds #rp.wc .cplot{height:420px;margin-top:8px}  /* amendment 1 sizes, as workspace.css gives its charts: 420 px, 300 px on phones */
.ds #rp.wc .rp-stage .chart-legend{color:var(--muted)}
.ds #rp.wc .rp-stage .rq-cs,.ds #rp.wc .rp-stage .cap{color:var(--muted)}
.ds #rp.wc .wc-tiles{grid-template-columns:repeat(var(--n,4),minmax(0,1fr))}
.ds #rp.wc .wc-needs,.ds #rp.wc .wc-total,.ds #rp.wc .wc-count{font-size:var(--t-base);margin:var(--s4) 0}
.ds #rp.wc .wc-past{font-weight:600;margin:0 0 8px}
.ds #rp.wc .wc-under{margin:0 0 var(--s5)}
@media (max-width:599px){.ds #rp.wc .cplot{height:300px}}
@media (max-width:760px){.ds #rp.wc .wc-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ds #rp.wc .rp-stage .ahead{grid-template-columns:1fr;grid-template-areas:"id" "price" "when" "pill"}
 .ds #rp.wc .rp-stage .ahprice,.ds #rp.wc .rp-stage .wc-pill{justify-self:start}
 .ds #rp.wc.rt .rp-stage .ahead{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"id acts" "price price" "when when" "pill pill"}
 .ds #rp.wc .wc-form .fld{min-width:0;flex:1 1 140px}}
#rp.wc .rows .t1{min-width:0;flex-wrap:wrap}#rp.wc .rows .name{white-space:normal;overflow:visible;overflow-wrap:anywhere}  /* a ratio's unit line wraps on a phone, never cut (layout gate) */
/* Job 2.4 ratios */
/* The Ratios list as one card per ratio (mock 45). Each card is one link; the bar is the last 200 weeks. */
.ds #rp.wc .rt-intro{font-size:var(--t-lg);line-height:1.5;margin:0 0 var(--s2);max-width:var(--measure);color:var(--sub)}
/* WO29: the Ratios list's heading is the page title, as big as every other page's (etfs.html) */
#rp.wc .rt-list>.sect-h h2{font-size:var(--t-4xl);line-height:1.05;letter-spacing:-.03em;font-weight:700}
.ds #rp.wc .rt-note{font-size:var(--t-xs);color:var(--muted);margin:0 0 var(--s4)}
.ds #rp.wc .rt-cards{list-style:none;margin:0;padding:0;display:grid;gap:var(--s4);grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr))}
.ds #rp.wc .rt-card{display:flex;flex-direction:column;gap:var(--s3);height:100%;box-sizing:border-box;padding:var(--s4) var(--s4) var(--s5);background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);color:var(--ink);text-decoration:none}
.ds #rp.wc a.rt-card:hover{border-color:var(--line-strong)}
.ds #rp.wc a.rt-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--r-lg)}
.ds #rp.wc .rt-top{display:flex;justify-content:space-between;align-items:baseline;gap:var(--s3)}
.ds #rp.wc .rt-name{font-size:var(--t-lg);font-weight:700;min-width:0}
.ds #rp.wc .rt-v{font-size:var(--t-2xl);font-weight:700;white-space:nowrap}
.ds #rp.wc .rt-what,.ds #rp.wc .rt-mean{font-size:var(--t-base);line-height:1.45}
.ds #rp.wc .rt-mean{font-weight:500}
.ds #rp.wc .rt-bar{position:relative;display:block;height:8px;margin:var(--s3) 6px 0;border-radius:var(--r-pill);background:color-mix(in srgb,var(--ink) 12%,var(--panel))}  /* seen in both themes */
.ds #rp.wc .rt-avg{position:absolute;left:var(--x);top:-6px;width:2px;height:20px;margin-left:-1px;background:var(--ink)}
.ds #rp.wc .rt-dot{position:absolute;left:var(--x);top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:var(--below)}
.ds #rp.wc .rt-scale{display:flex;justify-content:space-between;gap:var(--s2);font-size:var(--t-xs);color:var(--muted)}
.ds #rp.wc .rt-tag{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2) var(--s3)}
.ds #rp.wc .rt-since,.ds #rp.wc .rt-trend,.ds #rp.wc .rt-date,.ds #rp.wc .rt-bnote{font-size:var(--t-xs);color:var(--muted);margin:0}
.ds #rp.wc .rt-date,.ds #rp.wc .rt-bnote{margin-top:calc(-1 * var(--s2))}  /* each sits close under the line it belongs to */

/* WO29 (Astra's Money mocks): the page title and its line above the chart panel, the one figure at the right */
#rp .wc-head{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:8px 24px;margin:var(--s4) 0}
#rp .wc-head h1{font:700 var(--t-4xl)/1.05 var(--f-body);letter-spacing:-.03em;margin:0}
#rp .wc-head .wm-when{margin:8px 0 0;font-size:var(--t-xl);color:var(--sub);max-width:60ch}
#rp .wc-head .wm-big{font:700 var(--t-3xl)/1 var(--f-body);margin:0;text-align:right}
#rp .wc-head .st-when{margin:4px 0 0;color:var(--sub);text-align:right;font-size:var(--t-xs)}
@media (max-width:599px){#rp .wc-head .wm-when{font-size:var(--t-base)}#rp .wc-head .wm-big{font-size:var(--t-2xl);text-align:left}#rp .wc-head .st-when{text-align:left}}
