/* RAG Mesh Router — routing demonstration front door.
   Scoped to .demo so the Topology Lab shell keeps its own styling. */

.demo {
  --line: rgba(172, 219, 255, .16);
  --line-2: rgba(172, 219, 255, .28);
  --panel: rgba(172, 219, 255, .04);
  --card: rgba(172, 219, 255, .06);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

body.lab-mode .demo { display: none; }

/* header ------------------------------------------------------------ */
.demo-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: 18px 0; margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}
.demo-brand h1 { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: .01em; }
.demo-brand p {
  font-family: var(--mono); font-size: 11px; color: var(--text-muted);
  margin-top: 2px; letter-spacing: .02em;
}
.demo-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.demo-nav a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.demo-nav a:hover { color: var(--accent); }

/* intro -------------------------------------------------------------- */
.demo-intro { padding: 72px 0 26px; }
.demo-intro h2 {
  max-width: 22ch; font-size: clamp(28px, 4.6vw, 42px); font-weight: 200;
  letter-spacing: -.03em; line-height: 1.1; color: var(--accent);
}
.demo-subhead {
  margin-top: 14px !important; font-size: 17px !important;
  color: var(--text-primary) !important; font-weight: 400;
  max-width: 36ch; line-height: 1.35 !important;
}
.demo-intro > p {
  margin-top: 18px; font-size: 16px; color: var(--text-secondary);
  max-width: 68ch; line-height: 1.65;
}
.demo-audience {
  margin-top: 14px !important; font-size: 14px !important;
  color: var(--text-muted) !important; max-width: 70ch;
}
.demo-card-blurb {
  font-size: 13px; color: var(--text-secondary); line-height: 1.55;
  margin: 0 0 12px;
}
.demo-grid-open {
  margin-top: 18px;
}
.demo-kicker {
  margin: 0 0 12px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--text-muted);
}
.demo-intro > .demo-kicker { margin: 0 0 14px; font-size: 10px; }

/* illustrative enterprise mesh -------------------------------------- */
.mesh-example {
  margin: 30px 0 0;
  padding: 24px 26px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.mesh-example figcaption { text-align: center; }
.mesh-example figcaption .demo-kicker { display: block; margin-bottom: 8px; }
.mesh-example h3 {
  color: var(--text-primary); font-size: clamp(18px, 3vw, 24px);
  font-weight: 300; line-height: 1.25; letter-spacing: -.02em;
}
.mesh-example-map {
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr);
  grid-template-areas:
    "marketing router manufacturing"
    ". finance .";
  align-items: center; gap: 42px 62px;
  margin-top: 26px;
}
.mesh-example-map::before,
.mesh-example-map::after {
  content: ""; position: absolute; z-index: -1;
  background: var(--line-2);
}
.mesh-example-map::before { height: 1px; left: 20%; right: 20%; top: 65px; }
.mesh-example-map::after { width: 1px; left: 50%; top: 65px; bottom: 65px; }
.mesh-domain,
.mesh-router {
  min-width: 0; text-align: center;
  border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--bg-main); padding: 16px 14px;
}
.mesh-domain-marketing { grid-area: marketing; }
.mesh-domain-manufacturing { grid-area: manufacturing; }
.mesh-domain-finance { grid-area: finance; }
.mesh-domain-id,
.mesh-router > span {
  display: block; margin-bottom: 8px; color: var(--text-muted);
  font-family: var(--mono); font-size: 9px; letter-spacing: .11em;
}
.mesh-domain h4,
.mesh-router strong {
  display: block; color: var(--text-primary); font-size: 14px; font-weight: 600;
}
.mesh-domain p,
.mesh-router p {
  margin-top: 7px; color: var(--text-secondary); font-size: 11.5px; line-height: 1.45;
}
.mesh-domain small,
.mesh-router small {
  display: block; margin-top: 9px; color: var(--text-muted);
  font-family: var(--mono); font-size: 9.5px; line-height: 1.35;
}
.mesh-router {
  grid-area: router; border-color: var(--accent);
  background: rgba(172, 219, 255, .1); box-shadow: 0 0 24px rgba(172, 219, 255, .08);
}
.mesh-router > span,
.mesh-router strong { color: var(--accent); }
.mesh-example-rule {
  margin-top: 22px; text-align: center; color: var(--text-muted);
  font-family: var(--mono); font-size: 10px; line-height: 1.55;
}
.mesh-example-context {
  margin-top: 30px;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .mesh-example { padding: 22px 18px 18px; }
  .mesh-example-map {
    grid-template-columns: 1fr;
    grid-template-areas: "router" "marketing" "manufacturing" "finance";
    gap: 18px; max-width: 360px; margin: 24px auto 0;
  }
  .mesh-example-map::before { display: none; }
  .mesh-example-map::after { left: 50%; top: 40px; bottom: 40px; }
  .mesh-domain, .mesh-router { width: 100%; }
}

