/* Postagens dos médicos: /postagens e /postagens/<slug>. Gerado por src/montar_feed.py (13/10/2026).
   Usa base.css + texto.css (faixa do topo, trilha, coluna de leitura e coluna lateral) + blog.css (texto do post,
   aviso de saúde, "Os primeiros textos estão chegando"). Aqui fica só o que é do feed: o cartão de cada post,
   com quem escreveu em cima, a assinatura no topo do post e o quadro de quem escreveu.
   Nenhuma cor nova: só tokens de base.css (as 7 cores).
   13/10/2026 (bar-vidro.md): cartões brancos lisos de canto 24px, sem borda, sombra macia; sobe 4px no hover. */

/* ---------- foto pequena de quem escreveu ---------- */
.feed-av {
  flex: none; width: 48px; height: 48px; border-radius: var(--r-pilula); object-fit: cover;
  background: var(--c-gelo); box-shadow: 0 0 0 1px rgba(24,13,82,.06);
}
.feed-av--ini {
  display: grid; place-items: center; font-size: var(--t-texto); line-height: 1; letter-spacing: -.02em;
  font-weight: var(--w-forte); color: var(--c-marinho);
}
.feed-av--g { width: 64px; height: 64px; }
.feed-av--g.feed-av--ini { font-size: var(--t-lead); }

/* Especialidade, CRM e RQE: cada um num span, separados só por espaço (sem "·" no texto). Sem traço entre eles:
   no celular a linha quebra e o traço ficava solto no começo da linha de baixo. */
.feed-reg { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font-size: var(--t-rotulo); line-height: 1.4; color: var(--c-texto-2); }

/* ---------- o feed: uma coluna de cartões, do mais novo para o mais velho ---------- */
.feed { display: flex; flex-direction: column; gap: var(--gap-card); max-width: 720px; margin: 0; padding: 0; list-style: none; }
.feed-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px;
  background: var(--c-branco); border: 0; border-radius: var(--r-grande);
  box-shadow: var(--sombra-macia); transition: transform var(--dur) var(--curva), box-shadow var(--dur) var(--curva);
}
.feed-card:hover { transform: var(--subir); box-shadow: var(--sombra-macia-hover); }
.feed-card:has(.feed-card__t a:focus-visible) { outline: 2px solid var(--c-vivo); outline-offset: 3px; }
.feed-card__quem { display: flex; align-items: center; gap: 12px; }
.feed-card__quem-txt { min-width: 0; flex: 1; }
/* o nome leva ao perfil e fica por cima do link do cartão inteiro */
.feed-card__nome {
  position: relative; z-index: 1; font-size: var(--t-texto); line-height: 1.3; font-weight: var(--w-forte);
  letter-spacing: -.01em; color: var(--c-noite); transition: color var(--dur) var(--curva);
}
.feed-card__nome:hover { color: var(--c-vivo); }
.feed-card__data { flex: none; align-self: flex-start; font-size: var(--t-rotulo); line-height: 1.4; color: var(--c-texto-2); }
.feed-card__t { font-size: var(--t-lead); line-height: 1.25; letter-spacing: -.025em; font-weight: var(--w-forte); color: var(--c-noite); text-wrap: balance; }
.feed-card__t a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.feed-card__t a:focus-visible { outline: none; }
.feed-card__d { font-size: var(--t-texto); line-height: 1.55; color: var(--c-texto-2); text-wrap: pretty; }
.feed-card__ir { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-texto); font-weight: var(--w-titulo); color: var(--c-vivo); }
.feed-card__ir .ico { transition: transform var(--dur) var(--curva); }
.feed-card:hover .feed-card__ir .ico { transform: translateX(3px); }

.feed-lado__txt { font-size: var(--t-texto); line-height: 1.5; color: var(--c-texto-2); }
.feed-lado .link-seta { margin-top: 12px; }

