/* MF CDS Indices (mf-cds-indices.php). Base tokens/classes come from mf_yc_css(); cx tokens add spread colours (wide = red, tight = blue). */
:root{--cx-wide:#c9302c;--cx-widebg:#fbe3e1;--cx-tight:#1f5aa6;--cx-tightbg:#dce8f7;--cx-spk:#2a6bc0;--cx-spk2:#9aa5ae;--cx-dot:#e0362f;--cx-dot2:#101820;
--cx-s1:#2a78d6;--cx-s2:#eb6834;--cx-s3:#1baf7a;--cx-s4:#eda100;--cx-s5:#e87ba4;--cx-s6:#7b5ad6;--cx-s7:#008300;--cx-s8:#6b7785}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--cx-wide:#ff8a84;--cx-widebg:#46282a;--cx-tight:#8fbcf5;--cx-tightbg:#1f2d40;--cx-spk:#6fa2e6;--cx-spk2:#5f6c78;--cx-dot:#ff5a52;--cx-dot2:#e6edf2;
--cx-s1:#3987e5;--cx-s2:#d95926;--cx-s3:#199e70;--cx-s4:#c98500;--cx-s5:#d55181;--cx-s6:#9a7ff0;--cx-s7:#2fa32f;--cx-s8:#93a1ad}}
:root[data-theme=dark]{--cx-wide:#ff8a84;--cx-widebg:#46282a;--cx-tight:#8fbcf5;--cx-tightbg:#1f2d40;--cx-spk:#6fa2e6;--cx-spk2:#5f6c78;--cx-dot:#ff5a52;--cx-dot2:#e6edf2;
--cx-s1:#3987e5;--cx-s2:#d95926;--cx-s3:#199e70;--cx-s4:#c98500;--cx-s5:#d55181;--cx-s6:#9a7ff0;--cx-s7:#2fa32f;--cx-s8:#93a1ad}

/* sparklines */
.cxs{display:block;width:100%;height:58px}
.cxs .l{fill:none;stroke-width:1.4;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.cxs .f{stroke:none;fill-opacity:.1}
.cxs .r{stroke:var(--mu);stroke-dasharray:3 3;stroke-width:1;vector-effect:non-scaling-stroke}
.cxs-a .l{stroke:var(--cx-spk)}.cxs-a .f{fill:var(--cx-spk)}.cxs-a .d{fill:var(--cx-dot)}
.cxs-b .l{stroke:var(--cx-spk2)}.cxs-b .d{fill:var(--cx-dot2)}
.cxs-k{height:34px;margin-top:4px}.cxs-k .l{stroke:#8fbcf5;stroke-width:1.3}.cxs-k .d{fill:#ff6b63}

/* hero: same as /fed-watch/ (h1, answer, meta line, KPI tiles in a 1px grid on the hero background) */
.cxlk{font-size:9px;font-weight:700;letter-spacing:.05em;border:1px solid currentColor;padding:0 4px;margin-left:4px}
.cxkp{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#22303c;border:1px solid #22303c;margin-top:20px}
.cxkp a{background:#060b0f;padding:12px 14px 8px;color:#e8eef2!important;display:grid;grid-template-columns:1fr auto;gap:0 8px;min-width:0;text-decoration:none}
.cxkp a:hover{background:#0d141a}
.cxkp small{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#93a1ad;grid-column:1/-1}
.cxkp strong{font-size:24px;color:#fff;font-variant-numeric:tabular-nums;line-height:1.25}
.cxkp strong i{font-style:normal;font-size:12px;color:#93a1ad;font-weight:400;margin-left:3px}
.cxkp .ch{font-size:12px;color:#93a1ad;font-variant-numeric:tabular-nums;align-self:center;text-align:right}
.cxkp .ch .cu{color:#ff9a95}.cxkp .ch .cd{color:#8fbcf5}
.cxkp .cxs{grid-column:1/-1}
@media(max-width:860px){.cxkp{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.cxkp strong{font-size:20px}}

/* layout bits */
/* section header: h2 + lead on the left, actions (toggle, CSV, embed) on the right; h2 stays the first child so mf_rc_restyle adds it to the sticky nav */
.cxsh{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:end}
.cxsh>h2,.cxsh>.lead{grid-column:1}
.cxact{grid-column:2;grid-row:1/span 2;display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin-bottom:16px}
@media(max-width:760px){.cxsh{grid-template-columns:1fr}.cxact{grid-column:1;grid-row:auto;justify-content:flex-start}}
.cxtwo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
/* two h2 + body pairs side by side (h2 first, for the sticky nav) */
.cxtwo.cxpair{grid-template-rows:auto auto;grid-auto-flow:column;gap:0 24px}
.cxpair>h2{margin-bottom:10px}
@media(max-width:900px){.cxtwo{grid-template-columns:1fr}.cxtwo.cxpair{grid-template-rows:none;grid-auto-flow:row}.cxpair>h2+div{margin-bottom:22px}}
.mfyc .ctl,.emb .ctl{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--ln);background:var(--bg2)}
.mfyc .ctl .lb{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--mu)}
.mfyc .seg{display:inline-flex;flex-wrap:wrap;border:1px solid var(--ln)}
.mfyc .seg button{border:0;background:var(--bg);color:var(--mu);font:600 12px system-ui,sans-serif;padding:5px 11px;cursor:pointer}
.mfyc .seg button+button{border-left:1px solid var(--ln)}
.mfyc .seg button[aria-pressed=true]{background:var(--ink);color:var(--bg)}
.cxchips{display:flex;flex-wrap:wrap;gap:6px}
.cxchips .chip{border:1px solid var(--ln);background:var(--bg);color:var(--ink);font:600 12px system-ui,sans-serif;padding:4px 9px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.cxchips .chip i{width:10px;height:3px;display:inline-block}
.cxchips .chip[aria-pressed=false]{color:var(--mu)}.cxchips .chip[aria-pressed=false] i{background:var(--ln)!important}
.sm{font-size:12px}

/* board */
.cxbd{min-width:860px;table-layout:fixed}
.mfyc .cxbd th,.mfyc .cxbd td,.emb .cxbd th,.emb .cxbd td{padding:6px;border-top:0;border-bottom:1px solid var(--ln);vertical-align:middle;text-align:left;background:transparent}
.cxbd thead th{font-size:13px!important;font-weight:700;text-transform:none!important;letter-spacing:0!important;color:var(--ink)!important;padding:8px!important;border-bottom:2px solid var(--ink)!important}
.cxbd thead th a{color:var(--ink)!important}.cxbd thead th a:hover{color:var(--teal)!important}
.cxbd .lv{display:block;font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;margin-top:2px}
.cxbd .lv i{font-style:normal;font-size:11px;color:var(--mu);font-weight:400}
.cxbd .rh{width:72px;font-size:13px!important;font-weight:600;color:var(--mu)!important}
.cxbd td{border-left:1px dotted var(--ln)!important}
.st-tight{background:var(--cx-tightbg)!important}.st-normal{background:var(--bg2)!important}.st-wide{background:var(--cx-widebg)!important}.st-stress{background:var(--cx-widebg)!important;box-shadow:inset 0 3px 0 var(--cx-wide)}
.pill{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:0 5px;margin-top:3px;border:1px solid currentColor}
.st-wide .pill,.st-stress .pill{color:var(--cx-wide)}.st-tight .pill{color:var(--cx-tight)}.st-normal .pill{color:var(--mu)}
.cxlgd{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:var(--mu);margin-top:10px}
.cxlgd span{display:inline-flex;align-items:center;gap:6px}
.cxlgd b{display:inline-block;width:12px;height:12px;border:1px solid var(--ln)}

/* tables */
.cxdt{min-width:900px}
.cxdt.cxst{min-width:0}
.mfyc .cxdt td,.emb .cxdt td{white-space:nowrap}
.cxdt td a{color:var(--ink)!important;font-weight:600}.cxdt td a:hover{color:var(--teal)!important}
.cxdt td small{display:block;color:var(--mu);font-size:11px;font-weight:400}
.cxdt th[aria-sort=descending]::after{content:" ▼"}.cxdt th[aria-sort=ascending]::after{content:" ▲"}
.cu{color:var(--cx-wide)}.cd{color:var(--cx-tight)}
.emb .cxdt{min-width:420px}
.cxrng{display:inline-block;width:110px;height:8px;background:var(--bg2);border:1px solid var(--ln);position:relative;vertical-align:middle}
.cxrng b{position:absolute;top:-4px;width:3px;height:14px;background:var(--ink)}
.cxpct{display:inline-block;min-width:44px;padding:1px 6px;font-weight:700;text-align:center}
.cxgate{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;background:var(--bg2);border-top:1px solid var(--ln);font-size:14px}
.cxgate .btn.p{padding:9px 20px;font-size:14px}

/* chart */
.cxchart{position:relative;padding:8px 4px 4px}
.cxchart svg{display:block;width:100%;height:auto}
.cxchart .ax{font:11px system-ui,sans-serif;fill:var(--mu)}
.cxchart .gl{stroke:var(--ln);stroke-width:1}
.cxchart .bl{stroke:var(--mu);stroke-width:1}
.cxchart .rf{stroke:var(--mu);stroke-dasharray:4 4}
.cxchart .hx{stroke:var(--mu);stroke-width:1}
.cxchart .tip{position:absolute;pointer-events:none;background:var(--bg);color:var(--ink);border:1px solid var(--ln);box-shadow:0 4px 14px rgba(0,0,0,.12);font-size:12px;padding:6px 8px;min-width:150px;font-variant-numeric:tabular-nums}
.cxchart .tip div{display:flex;justify-content:space-between;gap:12px}
.cxchart .tip i{display:inline-block;width:8px;height:8px;margin-right:5px}

/* ladder */
.cxld{display:grid;gap:10px}
.cxld .lrow{display:grid;grid-template-columns:150px 1fr 140px;gap:12px;align-items:center;font-size:13px}
.cxld .nm{font-weight:600;color:var(--ink)!important}
.cxld .tr{position:relative;height:22px;background:linear-gradient(90deg,var(--cx-tightbg),var(--bg2) 50%,var(--cx-widebg))}
.cxld .av{position:absolute;top:0;bottom:0;width:1px;background:var(--mu)}
.cxld .mk{position:absolute;top:-3px;width:4px;height:28px;background:var(--ink)}
.cxld .lo,.cxld .hi{position:absolute;top:3px;font-size:11px;color:var(--mu);font-variant-numeric:tabular-nums}
.cxld .lo{left:4px}.cxld .hi{right:4px}
.cxld .rt{font-variant-numeric:tabular-nums;color:var(--mu);text-align:right}
@media(max-width:620px){.cxld .lrow{grid-template-columns:1fr}.cxld .rt{text-align:left}}

/* sign-up + notes */
.cxpro{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.cxpro h3{margin:0 0 6px;font-size:16px}.cxpro p{margin:0;color:var(--mu);font-size:14px}
@media(max-width:860px){.cxpro{grid-template-columns:1fr}}
.cxcta{margin-top:18px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.cxnotes li{color:var(--mu);font-size:14px;margin-bottom:6px}

/* download data (same look as the ISM pages' "Get the data as" block) */
.cxdl .opts{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.cxdl .opts .mu{font-size:12px;font-weight:600;margin-right:4px}
.cxdl .opts button{background:var(--bg);border:1px solid var(--ln);padding:5px 11px;font:600 12px system-ui,sans-serif;color:var(--mu);cursor:pointer}
.cxdl .opts button[aria-pressed=true]{border-color:var(--teal);color:var(--teal2,var(--teal))}
.cxdl pre{margin:10px 0 12px;padding:12px 14px;background:var(--bg2);border:1px solid var(--ln);color:var(--ink);font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;word-break:break-all}
.cxdl .row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0 0 14px}
.cxdl .card+.row{margin:12px 0 0}
.cxdl .btn.p{padding:10px 22px;font-size:14px}
.cxyr{min-width:760px}.cxyr.cxst{min-width:0}
.mfyc .cxyr td,.mfyc .cxyr th{text-align:right;white-space:nowrap}
.mfyc .cxyr td:first-child,.mfyc .cxyr th:first-child{text-align:left}
.cxdlnote{display:flex;gap:16px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin:14px 0 0}
.cxdlnote>div{flex:1 1 280px}
.cxdl>.sm.mu,.cxdl+.sm{margin-top:12px}

/* embeds */
.cxemb .sc{overflow:auto}
.cxemh{margin:0 0 4px;font-size:14px}.cxemh b{font-size:18px}

/* 1.0.6 Fed Watch hero details */
.hero.cxhero .w>h1{padding-right:0}
.cxhero .crumb{padding:0;margin:0 0 10px;font-size:12px;color:#93a1ad}
.cxhero .ans b{color:#fff;font-weight:700}
.cxkp a.hl{box-shadow:inset 0 3px 0 #3ee0c8}
.cxhero .kpi.hl{box-shadow:inset 0 3px 0 #3ee0c8}
.cxhero .kpi b.up{color:#8fbcf5}.cxhero .kpi b.dn{color:#ff9a95}
