/* Central de Ajuda — extensão da identidade visual do site */
.doc-body { background: var(--bg); }
.doc-skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 12px 18px; z-index: 999; border: var(--bw) solid var(--outline); }
.doc-skip:focus { left: 12px; top: 12px; }
.doc-site-header { position: sticky; top: 0; }
.doc-toolbar {
  position: sticky; top: 82px; z-index: 40;
  display: flex; gap: 10px; align-items: center;
  width: min(1200px, 92vw); margin: 18px auto 0;
}
.doc-search { position: relative; display: flex; align-items: center; flex: 1; }
.doc-search input {
  width: 100%; min-height: 46px; padding: 10px 52px 10px 42px;
  color: var(--text); background: var(--card);
  border: var(--bw) solid var(--outline); border-radius: var(--radius);
  font: inherit; font-size: 15px; outline: none;
}
.doc-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.doc-search input::placeholder { color: var(--muted); }
.doc-search-icon { position: absolute; left: 14px; font-size: 20px; color: var(--muted); pointer-events: none; }
.doc-search kbd {
  position: absolute; right: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; font-size: 12px;
}
.doc-chapter-jump {
  min-height: 46px; max-width: 210px; padding: 8px 10px;
  color: var(--text); background: var(--card);
  border: var(--bw) solid var(--outline); border-radius: var(--radius); font: inherit;
}
.doc-lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 8px 14px; white-space: nowrap;
  background: var(--card); color: var(--text);
  border: var(--bw) solid var(--outline); border-radius: var(--radius);
  font-size: 13px; font-weight: 800; text-decoration: none;
}
.doc-lang-switch:hover { color: var(--accent); border-color: var(--accent); }
.doc-toc-toggle { display: none; }
.doc-layout {
  display: grid; grid-template-columns: 286px minmax(0, 1fr);
  gap: 40px; align-items: start; margin-top: 28px; margin-bottom: 72px;
}
.doc-sidebar {
  position: sticky; top: 150px; max-height: calc(100vh - 170px);
  overflow: auto; padding-right: 8px; scrollbar-width: thin;
}
.doc-nav-group { margin-bottom: 24px; }
.doc-nav-title {
  margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 900;
  letter-spacing: .12em; text-transform: uppercase;
}
.doc-nav ul { list-style: none; margin: 0; padding: 0; }
.doc-nav-item > a {
  display: block; padding: 7px 10px; border-left: 3px solid transparent;
  font-weight: 700; font-size: 14px; line-height: 1.35;
}
.doc-nav-item > a:hover, .doc-nav-item > a.is-active { color: var(--accent); border-left-color: var(--accent); background: var(--accent3); }
.doc-subnav { margin: 2px 0 8px 12px !important; border-left: 1px solid var(--line); }
.doc-subnav a { display: block; padding: 4px 8px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.doc-subnav a:hover { color: var(--text); }
.doc-subnav .level-4 { display: none; }
.doc-version { color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.doc-content { min-width: 0; }
.doc-hero {
  border: var(--bw) solid var(--outline); background: var(--card);
  box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); margin-bottom: 40px;
}
.doc-hero h1 { margin: 4px 0 12px; font-size: clamp(34px, 6vw, 58px); line-height: .98; letter-spacing: -.03em; }
.doc-lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 21px); max-width: 62ch; margin: 0 0 14px; }
.doc-hero-meta { color: var(--muted); font-size: 13px; margin: 0; }
.doc-eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.doc-chapter { padding-top: 10px; margin-bottom: 64px; scroll-margin-top: 160px; }
.doc-chapter-title { margin: 0 0 22px; padding-bottom: 12px; border-bottom: 4px solid var(--accent2); font-size: clamp(28px, 4vw, 40px); line-height: 1.05; }
.doc-content h2:not(.doc-chapter-title) { margin: 38px 0 12px; font-size: clamp(21px, 2.6vw, 27px); line-height: 1.15; scroll-margin-top: 160px; }
.doc-content h3 { margin: 38px 0 12px; font-size: clamp(21px, 2.6vw, 27px); line-height: 1.15; scroll-margin-top: 160px; }
.doc-content h4 { margin: 28px 0 10px; font-size: 19px; scroll-margin-top: 160px; }
.doc-content h5 { margin: 22px 0 8px; font-size: 16px; }
.doc-content p, .doc-content li { color: #d7d7de; font-size: 15.5px; line-height: 1.7; }
.doc-content p { margin: 0 0 14px; }
.doc-content ul, .doc-content ol { margin: 0 0 16px; padding-left: 24px; }
.doc-content li { margin-bottom: 6px; }
.doc-content li > ul { margin-top: 6px; }
.doc-content a { color: #ff5c78; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc-content a:hover { color: var(--text); }
.doc-content strong { color: #fff; }
.doc-content code {
  background: #1d1d24; border: 1px solid var(--line); border-radius: 3px;
  padding: 1px 5px; font-size: .9em; color: #ffd7de;
}
.doc-content pre {
  background: #08080a; border: var(--bw) solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; overflow: auto; margin: 0 0 18px; box-shadow: 5px 5px 0 #1a1a20;
}
.doc-content pre code { background: none; border: 0; padding: 0; color: #e7e7ee; font-size: 13.5px; line-height: 1.6; }
.doc-content blockquote {
  margin: 0 0 18px; padding: 14px 18px; border-left: 5px solid var(--accent);
  background: var(--accent3); color: var(--text);
}
.doc-content blockquote p:last-child { margin-bottom: 0; }
.doc-table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); }
.doc-content table { width: 100%; border-collapse: collapse; min-width: 520px; }
.doc-content th, .doc-content td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
.doc-content th { background: #1b1b21; color: #fff; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.doc-content tr:last-child td { border-bottom: 0; }
.doc-content hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.doc-back { margin-top: 34px; font-size: 13px; }
.doc-back a { color: var(--muted); text-decoration: none; }
.doc-search-results {
  position: fixed; top: 150px; left: 50%; transform: translateX(-50%);
  z-index: 60; width: min(640px, 92vw);
  max-height: min(70vh, 620px); overflow: auto;
  background: var(--card); border: var(--bw) solid var(--outline);
  box-shadow: var(--shadow); padding: 10px;
}
.doc-search-results[hidden] { display: none; }
.doc-result { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc-result:last-child { border-bottom: 0; }
.doc-result:hover, .doc-result.is-selected { background: var(--accent3); }
.doc-result-chapter { display: block; color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.doc-result-title { display: block; color: var(--text); font-weight: 700; font-size: 14px; }
.doc-result-snippet { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.doc-empty { padding: 14px; color: var(--muted); font-size: 13px; }
.doc-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--accent); color: #fff; border: var(--bw) solid var(--outline);
  border-radius: var(--radius); box-shadow: var(--shadow-btn); font-size: 20px;
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .15s linear;
}
.doc-top.is-visible { opacity: 1; pointer-events: auto; }
.doc-embed .doc-site-header, .doc-embed .doc-site-footer { display: none; }
.doc-embed .doc-toolbar { top: 8px; margin-top: 8px; }
.doc-embed .doc-layout { margin-top: 18px; }
.doc-embed .doc-search-results { top: 76px; }
@media (max-width: 900px) {
  .doc-toolbar { top: 74px; flex-wrap: wrap; }
  .doc-search { flex-basis: 100%; }
  .doc-search-results { top: 132px; }
  .doc-embed .doc-search-results { top: 68px; }
  .doc-chapter-jump { display: none; }
  .doc-toc-toggle {
    display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px;
    background: var(--card); color: var(--text); border: var(--bw) solid var(--outline);
    border-radius: var(--radius); font: inherit; font-weight: 800; cursor: pointer;
  }
  .doc-layout { grid-template-columns: 1fr; gap: 20px; }
  .doc-sidebar {
    position: static; max-height: none; display: none;
    border: var(--bw) solid var(--line); background: var(--card); padding: 16px;
  }
  .doc-sidebar.is-open { display: block; }
  .doc-search-results { position: static; width: auto; max-height: 50vh; margin-bottom: 12px; }
  .doc-hero { box-shadow: 4px 4px 0 var(--accent2); }
  .doc-chapter { scroll-margin-top: 140px; }
}
@media (max-width: 560px) {
  .doc-content p, .doc-content li { font-size: 15px; }
  .doc-hero { padding: 20px; }
  .doc-toolbar { width: 94vw; }
  .doc-layout { width: 94vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .doc-top { transition: none; }
}
@media print {
  .doc-site-header, .doc-toolbar, .doc-sidebar, .doc-site-footer, .doc-top, .doc-back { display: none !important; }
  .doc-layout { display: block; }
  .doc-body { background: #fff; color: #000; }
  .doc-content p, .doc-content li, .doc-content h3, .doc-content h4 { color: #000; }
  .doc-chapter { page-break-inside: avoid; }
}
