/* The VecViz design system, in one file.
   Space Grotesk for headings, Source Serif 4 for body, IBM Plex Mono for the
   key and code. Same palette as the dashboards. */

:root {
  --orange: #E0701A;
  --orange-deep: #BC560F;
  --orange-tint: #FBEFE2;
  --slate: #5E6E7E;
  --slate-deep: #3F4D5B;
  --slate-tint: #EDF1F4;
  --paper: #FCFBF8;
  --panel: #F3F1EA;
  --rule: #DCD8CC;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, .vv-brand, .vv-button, .vv-tab {
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

h1 { font-size: 2rem; margin: 0 0 0.4rem; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; margin: 0 0 0.6rem; }

a { color: var(--orange-deep); }
a:hover { color: var(--orange); }

.vv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: var(--paper);
  border-bottom: 2px solid var(--slate-deep);
}

.vv-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--slate-deep);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.vv-link { font-size: 0.9rem; }

.vv-wrap { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }

.vv-lede { color: var(--slate); margin: 0 0 1.75rem; }

.vv-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
}

.vv-cta { background: var(--orange-tint); border-color: var(--orange); }

.vv-button {
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--slate);
  border-radius: 4px;
  background: var(--paper);
  color: var(--slate-deep);
  cursor: pointer;
}

.vv-button:hover { border-color: var(--orange); color: var(--orange-deep); }

.vv-button-primary {
  background: var(--orange);
  border-color: var(--orange-deep);
  color: #fff;
  display: inline-block;
  text-decoration: none;
}

.vv-button-primary:hover { background: var(--orange-deep); color: #fff; }
.vv-button:disabled { opacity: 0.55; cursor: default; }

.vv-note { color: var(--slate); font-size: 0.88rem; margin: 0.7rem 0 0; }
.vv-note code { font-size: 0.85em; color: var(--slate-deep); }

.vv-warn {
  color: var(--orange-deep);
  font-size: 0.88rem;
  margin: 0.6rem 0 1.1rem;
}

.vv-keyrow { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }

.vv-key, pre code, .vv-tickers, .vv-note code {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

.vv-key {
  flex: 1 1 20rem;
  min-width: 0;
  overflow-wrap: anywhere;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.5rem 0.6rem;
  font-size: 0.85rem;
}

pre {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.6rem 0.7rem;
  overflow-x: auto;
  margin: 0.5rem 0;
}

pre code { font-size: 0.82rem; white-space: pre; }

.vv-tickers { font-size: 0.9rem; letter-spacing: 0.02em; }

.vv-tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.9rem;
}

.vv-tab {
  font-size: 0.88rem;
  padding: 0.45rem 0.8rem;
  border: none;
  background: none;
  color: var(--slate);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.vv-tab.is-active { color: var(--orange-deep); border-bottom-color: var(--orange); }

.vv-pane p { margin: 0 0 0.4rem; font-size: 0.94rem; }

.vv-step {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate-deep);
  margin: 1.2rem 0 0.35rem;
}

.vv-pane > .vv-step:first-child { margin-top: 0.1rem; }

/* The setup prompt is one long line and is meant to be copied whole. Wrap it
   for reading rather than hiding its tail behind a horizontal scrollbar. */
.vv-cmd { white-space: pre-wrap; overflow-wrap: anywhere; }

.vv-hidden { display: none; }

.vv-foot {
  text-align: center;
  color: var(--slate);
  font-size: 0.82rem;
  padding: 1.5rem;
  border-top: 1px solid var(--rule);
}
