/* Scoped to the infographic illustrations; other documentation keeps its theme. */
.concepts-visual {
  --cv-ink: #162b46;
  --cv-muted: #52647b;
  --cv-line: #d6e1ec;
  color: var(--cv-ink);
  font-size: 14px;
  line-height: 1.6;
  margin: 1.5rem 0;
}
.concepts-visual * { box-sizing: border-box; }
.concepts-visual h2,
.concepts-visual h3,
.concepts-visual h4 {
  color: inherit;
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.2;
  margin: .65rem 0;
}
.concepts-visual h2 { font-size: clamp(26px, 4vw, 38px); }
.concepts-visual h3 { font-size: 23px; }
.concepts-visual h4 { font-size: 21px; }
.concepts-visual p { margin: .6rem 0; }
.concepts-visual code {
  background: #edf2f8;
  color: #274365;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
}
.cv-tag {
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1.6;
}
.cv-tag { margin-bottom: 12px; color: #52647b; }
.cv-entity {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 24px;
}
.cv-entity p { color: var(--cv-muted); }
.cv-pump { position: relative; padding: 12px 0 28px; }
.cv-pump svg { display: block; width: 100%; max-height: 260px; }
.cv-sensor {
  position: absolute;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--cv-line);
  border-radius: 12px;
}
.cv-sensor span { display: block; font-size: 9px; letter-spacing: .14em; color: var(--cv-muted); }
.cv-sensor strong { font-size: 24px; color: var(--cv-ink); }
.cv-sensor small { font-size: 12px; font-weight: 500; }
.cv-sensor-pressure { top: 0; right: 0; }
.cv-sensor-flow { bottom: 28px; left: 0; }
.cv-pump-id { display: block; text-align: center; color: var(--cv-muted); font: 11px monospace; letter-spacing: .12em; }
.cv-entity, .cv-dataset, .cv-operation {
  padding: 28px;
  border: 1px solid var(--cv-line);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff, #f6f9fc);
  box-shadow: 0 8px 28px #162b4609;
}
.av-journey { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.av-phase { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(0, 2fr); align-items: center; gap: 24px; min-width: 0; padding: 20px 24px; border: 1px solid var(--cv-line); border-radius: 16px; background: linear-gradient(135deg, #fff, #f6f9fc); box-shadow: 0 8px 28px #162b4609; }
.av-phase .cv-tag { grid-column: 1; align-self: end; margin: 0; }
.av-phase h3 { grid-column: 1; align-self: start; margin: 0; font-size: 18px; }
.av-flow { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: row; align-items: stretch; }
.av-node { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 5px; min-height: 108px; padding: 14px; border: 1px solid var(--cv-line); border-radius: 12px; background: #fff; }
.av-node strong { color: var(--cv-ink); font-size: 15px; }
.av-node > span:last-child { color: var(--cv-muted); font-size: 12px; line-height: 1.5; }
.av-node-label { font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.av-authoring { background: #f3f6fa; }
.av-authoring .av-node-label { color: #52647b; }
.av-definition { border-color: #bdccdf; background: #eaf1fc; }
.av-definition .av-node-label { color: #244f83; }
.av-action { border-color: #b7e6d8; background: #dff5ef; }
.av-action .av-node-label { color: #14634f; }
.av-result { border-color: #f0d391; background: #fff0cf; }
.av-result .av-node-label { color: #80500b; }
.av-legend { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.av-swatch-authoring { background: #f3f6fa; color: #52647b; }
.av-connector { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 72px; color: #6087b2; }
.av-connector span { font-size: 10px; font-weight: 650; }
.av-connector b { font-size: 22px; font-weight: 400; line-height: 1; transform: rotate(-90deg); }
.av-bridge { display: grid; place-items: center; height: 12px; color: #6087b2; font-size: 24px; transform: rotate(90deg); }
.architecture-visual .cv-detail { margin-top: 18px; }
.cv-dataset { border-top: 4px solid #5387c1; }
.cv-scope { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.cv-scope div { border-left: 2px solid #89afd9; padding-left: 12px; }
.cv-scope span { display: block; color: var(--cv-muted); font-size: 9px; letter-spacing: .1em; }
.cv-scope strong { display: block; margin-top: 4px; font-size: 12px; }
.cv-table-scroll { overflow-x: auto; }
.concepts-visual .cv-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--cv-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  font: 12px/1.5 monospace;
  margin: 0;
}
.concepts-visual .cv-table th,
.concepts-visual .cv-table td {
  text-align: left;
  padding: 10px 9px;
  border: 0;
  border-bottom: 1px solid #e7edf4;
  white-space: nowrap;
}
.concepts-visual .cv-table th { background: #edf2f8; font-weight: 650; color: #344d6b; }
.concepts-visual .cv-table thead th { border-bottom: 2px solid #bdccdf; }
.concepts-visual .cv-table tbody tr:last-child td { border-bottom: 0; }
.concepts-visual .cv-table .cv-key, .concepts-visual .cv-key { background: #eaf1fc; color: #244f83; }
.concepts-visual .cv-table .cv-teal, .concepts-visual .cv-teal { background: #dff5ef; color: #14634f; }
.concepts-visual .cv-table .cv-violet, .concepts-visual .cv-violet { background: #eee7fb; color: #654298; }
.concepts-visual .cv-table .cv-amber, .concepts-visual .cv-amber { background: #fff0cf; color: #80500b; }
.concepts-visual .cv-bands th { font: 700 9px/1.5 sans-serif; letter-spacing: .04em; padding-top: 14px; padding-bottom: 14px; white-space: normal; }
.cv-model-table { min-width: 570px; }
.cv-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.concepts-visual .cv-legend-title { margin-top: 24px; font-size: 14px; font-weight: 650; }
.concepts-visual .cv-legend { margin: 12px 0 0; font-size: 13px; color: var(--cv-muted); gap: 12px; }
.cv-legend > div { padding: 14px; border: 1px solid var(--cv-line); border-radius: 10px; background: #fff; }
.cv-legend dt { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--cv-muted); }
.concepts-visual .cv-legend dd { margin: 10px 0 0; }
.cv-legend dd strong { display: block; font-size: 15px; font-weight: 650; color: var(--cv-ink); }
.cv-legend dd span { display: block; margin-top: 6px; line-height: 1.65; }
.cv-swatch { display: inline-block; width: 16px; height: 16px; flex-shrink: 0; border-radius: 4px; border: 2px solid currentColor; }
.cv-mapping-flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.cv-mapping-stage { min-width: 0; padding: 16px; border: 1px solid var(--cv-line); border-radius: 12px; background: #fff; }
.cv-mapping-code { margin: 12px 0 0; padding: 12px; overflow-x: auto; border: 1px solid var(--cv-line); border-radius: 8px; background: #f6f9fc; }
.concepts-visual .cv-mapping-code code { display: block; padding: 0; background: none; color: #274365; font: 11px/1.7 monospace; white-space: pre; }
.cv-mapping-arrow { color: #6087b2; font-size: 24px; line-height: 1; text-align: center; }
.concepts-visual .cv-takeaway {
  border-top: 1px solid var(--cv-line);
  padding-top: 16px;
  margin: 22px 0 0;
  font-size: 12px;
  color: var(--cv-muted);
}
.cv-takeaway strong { color: var(--cv-ink); }
.md-typeset .cv-function-subtitle { margin-top: -.5em; font-size: 16px; font-weight: 400; color: var(--md-default-fg-color--light); }
.cv-transform { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); align-items: center; gap: 12px; }
.cv-transform > div:not(.cv-arrow) { min-width: 0; overflow-x: auto; }
.cv-arrow { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cv-arrow span { font-size: 10px; font-weight: 650; color: #526b8a; }
.cv-arrow b { font-size: 30px; font-weight: 400; color: #6087b2; line-height: 1.3; }
.cv-endpoint { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: #edf2f8; border: 1px dashed #9bb0c9; border-radius: 12px; padding: 22px 12px; }
.cv-endpoint > span:not(.cv-endpoint-icon) { color: var(--cv-muted); font-size: 12px; }
.cv-endpoint-icon { display: grid; place-items: center; width: 42px; height: 42px; background: #162b46; color: #a5f3fc; border-radius: 12px; font-size: 24px; }
.concepts-visual .cv-detail { color: var(--cv-muted); font-size: 12px; margin-top: 12px; }
.cv-muted-row { color: #66768a; background: #f3f5f8; text-decoration: line-through; }
.cv-spec-tree { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cv-spec-tree > div { padding: 16px; border: 1px solid var(--cv-line); border-radius: 10px; background: #fff; }
.cv-spec-tree strong, .cv-spec-tree span { display: block; }
.cv-spec-tree strong { font: 650 14px monospace; }
.cv-spec-tree span { margin: 6px 0 12px; font-size: 12px; color: var(--cv-muted); }
.cv-spec-tree .cv-spec-entity { grid-column: 1 / -1; }
.cv-spec-nested { margin: 12px 0 0 8px; padding-left: 16px; border-left: 2px solid #bdccdf; }
.cv-spec-example { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--cv-line); }
.cv-spec-code { min-width: 0; }
.concepts-visual .cv-spec-code pre { margin: 0; border: 1px solid var(--cv-line); border-radius: 10px; background: #edf2f8; overflow-x: auto; }
.concepts-visual .cv-spec-code pre code { display: block; padding: 16px; font: 12px/1.8 monospace; white-space: pre; }
.cv-spec-code code span { padding: 2px 3px; border-radius: 3px; }
.concepts-visual .cv-spec-notes { margin: 0; }
.cv-spec-notes > div { margin-bottom: 16px; }
.cv-spec-notes dt { display: inline-block; font-size: 13px; font-weight: 650; padding: 2px 6px; border-radius: 4px; }
.concepts-visual .cv-spec-notes dd { margin: 6px 0 0; font-size: 13px; color: var(--cv-muted); }
.cv-spec-notes dd span { padding: 2px 4px; border-radius: 3px; }
@media (max-width: 760px) {
  .av-journey { gap: 8px; }
  .av-legend { grid-template-columns: 1fr 1fr; }
  .av-phase { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .av-phase .cv-tag, .av-phase h3, .av-flow { grid-column: 1; grid-row: auto; }
  .av-flow { flex-direction: column; }
  .av-connector { min-width: 0; min-height: 38px; }
  .av-connector b { transform: none; }
  .cv-entity { grid-template-columns: 1fr; }
  .cv-pump { width: 260px; max-width: 100%; margin: auto; }
  .cv-scope, .cv-legend { grid-template-columns: 1fr; }
  .av-legend { grid-template-columns: 1fr 1fr; }
  .cv-entity, .cv-dataset, .cv-operation { padding: 20px; }
  .cv-transform { grid-template-columns: 1fr; gap: 18px; }
  .cv-arrow b { transform: rotate(90deg); }
  .cv-spec-tree, .cv-spec-example { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .cv-operation { transition: box-shadow .2s ease, border-color .2s ease; }
  .cv-operation:hover { border-color: #9bb0c9; box-shadow: 0 12px 32px #162b4612; }
}
