/* Blog: artigo */
.pg-artigo {
  /* Topo: tema, tipo, autor, revisor e datas (sobre o fundo azul) */
  .art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  .art-tags .chip { background: rgb(255 255 255 / .14); color: #fff; }
  .art-tags .chip-tipo { background: var(--sun); color: var(--sun-ink); }
  .art-meta { display: grid; gap: 10px; margin-top: 24px; color: rgb(255 255 255 / .85); font-size: .95rem; }
  .art-meta a, .art-meta strong { color: #fff; font-weight: 700; }
  .art-meta a { text-decoration: underline; text-underline-offset: 3px; }
  .art-meta a:hover { color: var(--sun); }
  .art-autoria { display: flex; align-items: center; gap: 12px; }
  .art-autoria img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgb(255 255 255 / .5); }
  .art-autoria > span { display: grid; gap: 2px; }
  .art-autoria small { color: rgb(255 255 255 / .75); font-size: .88rem; }
  .art-revisor { display: flex; align-items: center; gap: 8px; }
  .art-revisor .icon { color: var(--sun); flex-shrink: 0; }
  .art-datas { display: flex; flex-wrap: wrap; gap: 6px 20px; color: rgb(255 255 255 / .75); }
  .art-datas span { display: inline-flex; align-items: center; gap: 6px; }

  .art-previa { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding: 12px 16px; border-radius: 12px; background: #fff4cc; color: #5c4300; font-weight: 700; }

  .art-corpo { padding-top: clamp(28px, 4vw, 44px); }
  .artigo { max-width: 820px; }

  /* Compartilhar */
  .art-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; }
  .art-share-t { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); margin-right: 4px; }
  .art-share a, .art-share button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); cursor: pointer; transition: background .2s, color .2s; }
  .art-share a:hover, .art-share button:hover, .art-share :focus-visible { background: var(--blue); color: #fff; border-color: var(--blue); }
  .art-copiado { font-size: .9rem; color: var(--teal); font-weight: 700; }

  /* Imagem de destaque */
  .art-capa { margin: 0 0 36px; }
  .art-capa img { width: 100%; border-radius: var(--r-card); box-shadow: var(--shadow); }
  .art-capa figcaption { margin-top: 10px; color: var(--muted); font-size: .92rem; }
  .art-capa figcaption small { display: inline; opacity: .8; }

  /* Índice */
  .art-indice { padding: 20px 24px; margin-bottom: 36px; }
  .art-indice-t { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 10px; }
  .art-indice ol { list-style: decimal; padding-left: 1.4em; display: grid; gap: 6px; }
  .art-indice a { color: var(--link); }

  /* Texto */
  .prose { font-size: 1.1rem; }
  .prose > * + * { margin-top: 1.1em; }
  .prose h2 { font-size: 2rem; margin-top: 1.6em; scroll-margin-top: 100px; }
  .prose h3 { font-size: 1.5rem; margin-top: 1.4em; scroll-margin-top: 100px; }
  .prose h4 { font-size: 1.2rem; margin-top: 1.2em; }
  .prose ul, .prose ol { padding-left: 1.4em; }
  .prose ul { list-style: disc; }
  .prose ol { list-style: decimal; }
  .prose li + li { margin-top: .4em; }
  .prose a { color: var(--link); }
  .prose img { border-radius: 12px; height: auto; }
  .prose .md-figura { margin: 1.6em 0; }
  .prose .md-figura img { display: block; width: 100%; }
  .prose .md-figura figcaption { margin-top: 8px; color: var(--muted); font-size: .92rem; text-align: center; }
  .prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--sun); color: var(--muted); font-size: 1.2rem; }
  .prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
  .prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
  .prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
  .prose th { background: var(--surface-2); font-weight: 700; }

  /* Perguntas frequentes */
  .art-faq { margin-top: 48px; display: grid; gap: 10px; scroll-margin-top: 100px; }
  .art-faq > h2 { font-size: 2rem; margin-bottom: 10px; }
  .art-faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .art-faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 20px; cursor: pointer; list-style: none; }
  .art-faq summary::-webkit-details-marker { display: none; }
  .art-faq summary::after { content: '+'; font: 700 1.4rem/1 var(--f-display); color: var(--blue); flex-shrink: 0; }
  .art-faq details[open] summary::after { content: '–'; }
  .art-faq summary h3 { font-size: 1.1rem; line-height: 1.3; margin: 0; }
  .art-faq details .prose { padding: 0 20px 18px; color: var(--muted); font-size: 1rem; }

  /* Sobre o autor / revisor */
  .art-pessoa { display: flex; gap: 20px; align-items: flex-start; padding: 24px; margin-top: 40px; }
  .art-pessoa + .art-pessoa { margin-top: 14px; }
  .art-pessoa > img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
  .art-pessoa-r { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }
  .art-pessoa h2 { font-size: 1.4rem; margin: 4px 0 2px; }
  .art-pessoa h2 a { color: var(--ink); text-decoration: none; }
  .art-pessoa h2 a:hover { color: var(--link); }
  .art-pessoa-c { color: var(--muted); }
  .art-pessoa .prose { font-size: 1rem; margin-top: 10px; color: var(--muted); }
  .art-pessoa-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .95rem; }
  .art-pessoa-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--link); }

  /* Relacionados */
  .outros { padding-top: 0; }
  .h2 { font-size: 2rem; margin-bottom: 16px; }
  .ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .ol a { display: flex; align-items: center; gap: 14px; padding: 18px; color: var(--ink); text-decoration: none; height: 100%; }
  .ol a:hover { border-color: var(--blue); }
  .ol span { flex: 1; display: grid; gap: 4px; }
  .ol small { color: var(--teal); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
  @media (max-width: 860px) { .ol { grid-template-columns: 1fr; } }
  @media (max-width: 560px) {
    .art-pessoa { flex-direction: column; }
  }
}
.pg-artigo .art-fontes { margin-top: 40px; font-size: .98rem; color: var(--muted); }
.pg-artigo .art-fontes h2 { font-size: 1.5rem; color: var(--ink); }
