/* ==========================================================================
   Cyberplay Arbitrage — main.css
   Filosofia: vanilla CSS moderno, zero dependências, Core Web Vitals otimizado.
   CSS Variables definidas em /inc/verticals.php (inline no <head>) — sobrescrevem
   os defaults abaixo por vertical.
   ========================================================================== */

/* === Reset moderno === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
body { min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

/* === Design tokens (fallback — sobrescrito pela vertical) === */
:root {
	--cp-primary: #0A0A0A;
	--cp-accent:  #E4FF3A;
	--cp-bg:      #FAFAF5;
	--cp-text:    #0A0A0A;
	--cp-muted:   #666;
	--cp-border:  #E5E5E0;
	--cp-primary-rgb: 10,10,10;
	--cp-accent-rgb:  228,255,58;

	--cp-font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--cp-font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--cp-font-mono:    'JetBrains Mono', 'Courier New', ui-monospace, monospace;

	--cp-radius-sm: 6px;
	--cp-radius-md: 10px;
	--cp-radius-lg: 18px;

	--cp-container: 1240px;
	--cp-gap: clamp(16px, 3vw, 32px);
	--cp-section-gap: clamp(32px, 6vw, 72px);

	--cp-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
	--cp-shadow-md: 0 4px 20px rgba(0,0,0,0.06);
	--cp-shadow-lg: 0 12px 48px rgba(0,0,0,0.08);

	--cp-transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);

	--cp-fz-xs:  0.8125rem;  /* 13 */
	--cp-fz-sm:  0.875rem;   /* 14 */
	--cp-fz-md:  1rem;       /* 16 */
	--cp-fz-lg:  1.125rem;   /* 18 */
	--cp-fz-xl:  clamp(1.25rem, 1vw + 1rem, 1.5rem);
	--cp-fz-2xl: clamp(1.5rem, 2vw + 1rem, 2rem);
	--cp-fz-3xl: clamp(2rem, 3vw + 1rem, 3rem);
	--cp-fz-4xl: clamp(2.5rem, 5vw + 1rem, 4.25rem);
	--cp-fz-hero: clamp(2.25rem, 6vw + 1rem, 5rem);
}

/* === Dark mode === */
.cp-dark {
	--cp-bg:     #0A0A0A;
	--cp-text:   #FAFAF5;
	--cp-muted:  #999;
	--cp-border: #222;
}

/* === Base === */
html { font-family: var(--cp-font-body); color: var(--cp-text); background: var(--cp-bg); }
body { font-size: var(--cp-fz-md); font-family: var(--cp-font-body); color: var(--cp-text); background: var(--cp-bg); }

h1, h2, h3, h4, h5, h6 { font-family: var(--cp-font-display); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }

a { color: var(--cp-text); transition: color var(--cp-transition); }
a:hover { color: var(--cp-primary); }

.cp-skip-link { position: absolute; left: -9999px; top: auto; }
.cp-skip-link:focus { position: fixed; top: 12px; left: 12px; background: var(--cp-primary); color: #fff; padding: 10px 16px; border-radius: var(--cp-radius-md); z-index: 10000; }

/* === Container === */
.cp-container { width: 100%; max-width: var(--cp-container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* === HEADER === */
.cp-header { background: var(--cp-bg); border-bottom: 1px solid var(--cp-border); position: sticky; top: 0; z-index: 100; backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); background-color: color-mix(in srgb, var(--cp-bg) 92%, transparent); }
.cp-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.cp-header__brand { display: flex; align-items: center; }
.cp-logo { font-family: var(--cp-font-display); font-weight: 900; font-size: 1.25rem; letter-spacing: -0.03em; color: var(--cp-text); }
.cp-logo::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--cp-accent); border-radius: 2px; margin-right: 10px; transform: translateY(-2px) rotate(45deg); }
.custom-logo-link img { max-height: 44px; width: auto; }

