/* blueHealthcare v2, additions for the pages that were restyled from the old body (2026-11-06):
   overview, pilot, platform, integrations and everything under /healthcare/international.
   Loaded after healthcare-v2.css and only by those pages. It uses the v2 tokens and changes no v2 rule. */

/* inline code: lowercase identifiers only, never a label */
main code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .88em; color: var(--ink);
  background: var(--util); padding: 1px 5px; border-radius: 2px; overflow-wrap: anywhere;
}
table.qa th code { background: transparent; padding: 0; color: var(--primary); font-size: .92em; }

/* the page you are on, in a row of jump links */
.jump a[aria-current="page"] { color: var(--ink); text-decoration: none; cursor: default; }

/* plain lines under a page heading */
.market-line { margin: 0 0 18px; font-size: 17px; color: var(--ink); display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; }
.pagehead .lede + .lede { margin-top: -6px; }

/* running text in a section: a readable measure, spaced paragraphs */
.sec .text { max-width: 46em; }
.sec .text p + p { margin-top: 14px; }
.sec .text b { color: var(--ink); font-weight: 600; }
.sec .sec-note { max-width: 46em; margin-top: 22px; }
.sec .sec-note.small { font-size: 14.5px; }
.sec-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 26px 0 0; }
.sec-links.solo { margin-top: 18px; }

/* diagrams */
.pp-diagram.wide { max-width: 1100px; margin-top: 28px; }
.sec .text + .pp-diagram { margin-top: 32px; }
.pp-diagram + .text { margin-top: 28px; }

/* three captures side by side (stacked on a phone) */
.shots3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .shots3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.shots3 li { margin: 0; min-width: 0; }
.shots3 .frame { height: 100%; }
.shots3 figcaption { font-size: 14.5px; }

/* one capture, set at a comfortable width */
.one-shot { max-width: 940px; }

/* a patient followed through the record: the screens one after another */
.steps .split.shot + .split.shot { margin-top: 64px; }
.steps .shot-text .sec-no { margin-bottom: 6px; }
.steps .shot-text .sub-title { margin-bottom: 12px; }
.steps .shot-text p { max-width: 34em; }
.steps .shot-text p.step-do { font-size: 19px; line-height: 1.5; color: var(--ink); }
@media (max-width: 999px) { .steps .split.shot + .split.shot { margin-top: 48px; } }

/* a ticked list whose lead-ins are bold */
.ticks b { color: var(--ink); font-weight: 600; }
.ticks.wide { max-width: 52em; }

/* the module and product tables read as a list; keep the name column from squeezing the text */
table.qa.mods tbody th { width: 22%; }
table.qa.mods td { color: var(--ink-2); }
table.qa td.st { white-space: normal; }
@media (min-width: 800px) { table.qa td.st { white-space: nowrap; } }
table.qa.two tbody th { width: 28%; }
table.qa a { font-weight: 600; }
.table-wrap + .sec-note { margin-top: 16px; }

