/* ============================================================
   Cafezall — sistema de design "portal" (v1.0.0)
   Inspirado em portal de notícias (globo.com): branco, limpo,
   cards arredondados, tipografia sans (Manrope). Marca: verde
   #2A3428 + laranja #EF7C3A. Logo em slab (Zilla) é a única serifa.
   ============================================================ */

:root {
	--cz-green: #2a3428;
	--cz-green-deep: #1c241a;
	--cz-orange: #ef7c3a;
	--cz-orange-text: #b85c20;   /* laranja legível p/ rótulos pequenos */
	--cz-ink: #1b1b1b;
	--cz-text: #33332f;
	--cz-muted: #767676;
	--cz-faint: #9a9a9a;
	--cz-line: #ededed;
	--cz-bg: #ffffff;
	--cz-warm: #efe4d7;          /* placeholder de foto */
	--cz-cream: #f6f3ee;
	--cz-pill: #f4f1ec;
	--cz-wrapw: 1100px;
	--cz-readw: 680px;
	--cz-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--cz-slab: "Zilla Slab", Georgia, serif;
}

/* ---------- Base ---------- */
.cafezall-editorial-site {
	color: var(--cz-text);
	background: var(--cz-bg);
	font-family: var(--cz-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.cafezall-editorial-site h1,
.cafezall-editorial-site h2,
.cafezall-editorial-site h3,
.cafezall-editorial-site h4 {
	font-family: var(--cz-sans);
	color: var(--cz-ink);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.cz-wrap {
	width: min(var(--cz-wrapw), calc(100% - 40px));
	margin-inline: auto;
}

/* selo de editoria (categoria) */
.cz-cat {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--cz-orange-text);
	text-transform: uppercase;
	text-decoration: none;
}

a.cz-cat:hover {
	color: var(--cz-green);
}

/* placeholder de foto (quando o post não tem imagem destacada) — ícone da marca centralizado */
.cz-ph {
	background: var(--cz-warm) url('https://blog.cafezall.com/wp-content/uploads/2026/06/cafezall-icone-xicara.webp') center / 54px auto no-repeat;
	border-radius: 12px;
}

/* ---------- Header (Kadence) ---------- */
.cafezall-editorial-site .site-header {
	background: var(--cz-bg);
	border-bottom: 1px solid var(--cz-line);
	box-shadow: none;
}

.cafezall-editorial-site .site-branding a.brand {
	display: inline-block;
	width: 230px;
	max-width: 56vw;
	height: 52px;
	background: url('https://blog.cafezall.com/wp-content/uploads/2026/06/cafezall-logo-horizontal-scaled.webp') left center / contain no-repeat;
}

.cafezall-editorial-site .site-branding .site-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.cafezall-editorial-site .main-navigation a {
	color: var(--cz-ink);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.cafezall-editorial-site .main-navigation a:hover,
.cafezall-editorial-site .main-navigation .current-menu-item > a {
	color: var(--cz-orange);
}

/* ---------- Home: destaque ---------- */
.cz-home {
	padding: 26px 0 8px;
}

.cz-featured {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 26px;
}

/* sem matérias laterais (pouco conteúdo) → destaque ocupa a largura toda */
.cz-featured--solo {
	grid-template-columns: 1fr;
}

.cz-featured--solo .cz-feat-media,
.cz-featured--solo .cz-feat-media img {
	height: 340px;
}

.cz-feat-media,
.cz-feat-media img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	border-radius: 14px;
	display: block;
}

.cz-feat-title {
	margin: 7px 0 0;
	font-size: clamp(1.5rem, 2.6vw, 1.9rem);
	line-height: 1.12;
	color: var(--cz-ink);
}

.cz-feat-title a {
	color: inherit;
	text-decoration: none;
}

.cz-feat-cat {
	margin-top: 14px;
}

.cz-feat-dek {
	margin: 8px 0 0;
	font-size: 1rem;
	line-height: 1.55;
	color: #5e5e5e;
}

.cz-meta-line {
	margin-top: 10px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--cz-faint);
}

.cz-feat-side {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cz-side-item {
	display: flex;
	gap: 13px;
	text-decoration: none;
}

.cz-side-item + .cz-side-item {
	border-top: 1px solid var(--cz-line);
	padding-top: 14px;
}

.cz-side-thumb,
.cz-side-thumb img {
	width: 100px;
	height: 74px;
	flex: none;
	object-fit: cover;
	border-radius: 10px;
}

.cz-side-title {
	margin: 4px 0 0;
	font-size: 0.95rem;
	line-height: 1.22;
	font-weight: 700;
	color: var(--cz-ink);
}

/* ---------- Seções + grade ---------- */
.cz-section {
	padding: 24px 0 4px;
}

.cz-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 2px solid var(--cz-green);
	padding-bottom: 8px;
	margin-bottom: 18px;
}

.cz-section-head h2 {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--cz-ink);
}

