*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--co-font-body);
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--co-ink);
	background:
		radial-gradient(ellipse 80% 50% at 10% -10%, rgba(47, 107, 82, 0.04), transparent 55%),
		radial-gradient(ellipse 60% 40% at 100% 0%, rgba(47, 107, 82, 0.03), transparent 50%),
		var(--co-bg);
	min-height: 100vh;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--co-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--co-accent-hover);
}

.co-wrap {
	width: min(100% - 2rem, var(--co-max));
	margin-inline: auto;
}

.co-site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	backdrop-filter: blur(10px);
	background: rgba(247, 250, 247, 0.88);
	border-bottom: 1px solid var(--co-line);
}

.co-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.9rem 0;
}

.co-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-family: var(--co-font-display);
	font-size: 1.45rem;
	font-weight: 700;
	color: var(--co-ink);
	text-decoration: none;
	letter-spacing: -0.02em;
}

.co-brand:hover {
	color: var(--co-accent);
}

.co-brand-mark {
	display: block;
	width: 44px;
	height: auto;
	flex-shrink: 0;
}

.co-brand-name {
	line-height: 1;
}

.co-brand--footer {
	font-size: 1.2rem;
}

.co-brand--footer .co-brand-mark {
	width: 40px;
}

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

/* ---- Banner promo sutil ---- */
.co-promo {
	background: var(--co-accent);
	color: #f4faf7;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.co-promo[hidden] {
	display: none !important;
}

.co-promo-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0;
	min-height: 2.6rem;
}

.co-promo-copy {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.45rem 0.75rem;
	min-width: 0;
}

.co-promo-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.16);
	padding: 0.2rem 0.45rem;
	border-radius: 2px;
	white-space: nowrap;
}

.co-promo-text {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.35;
}

.co-promo-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.co-promo-cta {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	background: #fff;
	color: var(--co-accent) !important;
	text-decoration: none !important;
	font-size: 0.82rem;
	font-weight: 700;
	border-radius: var(--co-radius);
	white-space: nowrap;
	transition: transform 0.2s ease, background 0.2s ease;
}

.co-promo-cta:hover {
	background: var(--co-accent-soft);
	transform: translateY(-1px);
}

.co-promo-close {
	appearance: none;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.15rem 0.35rem;
}

.co-promo-close:hover {
	color: #fff;
}

@media (max-width: 720px) {
	.co-promo-inner {
		align-items: flex-start;
	}

	.co-promo-text {
		font-size: 0.86rem;
	}
}

/* ---- Google AdSense ---- */
.co-adsense {
	background: #fff;
	border-bottom: 1px solid var(--co-line);
}

.co-adsense[hidden] {
	display: none !important;
}

.co-adsense-tag {
	margin: 0;
	padding: 0.3rem 0.75rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	color: var(--co-ink-muted);
	background: #e8eeea;
}

.co-adsense-slot {
	min-height: 72px;
	padding: 0.35rem 0.5rem 0.5rem;
	background: #fff;
}

.co-adsense--bar .co-adsense-slot {
	min-height: 60px;
}

.co-adsense--sidebar .co-adsense-slot {
	min-height: 250px;
}

.co-adsense--footer {
	margin: 1.5rem 0 1rem;
	border: 1px solid var(--co-line);
	border-radius: 6px;
	overflow: hidden;
}

.co-adsense--footer .co-adsense-slot {
	min-height: 90px;
}

/* In-feed: divisoria entre 1o e 2o post (leaderboard desktop / retangulo mobile) */
.co-feed-infeed {
	margin: 0.35rem 0 0.15rem;
}

.co-adsense--infeed {
	margin: 0;
	border: 1px solid var(--co-line);
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.co-adsense--infeed .co-adsense-tag {
	background: #f3f6f4;
}

.co-adsense--infeed .co-adsense-slot {
	min-height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
}

@media (max-width: 720px) {
	.co-feed-infeed {
		margin: 0.75rem 0 0.35rem;
	}

	.co-adsense--infeed .co-adsense-slot {
		min-height: 250px;
	}
}

.co-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.co-nav a {
	color: var(--co-ink-muted);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
}

.co-nav a:hover,
.co-nav .current-menu-item > a {
	color: var(--co-ink);
}

.co-main {
	padding: 2.5rem 0 4rem;
}

.co-page-title {
	font-family: var(--co-font-display);
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	line-height: 1.15;
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}

.co-lead {
	color: var(--co-ink-muted);
	font-size: 1.1rem;
	max-width: 42rem;
}

.co-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.co-card {
	background: var(--co-bg-elevated);
	border: 1px solid var(--co-line);
	border-radius: var(--co-radius);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.co-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--co-shadow);
}