/* Nav */
.cp-nav { display: flex; align-items: center; gap: 24px; }
.cp-nav__menu { display: flex; gap: 20px; list-style: none; }
.cp-nav__menu a { font-size: var(--cp-fz-sm); font-weight: 600; color: var(--cp-text); padding: 6px 0; position: relative; }
.cp-nav__menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--cp-primary); transition: right var(--cp-transition); }
.cp-nav__menu a:hover::after, .cp-nav__menu .current-menu-item > a::after { right: 0; }

.cp-search { display: flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--cp-text) 6%, transparent); border-radius: var(--cp-radius-md); padding: 2px 6px 2px 12px; }
.cp-search input { background: transparent; border: 0; outline: 0; font-size: var(--cp-fz-sm); padding: 6px 0; width: 170px; }
.cp-search button { background: transparent; border: 0; padding: 4px 8px; cursor: pointer; font-size: 1.1rem; color: var(--cp-muted); }

.cp-nav-toggle { display: none; background: transparent; border: 0; padding: 10px; cursor: pointer; flex-direction: column; gap: 5px; }
.cp-nav-toggle__bar { width: 22px; height: 2px; background: var(--cp-text); transition: transform var(--cp-transition), opacity var(--cp-transition); }
.cp-nav-toggle[aria-expanded=true] .cp-nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cp-nav-toggle[aria-expanded=true] .cp-nav-toggle__bar:nth-child(2) { opacity: 0; }
.cp-nav-toggle[aria-expanded=true] .cp-nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	.cp-nav-toggle { display: flex; }
	.cp-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cp-bg); padding: 16px; flex-direction: column; align-items: stretch; gap: 14px; border-bottom: 1px solid var(--cp-border); box-shadow: var(--cp-shadow-md); }
	.cp-nav--open { display: flex; }
	.cp-nav__menu { flex-direction: column; gap: 8px; }
	.cp-nav__menu a { padding: 8px 4px; font-size: 1rem; }
	.cp-search { width: 100%; }
	.cp-search input { width: 100%; }
}

/* === MAIN === */
.cp-main { padding-block: clamp(20px, 3vw, 40px) clamp(40px, 6vw, 80px); }

/* === Breadcrumbs === */
.cp-breadcrumbs { font-family: var(--cp-font-mono); font-size: var(--cp-fz-xs); color: var(--cp-muted); margin-bottom: 20px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cp-breadcrumbs a { color: var(--cp-muted); }
.cp-breadcrumbs a:hover { color: var(--cp-primary); }
.cp-breadcrumbs .cp-sep { opacity: 0.5; }

/* === Sections === */
.cp-section { margin-bottom: var(--cp-section-gap); }
.cp-section__title { font-size: var(--cp-fz-xl); margin-bottom: 20px; display: inline-block; position: relative; padding-bottom: 8px; }
.cp-section__title::after { content: ""; position: absolute; bottom: 0; left: 0; width: 60%; height: 4px; background: var(--cp-accent); border-radius: 2px; }

/* === HERO === */
.cp-section--hero { margin-top: 0; }
.cp-hero { position: relative; border-radius: var(--cp-radius-lg); overflow: hidden; background: var(--cp-primary); color: #fff; }
.cp-hero__link { display: block; color: inherit; }
.cp-hero__media { aspect-ratio: 21 / 9; overflow: hidden; }
.cp-hero__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1); }
.cp-hero:hover .cp-hero__media img { transform: scale(1.04); }
.cp-hero__body { position: absolute; inset: auto 0 0 0; padding: clamp(20px, 4vw, 48px); background: linear-gradient(to top, rgba(0,0,0,0.85) 10%, rgba(0,0,0,0.4) 60%, transparent); color: #fff; }
.cp-hero__cat { display: inline-block; font-family: var(--cp-font-mono); font-size: var(--cp-fz-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; background: var(--cp-accent); color: var(--cp-primary); padding: 5px 10px; border-radius: 4px; margin-bottom: 14px; }
.cp-hero__title { font-size: var(--cp-fz-hero); font-weight: 900; line-height: 1; letter-spacing: -0.035em; margin-bottom: 16px; }
.cp-hero__excerpt { font-size: clamp(1rem, 1vw + 0.75rem, 1.25rem); max-width: 60ch; color: rgba(255,255,255,0.85); margin-bottom: 14px; }
.cp-hero__meta { font-family: var(--cp-font-mono); font-size: var(--cp-fz-xs); color: rgba(255,255,255,0.7); display: flex; gap: 10px; }

@media (max-width: 768px) {
	.cp-hero__media { aspect-ratio: 4 / 3; }
	.cp-hero__body { position: relative; background: var(--cp-primary); }
	.cp-hero__media img { aspect-ratio: 4 / 3; }
}

/* === PAGE GRID (content + sidebar) === */
.cp-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 980px) { .cp-page-grid { grid-template-columns: 1fr; } }

/* === GRID (6 cards) === */
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: clamp(16px, 2vw, 28px); }

