/* Blog – usa as cores e a fonte já definidas em styles.css */

.blog-wrap { background: var(--color-primary-1); padding-bottom: 60px; }

.post-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-6), var(--color-primary-4));
  padding: 56px 8% 64px;
}
.post-hero-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 2; }
.post-hero h1 { color: #fff; font-size: 2.1rem; line-height: 1.25; font-weight: 600; margin: 12px 0 16px; }
.post-hero-icon { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); font-size: 11rem; color: rgba(255,255,255,.07); z-index: 1; }
.post-meta { color: rgba(255,255,255,.8); font-size: .85rem; line-height: 1.8; }
.post-meta i { color: var(--color-dourado); margin-right: 4px; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.7); }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-dourado); }
.breadcrumb span { margin: 0 4px; }
.post-cat { display: inline-block; background: rgba(207,186,162,.18); color: var(--color-dourado); font-size: .72rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; }

.post {
  max-width: 820px; margin: -28px auto 0; position: relative; z-index: 2;
  background: #fff; border-radius: 18px; padding: 40px 44px;
  box-shadow: 0 12px 40px rgba(23,36,52,.12); color: #2b2b2b; line-height: 1.75; font-size: 1rem;
}
.post .lead { font-size: 1.12rem; color: #1d1d1d; border-left: 4px solid var(--color-dourado); padding-left: 18px; margin-bottom: 8px; }
.post h2 { color: var(--color-primary-6); font-size: 1.45rem; margin: 34px 0 12px; line-height: 1.3; }
.post p { margin: 0 0 14px; }
.post ul { margin: 0 0 16px 22px; }
.post li { margin-bottom: 6px; }
.post strong { color: var(--color-primary-6); }
.post a { color: #2563eb; }

.post-figure { margin: 24px 0; }
.post-figure img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 14px; display: block; }
.post-figure figcaption { font-size: .8rem; color: #777; margin-top: 6px; text-align: center; }

.callout { background: #fff8ec; border: 1px solid #ecd9b0; border-left: 5px solid #d4af37; border-radius: 12px; padding: 20px 24px; margin: 34px 0 10px; }
.callout h2 { margin: 0 0 10px; font-size: 1.15rem; }
.callout h2 i { color: #c28a00; margin-right: 6px; }
.callout ul { margin-bottom: 10px; }

.post-faq details { border: 1px solid #dde4f0; border-radius: 10px; margin-bottom: 10px; background: #f8fafd; }
.post-faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--color-primary-6); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; font-size: 1.3rem; color: var(--color-primary-4); transition: transform .3s; }
.post-faq details[open] summary::after { transform: rotate(45deg); }
.post-faq details p { padding: 0 18px 16px; margin: 0; color: #444; }

.cta-box { background: linear-gradient(135deg, var(--color-primary-6), var(--color-primary-4)); color: #fff; border-radius: 16px; padding: 28px; text-align: center; margin: 34px 0 24px; }
.cta-box h3 { font-size: 1.3rem; margin-bottom: 8px; }
.cta-box p { color: rgba(255,255,255,.85); }
.btn-wa { display: inline-flex; align-items: center; gap: 10px; background: #6FCF97; color: #0d2a1a !important; font-weight: 600; text-decoration: none; padding: 12px 26px; border-radius: 12px; transition: background .3s, transform .3s; }
.btn-wa:hover { background: #5DBE84; transform: translateY(-2px); }
.btn-wa i { font-size: 1.3rem; }

.author-box { display: flex; gap: 18px; align-items: center; background: #f3f6fb; border-radius: 14px; padding: 18px 20px; font-size: .9rem; line-height: 1.5; }
.author-box img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--color-dourado); flex-shrink: 0; }
.author-box span { color: #555; font-size: .82rem; }
.disclaimer { font-size: .8rem; color: #666; margin-top: 20px !important; }
.disclaimer i { color: var(--color-primary-3); }
.sources { font-size: .8rem; color: #555; }
.sources a { margin-right: 6px; }

.related { max-width: 820px; margin: 40px auto 0; padding: 0 8px; }
.related h3 { color: var(--color-primary-6); margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-grid a { background: #fff; border-radius: 12px; padding: 16px; text-decoration: none; color: var(--color-primary-6); font-size: .88rem; font-weight: 600; display: flex; flex-direction: column; gap: 10px; transition: transform .3s, box-shadow .3s; }
.related-grid a:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.related-grid i { color: #2563eb; font-size: 1.2rem; }

/* índice do blog */
.blog-grid { max-width: 1100px; margin: 44px auto 0; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(23,36,52,.18); }
.blog-card-img { height: 130px; background: linear-gradient(135deg, var(--color-primary-6), var(--color-primary-4)); display: flex; align-items: center; justify-content: center; }
.blog-card-img i { font-size: 3.2rem; color: var(--color-dourado); }
.blog-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card .post-cat { background: #e0f2fe; color: #0284c7; align-self: flex-start; }
.blog-card h2 { font-size: 1.05rem; line-height: 1.35; color: var(--color-primary-6); }
.blog-card p { font-size: .87rem; color: #555; line-height: 1.55; }
.blog-card .more { margin-top: auto; font-size: .85rem; font-weight: 600; color: #2563eb; }
.blog-card .more em { font-style: normal; color: #999; font-weight: 400; margin-left: 8px; }

@media (max-width: 900px) {
  .blog-grid, .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .post-hero { padding: 36px 6% 50px; }
  .post-hero h1 { font-size: 1.6rem; }
  .post-hero-icon { font-size: 6rem; right: 4%; }
  .post { padding: 26px 20px; margin: -24px 12px 0; }
  .blog-grid, .related-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; text-align: center; }
}

/* tabelas dentro dos artigos */
.post table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: .9rem; display: block; overflow-x: auto; }
.post th { background: var(--color-primary-6); color: #fff; text-align: left; padding: 10px 12px; font-weight: 600; }
.post td { padding: 10px 12px; border-bottom: 1px solid #e3e8f2; vertical-align: top; }
.post tbody tr:nth-child(even) { background: #f6f8fc; }

/* índice: filtro e busca */
.blog-tools { max-width: 1100px; margin: 36px auto 0; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-filter { border: 1px solid #9fb3d6; background: #fff; color: var(--color-primary-6); padding: 7px 14px; border-radius: 20px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.chip-filter:hover { border-color: var(--color-primary-4); }
.chip-filter.on { background: var(--color-primary-4); color: #fff; border-color: var(--color-primary-4); }
#blog-search { border: 1px solid #9fb3d6; border-radius: 20px; padding: 8px 16px; font-size: .88rem; min-width: 220px; }
.blog-grid { margin-top: 24px; }

/* ferramentas (IPSS) */
.ipss-box { background: #f5f7fa; border: 1px solid #dde4f0; border-radius: 16px; padding: 22px; margin: 22px 0; }
.ipss-q { border: 0; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed #cfd8e8; }
.ipss-q legend { float: none; width: 100%; padding: 0; margin-bottom: 8px; }
.ipss-q legend b { display: block; color: var(--color-primary-6); }
.ipss-q legend span { font-size: .88rem; color: #555; }
.ipss-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ipss-opts label { cursor: pointer; }
.ipss-opts input { position: absolute; opacity: 0; }
.ipss-opts em { display: block; font-style: normal; font-size: .8rem; text-align: center; padding: 9px 6px; background: #fff; border: 1px solid #cfd8e8; border-radius: 10px; transition: all .2s; line-height: 1.3; }
.ipss-opts input:checked + em { background: var(--color-primary-4); color: #fff; border-color: var(--color-primary-4); }
.ipss-opts input:focus-visible + em { box-shadow: 0 0 0 3px rgba(37,99,235,.3); }
.ipss-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ipss-box .btn-enviar { background: var(--color-primary-4); color: #fff; border: 0; border-radius: 12px; padding: 13px 30px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ipss-box .btn-outline { font-family: inherit; }
.ipss-res { display: none; margin-top: 20px; border-radius: 14px; padding: 20px; gap: 20px; align-items: center; }
.ipss-res.ok, .ipss-res.mid, .ipss-res.bad { display: flex; }
.ipss-res.warn { display: block; background: #fff8ec; color: #8a5a00; }
.ipss-res.ok { background: #e8f6ee; } .ipss-res.mid { background: #fff4dd; } .ipss-res.bad { background: #fde8e6; }
.ipss-score { font-size: 3rem; font-weight: 700; color: var(--color-primary-6); line-height: 1; min-width: 96px; text-align: center; }
.ipss-score small { font-size: 1rem; color: #666; }
.ipss-res h3 { margin-bottom: 6px; color: var(--color-primary-6); }
.ipss-res .btn-wa { margin-top: 10px; }
.ipss-note { font-size: .78rem; color: #666; }
.btn-print { background: var(--color-primary-4); color: #fff; border: 0; border-radius: 10px; padding: 10px 20px; cursor: pointer; font-family: inherit; font-weight: 600; }
.diary td { height: 34px; }
@media (max-width: 600px) { .ipss-opts { grid-template-columns: 1fr 1fr; } .ipss-res.ok, .ipss-res.mid, .ipss-res.bad { flex-direction: column; text-align: center; } }

@media print {
  header, footer, #footer, .whatsapp-float, .post-hero, .related, .cta-box, .author-box, .sources, .post-faq, .callout, .btn-print, .disclaimer { display: none !important; }
  body, .blog-wrap { background: #fff !important; }
  .post { box-shadow: none; margin: 0; padding: 0; }
  .post > *:not(.printable) { display: none !important; }
}
