/* Central de ajuda ComandaXis — estilos (claro e escuro). Cores da marca: azul ComandaXis (#013be4 / #1d4ed8). */

:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --brand: #013be4;
  --primary: #1d4ed8;
  --primary-strong: #1e40af;
  --primary-soft: #eef3ff;
  --primary-ring: rgba(29, 78, 216, 0.45);
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f1f4fa;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e3e8f1;
  --border-strong: #cfd7e6;
  --marker: #e11d48;
  --mark-bg: #fde68a;
  --tip-bg: #ecfdf5;
  --tip-border: #a7f3d0;
  --tip-ink: #065f46;
  --tip-icon: #059669;
  --warn-bg: #fffbeb;
  --warn-border: #fcd34d;
  --warn-ink: #78350f;
  --warn-icon: #d97706;
  --plan-bg: #fef3c7;
  --plan-ink: #92400e;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px -8px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 64px -16px rgba(15, 23, 42, 0.35);
  --hero-from: #1d4ed8;
  --hero-to: #013be4;
  --radius: 14px;
  --topbar: 60px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #7aa2ff;
    --primary-strong: #a5c0ff;
    --primary-soft: rgba(96, 140, 255, 0.14);
    --primary-ring: rgba(122, 162, 255, 0.5);
    --bg: #0a1020;
    --surface: #10182b;
    --surface-2: #161f35;
    --text: #e8ecf5;
    --text-2: #c4ccdc;
    --muted: #8d99b0;
    --border: #222d45;
    --border-strong: #2f3c59;
    --mark-bg: rgba(250, 204, 21, 0.3);
    --tip-bg: rgba(16, 185, 129, 0.1);
    --tip-border: rgba(16, 185, 129, 0.35);
    --tip-ink: #a7f3d0;
    --tip-icon: #34d399;
    --warn-bg: rgba(245, 158, 11, 0.1);
    --warn-border: rgba(245, 158, 11, 0.4);
    --warn-ink: #fde68a;
    --warn-icon: #fbbf24;
    --plan-bg: rgba(245, 158, 11, 0.16);
    --plan-ink: #fcd34d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, 0.7);
    --hero-from: #142a6b;
    --hero-to: #0b1a4a;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --primary: #7aa2ff;
  --primary-strong: #a5c0ff;
  --primary-soft: rgba(96, 140, 255, 0.14);
  --primary-ring: rgba(122, 162, 255, 0.5);
  --bg: #0a1020;
  --surface: #10182b;
  --surface-2: #161f35;
  --text: #e8ecf5;
  --text-2: #c4ccdc;
  --muted: #8d99b0;
  --border: #222d45;
  --border-strong: #2f3c59;
  --mark-bg: rgba(250, 204, 21, 0.3);
  --tip-bg: rgba(16, 185, 129, 0.1);
  --tip-border: rgba(16, 185, 129, 0.35);
  --tip-ink: #a7f3d0;
  --tip-icon: #34d399;
  --warn-bg: rgba(245, 158, 11, 0.1);
  --warn-border: rgba(245, 158, 11, 0.4);
  --warn-ink: #fde68a;
  --warn-icon: #fbbf24;
  --plan-bg: rgba(245, 158, 11, 0.16);
  --plan-ink: #fcd34d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, 0.7);
  --hero-from: #142a6b;
  --hero-to: #0b1a4a;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.drawer-open,
html.search-open,
html.lightbox-open { overflow: hidden; }

main { flex: 1; outline: none; }
img { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; color: var(--text); }
kbd {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  background: var(--surface);
  color: var(--muted);
}
mark { background: var(--mark-bg); color: inherit; border-radius: 3px; padding: 0 1px; }

:focus-visible { outline: 3px solid var(--primary-ring); outline-offset: 2px; border-radius: 6px; }

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 10px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