/* === CARD === */
.cp-card { background: var(--cp-bg); border: 1px solid var(--cp-border); border-radius: var(--cp-radius-md); overflow: hidden; transition: transform var(--cp-transition), border-color var(--cp-transition), box-shadow var(--cp-transition); }
.cp-card:hover { transform: translateY(-3px); border-color: var(--cp-primary); box-shadow: var(--cp-shadow-md); }
.cp-card__link { display: block; color: inherit; }
.cp-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cp-border); }
.cp-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms; }
.cp-card:hover .cp-card__media img { transform: scale(1.05); }
.cp-card__cat { position: absolute; top: 12px; left: 12px; background: var(--cp-accent); color: var(--cp-primary); font-family: var(--cp-font-mono); font-size: var(--cp-fz-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 9px; border-radius: 4px; }
.cp-card__body { padding: 18px 18px 22px; }
.cp-card__title { font-size: var(--cp-fz-lg); line-height: 1.25; margin-bottom: 8px; letter-spacing: -0.015em; }
.cp-card__excerpt { color: var(--cp-muted); font-size: var(--cp-fz-sm); line-height: 1.5; margin-bottom: 12px; }
.cp-card__meta { font-family: var(--cp-font-mono); font-size: var(--cp-fz-xs); color: var(--cp-muted); display: flex; gap: 8px; }
.cp-card--small .cp-card__title { font-size: var(--cp-fz-md); }
.cp-card--small .cp-card__excerpt { display: none; }

/* === LIST ITEM (estilo jornal) === */
.cp-list { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); }
.cp-list-item { background: transparent; border-bottom: 1px solid var(--cp-border); padding-bottom: clamp(16px, 2vw, 24px); }
.cp-list-item:last-child { border-bottom: 0; }
.cp-list-item__link { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; color: inherit; }
@media (max-width: 640px) { .cp-list-item__link { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; } }
.cp-list-item__media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--cp-radius-sm); background: var(--cp-border); }
.cp-list-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cp-list-item__body { min-width: 0; }
.cp-list-item__cat { font-family: var(--cp-font-mono); font-size: var(--cp-fz-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cp-primary); margin-bottom: 6px; display: inline-block; }
.cp-list-item__title { font-size: clamp(1.1rem, 1vw + 0.8rem, 1.4rem); line-height: 1.2; margin-bottom: 6px; letter-spacing: -0.02em; }
.cp-list-item__excerpt { font-size: var(--cp-fz-sm); color: var(--cp-muted); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-list-item__meta { font-family: var(--cp-font-mono); font-size: var(--cp-fz-xs); color: var(--cp-muted); display: flex; gap: 8px; }

/* === ARTICLE (post individual) === */
.cp-article { }
.cp-article__header { margin-bottom: clamp(24px, 4vw, 40px); }
.cp-article__title { font-size: var(--cp-fz-4xl); font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 16px; }
.cp-article__excerpt { font-size: clamp(1.1rem, 1vw + 0.75rem, 1.35rem); color: var(--cp-muted); line-height: 1.5; max-width: 70ch; }
.cp-article__hero { margin-bottom: clamp(24px, 4vw, 40px); border-radius: var(--cp-radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--cp-border); }
.cp-article__hero img { width: 100%; height: 100%; object-fit: cover; }

/* Meta bar */
.cp-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; font-family: var(--cp-font-mono); font-size: var(--cp-fz-xs); color: var(--cp-muted); }
.cp-meta__cat { background: var(--cp-primary); color: var(--cp-bg); padding: 4px 10px; border-radius: 3px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.cp-meta__date, .cp-meta__reading { padding: 2px 0; }
.cp-meta__reading::before { content: "◷ "; }

/* Article body — tipografia de leitura premium */
.cp-article__body { max-width: 720px; font-size: clamp(1rem, 0.5vw + 0.9rem, 1.125rem); line-height: 1.75; }
.cp-article__body > * + * { margin-top: 1.2em; }
.cp-article__body h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); margin-top: 1.8em; margin-bottom: 0.6em; }
.cp-article__body h3 { font-size: clamp(1.2rem, 1vw + 0.8rem, 1.5rem); margin-top: 1.5em; margin-bottom: 0.4em; }
.cp-article__body h4 { font-size: 1.15rem; margin-top: 1.4em; margin-bottom: 0.3em; }
.cp-article__body p { }
.cp-article__body a { color: var(--cp-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cp-article__body a:hover { text-decoration-thickness: 2px; background: color-mix(in srgb, var(--cp-accent) 50%, transparent); }
.cp-article__body blockquote { border-left: 3px solid var(--cp-primary); background: color-mix(in srgb, var(--cp-accent) 15%, transparent); padding: 16px 20px; margin: 1.8em 0; font-size: 1.15em; font-style: italic; border-radius: 0 var(--cp-radius-sm) var(--cp-radius-sm) 0; }
.cp-article__body blockquote p { margin: 0; }
.cp-article__body ul, .cp-article__body ol { padding-left: 1.5em; margin: 1.2em 0; list-style: initial; }
.cp-article__body ol { list-style: decimal; }
.cp-article__body li { margin: 0.4em 0; }
.cp-article__body li::marker { color: var(--cp-primary); font-weight: 700; }
.cp-article__body img { border-radius: var(--cp-radius-md); margin: 1.4em 0; }
.cp-article__body figure { margin: 1.4em 0; }
.cp-article__body figcaption { font-size: var(--cp-fz-sm); color: var(--cp-muted); text-align: center; margin-top: 8px; font-style: italic; }
.cp-article__body code { font-family: var(--cp-font-mono); background: color-mix(in srgb, var(--cp-text) 8%, transparent); padding: 2px 6px; border-radius: 3px; font-size: 0.92em; }
.cp-article__body pre { background: var(--cp-primary); color: #fff; padding: 20px; border-radius: var(--cp-radius-md); overflow-x: auto; font-size: var(--cp-fz-sm); line-height: 1.6; margin: 1.5em 0; }
.cp-article__body pre code { background: transparent; padding: 0; color: inherit; }
.cp-article__body hr { border: 0; border-top: 1px solid var(--cp-border); margin: 2em 0; }
.cp-article__body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: var(--cp-fz-sm); }
.cp-article__body table th, .cp-article__body table td { padding: 10px 12px; border-bottom: 1px solid var(--cp-border); text-align: left; }
.cp-article__body table th { background: color-mix(in srgb, var(--cp-text) 4%, transparent); font-weight: 700; }

/* Tags */
.cp-article__tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cp-tags-label { font-family: var(--cp-font-mono); font-size: var(--cp-fz-xs); font-weight: 700; color: var(--cp-muted); margin-right: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.cp-article__tags a { background: color-mix(in srgb, var(--cp-text) 6%, transparent); padding: 6px 12px; border-radius: 100px; font-size: var(--cp-fz-xs); font-weight: 600; transition: background var(--cp-transition); }
.cp-article__tags a:hover { background: var(--cp-accent); color: var(--cp-primary); }

/* === PAGE NAVIGATION (paginação forçada) === */
.cp-page-nav { margin: clamp(24px, 4vw, 40px) 0; padding: 24px; background: color-mix(in srgb, var(--cp-text) 3%, transparent); border-radius: var(--cp-radius-lg); }
.cp-page-nav__counter { font-family: var(--cp-font-mono); font-size: var(--cp-fz-sm); color: var(--cp-muted); margin-bottom: 14px; text-align: center; }
.cp-page-nav__actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cp-page-nav__end { color: var(--cp-muted); font-style: italic; }
.cp-page-nav__progress { margin-top: 16px; height: 4px; background: var(--cp-border); border-radius: 2px; overflow: hidden; }
.cp-page-nav__progress-fill { height: 100%; background: var(--cp-accent); transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1); }

/* === BUTTONS === */
.cp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--cp-radius-md); font-family: var(--cp-font-display); font-weight: 700; font-size: var(--cp-fz-md); letter-spacing: -0.01em; border: 0; cursor: pointer; transition: transform var(--cp-transition), background var(--cp-transition), box-shadow var(--cp-transition); text-decoration: none; }
.cp-btn--primary { background: var(--cp-primary); color: var(--cp-bg); }
.cp-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--cp-shadow-md); color: var(--cp-bg); }
.cp-btn--ghost { background: transparent; border: 1.5px solid var(--cp-border); color: var(--cp-text); }
.cp-btn--ghost:hover { border-color: var(--cp-primary); background: color-mix(in srgb, var(--cp-text) 5%, transparent); color: var(--cp-text); }
.cp-btn--big { padding: 16px 32px; font-size: var(--cp-fz-lg); flex: 1; max-width: 420px; justify-content: center; }
.cp-btn__page-hint { font-family: var(--cp-font-mono); font-size: var(--cp-fz-xs); font-weight: 500; opacity: 0.8; margin-left: 6px; }

