/* =========================================================
   ARTIGO
========================================================= */

.af-artigo {
  background: #fff;
  color: #1d1d1f;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Inter",
    sans-serif;
}

.af-artigo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HERO */

.af-artigo-hero {
  padding: 38px 0 24px;
  background:
    linear-gradient(
      180deg,
      #f5f5f7 0%,
      #ffffff 100%
    );
}

.af-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #6e6e73;
}

.af-breadcrumb a {
  color: #0071e3;
  text-decoration: none;
}

.af-artigo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

/* TAGS */

.af-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 28px;

  padding: 0 12px;

  border-radius: 999px;

  background: rgba(0,113,227,.08);

  color: #0071e3;

  font-size: 11px;
  font-weight: 700;
  line-height: 1;

  text-transform: uppercase;
  text-decoration: none;

  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}

.af-tag:hover {
  background: rgba(0,113,227,.16);

  color: #005bb5;

  transform: translateY(-1px);
}

.af-tag:focus {
  outline: 2px solid rgba(0,113,227,.35);

  outline-offset: 2px;
}

/* TITULO */

.af-artigo-hero h1 {
  max-width: 720px;
  margin: 0 0 14px;
  font-size: clamp(24px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.af-artigo-desc {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #5f6368;
}

.af-artigo-info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #6e6e73;
  font-size: 12px;
}

/* LAYOUT */

.af-artigo-layout {
  padding: 28px 0 64px;
}

.af-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
}

/* TOC */

.af-toc {
  position: relative;
}

.af-toc-box {
  position: sticky;
  top: 96px;
  padding: 18px;
  border-radius: 20px;
  background: #f5f5f7;
}

.af-toc-box strong {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
}

#afToc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.af-toc-link {
  color: #5f6368;
  text-decoration: none;
  line-height: 1.5;
  font-size: 12px;
  transition: .2s ease;
}

.af-toc-link:hover {
  color: #0071e3;
}

/* CONTEÚDO */

.af-artigo-content {
  min-width: 0;
}

.af-artigo-content h2 {
  margin: 40px 0 10px;
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.af-artigo-content h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  line-height: 1.3;
}

.af-artigo-content p,
.af-artigo-content li {
  font-size: 14px;
  line-height: 1.9;
  color: #3c4043;
}

.af-artigo-content ul,
.af-artigo-content ol {
  padding-left: 22px;
}

.af-artigo-content a {
  color: #0071e3;
  text-decoration: none;
}

.af-artigo-content strong {
  color: #1d1d1f;
}

.af-artigo-content blockquote {
  margin: 24px 0;
  padding: 20px 22px;
  border-left: 4px solid #0071e3;
  border-radius: 16px;
  background: #f5f5f7;
  font-size: 14px;
  line-height: 1.8;
}

.af-artigo-content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 8px 24px rgba(0,0,0,.05);
}

.af-artigo-content table th {
  padding: 14px;
  background: #0071e3;
  color: #fff;
  text-align: left;
  font-size: 12px;
}

.af-artigo-content table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 12px;
}

/* RELATED */

.af-related {
  margin-top: 56px;
}

.af-related h2 {
  margin-bottom: 18px;
}

.af-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.af-related-card {
  display: block;
  padding: 18px;
  border-radius: 20px;
  background: #f5f5f7;
  text-decoration: none;
  transition: .22s ease;
}

.af-related-card:hover {
  transform: translateY(-2px);
  background: #eef5ff;
}

.af-related-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #1d1d1f;
}

.af-related-card span {
  color: #5f6368;
  line-height: 1.6;
  font-size: 12px;
}

/* CTA */

.af-cta-final {
  margin-top: 56px;
}

.af-cta-final-box {
  padding: 36px;
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      #0071e3,
      #004f9f
    );
  color: #fff;
  text-align: center;
}

.af-cta-final-box span {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.af-cta-final-box h2 {
  max-width: 560px;
  margin: 0 auto 14px;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.af-cta-final-box p {
  max-width: 520px;
  margin: 0 auto 20px;
  color: rgba(255,255,255,.92);
  font-size: 13px;
  line-height: 1.7;
}

.af-cta-final-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: #0071e3;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

/* RESPONSIVO */

@media (max-width: 980px) {

  .af-grid {
    grid-template-columns: 1fr;
  }

  .af-toc {
    display: none;
  }

  .af-related-grid {
    grid-template-columns: 1fr;
  }

  .af-artigo-hero {
    padding: 54px 0 26px;
  }

  .af-cta-final-box {
    padding: 28px 20px;
  }

}