/* ------------------------------------------------------------------ botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(1, 59, 228, 0.6); }
.btn-primary:hover { background: #0030c0; }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { border-color: var(--primary-ring); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.btn-light { background: #fff; color: #0b2a8a; }
.btn-light:hover { background: #eef3ff; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ------------------------------------------------------------------ topo */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 12px;
}
@media (min-width: 768px) { .topbar-inner { gap: 12px; padding: 0 20px; } }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.brand-logo { display: block; width: 26px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.brand-tag { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
:root[data-theme="dark"] .brand-logo,
.brand-footer .brand-logo { filter: none; }

.search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 440px;
  height: 40px;
  margin-left: auto;
  padding: 0 10px 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.search-trigger:hover { border-color: var(--border-strong); background: var(--surface); }
.search-trigger-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-link { display: none; }
.theme-btn .icon-sun { display: none; }
:root[data-theme="dark"] .theme-btn .icon-sun { display: block; }
:root[data-theme="dark"] .theme-btn .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .icon-moon { display: none; }
}

@media (max-width: 639px) {
  .search-trigger { flex: 0 0 40px; width: 40px; padding: 0; justify-content: center; border-color: transparent; background: transparent; color: var(--text-2); }
  .search-trigger-text,
  .search-trigger-kbd { display: none; }
  .brand-tag { font-size: 11px; }
}
@media (min-width: 640px) { .search-trigger { margin: 0 auto; } }
@media (min-width: 900px) { .panel-link { display: inline-flex; min-height: 38px; font-size: 14px; } }
@media (min-width: 1024px) { .menu-btn { display: none; } }

/* ------------------------------------------------------------------ capa */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(600px 300px at 0% 110%, rgba(96, 165, 250, 0.35), transparent 60%),
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 56px; text-align: center; }
@media (min-width: 768px) { .hero-inner { padding-top: 72px; padding-bottom: 80px; } }
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 600;
}
.hero h1 { margin: 0; color: #fff; font-size: clamp(30px, 6vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.hero-lead { max-width: 620px; margin: 12px auto 28px; font-size: clamp(15.5px, 2.2vw, 18px); color: rgba(255, 255, 255, 0.86); }

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 680px;
  margin: 0 auto;
  padding: 6px 6px 6px 16px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.hero-search:focus-within { box-shadow: var(--shadow-lg), 0 0 0 4px rgba(255, 255, 255, 0.35); }
.hero-search > .icon { width: 22px; height: 22px; }
.hero-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  outline: none;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search input::-webkit-search-cancel-button { cursor: pointer; }
.hero-search-btn { min-height: 46px; padding: 0 20px; border-radius: 12px; }
@media (max-width: 479px) {
  .hero-search-btn { display: none; }
  .hero-search { padding-right: 12px; }
}

.hero-popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 20px auto 0; max-width: 720px; font-size: 13.5px; }
.hero-popular span { color: rgba(255, 255, 255, 0.78); margin-right: 2px; }
.hero-popular a {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s;
}
.hero-popular a:hover { background: rgba(255, 255, 255, 0.24); }

.section { margin-top: 56px; }
@media (min-width: 768px) { .section { margin-top: 72px; } }
.section-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: clamp(22px, 3vw, 26px); font-weight: 800; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.section-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}
.section-more { margin: 16px 0 0; }
.section-more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.section-more a:hover { text-decoration: underline; }

/* trilha de primeiros passos */
.trail { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: trail; }
@media (min-width: 720px) { .trail { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .trail { grid-template-columns: repeat(3, 1fr); } }
.trail-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.trail-step:hover { border-color: var(--primary-ring); box-shadow: var(--shadow); transform: translateY(-2px); }
.trail-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.trail-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.trail-title { font-weight: 700; }
.trail-summary { font-size: 14px; color: var(--muted); line-height: 1.5; }
.trail-arrow { color: var(--muted); margin-top: 6px; transition: transform 0.15s, color 0.15s; }
.trail-step:hover .trail-arrow { transform: translateX(3px); color: var(--primary); }

/* módulos */
.group-title { margin: 28px 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.group-title:first-of-type { margin-top: 0; }
.module-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 560px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .module-grid { grid-template-columns: repeat(3, 1fr); } }
.module-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.module-card:hover { border-color: var(--primary-ring); box-shadow: var(--shadow); transform: translateY(-2px); }
.module-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}
.module-title { font-weight: 700; font-size: 16.5px; }
.module-desc { margin-top: 4px; flex: 1; font-size: 14px; color: var(--muted); line-height: 1.5; }
.module-count { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--primary); }

