/* Blog: complementa site.css (tokens, legal-hero, legal-layout, accordion, cta-band, final-cta). */
.main-nav a[aria-current="page"] { color: var(--accent); }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-5); padding: 0; list-style: none; font-size: var(--fs-small); color: var(--text-subtle); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--line-strong); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { display: none; }

/* Artigo */
.post-layout { grid-template-columns: minmax(0, 1fr); }
.post-hero h1 { max-width: 20ch; font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); text-wrap: balance; }
.post-hero .lead { max-width: 46rem; }
.post-meta { font-size: var(--fs-small); color: var(--text-subtle); }
.post-meta strong { color: var(--text); }
.post-cover { margin: 0 0 var(--space-6); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-intro { padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); }
.post-intro p, .post-body section p, .post-body li { font-size: 1.0625rem; }
.post-intro > * + *, .post-body section > * + *, .post-body .callout > * + * { margin-top: var(--space-4); }
.post-body h2 { margin-bottom: 0; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); font-stretch: 87.5%; text-wrap: balance; }
.post-body h3 { font-size: 1.1875rem; font-weight: 700; color: var(--text); }
.post-body section > h3 { margin-top: var(--space-6); }
.post-body ol { display: grid; gap: var(--space-2); padding-left: var(--space-5); }
.post-body ol li::marker { color: var(--accent); font-weight: 700; }
.post-body a:not(.button) { color: var(--text); text-decoration-color: var(--accent); }
.post-body .table-wrap table { min-width: 34rem; }
.callout { padding: var(--space-5); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.callout p, .callout li { color: var(--text); }
.callout-title { font-size: var(--fs-kicker); font-weight: 600; letter-spacing: var(--tracking-kicker); text-transform: uppercase; color: var(--accent) !important; }
.post-cta { margin: var(--space-6) 0 0; }
.post-cta p { color: var(--text) !important; font-size: var(--fs-h3); }
.post-cta .button { justify-self: start; }
.post-body .faq-list summary { font-size: 1.0625rem; }
.post-author { padding-top: var(--space-6); font-size: var(--fs-small); }
.post-author p { color: var(--text-muted); }
.post-author p + p { margin-top: var(--space-3); }
.post-credit { color: var(--text-subtle) !important; }

/* Cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.post-card { display: flex; }
.post-card > a { display: flex; flex-direction: column; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); text-decoration: none; transition: border-color var(--dur-fast), transform var(--dur) var(--ease-out); }
.tone-gray .post-card > a { background: var(--black); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.post-card picture { overflow: hidden; }
.post-card > a:hover { border-color: var(--accent); transform: translateY(-4px); }
.post-card > a:hover img { transform: scale(1.04); }
.post-card-body { display: grid; flex: 1; gap: var(--space-3); align-content: start; padding: var(--space-5); }
.post-card-body .kicker { margin: 0; }
.post-card h3 { font-size: 1.25rem; font-weight: 800; font-stretch: 87.5%; line-height: 1.2; text-wrap: balance; }
.post-card p { color: var(--text-muted); font-size: var(--fs-small); }
.post-card-meta { align-self: end; font-size: var(--fs-small); color: var(--text-subtle); }

/* Página do blog */
.blog-hero-grid { display: grid; gap: var(--space-8); align-items: center; }
.blog-hero h1 { max-width: 16ch; text-wrap: balance; }
.blog-cats { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-6) 0 0; padding: 0; list-style: none; }
.blog-section + .blog-section { padding-top: 0; }
.blog-anim { width: 100%; max-width: 26rem; justify-self: center; overflow: visible; }
.anim-grid path { fill: none; stroke: var(--line); stroke-width: 1; }
.anim-bars rect { fill: rgb(255 255 255 / 0.14); transform-box: fill-box; transform-origin: bottom; }
.anim-line { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 8px var(--accent-glow)); }
.anim-dot { fill: var(--accent); filter: drop-shadow(0 0 10px var(--accent)); transform-box: fill-box; transform-origin: center; }
.anim-click { transform: translate(282px, 42px); opacity: 0; }
.anim-click circle { fill: none; stroke: var(--white); stroke-width: 2; transform-box: fill-box; transform-origin: center; opacity: 0; }
.anim-click path { fill: var(--white); stroke: var(--black); stroke-width: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .anim-bars rect { animation: blog-bar 6s var(--ease-out) infinite both; }
  .anim-bars rect:nth-child(2) { animation-delay: 0.12s; }
  .anim-bars rect:nth-child(3) { animation-delay: 0.24s; }
  .anim-bars rect:nth-child(4) { animation-delay: 0.36s; }
  .anim-bars rect:nth-child(5) { animation-delay: 0.48s; }
  .anim-line { animation: blog-line 6s var(--ease-in-out) infinite both; }
  .anim-dot { animation: blog-dot 6s var(--ease-out) infinite both; }
  .anim-click { animation: blog-cursor 6s var(--ease-out) infinite both; }
  .anim-click circle { animation: blog-ring 6s var(--ease-out) infinite both; }
}
@keyframes blog-bar { 0% { transform: scaleY(0); } 22%, 88% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes blog-line { 0%, 12% { stroke-dashoffset: 1; opacity: 1; } 48%, 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes blog-dot { 0%, 46% { transform: scale(0); } 52% { transform: scale(1.4); } 58%, 88% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes blog-cursor { 0%, 50% { opacity: 0; transform: translate(230px, 110px); } 60% { opacity: 1; transform: translate(290px, 34px); } 88% { opacity: 1; transform: translate(290px, 34px); } 100% { opacity: 0; transform: translate(290px, 34px); } }
@keyframes blog-ring { 0%, 62% { opacity: 0; transform: scale(0.3); } 66% { opacity: 1; } 76%, 100% { opacity: 0; transform: scale(1.6); } }

@media (min-width: 64rem) {
  .blog-hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .post-layout { grid-template-columns: 16rem minmax(0, 46rem); }
}
@media (max-width: 47.99rem) {
  .blog-anim { max-width: 18rem; }
  .post-cta .button { justify-self: stretch; }
}
@media print {
  .blog-anim, .post-cta, .legal-index { display: none; }
}
