/* ==========================================================================
   Blog: listagem, post, texto longo (prose), sidebar, newsletter
   ========================================================================== */

.page-hero--blog { padding-block: 64px 68px; }
.page-hero--blog .page-hero__title { font-size: 46px; }
@media (max-width: 767px) {
	.page-hero--blog { padding-block: 34px; }
	.page-hero--blog .page-hero__title { font-size: 27px; }
}

.filter-bar--static { position: static; }
.blog-search { margin-left: auto; }
.blog-search .input { width: 260px; padding: 11px 20px; font-size: 13px; }
@media (max-width: 1023px) {
	.blog-search { margin-left: 0; width: 100%; }
	.blog-search .input { width: 100%; }
}

/* ---------- Meta do post ---------- */
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.chip--cyan { background: var(--cyan); color: var(--white); padding: 6px 14px; }
a.chip--cyan:hover { background: var(--cyan-hover); color: var(--white); }
@media (max-width: 767px) {
	.post-meta { gap: 10px; margin-bottom: 14px; font-size: 11.5px; }
	.post-meta .chip { font-size: 9.5px; padding: 5px 12px; }
}

/* ---------- Listagem ---------- */
.blog-list { padding: 64px var(--gutter) 88px; }
.featured-post {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 44px;
	align-items: center;
	margin-bottom: 64px;
	border: 1px solid var(--border);
	border-radius: var(--radius-block);
	overflow: hidden;
}
.featured-post__cover img, .featured-post__cover .ph { width: 100%; height: 420px; object-fit: cover; border-radius: 0; padding: 20px; }
.featured-post__cover img { padding: 0; transition: transform var(--transition); }
.featured-post__cover:hover img { transform: scale(1.03); }
.featured-post__body { padding: 40px 44px 40px 0; }
.featured-post__title { margin: 0 0 16px; font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.featured-post__title a { color: var(--navy); }
.featured-post__title a:hover { color: var(--cyan); }
.featured-post__excerpt { margin: 0 0 26px; font-size: 15.5px; line-height: 1.75; color: var(--text-secondary); }
.featured-post .text-cta { font-size: 13px; }

.posts-grid--blog { gap: 56px 30px; }
.posts-grid--blog .post-card__cover img, .posts-grid--blog .post-card__cover .ph { height: 220px; }
.posts-grid--blog .post-card__title { font-size: 20px; line-height: 1.3; }
.posts-grid--blog .post-card__excerpt { font-size: 14px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 56px; }
.pagination .page-numbers {
	min-width: 42px;
	height: 42px;
	padding: 0 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border-input);
	border-radius: var(--radius-pill);
	font-size: 14px;
	font-weight: 700;
	color: var(--navy);
}
.pagination a.page-numbers:hover { border-color: var(--cyan); }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pagination .page-numbers.dots { border: 0; }

.empty-state { max-width: 640px; margin: 0 auto; padding: 40px 0; text-align: center; }
.empty-state .lead { margin: 12px 0 24px; }