.cz-section-more {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--cz-orange);
	text-decoration: none;
}

.cz-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: 20px;
}

.cz-card {
	text-decoration: none;
	display: block;
}

.cz-card-media,
.cz-card-media img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.cz-card .cz-cat {
	margin-top: 11px;
}

.cz-card-title {
	margin: 3px 0 0;
	font-size: 1rem;
	line-height: 1.24;
	font-weight: 700;
	color: var(--cz-ink);
}

.cz-card-meta {
	margin-top: 6px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--cz-faint);
}

/* ---------- Feed (miniatura à esquerda) ---------- */
.cz-feed-item {
	display: flex;
	gap: 14px;
	padding: 15px 0;
	border-bottom: 1px solid var(--cz-line);
	text-decoration: none;
}

.cz-feed-item:last-child {
	border-bottom: none;
}

.cz-feed-thumb,
.cz-feed-thumb img {
	width: 104px;
	height: 78px;
	flex: none;
	object-fit: cover;
	border-radius: 10px;
}

.cz-feed-title {
	margin: 3px 0 0;
	font-size: 0.98rem;
	line-height: 1.25;
	font-weight: 700;
	color: var(--cz-ink);
}

.cz-feed-meta {
	margin-top: 5px;
	font-size: 0.74rem;
	font-weight: 600;
	color: var(--cz-faint);
}

/* ---------- Pílulas de tema ---------- */
.cz-pills-wrap {
	padding: 22px 0 28px;
}

.cz-pills-label {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--cz-ink);
	margin-bottom: 10px;
}

.cz-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.cz-pill {
	font-size: 0.84rem;
	font-weight: 600;
	background: var(--cz-pill);
	color: var(--cz-text);
	border-radius: 20px;
	padding: 8px 16px;
	text-decoration: none;
}

.cz-pill:hover,
.cz-pill--all {
	background: var(--cz-green);
	color: #ffffff;
}

/* ---------- Artigo (single) ---------- */
.cz-article-head {
	max-width: var(--cz-readw);
	padding: 24px 0 6px;
}

.cz-article-head .rank-math-breadcrumb p,
.cz-breadcrumb {
	font-size: 0.78rem;
	color: var(--cz-faint);
	font-weight: 500;
	margin-bottom: 14px;
}

.cz-article-head .rank-math-breadcrumb a,
.cz-breadcrumb a {
	color: var(--cz-muted);
	text-decoration: none;
}

.cz-title {
	margin: 7px 0 0;
	font-size: clamp(1.75rem, 4.4vw, 2.1rem);
	line-height: 1.13;
	color: var(--cz-ink);
}

.cz-dek {
	margin: 12px 0 0;
	font-size: 1.12rem;
	line-height: 1.5;
	color: #5e5e5e;
}

.cz-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--cz-line);
}

.cz-avatar {
	width: 38px;
	height: 38px;
	flex: none;
	border-radius: 50%;
	background: var(--cz-green);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	font-weight: 700;
}

.cz-author {
	display: block;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--cz-ink);
}

.cz-meta-sub {
	display: block;
	font-size: 0.76rem;
	color: var(--cz-faint);
	font-weight: 500;
}

/* corpo do texto */
.cz-article-body {
	max-width: var(--cz-readw);
	padding-top: 4px;
}

.cz-article-body > p {
	font-size: 1.06rem;
	line-height: 1.78;
	color: var(--cz-text);
	margin: 16px 0 0;
}

.cz-article-body > h2 {
	font-size: clamp(1.3rem, 3vw, 1.45rem);
	margin: 30px 0 0;
	line-height: 1.2;
}

.cz-article-body > h3 {
	font-size: 1.18rem;
	margin: 24px 0 0;
}

.cz-article-body > ul,
.cz-article-body > ol {
	font-size: 1.04rem;
	line-height: 1.75;
	margin: 14px 0 0;
	padding-left: 1.3rem;
}

.cz-article-body img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.cz-article-body figure {
	margin: 26px 0;
}

.cz-article-body figure img {
	width: 100%;
}

.cz-article-body figcaption {
	margin-top: 7px;
	font-size: 0.82rem;
	color: var(--cz-faint);
	text-align: center;
}

.cz-article-body a:not(.wp-block-button__link) {
	color: var(--cz-green);
	text-decoration: underline;
	text-decoration-color: var(--cz-orange);
	text-underline-offset: 2px;
}

.cz-article-body a:not(.wp-block-button__link):hover {
	color: var(--cz-orange-text);
}

/* caixa de resumo */
.cz-resumo {
	background: var(--cz-cream);
	border: 1px solid #ece5da;
	border-radius: 12px;
	padding: 18px 20px;
	margin: 24px 0 0;
}

.cz-resumo-label {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--cz-orange-text);
	text-transform: uppercase;
}

