/* Portal Editorial OP — base: elementos, contêiner, mídia, chapéu, selos, botões, publicidade. */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 140px;
}

body {
	margin: 0;
	background: var(--peop-bg);
	color: var(--peop-text);
	font-family: var(--peop-font-sans);
	font-size: 16px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: var(--peop-link);
}

a:hover {
	color: var(--peop-link-hover);
}

button,
input,
select,
textarea {
	font: inherit;
}

:focus-visible {
	outline: 2px solid var(--peop-focus);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

.peop-skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 2000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 16px;
	clip: auto;
	clip-path: none;
	background: var(--peop-bg);
	color: var(--peop-title);
	font-weight: 700;
	border: 2px solid var(--peop-focus);
	border-radius: 6px;
}

[hidden] {
	display: none !important;
}

.peop-container {
	width: 100%;
	max-width: calc(var(--peop-container) + 2 * var(--peop-gutter));
	margin-inline: auto;
	padding-inline: var(--peop-gutter);
}

.peop-container--narrow {
	max-width: calc(var(--peop-container-narrow) + 2 * var(--peop-gutter));
}

.peop-main {
	display: block;
	min-height: 40vh;
}

.peop-main:focus {
	outline: none;
}

/* Mídia: proporção reservada (a imagem nunca decide a altura do card) */
.peop-media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--peop-radius-sm);
	background: var(--peop-surface);
}

.peop-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Notícia sem foto: câmera cinza na mesma proporção */
.peop-media__ph {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--peop-surface) url("../images/placeholder-camera.svg") center / clamp(28px, 22%, 84px) auto no-repeat;
}

/* Chapéu */
.peop-kicker {
	display: block;
	margin: 0 0 6px;
	color: var(--peop-text);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.01em;
	text-decoration: none;
	text-transform: uppercase;
}

a.peop-kicker:hover {
	color: var(--peop-link-hover);
	text-decoration: underline;
}

/* Selo "Exclusivo" */
.peop-badge {
	position: absolute;
	top: 0;
	left: 20px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	border-radius: 0 0 4px 4px;
	background: #1c1c1c;
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.peop-badge .peop-icon {
	color: var(--peop-accent);
}

.peop-badge--lg {
	left: 20px;
	padding: 6px 10px;
	font-size: 16px;
}

/* Botões */
.peop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 36px;
	padding: 6px 14px;
	border: 1.5px solid transparent;
	border-radius: 6px;
	background: transparent;
	font-family: var(--peop-font-sans);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.peop-btn--accent {
	background: var(--peop-accent);
	color: var(--peop-accent-text);
}

.peop-btn--accent:hover {
	color: var(--peop-accent-text);
	filter: brightness(0.95);
}

.peop-btn--solid {
	background: var(--peop-button-bg);
	color: var(--peop-button-text);
}

.peop-btn--solid:hover {
	color: var(--peop-button-text);
	filter: brightness(1.12);
}

.peop-btn--outline {
	border-color: var(--peop-primary-dark);
	color: var(--peop-primary-dark);
}

.peop-btn--outline:hover {
	background: var(--peop-primary-dark);
	color: var(--peop-bg);
}

.peop-btn--sm {
	min-height: 32px;
	padding: 4px 12px;
	font-size: 16px;
}

.peop-btn--block {
	display: flex;
	width: 100%;
}

.peop-btn[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.peop-iconbtn {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--peop-header-text);
	cursor: pointer;
}

.peop-iconbtn:hover {
	background: var(--peop-surface);
}

.peop-icon {
	display: inline-block;
	flex: none;
	vertical-align: middle;
}

/* Título de seção */
.peop-section-title {
	margin: 0 0 16px;
	color: var(--peop-primary-dark);
	font-family: var(--peop-font-sans);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.15;
}

.peop-section-title a {
	color: inherit;
	text-decoration: none;
}

.peop-section-title a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Links relacionados abaixo das manchetes (marcador em "L") */
.peop-bullets {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.peop-bullets li {
	position: relative;
	margin: 8px 0 0;
	padding-left: 12px;
	font-size: 16px;
	line-height: 20px;
}

.peop-bullets li::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 0;
	width: 6px;
	height: 7px;
	border-bottom: 2px solid var(--peop-text);
	border-left: 2px solid var(--peop-text);
}

.peop-bullets a {
	color: var(--peop-text);
	text-decoration: none;
}

.peop-bullets a:hover {
	color: var(--peop-link-hover);
	text-decoration: underline;
}

/* Cards compartilhados (home, editoria, busca, relacionadas) */
.peop-hcard { display: grid; grid-template-columns: minmax(0, 1fr) 196px; gap: 22px; align-items: start; }
.peop-hcard__body { min-width: 0; }
.peop-hcard__media { aspect-ratio: 4 / 3; }
.peop-hcard__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 24px; overflow-wrap: break-word; }
.peop-hcard__title a { color: var(--peop-title); text-decoration: none; }
.peop-hcard__title a:hover { color: var(--peop-link-hover); }