/* ---------- um post: assinatura no topo e quadro de quem escreveu no fim ---------- */
.feed-assina { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.post-topo .post-meta { margin-top: 16px; }

.feed-autor {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 720px; margin-top: var(--gap-vitrine); padding: 32px;
  background: var(--c-branco); border: 0; border-radius: var(--r-grande); box-shadow: var(--sombra-macia);
}
.feed-autor .sobretitulo { margin-bottom: -4px; }
.feed-autor__topo { display: flex; align-items: center; gap: 16px; }
.feed-autor__nome { font-size: var(--t-lead); line-height: 1.15; letter-spacing: -.03em; font-weight: var(--w-forte); color: var(--c-noite); }
.feed-autor .feed-reg { margin-top: 4px; }

/* ---------- tablet e celular: a lateral do feed (Como funciona, Você é médico?) desce para baixo da lista,
   em vez de sumir como o menu Institucional das páginas de texto ---------- */
@media (max-width: 900px) {
  .pag-lado.feed-lado { display: flex; position: static; }
}
@media (max-width: 767px) {
  .feed { gap: 12px; }
  .feed-card { padding: 20px; gap: 10px; }
  .feed-card__quem { flex-wrap: wrap; }
  .feed-card__data { order: 3; flex-basis: 100%; padding-left: 60px; margin-top: -8px; }
  .feed-card__t { font-size: var(--t-lead); }
  .feed-card__d { font-size: var(--t-texto); }
  .feed-autor { padding: 24px 20px; }
  .feed-autor .btn { width: 100%; }
  .feed-autor__nome { font-size: var(--t-lead); }
}

/* ---------- foto dentro do post (18/10/2026): o médico põe pelo botão Foto do painel ---------- */
.post-foto { margin: 28px 0; }
.post-foto img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover;
  border-radius: var(--r-grande); background: var(--c-gelo-fraco); box-shadow: var(--sombra-macia); }
@media (max-width: 767px) { .post-foto { margin: 20px 0; } }

/* ---------- assuntos (18/10/2026): a equipe do MédicoDaqui faz a lista, o médico escolhe 1 ou 2 por texto ----------
   No alto do /postagens: cartões dos assuntos com texto no ar. Em cada cartão de post e no topo do post: pílulas
   que levam à página do assunto (/postagens/assunto/<slug>). Mesmo vidro claro dos cartões do feed. */
.temas { max-width: 720px; margin: 0 0 40px; }
.temas__t { font-size: var(--t-lead); line-height: 1.2; letter-spacing: -.025em; font-weight: var(--w-forte); color: var(--c-noite); }
.temas__sub { margin-top: 6px; font-size: var(--t-texto); line-height: 1.5; color: var(--c-texto-2); }
.temas__grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.tema-card {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; box-sizing: border-box;
  background: var(--c-branco); border-radius: var(--r-grande); box-shadow: var(--sombra-macia); color: var(--c-noite);
  text-decoration: none; transition: transform var(--dur) var(--curva), box-shadow var(--dur) var(--curva);
}
.tema-card:hover { transform: var(--subir); box-shadow: var(--sombra-macia-hover); }
.tema-card:focus-visible { outline: 2px solid var(--c-vivo); outline-offset: 3px; }
.tema-card .caixa-ico { flex: none; }
.tema-card__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tema-card__t { font-size: var(--t-texto); line-height: 1.3; font-weight: var(--w-titulo); color: var(--c-noite); }
.tema-card__n { font-size: var(--t-rotulo); line-height: 1.3; color: var(--c-texto-2); }
.tema-card__seta { flex: none; color: var(--c-vivo); transition: transform var(--dur) var(--curva); }
.tema-card:hover .tema-card__seta { transform: translateX(3px); }
.feed-novos { margin-bottom: 16px; }

.feed-temas { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.feed-tema {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: var(--r-pilula);
  background: var(--c-vivo-fraco); color: var(--c-marinho); font-size: var(--t-rotulo); font-weight: var(--w-titulo);
  text-decoration: none; transition: background var(--dur) var(--curva);
}
.feed-tema:hover { background: var(--c-gelo); }
.feed-tema:focus-visible { outline: 2px solid var(--c-vivo); outline-offset: 2px; }
.post-topo .feed-temas { margin-top: 16px; }
@media (max-width: 767px) {
  .temas { margin-bottom: 32px; }
  .temas__grade { grid-template-columns: 1fr; gap: 10px; }
  .feed-tema { min-height: 36px; }
}
