/* =========================================================
   ARTIGOS.CSS — VERSÃO FINAL LIMPA E CONSOLIDADA
   Método AutoridadeLocal
   ========================================================= */

:root {
  --bg: #f7f6f3;
  --bg2: #ffffff;
  --bg3: #eef0f4;
  --surface: #ffffff;
  --border: #e8eaee;
  --accent: #1c4fa3;
  --accent2: #2563eb;
  --accent3: #dce8fb;
  --text: #0f1624;
  --muted: #445166;
  --subtle: #636a78;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.75;
  overflow-x: hidden;
}

.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  background: #ffffff;
  color: var(--text);
  border: 2px solid var(--accent);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px clamp(20px, 5vw, 48px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(15, 22, 36, 0.06);
}

.nav-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-text {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
}

.nav-logo-text span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 auto;
}

.nav-menu a {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  letter-spacing: 0.01em;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-menu a:hover {
  color: var(--accent);
  background: rgba(28, 79, 163, 0.06);
}

.nav-menu a[aria-current="page"] {
  color: var(--accent);
  background: rgba(28, 79, 163, 0.08);
}

.nav-cta {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent2);
}

.page-header {
  padding-top: clamp(110px, 14vw, 160px);
  padding-bottom: clamp(48px, 6vw, 72px);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 0.75rem;
  color: var(--subtle);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--subtle);
}

.article-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(28, 79, 163, 0.08);
  border: 1px solid rgba(28, 79, 163, 0.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.page-header h1 {
  margin-bottom: 1.25rem;
}

.page-subtitle {
  font-size: clamp(0.98rem, 2vw, 1.16rem);
  color: var(--muted);
  margin-top: 0.75rem;
  max-width: 40rem;
}

.page-lead {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--muted);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.article-meta,
.article-card-meta {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--subtle);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.article-body,
.articles-body {
  padding: clamp(48px, 7vw, 80px) 0;
}

.article-content {
  max-width: 680px;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.article-content h2 {
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.article-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.article-content h3 {
  color: var(--text);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--muted);
}

.article-content li {
  margin-bottom: 0.5rem;
}

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

.callout,
.entity-block,
.ai-summary,
.intent-block,
.book-bridge,
.author-signature,
.example-box,
.compare-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 2rem 0;
}

.callout {
  background: var(--accent3);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.callout p,
.entity-block p,
.ai-summary p,
.intent-block p,
.book-bridge p,
.author-signature p,
.example-box p,
.compare-box p {
  margin-bottom: 0;
}

.compare-grid {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.compare-col {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  background: var(--surface);
}

.compare-col h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.article-cta {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 40px);
  margin-top: 3.5rem;
  text-align: center;
}

.article-cta p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.article-cta-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.article-cta-btn {
  display: inline-block;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s ease;
}

.article-cta-btn:hover {
  background: var(--accent2);
}

.article-list {
  list-style: none;
  display: grid;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
}

.article-card {
  background: var(--surface);
  padding: clamp(24px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.article-card:hover {
  background: #fafbfd;
}

.article-card-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-card-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.article-card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}

.article-card-arrow {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
  display: inline-block;
}

/* =========================================================
   CONTINUE A LEITURA — PADRÃO FINAL
   ========================================================= */

.cluster-flow {
  margin-top: 3rem;
  padding: clamp(20px, 4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.cluster-flow h2 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}

.cluster-flow-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cluster-flow-link {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg2);
  color: var(--text);
  text-decoration: none;
}

.cluster-flow-link:hover,
.cluster-flow-link:focus-visible {
  border-color: var(--accent);
  background: var(--accent3);
  outline: none;
}

.cluster-flow-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
}

.cluster-flow-link strong {
  display: block;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--subtle);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-logo-wrap:focus-visible,
.nav-cta:focus-visible,
.nav-menu a:focus-visible,
.breadcrumb a:focus-visible,
.article-cta-btn:focus-visible,
.article-card:focus-visible,
.cluster-flow-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 720px) {
  .compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-menu {
    gap: 0;
  }

  .nav-menu a {
    padding: 6px 8px;
    font-size: 0.76rem;
  }
}

@media (max-width: 480px) {
  .nav-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* =========================================================
   PATCH GLOBAL AEO / GEO — BLOCOS SEMÂNTICOS
   ========================================================= */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.entity-block,
.ai-summary,
.search-intent {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 1.5rem 0 0;
}

.entity-block {
  background: var(--bg3);
}

.entity-block p,
.ai-summary p,
.search-intent p {
  margin: 0.55rem 0 0;
}

.entity-block p:first-child,
.ai-summary p:first-child,
.search-intent p:first-child {
  margin-top: 0;
}

.entity-block h2,
.ai-summary h2,
.search-intent h2 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.8rem;
}


/* PATCH FOOTER LEGAL — POLÍTICA + HUMANS */
.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--subtle);
  text-decoration: none;
}

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

.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