/* === ARCHIVE === */
.cp-archive-header { margin-bottom: clamp(24px, 4vw, 40px); padding-bottom: 20px; border-bottom: 2px solid var(--cp-border); }
.cp-archive-header__title { font-size: var(--cp-fz-3xl); margin-bottom: 8px; letter-spacing: -0.03em; }
.cp-archive-header__title span { background: var(--cp-accent); padding: 0 8px; color: var(--cp-primary); }
.cp-archive-header__desc { color: var(--cp-muted); font-size: var(--cp-fz-md); max-width: 70ch; }
.cp-archive-nav { margin-top: 40px; display: flex; justify-content: center; }
.cp-archive-nav .page-numbers { list-style: none; display: flex; gap: 8px; padding: 0; flex-wrap: wrap; }
.cp-archive-nav .page-numbers a, .cp-archive-nav .page-numbers span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--cp-radius-sm); font-family: var(--cp-font-mono); font-weight: 600; font-size: var(--cp-fz-sm); border: 1px solid var(--cp-border); color: var(--cp-text); }
.cp-archive-nav .page-numbers a:hover { background: var(--cp-primary); color: var(--cp-bg); border-color: var(--cp-primary); }
.cp-archive-nav .page-numbers .current { background: var(--cp-primary); color: var(--cp-bg); border-color: var(--cp-primary); }

