/* Vega Charging AI connectors: the public documentation and privacy pages.
   Plain static files, served as they are (angular.json copies src/docs to /docs). */
:root {
  --bg: #f6f8f4; --surface: #ffffff; --text: #111827; --muted: #4b5563; --line: #e2e8dc;
  --brand: #7fbe41; --accent: #3d7413; --accent-bg: #eef7e4; --code-bg: #f1f4ee;
  --read: #065f46; --read-bg: #d1fae5; --write: #1e3a8a; --write-bg: #dbeafe; --ask: #7c2d12; --ask-bg: #ffedd5;
  --todo-bg: #fde68a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f120d; --surface: #171b14; --text: #e5e7eb; --muted: #a1a1aa; --line: #2b3326;
    --accent: #9bd468; --accent-bg: #1d2a12; --code-bg: #222a1c;
    --read: #6ee7b7; --read-bg: #0f2e25; --write: #93c5fd; --write-bg: #172554; --ask: #fdba74; --ask-bg: #3a1d0c;
    --todo-bg: #6b5300;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
header.top { background: #13200b; color: #f9fafb; border-bottom: 4px solid var(--brand); }
header.top .wrap { display: flex; align-items: center; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
header.top img { width: 40px; height: 40px; border-radius: 9px; background: #fff; }
header.top .name { font-weight: 700; font-size: 18px; }
header.top .sub { color: #d1d5db; font-size: 14px; }
.hero { padding: 40px 0 8px; }
.hero h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 12px; }
.hero p { font-size: 18px; color: var(--muted); margin: 0; max-width: 720px; }
nav.toc { margin: 24px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
nav.toc a { text-decoration: none; color: var(--text); border: 1px solid var(--line); background: var(--surface);
  padding: 6px 12px; border-radius: 999px; font-size: 14px; }
section { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 20px 0; }
section > h2 { margin: 0 0 12px; font-size: 24px; }
h3 { font-size: 18px; margin: 24px 0 8px; }
.muted { color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em;
  background: var(--code-bg); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.address { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--accent-bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.address code { font-size: 16px; background: transparent; padding: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
ol.steps { padding-left: 22px; }
ol.steps li { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--code-bg); }
tr:last-child td { border-bottom: 0; }
td code { display: block; width: fit-content; margin-top: 4px; font-size: 12.5px; white-space: nowrap; }
td:first-child { min-width: 200px; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill--read { color: var(--read); background: var(--read-bg); }
.pill--write { color: var(--write); background: var(--write-bg); }
.pill--ask { color: var(--ask); background: var(--ask-bg); }
.examples li { margin-bottom: 6px; }
.examples em { font-style: normal; background: var(--code-bg); padding: 1px 6px; border-radius: 6px; }
mark.todo { background: var(--todo-bg); color: inherit; padding: 0 4px; border-radius: 4px; }
footer { color: var(--muted); font-size: 14px; padding: 16px 0 40px; }
@media (max-width: 560px) { section { padding: 18px 16px; } .hero p { font-size: 16px; } }