/* joined workspace — how it works + nodes + ask ---------------------- */
.demo-workspace {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}
.demo-ws-how {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .12);
}
.demo-ws-how > details > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  user-select: none;
}
.demo-ws-how > details > summary::-webkit-details-marker { display: none; }
.demo-ws-how > details > summary::after {
  content: "+"; margin-left: auto; font-family: var(--mono);
  color: var(--accent); font-size: 14px;
}
.demo-ws-how > details[open] > summary::after { content: "\2212"; }
.demo-ws-how .demo-kicker { margin: 0; }
.demo-ws-how-line { font-size: 13px; color: var(--text-muted); }
.demo-ws-how-body {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
#primer-title {
  color: var(--accent); font-size: clamp(18px, 2.8vw, 24px);
  font-weight: 300; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 10px;
}
.demo-ws-how-body > p {
  color: var(--text-secondary); font-size: 14px; line-height: 1.7; max-width: 70ch;
}
.demo-flow {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0; margin: 18px 0 0; list-style: none; border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
}
.demo-flow li { min-height: 0; padding: 14px; border-right: 1px solid var(--line); }
.demo-flow li:last-child { border-right: 0; }
.demo-flow span {
  display: block; margin-bottom: 12px; color: var(--accent);
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
}
.demo-flow b { color: var(--text-primary); font-size: 13px; font-weight: 600; }
.demo-flow p { margin-top: 7px; color: var(--text-muted); font-size: 12.5px; line-height: 1.55; }
.demo-principles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; padding-top: 18px;
}
.demo-principles article { padding-left: 13px; border-left: 2px solid var(--line-2); }
.demo-principles b { color: var(--text-primary); font-size: 12.5px; font-weight: 600; }
.demo-principles p { margin-top: 6px; color: var(--text-muted); font-size: 11.5px; line-height: 1.55; }

.demo-ws-nodes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.demo-ws-node {
  padding: 16px 16px 18px;
  border-right: 1px solid var(--line);
}
.demo-ws-node:last-child { border-right: 0; }
.demo-ws-node-top {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.demo-ws-node-top b { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.demo-ws-node-top .state {
  margin-left: auto; font-family: var(--mono); font-size: 10px;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em;
}
.demo-ws-node > p {
  font-size: 12.5px; color: var(--text-muted); line-height: 1.5;
}
.demo-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--semantic-pass); box-shadow: 0 0 8px var(--semantic-pass);
}
.demo-dot.checking { background: var(--text-muted); box-shadow: none; }
.demo-dot.down { background: var(--semantic-fail); box-shadow: 0 0 8px var(--semantic-fail); }

