/* Blog */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.blog-cats a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .2s, border-color .2s, background-color .2s; }
.blog-cats a:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.blog-cats a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.blog-empty { padding: 36px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 18px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.post-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-3px); }
:root[data-theme="light"] .post-card:hover { border-color: rgba(2, 61, 83, .26); }
.post-cover { display: block; aspect-ratio: 1200 / 630; background: var(--surface-2); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-cover img { transform: scale(1.03); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.post-card h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.015em; font-weight: 600; margin: 0; }
.post-excerpt { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.post-meta { margin-top: auto; padding-top: 4px; font-size: 13.5px; color: var(--muted); }
.post-card-big { grid-column: 1 / -1; flex-direction: row; }
.post-card-big .post-cover { flex: 0 0 54%; aspect-ratio: 1200 / 630; align-self: center; }
.post-card-big .post-card-body { flex: 1 1 48%; justify-content: center; padding: clamp(24px, 4vw, 48px); }
.post-card-big h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.post-card-big .post-excerpt { font-size: 17px; }

.breadcrumb { margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--text); }

/* artigo */
.post-container { width: min(100% - 32px, 1040px); margin-inline: auto; }
.post-hero { padding: clamp(40px, 7vw, 84px) 0 clamp(20px, 3vw, 36px); background: var(--hero-glow); }
.post-hero h1 { font-size: clamp(32px, 4.8vw, 54px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; max-width: 22ch; text-wrap: balance; }
.post-lead { margin-top: 20px; max-width: 62ch; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }
.post-hero .post-meta { margin-top: 22px; padding: 0; font-size: 14.5px; }
.post-hero .post-meta strong { color: var(--text); font-weight: 600; }
.post-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 88px); align-items: start; }
.post-toc { position: sticky; top: calc(var(--head-h) + 24px); padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 14.5px; }
.post-toc p { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.post-toc ol { list-style: none; display: grid; gap: 2px; }
.post-toc a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--muted); line-height: 1.35; }
.post-toc a:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.post-body { max-width: 72ch; min-width: 0; }
.post-body > p, .post-body li { font-size: 18px; line-height: 1.78; color: var(--text); }
.post-body p + p, .post-body p + ul, .post-body p + ol, .post-body ul + p, .post-body ol + p { margin-top: 18px; }
.post-body h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.2; letter-spacing: -.02em; margin: 52px 0 14px; scroll-margin-top: calc(var(--head-h) + 24px); }
.post-body h3 { font-size: 22px; line-height: 1.25; margin: 34px 0 10px; scroll-margin-top: calc(var(--head-h) + 24px); }
.post-body ul, .post-body ol { margin: 14px 0 0; padding-left: 24px; display: grid; gap: 8px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li::marker { color: var(--accent-text); }
.post-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.post-body strong { font-weight: 600; }
.post-body blockquote { margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
.post-body blockquote p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.post-body img { border-radius: 14px; border: 1px solid var(--line); margin: 26px 0; }
.post-body code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }
.table-wrap { margin: 26px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
.post-body th, .post-body td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.post-body th { background: var(--surface-2); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.post-body tr:last-child td { border-bottom: 0; }
.post-summary { margin: 0 0 34px; padding: 20px 22px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 14px; background: var(--surface); }
.post-summary p { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.post-summary ul { margin: 0; padding-left: 20px; list-style: disc; display: grid; gap: 6px; }
.post-summary li { font-size: 16.5px; line-height: 1.55; }
.post-sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-sources h2 { font-size: 20px; margin: 0 0 12px; }
.post-sources ul { margin: 0; padding-left: 20px; list-style: disc; display: grid; gap: 6px; }
.post-sources li { font-size: 15.5px; line-height: 1.5; }
.post-disclaimer, .post-reviewed { margin-top: 18px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.post-share { margin-top: 22px; font-size: 15px; color: var(--muted); }
.post-cta { margin-top: 36px; padding: clamp(24px, 4vw, 36px); border-radius: calc(var(--radius) + 4px); background: var(--primary); color: var(--on-primary); }
:root[data-theme="dark"] .post-cta { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.post-cta h2 { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; }
.post-cta p { margin: 0 0 18px; font-size: 17px; opacity: .9; }
.post-cta .btn-primary { background: #d4af37; color: #0a192f; }
.post-cta .btn-primary:hover { background: #e3c157; }
.post-author { margin-top: 28px; display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.post-author img { flex: none; width: 44px; height: auto; border: 0; margin: 0; border-radius: 0; }
.post-author strong { display: block; font-size: 16px; }
.post-author p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.post-author a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.post-related h2 { margin-bottom: 24px; }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card-big { flex-direction: column; }
  .post-card-big .post-cover { flex: none; aspect-ratio: 1200 / 630; min-height: 0; }
  .post-layout { grid-template-columns: 1fr; }
  .post-toc { position: static; }
}
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
