/* ══════════════════════════════════════════════════════════════════
   blog.css — estilos compartilhados do blog F Energia Solar
   Usado por blog.php, post.php e o painel (painelblog/index.php).
   O layout usa Tailwind (CDN); aqui ficam só o que o Tailwind não cobre.
   ══════════════════════════════════════════════════════════════════ */

/* Navbar */
#nav { transition: background .35s, box-shadow .35s; }
#nav.scrolled { background: #fff !important; box-shadow: 0 2px 20px rgba(16,20,92,.12); }

/* Menu mobile */
#mob { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s, opacity .4s; }
#mob.open { max-height: 460px; opacity: 1; }

/* Faixa CTA amarela */
.cta-bg { background: linear-gradient(160deg, #FFD866 0%, #FFC700 45%, #D9A800 100%); }

/* Cards de post */
.post-card { transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(16,20,92,.16); }

/* Chips de categoria */
.chip.active { background: #113160 !important; color: #fff !important; border-color: #113160 !important; }

/* Clamp de linhas */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: #0a2040; border-radius: 3px; }

/* ── Conteúdo da matéria (HTML gerado do Markdown) ── */
.article { color: #374151; font-size: 1.05rem; line-height: 1.8; }
.article h2 { font-family: 'Poppins', sans-serif; font-weight: 800; color: #113160; font-size: 1.6rem; margin: 2.2rem 0 .8rem; }
.article h3 { font-family: 'Poppins', sans-serif; font-weight: 700; color: #113160; font-size: 1.25rem; margin: 1.8rem 0 .6rem; }
.article p { margin: 0 0 1.1rem; }
.article ul, .article ol { margin: 0 0 1.2rem 1.4rem; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin: .35rem 0; }
.article a { color: #D9A800; text-decoration: underline; }
.article strong { color: #113160; }
.article blockquote { border-left: 4px solid #FFC700; background: #F8FAFC; padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; margin: 1.4rem 0; font-style: italic; }
.article img { border-radius: 16px; margin: 1.4rem 0; max-width: 100%; height: auto; }
.article table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.article th, .article td { border: 1px solid #e5e7eb; padding: .6rem .8rem; text-align: left; }
.article th { background: #113160; color: #fff; font-family: 'Poppins', sans-serif; }
.article code { background: #F8FAFC; padding: .15rem .4rem; border-radius: 6px; font-size: .9em; }
.article pre { background: #0b1030; color: #e6e8f5; padding: 1rem 1.2rem; border-radius: 12px; overflow-x: auto; margin: 1.4rem 0; }
.article pre code { background: none; padding: 0; color: inherit; }
.article h2:first-child, .article h3:first-child, .article p:first-child { margin-top: 0; }