/* vídeos */
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.video-card { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 12px;
  background: #0b1220;
  box-shadow: var(--shadow-sm);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-card-title { font-weight: 700; line-height: 1.35; }
.video-card:hover .video-card-title { color: var(--primary); }
.video-card-cat { font-size: 13px; color: var(--muted); }
.video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* perguntas frequentes */
.faq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 760px) { .faq-list { grid-template-columns: repeat(2, 1fr); } }
.faq-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.faq-list a > .icon:first-child { color: var(--primary); }
.faq-list a span { flex: 1; }
.faq-list a:hover { border-color: var(--primary-ring); background: var(--primary-soft); }
.faq-arrow { color: var(--muted); }

/* chamada final */
.help-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
  box-shadow: var(--shadow);
}
@media (min-width: 760px) { .help-cta { flex-direction: row; align-items: center; padding: 28px 32px; } }
.help-cta-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; background: rgba(255, 255, 255, 0.16); }
.help-cta-icon .icon { width: 26px; height: 26px; }
.help-cta-body { flex: 1; }
.help-cta h2 { margin: 0 0 4px; color: #fff; font-size: 22px; }
.help-cta p { margin: 0; color: rgba(255, 255, 255, 0.88); }

body.home .site-footer { margin-top: 72px; }

/* ------------------------------------------------------------------ páginas de documentação */
.docs { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 1440px; margin: 0 auto; flex: 1; }
@media (min-width: 1024px) { .docs { grid-template-columns: 272px minmax(0, 1fr); } }
@media (min-width: 1280px) { .docs { grid-template-columns: 280px minmax(0, 1fr) 232px; } .docs-wide { grid-template-columns: 280px minmax(0, 1fr); } }

/* menu lateral */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  width: min(330px, 88vw);
  padding: 12px 12px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(-105%);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
}
.sidebar.is-open { transform: none; visibility: visible; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(15, 23, 42, 0.5); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px 8px; margin-bottom: 4px; font-weight: 700; }
@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: var(--topbar);
    z-index: auto;
    width: auto;
    height: calc(100vh - var(--topbar));
    padding: 20px 12px 40px 16px;
    border-right: 1px solid var(--border);
    background: transparent;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }
  .sidebar-head,
  .drawer-backdrop { display: none; }
}

.side-home,
.side-cat summary,
.side-cat a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
}
.side-home { padding: 8px 10px; font-weight: 600; font-size: 14.5px; }
.side-home:hover { background: var(--surface-2); color: var(--text); }
.side-home .icon { width: 18px; height: 18px; color: var(--muted); }
.side-group { margin-top: 18px; }
.side-group-title { margin: 0 0 6px; padding: 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.side-cat summary { padding: 8px 10px; font-size: 14.5px; font-weight: 600; cursor: pointer; list-style: none; user-select: none; }
.side-cat summary::-webkit-details-marker { display: none; }
.side-cat summary:hover { background: var(--surface-2); color: var(--text); }
.side-cat summary > .icon:first-child { width: 18px; height: 18px; color: var(--muted); }
.side-cat summary span { flex: 1; }
.side-chevron { width: 16px; height: 16px; color: var(--muted); transform: rotate(-90deg); transition: transform 0.2s; }
.side-cat[open] > summary .side-chevron { transform: none; }
.side-cat[open] > summary > .icon:first-child { color: var(--primary); }
.side-cat ul { list-style: none; margin: 2px 0 8px 19px; padding: 0 0 0 10px; border-left: 1px solid var(--border); }
.side-cat a { padding: 6px 10px; font-size: 14px; line-height: 1.4; }
.side-cat a:hover { background: var(--surface-2); color: var(--text); }
.side-cat a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; position: relative; }
.side-cat a[aria-current="page"]::before { content: ""; position: absolute; left: -11px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--primary); }
.side-overview { color: var(--muted) !important; font-size: 13.5px !important; }
.side-overview[aria-current="page"] { color: var(--primary) !important; }