@media (max-width: 1023px) {
	.featured-post { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.featured-post__body { padding: 32px; }
	.featured-post__cover img, .featured-post__cover .ph { height: 320px; }
}
@media (max-width: 767px) {
	.blog-list { padding: 32px 20px 40px; }
	.featured-post { margin-bottom: 28px; }
	.featured-post__cover img, .featured-post__cover .ph { height: 190px; padding: 12px; }
	.featured-post__cover img { padding: 0; }
	.featured-post__body { padding: 22px 20px; }
	.featured-post__title { font-size: 22px; line-height: 1.25; margin-bottom: 12px; }
	.featured-post__excerpt { font-size: 13.5px; line-height: 1.7; margin-bottom: 16px; }
	.featured-post .text-cta { font-size: 12px; }
	.posts-grid--blog { gap: 26px; }
	.posts-grid--blog .post-card__cover img, .posts-grid--blog .post-card__cover .ph { height: 170px; }
	.posts-grid--blog .post-card__title { font-size: 18px; margin-bottom: 8px; }
	.posts-grid--blog .post-card__excerpt { font-size: 13px; line-height: 1.6; }
	.pagination { gap: 8px; margin-top: 36px; }
	.pagination .page-numbers { min-width: 38px; height: 38px; font-size: 13px; }
}

/* ---------- Newsletter ---------- */
.newsletter {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 48px;
	padding: 56px var(--gutter);
	background: var(--gray-light);
}
.newsletter__title { margin: 0 0 8px; font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.newsletter__text { margin: 0; font-size: 14.5px; color: var(--text-secondary); }
.newsletter__form { flex: none; width: 440px; max-width: 100%; }
.newsletter__row { display: flex; gap: 10px; }
.newsletter__row .input { flex: 1; min-width: 0; }
.newsletter__row .btn { padding: 15px 30px; }
.newsletter__consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 12px; line-height: 1.55; color: var(--text-secondary); }
.newsletter__consent input { margin-top: 2px; accent-color: var(--cyan); }
@media (max-width: 1023px) {
	.newsletter { display: block; }
	.newsletter__form { width: 100%; margin-top: 20px; }
}
@media (max-width: 767px) {
	.newsletter { padding: 36px 20px; }
	.newsletter__title { font-size: 21px; }
	.newsletter__text { font-size: 13.5px; line-height: 1.6; }
	.newsletter__row { flex-direction: column; }
}

/* ---------- Post ---------- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 61; pointer-events: none; }
.admin-bar .reading-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .reading-progress { top: 46px; } }
.reading-progress__bar { display: block; height: 100%; width: 0; background: var(--cyan); transition: width 100ms linear; }

.breadcrumb {
	padding: 20px var(--gutter);
	background: var(--gray-blue);
	border-bottom: 1px solid var(--border-divider);
	font-size: 12.5px;
	font-weight: 600;
	color: var(--text-secondary);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current] { color: var(--navy); }

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 72px;
	align-items: start;
	padding: 64px var(--gutter) 0;
}
.article { max-width: 760px; min-width: 0; }
.article__header .post-meta { margin-bottom: 22px; }
.article__title { margin: 0 0 24px; font-size: 44px; line-height: 1.14; font-weight: 800; letter-spacing: -.025em; color: var(--navy); text-wrap: balance; }
.article__lead { margin: 0 0 32px; font-size: 19px; line-height: 1.7; font-weight: 500; color: var(--text-secondary); }
.article__byline {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 40px;
	padding: 20px 0;
	border-top: 1px solid var(--border-divider);
	border-bottom: 1px solid var(--border-divider);
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--text-secondary);
}
.article__byline b { color: var(--navy); font-weight: 800; }
.article__avatar { width: 46px; height: 46px; border-radius: var(--radius-pill); flex: none; }
.article__share { margin-left: auto; }
.article__cover { margin: 0 0 44px; }
.article__cover img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-card); }
.article__cover figcaption { margin-top: 10px; font-size: 12.5px; color: var(--text-secondary); }

.article .cta-box { margin: 16px 0 56px; }

@media (max-width: 1023px) {
	.article-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.article { max-width: none; }
	.article-sidebar { position: static; }
}
@media (max-width: 767px) {
	.breadcrumb { padding: 14px 20px; font-size: 11.5px; }
	.article-layout { padding: 32px 20px 0; }
	.article__title { font-size: 29px; line-height: 1.16; letter-spacing: -.02em; margin-bottom: 16px; }
	.article__lead { font-size: 15.5px; margin-bottom: 22px; }
	.article__byline { gap: 12px; padding: 16px 0; margin-bottom: 28px; font-size: 12.5px; }
	.article__avatar { width: 40px; height: 40px; }
	.article__cover { margin-bottom: 30px; }
	.article__cover img { height: 210px; }
	.article .cta-box { margin-bottom: 40px; }
}

/* ---------- Texto longo (conteúdo do editor) ---------- */
.prose { font-size: 17px; line-height: 1.85; color: var(--text-body); }
.prose > * { margin-top: 0; margin-bottom: 22px; }
.prose h2 { margin: 40px 0 16px; font-size: 28px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; color: var(--navy); scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 12px; font-size: 21px; line-height: 1.3; font-weight: 800; color: var(--navy); }
.prose a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose ul:not(.capsule-list) li::marker { color: var(--cyan); }
.prose img { border-radius: var(--radius-card); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }

.prose blockquote,
.prose .wp-block-quote,
.prose .wp-block-pullquote {
	margin: 0 0 36px;
	padding: 28px 32px;
	background: var(--gray-blue);
	border: 0;
	border-left: 4px solid var(--cyan);
	border-radius: 0 var(--radius-card) var(--radius-card) 0;
	text-align: left;
}
.prose blockquote p,
.prose .wp-block-pullquote p { margin: 0; font-size: 18px; line-height: 1.7; font-weight: 600; color: var(--navy); }
.prose blockquote cite { display: block; margin-top: 12px; font-size: 13px; font-style: normal; color: var(--text-secondary); }

.prose .wp-block-table { margin: 0 0 36px; overflow-x: auto; }
.prose table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	overflow: hidden;
	font-size: 14.5px;
	line-height: 1.7;
}
.prose th, .prose thead td {
	background: var(--navy);
	color: var(--white);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-align: left;
}
.prose th, .prose td { padding: 16px 20px; border: 0; border-bottom: 1px solid #EDF1F5; vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: var(--off-white); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody td:first-child { font-weight: 700; }
.prose .wp-block-table figcaption { text-align: left; }

@media (max-width: 767px) {
	.prose { font-size: 15px; }
	.prose > * { margin-bottom: 18px; }
	.prose h2 { margin-top: 30px; font-size: 22px; line-height: 1.28; }
	.prose blockquote, .prose .wp-block-quote, .prose .wp-block-pullquote { padding: 22px 20px; margin-bottom: 28px; }
	.prose blockquote p, .prose .wp-block-pullquote p { font-size: 15.5px; }
	.prose table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		font-size: 13.5px;
	}
	.prose th, .prose thead td { font-size: 10.5px; }
	.prose th, .prose td { padding: 12px 14px; }
}

