/* Dokumentacja Voice2Bug (/docs, /pl/dokumentacja): układ z listą tematów, wideo na szerokość treści. */
body[data-page-type="docs"] .v2b-generated-main { width: min(1480px, calc(100% - 48px)); max-width: 1480px; padding-top: 1rem; }
.docs {
  --ink: #1a1a1a; --ink-soft: #625a50; --paper: #f5eddc; --paper-deep: #ebe0ca; --ivory: #fff9ef; --rust: #b5482b;
  --teal: #2a5a5e; --mustard: #d0ab63; --orange: #d97b4a; --line: #d9ccb2;
  --serif: "Fraunces", Georgia, serif; --sans: "Inter", Arial, sans-serif; --mono: "Space Mono", ui-monospace, Menlo, monospace;
  color: var(--ink); font: 400 17px/1.65 var(--sans);
}
.docs a { color: var(--rust); text-underline-offset: 3px; }
.docs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.docs-search { display: flex; justify-content: flex-end; margin: 0 0 1rem; }
.docs-search input { width: min(380px, 100%); padding: 10px 12px; border: 2px solid var(--ink); background: var(--ivory); color: var(--ink); font: 400 15px var(--sans); }
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
.docs-toc { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow: auto; padding: 4px 8px 24px 0; border-right: 1px solid var(--line); }
.docs-toc p { margin: 20px 0 6px; font: 700 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.docs-toc p:first-of-type { margin-top: 0; }
.docs-toc a { display: block; padding: 4px 8px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.35; border-left: 3px solid transparent; }
.docs-toc a:hover, .docs-toc a.on { border-left-color: var(--rust); background: var(--paper-deep); }
.docs-content { min-width: 0; }
.docs .hero h1 { font: 500 52px/1.08 var(--serif); letter-spacing: -0.025em; margin: 0 0 30px; color: var(--ink); text-transform: none; }
.docs .hero h1 em { color: var(--rust); }
.docs .hero p { font-size: 19px; max-width: 760px; color: var(--ink-soft); margin: 0 0 40px; }
.docs .hero figure.clip { margin-bottom: 52px; }
.docs .chapter { margin: 120px 0 0; padding-top: 24px; border-top: 2px solid var(--ink); }
.docs .chapter > .eyebrow { font: 700 13px/1 var(--mono); letter-spacing: .14em; color: var(--rust); text-transform: uppercase; }
.docs .chapter > h2 { color: var(--ink); font: 500 38px/1.15 var(--serif); letter-spacing: -0.02em; margin: 8px 0 4px; }
.docs article { margin: 56px 0 0; }
.docs article + article { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.docs article h3 { color: var(--ink); font: 600 30px/1.2 var(--serif); letter-spacing: -0.015em; margin: 0 0 16px; }
.docs article h3 a.anchor { color: var(--ink-soft); text-decoration: none; font-size: 18px; margin-left: 8px; opacity: 0; }
.docs article:hover h3 a.anchor { opacity: 1; }
.docs article h4 { font: 700 13px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 22px 0 6px; color: var(--ink-soft); }
.docs article p, .docs article li { max-width: 760px; }
.docs article ul, .docs article ol { padding-left: 22px; }
.docs article li { margin: 4px 0; }
.docs figure.clip { position: relative; margin: 20px 0 26px; max-width: 1320px; background: #141311; border: 2px solid #1a1a1a; box-shadow: 7px 7px 0 var(--teal); }
.docs figure.clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #141311; }
.docs figure.clip figcaption { background: var(--ivory); border-top: 2px solid #1a1a1a; padding: 12px 16px; font-size: 15px; line-height: 1.5; }
.docs figure.clip figcaption b { font: 700 12px/1 var(--mono); letter-spacing: .12em; color: var(--rust); display: block; margin-bottom: 6px; }
.docs .fs { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; border: 2px solid #1a1a1a; background: #fff9ef; color: #1a1a1a;
  font: 700 13px/1 var(--mono); letter-spacing: .06em; padding: 9px 12px; cursor: pointer; box-shadow: 3px 3px 0 #1a1a1a; }
.docs .fs:hover { background: var(--mustard); }
.docs .fs svg { width: 16px; height: 16px; }
.docs video:fullscreen { object-fit: contain; background: #000; }
.docs kbd { font: 700 13px/1 var(--mono); background: var(--ivory); border: 2px solid var(--ink); border-bottom-width: 3px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.docs code { font: 400 14.5px/1.4 var(--mono); background: var(--paper-deep); padding: 1px 5px; border-radius: 3px; }
.docs .ui { font-weight: 600; }
.docs pre { position: relative; background: #1d1c19; color: #f5eddc; padding: 14px 112px 14px 16px; font: 400 14px/1.6 var(--mono); max-width: 900px; border-left: 4px solid var(--orange);
  white-space: pre-wrap; overflow-wrap: anywhere; }
.docs pre code { background: none; padding: 0; color: inherit; }
.docs .copy { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--ink); background: var(--ivory); color: var(--ink); font: 700 12px/1 var(--mono); letter-spacing: .06em;
  padding: 6px 8px; cursor: pointer; vertical-align: middle; }
.docs .copy:hover { background: var(--mustard); color: #1a1a1a; }
.docs .copy svg { width: 14px; height: 14px; flex: none; }
.docs .copy.done { background: var(--teal); color: #fff9ef; border-color: var(--teal); }
.docs pre .copy { position: absolute; top: 10px; right: 10px; border-color: #f5eddc; background: #2b2a26; color: #f5eddc; }
.docs pre .copy:hover { background: var(--mustard); color: #1a1a1a; }
.docs code.cp + .copy { margin-left: 6px; padding: 3px 5px; }
.docs code.cp + .copy span { display: none; }
.docs code.cp + .copy.done span { display: inline; }
.docs table { border-collapse: collapse; width: 100%; max-width: 900px; margin: 12px 0; font-size: 15.5px; }
.docs th, .docs td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.docs th { font: 700 12px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.docs .note { max-width: 760px; border: 2px solid var(--ink); background: var(--ivory); padding: 12px 16px; margin: 16px 0; box-shadow: 4px 4px 0 var(--mustard); font-size: 16px; }
.docs .note b:first-child { font: 700 12px/1 var(--mono); letter-spacing: .12em; color: var(--teal); display: block; margin-bottom: 6px; }
.docs .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 1320px; }
.docs .card { border: 2px solid var(--ink); background: var(--ivory); padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.docs .card b { display: block; font: 600 19px/1.25 var(--serif); margin-bottom: 4px; }
.docs .card span { font-size: 15px; color: var(--ink-soft); }
.docs .hidden { display: none !important; }
.docs #nores { display: none; margin-top: 40px; font-size: 18px; }
.docs footer { margin-top: 90px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; }
@media (max-width: 900px) {
  body[data-page-type="docs"] .v2b-generated-main { width: calc(100% - 32px); }
  .docs-layout { display: block; }
  .docs-toc { position: static; max-height: none; border: 2px solid var(--ink); background: var(--ivory); padding: 12px; margin-bottom: 24px; }
  .docs-toc:not(.open) a, .docs-toc:not(.open) p { display: none; }
  .docs-toc button { display: block; width: 100%; border: 0; background: none; color: var(--ink); text-align: left; font: 700 13px var(--mono); letter-spacing: .1em; cursor: pointer; padding: 4px 0; }
  .docs-toc.open button { margin-bottom: 8px; }
  .docs-search { justify-content: stretch; }
  .docs-search input { width: 100%; }
  .docs .hero h1 { font-size: 36px; margin-bottom: 22px; }
  .docs .hero p { margin-bottom: 30px; }
  .docs .hero figure.clip { margin-bottom: 40px; }
  .docs .chapter { margin-top: 90px; }
  .docs .chapter > h2 { font-size: 30px; }
  .docs article + article { margin-top: 56px; padding-top: 44px; }
  .docs article h3 { font-size: 24px; }
  .docs figure.clip { box-shadow: 4px 4px 0 var(--teal); }
  .docs pre { padding-right: 16px; padding-top: 48px; }
  .docs table { display: block; overflow-x: auto; }
}
@media (min-width: 901px) { .docs-toc button { display: none; } }
