/* Innovexus documentation — static wiki served at https://innovexus.io/docs/
   Source of truth: appliance repo deploy/docs-site/ (rsync'd by deploy-docs.sh).
   Matches the innovexus.io look (round 12): near-black surfaces, Urbanist,
   IBM Plex Mono for labels and code, green/amber/red status hues. No JavaScript required. */

:root {
  --bg: #050506;
  --card: #0d0e10;
  --card-border: #1f1f22;
  --text: #c8c8c8;
  --text-bright: #ffffff;
  --text-muted: #8a8a8a;
  --accent: #ffffff;
  --code-bg: #0a0a0b;
  --good: #3ddc84;
  --warn: #f0a030;
  --bad: #ff5f56;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sidebar-w: 250px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Urbanist', -apple-system, 'Segoe UI', sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
}

a { color: var(--text-bright); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); }
a:hover { border-bottom-color: #fff; }

/* ---- header ---- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 28px;
  background: rgba(5, 5, 6, 0.8);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--card-border);
}
.topbar .brand {
  font-family: var(--mono);
  font-weight: 500; font-size: 13px; letter-spacing: 0.08em;
  color: var(--text-bright); border-bottom: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.topbar .brand::before {
  content: ''; width: 18px; height: 18px; box-sizing: border-box;
  border: 1.5px solid #fff; background: linear-gradient(90deg, #fff 50%, transparent 50%);
}
.topbar .brand span { color: var(--text-muted); font-weight: 400; }
.topbar .home { margin-left: auto; font: 13px var(--mono); color: var(--text-muted); border-bottom: none; }
.topbar .home:hover { color: var(--text-bright); }

/* ---- layout ---- */
.wrap { display: flex; max-width: 1200px; margin: 0 auto; }

nav.side {
  width: var(--sidebar-w); flex-shrink: 0;
  padding: 30px 18px 60px 24px;
  position: sticky; top: 53px; align-self: flex-start;
  max-height: calc(100vh - 53px); overflow-y: auto;
}
nav.side h4 {
  margin: 18px 0 6px; font: 500 11px var(--mono); letter-spacing: 0.14em;
  text-transform: uppercase; color: #7a7a7a;
}
nav.side a {
  display: block; padding: 5px 10px; margin: 1px 0;
  font-size: 13.5px; color: var(--text); border-bottom: none; border-radius: 6px;
}
nav.side a:hover { background: var(--card); color: var(--text-bright); }
nav.side a.active { background: rgba(255,255,255,0.06); color: var(--text-bright); font-weight: 600; }

main {
  flex: 1; min-width: 0;
  padding: 34px 40px 90px;
  border-left: 1px solid var(--card-border);
}

/* ---- typography ---- */
h1, h2, h3 { font-family: 'Urbanist', sans-serif; color: var(--text-bright); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 34px; font-weight: 500; letter-spacing: -0.015em; margin: 0 0 8px; }
p.lead { color: var(--text-muted); font-size: 16.5px; margin-top: 0; }
h2 { font-size: 22px; font-weight: 500; margin: 40px 0 10px; padding-top: 8px; border-top: 1px solid var(--card-border); }
h2:first-of-type { border-top: none; margin-top: 26px; }
h3 { font-size: 16.5px; font-weight: 600; margin: 26px 0 8px; }

ul, ol { padding-left: 24px; }
li { margin: 4px 0; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--code-bg);
  border: 1px solid var(--card-border);
  border-radius: 5px; padding: 1px 6px;
  color: var(--text-bright);
  white-space: nowrap;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px 20px;
  overflow-x: auto;
  font: 13px/1.7 var(--mono);
  color: #c7c7cc;
}
pre code { background: none; border: none; padding: 0; white-space: pre; }
pre .p { color: #8a8a8a; }          /* prompt */
pre .k { color: #ffffff; }          /* what the operator types */
pre .c { color: #6f6f76; }          /* comment */
pre .g { color: var(--good); }
pre .w { color: var(--warn); }
pre .b { color: var(--bad); }

/* ---- components ---- */
table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
th, td { text-align: left; padding: 8px 12px; border: 1px solid var(--card-border); vertical-align: top; }
th { background: var(--card); color: var(--text-bright); font-weight: 600; font-size: 13px; }
td code { white-space: normal; }

.note, .warnbox, .dangerbox {
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--text-muted);
  border-radius: 8px; background: var(--card);
  padding: 12px 16px; margin: 16px 0; font-size: 14.5px;
}
.warnbox { border-left-color: var(--warn); }
.dangerbox { border-left-color: var(--bad); }
.note b:first-child, .warnbox b:first-child, .dangerbox b:first-child { color: var(--text-bright); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 26px; }
.cards a {
  display: block; border: 1px solid var(--card-border); border-radius: 18px;
  background: var(--card); padding: 18px 20px; border-bottom: 1px solid var(--card-border);
}
.cards a:hover { border-color: #3a3a3d; background: #111214; }
.cards h3 { margin: 0 0 6px; font-size: 16px; }
.cards p { margin: 0; font-size: 13.5px; color: var(--text-muted); }

.pill {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--card-border); border-radius: 999px;
  padding: 1px 10px; margin-left: 6px; vertical-align: 2px; color: var(--text-muted);
}
/* Support-tier pills (vendor-support.html): first use in a table cell, so no
   leading offset. */
td > .pill:first-child { margin-left: 0; }
.pill.ok   { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, var(--card-border)); }
.pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--card-border)); }
.pill.off  { color: var(--text-muted); }

.chain { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }
.chain .step {
  border: 1px solid var(--card-border); background: var(--card);
  border-radius: 8px; padding: 8px 14px; font-size: 13.5px; color: var(--text-bright);
}
.chain .arr { color: var(--text-muted); }

footer {
  margin-top: 70px; padding-top: 18px; border-top: 1px solid var(--card-border);
  font: 12px var(--mono); color: #6a6a6a;
}

@media (max-width: 860px) {
  .wrap { flex-direction: column; }
  nav.side { width: 100%; position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 14px 18px 0; }
  nav.side h4 { width: 100%; margin: 10px 0 2px; }
  main { border-left: none; padding: 22px 18px 70px; }
}

/* ---- screenshots ---- */
figure.shot { margin: 20px 0; }
figure.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--card-border); border-radius: 14px;
  background: #fff;
}
figure.shot figcaption {
  font: 12px/1.6 var(--mono); color: var(--text-muted); margin-top: 8px;
}

/* ---- collapse/expand (docs.js) ---- */
.clampbar { display: flex; justify-content: flex-end; margin: 16px 0 -12px; position: relative; z-index: 1; }
.clampbtn {
  font: 11px var(--mono); letter-spacing: 0.04em;
  color: var(--text-muted); background: var(--card);
  border: 1px solid var(--card-border); border-radius: 6px;
  padding: 2px 10px; cursor: pointer;
}
.clampbtn:hover { color: var(--text-bright); border-color: #3a3a3d; }
figure.shot.clamped img {
  max-height: 260px; object-fit: cover; object-position: top;
  cursor: zoom-in;
}
pre.clamped { max-height: 240px; overflow: hidden; cursor: zoom-in; }