/* === SIDEBAR === */
.cp-sidebar { display: flex; flex-direction: column; gap: 24px; }
.cp-sticky-wrap { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 980px) {
	.cp-sticky-wrap { position: sticky; top: 80px; }
}
.cp-sidebar .widget { padding: 20px; border: 1px solid var(--cp-border); border-radius: var(--cp-radius-md); background: var(--cp-bg); }
.cp-sidebar .widget-title { font-size: var(--cp-fz-lg); margin-bottom: 14px; position: relative; padding-bottom: 10px; border-bottom: 2px solid var(--cp-accent); display: inline-block; }
.cp-sidebar .widget a { color: var(--cp-text); transition: color var(--cp-transition); }
.cp-sidebar .widget a:hover { color: var(--cp-primary); }
.cp-sidebar .widget ul { list-style: none; padding: 0; }
.cp-sidebar .widget li { padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--cp-border) 70%, transparent); font-size: var(--cp-fz-sm); }
.cp-sidebar .widget li:last-child { border-bottom: 0; }
.cp-sidebar .widget_search input[type=search] { width: 100%; padding: 10px 12px; border: 1px solid var(--cp-border); border-radius: var(--cp-radius-sm); font-size: var(--cp-fz-sm); }

/* === FOOTER === */
.cp-footer { background: var(--cp-primary); color: var(--cp-bg); padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 40px); margin-top: clamp(60px, 8vw, 100px); }
.cp-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(24px, 4vw, 48px); margin-bottom: 40px; }
.cp-footer .widget { color: rgba(255,255,255,0.85); }
.cp-footer .widget-title { color: #fff; font-size: var(--cp-fz-md); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--cp-accent); display: inline-block; }
.cp-footer .widget a { color: rgba(255,255,255,0.85); }
.cp-footer .widget a:hover { color: var(--cp-accent); }
.cp-footer .widget ul { list-style: none; padding: 0; }
.cp-footer .widget li { padding: 4px 0; font-size: var(--cp-fz-sm); }
.cp-footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: var(--cp-fz-xs); color: rgba(255,255,255,0.6); }
.cp-footer__menu { display: flex; gap: 20px; list-style: none; padding: 0; flex-wrap: wrap; }
.cp-footer__menu a { color: rgba(255,255,255,0.6); font-size: var(--cp-fz-xs); }
.cp-footer__menu a:hover { color: var(--cp-accent); }

