/**
 * doc.css
 * Estilos do documento gerado (preview em paper branco).
 * Usa fontes serifadas para simular documento impresso.
 */

/* ── Container do documento (plano e folha) ─────────────────────────────── */
#doc,
#doc-folha {
  background: var(--doc-bg);
  color: var(--doc-text);
  width: 100%;
  max-width: 720px;
  padding: 2.5rem 3rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
  font-family: 'Times New Roman', Times, serif;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Cabeçalho do documento ─────────────────────────────────────────────── */
.doc-header {
  border-bottom: 2px solid var(--doc-head);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.doc-inst {
  font-family: var(--font-disp);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--doc-muted);
}

.doc-titulo {
  font-family: var(--font-disp);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--doc-head);
  line-height: 1.3;
}

.doc-sub {
  font-size: 0.82rem;
  color: var(--doc-muted);
  margin-top: 0.1rem;
}

/* ── Grade de metadados ─────────────────────────────────────────────────── */
.doc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: #f2efe9;
  border-radius: 2px;
  font-size: 0.8rem;
}

.doc-meta-item {
  display: flex;
  gap: 0.35rem;
}

.doc-meta-label {
  font-weight: 700;
  color: var(--doc-head);
  white-space: nowrap;
}

.doc-meta-value { color: #3a3630; }

/* ── Seção do documento ─────────────────────────────────────────────────── */
.doc-sec { margin-bottom: 1.25rem; }

.doc-sec-title {
  display: inline-block;
  font-family: var(--font-disp);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--doc-head);
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 0.6rem;
}

.doc-sec-body {
  padding-left: 0.5rem;
  border-left: 2px solid var(--doc-rule);
}

.doc-sec-body p {
  margin-bottom: 0.4rem;
}
.doc-sec-body p:last-child { margin-bottom: 0; }

/* ── Habilidades BNCC no documento ─────────────────────────────────────── */
.doc-bncc-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.doc-bncc-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: #e6e2d8;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  white-space: nowrap;
  color: #333;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Assinaturas ────────────────────────────────────────────────────────── */
.doc-assinatura {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  padding-top: 0.5rem;
}

.doc-ass-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.doc-ass-line {
  border-bottom: 1px solid var(--doc-head);
  height: 2.2rem;
}

.doc-ass-label {
  font-size: 0.72rem;
  color: var(--doc-muted);
}

/* ── Rodapé do documento ────────────────────────────────────────────────── */
.doc-footer {
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--doc-rule);
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--doc-muted);
}