.co-card a {
	text-decoration: none;
	color: inherit;
}

.co-card-media {
	aspect-ratio: 16 / 10;
	background: var(--co-accent-soft);
	overflow: hidden;
}

.co-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.co-card-body {
	padding: 1.1rem 1.2rem 1.35rem;
}

.co-card-cat {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--co-accent);
	margin-bottom: 0.4rem;
}

.co-card-title {
	font-family: var(--co-font-display);
	font-size: 1.2rem;
	margin: 0 0 0.5rem;
	line-height: 1.25;
}

.co-card-excerpt {
	margin: 0;
	color: var(--co-ink-muted);
	font-size: 0.95rem;
}

.co-entry {
	max-width: 720px;
}

.co-entry .entry-content > * + * {
	margin-top: 1.1rem;
}

.co-entry .entry-content h2,
.co-entry .entry-content h3 {
	font-family: var(--co-font-display);
	letter-spacing: -0.02em;
}

.co-ml-slot {
	margin: 2rem 0;
	padding: 1.5rem;
	border: 1px dashed var(--co-line);
	background: var(--co-bg-elevated);
	border-radius: var(--co-radius);
}

.co-ml-slot p {
	margin: 0 0 0.75rem;
	color: var(--co-ink-muted);
	font-size: 0.95rem;
}

.co-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.7rem 1.25rem;
	background: var(--co-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
	border-radius: var(--co-radius);
	border: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.co-btn:hover {
	background: var(--co-accent-hover);
	transform: translateY(-1px);
}

.co-btn--ghost {
	background: transparent;
	color: var(--co-ink) !important;
	border: 1px solid var(--co-line);
}

.co-btn--ghost:hover {
	background: var(--co-accent-soft);
}

.co-btn--block {
	display: inline-flex;
	width: 100%;
	justify-content: center;
}

.co-disclaimer {
	font-size: 0.85rem;
	color: var(--co-ink-muted);
	border-top: 1px solid var(--co-line);
	padding-top: 1rem;
	margin-top: 2.5rem;
}

/* Aviso de afiliado no topo do artigo: discreto, antes do texto. */
.co-disclaimer--afiliado {
	border-top: 0;
	border-left: 3px solid var(--co-line);
	padding: 0.25rem 0 0.25rem 0.75rem;
	margin: 0 0 1.5rem;
}

.co-site-footer {
	border-top: 1px solid var(--co-line);
	background: #e4ebe7;
	padding: 2.5rem 0 2rem;
	margin-top: auto;
}

.co-footer-inner {
	display: grid;
	gap: 1.5rem;
}

.co-footer-brand {
	font-family: var(--co-font-display);
	font-size: 1.25rem;
	font-weight: 700;
}

.co-footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.co-footer-nav a {
	color: var(--co-ink-muted);
	text-decoration: none;
	font-size: 0.9rem;
}

.co-footer-copy {
	font-size: 0.85rem;
	color: var(--co-ink-muted);
	margin: 0;
}

/* ---- Privacidade LGPD ---- */
.co-privacy {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	z-index: 1000;
	max-width: min(420px, calc(100vw - 2rem));
}

.co-privacy[hidden] {
	display: none !important;
}

.co-privacy-card {
	background: #fff;
	border: 1px solid var(--co-line);
	border-radius: 8px;
	box-shadow: 0 16px 40px rgba(26, 42, 34, 0.18);
	padding: 1rem 1.1rem 1.05rem;
}

.co-privacy-head {
	margin-bottom: 0.45rem;
}

.co-privacy-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--co-accent);
}

.co-privacy-text {
	margin: 0 0 0.9rem;
	font-size: 0.84rem;
	line-height: 1.45;
	color: var(--co-ink-muted);
}

.co-privacy-text a {
	color: var(--co-accent);
	font-weight: 600;
}

