/* Runnable code examples in the VLA lessons */
.vla-run-panel { margin: 16px 0 4px; padding: 12px 14px; border: 1px solid var(--cobalt); border-left-width: 4px; border-radius: 8px; background: var(--panel); display: grid; gap: 6px; }
.vla-run-panel strong { font-size: 15px; }
.vla-run-hint { font-size: 14px; color: var(--ink-2); }
.vla-run-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vla-run-status { font-size: 13.5px; color: var(--ink-2); }
.vla-cell { margin: 12px 0; }
.vla-cell > pre.math { margin: 0; }
.vla-cell .vla-editor { display: block; width: 100%; box-sizing: border-box; resize: vertical; margin: 0; padding: 12px 14px; font: 14px/1.5 var(--mono); tab-size: 4; color: var(--ink); background: var(--code-bg); border: 1px solid var(--rule); border-radius: 6px 6px 0 0; white-space: pre; overflow: auto; }
.vla-cell .vla-editor:focus { outline: 2px solid var(--cobalt); outline-offset: -1px; }
.vla-cell-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 6px 6px; background: var(--paper); }
.vla-cell-note { font-size: 12.5px; color: var(--ink-3); margin-left: auto; }
.vla-cell .vla-out-label { margin: 8px 0 0 !important; }
.vla-cell pre.vla-expected { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; }
.vla-cell pre.vla-expected.is-error { border-color: var(--orange); background: var(--orange-2); color: var(--ink); }
.vla-cell.is-running pre.vla-expected { opacity: .55; }
@media (max-width: 620px) { .vla-cell-note { margin-left: 0; width: 100%; } }
.vla-cell-bar [hidden], .vla-run-panel [hidden] { display: none !important; }

