/* ==========================================================================
   Finanças News — estilos
   ========================================================================== */
:root {
	--brand: #0b5d44;
	--brand-dark: #073f2e;
	--brand-soft: #e7f3ee;
	--accent: #f2b705;
	--text: #14181f;
	--muted: #5b6472;
	--line: #e5e8ec;
	--bg: #ffffff;
	--bg-soft: #f5f7f6;
	--radius: 10px;
	--wrap: 1200px;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 10000; background: #fff; padding: 8px 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 820px; }
.main { min-height: 60vh; padding-bottom: 32px; }

/* ---------- Topo ---------- */
.topbar { background: var(--brand-dark); color: #cfe6dc; font-size: 12.5px; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar__date { text-transform: capitalize; white-space: nowrap; }
.topbar__tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .topbar__tag { display: none; } }

.header { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.header__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 24px; letter-spacing: -.03em; }
.logo:hover { text-decoration: none; }
.logo__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 21px; box-shadow: inset 0 -4px 0 var(--accent); }
.logo__text b { color: var(--brand); font-weight: 800; }
.logo__img { max-height: 44px; width: auto; }
.logo--light { color: #fff; }
.logo--light .logo__text b { color: var(--accent); }

.header__search { margin-left: auto; display: flex; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 14px; width: 300px; }
.header__search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 14px; padding: 8px 0; outline: none; min-width: 0; }
.header__search button { border: 0; background: transparent; color: var(--muted); padding: 6px 8px; cursor: pointer; }
.header__burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 9px 8px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.header__burger span { display: block; height: 2.5px; background: var(--text); border-radius: 2px; }

.nav { background: var(--brand); }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav__list::-webkit-scrollbar { display: none; }
.nav .nav__list a { display: block; color: #fff; font-weight: 600; font-size: 14.5px; padding: 11px 14px; white-space: nowrap; }
.nav .nav__list a:hover { background: var(--brand-dark); text-decoration: none; }
.nav .current-menu-item a, .nav .current-cat a { box-shadow: inset 0 -3px 0 var(--accent); }

@media (max-width: 860px) {
	.header__in { min-height: 56px; gap: 8px; }
	.header__burger { display: flex; }
	.logo { font-size: 21px; }
	.logo__mark { width: 32px; height: 32px; font-size: 18px; }
	.header__search { width: auto; flex: 1; max-width: 200px; }
	.nav { display: none; }
	.nav.is-open { display: block; }
	.nav.is-open .nav__list { flex-direction: column; overflow: visible; padding: 6px 0; }
}
@media (max-width: 420px) { .header__search { max-width: 44px; padding: 2px; justify-content: center; } .header__search input { display: none; } }

/* ---------- Anúncios ---------- */
.fn-ad { margin: 24px auto; text-align: center; clear: both; overflow: hidden; }
.fn-ad__label { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #9aa1ab; margin-bottom: 4px; }
.fn-ad__unit { display: flex; justify-content: center; align-items: center; }
.fn-ad.is-empty { display: none; }
.top-ad .fn-ad { margin: 12px auto; min-height: 118px; }
@media (min-width: 768px) { .top-ad .fn-ad { min-height: 108px; } }
@media (min-width: 1024px) { .top-ad .fn-ad { min-height: 268px; } }
.fn-ad--content1 { min-height: 298px; }
.content .fn-ad--incontent { background: var(--bg-soft); padding: 10px 0 14px; border-radius: 6px; }
@media (max-width: 767px) {
	.content .fn-ad--incontent, .fn-ad--after, .fn-ad--feed { margin-left: -16px; margin-right: -16px; border-radius: 0; }
}
.fn-ad--mobile { display: none; }
@media (max-width: 1023px) { .fn-ad--mobile { display: block; } }
.sidebar__sticky { position: sticky; top: 16px; }
.sidebar__sticky .fn-ad { margin-top: 0; }

/* ---------- Grade e cards ---------- */
.layout { display: block; }
@media (min-width: 1024px) {
	.layout { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 40px; align-items: start; }
}
.sidebar { display: none; }
@media (min-width: 1024px) { .sidebar { display: block; align-self: stretch; padding-top: 24px; } }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; gap: 18px; } }

.badge { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); margin-bottom: 6px; }
.meta { font-size: 12.5px; color: var(--muted); }
.no-thumb { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }

.post-card__media, .post-hero__media, .post-row__media, .post-mini__media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); }
.post-card__media { aspect-ratio: 16 / 9; }
.post-card__media img, .post-hero__media img, .post-row__media img, .post-mini__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover img, .post-hero:hover img, .post-row:hover img { transform: scale(1.03); }
.post-card__body { padding-top: 10px; }
.post-card__title { font-size: 18px; font-weight: 750; margin-bottom: 6px; }
.post-card__title a, .post-hero__title a, .post-row__title a, .post-mini__title a { color: var(--text); }
.post-card__title a:hover, .post-hero__title a:hover, .post-row__title a:hover, .post-mini__title a:hover { color: var(--brand); text-decoration: none; }

