/* Medicaid Work Rules: site-specific styles (base.css provides the design system). */
.tool fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tool legend { font-size: 20px; font-weight: 700; padding: 0; margin-bottom: 12px; }
.tool legend:focus { outline: none; }
.mw-progress { font-size: 14px; color: var(--ink-3); margin: 0 0 6px; font-weight: 600; }
.mw-sub { font-size: 16px; font-weight: 700; margin: 18px 0 8px; }
.mw-checks { display: grid; gap: 10px; margin: 0; }
.mw-checks .hint { display: block; font-size: 13px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.mw-radios { display: grid; gap: 8px; }
.mw-radios label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #cdd2da; border-radius: 9px; padding: 10px 12px; background: #fff; cursor: pointer; font-weight: 500; }
.mw-radios input { margin-top: 5px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.mw-radios label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff); }
.mw-radios .hint { display: block; font-size: 13px; color: var(--ink-3); font-weight: 400; }
.mw-sublist { margin-top: 10px; padding: 12px; background: var(--soft); border-radius: 9px; }
.mw-sublist[hidden] { display: none; }
.result h4 { font-size: 16px; margin: 16px 0 6px; }
.result ul { padding-left: 20px; margin-bottom: 10px; }
.mw-note { font-size: 15px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.mw-fine { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; }
.mw-state-box { background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 14px; }
.mw-state-box h4 { margin-top: 0; }
.mw-state-box ul { list-style: none; padding: 0; margin: 0 0 8px; }
.mw-state-box li { margin-bottom: 4px; }
.mw-state-box p { margin: 0; }
.mw-timeline { list-style: none; padding: 0; margin: 12px 0 20px; border-left: 3px solid color-mix(in srgb, var(--accent) 35%, #fff); }
.mw-timeline li { position: relative; padding: 0 0 12px 18px; margin: 0; }
.mw-timeline li::before { content: ""; position: absolute; left: -8px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.mw-contacts { list-style: none; padding: 0; }
.mw-contacts li { padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.mw-contacts li:last-child { border-bottom: 0; }
.mw-contacts a[href^="tel:"] { font-weight: 700; white-space: nowrap; }
.mw-steps { counter-reset: s; list-style: none; padding: 0; }
.mw-steps > li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 16px; }
.mw-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.mw-states-table td:first-child { font-weight: 600; white-space: nowrap; }
.mw-states-table td { font-size: 14.5px; }
@media (max-width: 640px) {
  .mw-states-table th:nth-child(4), .mw-states-table td:nth-child(4) { display: none; }
  .tool legend { font-size: 18px; }
}
@media (max-width: 640px) {
  .keyfacts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .keyfact { padding: 10px; }
  .keyfact .v { font-size: 19px; }
  .keyfact .k { font-size: 13px; }
}
.keyfact .v a[href^="tel:"] { white-space: nowrap; text-decoration: none; }
@media (max-width: 640px) { .keyfact .v a[href^="tel:"] { font-size: 16px; } }
