/* World Editorial — base: fontes, reset, utilidades, header, menu lateral, busca, ticker, footer, cards base. */

@font-face {
	font-family: "WE DM Sans";
	src: url("../fonts/dm-sans-var.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "WE DM Mono";
	src: url("../fonts/dm-mono-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "WE DM Mono";
	src: url("../fonts/dm-mono-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "WE Inter";
	src: url("../fonts/inter-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "WE Source Serif";
	src: url("../fonts/source-serif-4-var.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "WE Source Serif";
	src: url("../fonts/source-serif-4-var-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "WE Plex Mono";
	src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "WE Plex Mono";
	src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: var(--we-sticky-h, 0px);
}

body {
	margin: 0;
	background: var(--background);
	color: var(--text);
	font-family: var(--font-head);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-family: var(--font-head);
	font-weight: var(--we-weight);
	color: var(--heading);
	line-height: 1.15;
}

p {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--accent);
	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);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	clip: auto;
	background: var(--primary);
	color: #fff;
}

/* Contêineres */
.we-wrap {
	width: min(100% - 32px, var(--container-width));
	margin-inline: auto;
}

.we-wrap--content {
	width: min(100% - 32px, var(--content-width));
}

.we-wrap--grid {
	width: min(100% - 32px, 1000px);
}

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

.we-main:focus {
	outline: 0;
}

/* Tipos de texto comuns */
.we-kicker,
.we-date,
.we-credit,
.we-latest__meta {
	font-family: var(--font-mono);
	text-transform: uppercase;
	letter-spacing: var(--we-ls);
}

.we-kicker {
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 1.3;
	color: var(--accent);
	font-weight: 400;
}

.we-kicker--lg {
	font-size: 18px;
	letter-spacing: 0.14em;
}

.we-date {
	font-size: 12px;
	line-height: 1.4;
	color: var(--text);
}

.we-credit {
	margin: 4px 0 10px;
	font-size: 10.5px;
	line-height: 1.4;
	text-align: right;
	color: var(--muted);
	text-transform: none;
	letter-spacing: 0.02em;
}

.we-credit--left {
	text-align: left;
}

.we-by {
	margin-top: 8px;
	font-size: 12.5px;
	line-height: 1.3;
	color: var(--text);
}

.we-by__name {
	text-transform: uppercase;
}

/* Mídia */
.we-media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--card-radius);
	background: var(--surface-soft);
}

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

.we-media--ph {
	background: #eef0f2 url("../images/sem-foto.svg") center / clamp(28px, 22%, 84px) auto no-repeat;
}

.we-chips {
	position: absolute;
	left: 0;
	bottom: -10px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	max-width: 100%;
}

.we-chip {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--primary);
	color: #fff;
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.35;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Botões */
.we-btn {
	display: inline-block;
	padding: 10px 22px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.we-btn--primary {
	background: var(--primary);
	color: #fff;
}

.we-btn--primary:hover {
	background: var(--primary-hover);
}

.we-btn--pink {
	background: var(--pink);
	color: #111;
}

.we-btn--pink:hover {
	background: var(--pink-hover);
}

.we-btn--ghost {
	border-color: var(--border);
	background: transparent;
	color: var(--accent);
}

.we-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--heading);
	cursor: pointer;
}

.we-iconbtn:hover {
	color: var(--accent);
}

.we-circbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.we-circbtn:disabled {
	opacity: 0.45;
	cursor: default;
}

.we-signin {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 4px;
	background: var(--primary);
	color: #fff;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

.we-signin:hover {
	background: var(--primary-hover);
}

.we-icon {
	display: block;
}

/* Logos */
.we-logo {
	display: inline-block;
	max-width: 100%;
	color: var(--accent);
	font-weight: 800;
	text-decoration: none;
	line-height: 1;
}

.we-logo__set {
	display: inline-flex;
}

.we-logo__set--m {
	display: none;
}

.we-logo__text {
	font-size: 28px;
	letter-spacing: -0.02em;
}

.we-logo--big .we-logo__text {
	font-size: 60px;
	letter-spacing: -0.03em;
}

.we-logo--footer {
	color: var(--footer-text);
}

:root:not([data-theme="dark"]) .we-logo__img--dark,
[data-theme="dark"] .has-dark .we-logo__img--light {
	display: none;
}

.we-logo__img {
	display: block;
}

/* Header ------------------------------------------------------------- */
.we-header {
	background: var(--header-bg);
	position: relative;
	z-index: 40;
}

.we-sticky-all .we-header,
.we-sticky-compact.we-header-compact .we-header {
	position: sticky;
	top: var(--we-adminbar, 0px);
}

.we-sticky-top.we-header-big .we-header {
	position: sticky;
	top: calc(var(--we-adminbar, 0px) - var(--we-hide-h, 0px));
}

.admin-bar {
	--we-adminbar: 32px;
}

@media (max-width: 782px) {
	.admin-bar {
		--we-adminbar: 46px;
	}
}

.we-header__grid {
	display: grid;
	align-items: center;
	column-gap: 16px;
	padding-block: var(--header-pad);
}

.we-hamb--m {
	display: none;
}

.we-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}

.we-modebtn__sun {
	display: none;
}

.we-modebtn__moon {
	display: inline-flex;
}

/* Header grande */
.we-header--big .we-header__grid {
	border-top: 6px solid var(--header-line);
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	grid-template-areas:
		"util logo actions"
		"left logo right";
	row-gap: 0;
	padding-block: 0 4px;
}

.we-utility {
	grid-area: util;
	align-self: center;
	padding-block: 19px;
}

.we-actions {
	grid-area: actions;
	align-self: center;
}

.we-header--big .we-header__logo {
	grid-area: logo;
	align-self: end;
	justify-self: center;
	padding-inline: 8px;
	text-align: center;
	line-height: 0;
}

.we-primary {
	align-self: end;
	margin-bottom: 4px;
	border-block: 1px solid var(--border);
}

.we-primary--left {
	grid-area: left;
}

.we-primary--right {
	grid-area: right;
}

.we-primary.is-empty {
	visibility: hidden;
}

.we-menu--utility {
	display: flex;
	gap: 20px;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 24px;
}

.we-menu--utility a {
	color: var(--heading);
	text-decoration: none;
}

.we-menu--utility a:hover {
	color: var(--accent);
}

.we-menu--dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	min-height: 34px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.we-primary--left .we-menu--dots {
	justify-content: flex-end;
	padding-right: 50px;
}

.we-primary--right .we-menu--dots {
	justify-content: flex-start;
	padding-left: 50px;
}

.we-menu--dots li {
	display: inline-flex;
	align-items: center;
}

.we-menu--dots li + li::before {
	content: "";
	width: 4px;
	height: 4px;
	margin: 0 clamp(14px, 2vw, 28px);
	border-radius: 50%;
	background: var(--accent);
}

.we-menu--dots a {
	color: var(--heading);
	text-decoration: none;
}

.we-menu--dots a:hover,
.we-menu--dots .current-menu-item > a {
	color: var(--accent);
}

/* Header compacto */
.we-header--compact .we-header__grid {
	min-height: 62px;
	padding-block: 8px;
	border-bottom: 2px solid var(--header-line);
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	grid-template-areas: "logo crumb actions";
}

.we-header--compact .we-header__logo {
	grid-area: logo;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
}

.we-header__crumb {
	grid-area: crumb;
	text-align: center;
	font-size: 14px;
}

.we-crumb a {
	color: var(--heading);
	text-decoration: none;
}

.we-crumb a:first-child {
	font-weight: 600;
}

.we-crumb__sep {
	color: var(--muted);
}

.we-tagline {
	font-size: 11px;
	line-height: 1.2;
	color: var(--heading);
}

/* Busca expansível */
.we-searchpanel {
	border-bottom: 1px solid var(--border);
	background: var(--header-bg);
	padding: 14px 0;
}

.we-searchpanel[hidden] {
	display: none;
}

.we-searchform {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 720px;
	margin-inline: auto;
	border-bottom: 2px solid var(--heading);
}

.we-searchform__field {
	flex: 1;
	min-width: 0;
	padding: 10px 4px;
	border: 0;
	background: transparent;
	color: var(--text);
	font: 500 20px/1.3 var(--font-head);
}

.we-searchform__field:focus {
	outline: 0;
}

.we-searchform__submit {
	display: inline-flex;
	padding: 8px;
	border: 0;
	background: transparent;
	color: var(--heading);
	cursor: pointer;
}

/* Menu lateral */
.we-drawer {
	position: fixed;
	inset: 0;
	z-index: 100;
}

.we-drawer[hidden] {
	display: none;
}

.we-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.we-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: min(420px, 90vw);
	background: var(--background);
	color: var(--text);
	transform: translateX(-100%);
	transition: transform 0.25s ease;
	overflow-y: auto;
}