/* References and citations (VLA lessons) */
.cite { font-size: .72em; line-height: 0; margin-left: 1px; }
.cite a { text-decoration: none; font-weight: 600; padding: 0 1px; }
.cite a:hover, .cite a:focus-visible { text-decoration: underline; }
.th-refs .ref-list { padding-left: 1.6em; display: grid; gap: 14px; }
.th-refs .ref-list li { scroll-margin-top: 80px; }
.th-refs .ref-list li:target { outline: 2px solid var(--accent, #7aa2ff); outline-offset: 4px; border-radius: 4px; }
.th-refs .ref-list p { margin: 0 0 4px; }
.ref-title { font-style: italic; }
.ref-for { font-size: .85em; opacity: .75; margin-top: 4px; }
.ref-claims { margin: 2px 0 0; padding-left: 1.2em; font-size: .92em; }
.ref-basis { opacity: .7; font-size: .9em; }
.vla-toy { border-left: 3px solid var(--border, #888); padding-left: 10px; }
.vla-refnote { font-size: .9em; opacity: .85; }

/* Paper guides (/vla/papers/) */
.pd-kicker { margin: 0 0 2px; font: 600 12.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pd-lead { font-size: 1.05rem; color: var(--ink-2); }
.pd-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.pd-paths { padding-left: 1.2em; display: grid; gap: 6px; }
.pd-part { scroll-margin-top: 80px; }
.pd-overview { border: 1px solid var(--rule); border-left: 4px solid var(--cobalt); border-radius: 10px; background: var(--panel); padding: 6px 20px 16px; }
.pd-overview h3 { margin: 18px 0 4px; font-size: 1rem; color: var(--cobalt); }
.pd-takeaway { margin: 16px 0 0; padding: 12px 14px; background: var(--cobalt-2); border-radius: 8px; }
.pd-concept { margin: 26px 0; padding: 14px 18px 8px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); scroll-margin-top: 80px; }
.pd-concept > h3 { margin: 0 0 8px; font-size: 1.15rem; }
.pd-pattern { margin: 0 0 8px; display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px 16px; }
.pd-pattern dt { font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); padding-top: 3px; }
.pd-pattern dd { margin: 0; min-width: 0; }
.pd-pattern dd p:first-child { margin-top: 0; }
.pd-b { display: inline-block; font-size: 11.5px; letter-spacing: .03em; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); vertical-align: 1px; white-space: nowrap; }
.pd-b-paper { border-color: var(--cobalt); color: var(--cobalt); }
.pd-b-calc { border-color: var(--green, #2f8f5b); }
.pd-b-read { border-color: var(--orange); background: var(--orange-2); color: var(--ink); }
.pd-b-toy, .pd-b-ill { border-style: dashed; }
.pd-b-chart { border-color: var(--orange); border-style: dotted; }
.pd-adv { margin: 10px 0; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); scroll-margin-top: 80px; }
.pd-adv > summary { cursor: pointer; padding: 9px 14px; font-weight: 600; font-size: 14.5px; list-style: none; }
.pd-adv > summary::-webkit-details-marker { display: none; }
.pd-adv > summary::before { content: "+"; display: inline-block; width: 1.2em; font-family: var(--mono); color: var(--cobalt); }
.pd-adv[open] > summary::before { content: "–"; }
.pd-adv-body { padding: 4px 14px 12px; }
.pd-run > summary { color: var(--cobalt); }
.pd-walk-h { margin: 8px 0 2px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pd-walk { margin: 0 0 6px; padding-left: 1.3em; font-size: 14.5px; display: grid; gap: 3px; }
.pd-check { margin: 8px 0 12px; border-left: 3px solid var(--green, #2f8f5b); padding: 2px 12px; background: var(--green-2, transparent); border-radius: 0 6px 6px 0; }
.pd-check > summary { cursor: pointer; padding: 6px 0; font-weight: 600; font-size: 14.5px; }
.pd-check p { margin: 4px 0 8px; }
.pd-eq { margin: 6px 0; padding: 8px 12px; background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; overflow-x: auto; }
.pd-eq code { font: 14px var(--mono); white-space: pre; }
.pd-fig { margin: 18px auto; max-width: 560px; padding: 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); }
.pd-fig figcaption { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.pd-svg { display: block; width: 100%; height: auto; }
.pd-node rect { fill: var(--paper); stroke: var(--rule); stroke-width: 1.5; }
.pd-node text { fill: var(--ink); font: 13.5px sans-serif; }
.pd-node .pd-t1 { font-weight: 700; }
.pd-node.s2 rect { fill: var(--cobalt-2); stroke: var(--cobalt); }
.pd-node.s1 rect { fill: var(--orange-2); stroke: var(--orange); }
.pd-node.enc rect { stroke-dasharray: 5 3; }
.pd-arrow { fill: none; stroke: var(--ink-2); stroke-width: 1.8; }
.pd-ahead { fill: var(--ink-2); }
.pd-lbl { fill: var(--ink-2); font: 12.5px sans-serif; }
.pd-lbl-r { text-anchor: end; }
.pd-stepper { list-style: none; padding: 0; margin: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: st; }
.pd-stepper li { counter-increment: st; }
.pd-stepper a { display: inline-block; padding: 4px 12px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; text-decoration: none; background: var(--panel); }
.pd-stepper a::before { content: counter(st) ". "; color: var(--ink-3); }
.pd-pyramid { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; justify-items: center; }
.pd-pyramid li { display: grid; gap: 2px; text-align: center; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--rule); background: var(--paper); }
.pd-pyramid li span { font-size: 13.5px; color: var(--ink-2); }
.pd-pyramid .p1 { width: 55%; border-color: var(--orange); background: var(--orange-2); }
.pd-pyramid .p2 { width: 78%; border-color: var(--cobalt); }
.pd-pyramid .p3 { width: 100%; background: var(--cobalt-2); border-color: var(--cobalt); }
.pd-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.pd-table caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--ink-3); padding-top: 6px; }
.pd-table th, .pd-table td { border: 1px solid var(--rule); padding: 5px 8px; text-align: left; vertical-align: top; }
.pd-table thead th { background: var(--paper); }
.pd-table tbody th { font-weight: 600; }
.pd-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 6px; }
.pd-compare > div { border: 1px solid var(--rule); border-radius: 10px; padding: 4px 16px 10px; background: var(--panel); }
.pd-compare h3 { font-size: 1rem; }
.pd-sub { margin: 26px 0 8px; font-size: 1.1rem; }
.pd-findings { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 14px; }
.pd-finding { border: 1px solid var(--rule); border-left: 4px solid var(--orange); border-radius: 10px; padding: 4px 16px 10px; background: var(--panel); scroll-margin-top: 80px; }
.pd-finding:target { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.pd-finding h3 { margin: 10px 0 6px; font-size: 1.02rem; }
.pd-finding p { margin: 6px 0; }
.pd-kind { display: inline-block; margin-left: 6px; font: 600 11.5px var(--mono); letter-spacing: .03em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); vertical-align: 2px; }
.pd-kind-num { border-color: var(--orange); }
.pd-kind-meth { border-color: var(--cobalt); }
.pd-linkback { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.pd-glossary { display: grid; gap: 4px 14px; grid-template-columns: max-content 1fr; }
.pd-glossary dt { font-weight: 600; }
.pd-glossary dd { margin: 0 0 8px; }
@media (max-width: 720px) {
  .pd-pattern { grid-template-columns: 1fr; gap: 2px; }
  .pd-pattern dd { margin-bottom: 10px; }
  .pd-compare { grid-template-columns: 1fr; }
  .pd-glossary { grid-template-columns: 1fr; }
  .pd-table { display: block; overflow-x: auto; }
  .pd-concept { padding: 12px 12px 6px; }
  .pd-pyramid .p1 { width: 80%; } .pd-pyramid .p2 { width: 90%; }
}

/* ---- Paper library index (/vla/papers/): editorial header, grouped cards, reading sequence ---- */
.pl-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px 56px; }
.pl-crumbs { padding: 22px 0 0; font-size: 13.5px; color: var(--ink-3); }
.pl-crumbs ol { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.pl-crumbs li + li::before { content: "/"; content: "/" / ""; margin: 0 8px; color: var(--ink-3); }
.pl-crumbs a { color: var(--ink-2); text-decoration: none; }
.pl-crumbs a:hover { color: var(--cobalt); text-decoration: underline; }
.pl-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.pl-hero { padding: 26px 0 30px; border-bottom: 1px solid var(--rule); }
.pl-eyebrow { margin: 0; font: 700 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); }
.pl-title { font-size: clamp(34px, 5vw, 44px); line-height: 1.06; font-weight: 800; font-stretch: 85%; letter-spacing: -.015em; margin: 10px 0 12px; }
.pl-sub { font-size: clamp(18px, 2.3vw, 22px); line-height: 1.35; font-weight: 600; color: var(--ink); margin: 0 0 12px; max-width: 34ch; }
.pl-lead { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); margin: 0; max-width: 70ch; }
.pl-sec { padding-top: 44px; }
.pl-h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.15; font-weight: 800; font-stretch: 85%; letter-spacing: -.01em; margin: 8px 0 10px; }
.pl-intro { margin: 0 0 14px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 72ch; }
.pl-order { margin: 0; font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pl-order strong { color: var(--ink); }
.pl-step { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 5px; border: 1px solid var(--rule); border-radius: 999px; background: var(--panel); color: var(--ink); font-weight: 600; }
.pl-step-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--cobalt-2); color: var(--cobalt); font: 700 12px var(--mono); }
.pl-arrow { color: var(--cobalt); font-weight: 700; }
.pl-grid { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-flow { gap: 40px; }
.pl-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px 24px 18px; background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.pl-card:hover { border-color: var(--cobalt); transform: translateY(-2px); box-shadow: 0 8px 20px -14px rgba(19, 32, 58, .45); }
.pl-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; font: 600 12.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.pl-idx { color: var(--cobalt); font-weight: 700; }
.pl-year { color: var(--ink-3); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 9px; letter-spacing: .02em; }
.pl-org { margin: 16px 0 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.pl-card h3 { margin: 0 0 10px; font-size: clamp(19px, 2.1vw, 22px); line-height: 1.25; font-weight: 750; letter-spacing: -.005em; text-wrap: balance; }
.pl-link { color: var(--ink); text-decoration: none; }
.pl-link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.pl-link:focus-visible { outline: none; }
.pl-link:focus-visible::after { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.pl-card:hover .pl-link { color: var(--cobalt); }
.pl-desc { margin: 0 0 18px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.pl-meta { list-style: none; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-2); }
.pl-meta li:not(:last-child)::after { content: "·"; content: "·" / ""; margin-left: 16px; color: var(--ink-3); }
.pl-cta { margin: 12px 0 0; font-size: 14.5px; font-weight: 700; color: var(--cobalt); }
.pl-cta span { display: inline-block; transition: transform .15s ease; }
.pl-card:hover .pl-cta span { transform: translateX(4px); }
.pl-flow .pl-card:first-child::after { content: "→"; content: "→" / ""; position: absolute; top: 50%; right: -34px; width: 28px; height: 28px; display: grid; place-items: center; transform: translateY(-50%); border: 1px solid var(--rule); border-radius: 50%; background: var(--panel); color: var(--cobalt); font-weight: 700; }
.pl-note { margin-top: 52px; padding: 24px 26px 20px; border: 1px solid var(--rule); border-left: 4px solid var(--cobalt); border-radius: 12px; background: var(--panel); }
.pl-note .pl-h2 { font-size: 22px; margin-top: 0; }
.pl-note-list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 78ch; }
.pl-note-list strong { color: var(--ink); }
.pl-back { margin: 16px 0 0; font-size: 15px; font-weight: 600; }
@media (max-width: 760px) {
  .pl-wrap { padding: 0 16px 44px; }
  .pl-grid, .pl-flow { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pl-flow { gap: 44px; }
  .pl-flow .pl-card:first-child::after { content: "↓"; content: "↓" / ""; top: auto; bottom: -37px; right: auto; left: 50%; transform: translateX(-50%); }
  .pl-sec { padding-top: 36px; }
  .pl-card { padding: 18px 18px 16px; }
  .pl-note { padding: 20px 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { .pl-card, .pl-cta span { transition: none; } .pl-card:hover { transform: none; } }

/* ---- Living VLA research map (section #vla-map on /vla/papers/): reference architecture, research graph, timeline, trends, open questions ---- */
.vm { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--rule); }
.vm-sub { margin: 0 0 12px; font-size: clamp(18px, 2.3vw, 22px); line-height: 1.35; font-weight: 600; color: var(--ink); max-width: 46ch; }
.vm-updated { margin: 14px 0 22px; padding: 10px 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); }
.vm-updated time { font-weight: 600; color: var(--ink); }
.vm-warn { color: var(--orange); font-weight: 600; }
.vm-small { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.vm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vm-h3 { margin: 0 0 8px; font-size: clamp(21px, 2.6vw, 25px); line-height: 1.2; font-weight: 800; font-stretch: 85%; letter-spacing: -.01em; scroll-margin-top: 80px; }
.vm-h4 { margin: 28px 0 12px; font-size: 17px; font-weight: 750; }
.vm-lead { margin: 0 0 16px; max-width: 74ch; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.vm-lead strong { color: var(--ink); }
.vm-view[hidden] { display: none !important; }
.vm-view { margin: 34px 0 6px; }
.vm-hint { margin: 14px 0; padding: 14px 16px; font-size: 14.5px; color: var(--ink-2); border: 1px dashed var(--rule); border-radius: 10px; background: transparent; }
.vm-count { display: inline-block; margin-left: 6px; padding: 1px 8px; font: 600 12px var(--mono); color: var(--ink-2); border: 1px solid var(--rule); border-radius: 999px; }

/* toolbar: only useful with JavaScript */
.vm:not(.vm-js) .vm-bar { display: none; }
.vm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 8px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
.vm-tabs { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; background: var(--paper); }
.vm-tabs button { font: 600 14px var(--font); padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; }
.vm-tabs button:hover { color: var(--ink); }
.vm-tabs button[aria-selected="true"] { background: var(--cobalt); color: #fff; }
:root[data-theme="dark"] .vm-tabs button[aria-selected="true"] { color: #0F1729; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vm-tabs button[aria-selected="true"] { color: #0F1729; } }
.vm-search { flex: 1 1 260px; min-width: 200px; }
.vm-search input { width: 100%; font: 500 14.5px var(--font); padding: 9px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); }
.vm-search input::placeholder { color: var(--ink-3); }
.vm-themechips { display: flex; flex-wrap: wrap; gap: 6px; }
.vm-chipbtn { font: 600 12.5px var(--font); padding: 5px 11px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink-2); cursor: pointer; }
.vm-chipbtn:hover { border-color: var(--cobalt); color: var(--ink); }
.vm-chipbtn[aria-pressed="true"] { background: var(--cobalt-2); border-color: var(--cobalt); color: var(--ink); }
.vm-reset { font: 600 13.5px var(--font); padding: 7px 12px; border: 1px solid var(--rule); border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; }
.vm-reset:hover { border-color: var(--ink-3); color: var(--ink); }
.vm-status { flex-basis: 100%; margin: 0; min-height: 1.2em; font-size: 13px; color: var(--ink-2); }

/* legend */
.vm-legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 14px; font-size: 13px; color: var(--ink-2); }
.vm-legend ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.vm-legend li { display: inline-flex; align-items: center; gap: 6px; }
.vm-key { display: inline-block; width: 24px; height: 14px; border: 1.5px solid var(--ink-3); border-radius: 4px; background: var(--panel); }
.vm-key.vm-t-core { border: 2.5px solid var(--cobalt); background: var(--cobalt-2); }
.vm-key.vm-t-input { border-color: var(--ink-2); }
.vm-key.vm-t-system { border-color: var(--ink); background: var(--paper); }
.vm-key.vm-t-support { border-style: dashed; }
.vm-key.vm-t-optional { border: 2px dashed var(--orange); }
.vm-key-line { width: 34px; height: 10px; }

/* architecture diagram */
.vm-arch-wrap { margin: 6px 0 4px; }
.vm-svg { display: block; width: 100%; max-width: 980px; height: auto; margin: 0 auto; }
.vm-stack { display: none; }
.vm-node { cursor: pointer; }
.vm-node rect { fill: var(--panel); stroke: var(--ink-3); stroke-width: 1.5; transition: stroke .15s ease; }
.vm-node.vm-t-core rect { stroke: var(--cobalt); stroke-width: 2.5; fill: var(--cobalt-2); }
.vm-node.vm-t-input rect { stroke: var(--ink-2); }
.vm-node.vm-t-system rect { stroke: var(--ink); fill: var(--paper); }
.vm-node.vm-t-support rect { stroke-dasharray: 6 4; }
.vm-node.vm-t-optional rect { stroke: var(--orange); stroke-dasharray: 3 4; stroke-width: 2; }
.vm-node:hover rect { stroke: var(--cobalt); }
.vm-node:focus { outline: none; }
.vm-node:focus-visible rect { stroke: var(--cobalt); stroke-width: 4; stroke-dasharray: none; }
.vm-node.is-related rect { stroke: var(--cobalt); stroke-width: 3; }
.vm-node.is-selected rect { stroke: var(--ink); stroke-width: 4; stroke-dasharray: none; }
.vm-node.is-match rect { stroke: var(--orange); stroke-width: 3.5; }
.vm-nt { font: 700 13.5px var(--font); fill: var(--ink); }
.vm-nb { font: 500 11.5px var(--font); fill: var(--ink-2); }
.vm-lane { font: 700 10.5px var(--mono); letter-spacing: .1em; fill: var(--ink-3); }
.vm-e { fill: none; stroke-width: 1.7; }
.vm-e-flow { stroke: var(--ink-2); }
.vm-e-feedback { stroke: var(--orange); stroke-width: 2.2; }
.vm-e-supports { stroke: var(--ink-3); stroke-dasharray: 5 4; }
.vm-e-optional { stroke: var(--orange); stroke-dasharray: 2 4; }
.vm-ahead { fill: var(--ink-2); }
.vm-ahead-fb { fill: var(--orange); }

/* mobile stack of the same blocks */
.vm-stack ol, .vm-stack ul { list-style: none; margin: 0; padding: 0; }
.vm-stack-h { margin: 14px 0 8px; font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.vm-stack-main > li { position: relative; margin-bottom: 22px; }
.vm-stack-main > li::after { content: "↓"; content: "↓" / ""; position: absolute; left: 50%; bottom: -21px; transform: translateX(-50%); color: var(--ink-2); font-size: 16px; }
.vm-stack-main > li:last-child::after { content: none; }
.vm-stack-in ul, .vm-stack-sup { display: grid; gap: 8px; }
.vm-stack-loop { margin: 0 0 6px; padding: 8px 12px; border: 1px solid var(--orange); border-radius: 8px; font-size: 13.5px; color: var(--ink-2); }
.vm-sn { display: block; width: 100%; text-align: left; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--panel); border: 1.5px solid var(--ink-3); border-radius: 10px; cursor: pointer; }
.vm-sn.vm-t-core { border: 2.5px solid var(--cobalt); background: var(--cobalt-2); }
.vm-sn.vm-t-input { border-color: var(--ink-2); }
.vm-sn.vm-t-system { border-color: var(--ink); background: var(--paper); }
.vm-sn.vm-t-support { border-style: dashed; }
.vm-sn.vm-t-optional { border: 2px dashed var(--orange); }
.vm-sn:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.vm-sn.is-selected { box-shadow: 0 0 0 3px var(--ink); }
.vm-sn.is-related { box-shadow: 0 0 0 2px var(--cobalt); }
.vm-sn-name { display: block; font-weight: 700; font-size: 15px; }
.vm-sn-blurb { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.vm-sn-type { display: block; margin-top: 4px; font: 600 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 860px) { .vm-svg { display: none; } .vm-stack { display: block; } }

/* detail panel */
.vm-detail { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
.vm-js .vm-d { display: none; }
.vm-js .vm-d.is-open { display: block; }
.vm-js .vm-hint { margin: 0; }
.vm-d + .vm-d { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.vm-js .vm-d + .vm-d { margin-top: 0; padding-top: 0; border-top: 0; }
.vm-d h4 { margin: 0 0 8px; font-size: 19px; line-height: 1.25; }
.vm-d h5 { margin: 16px 0 6px; font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.vm-d p { margin: 0 0 8px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.vm-d ul { margin: 0; padding-left: 1.2em; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.vm-note { padding-left: 10px; border-left: 3px solid var(--orange); }
.vm-badge { display: inline-block; padding: 2px 9px; font: 600 11.5px var(--mono); letter-spacing: .03em; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 999px; vertical-align: 2px; }
.vm-badge.vm-t-core { border-color: var(--cobalt); color: var(--cobalt); }
.vm-badge.vm-t-optional { border-style: dashed; border-color: var(--orange); }
.vm-badge.vm-t-support { border-style: dashed; }
.vm-pl { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.vm-pl > li { padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
.vm-ev { list-style: none; margin: 4px 0 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px !important; }
.vm-lessons { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* graph */
.vm-lvkey { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.vm-graph { position: relative; margin-top: 8px; padding: 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
.vm-cols { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 40px; }
.vm-col h4 { margin: 0 0 10px; font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.vm-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vm-gn { display: block; width: 100%; text-align: left; padding: 7px 10px; font: 600 13px/1.3 var(--font); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-left-width: 4px; border-radius: 8px; cursor: pointer; }
.vm-gn[hidden], .vm-col li[hidden] { display: none; }
.vm-gn-paper { border-left-color: var(--cobalt); }
.vm-gn-concept { border-left-color: var(--ink-2); }
.vm-gn-component { border-left-color: var(--ink-3); border-left-style: dashed; }
.vm-gn-problem { border-left-color: var(--orange); }
.vm-gn-question { border-left-color: var(--orange); border-left-style: dashed; }
.vm-gn-sub { display: block; margin-top: 1px; font: 500 11.5px var(--font); color: var(--ink-3); }
.vm-gn:hover { border-color: var(--cobalt); }
.vm-gn:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.vm-gn.is-related { background: var(--cobalt-2); border-color: var(--cobalt); }
.vm-gn.is-selected { background: var(--cobalt-2); border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.vm-gn.is-dim { opacity: .38; }
.vm-links { position: absolute; z-index: 0; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.vm-ln { fill: none; stroke: var(--cobalt); stroke-width: 1.7; opacity: .85; }
.vm-ln-conceptual { stroke-dasharray: 6 4; stroke: var(--orange); }
.vm-ln-citation { stroke-dasharray: 2 4; }
.vm-rels { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.vm-js .vm-rel[hidden] { display: none; }
.vm-rel { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); }
.vm-rel p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.vm-rel-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14.5px !important; color: var(--ink) !important; }
.vm-rel-k { padding: 1px 8px; font-weight: 700; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
.vm-rel-k-paper { border-color: var(--cobalt); }
.vm-rel-type { font-style: italic; color: var(--ink-2); }
.vm-rel-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.vm-lv { display: inline-block; padding: 1px 8px; font: 600 11.5px var(--font); color: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 999px; }
.vm-lv-explicit { border: 1.5px solid var(--cobalt); color: var(--ink); }
.vm-lv-citation { border-style: dotted; border-width: 1.5px; }
.vm-lv-conceptual, .vm-lv-possible { border-style: dashed; border-color: var(--orange); }
.vm-lv-est { border-color: var(--ink-2); color: var(--ink); }

/* timeline, trends, questions, latest */
.vm-strip { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.vm-strip li { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; }
.vm-strip-d { font: 600 11.5px var(--mono); color: var(--ink-3); }
.vm-themes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vm-theme { padding: 16px 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
.vm-theme-future { border-style: dashed; }
.vm-theme h4 { margin: 0 0 10px; font-size: 16.5px; line-height: 1.3; }
.vm-theme-n { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; font: 700 12px var(--mono); color: var(--cobalt); background: var(--cobalt-2); border-radius: 50%; }
.vm-theme ul { margin: 0; padding-left: 1.2em; font-size: 14.5px; line-height: 1.5; }
.vm-tl { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--rule); display: grid; gap: 10px; }
.vm-tl li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.vm-tl-d { font: 600 12px var(--mono); color: var(--ink-3); padding-top: 2px; }
.vm-src { font-size: 12.5px; }
.vm-js .vm-theme[hidden], .vm-js .vm-trend[hidden], .vm-js .vm-q[hidden], .vm-js .vm-new[hidden], .vm-js .vm-strip li[hidden], .vm-js .vm-tl li[hidden] { display: none; }
.vm-trends, .vm-questions, .vm-latest { margin-top: 56px; }
.vm-trendlist, .vm-qlist, .vm-latestlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.vm-trendlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vm-qlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vm-trend, .vm-q, .vm-new { padding: 18px 20px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
.vm-trend h4, .vm-q h4, .vm-new h4 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; text-wrap: balance; }
.vm-trend dl { margin: 0; display: grid; gap: 4px; }
.vm-trend dt { margin-top: 8px; font: 700 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.vm-trend dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.vm-caveat { margin: 12px 0 0; padding: 8px 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); border-left: 3px solid var(--orange); background: var(--paper); border-radius: 0 6px 6px 0; }
.vm-q p, .vm-new p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.vm-qstatus { display: inline-block; padding: 2px 10px; font: 600 12px var(--font) !important; color: var(--ink) !important; border: 1.5px solid var(--ink-3); border-radius: 999px; }
.vm-qs-open-challenge { border-color: var(--cobalt); }
.vm-qs-limited-evidence { border-style: dashed; border-color: var(--ink-2); }
.vm-qs-not-covered { border-style: dotted; border-color: var(--orange); }
.vm-label { margin: 14px 0 4px !important; font: 700 12px var(--mono) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3) !important; }
.vm-chip { display: inline-block; padding: 1px 8px; font-size: 12.5px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); }
.vm-latestlist { grid-template-columns: 1fr; }
.vm-empty { padding: 18px 20px; font-size: 15px; color: var(--ink-2); border: 1px dashed var(--ink-3); border-radius: 12px; }
@media (max-width: 980px) { .vm-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vm-themes, .vm-trendlist, .vm-qlist { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .vm { margin-top: 44px; padding-top: 36px; }
  .vm-cols { grid-template-columns: minmax(0, 1fr); }
  .vm-graph { padding: 12px; }
  .vm-links { display: none; }
  .vm-rels { grid-template-columns: minmax(0, 1fr); }
  .vm-bar { padding: 10px; }
  .vm-tabs { width: 100%; }
  .vm-tabs button { flex: 1 1 0; padding: 7px 6px; font-size: 13px; }
  .vm-trend, .vm-q, .vm-new, .vm-theme, .vm-detail { padding: 14px; }
  .vm-tl li { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
