/* Manual do usuário Maestro — alinhado à paleta do app */
@import url("styles.css");

.manual-page {
  min-height: 100vh;
  background: var(--bg, #f8fafc);
  color: var(--slate-800, #1e293b);
}

.manual-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #0f2a5a;
  color: #eaf2ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.manual-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 1440px) {
  .manual-topbar-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.manual-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #eaf2ff;
  min-width: 0;
}

.manual-brand img {
  height: 62px;
  width: auto;
  flex-shrink: 0;
}

.manual-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.manual-brand-text b {
  font-family: "Azonix", system-ui, sans-serif;
  font-size: 26px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.manual-brand-text small {
  display: block;
  font-family: sans-serif;
  font-style: italic;
  font-size: 11px;
  opacity: 0.85;
  font-weight: 400;
}

.manual-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.manual-lang-select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #eaf2ff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-width: 120px;
  transition: all 0.2s;
}

.manual-lang-select:hover {
  background: rgba(255, 255, 255, 0.18);
}

.manual-lang-select option {
  background: #0f2a5a;
  color: #eaf2ff;
}

.btn-manual-help {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #eaf2ff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-manual-help:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.manual-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .manual-layout {
    grid-template-columns: 1fr;
  }
  .manual-sidebar {
    position: static !important;
  }
}

.manual-sidebar {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: var(--radius, 14px);
  padding: 16px;
  box-shadow: var(--shadow, 0 8px 20px rgba(17, 24, 39, 0.08));
  max-height: calc(100vh - 100px);
  overflow: auto;
}

.manual-search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

.manual-sidebar-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-500, #64748b);
  margin-bottom: 10px;
  font-weight: 700;
}

.manual-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.manual-nav-link {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--slate-700, #334155);
  font-size: 13px;
  line-height: 1.35;
  transition: background 0.15s;
}

.manual-nav-link:hover,
.manual-nav-link:focus-visible {
  background: var(--slate-100, #f1f5f9);
  outline: none;
}

.manual-nav-link.active {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-700, #1e3a8a);
  font-weight: 600;
}

.manual-nav-num {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--slate-500, #64748b);
  flex-shrink: 0;
}

.manual-hero {
  background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: var(--radius, 14px);
  padding: 28px 28px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow, 0 8px 20px rgba(17, 24, 39, 0.08));
}

.manual-hero h1 {
  font-family: "Azonix", system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--blue-800, #0f2a5a);
  margin: 0 0 12px;
  letter-spacing: 0.03em;
}

.manual-hero .lead {
  font-size: 1.05rem;
  color: var(--slate-600, #475569);
  max-width: 72ch;
  line-height: 1.65;
}

.manual-section {
  scroll-margin-top: 100px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--slate-200, #e2e8f0);
}

.manual-section:last-child {
  border-bottom: none;
}

.manual-section-head {
  margin-bottom: 20px;
}

.manual-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate-500, #64748b);
  font-weight: 700;
  margin-bottom: 6px;
}

.manual-section h2 {
  font-family: "Azonix", system-ui, sans-serif;
  font-size: 1.35rem;
  color: var(--blue-800, #0f2a5a);
  margin: 0 0 8px;
}

.manual-summary {
  font-size: 15px;
  color: var(--slate-600, #475569);
  line-height: 1.6;
  max-width: 85ch;
}

.manual-body {
  display: block;
}

.manual-prose {
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate-800, #1e293b);
  max-width: 100%;
}

.manual-prose h3 {
  font-size: 1.05rem;
  margin: 22px 0 10px;
  color: var(--slate-900, #0f172a);
}

.manual-prose p {
  margin: 0 0 12px;
}

.manual-prose ul,
.manual-prose ol {
  margin: 8px 0 14px 1.25rem;
}

.manual-prose li {
  margin-bottom: 6px;
}

.manual-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 14px 0;
}

.manual-inline-shot {
  margin: 18px 0 22px;
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.manual-inline-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.manual-inline-shot figcaption {
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--slate-600, #475569);
  border-top: 1px solid var(--slate-200, #e2e8f0);
  background: var(--slate-50, #f8fafc);
}

.manual-prose th,
.manual-prose td {
  border: 1px solid var(--slate-200, #e2e8f0);
  padding: 10px 12px;
  text-align: left;
}

.manual-prose th {
  background: var(--slate-100, #f1f5f9);
  font-weight: 600;
}

@media print {
  .manual-sidebar,
  .manual-topbar,
  .manual-search {
    display: none !important;
  }
  .manual-layout {
    grid-template-columns: 1fr;
  }
}