/* ---------- Sidebar ---------- */
.article-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 28px; }
.admin-bar .article-sidebar { top: 56px; }

.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.toc a {
	display: block;
	padding-left: 12px;
	border-left: 2px solid var(--border-divider);
	font-size: 13.5px;
	line-height: 1.5;
	font-weight: 600;
	color: var(--text-secondary);
}
.toc a:hover { color: var(--navy); }
.toc a.is-active { color: var(--navy); border-left-color: var(--cyan); }

.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 16px 0 0; margin-top: 16px; border-top: 1px solid #EDF1F5; }
.side-list li:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.side-list a { display: block; margin-bottom: 5px; font-size: 14px; line-height: 1.4; font-weight: 800; color: var(--navy); }
.side-list a:hover { color: var(--cyan); }
.side-list span { font-size: 12px; font-weight: 600; color: var(--text-secondary); }

@media (max-width: 1023px) {
	.article-sidebar .toc { display: none; }
}

/* ---------- Próximos artigos ---------- */
.next-posts { margin-top: 64px; padding: 72px var(--gutter); background: var(--gray-blue); border-top: 1px solid var(--border-divider); }
.next-posts__title { margin: 0 0 32px; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.next-posts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.next-card { display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; transition: border-color var(--transition); }
.next-card:hover { border-color: var(--cyan); }
.next-card__cover { display: flex; width: 100%; height: 170px; object-fit: cover; border-radius: 0; padding: 12px; }
img.next-card__cover { padding: 0; }
.next-card__body { display: block; padding: 22px; }
.next-card__cat { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.next-card__title { display: block; font-size: 17px; line-height: 1.35; font-weight: 800; color: var(--navy); }

@media (max-width: 1023px) {
	.next-posts__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 767px) {
	.next-posts { margin-top: 40px; padding: 36px 20px; }
	.next-posts__title { font-size: 21px; margin-bottom: 20px; }
	.next-card__cover { display: none; }
	.next-card__body { padding: 18px; }
	.next-card__cat { font-size: 10.5px; margin-bottom: 8px; }
	.next-card__title { font-size: 16px; }
	.next-posts__grid > :nth-child(3) { display: none; }
}

/* ---------- Política de privacidade ---------- */
.page-hero--legal { padding-block: 56px 60px; }
.page-hero--legal .page-hero__title { font-size: 44px; line-height: 1.12; }
.page-hero--legal .page-hero__text { font-size: 16.5px; max-width: 660px; }
@media (max-width: 767px) {
	.page-hero--legal { padding-block: 34px 36px; }
	.page-hero--legal .page-hero__title { font-size: 27px; line-height: 1.16; }
	.page-hero--legal .page-hero__text { font-size: 14px; }
}

.legal-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 72px;
	align-items: start;
	padding: 72px var(--gutter) 88px;
}
.legal-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 22px; }
.admin-bar .legal-sidebar { top: 56px; }
.legal-sidebar .toc ol { gap: 11px; }
.legal-sidebar .toc a { line-height: 1.45; }
.legal-sidebar__email { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); word-break: break-word; }
.legal-sidebar__phone { display: block; margin-top: 4px; font-size: 13px; color: var(--text-secondary); }
.legal-content { max-width: 780px; min-width: 0; }
.legal-content .cta-box { margin-top: 8px; }

