/* /services/medical-billing — pieces the shared service layout does not have.
   Built on cl-brand.css tokens; navy / teal / mint only. */

/* ---- hero: homepage hero with breadcrumbs and a trust row ---------------- */
.cl-mb-hero .cl-crumbs { margin-bottom: clamp(16px, 1.6vw, 24px); }
/* The portrait is wider than the homepage one (0.851 of the disc at 164%
   height), so it is re-centred with the same margin technique. */
.cl-mb-hero .cl-hero__person img { margin-left: calc(var(--disc) * -0.4255); }
.cl-mb-hero .cl-hero__chip--c { bottom: 27%; }

.cl-mb-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: clamp(24px, 2.6vw, 40px) 0 0;
  padding: clamp(18px, 2vw, 26px) 0 0;
  border-top: 1px solid var(--cl-line);
  list-style: none;
  max-width: 36em;
}
.cl-mb-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--color-heading);
}
.cl-mb-trust svg,
.cl-mb-specs svg { flex: none; width: 20px; height: 20px; fill: var(--btn-primary-bg); }

.cl-mb-stat {
  right: 2%;
  bottom: 6%;
  left: auto;
  top: auto;
}
body.cl-brand .cl-mb-stat__k {
  margin: 0 0 2px;
  font-size: clamp(9.5px, 2.1cqw, 12.5px) !important;
  line-height: 1.35 !important;
  font-weight: 500;
  color: var(--color-text);
}
.cl-mb-stat .cl-hero__stat-line strong { color: var(--color-link); }

/* ---- revenue cycle figure ------------------------------------------------ */
.cl-mb-cycle { display: grid; gap: clamp(16px, 2vw, 24px); }
.cl-mb-cycle__img { border-radius: 16px; overflow: hidden; background: #C2EBE5; }
.cl-mb-cycle__img img { display: block; width: 100%; height: auto !important; aspect-ratio: 16 / 8; object-fit: cover; }
.cl-mb-cycle__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.cl-mb-cycle__list li {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--cl-line);
  border-radius: 12px;
  background: var(--color-bg-alt, #F5F7F9);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-heading);
}
.cl-mb-cycle__list li span { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--color-link); }
.cl-mb-cycle figcaption { font-size: 14px; line-height: 1.5; color: var(--color-text); }

/* ---- denial codes -------------------------------------------------------- */
.cl-mb-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.cl-mb-code {
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--cl-line);
  border-radius: 20px;
  background: #FFFFFF;
}
.cl-mb-code__id {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--color-heading);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}
body.cl-brand .cl-mb-code h3 { margin-bottom: 8px; font-size: 18px !important; line-height: 1.3 !important; }
body.cl-brand .cl-mb-code p { margin: 0; font-size: 15px !important; line-height: 1.55 !important; }

/* ---- in-house vs CreatorLayer (on the navy band) ------------------------- */
.cl-mb-vs {
  border-radius: 24px;
  background: #FFFFFF;
  overflow: hidden;
}
.cl-mb-vs table { width: 100%; border-collapse: collapse; }
.cl-mb-vs th,
.cl-mb-vs td {
  padding: clamp(14px, 1.5vw, 20px) clamp(16px, 2vw, 28px);
  border-bottom: 1px solid var(--cl-line);
  text-align: left;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
}
.cl-mb-vs tbody tr:last-child > * { border-bottom: 0; }
.cl-mb-vs thead th {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cl-mb-vs thead th.is-us { background: var(--btn-primary-bg); color: var(--color-heading); }
.cl-mb-vs tbody th { width: 22%; font-size: 17px; font-weight: 600; color: var(--color-heading); }
.cl-mb-vs td { width: 39%; }
.cl-mb-vs td.is-us { background: #E8F7F5; font-weight: 500; color: var(--color-heading); }

.cl-mb-vs__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(24px, 3vw, 40px);
}
body.cl-brand .cl-mb-vs__foot p { margin: 0; max-width: 36em; color: rgba(255, 255, 255, 0.8); }

/* ---- why partner --------------------------------------------------------- */
.cl-mb-why {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.cl-mb-why__item {
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid var(--cl-line);
  border-radius: 20px;
  background: #FFFFFF;
}
.cl-mb-why__ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #DDF4F0;
  color: var(--color-link);
}
.cl-mb-why__ic svg { width: 26px; height: 26px; }
body.cl-brand .cl-mb-why__item h3 { margin-bottom: 8px; font-size: 18px !important; line-height: 1.3 !important; }
body.cl-brand .cl-mb-why__item p { margin: 0; font-size: 15px !important; line-height: 1.55 !important; }

.cl-mb-report {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(28px, 3vw, 48px);
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--cl-line);
  border-radius: 24px;
  background: var(--color-bg-alt, #F5F7F9);
}
.cl-mb-report__img { border-radius: 16px; overflow: hidden; background: #C2EBE5; }
.cl-mb-report__img img { display: block; width: 100%; height: auto !important; }
.cl-mb-report__copy { padding-right: clamp(0px, 2vw, 32px); }
body.cl-brand .cl-mb-report__copy h3 { margin-bottom: 12px; font-size: clamp(22px, 2vw, 28px) !important; line-height: 1.2 !important; }

/* ---- specialties --------------------------------------------------------- */
.cl-mb-specgrid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}
.cl-mb-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cl-mb-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--cl-line);
  border-radius: 14px;
  background: #FFFFFF;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-heading);
}
.cl-mb-specs__more { background: transparent !important; border-style: dashed !important; }

