.vp-hero h1 { max-width: 20ch; }
section[id] { scroll-margin-top: 64px; }

.vp-list { padding-left: 18px; margin: 0; color: var(--muted); }
.vp-list li { margin-bottom: 10px; }
.vp-list li:last-child { margin-bottom: 0; }
.vp-list strong { color: var(--ink); }

/* Flow diagram */
.flow {
  display: grid; grid-template-columns: 1.2fr auto 1fr auto 1fr auto 1.1fr;
  gap: 14px; align-items: center; margin: 36px 0 28px;
}
.flow-label { font: 600 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.flow-chips { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.flow-chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 0.92rem; }
.flow-chips.out li { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.flow-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: 0.95rem; }
.flow-box.gate { border: 2px solid var(--ink); }
.flow-arrow { font-size: 1.5rem; color: var(--accent); text-align: center; padding-top: 18px; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 6px; }
  .flow-arrow { transform: rotate(90deg); padding: 0; line-height: 1.4; }
  .flow-chips { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
.vp-facts .stat { font-size: 1.6rem; }

/* Downloads: four cards */
.dl-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .dl-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dl-grid.four { grid-template-columns: 1fr; } }
.dl-grid.four .dl-name { word-break: break-word; }

.snippet.full summary { cursor: pointer; list-style: none; }
.snippet.full summary::-webkit-details-marker { display: none; }
.snippet.full:not([open]) summary { border-bottom: 0; }
.snippet.full pre { max-height: 420px; overflow: auto; }

/* Tables */
.vp-subhead { margin: 44px 0 10px; font-size: 1.2rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.vp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.vp-table th { text-align: left; font: 600 0.72rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.vp-table th, .vp-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.vp-table tbody tr:last-child td { border-bottom: 0; }
.vp-table td:first-child { font-weight: 600; white-space: nowrap; }
.vp-table.raid { min-width: 820px; }
.vp-table.raid td:first-child { font-family: var(--mono); color: var(--accent); }
.vp-table.raid td:nth-child(5), .vp-table.raid td:nth-child(6) { white-space: nowrap; }
.vp-table .ns { color: var(--accent); font-weight: 600; }
.vp-note { margin-top: 16px; font-size: 0.92rem; max-width: 760px; }

/* Worked example */
.vp-inputs { margin-top: 32px; }
.vp-inputs figure { margin: 0; }
.vp-inputs figcaption { font: 600 0.75rem var(--mono); color: var(--accent); margin-bottom: 10px; }
.vp-inputs blockquote { margin: 0; font-size: 0.95rem; color: var(--muted); }
.vp-inputs blockquote strong { color: var(--ink); }
.vp-after { margin-top: 20px; }
.rag { display: inline-block; font: 600 0.8rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; }
.rag.amber { background: #fde9c4; color: #7a4a00; }
@media (prefers-color-scheme: dark) { .rag.amber { background: #3d2c0a; color: #f5c56b; } }
.vp-callout { margin-top: 24px; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; max-width: 820px; }

.vp-guard li { color: var(--muted); }