/* Card vertical */
.peop-vcard { min-width: 0; }
.peop-vcard__media { margin-bottom: 16px; aspect-ratio: 4 / 3; }
.peop-vcard__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 24px; overflow-wrap: break-word; }
.peop-vcard__title a { color: var(--peop-title); text-decoration: none; }
.peop-vcard__title a:hover { color: var(--peop-link-hover); }
.peop-vcard--partner .peop-vcard__media,
.peop-vcard--studio .peop-vcard__media { aspect-ratio: 306 / 229; }
.peop-vcard--studio .peop-vcard__title a { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }


/* Card só de texto */
.peop-mini__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 24px; overflow-wrap: break-word; }
.peop-mini__title a { color: var(--peop-title); text-decoration: none; }
.peop-mini__title a:hover { color: var(--peop-link-hover); }


/* Grade de 3 cards (relacionadas, 404, promovido) */
.peop-cards-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

/* Estado vazio honesto e aviso de prévia */
.peop-empty {
	margin: 48px auto;
	padding: 32px 24px;
	border: 1px dashed var(--peop-border);
	border-radius: var(--peop-radius);
	text-align: center;
}

.peop-empty__title {
	margin: 0 0 16px;
	color: var(--peop-title);
	font-size: 20px;
	font-weight: 700;
}

.peop-preview-notice {
	max-width: calc(var(--peop-container) + 2 * var(--peop-gutter));
	margin: 16px auto;
	padding: 8px 12px;
	border: 1px dashed var(--peop-warning);
	border-radius: 4px;
	color: var(--peop-warning);
	font-size: 14px;
}

/* Publicidade: área própria, rótulo, altura reservada; nunca por cima do conteúdo */
.peop-ad {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 100%;
	max-width: 100%;
	min-height: var(--peop-ad-h, auto);
	margin: 40px auto;
	padding: 8px 0 12px;
	overflow: hidden;
	background: var(--peop-ad-bg);
	clear: both;
}

.peop-ad__label {
	color: var(--peop-muted);
	font-size: 11px;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.peop-ad__inner {
	display: flex;
	justify-content: center;
	max-width: 100%;
	overflow: hidden;
}

.peop-ad__inner img,
.peop-ad__inner iframe {
	display: block;
	max-width: 100%;
	height: auto;
}

.peop-ad--marker {
	justify-content: center;
	min-height: 90px;
	border: 1px dashed var(--peop-border);
}

.peop-ad__marker {
	color: var(--peop-muted);
	font-size: 14px;
}

.peop-home-ad .peop-ad {
	max-width: 978px;
}

.peop-ad-wrap .peop-ad {
	margin: 24px auto;
}

/* Logo */
.peop-logo {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	color: var(--peop-primary-dark);
	text-decoration: none;
}

.peop-logo__img {
	display: block;
	max-width: 100%;
	height: auto;
}

.peop-logo__img--dark {
	display: none;
}

:root[data-theme="dark"] .peop-logo.has-dark .peop-logo__img--light {
	display: none;
}

:root[data-theme="dark"] .peop-logo.has-dark .peop-logo__img--dark {
	display: block;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) .peop-logo.has-dark .peop-logo__img--light {
		display: none;
	}

	:root:not([data-theme]) .peop-logo.has-dark .peop-logo__img--dark {
		display: block;
	}
}

.peop-logo__text {
	overflow: hidden;
	color: var(--peop-primary-dark);
	font-family: var(--peop-font-sans);
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Redes sociais */
.peop-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.peop-socials__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--peop-primary-dark);
	border-radius: 50%;
	color: var(--peop-primary-dark);
}

.peop-socials__link:hover {
	background: var(--peop-primary-dark);
	color: var(--peop-bg);
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
