:root {
  --ink: #152822;
  --muted: #5a6b64;
  --line: #d5e0db;
  --surface: #ffffff;
  --surface-2: #f3f7f5;
  --accent: #2a6b5a;
  --accent-soft: #e4f2ed;
  --accent-dark: #1e4f43;
  --warn-bg: #fff8e8;
  --warn-line: #e0c48a;
  --danger: #a33;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --max: 1080px;
  --nav-h: 3.5rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface-2);
  line-height: 1.55;
  min-height: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--max);
  margin: 8px auto 0;
  padding: 0 1.25rem;
  min-height: var(--nav-h);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  display: block;
}
.brand span { color: var(--accent); }
.brand-tagline {
  flex: 1 1 100%;
  margin: 0;
  padding: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
  max-width: 42rem;
}
.nav {
  display: flex; flex-wrap: wrap; gap: 0.15rem 0.85rem;
  margin-left: auto; align-items: center;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.nav a:hover { color: var(--accent); }
.nav a.is-active,
.nav a[aria-current="page"] {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}
.nav .btn {
  margin-left: 0.35rem;
  border-bottom: 0;
}
.nav a.btn-primary,
.nav a.btn-primary:hover,
.nav a.btn-primary:focus,
.nav a.btn-primary.is-active,
.nav a.btn-primary[aria-current="page"] {
  color: #fff;
  border-bottom: 0;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; }

main { max-width: var(--max); margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.hero .tagline {
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.35;
  max-width: 38rem;
}
.hero .lede {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 38rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.hero-visual {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.hero-visual figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.banner {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
}

.demo-callout {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0.85rem 0 0;
  max-width: 44rem;
  line-height: 1.45;
}
.demo-callout a { font-weight: 600; }
/* Clearer separation for the content/box below the live-demo note */
.demo-callout + * {
  margin-top: 1.75rem;
}
.hero .demo-callout {
  margin-bottom: 1.75rem;
}

.section { margin: 2rem 0; }
.section h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.section h3 {
  font-size: 1.08rem;
  margin: 1.35rem 0 0.45rem;
  font-weight: 700;
}
.section p { margin: 0 0 0.85rem; color: var(--ink); }
.section p.muted,
.muted { color: var(--muted); }

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.15rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
}
.stat .k {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.stat .v {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-dark);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
table.data th,
table.data td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th {
  background: var(--surface-2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
table.data tr:last-child td { border-bottom: 0; }

.shot {
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.shot img { width: 100%; }
.shot figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

.toc {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
}
.toc h2 { font-size: 0.95rem; margin: 0 0 0.5rem; font-family: var(--font); }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: 0.25rem 0; }
.toc a { text-decoration: none; font-weight: 600; }

pre, code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
}
pre {
  background: #152822;
  color: #d7e6df;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.45;
}
code {
  background: var(--accent-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
pre code { background: transparent; padding: 0; color: inherit; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  position: relative;
  padding: 0.85rem 0.85rem 0.85rem 3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 0.65rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1.75rem 1.25rem 2.5rem;
  margin-top: 1rem;
}
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .site-footer .inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h3 {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.site-footer a { text-decoration: none; font-weight: 600; color: var(--ink); }
.site-footer a:hover { color: var(--accent); }
.site-footer .fine {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.pill-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0; }
.pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.feedback-strip {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.feedback-strip a { font-weight: 700; }
.feedback-strip code {
  font-size: 0.85em;
}

.diagram-figure {
  margin: 1rem 0 1.5rem;
}
.diagram-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
  margin: 1rem 0 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.diagram-figure .diagram-frame {
  margin: 0;
}
.diagram-svg {
  width: 100%;
  height: auto;
  display: block;
  min-width: 640px;
}
.diagram-caption {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 48rem;
}
.diagram-caption code {
  font-size: 0.85em;
}

@media (max-width: 640px) {
  .diagram-svg {
    min-width: 560px;
  }
}

.flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: stretch;
  margin: 1rem 0 1.25rem;
}
.flow-step {
  flex: 1 1 7.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  min-width: 7rem;
}
.flow-step span {
  display: inline-flex;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-right: 0.35rem;
}
.flow-step strong { display: inline; font-size: 0.9rem; }
.flow-step p {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--accent);
  font-weight: 700;
  padding: 0 0.1rem;
}

.card.highlight {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 80%, #fff) 0%, var(--surface) 55%);
}
.card.highlight .eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 700;
}
.card.highlight h3 { margin-top: 0; }
.continue-card { text-decoration: none; color: inherit; transition: border-color 0.15s ease; }
.continue-card:hover { border-color: var(--accent); }
.doc-continue { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }

.path-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.path-band a {
  text-decoration: none;
  color: var(--ink);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  min-width: 5.5rem;
}
.path-band a strong { display: block; font-size: 0.9rem; color: var(--accent-dark); }
.path-band a span { display: block; font-size: 0.72rem; color: var(--muted); }
.path-sep { color: var(--accent); font-weight: 700; }

.footer-map {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.footer-map h3 {
  margin-bottom: 0.65rem;
}
.footer-map ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
@media (min-width: 520px) {
  .footer-map ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 720px) {
  .footer-map ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .footer-map ul {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .footer-map ul {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.footer-map li {
  margin: 0;
  min-width: 0;
}
.footer-map a {
  font-weight: 600;
  font-size: 0.88rem;
  display: block;
  padding: 0.2rem 0;
  word-break: break-word;
}

.ui-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.88rem;
}
.ui-subnav strong {
  color: var(--accent-dark);
  margin-right: 0.35rem;
}
.ui-subnav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
}
.ui-subnav a:hover,
.ui-subnav a.is-active,
.ui-subnav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}
.ui-subnav a.is-active,
.ui-subnav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}
.crumb { margin: 0 0 0.35rem; font-size: 0.9rem; }
.card .thumb {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 0.65rem;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e8eeeb;
}
.section-lead {
  max-width: 44rem;
  color: var(--muted);
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
}
.card.soft {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 55%, #fff) 0%, var(--surface) 70%);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}
.plain-list {
  margin: 1rem 0 0.5rem;
  padding-left: 1.2rem;
  max-width: 44rem;
  color: var(--ink);
}
.plain-list li { margin: 0.35rem 0; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.page-title {
  font-family: var(--display);
  font-size: 2rem;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.page-lead {
  font-size: 1.05rem;
  max-width: 40rem;
  margin: 0 0 1.25rem;
  color: var(--muted);
}

@media (max-width: 700px) {
  .nav { width: 100%; margin-left: 0; }
  .site-header .inner { padding-bottom: 0.65rem; }
  .flow-arrow { display: none; }
  .path-sep { display: none; }
}

/* —— Professional flow visualizations (diagrams / fine-tuning) —— */
.viz {
  margin: 1.15rem 0 1.5rem;
  padding: 1.15rem 1.1rem 1.25rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 55%, #fff) 0%, var(--surface) 42%);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
}
.viz-caption {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.viz-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.45rem 0.35rem;
}
.viz-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.viz-node {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 7.5rem;
  max-width: 14rem;
  padding: 0.7rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
  text-align: left;
}
.viz-node strong {
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.25;
}
.viz-node span,
.viz-node small {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}
.viz-node code {
  font-size: 0.72rem;
}
.viz-node.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.viz-node.accent strong { color: #fff; }
.viz-node.accent span,
.viz-node.accent small { color: color-mix(in srgb, #fff 82%, transparent); }
.viz-node.soft {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}
.viz-node.wide { max-width: 22rem; width: 100%; }
.viz-node.decision {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: #fffef8;
  text-align: center;
  align-items: center;
}
.viz-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0 0.15rem;
  flex: 0 0 auto;
  align-self: center;
}
.viz-arrow-down {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.35rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}
.viz-arrow-down.loop {
  color: #8c6a3d;
}
.viz-pipe {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}
.viz-pipe .viz-node { max-width: none; width: 100%; }
.viz-pipe-body {
  min-width: 75vw;
  width: 100%;
}
.viz-pipe-step {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.65rem 0;
  border-left: 2px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  margin-left: 0.85rem;
  padding-left: 1rem;
  position: relative;
}
.viz-pipe-step:last-child { border-left-color: transparent; }
.viz-pipe-num {
  position: absolute;
  left: -0.95rem;
  top: 0.7rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.viz-pipe-body strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.viz-pipe-body p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}
.viz-pipe-body ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.viz-lane {
  display: grid;
  gap: 0.55rem;
  max-width: 40rem;
  margin: 0 auto;
}
.viz-lane-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: stretch;
}
.viz-lane-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.55rem 0.4rem;
  border-radius: 8px;
  background: var(--ink);
  color: #f4f7f5;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}
.viz-lane-body {
  padding: 0.65rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.viz-lane-body strong { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }
.viz-lane-body p,
.viz-lane-body ul {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.viz-lane-body ul { padding-left: 1.1rem; margin-top: 0.25rem; }
.viz-lane-join {
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin: -0.15rem 0;
  padding-left: 7.5rem;
}
.viz-topo {
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
  margin: 0 auto;
}
.viz-topo-root {
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
/* Global code uses accent-soft (#e4f2ed); that matches old text color and hid the command. */
.viz-topo-root code {
  color: #fff;
  background: transparent;
  padding: 0;
  font-weight: 600;
}
.viz-topo + .viz-caption {
  margin-top: 1.35rem;
}
.viz-topo-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.viz-topo-svc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  min-height: 100%;
}
.viz-topo-svc strong { display: block; font-size: 0.92rem; margin-bottom: 0.25rem; }
.viz-topo-svc .port {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}
.viz-topo-svc ul {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.viz-topo-svc.web {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 40%, #fff);
}
.viz-fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  width: 100%;
  max-width: 28rem;
}
.viz-fork .viz-node { max-width: none; width: 100%; }
@media (max-width: 800px) {
  .viz-topo-services { grid-template-columns: 1fr; }
  .viz-lane-item { grid-template-columns: 1fr; }
  .viz-lane-join { padding-left: 0; }
  .viz-fork { grid-template-columns: 1fr; }
}