.prose--legal { font-size: 16px; }
.prose--legal h2 { margin-top: 18px; margin-bottom: 14px; font-size: 25px; line-height: 1.3; letter-spacing: -.015em; }
.prose--legal > p + h2, .prose--legal > figure + h2, .prose--legal > ul + h2 { margin-top: 40px; }
.prose--legal table { font-size: 14.5px; }
.prose .is-style-legal thead { display: none; }
.prose .is-style-legal tbody tr:first-child td { border-top: 0; }
.prose .is-style-legal tbody td:first-child { font-weight: 400; }
.prose .is-style-legal tbody td:last-child { font-weight: 700; color: var(--navy); }
.prose .is-style-legal tbody tr:nth-child(even) td { background: var(--off-white); }

.prose-highlight {
	padding: 26px 30px;
	background: var(--gray-blue);
	border-left: 4px solid var(--cyan);
	border-radius: 0 var(--radius-card) var(--radius-card) 0;
	font-size: 16px;
	line-height: 1.75;
	font-weight: 600;
	color: var(--navy);
}
.prose > .prose-highlight { margin-bottom: 44px; }

.prose ul.capsule-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.prose ul.capsule-list li { display: block; position: relative; margin: 0; padding-left: 36px; font-size: 16px; line-height: 1.8; }
.prose ul.capsule-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 22px; height: 9px; border-radius: var(--radius-pill); background: var(--cyan); }

.prose ul.rights-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.prose ul.rights-grid li { margin: 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-card); font-size: 14.5px; line-height: 1.6; }
.prose ul.rights-grid li strong { display: block; margin-bottom: 4px; }

@media (max-width: 1023px) {
	.legal-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.legal-sidebar { position: static; order: 2; }
	.legal-sidebar .toc { display: none; }
}
@media (max-width: 767px) {
	.legal-layout { padding: 32px 20px 44px; gap: 32px; }
	.prose--legal { font-size: 15px; }
	.prose--legal h2 { font-size: 20px; }
	.prose--legal > p + h2, .prose--legal > figure + h2, .prose--legal > ul + h2 { margin-top: 30px; }
	.prose-highlight { padding: 20px 18px; font-size: 14.5px; }
	.prose > .prose-highlight { margin-bottom: 32px; }
	.prose ul.capsule-list li { padding-left: 30px; font-size: 15px; }
	.prose ul.capsule-list li::before { width: 18px; height: 8px; }
	.prose ul.rights-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.prose ul.rights-grid li { padding: 14px 16px; font-size: 13.5px; }
}
