/* CodiafyMed only. The shared design lives in Codiafy.UI (_content/Codiafy.UI/css/codiafy.css). */

.cx-h1, .cx-h2 { overflow-wrap: break-word; }
.cx-mt-sm { margin-top: 1.5rem !important; }

/* header: seven menu items need more room than the shared breakpoint allows */
.cx-appbar__inner { gap: 12px; }
.cx-appbar .cx-btn { flex: none; white-space: nowrap; padding: 10px 14px !important; }
.cx-logo-link { flex: none; }
.cx-nav { gap: 0; }
.cx-nav__link { font-size: .9rem; text-decoration: none; white-space: nowrap; padding: 8px 7px; }
.cx-nav__link.active { background: var(--cx-tint); }
.cx-drawer__nav a { text-decoration: none; }
.cx-drawer__nav a.active { color: var(--cx-accent); font-weight: 700; }
@media (max-width: 1279.98px) {
  .cx-desktop-only { display: none !important; }
  .cx-mobile-only { display: inline-flex !important; }
}

/* hero of the detail pages */
.cx-hero--page { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.cx-hero--page .cx-h1 { max-width: 20ch; }

/* system map */
.cx-map__body { display: flex; flex-direction: column; align-items: center; padding: 20px 18px; }
.cx-map__systems { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cx-map__systems li { display: flex; flex-direction: column; gap: 4px; padding: 12px 6px; border: 1px solid #3A5B85; border-radius: var(--cx-radius); text-align: center; line-height: 1.3; }
.cx-map__systems strong { color: var(--cx-accent-bright); }
.cx-map__systems span { font-size: .72rem; color: #A9B8CE; }
.cx-map__lines { width: 100%; height: 56px; }
.cx-map__lines path { fill: none; stroke: var(--cx-accent-bright); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; animation: cx-flow-dash 1.6s linear infinite; }
.cx-map__node { display: flex; flex-direction: column; gap: 2px; width: 100%; max-width: 19rem; padding: 14px 12px; border: 1px solid var(--cx-accent-bright); border-radius: var(--cx-radius); text-align: center; }
.cx-map__node span { font-size: .75rem; color: #A9B8CE; }
.cx-map__node--platform { background: #DBE2EF; border-color: #DBE2EF; color: var(--cx-ink); }
.cx-map__node--platform span { color: var(--cx-ink-soft); }
.cx-map__stem { height: 34px; border-left: 2px dashed var(--cx-accent-bright); }
@keyframes cx-flow-dash { to { stroke-dashoffset: -20; } }
@media (prefers-reduced-motion: reduce) {
  .cx-map__lines path { animation: none; }
}

/* status rows of the sample panels */
.cx-tone__dot { width: 10px; height: 10px; justify-self: center; border-radius: 50%; background: currentColor; }
.cx-tone__tag { min-width: 6.5em; text-align: right; }
.cx-tone--ok .cx-tone__dot, .cx-tone--ok .cx-tone__tag { color: #6FD6A1; }
.cx-tone--info .cx-tone__dot, .cx-tone--info .cx-tone__tag { color: var(--cx-accent-bright); }
.cx-tone--warn .cx-tone__dot, .cx-tone--warn .cx-tone__tag { color: #F2C46D; }
.cx-tone--high .cx-tone__dot, .cx-tone--high .cx-tone__tag { color: #F59A94; }

/* process schema */
.cx-flow { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; counter-reset: flow; }
.cx-flow li { position: relative; counter-increment: flow; padding: 1.1rem 1rem; background: #fff; border: 1px solid var(--cx-line); border-radius: var(--cx-radius); }
.cx-flow li::before { content: counter(flow, decimal-leading-zero); display: block; margin-bottom: .5rem; font-family: ui-monospace, Consolas, monospace; font-weight: 600; color: var(--cx-accent); }
.cx-flow li:not(:last-child)::after { content: "\2192"; position: absolute; top: 50%; right: -22px; transform: translateY(-50%); color: var(--cx-accent); }
.cx-flow__title { font-size: 1rem; line-height: 1.35; font-weight: 650; margin: 0 0 .35rem; }
.cx-flow p { margin: 0; font-size: .92rem; color: var(--cx-ink-soft); }

/* integration areas */
.cx-areas { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 2rem; border-top: 1px solid var(--cx-ink); }
.cx-areas li { padding: 1.5rem 0; border-bottom: 1px solid var(--cx-line); }
.cx-areas p { margin: 0; color: var(--cx-ink-soft); }

/* text blocks */
.cx-note { max-width: 75ch; margin: 1.75rem 0; padding: .25rem 0 .25rem 1rem; border-left: 4px solid var(--cx-accent); color: var(--cx-ink-soft); }
.cx-callout { margin-bottom: 1.5rem; padding: 1.75rem; background: #fff; border: 1px solid var(--cx-line); border-radius: var(--cx-radius); }
.cx-callout p:last-child, .cx-callout ul:last-child { margin-bottom: 0; }
.cx-sources { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--cx-line); }
.cx-sources__title { margin-bottom: .5rem; font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--cx-ink-soft); }
.cx-sources ul { list-style: none; margin: 0 0 .75rem; padding: 0; }
.cx-sources li { padding: .25rem 0; }
.cx-sources .cx-link, .cx-form__note .cx-link, .cx-muted .cx-link { display: inline; }
.cx-jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0; padding: 0 0 2.5rem; }
.cx-audience__who { max-width: 75ch; margin-bottom: 2rem; color: var(--cx-ink-soft); }
.cx-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: 3rem; }
.cx-band p { margin: 0; color: var(--cx-ink-soft); }
.cx-service__verb { display: flex; align-items: center; gap: 8px; }

/* the contact form sits on a light background here */
.cx-form__note { max-width: 44ch; color: var(--cx-ink-soft); }

/* footer */
.cx-footer__disclaimer { max-width: 90ch; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--cx-line); font-size: .85rem; color: var(--cx-ink-soft); }
.cx-footer__disclaimer + .cx-footer__legal { margin-top: 0; }

@media (max-width: 960px) {
  .cx-flow { grid-template-columns: 1fr; }
  .cx-flow li:not(:last-child)::after { content: "\2193"; top: auto; right: auto; bottom: -26px; left: 50%; transform: translateX(-50%); }
  .cx-areas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cx-areas { grid-template-columns: 1fr; }
}