/* conteúdo */
.doc { min-width: 0; padding: 20px 16px 56px; }
@media (min-width: 768px) { .doc { padding: 28px 40px 72px; } }
@media (min-width: 1024px) { .doc { padding: 32px 48px 80px; } }
.doc > * { max-width: 780px; }
.docs-wide .doc > * { max-width: 920px; }

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 13.5px; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.breadcrumb li + li::before { content: "›"; color: var(--border-strong); margin-right: 2px; font-size: 16px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

.doc-head { padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.doc-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--primary); }
.doc-eyebrow span[aria-hidden] { color: var(--border-strong); }
.doc-eyebrow .icon:nth-of-type(2) { color: var(--muted); }
.doc-head h1,
.category-head h1 { margin: 0; font-size: clamp(27px, 4.6vw, 36px); font-weight: 800; letter-spacing: -0.025em; }
.doc-summary { margin: 10px 0 0; font-size: clamp(16px, 2vw, 18px); color: var(--text-2); line-height: 1.55; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}
.badge .icon { width: 14px; height: 14px; }
.badge-plan { background: var(--plan-bg); border-color: transparent; color: var(--plan-ink); }
.badge-video { background: var(--primary-soft); border-color: transparent; color: var(--primary); }

/* vídeo do artigo */
.video { margin: 24px 0 8px; scroll-margin-top: calc(var(--topbar) + 16px); }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cover { position: absolute; inset: 0; display: block; color: #fff; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: opacity 0.2s, transform 0.4s; }
.video-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.55)); }
.video-cover:hover img { opacity: 1; transform: scale(1.02); }
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 30px -6px rgba(1, 59, 228, 0.7), 0 0 0 8px rgba(255, 255, 255, 0.18);
  transition: transform 0.2s;
}
.video-play .icon { width: 30px; height: 30px; margin-left: 4px; }
.video-cover:hover .video-play,
.video-card:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
.video-play-sm { left: 10px; top: auto; bottom: 8px; width: 40px; height: 40px; transform: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2); }
.video-card:hover .video-play-sm { transform: scale(1.08); }
.video-play-sm .icon { width: 18px; height: 18px; margin-left: 2px; }
.video-label { position: absolute; left: 14px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }

/* sumário no celular */
.toc-inline { margin: 20px 0 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.toc-inline summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 600; font-size: 14.5px; cursor: pointer; list-style: none; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; }
.toc-inline[open] summary::after { transform: rotate(-135deg); }
.toc-inline ol { margin: 0; padding: 0 14px 12px 36px; font-size: 14.5px; }
.toc-inline li { padding: 3px 0; }
.toc-inline a { color: var(--text-2); text-decoration: none; }
.toc-inline a:hover { color: var(--primary); }
@media (min-width: 1280px) { .toc-inline { display: none; } }

/* sumário fixo (desktop) */
.toc { display: none; }
@media (min-width: 1280px) {
  .toc { display: block; position: sticky; top: var(--topbar); align-self: start; max-height: calc(100vh - var(--topbar)); overflow-y: auto; padding: 36px 20px 40px 8px; }
  .docs-wide .toc { display: none; }
}
.toc-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc a { display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 2px solid transparent; color: var(--muted); font-size: 13.5px; line-height: 1.4; text-decoration: none; transition: color 0.15s, border-color 0.15s; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }

/* texto do artigo */
.prose { font-size: 16.5px; line-height: 1.75; color: var(--text-2); }
.prose > :first-child { margin-top: 24px; }
.prose p { margin: 14px 0; }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { font-weight: 500; }
.prose h2 {
  position: relative;
  margin: 40px 0 12px;
  padding-top: 4px;
  font-size: clamp(20px, 2.6vw, 23px);
  font-weight: 750;
  scroll-margin-top: calc(var(--topbar) + 20px);
}
.prose h2:first-child { margin-top: 28px; }
.heading-anchor { position: absolute; left: -22px; top: 4px; padding-right: 6px; color: var(--border-strong); font-weight: 500; text-decoration: none; opacity: 0; transition: opacity 0.15s; }
.prose h2:hover .heading-anchor,
.heading-anchor:focus-visible { opacity: 1; color: var(--primary); }
@media (max-width: 767px) { .heading-anchor { display: none; } }
.prose ul,
.prose ol { margin: 14px 0; padding-left: 22px; }
.prose li { margin: 8px 0; padding-left: 4px; }
.prose ul li::marker { color: var(--primary); }

