/* Blog: lista de artigos, página de artigo e perguntas frequentes */

/* ---------- lista de artigos ---------- */
.post-list { padding: 60px var(--gutter) 0; }
.post-list li { border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list li.hide { display: none; }
.post-list a { position: relative; display: grid; grid-template-columns: 1fr 2fr 1fr; gap: var(--gutter); padding: 28px 0; align-items: start; transition: padding .3s cubic-bezier(.2,.8,.2,1); }
.post-list a::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.post-list a:hover { padding-left: 10px; }
.post-list a:hover::before { transform: scaleX(1); }
.pl-meta { display: grid; gap: 4px; color: var(--mute); font-weight: 500; }
.pl-meta b { color: var(--ink); font-weight: 700; }
.pl-main h2, .pl-main h3 { font-weight: 700; font-size: clamp(22px, 2.6vw, 40px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.pl-main p { text-transform: none; font-size: 15px; line-height: 1.4; font-weight: 500; letter-spacing: 0; color: #333; max-width: 58ch; margin-top: 12px; }
.pl-go { justify-self: end; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.blog-intro .filters { grid-column: 3 / span 2; }

/* ---------- artigo ---------- */
.post-hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); padding: 90px var(--gutter) 0; }
.crumbs { grid-column: 1 / -1; color: var(--mute); font-weight: 500; }
.crumbs a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.post-hero h1 { grid-column: 1 / -1; max-width: 17ch; margin-top: 26px; font-weight: 800; font-size: clamp(38px, 6.6vw, 112px); line-height: .94; letter-spacing: -.05em; text-wrap: balance; }
.post-hero .lead { grid-column: 3 / span 2; margin-top: 34px; text-transform: none; font-size: clamp(17px, 1.6vw, 24px); line-height: 1.3; letter-spacing: -.01em; font-weight: 500; max-width: 44ch; }
.post-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); margin-top: 56px; padding-top: 10px; border-top: 1px solid var(--ink); font-weight: 500; }
.post-meta span { display: grid; gap: 2px; }
.post-meta i { font-style: normal; color: var(--mute); }

.post { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); padding: 80px var(--gutter) 0; align-items: start; }
.post-toc { grid-column: 1; position: sticky; top: 84px; display: grid; gap: 12px; font-weight: 500; }
.post-toc .k { color: var(--mute); }
.post-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 30ch; }
.post-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-body { grid-column: 2 / span 2; text-transform: none; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; letter-spacing: -.005em; color: #1c1c1c; }
.post-body > * + * { margin-top: 1.05em; }
.post-body h2 { margin-top: 2.1em; font-weight: 700; font-size: clamp(24px, 2.8vw, 42px); line-height: 1.02; letter-spacing: -.035em; text-transform: uppercase; color: var(--ink); scroll-margin-top: 90px; text-wrap: balance; }
.post-body h3 { margin-top: 1.7em; font-weight: 700; font-size: 1.12em; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
.post-body strong { font-weight: 700; color: var(--ink); }
.post-body a { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post-body a:hover { background: var(--lime); color: var(--lime-ink); }
.post-body ul, .post-body ol { margin: 1.05em 0 0; padding: 0; display: grid; gap: .5em; }
.post-body ul li { position: relative; padding-left: 1.5em; }
.post-body ul li::before { content: ""; position: absolute; left: 0; top: .58em; width: .5em; height: .5em; background: var(--lime); }
.post-body ol { counter-reset: n; list-style: none; }
.post-body ol li { counter-increment: n; position: relative; padding-left: 2.6em; }
.post-body ol li::before { content: "(" counter(n, decimal-leading-zero) ")"; position: absolute; left: 0; top: .28em; font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--mute); }
.post-body .note { padding: 18px 20px; background: var(--soft); border-left: 3px solid var(--lime); font-weight: 500; }
.post-body .table { overflow-x: auto; }
.post-body table { width: 100%; border-collapse: collapse; font-size: .88em; line-height: 1.35; }
.post-body th, .post-body td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-top: 1px solid var(--line); }
.post-body th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; border-top-color: var(--ink); }
.post-body tr:last-child td { border-bottom: 1px solid var(--line); }

.post-cta { margin-top: 3em; padding: 22px; background: var(--ink); color: #fff; display: grid; gap: 14px; justify-items: start; }
.post-cta .k { font-size: 12px; text-transform: uppercase; letter-spacing: .01em; color: #9a9a9a; font-weight: 500; }
.post-cta b { font-weight: 700; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.02; letter-spacing: -.035em; text-transform: uppercase; max-width: 20ch; }
.post-cta p { color: #d6d6d6; font-size: .92em; max-width: 48ch; }
.post-cta .btn { text-transform: uppercase; font-size: 13px; letter-spacing: .01em; text-decoration: none; }
.post-cta .btn:hover { background: var(--paper); color: var(--ink); }

/* ---------- perguntas frequentes (artigos e páginas de serviço) ---------- */
.qa { border-top: 1px solid var(--line); }
.qa:last-of-type { border-bottom: 1px solid var(--line); }
.qa summary { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.12; letter-spacing: -.025em; text-transform: none; transition: padding .3s cubic-bezier(.2,.8,.2,1); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-weight: 500; font-size: 1.2em; line-height: .8; transition: transform .25s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { padding-left: 10px; }
.qa summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.qa > p { padding: 0 0 18px; max-width: 60ch; }
.story .txt .qa > p { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.4; color: #333; }
.post-body .qa { margin-top: 0; }
.post-body h2 + .qa { margin-top: 1.05em; }
.story .txt.faq { gap: 0; }

.more { padding-top: 20px; }

@media (max-width: 980px) {
  .post-list { padding-top: 36px; }
  .post-list a { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .pl-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .pl-go { justify-self: start; }
  .blog-intro .filters { grid-column: 1; }
  .post-hero { grid-template-columns: 1fr; padding-top: 56px; }
  .post-hero h1, .post-hero .lead, .post-meta, .crumbs { grid-column: 1; }
  .post-hero .lead { margin-top: 22px; }
  .post-meta { grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .post { grid-template-columns: 1fr; padding-top: 44px; gap: 36px; }
  .post-toc, .post-body { grid-column: 1; }
  .post-toc { position: static; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
}