/* integrations: the form sits in a framed column */
.int-wrap { display: grid; gap: 36px 64px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .int-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.int-wrap .small { margin-top: 14px; }
.form .btn[disabled] { cursor: default; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.form-row .form-note { margin: 0; }
.sent p:last-child { margin-bottom: 0; }

/* the market pages */
.market-pack { max-width: 100%; }
.panel.boundary p { color: var(--ink); }
.crumbs + .display { margin-top: 0; }

/* translated pages: a plain notice under the heading */
.i18n-note { max-width: 46em; margin: 0 0 24px; padding: 14px 18px; background: var(--card); border: 1px solid var(--hair); border-left: 4px solid var(--primary); border-radius: 2px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.i18n-note a { font-weight: 600; }

/* Arabic and other right-to-left body content: the header and footer stay English and left to right */
[dir="rtl"] .pagehead .display, [dir="rtl"] .title, [dir="rtl"] .sub-title, [dir="rtl"] .lede { letter-spacing: 0; }
main[lang="ar"], main[lang="ar"] .display, main[lang="ar"] .title, main[lang="ar"] .sub-title, main[lang="ar"] .qa-lead {
  font-family: "Noto Sans Arabic", var(--sans);
}
main[lang="ar"] .display { line-height: 1.25; font-weight: 600; }
main[lang="ar"] .title { line-height: 1.35; font-weight: 600; }
main[dir="rtl"] { text-align: right; }
main[dir="rtl"] table.qa th, main[dir="rtl"] table.qa td { text-align: right; }
main[dir="rtl"] .ticks li { padding: 16px 28px 16px 0; }
main[dir="rtl"] .ticks li::before { left: auto; right: 0; }
main[dir="rtl"] .panel.boundary { border-left: 1px solid var(--hair); border-right: 4px solid var(--product, var(--accent)); }
main[dir="rtl"] .i18n-note { border-left: 1px solid var(--hair); border-right: 4px solid var(--primary); }
main[dir="rtl"] code { direction: ltr; unicode-bidi: isolate; display: inline-block; max-width: 100%; }
main[dir="rtl"] .frame figcaption { text-align: right; }

.lede b { color: var(--ink); font-weight: 600; }

/* a heading straight into running text needs less air than a heading into a table or a grid */
.sec-head:has(+ .text) { margin-bottom: 22px; }

/* the skip link is parked off-screen to the left in v2; in a right-to-left page (and on a phone) that spills the
   scrollable area 10,000px sideways, so here it is clipped to nothing in place and shown on focus */
[dir="rtl"] .skip { left: auto; right: 0; top: 0; width: 1px; height: 1px; overflow: hidden; padding: 0; border: 0; clip-path: inset(50%); white-space: nowrap; }
[dir="rtl"] .skip:focus { right: 8px; top: 8px; width: auto; height: auto; overflow: visible; padding: 10px 14px; border: 2px solid var(--primary); clip-path: none; }

/* same for the visually hidden table header row on a phone: v2 parks it 9,999px to the left, which scrolls in a right-to-left page */
@media (max-width: 799px) {
  main[dir="rtl"] table.qa thead { left: auto; right: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* field names are code: keep a name such as "currency / locale / date_format" in its written order, flush right */
main[dir="rtl"] table.qa tbody th { direction: ltr; text-align: right; }

/* the phone-width capture is a different shape from the desktop one: let each image keep its own proportions */
.shots3 .shot-fig img { aspect-ratio: auto; }

/* ---------- diagrams drawn in HTML (where it sits, the decision file, the 120-day pilot) ----------
   Each one is a framed figure: a serif title, one plain line, the parts as lists, and a caption.
   Arrows and the timeline rule are drawn with borders, so they follow the page's type and colour. */
.frame.dg { padding: 28px; }
.dg-title { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); line-height: 1.2; color: var(--primary); margin: 0 0 8px; }
.dg-lede { margin: 0 0 28px; color: var(--muted); font-size: 17px; max-width: 40em; }
.frame.dg figcaption { margin-top: 28px; padding: 14px 0 0; border-top: 1px solid var(--hair); font-size: 15px; color: var(--ink-2); }
.dg ul, .dg ol { list-style: none; margin: 0; padding: 0; }
.dg li { margin: 0; min-width: 0; }
.dg-card { background: #fff; border: 1px solid var(--hair); border-radius: 2px; padding: 20px 22px; height: 100%; }
.dg-h { font-family: var(--serif); font-size: 21px; line-height: 1.25; color: var(--ink); margin: 0 0 4px; }
.dg-card p:not(.dg-h), .dg-step p:not(.dg-h) { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.dg-card.solid { background: var(--primary); border-color: var(--primary); display: flex; flex-direction: column; justify-content: center; }
.dg-card.solid .dg-h { color: #fff; }
.dg-card.solid p:not(.dg-h) { color: #E9EEFB; }

/* an arrow between two boxes: a line with a head, pointing right on a wide page and down on a phone */
.dg-arrow { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 2px; color: var(--primary); font-size: 14px; line-height: 1.2; text-align: center; }
.dg-arrow .dg-line { position: relative; display: block; height: 0; border-top: 1.5px solid var(--primary); margin: 0 3px; }
.dg-arrow .dg-line::after { content: ""; position: absolute; right: 2px; top: -5.25px; width: 9px; height: 9px; border-top: 1.5px solid var(--primary); border-right: 1.5px solid var(--primary); transform: rotate(45deg); }
.dg-arrow .dg-word { color: var(--muted); order: -1; }

/* where it sits: two boxes read by a third */
.dg-sits { display: grid; gap: 0; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: stretch; }
.dg-sits .dg-sources > li { display: grid; grid-template-columns: minmax(0, 1fr) 104px; align-items: stretch; }
.dg-sits .dg-sources > li + li { margin-top: 18px; }
.dg-sits .dg-proof { display: flex; }
.dg-sits .dg-proof .dg-card { width: 100%; padding: 28px; }

/* decision file: a list of requirements, then two boxes it feeds */
.dg-file { display: grid; gap: 0; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; }
.dg-file .dg-doc { background: #fff; border: 1px solid var(--hair); border-radius: 2px; padding: 20px 22px; }
.dg-file .dg-doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.dg-file .dg-doc-head .dg-h { margin: 0; }
.dg-tag { font-size: 14px; color: var(--primary); border: 1px solid var(--primary); border-radius: 2px; padding: 1px 9px; line-height: 1.5; }
.dg-reqs li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px solid var(--hair); color: var(--ink); font-size: 16px; line-height: 1.4; }
.dg-reqs .dg-st { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.dg-reqs .dg-mark { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 2px; border: 1.5px solid currentColor; font-size: 13px; line-height: 1; font-weight: 700; }
.dg-reqs .ok { color: var(--primary); }
.dg-reqs .ok .dg-mark { background: var(--primary); color: #fff; }
.dg-reqs .no { color: #8F1D2C; }
.dg-reqs .no .dg-mark { background: #8F1D2C; color: #fff; }
.dg-reqs .gap { color: var(--muted); }
.dg-reqs .gap .dg-mark { border-style: dashed; background: transparent; }
.dg-file .dg-outs > li { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: stretch; }
.dg-file .dg-outs > li + li { margin-top: 18px; }
.dg-file .dg-outs .dg-card { display: flex; flex-direction: column; justify-content: center; }

/* the 120-day pilot: six points on one line, then a band that says no live cases */
.dg-days { margin-top: 12px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dg-step { position: relative; padding: 24px 14px 0 0; border-top: 1.5px solid var(--primary); }
.dg-step::before { content: ""; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--primary); border-radius: 2px; box-sizing: border-box; }
.dg-day { margin: 0 0 4px; font-size: 14.5px; font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }
.dg-step .dg-h { font-size: 19px; margin-bottom: 4px; }
.dg-band { display: flex; align-items: center; gap: 12px; margin: 32px 0 0; padding: 14px 18px; background: var(--band); color: #fff; border-radius: 2px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.dg-band svg { flex: none; }

@media (max-width: 899px) {
  .frame.dg { padding: 18px; }
  .dg-sits, .dg-file { grid-template-columns: minmax(0, 1fr); }
  .dg-sits .dg-sources > li, .dg-file .dg-outs > li { grid-template-columns: minmax(0, 1fr); }
  .dg-sits .dg-sources > li + li, .dg-file .dg-outs > li + li { margin-top: 0; }
  .dg-arrow { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; padding: 0 0 0 28px; min-height: 52px; }
  .dg-arrow .dg-line { width: 0; height: 30px; border-top: 0; border-left: 1.5px solid var(--primary); margin: 0; flex: none; }
  .dg-arrow .dg-line::after { right: auto; top: auto; bottom: 2px; left: -5.25px; transform: rotate(135deg); }
  .dg-arrow .dg-word { order: 0; }
  .dg-days { grid-template-columns: minmax(0, 1fr); }
  .dg-step { padding: 0 0 26px 30px; border-top: 0; border-left: 1.5px solid var(--primary); }
  .dg-step:last-child { padding-bottom: 0; border-left-color: transparent; }
  .dg-step::before { left: -7px; top: 3px; }
  .dg-step:last-child::before { left: -6px; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .dg-days { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
}