.prose ol.steps { list-style: none; padding: 0; counter-reset: step; }
.prose ol.steps > li { position: relative; margin: 0; padding: 4px 0 18px 46px; counter-increment: step; }
.prose ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}
.prose ol.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 36px; bottom: 2px; width: 1px; background: var(--border); }

.marker {
  display: inline-grid;
  place-items: center;
  min-width: 1.45em;
  height: 1.45em;
  padding: 0 0.3em;
  margin: 0 0.1em;
  border-radius: 999px;
  background: var(--marker);
  color: #fff;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1;
  vertical-align: 0.12em;
}

.callout { display: flex; gap: 12px; margin: 20px 0; padding: 14px 16px; border: 1px solid; border-radius: 12px; font-size: 15.5px; line-height: 1.65; }
.callout p { margin: 0; }
.callout .callout-title { margin-bottom: 2px; font-weight: 700; }
.callout-icon { margin-top: 2px; }
.callout-tip { background: var(--tip-bg); border-color: var(--tip-border); color: var(--tip-ink); }
.callout-tip .callout-icon { color: var(--tip-icon); }
.callout-warning { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-ink); }
.callout-warning .callout-icon { color: var(--warn-icon); }
.callout strong { color: inherit; }
.callout a { color: inherit; text-decoration: underline; }

.shot { margin: 18px 0 26px; }
.shot-link {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: zoom-in;
}
.shot img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(70vh, 720px);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.shot-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s;
}
.shot-zoom .icon { width: 15px; height: 15px; }
.shot-link:hover .shot-zoom,
.shot-link:focus-visible .shot-zoom { opacity: 1; }
@media (hover: none) { .shot-zoom { opacity: 1; padding: 6px; } .shot-zoom span { display: none; } }
.shot figcaption { margin-top: 8px; text-align: center; font-size: 14px; color: var(--muted); }

/* "ainda com dúvida", paginação e relacionados */
.still-doubt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-soft), transparent 70%), var(--surface);
}
.still-doubt > div { flex: 1 1 260px; }
.still-doubt p { margin: 0; color: var(--text-2); font-size: 15px; }
.still-doubt .still-doubt-title { margin-bottom: 2px; color: var(--text); font-weight: 700; font-size: 16px; }
.still-doubt-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--brand); color: #fff; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.pager-link { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; min-width: 0; }
.pager-link:hover { border-color: var(--primary-ring); box-shadow: var(--shadow-sm); }
.pager-next { text-align: right; align-items: flex-end; }
.pager-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pager-title { font-weight: 650; color: var(--primary); line-height: 1.35; }
@media (max-width: 519px) { .pager { grid-template-columns: 1fr; } .pager > span { display: none; } }

.related { margin-top: 40px; }
.related h2 { margin: 0 0 12px; font-size: 18px; }