.demo-ws-ask { padding: 18px; }
.demo-lede {
  font-size: 15.5px; color: var(--text-muted);
  margin-bottom: 16px; line-height: 1.62; max-width: 75ch;
}
.demo-starters { display: grid; gap: 7px; margin-bottom: 18px; }
.demo-starter {
  text-align: left; font: inherit; font-size: 13.5px; color: var(--text-secondary);
  background: transparent; border: 1px solid var(--line); border-radius: 7px;
  padding: 11px 13px; cursor: pointer; transition: .15s;
}
.demo-starter:hover { border-color: var(--line-2); color: var(--accent); background: rgba(172, 219, 255, .05); }
.demo-starter em {
  font-style: normal; font-family: var(--mono); font-size: 10.5px;
  color: var(--text-muted); display: block; margin-top: 4px; letter-spacing: .03em;
}
.demo-field { display: flex; gap: 9px; }
.demo-field input {
  flex: 1; min-width: 0; font: inherit; font-size: 14.5px; padding: 12px 15px;
  border: 1px solid var(--line-2); border-radius: 7px;
  background: rgba(0, 0, 0, .28); color: var(--text-primary);
}
.demo-field input::placeholder { color: var(--text-muted); }
.demo-field button {
  font: inherit; font-size: 13.5px; font-weight: 600; padding: 12px 22px;
  border: 1px solid var(--accent); border-radius: 7px;
  background: var(--accent); color: var(--bg-main); cursor: pointer; white-space: nowrap;
}
.demo-field button[disabled] { opacity: .5; cursor: progress; }

/* sticky pipeline — shown only after send ------------------------------ */
.demo-pipe {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  position: sticky; top: 8px; z-index: 5;
  background: rgba(13, 25, 53, .94);
  backdrop-filter: blur(8px);
  scroll-margin-top: 8px;
}
.demo-pipe[hidden] { display: none; }
.demo-pipe-step {
  padding: 11px 8px; text-align: center; border-right: 1px solid var(--line);
  opacity: .35; transition: opacity .3s ease, background .3s ease;
}
.demo-pipe-step:last-child { border-right: 0; }
.demo-pipe-step span {
  display: block; font-family: var(--mono); font-size: 10px;
  color: var(--accent); letter-spacing: .08em; margin-bottom: 3px;
}
.demo-pipe-step b { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.demo-pipe-step.is-active {
  opacity: 1; background: rgba(172, 219, 255, .08);
}
.demo-pipe-step.is-done { opacity: .85; }
.demo-pipe-step.is-active::after {
  content: ""; display: block; height: 2px; margin: 8px 12% 0;
  background: var(--accent);
}

/* stages ------------------------------------------------------------- */
.demo-stages {
  margin-top: 8px;
  scroll-margin-top: 64px;
}
.demo-stages.is-active {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.demo-stage {
  border-top: 1px solid var(--line);
  padding: 22px 0 14px;
  scroll-margin-top: 64px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}
.demo-stage.is-in {
  opacity: 1;
  transform: none;
}
.demo-stage:last-child { padding-bottom: 48px; }
.demo-stage.is-answer {
  border-top-color: var(--line-2);
  padding-top: 26px;
}
.demo-sh { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.demo-num {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  border: 1px solid var(--line-2); width: 22px; height: 22px; border-radius: 4px;
  display: grid; place-items: center; flex: none;
}
.demo-sh h3 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted);
}
.demo-stage.is-answer .demo-sh h3 { color: var(--text-primary); }
.demo-sh .rail {
  margin-left: auto; font-family: var(--mono); font-size: 10px;
  color: var(--text-muted); letter-spacing: .08em;
}
.demo-badge {
  margin-left: auto; font-family: var(--mono); font-size: 10px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
}
.demo-badge.is-live { color: var(--semantic-warn); }
.demo-badge.is-ok { color: var(--semantic-pass); }
.demo-q { font-size: 21px; font-weight: 300; letter-spacing: -.015em; line-height: 1.35; color: var(--accent); }

.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 12.5px; color: var(--text-muted);
}
.demo-chip.is-on {
  border-color: rgba(52, 211, 153, .45); color: var(--semantic-pass);
}
.demo-chip i {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
}

.demo-ev-row {
  display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); font-size: 13.5px; color: var(--text-secondary);
  margin-bottom: 8px;
}
.demo-ev-row b { color: var(--accent); font-weight: 600; flex: 0 0 auto; }
.demo-ev-row .demo-ev-copy {
  flex: 1 1 16rem; min-width: 0; line-height: 1.45; color: var(--text-secondary);
}
.demo-ev-row .meta {
  margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--text-muted);
  flex: 0 0 auto;
}