.co-privacy-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.co-privacy-btn {
	appearance: none;
	border: 1px solid var(--co-line);
	background: #fff;
	color: var(--co-ink);
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.45rem 0.75rem;
	border-radius: var(--co-radius);
	cursor: pointer;
	line-height: 1.2;
}

.co-privacy-btn:hover {
	background: var(--co-accent-soft);
}

.co-privacy-btn--primary {
	background: var(--co-accent);
	border-color: var(--co-accent);
	color: #fff;
}

.co-privacy-btn--primary:hover {
	background: var(--co-accent-hover);
	border-color: var(--co-accent-hover);
	color: #fff;
}

.co-privacy-panel {
	display: grid;
	gap: 0.55rem;
	margin-bottom: 0.85rem;
	padding: 0.75rem;
	background: var(--co-bg);
	border-radius: var(--co-radius);
}

.co-privacy-panel[hidden] {
	display: none !important;
}

.co-privacy-check {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.84rem;
	color: var(--co-ink);
	cursor: pointer;
}

.co-privacy-check input {
	margin-top: 0.15rem;
}

@media (max-width: 720px) {
	/* Celular: marca e menu em 2 linhas finas (o menu quebrava em 3 linhas e o
	   cabecalho fixo tomava ~1/4 da tela). O menu rola para o lado. */
	.co-header-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 0.35rem;
		padding: 0.5rem 0 0.4rem;
	}

	.co-brand {
		font-size: 1.2rem;
	}

	.co-brand-mark {
		width: 32px;
	}

	.co-nav {
		margin-inline: -1rem;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 1.5rem), transparent);
	}

	.co-nav::-webkit-scrollbar {
		display: none;
	}

	.co-nav ul {
		flex-wrap: nowrap;
		gap: 1.1rem;
		padding: 0.15rem 1rem;
		width: max-content;
	}

	.co-nav a {
		font-size: 0.9rem;
		white-space: nowrap;
	}

	/* Some ao rolar para baixo e volta ao rolar para cima (main.js). */
	.co-site-header {
		transition: transform 0.25s ease;
	}

	.co-site-header.is-escondido {
		transform: translateY(-100%);
	}

	.co-privacy {
		left: 0.75rem;
		right: 0.75rem;
		bottom: 0.75rem;
		max-width: none;
	}

	.co-privacy-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.co-privacy-actions .co-privacy-btn--primary {
		grid-column: 1 / -1;
	}
}

/* ---- Pagina ponte /grupo/ (canais de ofertas) ---- */
.co-grupo {
	display: flex;
	justify-content: center;
	padding: 2rem 0 3rem;
}

.co-grupo-cartao {
	width: 100%;
	max-width: 30rem;
	padding: 2rem 1.5rem;
	border: 1px solid var(--co-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--co-shadow);
	text-align: center;
}

.co-grupo-logo {
	display: block;
	width: 88px;
	height: auto;
	margin: 0 auto;
}

.co-grupo-selo {
	display: inline-block;
	margin: 0.75rem 0 0;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: var(--co-accent-soft);
	color: var(--co-accent);
	font-size: 0.78rem;
	font-weight: 700;
}

.co-grupo-titulo {
	margin: 0.6rem 0 0.4rem;
	font-size: 1.7rem;
	line-height: 1.2;
}

.co-grupo-sub {
	margin: 0 0 1rem;
	color: var(--co-ink-muted);
}

.co-grupo-lista {
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
	text-align: left;
}

.co-grupo-lista li {
	padding: 0.35rem 0 0.35rem 1.6rem;
	position: relative;
}

.co-grupo-lista li::before {
	content: "✓";
	position: absolute;
	left: 0.2rem;
	color: var(--co-accent);
	font-weight: 700;
}

.co-grupo-botoes {
	display: grid;
	gap: 0.6rem;
}

.co-grupo-btn {
	display: block;
	padding: 0.95rem 1rem;
	border-radius: 12px;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.co-grupo-btn:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
}

.co-grupo-btn--tg {
	background: #229ed9;
}

.co-grupo-btn--wa {
	background: #1f9d55;
}

.co-grupo-nota {
	margin: 1rem 0 0;
	color: var(--co-ink-muted);
	font-size: 0.78rem;
}