.we-drawer.is-open .we-drawer__overlay {
	opacity: 1;
}

.we-drawer.is-open .we-drawer__panel {
	transform: translateX(0);
}

.we-drawer__panel:focus {
	outline: 0;
}

.we-drawer__bar {
	display: flex;
	justify-content: flex-end;
	padding: 12px 16px;
}

.we-drawer__body {
	padding: 0 28px 40px;
}

.we-drawer__signin {
	margin-bottom: 24px;
}

.we-drawer__group {
	margin-bottom: 28px;
}

.we-drawer__title {
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border);
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
}

.we-menu--drawer a,
.we-drawer__group li a {
	display: block;
	padding: 8px 0;
	color: var(--heading);
	font-size: 19px;
	font-weight: 600;
	text-decoration: none;
}

.we-menu--drawer a:hover,
.we-drawer__group li a:hover {
	color: var(--accent);
}

.we-drawer__group--header {
	display: none;
}

html.we-lock {
	overflow: hidden;
}

/* Ticker */
.we-ticker {
	background: var(--ticker-bg);
	color: var(--ticker-color);
	overflow: hidden;
}

.we-ticker__inner {
	display: flex;
	align-items: center;
	gap: 16px;
}

.we-ticker__label {
	flex: none;
	padding: 8px 0;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 500;
}

