/* =========================================================
   Multi-Location Management — Healthcare Suite
   Built to public/reference/brand-guidelines.md. Loaded after /index.css.

   Sister page to Hospital Management, sharing its component vocabulary —
   the channel converge, the request workflow, the insight block and
   the role rows.

   THE SIGNATURE IS A ZOOM. The page opens on the whole network, pulls
   into one location, down through department and team, then pulls back
   out to the network again. That movement is carried by .ml-net (the
   group and its locations) and .ml-drill (the four levels), and both
   reappear at the end so the page closes where it opened.

   The brief's green (#16C542) is not in our palette: --lime marks the
   active location, the confirmed booking, the current drill level and
   the resolved state; --lime-ink carries green text.

   Numbers on this page are illustrative interface content, stated as
   such in the markup — not customer results.

   Every class is prefixed ml- ; the reset weighs nothing (guidelines §14).
   ========================================================= */

.ml {
  --pad: calc(67 * var(--u));
  --text: #2a2a2a;
  --faint: #9a9a9a;
  --soft: #f5f8f1;
  --grey: #f7f7f7;
  --lime-tint: #effcb5;
  --lime-ink: #3f5a00;
  --amber: #fff1d2;
  --amber-ink: #8a5600;
  --rose: #ffe8e4;
  --rose-ink: #b23a2c;
  --r-card: calc(18 * var(--u));
  --r: calc(12 * var(--u));
  --r-sm: calc(9 * var(--u));
  --shadow: 0 1px 2px rgba(17, 19, 24, .03), 0 calc(18 * var(--u)) calc(40 * var(--u)) calc(-28 * var(--u)) rgba(17, 19, 24, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  display: block;
  color: var(--ink);
}
.ml *, .ml *::before, .ml *::after { box-sizing: border-box; }
:where(.ml) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure, table) { margin: 0; }
:where(.ml) :where(ul, ol) { padding: 0; list-style: none; }
.ml img { display: block; max-width: 100%; }
.ml .i { flex: none; width: calc(16 * var(--u)); height: calc(16 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- type ---------- */
.ml-h1, .ml-h2, .ml-h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.ml-h1 { font-size: calc(64 * var(--u)); line-height: calc(77 * var(--u)); }
.ml-h2 { font-size: calc(48 * var(--u)); line-height: calc(57 * var(--u)); }
.ml-h3 { font-size: calc(24 * var(--u)); line-height: calc(30 * var(--u)); }
.ml .dim { color: var(--muted); }
.ml-lede { margin-top: calc(16 * var(--u)); max-width: calc(660 * var(--u)); font-size: calc(25 * var(--u)); line-height: calc(33 * var(--u)); letter-spacing: -.01em; color: var(--muted); text-wrap: pretty; }
.ml-sub { margin-top: calc(18 * var(--u)); max-width: calc(520 * var(--u)); font-size: calc(20 * var(--u)); line-height: calc(30 * var(--u)); letter-spacing: -.01em; color: var(--muted); text-wrap: pretty; }
.ml-k { font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

.ml-pill { display: inline-flex; align-items: center; gap: calc(7 * var(--u)); padding: calc(5 * var(--u)) calc(13 * var(--u)); border-radius: 999px; background: var(--soft); color: var(--text); font-size: calc(13 * var(--u)); font-weight: 600; line-height: 1.3; }
.ml-pill::before { content: ""; width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: currentColor; opacity: .7; }
.ml-pill.problem { background: var(--amber); color: var(--amber-ink); }
.ml-pill.solution { background: var(--lime-tint); color: var(--lime-ink); }
.ml-pill.ink { background: var(--ink); color: var(--lime); }
.ml-pill + .ml-h1, .ml-pill + .ml-h2 { margin-top: calc(22 * var(--u)); }
.ml-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: calc(14 * var(--u)); margin-top: calc(44 * var(--u)); }
.ml .btn .i { width: calc(22 * var(--u)); height: calc(22 * var(--u)); transition: transform .2s var(--ease); }
.ml .btn:hover .i { transform: translateX(calc(3 * var(--u))); }

/* ---------- sections ---------- */
.ml-sec { position: relative; padding: calc(128 * var(--u)) var(--pad); }
.ml-sec + .ml-sec { border-top: 1px solid var(--rule); }
.ml-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(96 * var(--u)); align-items: center; }
.ml-split.rev > :first-child { order: 2; }
.ml-head { max-width: calc(940 * var(--u)); }
.ml-head.mid { margin-inline: auto; text-align: center; }
.ml-head.mid .ml-lede { margin-inline: auto; }
.ml-stage { margin-top: calc(72 * var(--u)); }
.ml-sec.soft { isolation: isolate; }
.ml-sec.soft::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); background: #fafaf8; z-index: -1; }
.ml-sec.soft::after { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; right: -1px; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); pointer-events: none; }

