/* Blog no desenho da home B2B. Carregar depois de home-b2b.css (usa os mesmos tokens). */

.blog-head { padding: 72px 0 0; }
.blog-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.06; max-width: 20ch; }
.blog-head-lead { margin-top: 18px; font-size: 1.15rem; color: var(--ink-2); max-width: 56ch; }

.blog-head--post { padding-top: 44px; }
.blog-head--post .wrap, .blog-post { max-width: 800px; }
.blog-head--post h1 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.1; max-width: none; margin-top: 28px; }
.blog-post-meta { margin-top: 18px; font-size: 15px; color: var(--ink-3); }

.blog-back { display: inline-flex; gap: 8px; font-size: 15px; color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.blog-back:hover { color: var(--blue); }

.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.blog-tag { font-size: 14px; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 12px; }

.blog-main { padding: 56px 0 112px; }

/* ---------- Lista ---------- */

.post-list { border-top: 1px solid var(--ink); }
.post-row { border-bottom: 1px solid var(--line); }
.post-row-link {
    display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: center;
    padding: 28px 0; text-decoration: none;
}
.post-row--text .post-row-link { grid-template-columns: minmax(0, 1fr); }
.post-row-cover { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--tint); border: 1px solid var(--line); }
.post-row-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-row-link:hover .post-row-cover img { transform: scale(1.03); }
.post-row-meta { font-size: 14.5px; color: var(--ink-3); }
.post-row-title { margin-top: 8px; font-size: clamp(1.3rem, 2.1vw, 1.7rem); line-height: 1.18; letter-spacing: -0.022em; max-width: 44ch; transition: color 0.18s var(--ease); }
.post-row-link:hover .post-row-title { color: var(--blue); }
.post-row-excerpt {
    margin-top: 10px; color: var(--ink-2); max-width: 64ch;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.blog-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; }
.blog-empty { padding: 48px 0; color: var(--ink-2); }

/* ---------- Post ---------- */

.blog-post { margin-inline: auto; }
.blog-post-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--tint); margin-bottom: 44px; }
.blog-post-cover img { width: 100%; }

.blog-post-body { font-size: 1.12rem; line-height: 1.7; color: #1d2540; overflow-wrap: break-word; }
.blog-post-body > * + * { margin-top: 1.2em; }
.blog-post-body h2 { font-size: 1.7rem; line-height: 1.2; margin-top: 2.1em; color: var(--ink); text-wrap: balance; }
.blog-post-body h3 { font-size: 1.3rem; line-height: 1.25; margin-top: 1.8em; color: var(--ink); letter-spacing: -0.018em; }
.blog-post-body h2 + *, .blog-post-body h3 + * { margin-top: 0.7em; }
.blog-post-body a { color: var(--blue); }
.blog-post-body a:hover { color: var(--blue-hover); }
.blog-post-body strong { font-weight: 600; color: var(--ink); }
.blog-post-body ul, .blog-post-body ol { padding-left: 1.3em; }
.blog-post-body ul { list-style: disc; }
.blog-post-body ol { list-style: decimal; }
.blog-post-body li + li { margin-top: 0.45em; }
.blog-post-body li::marker { color: var(--ink-3); }
.blog-post-body img { border-radius: var(--radius); border: 1px solid var(--line); margin-inline: auto; }
.blog-post-body blockquote { margin-inline: 0; padding: 18px 22px; background: var(--tint); border-radius: var(--radius); color: var(--ink); }
.blog-post-body blockquote > * + * { margin-top: 0.8em; }
.blog-post-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--tint); border: 1px solid var(--line); border-radius: 5px; padding: 0.1em 0.35em; }
.blog-post-body pre { background: var(--navy); color: #e6eaf7; border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; font-size: 0.92rem; line-height: 1.55; }
.blog-post-body pre code { background: none; border: 0; padding: 0; color: inherit; }
.blog-post-body hr { border: 0; border-top: 1px solid var(--line-strong); margin: 2.4em 0; }
.blog-post-body table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.blog-post-body th, .blog-post-body td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.blog-post-body th { font-weight: 600; color: var(--ink); border-bottom-color: var(--ink); }

.blog-bottom-nav { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-strong); }

.blog-notfound { padding: 40px 0; max-width: 560px; }
.blog-notfound h1 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.1; }
.blog-notfound p { margin: 16px 0 28px; color: var(--ink-2); }

.top-nav a[aria-current="page"] { color: var(--ink); font-weight: 550; }

@media (max-width: 820px) {
    .blog-head { padding-top: 44px; }
    .blog-head--post { padding-top: 28px; }
    .blog-main { padding: 36px 0 76px; }
    .post-row-link { grid-template-columns: 1fr; gap: 18px; padding: 26px 0; }
    .blog-post-body { font-size: 1.05rem; }
    .blog-post-cover { margin-bottom: 32px; }
}
