/* WeRad — blog (usa as variáveis e componentes de style.css) */
.blog { padding: 32px 0 72px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* Topo do índice: mesma linguagem do hero da home */
.blog-hero { padding: 44px 0 40px; background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.blog-hero .eyebrow { margin-bottom: 10px; }
.blog-hero__title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.blog-hero__lead { font-size: 17px; color: var(--muted); max-width: 560px; margin: 0; }
.blog--list { padding-top: 36px; }

/* Lista de artigos */
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.post-card:hover { border-color: #c7d6fb; box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card__thumblink { flex: none; text-decoration: none; }
.post-card__thumb { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 16px; background: linear-gradient(135deg, var(--g1, #0b1b4d), var(--g2, #1a4fd8)); color: #fff; box-shadow: 0 6px 16px rgba(11, 27, 77, .16); }
.post-card__thumb--art { background: none; overflow: hidden; }
.post-card__thumb--art svg { display: block; width: 100%; height: 100%; }
.post-card__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.tag { background: #e8f0ff; color: var(--blue); font-weight: 600; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.post-card h2 { font-size: 19px; line-height: 1.3; margin-bottom: 6px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--blue); }
.post-card__desc { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.post-card__more { font-weight: 600; font-size: 15px; text-decoration: none; margin-top: auto; }

/* Artigo */
.post__head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.post__lead { font-size: 19px; color: var(--text); }
.post__meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.post__reviewer { display: inline-block; font-size: 14px; color: var(--ok); background: #dcfce7; border-radius: 8px; padding: 6px 12px; margin: 4px 0 0; }
.post__head { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }

.toc { background: var(--tint); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px; }
.toc__title { font-weight: 700; color: var(--ink); margin: 0 0 6px; font-size: 15px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 2px 0; font-size: 15px; }
.toc a { text-decoration: none; }

.post__body { font-size: 17px; line-height: 1.75; }
.post__body h2 { font-size: 27px; font-weight: 800; letter-spacing: -.01em; margin: 44px 0 12px; scroll-margin-top: 84px; }
.post__body h3 { font-size: 20px; margin: 30px 0 8px; scroll-margin-top: 84px; }
.post__body p, .post__body ul, .post__body ol { margin: 0 0 18px; }
.post__body ul, .post__body ol { padding-left: 24px; }
.post__body li { margin-bottom: 6px; }
.post__body blockquote { margin: 0 0 18px; padding: 4px 18px; border-left: 4px solid var(--sky); background: var(--tint); border-radius: 0 10px 10px 0; color: var(--ink); }
.post__body table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 22px; display: block; overflow-x: auto; }
.post__body th, .post__body td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.post__body th { color: var(--ink); background: var(--tint); }
.post__body code { background: #eef2fb; border-radius: 6px; padding: 1px 6px; font-size: .92em; }
.post__body pre { background: var(--ink); color: #e2e8f0; border-radius: 12px; padding: 16px 18px; overflow-x: auto; margin: 0 0 22px; font-size: 14px; line-height: 1.6; }
.post__body pre code { background: none; padding: 0; color: inherit; }
.post__body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.post__body img { border-radius: 12px; margin: 0 0 18px; }

.post__cta { background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 100%); color: #dbe4ff; border-radius: 18px; padding: 28px; margin: 36px 0; text-align: center; }
.post__cta p { margin: 0 0 14px; }
.post__cta-title { color: #fff; font-size: 22px; font-weight: 800; line-height: 1.25; }
.post__cta .btn { background: #fff; color: var(--navy); }
.post__cta .btn:hover { background: #eef3ff; }

.post__notice { background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; color: #78350f; border-radius: 10px; padding: 14px 16px; font-size: 15px; line-height: 1.6; margin: 0 0 24px; }
.post__notice strong { color: #92400e; }
.post__notice--compact { font-size: 14px; padding: 10px 14px; margin: 0 0 18px; }
.post__disclaimer { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; }
.draft-banner { background: #fef3c7; border: 1px solid #fcd34d; color: #78350f; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
/* Anterior / Próximo: só links, discreto */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-nav__link { display: flex; flex-direction: column; gap: 2px; text-decoration: none; max-width: 100%; }
.post-nav__link--next { text-align: right; grid-column: 2; }
.post-nav__label { font-size: 13px; color: var(--muted); }
.post-nav__title { font-size: 15px; font-weight: 600; color: var(--blue); line-height: 1.35; }
.post-nav__link:hover .post-nav__title { text-decoration: underline; }

@media (max-width: 760px) {
  .post-list { grid-template-columns: minmax(0, 1fr); }
  .post-card { padding: 16px; gap: 14px; }
  .post-card__thumb { width: 72px; height: 72px; border-radius: 14px; }
  .post-card__thumb svg { width: 30px; height: 30px; }
  .post__body { font-size: 16px; }
  .post__body h2 { font-size: 24px; margin-top: 36px; }
  .post__cta { padding: 22px 18px; }
  .post-nav { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .post-nav__link--next { text-align: left; grid-column: 1; }
}