.demo-consult {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.55;
}
.demo-consult .demo-ellipsis::after {
  content: "";
  animation: demo-dots 1.2s steps(4, end) infinite;
}
@keyframes demo-dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

.demo-dive {
  margin-top: 10px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(0, 0, 0, .15);
}
.demo-dive > summary {
  list-style: none; cursor: pointer; padding: 10px 12px;
  font-size: 12.5px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px; user-select: none;
}
.demo-dive > summary::-webkit-details-marker { display: none; }
.demo-dive > summary::after {
  content: "+"; margin-left: auto; font-family: var(--mono); color: var(--accent);
}
.demo-dive[open] > summary::after { content: "\2212"; }
.demo-dive[open] > summary {
  border-bottom: 1px solid var(--line); color: var(--text-secondary);
}
.demo-dive-body { padding: 12px 14px; }

/* Answer bonanza — visible payoff */
.demo-ans-panel {
  margin-top: 4px; padding: 22px 20px 18px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: linear-gradient(180deg, rgba(172, 219, 255, .07), rgba(172, 219, 255, .02));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}
.demo-ans-lead {
  font-size: clamp(16px, 2.8vw, 22px); font-weight: 300;
  letter-spacing: -.02em; line-height: 1.35; color: var(--accent);
  margin: 0 0 14px;
}
.demo-ans-body {
  font-size: 15.5px; color: var(--text-secondary); line-height: 1.65;
}
.demo-ans-body p { margin-bottom: 12px; }
.demo-ans-body p:last-child { margin-bottom: 0; }
.demo-ans-body strong { color: var(--text-primary); font-weight: 600; }
.demo-ans-body ul, .demo-ans-body ol { margin: 0 0 12px 1.2em; }
.demo-ans-body li { margin: 4px 0; }

@media (prefers-reduced-motion: reduce) {
  .demo-stage { opacity: 1; transform: none; transition: none; }
  .demo-consult .demo-ellipsis::after { content: "..."; animation: none; }
  .demo-pipe-step { transition: none; }
}

.demo-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.demo-table th {
  text-align: left; font-family: var(--mono); font-size: 10px;
  letter-spacing: .11em; text-transform: uppercase; color: var(--text-muted);
  font-weight: 500; padding: 0 0 11px;
}
.demo-table td { padding: 13px 0; border-top: 1px solid var(--line); vertical-align: top; }
.demo-table td:first-child { font-weight: 500; width: 30%; color: var(--text-primary); }
.demo-table td.why { color: var(--text-secondary); width: 45%; }
.demo-dec {
  display: inline-flex; align-items: center; font-family: var(--mono);
  font-size: 10.5px; font-weight: 500; padding: 3px 9px; border-radius: 4px;
  letter-spacing: .05em; text-transform: uppercase;
}
.demo-dec.on { border: 1px solid var(--semantic-pass); color: var(--semantic-pass); }
.demo-dec.off { border: 1px solid var(--line); color: var(--text-muted); }

.demo-ev {
  border: 1px solid var(--line); border-left: 2px solid var(--line-2);
  border-radius: 0 8px 8px 0; padding: 16px 18px; margin-bottom: 10px; background: var(--card);
}
.demo-evh {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 9px; flex-wrap: wrap;
}
.demo-evh b { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.demo-src { font-family: var(--mono); font-size: 10.5px; color: var(--text-muted); }
.demo-ev p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; }
.demo-bound {
  margin-top: 9px; font-family: var(--mono); font-size: 10.5px;
  color: var(--text-muted); letter-spacing: .03em;
}
.demo-tech { margin-top: 13px; border: 1px solid var(--line); border-radius: 7px; }
.demo-tech summary {
  cursor: pointer; padding: 10px 14px; font-family: var(--mono);
  font-size: 11.5px; color: var(--text-muted); list-style: none; letter-spacing: .05em;
}
.demo-tech summary::-webkit-details-marker { display: none; }
.demo-tech summary::before { content: "[+] "; }
.demo-tech[open] summary::before { content: "[\2212] "; }
.demo-tech .tb {
  padding: 0 14px 13px; font-family: var(--mono); font-size: 11px;
  color: var(--text-muted); line-height: 1.9; white-space: pre-wrap;
}

