/* Medicaid explainer (public_site/explainers/medicaid.py). Every class starts with .md- */
.md-page .md-chart svg{display:block;width:100%;height:auto;overflow:visible}
.md-page .md-gl{stroke:#e8ecf2;stroke-width:1}
.md-page .md-ax{font-family:'Public Sans',system-ui,sans-serif;font-size:12px;font-weight:700;fill:#6a768b}
.md-page .md-vl{font-family:'Public Sans',system-ui,sans-serif;font-size:12px;font-weight:800;fill:#13213d}
.md-page .md-ln{fill:none;stroke:#2f6cb3;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.md-page .md-ln.est{stroke-dasharray:6 5}
.md-page .md-dot{fill:#fff;stroke:#2f6cb3;stroke-width:2.5}
.md-page .md-dot.est{fill:#eef3fb}

/* eligibility cards: three across on wide screens */
.md-page .md-elig{grid-template-columns:repeat(3,minmax(0,1fr))}
.md-page .md-elig .c{grid-column:auto}
.md-page .md-elig h3{font-size:19px}
@media (max-width:860px){.md-page .md-elig{grid-template-columns:1fr}}

/* who's enrolled */
.md-page .md-groups{list-style:none;padding:0;margin:14px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.md-page .md-groups li{margin:0;background:#fff;border-radius:12px;padding:10px 14px;box-shadow:0 1px 3px rgba(16,24,40,.07);
 display:flex;align-items:baseline;gap:10px;font-size:15px!important;line-height:1.35!important}
.md-page .md-groups b{flex:0 0 5.2em;font-size:18px;font-weight:800;color:#c0392b}
.md-page .md-groups span{color:#33415a}
.md-page .md-n{margin-top:8px!important}
@media (max-width:600px){.md-page .md-groups{grid-template-columns:1fr}}

/* close to home */
.md-page .md-local{margin:22px 0;background:#13213d;color:#fff;border-radius:16px;padding:18px 20px}
.md-page .md-local p{color:#dbe5f5;font-size:16px!important;line-height:1.6!important;margin:12px 0 0}
.md-page .md-local .md-lk{margin:0;font-size:12.5px!important;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#f2c230}
.md-page .md-lnums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.md-page .md-lnums div{background:rgba(255,255,255,.08);border-radius:12px;padding:10px 12px}
.md-page .md-lnums b{display:block;font-size:24px;font-weight:800;color:#fff}
.md-page .md-lnums span{display:block;font-size:13px;line-height:1.4;color:#b9c7de}
@media (max-width:600px){.md-page .md-lnums{grid-template-columns:1fr}}

/* enrolled vs spending */
.md-page .md-rowk{font-size:13px!important;font-weight:800;color:#526079!important;margin:10px 0 4px!important}
.md-page .md-pct span{display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:800;min-width:2.4em}
.md-page .md-keys{list-style:none;padding:0;margin:10px 0 0;display:flex;flex-wrap:wrap;gap:6px 16px}
.md-page .md-keys li{font-size:14px!important;line-height:1.4!important;margin:0}
.md-page .md-keys i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:-1px}

/* federal match cards */
.md-page .md-match{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.md-page .md-mc{background:#fff;border-radius:16px;padding:16px;box-shadow:0 2px 8px rgba(16,24,40,.07)}
.md-page .md-mck{margin:0!important;font-size:16px!important;font-weight:800;color:#13213d}
.md-page .md-mcbar{display:flex;height:34px;border-radius:9px;overflow:hidden;gap:2px;margin-top:10px}
.md-page .md-mcbar span{display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:14px;min-width:2.6em}
.md-page .md-mcbar .f{background:#6b4fa0}.md-page .md-mcbar .s{background:#2f6cb3}
.md-page .md-mcl{display:flex;justify-content:space-between;margin:4px 0 0!important;font-size:12px!important;font-weight:700;color:#6a768b!important}
.md-page .md-mcn{margin:10px 0 0!important;font-size:14.5px!important;line-height:1.5!important;color:#33415a}
@media (max-width:860px){.md-page .md-match{grid-template-columns:1fr}}

/* why it grows */
.md-page .md-why{padding-left:20px;margin:12px 0 0}
.md-page .md-why li{margin:0 0 8px}

/* service areas: paired bars */
.md-page .md-legend{display:flex;gap:16px;margin:0 0 10px!important;font-size:13px!important;font-weight:700;color:#526079!important}
.md-page .md-legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.md-page .md-legend .a,.md-page .md-pair .a{background:#b8c7dd}
.md-page .md-legend .b,.md-page .md-pair .b{background:#c0392b}
.md-page .md-areas{list-style:none;padding:0;margin:0}
.md-page .md-areas li{display:grid;grid-template-columns:minmax(0,14em) minmax(0,1fr) 8.5em;gap:10px;align-items:center;margin:0 0 10px;
 font-size:14.5px!important;line-height:1.3!important}
.md-page .md-pair{display:flex;flex-direction:column;gap:3px}
.md-page .md-pair i{display:block;height:9px;border-radius:5px}
.md-page .md-areas .v{text-align:right;font-size:13.5px;color:#526079}
.md-page .md-areas .v b{color:#13213d}
.md-page .md-areas .v small{display:block;font-weight:800;font-size:12px;color:#c0392b}
@media (max-width:600px){.md-page .md-areas li{grid-template-columns:1fr 8em}.md-page .md-pair{grid-column:1/-1;grid-row:2}}

/* hospital fee flow */
.md-page .md-flow{display:flex;align-items:stretch;gap:8px;margin:20px 0;max-width:none!important}
.md-page .md-flow .st{flex:1 1 0;background:#fff;border-radius:14px;padding:12px;box-shadow:0 2px 8px rgba(16,24,40,.07);border-top:5px solid #1f7a68}
.md-page .md-flow .st b{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#1f7a68;color:#fff;font-size:13px}
.md-page .md-flow .st span{display:block;margin-top:6px;font-size:14px;line-height:1.45;color:#26324a}
.md-page .md-flow>i{align-self:center;font-style:normal;font-weight:800;color:#1f7a68}
@media (max-width:760px){.md-page .md-flow{flex-direction:column}.md-page .md-flow>i{transform:rotate(90deg);text-align:center}}

/* provider fee step-down */
.md-page .md-sub{margin:-4px 0 10px!important;font-size:13.5px!important;color:#526079!important}
.md-page .md-fee li{grid-template-columns:minmax(0,7em) minmax(0,1fr) 5em}
.md-page .md-fee .n small{display:block;font-size:12px;color:#526079;font-weight:600}
.md-page .md-fee .b i{background:#c0392b}
@media (max-width:600px){.md-page .md-fee li{grid-template-columns:1fr 5em}}

/* the pressure tiles */
.md-page .md-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.md-page .md-tiles div{background:#fff;border-radius:14px;padding:14px 16px;box-shadow:0 2px 8px rgba(16,24,40,.07);border-left:5px solid var(--c)}
.md-page .md-tiles b{display:block;font-size:26px;font-weight:800;color:#13213d;letter-spacing:-.01em}
.md-page .md-tiles span{display:block;font-size:14px;line-height:1.45;color:#3b475c;margin-top:2px}
@media (max-width:600px){.md-page .md-tiles{grid-template-columns:1fr}}

/* federal timeline */
.md-page .md-tl{list-style:none;padding:0;margin:18px 0;background:#fff;border-radius:16px;box-shadow:0 2px 8px rgba(16,24,40,.07);padding:6px 18px}
.md-page .md-tl li{display:grid;grid-template-columns:7.5em minmax(0,1fr);gap:14px;padding:12px 0;border-top:1px solid #edf0f5;margin:0}
.md-page .md-tl li:first-child{border-top:0}
.md-page .md-tl .d{font-size:14px;font-weight:800;color:var(--c);padding-top:2px}
.md-page .md-tl b{display:block;font-size:16px;color:#13213d}
.md-page .md-tl p{margin:2px 0 0;font-size:15px!important;line-height:1.5!important;color:#33415a}
@media (max-width:520px){.md-page .md-tl li{grid-template-columns:1fr;gap:2px}}

/* enrollment columns (HTML, so labels stay readable on phones) */
.md-page .md-cols{position:relative;height:230px;margin-top:6px}
.md-page .md-cols ol{list-style:none;margin:0;padding:0;display:flex;gap:6px;height:100%;align-items:flex-end;padding-bottom:22px;box-sizing:border-box}
.md-page .md-col{flex:1 1 0;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;height:100%;margin:0;position:relative;min-width:0}
.md-page .md-col i{display:block;background:#7ea6d8;border-radius:5px 5px 0 0}
.md-page .md-col.peak i{background:#2f6cb3}.md-page .md-col.now i{background:#1f7a68}
.md-page .md-cv{font-size:12px!important;font-weight:800;color:#13213d;text-align:center;line-height:1.2;margin-bottom:3px}
.md-page .md-cx{position:absolute;bottom:-20px;left:-4px;right:-4px;font-size:11.5px!important;font-weight:700;color:#6a768b;text-align:center;white-space:nowrap}
.md-page .md-peak{position:absolute;left:0;right:0;border-top:2px dashed #c0392b;z-index:1;pointer-events:none}
.md-page .md-peak em{position:absolute;right:0;top:-20px;font-style:normal;font-size:12px;font-weight:800;color:#c0392b;background:#fff;padding:0 4px}
@media (max-width:700px){
 .md-page .ta-ch>figure.md-chart{margin-left:0}
 .md-page .md-chart .md-ax,.md-page .md-chart .md-vl{font-size:20px}
 .md-page .md-cols ol{gap:3px}.md-page .md-cv{font-size:10.5px!important}.md-page .md-cx{font-size:10px!important}
}
.md-page .md-cols{margin-top:30px}
.md-page .md-peak em{right:auto;left:0}
.md-page .md-col.peak .md-cv{position:absolute;left:0;right:0;top:auto;bottom:calc(95.6% - 18px);color:#fff;z-index:2}
