/* docs.voicemeeter.xyz — documentation stylesheet.
   Self-contained: the docs host does not depend on the product site's CSS. */

:root {
  --ink: #16222d;
  --ink-soft: #33414f;
  --muted: #5c6b7a;
  --line: #dfe5ea;
  --line-soft: #eef2f5;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --accent: #2453c1;
  --accent-dark: #1b3f96;
  --green: #74c083;
  --code-bg: #0f1b26;
  --code-ink: #e6edf3;
  --warn-bg: #fff8e6;
  --warn-line: #e8c56a;
  --ok-bg: #eefaf1;
  --ok-line: #7fc99a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---------------------------------------------------------------- header */

.docs-topbar { background: var(--ink-soft); color: #cfd8e0; font-size: 12px; }
.docs-topbar__inner {
  max-width: 1180px; margin: 0 auto; padding: 8px 24px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.docs-topbar a { color: #cfd8e0; }
.docs-topbar a:hover { color: #fff; text-decoration: none; }
.docs-topbar__soc { margin-left: auto; display: flex; gap: 14px; }

.docs-navbar { background: var(--ink); }
.docs-navbar__inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.docs-brand { display: block; }
.docs-brand img { display: block; height: 34px; width: auto; }
.docs-nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.docs-nav a {
  color: #dfe6ec; font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.docs-nav a:hover { color: #fff; text-decoration: none; }
.docs-nav a.is-active { color: var(--green); }

.docs-strip { background: var(--green); color: #10241a; font-size: 13px; }
.docs-strip__inner { max-width: 1180px; margin: 0 auto; padding: 9px 24px; }
.docs-strip a { color: #10241a; font-weight: 700; text-decoration: underline; }

/* ----------------------------------------------------------------- layout */

.docs-wrap {
  max-width: 1180px; margin: 0 auto; padding: 34px 24px 64px;
  display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 52px;
  align-items: start;
}

.docs-side { position: sticky; top: 18px; font-size: 14px; }
.docs-side h2 {
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
.docs-side ul { list-style: none; margin: 0 0 22px; padding: 0; }
.docs-side li { margin: 0 0 2px; }
.docs-side a {
  display: block; padding: 6px 10px; border-radius: 5px;
  color: var(--ink-soft); border-left: 2px solid transparent;
}
.docs-side a:hover { background: var(--bg-soft); text-decoration: none; }
.docs-side a.is-active {
  background: #eef3fc; color: var(--accent-dark);
  border-left-color: var(--accent); font-weight: 600;
}
.docs-side .docs-side__cta {
  display: block; margin-top: 8px; padding: 10px 12px;
  background: var(--accent); color: #fff; border-radius: 5px;
  text-align: center; font-weight: 700; font-size: 13px;
}
.docs-side .docs-side__cta:hover { background: var(--accent-dark); text-decoration: none; }

.docs-main { min-width: 0; }

.docs-crumb { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.docs-crumb a { color: var(--muted); }

h1 {
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: 34px; line-height: 1.2; font-weight: 800;
  letter-spacing: -.015em; margin: 0 0 12px;
}
.docs-lead { font-size: 18px; color: var(--ink-soft); margin: 0 0 26px; max-width: 74ch; }

h2 {
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: 22px; font-weight: 700; letter-spacing: -.01em;
  margin: 42px 0 12px; padding-top: 8px; border-top: 1px solid var(--line-soft);
}
h3 {
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: 16px; font-weight: 700; margin: 26px 0 8px;
}
p, li { color: #22303c; max-width: 78ch; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }

code {
  font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: .9em; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 5px; color: #123;
}
pre {
  background: var(--code-bg); color: var(--code-ink);
  padding: 16px 18px; border-radius: 8px; overflow-x: auto;
  font-size: 13px; line-height: 1.55; margin: 16px 0;
}
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
tbody tr:hover { background: #fbfcfd; }
td code { white-space: nowrap; }

.note, .tip, .warn {
  border-left: 4px solid var(--accent); background: #f4f7fd;
  padding: 14px 16px; margin: 20px 0; border-radius: 0 6px 6px 0;
  font-size: 15px;
}
.tip { border-left-color: var(--ok-line); background: var(--ok-bg); }
.warn { border-left-color: var(--warn-line); background: var(--warn-bg); }
.note p:first-child, .tip p:first-child, .warn p:first-child { margin-top: 0; }
.note p:last-child, .tip p:last-child, .warn p:last-child { margin-bottom: 0; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 4px 0 18px 46px; margin: 0;
}
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: Montserrat, Arial, sans-serif;
}
.steps > li > strong { display: block; margin-bottom: 2px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.card {
  border: 1px solid var(--line); border-radius: 8px; padding: 18px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: #b9c6d4; box-shadow: 0 2px 10px rgba(22,34,45,.06); }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }
.card a { font-weight: 600; }

.btn {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14px; letter-spacing: .03em;
  padding: 12px 22px; border-radius: 5px; text-transform: uppercase;
}
.btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }

.next-prev { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }
.next-prev a { font-weight: 600; font-size: 14px; }

/* ---------------------------------------------------------------- footer */

.docs-footer { background: var(--bg-soft); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.docs-footer__inner {
  max-width: 1180px; margin: 0 auto; padding: 30px 24px 18px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px;
}
.docs-footer strong { display: block; color: var(--ink); margin-bottom: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.docs-footer a { color: var(--ink-soft); }
.docs-footer__legal { border-top: 1px solid var(--line); }
.docs-footer__legal div { max-width: 1180px; margin: 0 auto; padding: 14px 24px; font-size: 12.5px; }

.vm-sr {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.vm-skip { background: #fff; padding: 8px 14px; position: absolute; left: 8px; top: -60px; z-index: 99; }
.vm-skip:focus { top: 8px; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 980px) {
  .docs-wrap { grid-template-columns: 1fr; gap: 26px; }
  .docs-side { position: static; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .docs-side ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .docs-side a { border-left: 0; border-radius: 4px; padding: 6px 10px; background: var(--bg-soft); }
  .docs-side .docs-side__cta { display: inline-block; margin: 8px 0 0; }
  .docs-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  h1 { font-size: 26px; }
  .docs-lead { font-size: 16px; }
  h2 { font-size: 19px; }
  .docs-nav { gap: 14px; }
  .docs-nav a { font-size: 12px; }
  th, td { padding: 8px 9px; font-size: 13.5px; }
  .docs-footer__inner { grid-template-columns: 1fr; gap: 18px; }
}
