/* Layout compartilhado das páginas filhas SEO. Standalone — não depende
   do bundle Vite. Mesma paleta ANAC do app principal. */
:root {
  --anac-blue: hsl(204 100% 26%);
  --anac-blue-dark: hsl(209 100% 18%);
  --anac-blue-light: hsl(204 70% 92%);
  --anac-yellow: hsl(45 100% 50%);
  --anac-yellow-light: hsl(45 100% 92%);
  --bg: hsl(210 40% 99%);
  --fg: hsl(209 60% 12%);
  --muted: hsl(210 30% 95%);
  --muted-fg: hsl(210 16% 40%);
  --border: hsl(210 25% 88%);
  --shadow-card: 0 10px 40px -12px hsl(204 100% 26% / 0.18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: linear-gradient(180deg, var(--bg) 0%, hsl(204 50% 96%) 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: Poppins, Inter, sans-serif;
  color: var(--fg);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-top: 2em; color: var(--anac-blue); }
h3 { font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; margin-top: 1.5em; }
p { margin: 0.6em 0; }
a { color: var(--anac-blue); }
a:hover { color: var(--anac-blue-dark); }
strong { color: var(--fg); font-weight: 700; }
ul, ol { padding-left: 1.4em; }
li { margin: 0.3em 0; }
code, kbd { background: var(--muted); padding: 1px 6px; border-radius: 4px; font-size: 0.95em; }

.container { max-width: 760px; margin: 0 auto; padding: 24px; }

header.site {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
header.site .nav { max-width: 1100px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
header.site .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
header.site .brand-logo { width: 36px; height: 36px; border-radius: 8px; background: var(--anac-blue); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
header.site .brand-text { font-family: Poppins; font-weight: 700; font-size: 14px; line-height: 1; }
header.site .brand-text small { display: block; font-size: 10px; font-weight: 500; color: var(--muted-fg); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }
header.site nav.links { display: flex; gap: 18px; flex-wrap: wrap; }
header.site nav.links a { color: var(--muted-fg); text-decoration: none; font-size: 14px; font-weight: 500; }
header.site nav.links a:hover { color: var(--anac-blue); }

.cta-primary {
  display: inline-block;
  background: var(--anac-blue);
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 20px -4px hsl(var(--anac-blue) / 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.cta-primary:hover { background: var(--anac-blue-dark); color: #fff; transform: translateY(-1px); }

article.post { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; margin: 28px 0; box-shadow: var(--shadow-card); }
.lede { font-size: 18px; color: var(--muted-fg); }
.callout {
  background: var(--anac-blue-light);
  border-left: 4px solid var(--anac-blue);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.95em;
}
.callout.warn {
  background: var(--anac-yellow-light);
  border-left-color: var(--anac-yellow);
}

/* Bloco de resposta direta no topo de cada cluster post. Otimizado pra
   extração por LLMs (AI Overview, Perplexity, ChatGPT, Claude, Gemini). */
.quick-answer {
  background: var(--anac-blue-light);
  border-left: 4px solid var(--anac-blue);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 18px 0 32px;
}
.quick-answer h2 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--anac-blue);
  margin: 0 0 12px;
  font-weight: 700;
}
.quick-answer table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0;
}
.quick-answer td {
  padding: 8px 0;
  border-bottom: 1px solid hsl(204 100% 26% / 0.2);
}
.quick-answer td:first-child {
  padding-right: 16px;
}
.quick-answer td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--anac-blue-dark);
}
.quick-answer tr:last-child td {
  border-bottom: 0;
}

/* Glossário no rodapé do home estático e nas páginas de cluster que
   quiserem definir termos. */
.glossary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: var(--shadow-card);
}
.glossary h2 {
  margin-top: 0;
}
.glossary dl {
  display: grid;
  grid-template-columns: minmax(110px, 160px) 1fr;
  gap: 12px 24px;
  font-size: 0.95em;
}
.glossary dt {
  font-weight: 700;
  color: var(--anac-blue);
}
.glossary dd {
  margin: 0;
}
@media (max-width: 600px) {
  .glossary dl { grid-template-columns: 1fr; gap: 4px 0; }
  .glossary dd { margin: 0 0 8px; }
}

table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.95em; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--muted); font-weight: 700; color: var(--fg); }

.breadcrumb { font-size: 13px; color: var(--muted-fg); margin: 16px 0 24px; }
.breadcrumb a { color: var(--muted-fg); }
.breadcrumb a:hover { color: var(--anac-blue); }

footer.site { border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; font-size: 13px; color: var(--muted-fg); margin-top: 48px; }
footer.site a { color: var(--anac-blue); }

.cta-card {
  background: linear-gradient(135deg, var(--anac-blue) 0%, var(--anac-blue-dark) 100%);
  color: #fff;
  padding: 28px;
  border-radius: 18px;
  text-align: center;
  margin: 32px 0;
}
.cta-card h3 { color: #fff; margin: 0 0 8px; }
.cta-card p { margin: 0 0 16px; color: rgba(255,255,255,0.82); }
.cta-card .cta-primary { background: var(--anac-yellow); color: var(--anac-blue-dark); }
.cta-card .cta-primary:hover { background: #e8a700; color: var(--anac-blue-dark); }

.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }
.related-grid a { display: block; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; text-decoration: none; color: var(--fg); }
.related-grid a:hover { border-color: var(--anac-blue); }
.related-grid strong { color: var(--anac-blue); display: block; margin-bottom: 4px; }
.related-grid span { color: var(--muted-fg); font-size: 13px; }