.home-top { display: grid; gap: 24px; margin-top: 20px; }
@media (min-width: 1024px) { .home-top { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.post-hero__media { aspect-ratio: 16 / 9; }
.post-hero__body { padding-top: 12px; }
.post-hero__title { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.post-hero__excerpt { color: var(--muted); font-size: 16.5px; margin: 0 0 6px; }
.home-top__side { display: grid; gap: 16px; align-content: start; }
.post-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.post-row:last-child { border-bottom: 0; }
.post-row__media { aspect-ratio: 4 / 3; }
.post-row__title { font-size: 16.5px; font-weight: 750; margin-bottom: 4px; }
.post-row__excerpt { display: none; }
.post-row .badge { margin-bottom: 3px; }
.post-mini { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.post-mini:last-child { border-bottom: 0; }
.post-mini__media { aspect-ratio: 3 / 2; }
.post-mini__title { font-size: 14.5px; font-weight: 700; margin-bottom: 2px; }

.section-title { display: flex; align-items: center; justify-content: space-between; font-size: 21px; font-weight: 800; margin: 34px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--line); position: relative; }
.section-title span { position: relative; }
.section-title span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 2px; background: var(--brand); }
.section-title a { font-size: 14px; font-weight: 600; }
.cat-section { margin-top: 8px; }

.archive-head { padding: 26px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.archive-head h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.archive-head__desc { color: var(--muted); }
.feed { padding-top: 4px; }
.layout--feed .feed { padding-top: 24px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 30px 0; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-weight: 600; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

.widget { margin-bottom: 26px; }
.widget-title { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--brand); padding-bottom: 8px; margin-bottom: 4px; }

/* ---------- Matéria ---------- */
.article { padding-top: 22px; min-width: 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--brand); font-weight: 600; }
.crumbs span { margin: 0 4px; }
.article__title { font-size: clamp(27px, 4.2vw, 42px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin-bottom: 12px; }
.article__lead { font-size: clamp(17px, 2vw, 20px); color: #3d4552; line-height: 1.5; margin: 0 0 14px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.article__meta strong { color: var(--text); }
.article__figure { margin: 18px 0 8px; }
.article__figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.article__figure figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 767px) { .article__figure { margin-left: -16px; margin-right: -16px; } .article__figure img { border-radius: 0; } .article__figure figcaption { padding: 0 16px; } }

.content { font-size: 18.5px; line-height: 1.72; color: #1f2530; }
@media (max-width: 600px) { .content { font-size: 17.5px; } }
.content > * { margin: 0 0 1.15em; }
.content h2 { font-size: clamp(22px, 2.8vw, 27px); font-weight: 800; margin: 1.7em 0 .6em; color: var(--text); }
.content h3 { font-size: 20.5px; font-weight: 750; margin: 1.4em 0 .5em; }
.content a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; font-weight: 600; }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin-bottom: .45em; }
.content li::marker { color: var(--brand); font-weight: 700; }
.content blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--brand); background: var(--brand-soft); font-family: var(--serif); font-size: 1.05em; border-radius: 0 8px 8px 0; }
.content blockquote p:last-child { margin-bottom: 0; }
.content table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; display: block; overflow-x: auto; }
.content th, .content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.content th { background: var(--brand); color: #fff; font-weight: 700; }
.content tr:nth-child(even) td { background: var(--bg-soft); }
.content figure { margin: 1.4em 0; }
.content figure img { border-radius: 8px; }
.content figcaption { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.content .box, .content .wp-block-group.is-style-box { background: #fff8e1; border: 1px solid #f3dd9b; border-radius: 10px; padding: 16px 18px; font-size: 17px; }
.content .box strong:first-child { display: block; margin-bottom: 4px; }
.content .summary { background: var(--brand-soft); border-radius: 10px; padding: 16px 20px; font-size: 17px; }
.content .summary ul { margin: 6px 0 0; }
.content .summary li { margin-bottom: .25em; }
.content .faq h3 { font-size: 18.5px; }

.post-pages { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 24px 0; }
.post-pages a { display: inline-block; background: var(--brand); color: #fff !important; text-decoration: none !important; padding: 12px 22px; border-radius: 8px; font-weight: 700; }
.post-pages__label { display: none; }

.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn { display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 700; color: #fff; padding: 8px 14px; border-radius: 999px; }
.share__btn:hover { text-decoration: none; filter: brightness(1.08); }
.share__btn--wa { background: #1fa855; }
.share__btn--fb { background: #1877f2; }
.share__btn--x { background: #14171a; }
.share__btn--tg { background: #229ed9; }
.article__foot { margin-top: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tags a { font-size: 13px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.share-cta { background: var(--bg-soft); border-radius: var(--radius); padding: 16px 18px; }
.share-cta p { margin: 0 0 10px; }
.wa-cta { display: block; margin-top: 14px; background: #1fa855; color: #fff; text-align: center; padding: 14px; border-radius: var(--radius); font-weight: 800; }
.related { margin-top: 10px; }
.related .post-card__title { font-size: 16.5px; }

/* ---------- Busca / vazio ---------- */
.searchform { display: flex; gap: 8px; margin: 14px 0 24px; }
.searchform input { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; min-width: 0; }
.searchform button { padding: 12px 20px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; }
.empty { padding: 30px 0; }

/* ---------- Rodapé ---------- */
.footer { background: #0d1512; color: #b9c4bf; margin-top: 40px; font-size: 14.5px; }
.footer__grid { display: grid; gap: 30px; padding-top: 40px; padding-bottom: 28px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.footer .nav__list { flex-direction: column; overflow: visible; }
.footer .nav__list a { color: #b9c4bf; display: block; padding: 4px 0; }
.footer__social { display: flex; gap: 14px; }
.footer__social a { color: var(--accent); font-weight: 700; }
.footer__legal { border-top: 1px solid #22302a; padding-top: 18px; padding-bottom: 90px; font-size: 12.5px; color: #8a9690; }

/* Elementor (landing pages antigas) */
.elementor-page-wrap { width: 100%; }