.article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.article-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.article-card:hover { border-color: var(--primary-ring); box-shadow: var(--shadow-sm); }
.article-card:hover .article-card-title { color: var(--primary); }
.article-icon { color: var(--primary); margin-top: 2px; }
.article-num { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 14px; }
.article-card-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.article-card-title { font-weight: 700; line-height: 1.4; }
.article-card-summary { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.article-card .badges { margin-top: 8px; }
.article-arrow { color: var(--muted); margin-top: 4px; transition: transform 0.15s; }
.article-card:hover .article-arrow { transform: translateX(3px); color: var(--primary); }

.category-head { display: flex; align-items: flex-start; gap: 16px; }
.category-icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 16px; background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(1, 59, 228, 0.7); }
.category-icon .icon { width: 28px; height: 28px; }
.category-head .doc-eyebrow { margin-bottom: 4px; }
.category-count { margin: 28px 0 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* ------------------------------------------------------------------ busca */
.search-modal { position: fixed; inset: 0; z-index: 100; }
.search-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade 0.15s ease-out; }
.search-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--surface);
  animation: pop 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 640px) {
  .search-panel { width: min(680px, calc(100vw - 32px)); height: auto; max-height: min(640px, 80vh); margin: 9vh auto 0; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
}
.search-box { display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--border); color: var(--primary); }
.search-box input { flex: 1; min-width: 0; height: 60px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; outline: none; }
.search-box input::placeholder { color: var(--muted); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-close { padding: 6px; border: 0; background: none; cursor: pointer; }
.search-results { overflow-y: auto; overscroll-behavior: contain; }
.search-panel .search-results { flex: 1; padding: 8px; }
.search-foot { display: none; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 12.5px; color: var(--muted); }
.search-foot kbd { margin-right: 3px; }
@media (min-width: 640px) and (hover: hover) { .search-foot { display: flex; } }

.search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  max-height: min(460px, 60vh);
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.results-heading { margin: 6px 8px 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  scroll-margin: 8px;
}
.result + .result { margin-top: 2px; }
.result.is-active,
.result:focus-visible { background: var(--primary-soft); outline: none; }
.result-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.result-icon svg { width: 17px; height: 17px; }
.result.is-active .result-icon { color: var(--primary); border-color: var(--primary-ring); }
.result-body { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 1px; }
.result-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-title { font-weight: 650; line-height: 1.4; }
.result-tag { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 600; vertical-align: 2px; }
.result-tag-plan { background: var(--plan-bg); color: var(--plan-ink); }
.result-snippet { font-size: 13.5px; color: var(--text-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-compact .result-body { flex-direction: column-reverse; }
.result-enter { display: grid; place-items: center; align-self: center; width: 26px; height: 26px; color: var(--primary); opacity: 0; }
.result-enter svg { width: 16px; height: 16px; }
.result.is-active .result-enter { opacity: 1; }
.results-empty { padding: 14px 12px 6px; color: var(--text-2); font-size: 14.5px; }
.results-empty p { margin: 0 0 8px; }
.results-empty-title { font-weight: 700; color: var(--text); font-size: 15.5px; }
.results-chefe { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--primary-soft); color: var(--text-2); }
.results-chefe svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--primary); }

.search-page { padding-top: 24px; padding-bottom: 56px; max-width: 860px; }
.search-page h1 { margin: 0 0 18px; font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
.search-page-box { margin: 0; max-width: none; box-shadow: var(--shadow); border: 1px solid var(--border); }
.search-page-box:focus-within { box-shadow: var(--shadow), 0 0 0 4px var(--primary-ring); }
.search-status { color: var(--muted); margin: 16px 0 0; }
.search-results-page { margin-top: 8px; }
.search-results-page .result { padding: 14px; border: 1px solid transparent; }
.search-results-page .result:hover { border-color: var(--border); background: var(--surface); }
.search-results-page .result-snippet { -webkit-line-clamp: 3; }

/* ------------------------------------------------------------------ imagem ampliada */
.lightbox { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 56px 12px 16px; background: rgba(2, 6, 23, 0.9); animation: fade 0.15s ease-out; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; max-height: 100%; }
.lightbox img { display: block; max-width: min(1400px, 96vw); max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 10px; background: #fff; box-shadow: var(--shadow-lg); }
.lightbox figcaption { max-width: 720px; color: rgba(255, 255, 255, 0.88); font-size: 14.5px; text-align: center; }
.lightbox figcaption .marker { font-size: 0.85em; }
.lightbox-close { position: absolute; top: 10px; right: 10px; color: #fff; background: rgba(255, 255, 255, 0.12); }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }

/* ------------------------------------------------------------------ 404 e rodapé */
.not-found { padding-top: 56px; padding-bottom: 56px; text-align: center; max-width: 760px; }
.not-found-code { margin: 0; font-size: 72px; font-weight: 800; line-height: 1; color: var(--primary); letter-spacing: -0.04em; }
.not-found h1 { margin: 10px 0 0; font-size: clamp(24px, 4vw, 32px); }
.not-found .hero-search { margin: 26px auto 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.chip-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: var(--primary-ring); color: var(--primary); }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-direction: column; gap: 10px; padding-top: 28px; padding-bottom: 32px; }
.footer-inner p { margin: 0; max-width: 640px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-inner nav a { color: var(--text-2); text-decoration: none; font-weight: 500; }
.footer-inner nav a:hover { color: var(--primary); text-decoration: underline; }
.brand-footer .brand-logo { width: 22px; }
.footer-copy { font-size: 13px; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .sidebar, .toc, .toc-inline, .still-doubt, .pager, .related, .site-footer, .video, .shot-zoom { display: none !important; }
  .docs { display: block; }
  .doc { padding: 0; }
  .shot-link { border: 0; padding: 0; background: none; }
}