/* ---------- hero ---------- */
.ml-hero { padding: calc(120 * var(--u)) var(--pad) calc(96 * var(--u)); }
.ml-hero .ml-h1 { max-width: calc(960 * var(--u)); }
.ml-hero__stage { position: relative; margin-top: calc(72 * var(--u)); }
/* the frame the photograph will occupy; for now it carries the payer record */
/* Until the photograph exists the frame sizes to the record it holds, so
   the panel reads as intentional rather than as a gap waiting to be
   filled. Restore `aspect-ratio: 16 / 7` when the <img> goes in. */
.ml-cap { margin-top: calc(16 * var(--u)); font-size: calc(14 * var(--u)); color: var(--muted); }

/* ---------- the payer record ---------- */

/* ---------- shared product UI ---------- */
.ml-ui { border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; overflow: hidden; }
.ml-ui__top { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(14 * var(--u)) calc(18 * var(--u)); border-bottom: 1px solid var(--rule); background: #fcfcfb; }
.ml-ui__top b { font-size: calc(13 * var(--u)); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ml-ui__top .ml-tag { margin-left: auto; }
.ml-ui__body { padding: calc(20 * var(--u)); }
.ml-ui + .ml-ui { margin-top: calc(16 * var(--u)); }
.ml-tag { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); padding: calc(4 * var(--u)) calc(10 * var(--u)); border-radius: 999px; background: var(--grey); color: var(--text); font-size: calc(12 * var(--u)); font-weight: 600; white-space: nowrap; }
.ml-tag.ok { background: var(--lime-tint); color: var(--lime-ink); }
.ml-tag.wait { background: var(--amber); color: var(--amber-ink); }
.ml-tag.bad { background: var(--rose); color: var(--rose-ink); }
.ml-tag .i { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.ml-fields { display: grid; gap: calc(14 * var(--u)); }
.ml-fields > div { display: grid; gap: calc(3 * var(--u)); }
.ml-fields dt { font-size: calc(11.5 * var(--u)); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.ml-fields dd { font-size: calc(17 * var(--u)); font-weight: 600; letter-spacing: -.01em; }
.ml-fields.two { grid-template-columns: 1fr 1fr; column-gap: calc(24 * var(--u)); }

/* ---------- the continuous stage rail ---------- */

/* the small vertical rail inside a column */

/* ---------- the rate change ---------- */

/* ---------- the renewal countdown ---------- */

/* the expiry notice, integrated rather than a pop-up */

/* ---------- one record, several teams ---------- */

/* ---------- workspace ---------- */
.ml-bar { display: flex; align-items: center; gap: calc(10 * var(--u)); flex-wrap: wrap; padding: calc(14 * var(--u)) calc(18 * var(--u)); border-bottom: 1px solid var(--rule); }
.ml-search { display: flex; align-items: center; gap: calc(9 * var(--u)); flex: 1 1 calc(230 * var(--u)); min-width: calc(170 * var(--u)); padding: calc(9 * var(--u)) calc(13 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-sm); color: var(--faint); font-size: calc(14 * var(--u)); }

/* activity */

/* ---------- AI ---------- */
.ml-ai { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: calc(64 * var(--u)); align-items: center; }
.ml-said .ml-k { display: block; margin-bottom: calc(7 * var(--u)); color: var(--faint); }

/* ---------- outcomes: four blocks, generous space, not cards ---------- */

/* ---------- FAQ ---------- */
.ml-faq { max-width: calc(920 * var(--u)); margin-top: calc(56 * var(--u)); border-top: 1px solid var(--rule); }
.ml-faq details { border-bottom: 1px solid var(--rule); }
.ml-faq summary { display: flex; align-items: center; gap: calc(18 * var(--u)); padding: calc(24 * var(--u)) 0; cursor: pointer; list-style: none; font-family: var(--font-head); font-size: calc(22 * var(--u)); line-height: calc(29 * var(--u)); font-weight: 500; letter-spacing: -.028em; transition: color .15s ease; }
.ml-faq summary::-webkit-details-marker { display: none; }
.ml-faq summary:hover { color: var(--lime-ink); }
.ml-faq summary::after { content: ""; flex: none; width: calc(11 * var(--u)); height: calc(11 * var(--u)); margin-left: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(calc(-2 * var(--u)), calc(-2 * var(--u))); transition: transform .25s var(--ease); }
.ml-faq details[open] summary::after { transform: rotate(-135deg); }
.ml-faq p { padding: 0 calc(48 * var(--u)) calc(26 * var(--u)) 0; max-width: calc(760 * var(--u)); font-size: calc(17 * var(--u)); line-height: calc(27 * var(--u)); color: var(--prose, #4d4d4d); }

/* ---------- final CTA + strip ---------- */
.ml-cta { padding: calc(130 * var(--u)) var(--pad); border-top: 1px solid var(--rule); }
.ml-cta__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: calc(96 * var(--u)); align-items: center; }

/* ---------- motion ---------- */
.ml-js .ml-rev { opacity: 0; transform: translateY(calc(12 * var(--u))); }
.ml-js .ml-rev.is-in { opacity: 1; transform: none; transition: opacity .75s ease var(--d, 0ms), transform .75s var(--ease) var(--d, 0ms); }
@keyframes hmWave { 0%, 100% { height: 22%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .ml *, .ml *::before, .ml *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
}

/* =========================================================
   Below 1180 --u is 1px. Stack, don't shrink (guidelines §10).
   ========================================================= */
@media (max-width: 1179px) {
  .ml { --pad: 22px; }
  .ml .i { width: 16px; height: 16px; }
  .ml-h1 { font-size: clamp(32px, 7.2vw, 48px); line-height: 1.08; }
  .ml-h2 { font-size: clamp(26px, 5.4vw, 36px); line-height: 1.16; }
  .ml-h3 { font-size: 20px; line-height: 27px; }
  .ml-lede { font-size: 17px; line-height: 25px; }
  .ml-sub { font-size: 16px; line-height: 24px; max-width: none; }
  .ml-ctas { margin-top: 28px; flex-direction: column; align-items: stretch; }

  .ml-hero { padding: 44px 22px 56px; }
  .ml-hero__stage, .ml-stage { margin-top: 32px; }

  .ml-sec { padding: 56px 22px; }
  .ml-split { grid-template-columns: 1fr; row-gap: 32px; }
  .ml-split.rev > :first-child { order: 0; }

  /* label and value stay on one line; only the payer name may wrap */

  .ml-fields.two { grid-template-columns: 1fr; row-gap: 14px; }

  .ml-ai { grid-template-columns: 1fr; row-gap: 28px; }

  .ml-faq summary { font-size: 19px; line-height: 26px; padding: 20px 0; gap: 14px; }
  .ml-faq p { font-size: 16px; line-height: 25px; padding: 0 0 22px; }

  .ml-cta { padding: 72px 22px; }
  .ml-cta__grid { grid-template-columns: 1fr; row-gap: 32px; }
}

/* ---------- money: the triptych this page is built around ---------- */

/* the readiness checklist */

/* the three-state list used by the closing panel */
.ml-marks li { display: flex; align-items: center; gap: calc(13 * var(--u)); padding: calc(14 * var(--u)) calc(18 * var(--u)); border-bottom: 1px solid var(--rule); font-size: calc(16 * var(--u)); font-weight: 600; }
.ml-marks li:last-child { border-bottom: 0; }
.ml-marks .mark { display: grid; place-items: center; flex: none; width: calc(21 * var(--u)); height: calc(21 * var(--u)); border-radius: 50%; background: var(--grey); }
.ml-marks .mark .i { width: calc(11 * var(--u)); height: calc(11 * var(--u)); }
.ml-marks .done .mark { background: var(--lime); color: var(--ink); }
.ml-marks .live .mark { background: var(--lime-tint); box-shadow: 0 0 0 calc(4 * var(--u)) rgba(199, 243, 104, .3); }
.ml-marks .live .mark::after { content: ""; width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: var(--lime-ink); }
.ml-marks .live { color: var(--lime-ink); }
.ml-marks .todo { color: var(--muted); font-weight: 500; }
.ml-marks .todo .mark::after { content: ""; width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; border: calc(1.5 * var(--u)) solid var(--divider); }

/* an operational notice, integrated rather than a pop-up */

@media (max-width: 1179px) {
  /* the arrow turns to point down the stack; the equals sign must not */
}

/* ---------- proportional revenue, read as a list not a chart ---------- */

/* ---------- tabs: one interface, several dimensions ---------- */
.ml-tabs { display: flex; flex-wrap: wrap; gap: calc(8 * var(--u)); padding: calc(14 * var(--u)) calc(18 * var(--u)); border-bottom: 1px solid var(--rule); }
.ml-tab { padding: calc(8 * var(--u)) calc(15 * var(--u)); border: 1px solid var(--rule); border-radius: 999px; background: #fff; font-size: calc(14 * var(--u)); font-weight: 600; color: var(--muted); white-space: nowrap; }
.ml-tab.on { border-color: var(--lime-ico); background: var(--lime); color: var(--ink); }

/* ---------- payment modes and aging, same shape ---------- */

/* ---------- the OPD / IPD matrix ---------- */

/* ---------- the small trend ---------- */

/* ---------- the three revenue views, sequential ---------- */

/* the quiet context labels around a problem statement */

/* ---------- hero: channels converge on one layer ---------- */
.ml-chans { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(10 * var(--u)); }
.ml-chan { display: inline-flex; align-items: center; gap: calc(9 * var(--u)); padding: calc(9 * var(--u)) calc(16 * var(--u)); border: 1px solid var(--rule); border-radius: 999px; background: #fff; font-size: calc(15 * var(--u)); font-weight: 600; box-shadow: var(--shadow); }
.ml-chan svg { width: calc(17 * var(--u)); height: calc(17 * var(--u)); display: block; }
.ml-converge { display: grid; justify-items: center; gap: calc(12 * var(--u)); }
.ml-funnel { position: relative; width: 100%; max-width: calc(560 * var(--u)); height: calc(30 * var(--u)); }
.ml-funnel::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 2px; background: var(--divider); }
.ml-funnel i { position: absolute; top: 0; width: 2px; height: calc(14 * var(--u)); background: var(--divider); }
.ml-funnel i:nth-child(1) { left: 12%; }
.ml-funnel i:nth-child(2) { left: calc(38% - 1px); }
.ml-funnel i:nth-child(3) { left: calc(62% - 1px); }
.ml-funnel i:nth-child(4) { right: 12%; }
.ml-funnel::after { content: ""; position: absolute; top: 0; left: calc(50% - 1px); width: 2px; height: 100%; background: var(--lime-ico); }
.ml-layer { display: inline-flex; align-items: center; gap: calc(11 * var(--u)); padding: calc(13 * var(--u)) calc(24 * var(--u)); border-radius: 999px; background: var(--lime); font-family: var(--font-head); font-size: calc(21 * var(--u)); font-weight: 500; letter-spacing: -.025em; color: var(--ink); }
.ml-layer .i { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
.ml-fan { position: relative; width: 100%; max-width: calc(520 * var(--u)); height: calc(28 * var(--u)); }
.ml-fan::before { content: ""; position: absolute; top: calc(14 * var(--u)); left: 16.6%; right: 16.6%; height: 2px; background: var(--lime-ico); }
.ml-fan i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--lime-ico); }
.ml-fan i:nth-child(1) { left: 16.6%; top: calc(14 * var(--u)); }
.ml-fan i:nth-child(2) { left: calc(50% - 1px); }
.ml-fan i:nth-child(3) { right: 16.6%; top: calc(14 * var(--u)); }
.ml-ends { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(14 * var(--u)); width: 100%; max-width: calc(520 * var(--u)); }
.ml-end { padding: calc(13 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r); background: #fff; text-align: center; font-size: calc(15 * var(--u)); font-weight: 600; }

/* the appointment exchange */
.ml-talk { display: grid; gap: calc(10 * var(--u)); max-width: calc(440 * var(--u)); }
.ml-bub { max-width: 86%; padding: calc(13 * var(--u)) calc(17 * var(--u)); border-radius: calc(18 * var(--u)); font-size: calc(16 * var(--u)); line-height: calc(23 * var(--u)); }
.ml-bub.pt { justify-self: end; border-radius: calc(18 * var(--u)) calc(18 * var(--u)) calc(4 * var(--u)) calc(18 * var(--u)); background: var(--grey); }
.ml-bub.wm { border: 1px solid var(--rule); border-radius: calc(18 * var(--u)) calc(18 * var(--u)) calc(18 * var(--u)) calc(4 * var(--u)); background: #fff; }
.ml-ok { display: inline-flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(12 * var(--u)) calc(18 * var(--u)); border-radius: var(--r); background: var(--lime); font-size: calc(15.5 * var(--u)); font-weight: 600; }
.ml-ok .i { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }

/* ---------- the systems stack ---------- */

/* ---------- the journey ---------- */

/* ---------- the request workflow ---------- */
.ml-req { display: grid; gap: calc(16 * var(--u)); }
.ml-said { max-width: calc(420 * var(--u)); padding: calc(15 * var(--u)) calc(19 * var(--u)); border: 1px solid var(--rule); border-radius: calc(18 * var(--u)) calc(18 * var(--u)) calc(18 * var(--u)) calc(4 * var(--u)); background: #fff; box-shadow: var(--shadow); font-family: var(--font-head); font-size: calc(19 * var(--u)); line-height: calc(26 * var(--u)); font-weight: 500; letter-spacing: -.025em; }
.ml-said .ml-k { display: block; margin-bottom: calc(7 * var(--u)); color: var(--faint); }
.ml-tat { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(13 * var(--u)) calc(16 * var(--u)); border-radius: var(--r); background: var(--lime-soft); font-size: calc(15 * var(--u)); font-weight: 600; color: var(--lime-ink); }
.ml-tat .i { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.ml-tat span { margin-left: auto; font-variant-numeric: tabular-nums; }
.ml-ai { display: grid; gap: calc(6 * var(--u)); }
.ml-ai li { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(11 * var(--u)) calc(16 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-sm); background: #fff; font-size: calc(15 * var(--u)); font-weight: 600; }
.ml-ai .n { display: grid; place-items: center; width: calc(20 * var(--u)); height: calc(20 * var(--u)); border-radius: 50%; background: var(--lime); font-size: calc(11 * var(--u)); font-weight: 700; color: var(--ink); }
.ml-ai li:last-child { border-color: var(--lime-ico); background: var(--lime-soft); color: var(--lime-ink); }

/* ---------- management ---------- */
.ml-insight { display: grid; gap: calc(16 * var(--u)); padding: calc(28 * var(--u)); border: 1px solid var(--lime-ico); border-radius: var(--r-card); background: var(--lime-soft); }
.ml-insight__k { display: flex; align-items: center; gap: calc(10 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--lime-ink); }
.ml-insight__k i { display: grid; place-items: center; width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; background: var(--lime); color: var(--ink); }
.ml-insight__k i .i { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.ml-insight__t { font-family: var(--font-head); font-size: calc(28 * var(--u)); line-height: calc(36 * var(--u)); font-weight: 500; letter-spacing: -.03em; }
.ml-attn { display: grid; gap: calc(7 * var(--u)); }
.ml-attn li { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(12 * var(--u)) calc(15 * var(--u)); border-radius: var(--r-sm); background: #fff; font-size: calc(15 * var(--u)); font-weight: 600; }
.ml-attn li span { margin-left: auto; font-weight: 500; color: var(--muted); }
.ml-dpi { display: flex; align-items: center; justify-content: center; gap: calc(12 * var(--u)); flex-wrap: wrap; margin-top: calc(26 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ml-dpi b { color: var(--lime-ink); }
.ml-triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(16 * var(--u)); margin-top: calc(48 * var(--u)); }
.ml-triple > div { display: grid; gap: calc(8 * var(--u)); padding: calc(24 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; }
.ml-triple b { font-size: calc(13 * var(--u)); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.ml-triple p { font-family: var(--font-head); font-size: calc(22 * var(--u)); line-height: calc(29 * var(--u)); font-weight: 500; letter-spacing: -.028em; }

/* ---------- roles ---------- */
.ml-roles { display: grid; border-top: 1px solid var(--rule); }
.ml-roles > article { display: grid; grid-template-columns: calc(56 * var(--u)) minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; column-gap: calc(36 * var(--u)); padding: calc(30 * var(--u)) 0; border-bottom: 1px solid var(--rule); transition: background .2s var(--ease); }
.ml-roles > article:hover { background: var(--soft); }
.ml-roles .n { font-size: calc(13 * var(--u)); font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.ml-roles h3 { font-family: var(--font-head); font-size: calc(26 * var(--u)); line-height: calc(33 * var(--u)); font-weight: 500; letter-spacing: -.03em; }
.ml-roles ul { display: flex; flex-wrap: wrap; gap: calc(8 * var(--u)); }
.ml-roles li { padding: calc(7 * var(--u)) calc(13 * var(--u)); border: 1px solid var(--rule); border-radius: 999px; background: #fff; font-size: calc(14 * var(--u)); font-weight: 500; color: var(--muted); }
.ml-roles > article:hover li { border-color: var(--lime-ico); color: var(--text); }

@media (max-width: 1179px) {
  .ml-chan { font-size: 13.5px; padding: 7px 12px; }
  .ml-layer { font-size: 17px; padding: 11px 18px; }
  .ml-ends { grid-template-columns: 1fr; }
  .ml-fan { width: 2px; }
  .ml-fan::before, .ml-fan i:nth-child(1), .ml-fan i:nth-child(3) { display: none; }
  .ml-funnel { width: 2px; }
  .ml-funnel::before, .ml-funnel i { display: none; }
  .ml-talk { max-width: none; }
  .ml-said { max-width: none; font-size: 17px; line-height: 24px; }
  .ml-insight__t { font-size: 21px; line-height: 28px; }
  .ml-triple { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .ml-triple p { font-size: 19px; line-height: 26px; }
  .ml-roles > article { grid-template-columns: 1fr; row-gap: 12px; padding: 24px 0; }
  .ml-roles h3 { font-size: 21px; line-height: 28px; }
}

/* ---------- the network: one group, many locations ---------- */
.ml-net { display: grid; justify-items: center; gap: calc(14 * var(--u)); padding: calc(48 * var(--u)) calc(32 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--soft); }
.ml-hub { display: inline-flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(15 * var(--u)) calc(28 * var(--u)); border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--font-head); font-size: calc(23 * var(--u)); font-weight: 500; letter-spacing: -.03em; }
.ml-hub .i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); color: var(--lime); }
.ml-spokes { position: relative; width: 100%; max-width: calc(1000 * var(--u)); height: calc(26 * var(--u)); }
.ml-spokes::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 2px; background: var(--lime-ico); }
.ml-spokes i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--lime-ico); }
.ml-spokes i:nth-child(1) { left: 10%; }
.ml-spokes i:nth-child(2) { left: 30%; }
.ml-spokes i:nth-child(3) { left: calc(50% - 1px); }
.ml-spokes i:nth-child(4) { left: 70%; }
.ml-spokes i:nth-child(5) { right: 10%; }
.ml-locs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(12 * var(--u)); width: 100%; max-width: calc(1000 * var(--u)); }
.ml-loc { display: grid; gap: calc(10 * var(--u)); padding: calc(18 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r); background: #fff; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.ml-loc:hover { border-color: var(--lime-ico); box-shadow: var(--shadow); transform: translateY(calc(-2 * var(--u))); }
.ml-loc__t { display: grid; gap: calc(2 * var(--u)); }
.ml-loc__t b { font-size: calc(16 * var(--u)); font-weight: 600; letter-spacing: -.01em; }
.ml-loc__t span { font-size: calc(12 * var(--u)); color: var(--faint); }
.ml-loc dl { display: grid; gap: calc(5 * var(--u)); }
.ml-loc dl > div { display: flex; align-items: baseline; gap: calc(8 * var(--u)); font-size: calc(13 * var(--u)); }
.ml-loc dt { color: var(--muted); }
.ml-loc dd { margin: 0 0 0 auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.ml-loc.on { border-color: var(--lime-ico); background: var(--lime-soft); box-shadow: 0 0 0 calc(4 * var(--u)) rgba(199, 243, 104, .3); }
.ml-loc.on .ml-loc__t b { color: var(--lime-ink); }

/* ---------- central vs local ---------- */
.ml-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: calc(20 * var(--u)); }
.ml-side { display: grid; align-content: start; gap: calc(16 * var(--u)); padding: calc(28 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; }
.ml-side__k { font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.ml-side h3 { font-family: var(--font-head); font-size: calc(26 * var(--u)); line-height: calc(33 * var(--u)); font-weight: 500; letter-spacing: -.03em; }
.ml-side blockquote { margin: 0; font-family: var(--font-head); font-size: calc(19 * var(--u)); line-height: calc(26 * var(--u)); font-weight: 500; letter-spacing: -.025em; color: var(--muted); }
.ml-side ul { display: grid; gap: calc(6 * var(--u)); }
.ml-side li { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(10 * var(--u)) calc(14 * var(--u)); border-radius: var(--r-sm); background: var(--grey); font-size: calc(14.5 * var(--u)); font-weight: 600; }
.ml-side.local li { background: var(--lime-soft); color: var(--lime-ink); }
.ml-mid { display: grid; justify-items: center; align-content: center; gap: calc(12 * var(--u)); }
.ml-mid .rail { width: 2px; flex: 1; min-height: calc(40 * var(--u)); background: var(--lime-ico); }
.ml-mid .badge { padding: calc(9 * var(--u)) calc(16 * var(--u)); border-radius: 999px; background: var(--lime); font-size: calc(14 * var(--u)); font-weight: 600; white-space: nowrap; }
.ml-neq { margin-top: calc(28 * var(--u)); text-align: center; font-family: var(--font-head); font-size: calc(24 * var(--u)); line-height: calc(31 * var(--u)); font-weight: 500; letter-spacing: -.03em; }
.ml-neq b { color: var(--lime-ink); font-weight: 500; }

/* ---------- the operating model ---------- */
.ml-model { display: grid; gap: calc(14 * var(--u)); }
.ml-central { display: grid; gap: calc(14 * var(--u)); padding: calc(28 * var(--u)); border: 1px solid var(--ink); border-radius: var(--r-card); background: var(--ink); color: #fff; }
.ml-central__k { font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--lime); }
.ml-central ul { display: flex; flex-wrap: wrap; gap: calc(8 * var(--u)); }
.ml-central li { padding: calc(8 * var(--u)) calc(15 * var(--u)); border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: calc(14.5 * var(--u)); font-weight: 600; }
.ml-branch { position: relative; height: calc(26 * var(--u)); }
.ml-branch::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: calc(12 * var(--u)); background: var(--lime-ico); }
.ml-branch::after { content: ""; position: absolute; top: calc(12 * var(--u)); left: 12%; right: 12%; height: 2px; background: var(--lime-ico); }
.ml-branch i { position: absolute; top: calc(12 * var(--u)); bottom: 0; width: 2px; background: var(--lime-ico); }
.ml-branch i:nth-child(1) { left: 12%; }
.ml-branch i:nth-child(2) { left: calc(50% - 1px); }
.ml-branch i:nth-child(3) { right: 12%; }
.ml-local { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(14 * var(--u)); }
.ml-localcard { display: grid; gap: calc(10 * var(--u)); padding: calc(22 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r); background: #fff; }
.ml-localcard b { font-size: calc(16 * var(--u)); font-weight: 600; }
.ml-localcard ul { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); }
.ml-localcard li { padding: calc(6 * var(--u)) calc(11 * var(--u)); border: 1px solid var(--rule); border-radius: 999px; font-size: calc(13 * var(--u)); font-weight: 500; color: var(--muted); }

/* ---------- patient routing ---------- */
.ml-parse { display: grid; gap: calc(6 * var(--u)); }
.ml-parse li { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(11 * var(--u)) calc(16 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-sm); background: #fff; font-size: calc(15 * var(--u)); font-weight: 600; }
.ml-parse .k { font-size: calc(11 * var(--u)); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); min-width: calc(88 * var(--u)); }
.ml-parse .v { margin-left: auto; color: var(--lime-ink); }
.ml-slot { display: grid; gap: calc(14 * var(--u)); padding: calc(24 * var(--u)); border: 1px solid var(--lime-ico); border-radius: var(--r-card); background: var(--lime-soft); }
.ml-slot__who { display: flex; align-items: center; gap: calc(14 * var(--u)); }
.ml-slot__who img { width: calc(48 * var(--u)); height: calc(48 * var(--u)); border-radius: 50%; object-fit: cover; object-position: center 20%; }
.ml-slot__who b { display: block; font-family: var(--font-head); font-size: calc(20 * var(--u)); font-weight: 500; letter-spacing: -.025em; }
.ml-slot__who span { display: block; font-size: calc(13.5 * var(--u)); color: var(--muted); }
.ml-slot__when { margin-left: auto; text-align: right; font-size: calc(15 * var(--u)); font-weight: 600; font-variant-numeric: tabular-nums; }
.ml-full { display: grid; gap: calc(12 * var(--u)); padding: calc(20 * var(--u)); border: 1px solid #f0dcae; border-radius: var(--r-card); background: #fffaf0; }
.ml-full p { font-family: var(--font-head); font-size: calc(18 * var(--u)); line-height: calc(25 * var(--u)); font-weight: 500; letter-spacing: -.02em; }

/* ---------- the drill-down: organisation to team ---------- */
.ml-drill { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(12 * var(--u)); }
.ml-lvl { position: relative; display: grid; align-content: start; gap: calc(12 * var(--u)); padding: calc(22 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; }
.ml-lvl__k { display: flex; align-items: center; gap: calc(9 * var(--u)); font-size: calc(11.5 * var(--u)); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.ml-lvl__k i { display: grid; place-items: center; width: calc(19 * var(--u)); height: calc(19 * var(--u)); border-radius: 50%; background: var(--grey); font-size: calc(10.5 * var(--u)); font-weight: 700; font-style: normal; color: var(--muted); }
.ml-lvl b { font-family: var(--font-head); font-size: calc(21 * var(--u)); line-height: calc(27 * var(--u)); font-weight: 500; letter-spacing: -.028em; }
.ml-lvl dl { display: grid; gap: calc(6 * var(--u)); }
.ml-lvl dl > div { display: flex; align-items: baseline; gap: calc(8 * var(--u)); font-size: calc(13.5 * var(--u)); }
.ml-lvl dt { color: var(--muted); }
.ml-lvl dd { margin: 0 0 0 auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.ml-lvl.on { border-color: var(--lime-ico); background: var(--lime-soft); }
.ml-lvl.on .ml-lvl__k { color: var(--lime-ink); }
.ml-lvl.on .ml-lvl__k i { background: var(--lime); color: var(--ink); }
.ml-lvl:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: calc(-12 * var(--u)); width: calc(12 * var(--u)); height: 2px; background: var(--divider); }
.ml-lvl.on:not(:last-child)::after { background: var(--lime-ico); }

/* ---------- the closing zoom ---------- */
.ml-zoom { display: grid; justify-items: center; gap: calc(10 * var(--u)); }
.ml-zoom .step { padding: calc(11 * var(--u)) calc(22 * var(--u)); border: 1px solid var(--rule); border-radius: 999px; background: #fff; font-size: calc(15.5 * var(--u)); font-weight: 600; }
.ml-zoom .step.wide { border-color: var(--lime-ico); background: var(--lime-soft); color: var(--lime-ink); }
.ml-zoom i { width: 2px; height: calc(16 * var(--u)); background: var(--divider); }
.ml-zoom i.on { background: var(--lime-ico); }
.ml-zoom .pack { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(8 * var(--u)); }
.ml-zoom .pack span { padding: calc(9 * var(--u)) calc(15 * var(--u)); border: 1px solid var(--rule); border-radius: 999px; background: #fff; font-size: calc(14 * var(--u)); font-weight: 600; }
.ml-zoom .final { margin-top: calc(10 * var(--u)); padding: calc(16 * var(--u)) calc(32 * var(--u)); border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--font-head); font-size: calc(26 * var(--u)); font-weight: 500; letter-spacing: -.03em; }
.ml-zoom .final b { color: var(--lime); font-weight: 500; }

@media (max-width: 1179px) {
  .ml-net { padding: 22px 16px; }
  .ml-hub { font-size: 18px; padding: 12px 20px; }
  .ml-locs { grid-template-columns: 1fr; }
  .ml-spokes { width: 2px; }
  .ml-spokes::before, .ml-spokes i:nth-child(n + 2) { display: none; }
  .ml-spokes i:nth-child(1) { left: 0; }
  .ml-vs { grid-template-columns: 1fr; }
  .ml-mid { padding: 6px 0; }
  .ml-mid .rail { width: 2px; min-height: 22px; height: 22px; flex: none; }
  .ml-neq { font-size: 19px; line-height: 26px; margin-top: 20px; }
  .ml-local { grid-template-columns: 1fr; }
  .ml-branch { height: 22px; }
  .ml-branch::after, .ml-branch i:nth-child(n + 2) { display: none; }
  .ml-branch i:nth-child(1) { left: calc(50% - 1px); top: 0; }
  .ml-parse .k { min-width: 74px; font-size: 10.5px; }
  .ml-slot__who { flex-wrap: wrap; row-gap: 8px; }
  .ml-slot__when { margin-left: 0; text-align: left; }
  .ml-drill { grid-template-columns: 1fr; }
  .ml-lvl:not(:last-child)::after { top: auto; bottom: calc(-12 * 1px); right: auto; left: 50%; width: 2px; height: 12px; }
  .ml-zoom .final { font-size: 19px; padding: 13px 22px; text-align: center; }
}
