/* fix6.css — approved audit fixes (10 Nov 2026).
   Linked after each page stylesheet by approved-additions/build.py.
   Not linked from the homepage (Yair is editing that page; its HTML and the
   CSS it loads stay as they are on main). Search uses its own compact footer,
   so the footer rules here do not add a link there.
*/

/* -------------------------------------------------------------------------- */
/* 6. Unify rectangular CTA radius to 4px                                     */
/*    Leave pills (facility Call, chips, logo mark) alone.                    */
/* -------------------------------------------------------------------------- */
html body button.bp-button,
html body .bp-button,
html body a.admin-button,
html body a.admin-secondary,
html body .admin-button,
html body .admin-secondary,
html body a.cta,
html body button.cta,
html body input.bp-button,
html body input[type="submit"].bp-button,
html body main.ct-page .ct-form .bp-button,
html body main.ct-page .ct-form button[type="submit"],
html body main.qz-page .qz-form .bp-button,
html body main.qz-page .qz-form button[type="submit"] {
  border-radius: 4px !important;
}

/* -------------------------------------------------------------------------- */
/* 5. Pricing: quiet “For owners” link under the hero CTAs                    */
/* -------------------------------------------------------------------------- */
html body .page .intro .fo-discover,
html body section.intro .fo-discover {
  margin: 16px auto 0 !important;
  max-width: none !important;
  text-align: center !important;
  width: 100% !important;
  flex-basis: 100% !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  font-family: Jost, system-ui, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}
html body section.intro .fo-discover a {
  color: #1f3a2e !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* -------------------------------------------------------------------------- */
/* 6. Medicaid quiz: sibling link to the level-of-care quiz                   */
/* -------------------------------------------------------------------------- */
html body .qz-page .qz-also,
html body main .hero .qz-also {
  margin: 12px 0 0 !important;
  font-family: Jost, system-ui, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
  color: #5d6660 !important;
  text-align: inherit !important;
}
html body .qz-page .qz-also a {
  color: #1f3a2e !important;
}

/* -------------------------------------------------------------------------- */
/* 3 + 6. Mobile-only layout / tap targets (desktop unchanged)                */
/* -------------------------------------------------------------------------- */
@media (max-width: 720px) {

  /* Footer links: 44px tap height. Desktop typography unchanged. */
  html body .cp-footer .v4footcol a, .v4footcol button.cp-go,
  html body footer.v4footer .v4footcol a, .v4footcol button.cp-go,
  html body footer .v4footcol a, .v4footcol button.cp-go {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }

  /* Breadcrumbs: 44px tap height; facility name wraps instead of ellipsizing */
  html body nav.bp-crumbs a,
  html body nav.fx-crumbs a,
  html body .bp-crumbs a,
  html body .fx-crumbs a,
  html body .d-crumbs a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  html body .d-crumbs,
  html body nav.fx-crumbs.d-crumbs,
  html body.fx .d-crumbs {
    flex-wrap: wrap !important;
    white-space: normal !important;
    overflow: visible !important;
  }
  html body .d-crumbs > * {
    flex-shrink: 1 !important;
    white-space: normal !important;
  }
  html body .d-crumbs > span:last-child,
  html body nav.d-crumbs > span:last-child {
    flex-shrink: 1 !important;
    flex-basis: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
  }

  /* FAQ topic jumps — already 44px in some rules; force it if overridden */
  html body .faq-topics a,
  html body main.faq-page .faq-topics a,
  html body main.faq-page.faq-page .faq-topics a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 10px 8px !important;
    box-sizing: border-box !important;
  }


  /* Search: View home is a 15px text link; make it a 44px target */
  html body.page-search a.view,
  html body .c-act a.view {
    min-height: 44px !important;
    min-width: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 10px 4px 10px 0 !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
  }

  /* Search: show the same bottom rail as other pages; keep list/map clear of it */
  html body.page-search .consistent-rail {
    display: flex !important;
  }
  html body.page-search {
    padding-bottom: 82px !important;
  }
  html body.page-search #map,
  html body.page-search .map,
  html body.page-search .map-wrap,
  html body.page-search #mapPane,
  html body.page-search .leaflet-container,
  html body.page-search .maplibregl-map {
    /* Leave room so the rail does not sit on the map attribution / legend */
    margin-bottom: 0 !important;
  }
  html body.page-search .consistent-rail {
    z-index: 80 !important;
  }
}

/* Rail appearance on search (search HTML does not include the start-page rail CSS).
   Hidden from 1000px up, same as the rest of the site. */
@media (max-width: 999px) {
  html body.page-search .consistent-rail {
    position: fixed !important;
    top: auto !important;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(390px, calc(100% - 18px)) !important;
    height: auto !important;
    z-index: 80 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    gap: 5px !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: stretch !important;
    font-family: "DM Sans", Arial, sans-serif !important;
  }
  html body.page-search .consistent-rail .rail-mark {
    display: none !important;
  }
  html body.page-search .consistent-rail a {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    flex: 1 1 0% !important;
    min-height: 52px !important;
    padding: 5px 1px !important;
    margin: 0 !important;
    border-radius: 14px !important;
    background: rgb(255, 254, 250) !important;
    border: 1px solid rgb(219, 228, 215) !important;
    box-shadow: rgba(39, 67, 44, 0.14) 0px 7px 18px !important;
    text-decoration: none !important;
    color: rgb(45, 86, 60) !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
  }
  html body.page-search .consistent-rail a:hover,
  html body.page-search .consistent-rail a:focus-visible {
    background: rgb(242, 248, 239) !important;
    border-color: rgb(185, 208, 183) !important;
    transform: none !important;
  }
  html body.page-search .consistent-rail a[aria-current="page"],
  html body.page-search .consistent-rail a.is-open {
    background: rgb(229, 239, 227) !important;
    border-color: rgb(185, 208, 183) !important;
    color: rgb(45, 86, 60) !important;
  }
  html body.page-search .consistent-rail .rail-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 19px !important;
    height: 19px !important;
  }
  html body.page-search .consistent-rail svg {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    flex: 0 0 auto !important;
  }
}
@media (min-width: 1000px) {
  html body.page-search .consistent-rail {
    display: none !important;
  }
}


/* Operating costs: caption width follows the scrolling table and clips on mobile.
   The visible heading is a sibling of the table, like .nc-note, so it uses the
   wrapper width and wraps. The original <caption> is kept for assistive tech. */
html body .md-tablewrap .oc-cap {
  font-family: Jost, system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 24.8px !important;
  color: #2f5443 !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 0 14px !important;
  max-width: 100% !important;
  white-space: normal !important;
  box-sizing: border-box !important;
}
html body .md-tablewrap.oc-fixed table caption {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

