@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --govbr-blue: #1351b4;
  --govbr-blue-dark: #0c326f;
  --govbr-green: #8cbf13;
  --govbr-gray-1: #1f1f1f;
  --govbr-gray-2: #555;
  --govbr-gray-3: #dfe3e8;
  --govbr-blue-soft: #eaf2fd;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--govbr-gray-1);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--govbr-blue-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  border-bottom: 3px solid var(--govbr-green);
  padding-bottom: .35rem;
  margin-bottom: 1rem;
}

.callout {
  border: 1px solid var(--govbr-gray-3) !important;
  border-left: 4px solid var(--govbr-blue) !important;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  margin: 1rem 0 1.25rem;
}

.callout-note .callout-header,
.callout .callout-header {
  background: var(--govbr-blue-soft) !important;
  color: var(--govbr-blue-dark) !important;
  font-weight: 700;
  border-bottom: 1px solid #d9e6fb;
}

.callout .callout-body {
  padding-top: .75rem;
}

blockquote {
  border-left: 4px solid var(--govbr-green);
  background: #fafbfc;
  padding: .75rem 1rem;
  border-radius: 6px;
  color: #333;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

table th {
  background: var(--govbr-blue-soft);
  color: var(--govbr-blue-dark);
  border-bottom: 1px solid #cfe0fb;
}

table th, table td {
  padding: .55rem .65rem;
}

a {
  color: var(--govbr-blue);
  text-decoration-thickness: .08em;
}

code {
  border-radius: 4px;
  padding: .08rem .3rem;
}

/* ============================================================
   Callouts dos Padrões Mínimos de Qualidade
   Classe usada no script R: .pmq-padrao
   ============================================================ */

.callout.pmq-padrao {
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--govbr-gray-3) !important;
  border-left: 4px solid var(--govbr-blue) !important;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}

/* Remove eventual cabeçalho vazio reservado pelo Quarto */
.callout.pmq-padrao .callout-header {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

/* Corrige apenas os espaços vertical superior e inferior,
   sem alterar o recuo à esquerda */
.callout.pmq-padrao .callout-body,
.callout.pmq-padrao .callout-body-container,
.callout.pmq-padrao .callout-content {
  padding-top: .35rem !important;
  padding-bottom: .35rem !important;
  margin-top: 0 !important;
}

/* Remove apenas o espaço antes do primeiro elemento */
.callout.pmq-padrao p:first-child,
.callout.pmq-padrao .callout-body > :first-child,
.callout.pmq-padrao .callout-body-container > :first-child,
.callout.pmq-padrao .callout-content > :first-child {
  margin-top: 0 !important;
}

/* Mantém um pequeno respiro inferior dentro da caixa */
.callout.pmq-padrao p:last-child,
.callout.pmq-padrao .callout-body > :last-child,
.callout.pmq-padrao .callout-body-container > :last-child,
.callout.pmq-padrao .callout-content > :last-child {
  margin-bottom: .15rem !important;
}