/* Design system illustrations — shared stylesheet for the nine standalone
   figure HTML files embedded as iframes inside the
   "Design Systems: A Practical Guide" article body.
   The viz markup itself is mostly the work of the article author; this file
   just hosts the styles so each per-figure HTML can stay short. */

:root {
  --bg-page: #141517;
  --viz-bg: #1f2023;
  --viz-bg-2: #26272a;
  --surface: #2c2d31;
  --surface-2: #34353a;
  --surface-3: #3d3f44;
  --line: #4a4c52;
  --line-soft: #3a3b3f;
  --ink: #ecebe7;
  --ink-soft: #a8a7a3;
  --ink-mute: #74757a;
  --accent: oklch(0.68 0.16 22);
  --accent-2: oklch(0.72 0.12 200);
  --accent-3: oklch(0.78 0.13 140);
  --accent-4: oklch(0.78 0.12 75);
  --radius: 14px;
  --stroke: 1.5px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* When the figure stands alone inside an iframe it fills the viewport */
body.embed {
  height: 100vh;
  display: block;
}

body.embed figure.viz {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  border: 0;
  margin: 0;
  aspect-ratio: auto;
}

figure.viz {
  width: 100%;
  max-width: 1320px;
  margin: 0;
  background: var(--viz-bg);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1320 / 620;
  position: relative;
  border: 1px solid #2a2b2f;
}

figure.viz .label {
  position: absolute;
  top: 22px;
  left: 26px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  z-index: 5;
}
figure.viz .label .num {
  color: var(--ink-soft);
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}
figure.viz figcaption {
  position: absolute;
  bottom: 22px;
  left: 26px;
  font-size: 12px;
  color: var(--ink-mute);
  font-style: italic;
}

/* 1. Atomic hierarchy */
.v-atomic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.v-atomic .row {
  display: flex;
  align-items: flex-end;
  gap: 90px;
  padding: 0 80px;
}
.v-atomic .stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.v-atomic .stack .cap {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.4;
}
.v-atomic .stack .cap b { color: var(--ink); font-weight: 500; }

.a-shape {
  border: var(--stroke) solid var(--ink);
  border-radius: 50px;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 8px;
}
.a-dot {
  background: var(--ink-mute);
  border-radius: 50%;
  width: 14px;
  height: 14px;
}
.a-pair { display: flex; gap: 2px; }
.a-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px;
}
.a-row3 {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 2. Tokens */
.v-tokens {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100%;
}
.v-tokens .side {
  border-right: 1px solid var(--line-soft);
  padding: 56px 22px 22px;
  background: var(--viz-bg-2);
}
.v-tokens .side .group-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 18px 0 10px;
  font-weight: 500;
}
.v-tokens .side .item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.v-tokens .side .item.active {
  background: var(--surface);
  color: var(--ink);
}
.v-tokens .side .item .count {
  font-size: 11px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.v-tokens .side .item.sub { padding-left: 22px; font-size: 12.5px; }

.v-tokens .table {
  padding: 56px 28px 22px;
  overflow: hidden;
}
.v-tokens .thead, .v-tokens .trow {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  align-items: center;
}
.v-tokens .thead {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 500;
}
.v-tokens .trow {
  padding: 11px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
}
.v-tokens .trow.section-row {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  padding: 12px 0 6px;
  border-bottom: none;
  text-transform: lowercase;
}
.v-tokens .trow .name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.v-tokens .trow .swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.v-tokens .trow .val {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.v-tokens .trow .chip {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

/* 3. Buttons */
.v-buttons {
  padding: 56px 60px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.7fr;
  grid-template-rows: repeat(5, 1fr);
  gap: 14px 24px;
  align-content: center;
  height: 100%;
}
.btn {
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  gap: 12px;
  padding: 0 18px;
  border: 1.5px solid transparent;
  font-family: inherit;
  user-select: none;
}
.btn .arr { font-size: 14px; opacity: 0.85; }
.btn-primary { background: var(--ink); color: #18191b; }
.btn-secondary { background: var(--surface-2); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }

.btn.hover { filter: brightness(0.92); }
.btn-secondary.hover { background: var(--surface-3); }
.btn-line.hover { background: var(--surface); }
.btn.pressed { transform: translateY(1px); filter: brightness(0.82); }
.btn-secondary.pressed { background: var(--surface-3); }
.btn.disabled { opacity: 0.35; }
.btn.loading .arr { display: none; }
.btn.loading .ldr {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid currentColor; border-right-color: transparent;
  display: inline-block;
}

.icon-row { display: flex; gap: 8px; justify-self: end; }
.icon-btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: inherit;
  font-size: 14px;
}
.icon-btn.primary { background: var(--ink); color: #18191b; }
.icon-btn.secondary { background: var(--surface-2); color: var(--ink); }
.icon-btn.line { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.icon-btn.sm { width: 36px; height: 36px; font-size: 12px; border-radius: 10px; }

/* 4. Patterns / reuse */
.v-pattern {
  display: grid;
  grid-template-columns: 1fr 220px 1fr;
  align-items: center;
  height: 100%;
  padding: 0 80px;
  gap: 40px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card .img {
  background: var(--surface-2);
  border-radius: 8px;
  aspect-ratio: 16/10;
  width: 100%;
}
.v-pattern .left .card .img { aspect-ratio: 16/9; min-height: 180px; }
.card .ttl { font-size: 16px; font-weight: 600; color: var(--ink); }
.card .desc { font-size: 13px; color: var(--ink-soft); }
.card .act {
  margin-top: 6px;
  align-self: flex-start;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink);
}
.v-pattern .left { max-width: 320px; justify-self: end; }
.v-pattern .right {
  display: flex; flex-direction: column; gap: 18px;
  max-width: 360px;
}
.v-pattern .right .card.compact { padding: 16px; }
.v-pattern .right .card.compact .img { display: none; }
.v-pattern .right .card.no-action .act { display: none; }
.v-pattern .right .card.no-action .desc { display: none; }
.v-pattern .branch svg { width: 100%; height: 200px; }

/* 5. Modes */
.v-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}
.v-modes .pane {
  position: relative;
  padding: 60px 60px 40px;
  display: flex;
  align-items: center;
}
.v-modes .pane.light { background: #f4f2ee; }
.v-modes .pane.dark { background: #1a1b1d; }
.v-modes .pane .mode-tag {
  position: absolute; top: 22px; right: 26px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500;
}
.v-modes .light .mode-tag { color: #6a6a66; }
.v-modes .dark .mode-tag { color: var(--ink-mute); }

.widget {
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 460px;
  border: 1px solid transparent;
}
.widget .col { display: flex; flex-direction: column; gap: 2px; }
.widget .name { font-size: 15px; font-weight: 600; }
.widget .sub { font-size: 13px; }
.widget .actions { margin-left: auto; display: flex; gap: 6px; }
.widget .ic {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid;
  font-size: 14px;
}

.widget.light {
  background: #ffffff;
  border-color: #ECECEC;
  color: #18191b;
}
.widget.light .sub { color: #74757a; }
.widget.light .ic { border-color: #ECECEC; color: #18191b; background: #fff; }

.widget.dark {
  background: #000;
  color: #fff;
  border-color: #2a2b2d;
}
.widget.dark .sub { color: #a8a7a3; }
.widget.dark .ic { border-color: #2c2d2f; color: #fff; background: #000; }

/* 6. Versioning */
.v-versions {
  padding: 70px 80px 50px;
  height: 100%;
}
.v-versions table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 14px 10px;
}
.v-versions th, .v-versions td {
  text-align: left;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 400;
  padding: 0;
}
.v-versions .row-title {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.v-versions .row-sub {
  color: var(--ink-soft);
  padding-left: 18px;
  font-weight: 500;
}
.v-versions .group-h {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding-top: 18px;
}
.v-versions .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line-soft);
}
.v-versions .pill.muted {
  background: transparent;
  color: var(--ink-mute);
  border-style: dashed;
  border-color: var(--line-soft);
}
.v-versions .pill.use {
  background: rgba(255,255,255,0.04);
  color: var(--ink-soft);
  font-weight: 500;
  border-color: var(--line-soft);
}
.v-versions .pair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.v-versions .pair .arrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.v-versions .pair .uses {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.v-versions .pill.dot::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3);
}

/* 7. Documentation */
.v-docs {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  height: 100%;
}
.v-docs .nav {
  border-right: 1px solid var(--line-soft);
  padding: 60px 18px;
  background: var(--viz-bg-2);
  font-size: 12.5px;
}
.v-docs .nav .brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 600; margin-bottom: 28px; font-size: 13px;
}
.v-docs .nav .brand .sq {
  width: 18px; height: 18px; background: var(--ink); border-radius: 4px;
  display: grid; place-items: center; color: #18191b; font-size: 11px;
}
.v-docs .nav h6 {
  font-size: 10.5px; letter-spacing: 0.16em; color: var(--ink-mute);
  text-transform: uppercase; margin: 18px 0 10px; font-weight: 500;
}
.v-docs .nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--ink-soft);
  text-decoration: none;
}
.v-docs .nav a.on { background: var(--surface); color: var(--ink); }

.v-docs .main {
  padding: 50px 36px;
  overflow: hidden;
}
.v-docs .main .crumbs {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 12px; font-weight: 500;
}
.v-docs .main h2 {
  font-size: 26px; margin: 0 0 14px; letter-spacing: -0.01em;
}
.v-docs .main p {
  font-size: 13px; color: var(--ink-soft); line-height: 1.6;
  max-width: 540px; margin: 0 0 20px;
}
.v-docs .main h4 { font-size: 14px; margin: 18px 0 10px; }
.v-docs .main .codeblk {
  background: #0d0e10;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.v-docs .main .codeblk .cmd { color: var(--accent-3); }

.v-docs .right {
  padding: 50px 24px;
  background: var(--viz-bg-2);
  border-left: 1px solid var(--line-soft);
}
.v-docs .right .tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.v-docs .right .tabs span {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--ink-mute);
}
.v-docs .right .tabs span.on { background: var(--surface); color: var(--ink); }
.v-docs .right .pre {
  background: #0d0e10;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.v-docs .right .pre .c { color: var(--ink-mute); }
.v-docs .right .pre .k { color: var(--accent-3); }
.v-docs .right .pre .s { color: var(--accent-4); }

/* 8. Component spec */
.v-specs {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  height: 100%;
}
.v-specs .stage {
  background: var(--surface);
  margin: 50px 30px 30px 60px;
  border-radius: 14px;
  position: relative;
  display: grid;
  place-items: center;
}
.v-specs .btnwrap {
  position: relative;
  display: inline-block;
}
.v-specs .fakebtn {
  background: var(--ink);
  color: #18191b;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.v-specs .fakebtn::before {
  content: '';
  position: absolute;
  inset: 16px 24px;
  border: 1.5px dashed var(--accent);
  border-radius: 2px;
  pointer-events: none;
}
.v-specs .dim {
  position: absolute;
  background: var(--accent);
  pointer-events: none;
}
.v-specs .dim.h { height: 1.5px; }
.v-specs .dim.v { width: 1.5px; }
.v-specs .dim::before, .v-specs .dim::after {
  content: '';
  position: absolute;
  background: var(--accent);
}
.v-specs .dim.h::before, .v-specs .dim.h::after {
  width: 1.5px; height: 8px; top: -3px;
}
.v-specs .dim.h::before { left: 0; }
.v-specs .dim.h::after { right: 0; }
.v-specs .dim.v::before, .v-specs .dim.v::after {
  height: 1.5px; width: 8px; left: -3px;
}
.v-specs .dim.v::before { top: 0; }
.v-specs .dim.v::after { bottom: 0; }

.v-specs .dim-px-l { left: 0; top: -16px; width: 24px; }
.v-specs .dim-px-r { right: 0; top: -16px; width: 24px; }
.v-specs .dim-pb-t { top: 0; right: -16px; height: 16px; }
.v-specs .dim-pb-b { bottom: 0; right: -16px; height: 16px; }
.v-specs .dim-gap { bottom: -18px; height: 1.5px; }

.v-specs .tag {
  position: absolute;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.2;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.v-specs .props {
  padding: 50px 60px 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.v-specs .props .row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.9fr;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.v-specs .props .row:first-child {
  color: var(--ink-mute);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 8px;
}
.v-specs .props .key { color: var(--ink-soft); }
.v-specs .props .tok {
  background: var(--surface);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 5px;
  justify-self: start;
  border: 1px solid var(--line-soft);
}
.v-specs .props .val {
  color: var(--ink-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
}

/* 9. Tree */
.v-tree {
  padding: 60px 60px 40px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-content: center;
  overflow: hidden;
}
.v-tree pre {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-soft);
  white-space: pre;
}
.v-tree .col h5 {
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute);
  margin: 0 0 14px; font-weight: 500;
}
.v-tree .br { color: var(--ink-mute); }
.v-tree .fold { color: var(--ink); font-weight: 600; }
.v-tree .file { color: var(--accent-2); }
.v-tree .cmt { color: var(--ink-mute); font-style: italic; }

/* ============================================================ */
/* RESPONSIVE — stack each layout below 700px                    */
/* ============================================================ */
@media (max-width: 700px) {

  figure.viz .label {
    top: 16px;
    left: 18px;
    font-size: 10px;
    letter-spacing: 0.16em;
  }
  figure.viz figcaption {
    bottom: 16px;
    left: 18px;
    font-size: 11px;
  }

  /* 1. Atomic — keep horizontal row, smaller gap & shapes */
  .v-atomic .row {
    gap: 22px;
    padding: 0 18px;
  }
  .v-atomic .stack {
    gap: 12px;
  }
  .v-atomic .stack .cap {
    font-size: 11px;
    line-height: 1.35;
  }

  /* 2. Tokens — sidebar above table */
  .v-tokens {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .v-tokens .side {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 46px 18px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
  }
  .v-tokens .side .group-title {
    width: 100%;
    margin: 6px 0 2px;
    font-size: 10px;
  }
  .v-tokens .side .item {
    padding: 4px 8px;
    font-size: 11.5px;
  }
  .v-tokens .side .item.sub {
    padding-left: 12px;
    font-size: 11px;
  }
  .v-tokens .table {
    padding: 22px 18px 16px;
  }
  .v-tokens .thead,
  .v-tokens .trow {
    gap: 10px;
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .v-tokens .thead { font-size: 10px; padding: 6px 0; }
  .v-tokens .trow { font-size: 11.5px; padding: 8px 0; }
  .v-tokens .trow .val { font-size: 10.5px; gap: 6px; }

  /* 3. Buttons — 2 columns, smaller chrome */
  .v-buttons {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, auto);
    align-content: start;
    padding: 46px 22px 22px;
    gap: 8px 10px;
  }
  .btn {
    height: 38px;
    font-size: 11px;
    padding: 0 12px;
    gap: 8px;
    border-radius: 10px;
  }
  .btn .arr { font-size: 12px; }
  .icon-row {
    justify-self: start;
    gap: 6px;
  }
  .icon-btn {
    width: 38px;
    height: 38px;
    font-size: 12px;
    border-radius: 10px;
  }
  .icon-btn.sm {
    width: 32px;
    height: 32px;
    font-size: 11px;
    border-radius: 8px;
  }

  /* 4. Pattern — stack vertically; arrow hidden, alts in a row */
  .v-pattern {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 46px 22px 22px;
    gap: 14px;
  }
  .v-pattern .left {
    max-width: none;
    justify-self: stretch;
  }
  .v-pattern .branch { display: none; }
  .v-pattern .right {
    max-width: none;
    flex-direction: row;
    gap: 12px;
  }
  .v-pattern .right .card { flex: 1 1 0; padding: 14px; }
  .v-pattern .right .card .ttl { font-size: 14px; }
  .v-pattern .right .card .desc { font-size: 12px; }
  .v-pattern .left .card .img { min-height: 120px; }

  /* 5. Modes — light + dark stacked */
  .v-modes {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .v-modes .pane {
    padding: 36px 22px 22px;
  }
  .widget {
    gap: 14px;
    padding: 12px 14px;
  }
  .widget .name { font-size: 13px; }
  .widget .sub { font-size: 11.5px; }
  .widget .ic { width: 32px; height: 32px; font-size: 12px; }

  /* 6. Versions — table scrolls horizontally */
  .v-versions {
    padding: 46px 18px 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .v-versions table {
    min-width: 540px;
    border-spacing: 10px 8px;
  }
  .v-versions th,
  .v-versions td {
    font-size: 11.5px;
  }
  .v-versions .pill {
    font-size: 11px;
    padding: 5px 10px;
  }

  /* 7. Docs — nav, main, right column stacked */
  .v-docs {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .v-docs .nav {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 46px 18px 16px;
    font-size: 12px;
  }
  .v-docs .nav .brand { margin-bottom: 16px; }
  .v-docs .main {
    padding: 22px 18px 18px;
  }
  .v-docs .main h2 { font-size: 22px; }
  .v-docs .main p { font-size: 12.5px; }
  .v-docs .right {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding: 22px 18px;
  }

  /* 8. Specs — stage above props */
  .v-specs {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .v-specs .stage {
    margin: 46px 22px 14px;
    min-height: 150px;
    padding: 22px;
  }
  .v-specs .props {
    padding: 8px 22px 22px;
  }
  .v-specs .props .row {
    grid-template-columns: 1fr 1.2fr 0.7fr;
    gap: 8px;
    padding: 8px 0;
    font-size: 12px;
  }
  .v-specs .props .row:first-child {
    font-size: 9.5px;
  }
  .v-specs .props .tok,
  .v-specs .props .val {
    font-size: 10.5px;
  }

  /* 9. Tree — stack the two columns */
  .v-tree {
    grid-template-columns: 1fr;
    padding: 46px 22px 22px;
    gap: 26px;
  }
  .v-tree pre {
    font-size: 10.5px;
    line-height: 1.7;
  }
  .v-tree .col h5 {
    margin-bottom: 10px;
  }
}