.demo-attr {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  padding: 0; border: 0;
  color: var(--accent); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em;
}
.demo-note {
  font-family: var(--mono); font-size: 11px; color: var(--text-muted);
  margin-top: 4px; line-height: 1.8;
}
.demo-ans-panel .demo-sources {
  margin-top: 16px;
  background: rgba(0, 0, 0, .12);
}
.demo-err {
  border: 1px solid var(--semantic-fail); border-radius: 8px;
  padding: 12px 14px; color: var(--text-primary); font-size: 13.5px;
}

/* Sources — collapsed by default, expand on demand */
.demo-sources {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}
.demo-sources summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.demo-sources summary::-webkit-details-marker { display: none; }
.demo-sources summary::after {
  content: "+";
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
}
.demo-sources[open] summary::after { content: "\2212"; }
.demo-sources[open] summary {
  border-bottom: 1px solid var(--line);
  color: var(--text-secondary);
}
.demo-sources-body {
  padding: 14px 16px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.demo-sources-body p { margin-bottom: 10px; }
.demo-sources-body a { color: var(--accent); word-break: break-all; }

/* footer — always after stages; sticks to viewport bottom when stages empty */
.demo-foot {
  margin-top: auto;
  padding-top: 8px;
}
.demo-stages:empty + .demo-foot {
  /* keep foot from colliding with ask when no results yet */
  margin-top: auto;
}

/* footer sections ---------------------------------------------------- */
.demo-more { border-top: 1px solid var(--line); margin-top: 20px; }
.demo-specs { border-bottom: 1px solid var(--line); }
.demo-specs summary {
  cursor: pointer; padding: 19px 0; font-size: 14.5px; font-weight: 500;
  list-style: none; display: flex; justify-content: space-between; color: var(--text-primary);
}
.demo-specs summary::-webkit-details-marker { display: none; }
.demo-specs summary::after { content: "+"; color: var(--text-muted); }
.demo-specs[open] summary::after { content: "\2212"; }
.demo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 10px; padding-bottom: 22px;
}
.demo-card { border: 1px solid var(--line); border-radius: 8px; padding: 15px; background: var(--card); }
.demo-card h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 9px; color: var(--accent); }
.demo-card dl { font-family: var(--mono); font-size: 11px; color: var(--text-secondary); line-height: 2; }
.demo-card dt { display: inline; color: var(--text-muted); }
.demo-card dd { display: inline; margin: 0; }
.demo-card a { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--accent); text-decoration: none; }
.demo-card a:hover { text-decoration: underline; }

.demo-links { display: flex; gap: 10px; flex-wrap: wrap; padding: 26px 0 0; }
.demo-link {
  flex: 1; min-width: 240px; border: 1px solid var(--line); border-radius: 9px;
  padding: 17px; text-decoration: none; color: inherit; transition: .15s;
  background: var(--panel); font: inherit; text-align: left; cursor: pointer;
}
.demo-link:hover { border-color: var(--line-2); }
.demo-link b { display: block; font-size: 14px; font-weight: 500; margin-bottom: 5px; color: var(--accent); }
.demo-link span { font-size: 12.5px; color: var(--text-muted); }

@media (max-width: 720px) {
  .demo-ws-nodes { grid-template-columns: 1fr; }
  .demo-ws-node { border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-ws-node:last-child { border-bottom: 0; }
  .demo-flow { grid-template-columns: 1fr 1fr; }
  .demo-flow li:nth-child(2) { border-right: 0; }
  .demo-flow li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .demo-principles { grid-template-columns: 1fr; gap: 16px; }
  .demo-table td:first-child { width: auto; }
  .demo-field { flex-direction: column; }
  .demo-pipe { grid-template-columns: repeat(2, 1fr); }
  .demo-pipe-step:nth-child(2) { border-right: 0; }
  .demo-pipe-step:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