/* relacionados */
.cz-related {
	max-width: var(--cz-wrapw);
	padding: 28px 0 8px;
}

.cz-related-head {
	border-top: 2px solid var(--cz-green);
	padding-top: 12px;
	margin-bottom: 16px;
}

.cz-related-head h2 {
	font-size: 1.05rem;
	font-weight: 800;
}

/* ---------- Páginas internas (institucionais / hubs) ---------- */
.cz-page-head {
	max-width: var(--cz-readw);
	padding: 28px 0 4px;
}

.cz-page-head h1 {
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	line-height: 1.13;
	color: var(--cz-ink);
}

.cz-page-body {
	padding: 8px 0 44px;
}

.cz-page-body > p,
.cz-page-body > ul,
.cz-page-body > ol {
	max-width: var(--cz-readw);
	font-size: 1.04rem;
	line-height: 1.75;
	margin: 14px 0 0;
}

.cz-page-body > ul,
.cz-page-body > ol {
	padding-left: 1.3rem;
}

.cz-page-body > h2 {
	margin: 28px 0 0;
	font-size: clamp(1.3rem, 3vw, 1.5rem);
}

.cz-page-body > h3 {
	margin: 22px 0 0;
	font-size: 1.18rem;
}

.cz-page-body a:not(.wp-block-button__link) {
	color: var(--cz-green);
	text-decoration: underline;
	text-decoration-color: var(--cz-orange);
	text-underline-offset: 2px;
}

/* Garante a centralização do conteúdo mesmo com a regra .entry-content do Kadence */
.cafezall-editorial-site .cz-article-body,
.cafezall-editorial-site .cz-page-body {
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Páginas (institucionais): o H1 vem do conteúdo (título do template foi removido) */
.cz-page-content {
	padding-top: 28px;
}

.cz-article-body > h1 {
	margin: 0 0 4px;
	font-size: clamp(1.7rem, 4vw, 2.2rem);
	line-height: 1.15;
	color: var(--cz-ink);
}

/* ---------- Componentes editoriais (shortcodes do plugin) ---------- */
.cafezall-summary-box,
.cafezall-start-here,
.cafezall-internal-links,
.cafezall-author-box {
	background: var(--cz-cream);
	border: 1px solid #ece5da;
	border-radius: 12px;
	padding: 18px 20px;
	margin: 22px 0;
}

.cafezall-summary-box strong,
.cafezall-start-here strong,
.cafezall-internal-links strong,
.cafezall-author-box strong {
	display: block;
	margin-bottom: 8px;
	font-weight: 800;
	color: var(--cz-ink);
}

.cafezall-start-here ul,
.cafezall-internal-links ul {
	margin: 6px 0 0;
	padding-left: 1.2rem;
}

.cafezall-summary-box a,
.cafezall-start-here a,
.cafezall-internal-links a {
	color: var(--cz-green);
	text-decoration: underline;
	text-decoration-color: var(--cz-orange);
}

.cafezall-faq {
	border: 1px solid var(--cz-line);
	border-radius: 12px;
	padding: 16px 18px;
	margin: 14px 0;
}

.cafezall-faq summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--cz-ink);
}

/* ---------- Botões (Gutenberg, dentro do conteúdo) ---------- */
.cafezall-editorial-site .wp-block-button__link,
.cafezall-editorial-site .wp-block-button__link.wp-element-button {
	background-color: var(--cz-green) !important;
	border: none !important;
	color: #ffffff !important;
	border-radius: 100px !important;
	text-decoration: none !important;
	font-family: var(--cz-sans) !important;
	font-weight: 700 !important;
	padding: 12px 26px !important;
}

.cafezall-editorial-site .wp-block-button__link:hover {
	background-color: var(--cz-green-deep) !important;
	color: #ffffff !important;
}

/* ---------- Rodapé ---------- */
.cafezall-editorial-site .site-footer-bottom {
	display: none;
}

.cafezall-editorial-site .site-footer {
	border-top: none;
	background: var(--cz-green);
}

.cz-legal {
	background: var(--cz-green);
	color: #c9d2cb;
	padding: 26px 0;
	font-size: 0.84rem;
	line-height: 1.6;
	border-top: 1px solid #3c463a;
}

.cz-legal-wm {
	font-family: var(--cz-slab);
	font-weight: 700;
	font-size: 1.2rem;
	color: #ffffff;
	display: inline-block;
	margin-bottom: 12px;
}

.cz-legal-wm span {
	color: var(--cz-orange);
}

.cz-legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-bottom: 12px;
}

.cz-legal-links a {
	color: #e9ede5;
	font-weight: 600;
	text-decoration: none;
}

.cz-legal-links a:hover {
	color: var(--cz-orange);
}

.cz-legal-company {
	margin: 0;
	color: #9aa89e;
	font-size: 0.76rem;
}

