/* Blog: lista, artigo e páginas comuns, com os tokens e componentes do site. */

.blog-head { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); padding-bottom: clamp(24px, 3vw, 40px); background: linear-gradient(180deg, #F3F7FF 0%, #fff 100%); }
.blog-head .section-head { margin-bottom: clamp(24px, 3vw, 40px); }
.blog-head h1 { font-size: var(--fs-h1); }
.blog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.blog-list { padding-top: clamp(16px, 2vw, 32px); }

.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-cat { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--border-card); background: #fff; font-size: 0.875rem; font-weight: 700; color: var(--text-body); transition: border-color 0.2s, color 0.2s, background 0.2s; }
.blog-cat:hover { border-color: var(--primary); color: var(--primary); }
.blog-cat.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.blog-search { position: relative; display: flex; align-items: center; width: min(100%, 320px); }
.blog-search .icon { position: absolute; left: 16px; color: var(--text-muted); pointer-events: none; }
.blog-search input[type="search"] { width: 100%; min-height: 44px; padding: 0 16px 0 42px; border-radius: var(--r-pill); border: 1px solid var(--border-card); background: #fff; font: inherit; font-size: 0.9375rem; color: var(--text); }
.blog-search input[type="search"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(46, 105, 255, 0.12); }

@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Cartão de artigo (base: .card.cont-card da Home) */
.post-card { cursor: pointer; }
.post-card-link { position: absolute !important; inset: 0; z-index: 2; border-radius: inherit; }
.post-card h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card p { font-size: 0.9375rem; }
.post-meta { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.post-cover-empty { display: grid; place-items: center; width: 100%; height: 100%; background: var(--brand-gradient); }
.post-cover-empty img { width: 72px; height: auto; opacity: 0.9; }

.blog-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(32px, 4vw, 56px); }
.blog-pages .page-numbers, .blog-pages > a, .blog-pages > span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--border-card); background: #fff; font-weight: 700; }
.blog-pages .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.blog-pages a:hover { border-color: var(--primary); color: var(--primary); }

.blog-empty { display: grid; gap: 16px; justify-items: start; padding: clamp(28px, 5vw, 56px); }
.blog-empty h2 { font-size: var(--fs-h2); }
.blog-empty p { color: var(--text-body); font-size: var(--fs-lead); }

/* Artigo */
.post-narrow { max-width: 760px; }
.post-head { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); padding-bottom: clamp(24px, 3vw, 40px); background: linear-gradient(180deg, #F3F7FF 0%, #fff 100%); }
.post-head .container { display: grid; gap: 18px; justify-items: start; }
.post-back { font-size: 0.9375rem; }
.post-back .icon { transition: transform 0.3s var(--ease); }
.post-back:hover .icon { transform: translateX(-4px); }
.post-head h1 { font-size: var(--fs-h1); }
.post-lead { font-size: var(--fs-lead); color: var(--text-body); font-weight: 500; }
.post-head .post-meta { white-space: normal; }
.post-cover { margin-block: 0 clamp(32px, 4vw, 56px); }
.post-cover img { width: 100%; height: auto; max-height: 620px; object-fit: cover; border-radius: var(--r-block); }

.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--text-body); }
.prose > * + * { margin-top: 1.25em; }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin-top: 1.8em; }
.prose h2 { font-size: var(--fs-h3); }
.prose h3 { font-size: 1.25rem; }
.prose a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose strong, .prose b { color: var(--text); }
.prose img, .prose video, .prose iframe { border-radius: var(--r-sm); height: auto; }
.prose figure { margin-block: 2em; }
.prose figcaption { margin-top: 8px; text-align: center; }
.prose blockquote { padding: 20px 24px; border-left: 4px solid var(--special-lab); background: var(--bg-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-family: var(--font-serif); font-style: italic; font-size: 1.375rem; line-height: 1.4; color: var(--text); }
.prose blockquote p { margin: 0; }
.prose pre { overflow: auto; padding: 18px; border-radius: var(--r-sm); background: var(--ink); color: var(--on-dark); font-size: 0.875rem; }
.prose code { font-size: 0.9em; }
.prose hr { border: 0; height: 1px; background: var(--border); margin-block: 2.5em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: var(--r-pill); background: var(--primary); color: #fff; text-decoration: none; font-weight: 700; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.post-tags a { display: inline-flex; padding: 6px 14px; border-radius: var(--r-pill); background: var(--bg-soft); font-size: 0.875rem; font-weight: 700; color: var(--text-body); }
.post-tags a:hover { color: var(--primary); }
.post-share { display: flex; align-items: center; gap: 10px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); font-weight: 700; font-size: 0.9375rem; }
.post-share a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #EEF4FF; color: var(--primary); transition: background 0.2s, color 0.2s; }
.post-share a:hover { background: var(--primary); color: #fff; }
.post-related { background: var(--bg-soft); }

/* Comentários */
.comments { display: grid; gap: 24px; }
.comments-title { font-size: var(--fs-h3); }
.comment-list { display: grid; gap: 16px; }
.comment-list .comment-body { padding: 20px; border-radius: var(--r-sm); background: var(--bg-soft); }
.comment-list .children { margin: 16px 0 0 24px; display: grid; gap: 16px; }
.comment-respond label { display: block; font-weight: 700; margin-bottom: 6px; }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea { width: 100%; padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid var(--border-card); font: inherit; }
.comment-respond p { margin-bottom: 14px; }

@media (max-width: 767.98px) {
  .blog-tools { flex-direction: column; align-items: stretch; }
  .blog-search { width: 100%; }
  .post-cover img { border-radius: var(--r-card); }
}