.we-ticker__viewport {
	display: flex;
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.we-ticker__track {
	display: flex;
	flex: none;
	min-width: 100%;
	animation: we-ticker var(--ticker-speed) linear infinite;
}

.we-ticker__item {
	flex: none;
	padding: 8px 28px 8px 0;
	font-size: 14px;
	white-space: nowrap;
}

.we-ticker__item a {
	color: inherit;
	text-decoration: none;
}

.we-ticker__item a:hover {
	text-decoration: underline;
}

.we-ticker--pause:hover .we-ticker__track,
.we-ticker:focus-within .we-ticker__track {
	animation-play-state: paused;
}

@keyframes we-ticker {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-100%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.we-ticker__track {
		animation: none;
	}

	.we-drawer__panel,
	.we-drawer__overlay {
		transition: none;
	}
}

/* Cards base */
.we-card {
	min-width: 0;
}

.we-card__media {
	display: block;
	text-decoration: none;
}

.we-card__title {
	margin-top: 12px;
	font-size: var(--we-card);
	line-height: 1.25;
}

.we-card__title a {
	color: var(--heading);
	text-decoration: none;
}

.we-card__title a:hover {
	color: var(--accent);
}

.we-card__dek {
	margin-top: 8px;
	font-family: var(--font-summary);
	font-size: 17px;
	line-height: 1.45;
}

.we-card--noimg .we-card__title {
	margin-top: 0;
}

/* Footer */
.we-footer {
	margin-top: var(--space-8);
	background: var(--footer-bg);
	color: var(--footer-text);
}

.we-footer a {
	color: inherit;
}

.we-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 32px;
	padding-block: 48px 8px;
}

.we-widget__title {
	margin-bottom: 12px;
	color: inherit;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.we-footer__main {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding-block: 34px 26px;
	text-align: center;
}

.we-social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 22px;
	margin-top: 32px;
}

.we-social__link {
	display: inline-flex;
	color: inherit;
}

.we-footer__nav .we-menu--footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.we-menu--footer li + li::before {
	content: "|";
	margin: 0 12px;
}

.we-menu--footer a {
	text-decoration: none;
}

.we-menu--footer a:hover {
	text-decoration: underline;
}

.we-footer__copy {
	margin-top: -4px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Publicidade (nenhum espaço reservado quando vazio) */
.we-ad {
	margin: 24px auto;
	text-align: center;
}

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

/* Formulários e Contact Form 7 */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--background);
	color: var(--text);
	font: inherit;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--accent);
	outline: 2px solid transparent;
}

label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

input[type="checkbox"],
input[type="radio"] {
	width: auto;
	margin-right: 8px;
}

.wpcf7 form p {
	margin-bottom: 16px;
}

.wpcf7-submit,
input[type="submit"],
button[type="submit"].wp-block-button__link {
	display: inline-block;
	width: auto;
	padding: 11px 24px;
	border: 0;
	border-radius: 4px;
	background: var(--primary);
	color: #fff;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.wpcf7-submit:hover,
input[type="submit"]:hover {
	background: var(--primary-hover);
}

.wpcf7-not-valid-tip {
	margin-top: 4px;
	color: #c0262d;
	font-size: 13px;
}

.wpcf7-response-output {
	margin: 16px 0 0;
	padding: 10px 14px;
	border: 1px solid var(--accent);
	border-radius: 4px;
	font-size: 14px;
}

[data-theme="dark"] .wpcf7-not-valid-tip {
	color: #ff8a8f;
}

/* Paginação */
.we-pager {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	margin-top: 40px;
	padding-bottom: 8px;
	font-family: var(--font-mono);
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.we-pager__links {
	display: flex;
	gap: 28px;
}

.we-pager a,
.we-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--accent);
	text-decoration: none;
}

.we-pager .page-numbers {
	padding: 6px 10px;
}

.we-pager .page-numbers.current {
	background: var(--accent);
	color: var(--background);
}

.we-empty {
	padding: 48px 0;
	font-family: var(--font-summary);
	font-size: 19px;
	text-align: center;
}