/* ---- security ------------------------------------------------------------ */
.cl-mb-secure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
}
.cl-mb-secure .cl-seo-illus { margin-top: 0; }
.cl-mb-secure__list { margin-top: 20px; }

/* ---- navy call to action ------------------------------------------------- */
.cl-mb-cta { padding: clamp(56px, 6vw, 96px) 0; background: var(--color-bg); }
.cl-mb-cta__box {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 24px clamp(24px, 5vw, 80px);
  align-items: center;
  padding: clamp(28px, 4vw, 64px);
  border-radius: 28px;
  background: var(--color-heading);
  color: #FFFFFF;
}
body.cl-brand .cl-mb-cta__k {
  margin-bottom: 10px;
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7FE0D8;
}
body.cl-brand .cl-mb-cta h2 { margin-bottom: 12px; font-size: clamp(30px, 3.4vw, 48px) !important; line-height: 1.1 !important; color: #FFFFFF !important; }
body.cl-brand .cl-mb-cta__box p:not(.cl-mb-cta__k) { margin: 0; max-width: 34em; color: rgba(255, 255, 255, 0.8); }
.cl-mb-cta__actions { display: grid; gap: 14px; justify-items: start; }
.cl-mb-cta__mail { font-size: 17px; font-weight: 600; color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(127, 224, 216, 0.6); }
.cl-mb-cta__mail:hover { color: #7FE0D8; }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 1199px) {
  .cl-mb-why { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .cl-mb-cycle__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-mb-report,
  .cl-mb-specgrid,
  .cl-mb-secure,
  .cl-mb-cta__box { grid-template-columns: minmax(0, 1fr); }
  .cl-mb-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-mb-report__copy { padding: 0 8px 8px; }
}
/* Phones: each row becomes a card with both answers stacked and labelled. */
@media (max-width: 767px) {
  .cl-mb-vs { background: transparent; border-radius: 0; overflow: visible; }
  .cl-mb-vs thead { display: none; }
  .cl-mb-vs table,
  .cl-mb-vs tbody,
  .cl-mb-vs tr,
  .cl-mb-vs th,
  .cl-mb-vs td,
  .cl-mb-vs tbody th { display: block; width: auto; }
  .cl-mb-vs tr { margin-bottom: 12px; border-radius: 18px; background: #FFFFFF; overflow: hidden; }
  .cl-mb-vs tbody tr:last-child > * { border-bottom: 1px solid var(--cl-line); }
  .cl-mb-vs tbody tr > *:last-child { border-bottom: 0 !important; }
  .cl-mb-vs td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-link);
  }
  .cl-mb-vs td:not(.is-us)::before { color: #7A869E; }
}
@media (max-width: 575px) {
  .cl-mb-codes,
  .cl-mb-why { grid-template-columns: minmax(0, 1fr); }
  .cl-mb-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-mb-specs li { padding: 10px 12px; font-size: 14px; }
}