/* === SHARE BUTTONS === */
.cp-share { margin: clamp(24px, 4vw, 40px) 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cp-share__label { font-family: var(--cp-font-mono); font-size: var(--cp-fz-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cp-muted); margin-right: 4px; }
.cp-share__btn { background: var(--cp-primary); color: var(--cp-bg); padding: 8px 14px; border-radius: var(--cp-radius-sm); font-size: var(--cp-fz-xs); font-weight: 600; border: 0; cursor: pointer; transition: transform var(--cp-transition), background var(--cp-transition); text-decoration: none; }
.cp-share__btn:hover { transform: translateY(-1px); color: var(--cp-bg); }
.cp-share__btn[data-share=whatsapp] { background: #25D366; }
.cp-share__btn[data-share=facebook] { background: #1877F2; }
.cp-share__btn[data-share=twitter] { background: #0A0A0A; }
.cp-share__btn[data-share=linkedin] { background: #0A66C2; }

/* === RELATED === */
.cp-related { margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(24px, 4vw, 40px); border-top: 2px solid var(--cp-border); }
.cp-related__title { font-size: var(--cp-fz-2xl); margin-bottom: 24px; }
.cp-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }

/* === EMPTY STATES === */
.cp-empty { text-align: center; padding: clamp(40px, 8vw, 80px) 20px; }
.cp-empty h2, .cp-empty__title { font-size: var(--cp-fz-2xl); margin-bottom: 12px; }
.cp-empty p, .cp-empty__text { color: var(--cp-muted); margin-bottom: 20px; }
.cp-empty--404 .cp-empty__code { font-family: var(--cp-font-display); font-size: clamp(5rem, 20vw, 12rem); font-weight: 900; line-height: 0.9; background: linear-gradient(180deg, var(--cp-primary), color-mix(in srgb, var(--cp-primary) 40%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.05em; margin-bottom: 10px; }

/* === AD SLOTS === */
.cp-ad { position: relative; margin: clamp(16px, 3vw, 32px) auto; max-width: 100%; text-align: center; background: color-mix(in srgb, var(--cp-text) 2%, transparent); border-radius: var(--cp-radius-sm); padding: 20px 12px 12px; box-sizing: border-box; overflow: hidden; }
.cp-ad__label { display: block; font-family: var(--cp-font-mono); font-size: 10px; color: var(--cp-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; opacity: 0.6; }
.cp-ad__slot { min-height: inherit; display: flex; align-items: center; justify-content: center; }

/* Anchor (fixed bottom) */
.cp-ad--anchor { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: var(--cp-bg); border-top: 1px solid var(--cp-border); margin: 0; padding: 8px; box-shadow: 0 -4px 20px rgba(0,0,0,0.08); animation: cpSlideUp 400ms cubic-bezier(0.4, 0, 0.2, 1); }
.cp-ad--anchor[hidden] { display: none; }
.cp-ad--anchor .cp-ad__label { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); font-size: 9px; }
.cp-ad__close { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: var(--cp-primary); color: var(--cp-bg); border: 0; border-radius: 50%; font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.cp-ad__close:hover { transform: scale(1.1); }

@keyframes cpSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Sticky sidebar */
.cp-ad--sticky.cp-ad--sticky_sidebar { position: sticky; top: 80px; }

/* Sticky mobile (aparece entre conteúdo em mobile) */
.cp-ad--sticky_mobile { display: none; }
@media (max-width: 768px) {
	.cp-ad--sticky_mobile { display: block; position: sticky; bottom: 80px; z-index: 80; }
}

/* Body padding inferior pra compensar anchor ad */
body:has(.cp-ad--anchor:not([hidden])) { padding-bottom: 110px; }

/* === CTA FLUTUANTE === */
.cp-cta { position: fixed; z-index: 95; animation: cpCtaIn 500ms cubic-bezier(0.4, 0, 0.2, 1); }
.cp-cta[hidden] { display: none; }
.cp-cta--bar { bottom: 110px; left: 0; right: 0; padding: 0 12px; display: flex; justify-content: center; pointer-events: none; }
.cp-cta--bar .cp-cta__btn { pointer-events: auto; max-width: 100%; width: 100%; max-inline-size: 540px; }
.cp-cta--bubble { bottom: 120px; right: 16px; }

.cp-cta__btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; background: var(--cta-bg); color: var(--cta-fg); font-family: var(--cp-font-display); font-weight: 800; font-size: var(--cp-fz-md); letter-spacing: -0.01em; border-radius: 100px; box-shadow: 0 8px 24px rgba(var(--cp-primary-rgb), 0.3); text-decoration: none; transition: transform var(--cp-transition), box-shadow var(--cp-transition); position: relative; }
.cp-cta__btn:hover { transform: translateY(-2px) scale(1.02); color: var(--cta-fg); box-shadow: 0 12px 32px rgba(var(--cp-primary-rgb), 0.4); }
.cp-cta__icon { font-size: 1.2em; }
.cp-cta__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-cta__arrow { font-weight: 900; transition: transform var(--cp-transition); }
.cp-cta__btn:hover .cp-cta__arrow { transform: translateX(4px); }
.cp-cta__close { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; background: var(--cp-primary); color: var(--cp-bg); border: 2px solid var(--cp-bg); border-radius: 50%; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

@keyframes cpCtaIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* === IMAGES UTILS === */
.cp-img { display: block; width: 100%; height: auto; }
.cp-img--placeholder { background: linear-gradient(135deg, color-mix(in srgb, var(--cp-primary) 30%, transparent), color-mix(in srgb, var(--cp-accent) 30%, transparent)); }

/* === ACCESSIBILITY === */
:focus-visible { outline: 2px solid var(--cp-primary); outline-offset: 2px; border-radius: 2px; }
.screen-reader-text { position: absolute; clip: rect(1px, 1px, 1px, 1px); padding: 0; border: 0; height: 1px; width: 1px; overflow: hidden; }

/* === PRINT === */
@media print {
	.cp-header, .cp-footer, .cp-ad, .cp-cta, .cp-share, .cp-related, .cp-page-grid__sidebar { display: none !important; }
	.cp-article__body { max-width: 100%; font-size: 12pt; }
}
