/*
 * content.css — estilos compartilhados das páginas editoriais e institucionais
 * (guias, tutoriais, sobre, contato, política editorial).
 * Tema claro, layout de leitura com largura máxima de 760px.
 */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --bg: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.site-header-inner {
  max-width: 760px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
}
.back-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.back-link:hover { text-decoration: underline; }

.article-wrap {
  max-width: 760px;
  margin: 32px auto 80px;
  padding: 0 24px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}
.article-intro {
  font-size: 1.05rem;
  color: #334155;
  border-left: 4px solid var(--primary);
  padding-left: 16px;
  margin-bottom: 40px;
  line-height: 1.75;
}
h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 10px;
}
p { margin-bottom: 18px; color: #1e293b; }
ul, ol { margin: 0 0 18px 24px; }
li { margin-bottom: 8px; color: #1e293b; }
strong { font-weight: 700; }
a { color: var(--primary-dark); }

.highlight-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}
.highlight-box p { margin-bottom: 0; color: #1e3a5f; }
.metrics-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}
.metrics-table th {
  background: #f1f5f9;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  border: 1px solid var(--border);
}
.metrics-table td { padding: 10px 14px; border: 1px solid var(--border); }
.metrics-table tr:nth-child(even) td { background: #f8fafc; }

.faq-section { margin-top: 48px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item h3 { margin-top: 0; }
.faq-item p:last-child { margin-bottom: 0; }

.cta-block {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin-top: 52px;
  text-align: center;
}
.cta-block p { color: rgba(255,255,255,0.9); margin-bottom: 20px; font-size: 1rem; }
.cta-link {
  display: inline-block;
  background: var(--white);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: box-shadow 0.2s;
}
.cta-link:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.disclaimer {
  margin-top: 48px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer institucional compartilhado */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 14px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover { color: var(--primary); text-decoration: underline; }

/* Index de guias */
.guias-hero { max-width: 760px; margin: 40px auto 8px; padding: 0 24px; }
.cards-grid {
  max-width: 1040px;
  margin: 32px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.guia-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.guia-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); border-color: var(--primary); }
.guia-card .card-date { font-size: 12px; color: var(--text-muted); }
.guia-card .card-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.guia-card .card-desc { font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.guia-card .card-cta { font-size: 0.85rem; font-weight: 600; color: var(--primary); }

@media (max-width: 600px) {
  .article-wrap { margin-top: 24px; }
  .cta-block { padding: 28px 20px; }
  .metrics-table { font-size: 0.82rem; }
}

/* Focus styles for keyboard accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Inline code */
code {
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--text);
}

/* Tutorial components */
.badge {
  display: inline-block;
  font-size: 11px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  color: var(--text-muted);
  margin-right: 6px;
}
.tutorial-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 36px;
}
.tutorial-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 0;
}
.step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body { flex: 1; min-width: 0; }
.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 4px 0 8px;
}
.step-desc {
  font-size: 14px;
  color: #334155;
  margin: 0 0 10px;
}
.tip {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: #1e3a5f;
  margin: 10px 0 0;
}
.tip.warn {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #f59e0b;
  color: #78350f;
}
.tip.ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left-color: #22c55e;
  color: #14532d;
}
.tip strong { font-weight: 700; }
.path {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 8px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #1d4ed8;
}
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

@media (max-width: 480px) {
  .step { gap: 14px; }
  .step-num { width: 30px; height: 30px; font-size: 13px; }
}
