/* ==========================================================
   Recruit by Cavora — páginas de conteúdo
   Aditivo a styles.css, que NÃO é alterado. Carregado apenas
   nas páginas internas (comerciais, legais, blog e artigos).
   Reusa as variáveis de cor e a fonte definidas em styles.css.
   ========================================================== */

/* ---------- Estrutura de página ---------- */
.page {
  padding: 40px 0 80px;
}

.page-narrow {
  max-width: 68ch;
  margin: 0 auto;
}

/* ---------- Trilha de navegação ---------- */
.crumbs {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 32px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crumbs li::after {
  content: "/";
  margin-left: 8px;
  color: var(--border);
}

.crumbs li:last-child::after {
  content: none;
}

.crumbs a {
  color: var(--text-2);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Cabeçalho de página ---------- */
.page-head {
  max-width: 68ch;
  margin: 0 auto 48px;
}

.page-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-dark);
  background: rgba(8, 158, 151, 0.08);
  border: 1px solid rgba(8, 158, 151, 0.24);
  border-radius: 999px;
  padding: 4px 16px;
  margin-bottom: 24px;
}

.page-head h1 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-lead {
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-2);
}

.page-meta {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- Corpo de leitura ---------- */
.prose {
  max-width: 68ch;
  margin: 0 auto;
}

.prose > * + * {
  margin-top: 24px;
}

.prose h2 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: 56px;
}

.prose h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 40px;
}

.prose h2 + p,
.prose h3 + p,
.prose h2 + ul,
.prose h3 + ul {
  margin-top: 16px;
}

.prose ul,
.prose ol {
  padding-left: 24px;
}

.prose ul {
  list-style: disc outside;
}

.prose ol {
  list-style: decimal outside;
}

.prose li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--text-2);
}

.prose a {
  color: var(--teal-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  font-weight: 600;
  color: var(--text);
}

.prose blockquote {
  border-left: 2px solid var(--teal);
  padding-left: 24px;
  color: var(--text-2);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.prose dl {
  margin-top: 24px;
}

.prose dt {
  font-weight: 600;
  margin-top: 24px;
}

.prose dd {
  margin-top: 4px;
  color: var(--text-2);
}

/* ---------- Destaque ---------- */
.callout {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 16px;
  line-height: 1.6;
}

.callout > * + * {
  margin-top: 12px;
}

.callout-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.callout-warn {
  border-left-color: #B45309;
  background: #FFFBEB;
  border-color: #FDE68A;
}

/* ---------- Chamada final de artigo ---------- */
.page-cta {
  max-width: 68ch;
  margin: 64px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  color: var(--text-2);
}

.page-cta a {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Leia também ---------- */
.related {
  max-width: 68ch;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}

.related ul {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding-left: 0;
}

.related a {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--teal-dark);
  text-decoration: none;
}

.related a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Blocos de apoio nas páginas comerciais ---------- */
.stack {
  max-width: 68ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(18, 35, 65, 0.04);
}

/* Anula o espaçamento de .prose h3, que também alcança os painéis. */
.panel h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
}

.panel p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-2);
}

.panel dl {
  margin-top: 12px;
}

.panel dt {
  font-size: 15px;
  font-weight: 600;
  margin-top: 16px;
}

.panel dt:first-child {
  margin-top: 0;
}

.panel dd {
  font-size: 15px;
  color: var(--text-2);
  margin-top: 2px;
}

/* ==========================================================
   Índice do blog
   A coluna de leitura de 68ch vale dentro do artigo. Aqui é
   uma lista: precisa de mais largura, senão um item só fica
   flutuando no vazio. Coluna própria, mais larga, e cada
   artigo vira um cartão — formato que aguenta 1 ou 20 itens
   sem mudar de estrutura.
   ========================================================== */
.page-wide {
  max-width: 880px;
  margin: 0 auto;
}

/* Compostas com .page-head para vencer por especificidade,
   sem depender da ordem das regras no arquivo. */
.page-head.blog-head {
  max-width: none;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.page-head.blog-head h1 {
  font-size: 40px;
}

.page-head.blog-head .page-lead {
  max-width: 60ch;
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.post-item:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 12px rgba(18, 35, 65, 0.07);
}

.post-item h2 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-item h2 a {
  color: inherit;
  text-decoration: none;
}

.post-item:hover h2 a {
  color: var(--teal-dark);
}

/* Cartão inteiro clicável, mantendo um único link no HTML. */
.post-item h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.post-item h2 a:focus-visible::after {
  outline: 2px solid var(--teal-dark);
  outline-offset: 2px;
}

.post-excerpt {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 62ch;
}

.post-date {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-2);
  margin-bottom: 10px;
}

.post-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--teal-dark);
}

.post-empty {
  color: var(--text-2);
}

/* ---------- Links do rodapé ---------- */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.footer-links a {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal-dark);
}

/* ---------- Breakpoints ---------- */
@media (min-width: 768px) {
  .page {
    padding: 64px 0 96px;
  }

  .page-head h1 {
    font-size: 48px;
  }

  .prose h2 {
    font-size: 32px;
  }

  .prose h3 {
    font-size: 22px;
  }

  .panel {
    padding: 32px;
  }

  .panel h3 {
    font-size: 18px;
  }

  .page-head.blog-head {
    margin-bottom: 48px;
  }

  .page-head.blog-head h1 {
    font-size: 52px;
  }

  .post-list {
    gap: 20px;
  }

  .post-item {
    padding: 32px;
  }

  .post-item h2 {
    font-size: 24px;
  }
}
