/* ==========================================================================
   Página interna do blog — layout "Clinical Brief"
   Topo no padrão do site (.hero-interno, definido em style.css), faixa de
   apoio, três colunas e ficha do procedimento.
   O cabeçalho do site não é tocado por este arquivo.
   ========================================================================== */

/* ---------- Cabeçalho do post ---------- */
/* Título do post no topo padrão: como é longo, centraliza em todas as linhas. */
.single .hero-interno h1 { text-align: center; }

/* ---------- Faixa de apoio abaixo do topo padrão ---------- */
.post-barra {
  background: var(--branco);
  border-bottom: 1px solid #dce9f9;
  padding: 15px 0;
}

.post-barra-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
}

.post-migalhas {
  font-family: var(--f-form, var(--f-corpo));
  font-size: 13px;
  line-height: 20px;
  color: #93a2b4;
  min-width: 0;
}

.post-migalhas a { color: var(--azul); text-decoration: none; }
.post-migalhas a:hover { text-decoration: underline; }
.post-migalhas span { margin: 0 6px; }
.post-migalhas strong { font-weight: 500; color: #6b7a8d; }

.post-metas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-family: var(--f-form, var(--f-corpo));
  font-size: 13.5px;
  color: #6b7a8d;
}

.post-metas span { display: inline-flex; align-items: center; gap: 6px; }
.post-metas svg { width: 15px; height: 15px; fill: #93a2b4; }

.post-tag {
  background: var(--azul);
  color: var(--branco);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 4px;
}

/* ---------- Grade de três colunas ---------- */
.sec-post { padding: 0; }

.post-grade {
  display: grid;
  grid-template-columns: 78px 1fr 320px;
  gap: 40px;
  padding-top: 44px;
  padding-bottom: 60px;
  align-items: start;
}

/* ---------- Trilho: progresso + compartilhar ---------- */
.post-trilho {
  position: sticky;
  top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.post-progresso {
  width: 3px;
  height: 90px;
  border-radius: 3px;
  background: #e7eef8;
  overflow: hidden;
}

.post-progresso span {
  display: block;
  width: 100%;
  height: 0;
  background: var(--azul);
  border-radius: 3px;
  transition: height .12s linear;
}

.post-redes-v { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.post-redes-rotulo {
  font-family: var(--f-form, var(--f-corpo));
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #b6c4d4;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin-bottom: 4px;
}

.post-bolha {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--branco);
  transition: transform .18s ease, box-shadow .2s ease, filter .2s ease;
}

.post-bolha svg { width: 18px; height: 18px; fill: var(--branco); }
.post-bolha:hover { transform: translateY(-3px) scale(1.06); filter: brightness(1.06); }
.post-bolha:focus-visible { outline: 3px solid #9cc7f6; outline-offset: 2px; }

.rede-facebook { background: #3b5998; }
.rede-whatsapp { background: #25d366; }
.rede-email    { background: #ea4335; }
.rede-print    { background: #8d99a8; }

.rede-facebook:hover { box-shadow: 0 8px 18px rgba(59, 89, 152, .42); }
.rede-whatsapp:hover { box-shadow: 0 8px 18px rgba(37, 211, 102, .42); }
.rede-email:hover    { box-shadow: 0 8px 18px rgba(234, 67, 53, .42); }
.rede-print:hover    { box-shadow: 0 8px 18px rgba(120, 120, 120, .42); }

/* ---------- Texto do post ---------- */
.post-corpo { min-width: 0; }

.post-resumo {
  font-family: var(--f-corpo);
  font-size: 20px;
  line-height: 32px;
  font-weight: 500;
  color: #3d4b60;
  margin: 0 0 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid #dce9f9;
}

.post-corpo p {
  font-family: var(--f-corpo);
  font-size: 18px;
  line-height: 29px;
  color: #12161f;
  margin: 0 0 18px;
}

.post-corpo strong { font-weight: 700; }

/* Os subtítulos viram etiqueta de seção. */
.post-corpo h2,
.post-corpo h3 {
  display: inline-block;
  font-family: var(--f-form, var(--f-corpo));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--azul-hero, #1b5da8);
  background: #f6f9fd;
  border: 1px solid #dce9f9;
  border-radius: 999px;
  padding: 6px 14px;
  margin: 34px 0 14px;
}

.post-corpo ul,
.post-corpo ol { margin: 0 0 20px; padding: 0; list-style: none; }

.post-corpo ul li,
.post-corpo ol li {
  position: relative;
  padding-left: 28px;
  font-family: var(--f-corpo);
  font-size: 18px;
  line-height: 29px;
  color: #12161f;
  margin-bottom: 7px;
}

.post-corpo ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--azul);
}

.post-corpo ol { counter-reset: dag-lista; }

.post-corpo ol li::before {
  counter-increment: dag-lista;
  content: counter(dag-lista);
  position: absolute;
  left: 0;
  top: 4px;
  font-family: var(--f-form, var(--f-corpo));
  font-size: 12px;
  font-weight: 700;
  color: var(--azul);
}

.post-corpo blockquote {
  border-left: 4px solid var(--azul);
  background: #f6f9fd;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 26px 0;
  font-size: 17.5px;
  line-height: 28px;
  color: #25324a;
}

.post-corpo img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0 22px; }

.post-corpo a {
  color: var(--azul);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Coluna da direita ---------- */
.post-lateral {
  position: sticky;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.post-ficha {
  border: 1px solid #dce9f9;
  border-radius: 12px;
  overflow: hidden;
}

.post-ficha h2 {
  background: var(--azul-hero, #1b5da8);
  color: var(--branco);
  font-family: var(--f-titulo);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: .4px;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
  padding: 14px 18px;
}

.post-ficha dl { margin: 0; padding: 18px; }

.post-ficha dt {
  font-family: var(--f-form, var(--f-corpo));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #93a2b4;
  margin-bottom: 3px;
}

.post-ficha dd {
  margin: 0 0 14px;
  font-family: var(--f-form, var(--f-corpo));
  font-size: 14.5px;
  line-height: 22px;
  color: #2f3d52;
}

.post-ficha dd:last-child { margin-bottom: 0; }

.post-cartao-dr {
  border: 1px solid #dce9f9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--branco);
}

.post-cartao-dr img { width: 100%; height: 230px; object-fit: cover; }

.post-cartao-miolo { padding: 20px; }

.post-cartao-miolo h2 {
  font-family: var(--f-titulo);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--escuro);
  margin: 0 0 4px;
}

.post-cartao-miolo small {
  display: block;
  font-family: var(--f-form, var(--f-corpo));
  font-size: 12.5px;
  color: #7b8a9c;
  margin-bottom: 14px;
}

.post-cta {
  display: block;
  width: 100%;
  font-family: var(--f-form, var(--f-corpo));
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: var(--branco);
  background: var(--azul);
  padding: 14px 20px;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .18s ease, box-shadow .2s ease;
}

.post-cta:hover {
  background: var(--azul-escuro);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(59, 142, 237, .38);
}

.post-cta:active { transform: translateY(0); }
.post-cta:focus-visible { outline: 3px solid #9cc7f6; outline-offset: 2px; }

.post-aviso {
  border: 1px dashed #cfe0f6;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0;
  font-family: var(--f-form, var(--f-corpo));
  font-size: 13px;
  line-height: 21px;
  color: #6b7a8d;
  background: #fbfdff;
}

/* ---------- Página comum do WordPress (fallback do page.php) ---------- */
.pagina-corpo { padding: 40px 0 60px; }

.pagina-corpo p,
.pagina-corpo li {
  font-family: var(--f-corpo);
  font-size: 18px;
  line-height: 27px;
  color: var(--preto);
  margin-bottom: 20px;
}

.pagina-corpo h2,
.pagina-corpo h3 {
  font-family: var(--f-titulo);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--azul);
  margin: 30px 0 14px;
}

.pagina-corpo h2 { font-size: 33px; line-height: 36px; }
.pagina-corpo h3 { font-size: 25px; line-height: 28px; }
.pagina-corpo img { max-width: 100%; height: auto; }

.pagina-corpo a {
  color: var(--azul);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Leia também ---------- */
.sec-relacionados { background: #fcfcfc; padding: 60px 0 70px; }

.titulo-relacionados {
  font-family: var(--f-titulo);
  font-size: 33px;
  font-weight: 400;
  line-height: 33px;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 34px;
}

.grade-relacionados {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 30px;
}

.grade-relacionados .card-post h3 {
  font-family: var(--f-corpo);
  font-size: 18px;
  font-weight: 700;
  line-height: 21.6px;
  color: #1c244b;
  margin: 0 0 25px;
}

/* ---------- Paginação do blog ---------- */
.paginacao { margin-top: 44px; text-align: center; }
.paginacao ul { display: inline-flex; gap: 8px; flex-wrap: wrap; }

.paginacao a,
.paginacao span {
  display: inline-block;
  min-width: 42px;
  padding: 10px 14px;
  font-family: var(--f-corpo);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid #dce9f9;
  border-radius: 8px;
  color: var(--azul);
  background: var(--branco);
  transition: background-color .2s, color .2s, transform .15s;
}

.paginacao a:hover { background: var(--azul); color: var(--branco); transform: translateY(-2px); }
.paginacao .current { background: var(--azul); color: var(--branco); border-color: var(--azul); }

.blog-vazio {
  text-align: center;
  font-size: 18px;
  color: #5b738f;
  padding: 40px 0 20px;
}

/* ---------- Container do hero da listagem ---------- */
.hi-1030 { max-width: 1030px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .post-grade { grid-template-columns: 66px 1fr 290px; gap: 30px; }
}

@media (max-width: 1100px) {
  .grade-relacionados { grid-template-columns: repeat(2, 1fr); gap: 30px 22px; }
}

@media (max-width: 980px) {
  .post-grade { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }

  .post-trilho {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding-bottom: 6px;
  }

  .post-progresso { display: none; }
  .post-redes-v { flex-direction: row; align-items: center; }

  .post-redes-rotulo {
    writing-mode: horizontal-tb;
    margin: 0 4px 0 0;
    font-size: 10.5px;
  }

  .post-lateral { position: static; }
}

@media (max-width: 640px) {
  .post-barra { padding: 13px 0; }
  .post-barra-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .post-resumo { font-size: 18px; line-height: 29px; }
  .post-corpo p,
  .post-corpo ul li,
  .post-corpo ol li { font-size: 17px; line-height: 28px; }
  .grade-relacionados { grid-template-columns: 1fr; }
  .sec-relacionados { padding: 44px 0 50px; }
  .titulo-relacionados { font-size: 27px; line-height: 30px; }
}

/* ---------- Quem prefere menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .post-bolha, .post-cta, .post-progresso span { transition: none !important; }
}

/* ---------- Impressão: só o texto interessa no papel ---------- */
@media print {
  .site-header, .post-trilho, .post-lateral, .sec-relacionados,
  footer, .whatsapp-flutuante, .menu-app { display: none !important; }
  .post-grade { display: block; }
  .post-corpo { max-width: 100%; }
}