/* ---------- Responsivo ---------- */
@media (max-width: 880px) {
	.cz-featured {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.cz-feat-media,
	.cz-feat-media img {
		height: 220px;
	}
}

@media (max-width: 719px) {
	.cz-wrap {
		width: min(100% - 28px, var(--cz-wrapw));
	}

	.cafezall-editorial-site .site-branding a.brand {
		width: 190px;
		height: 44px;
	}

	.cz-feat-title {
		font-size: 1.45rem;
	}

	.cz-dek {
		font-size: 1.02rem;
	}
}

/* ============================================================
   Shell próprio: header (verde) + footer + arquivos
   ============================================================ */
.cz-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: #fff;
	color: var(--cz-green);
	padding: 10px 16px;
	border-radius: 0 0 8px 0;
}

.cz-skip:focus {
	left: 8px;
	top: 8px;
}

.cz-header {
	position: relative;
	z-index: 50;
	background: var(--cz-green);
}

.cz-header-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 64px;
}

.cz-logo {
	display: inline-flex;
	align-items: center;
	flex: none;
}

.cz-logo img {
	height: 48px;
	width: auto;
	display: block;
}

.cz-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 8px;
	background: none;
	border: none;
	cursor: pointer;
}

.cz-burger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
}

.cz-nav-wrap {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-left: auto;
}

.cz-menu {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cz-menu a {
	color: #ffffff;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
}

.cz-menu a:hover,
.cz-menu .current-menu-item > a,
.cz-menu .current-cat > a {
	color: var(--cz-orange);
}

.cz-search {
	display: flex;
	align-items: center;
	gap: 4px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 22px;
	padding: 6px 8px 6px 14px;
}

.cz-search input {
	width: 150px;
	background: transparent;
	border: none;
	outline: none;
	color: #ffffff;
	font-family: var(--cz-sans);
	font-size: 0.85rem;
}

.cz-search input::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.cz-search button {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	padding: 2px 4px;
	border: none;
	background: none;
	color: #ffffff;
	cursor: pointer;
}

.cz-search button:hover {
	color: var(--cz-orange);
}

.cz-site-content {
	min-height: 40vh;
}

/* Footer */
.cz-footer {
	background: var(--cz-green);
	color: #c9d2cb;
	padding: 32px 0;
}

.cz-footer-logo img {
	height: 26px;
	width: auto;
	display: block;
}

.cz-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 16px 0 14px;
}

.cz-footer-links a {
	color: #e9ede5;
	font-weight: 600;
	font-size: 0.88rem;
	text-decoration: none;
}

.cz-footer-links a:hover {
	color: var(--cz-orange);
}

.cz-footer-company {
	margin: 0;
	color: #93a298;
	font-size: 0.76rem;
	line-height: 1.6;
}

/* Arquivos / busca */
.cz-arch-head {
	padding: 28px 0 6px;
}

.cz-arch-head .cz-title {
	font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.cz-arch-desc {
	margin-top: 8px;
	max-width: var(--cz-readw);
	color: var(--cz-muted);
	font-size: 1rem;
}

.cz-arch-body {
	padding: 16px 0 44px;
}

.cz-empty {
	padding: 18px 0 44px;
	color: var(--cz-muted);
}

.cz-pagination {
	margin-top: 28px;
}

.cz-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	margin: 0 3px;
	border-radius: 8px;
	background: var(--cz-pill);
	color: var(--cz-ink);
	font-weight: 700;
	font-size: 0.85rem;
	text-decoration: none;
}

.cz-pagination .page-numbers.current,
.cz-pagination .page-numbers:hover {
	background: var(--cz-green);
	color: #ffffff;
}

/* Avatar (Gravatar) no artigo */
.cz-avatar {
	overflow: hidden;
}

.cz-avatar img {
	width: 100%;
	height: 100%;
	display: block;
	border-radius: 50%;
	object-fit: cover;
}

@media (max-width: 880px) {
	.cz-header-inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		gap: 8px;
		min-height: 52px;
	}

	.cz-burger {
		display: flex;
		justify-self: start;
	}

	.cz-logo {
		justify-self: center;
	}

	.cz-logo img {
		height: 40px;
	}

	.cz-nav-wrap {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		grid-column: 1 / -1;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin-left: 0;
		padding: 6px 0 12px;
		background: var(--cz-green);
		border-top: 1px solid rgba(255, 255, 255, 0.14);
		box-shadow: 0 14px 22px rgba(0, 0, 0, 0.18);
	}

	.cz-header.cz-nav-open .cz-nav-wrap {
		display: flex;
	}

	.cz-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.cz-menu a {
		display: block;
		padding: 12px 22px;
	}

	.cz-search {
		margin: 10px 22px 4px;
	}

	.cz-search input {
		width: 100%;
	}
}
