/**
 * Layout editorial de categoria (hub).
 * Escopo: body.category-editorial-hub (classe adicionada só nesta página).
 * CSS carrega após boombox-primary-style para não ser sobrescrito.
 */

/* ========== HERO EDITORIAL ========== */
.category-editorial-hero {
	background: transparent;
	padding: 2rem 0;
	margin-bottom: 0;
}

.category-editorial-hero .editorial-hero-inner {
	text-align: center;
}

.editorial-hero-title {
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 700;
	margin: 0 0 1rem;
	line-height: 1.2;
	color: #1a1a1a;
	text-align: center !important;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.editorial-hero-title-icon {
	width: 1.5em;
	height: 1.5em;
	object-fit: contain;
	vertical-align: middle;
}

/* Ícones nos botões de filtro da sidebar */
.editorial-left-col .filter-item a .filter-item-icon {
	width: 1.25em;
	height: 1.25em;
	object-fit: contain;
	vertical-align: middle;
	margin-right: 0.35em;
}

/* Ícones da taxonomy plataforma: preenchimento = cor de destaque do termo (PNG/SVG com alpha) */
.psverso-plat-icon-accent {
	display: inline-block;
	flex-shrink: 0;
	box-sizing: border-box;
	background-color: var(--psverso-plat-accent, #0091ff);
	-webkit-mask-image: var(--psverso-plat-icon);
	mask-image: var(--psverso-plat-icon);
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.editorial-hero-title .psverso-plat-icon-accent.editorial-hero-title-icon {
	width: 1.5em;
	height: 1.5em;
}

.editorial-left-col .filter-item a .psverso-plat-icon-accent.filter-item-icon {
	width: 1.25em;
	height: 1.25em;
	margin-right: 0.35em;
}

/* Pill ativa: fundo colorido + texto branco — ícone precisa contrastar */
.filter-item.filter-active a .psverso-plat-icon-accent {
	background-color: #fff !important;
}

.editorial-context-block {
	margin-top: 1rem;
	text-align: left !important;
}

#editor-expertise-heading.editorial-widget-title {
	text-align: center !important;
}

.editorial-context-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #555;
	margin: 0 0 0.25rem;
	display: block;
}

.editorial-context-desc,
.editorial-context-by {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #333;
	margin: 0 0 0.5rem;
}

/* ========== CHIPS (na sidebar esquerda) ========== */
.editorial-filters-chips {
	padding: 0.75rem 0;
	border-bottom: 1px solid #e0e0e0;
	background: #fff;
}

/* Chips dentro da sidebar: layout vertical, label em cima */
.editorial-filters-chips-in-sidebar {
	padding: 0 0 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid #e8eaed;
	background: transparent;
}

.editorial-filters-chips-in-sidebar .editorial-chips-label {
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #555;
	margin: 0 0 0.5rem;
}

.editorial-chips-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.editorial-filters-chips-in-sidebar .editorial-chips-list {
	flex-direction: column;
	gap: 0.35rem;
}

.editorial-chip {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	font-size: 0.875rem;
	font-weight: 500;
	border: 1px solid #ccc;
	background: #fff;
	color: #555;
	border-radius: 2rem;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.editorial-chip:hover {
	border-color: #0066cc;
	color: #0066cc;
}

.editorial-chip-active,
.editorial-chip[aria-pressed="true"] {
	background: #0091FF;
	border-color: #0091FF;
	color: #fff;
}

/* ========== OUTER ROW: sidebar esquerda persistente + coluna central ========== */
.editorial-outer-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0;
}

.editorial-left-col {
	flex: 0 0 220px;
	width: 220px;
	max-width: 220px;
	min-width: 0;
	padding-right: 1.5rem;
	overflow: visible;
}

/* Sem transição na sidebar editorial: troca light/night no mesmo instante do resto da página */
.editorial-left-col,
.editorial-left-col.is-fixed,
.editorial-left-col .filter-section-title,
.editorial-left-col .filter-section-plataformas,
.editorial-left-col .filter-section-subcategories,
.editorial-left-col .filter-item a {
	transition: none;
}

/* Quando JS ativa o modo fixo — fundo branco só em modo claro (night mode usa regras abaixo) */
.editorial-left-col.is-fixed {
	position: fixed;
	z-index: 100;
	overflow-y: auto;
}

body:not(.boombox-theme-night):not(.boombox-theme-dark) .editorial-left-col.is-fixed {
	background: #fff;
}

.editorial-center-col {
	flex: 1 1 0;
	min-width: 0;
}

/* ========== FEATURED ROW (post mais recente + lista Mais vistos) ========== */
.editorial-featured-row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 1.5rem;
	margin: 0 0 2rem 0;
	padding: 0;
}

.editorial-featured-row .editorial-featured-block-wrap {
	flex: 0 0 62%;
	width: 62%;
	min-width: 0;
	padding: 0;
	margin: 0;
}

.editorial-featured-row .editorial-featured-list-wrap {
	flex: 0 0 320px;
	width: 320px;
	min-width: 0;
	padding: 0;
	margin: 0;
}

.editorial-featured-card {
	border-radius: 12px;
	overflow: hidden;
	background: #f5f5f5;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.editorial-featured-card-link {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.editorial-featured-card-media {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

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

/*
 * WP Review envolve a miniatura em .wp-review-thumbnail-wrapper (filtro post_thumbnail_html).
 * Sem altura explícita no wrapper, height:100% no img não resolve e a área 220px/180px fica com faixa vazia.
 */
.editorial-featured-card-media .wp-review-thumbnail-wrapper {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	overflow: hidden;
}

.editorial-featured-card-media .wp-review-thumbnail-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Título sobreposto na parte inferior do card com gradiente suave e amplo */
.editorial-featured-card-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 4rem 1.25rem 1.5rem;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.85) 0%,
		rgba(0, 0, 0, 0.55) 40%,
		rgba(0, 0, 0, 0.15) 70%,
		transparent 100%
	);
}

.editorial-featured-card-title {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.editorial-featured-card-link:hover .editorial-featured-card-title {
	color: #fff;
	text-decoration: underline;
}

/* Título "Notícias Populares" acima do featured card — h2, segue tamanho padrão do tema (1.875rem) */
.editorial-featured-section-title {
	font-weight: 700;
	color: #0091FF;
	margin: 0 0 0.75rem;
	line-height: 1.2;
}

.editorial-featured-list.editorial-widget {
	margin: 0;
	padding: 0;
	background: transparent;
}

/* Heading "Mais vistos da semana" — h3, linha separadora abaixo */
.editorial-featured-list-heading {
	font-weight: 700;
	color: #0091FF;
	margin: 0 0 0.75rem;
	padding-bottom: 0.75rem;
	line-height: 1.2;
	border-bottom: 2px solid #000;
}

.editorial-featured-list-items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.editorial-featured-list-item a {
	display: grid;
	grid-template-columns: 2rem 1fr;
	grid-template-rows: auto auto;
	gap: 0 0.6rem;
	align-items: center;
	text-decoration: none;
	color: inherit;
	padding: 1rem 0;
	transition: color 0.2s;
}

.editorial-featured-list-item a:hover {
	color: inherit;
}

.editorial-featured-list-item a:hover .editorial-featured-list-title {
	color: #000;
	text-decoration: underline;
}

/* Badge circular com número */
.editorial-featured-list-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: #0091FF;
	color: #fff;
	font-size: 0.625rem;
	font-weight: 700;
	grid-row: 1 / -1;
	align-self: center;
	flex-shrink: 0;
}

/* Data curta: bold e #0091FF */
.editorial-featured-list-meta {
	font-size: 0.75rem;
	font-weight: 700;
	color: #0091FF;
}

.editorial-featured-list-title {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.editorial-featured-list-empty {
	font-size: 0.9375rem;
	padding: 0.5rem 0;
	opacity: 0.8;
}

/* ========== LAYOUT 3 COLUNAS ========== */
/* Container em largura total (o tema usa max-width 1200px e centraliza, sobrando ~353px cada lado).
   Aqui forçamos uso da área toda com pouco padding nas bordas. */
body.category-editorial-hub #main .main-container.category-editorial-layout,
#main .main-container.category-editorial-layout {
	max-width: none !important;
	width: 100% !important;
	margin-top: 0 !important;
	padding-left: 3rem !important;
	padding-right: 3rem !important;
	box-sizing: border-box;
}

.category-editorial-layout .category-editorial-row {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
}

/* Sidebar esquerda: colada à borda esquerda, pouco padding */
/* Sidebar esquerda não existe mais no category-row */
.category-editorial-layout .category-filter-sidebar {
	display: none;
}

/* Row de posts: flex sem herança do bb-row */
.category-editorial-layout .category-editorial-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0;
	margin: 0;
	padding: 0;
}

/* Posts: sem padding, alinhado com o featured card acima */
.category-editorial-layout .category-editorial-main {
	flex: 1 1 0;
	min-width: 0;
	padding: 0;
	margin: 0;
}

.category-editorial-layout .editorial-sidebar {
	flex: 0 0 280px;
	min-width: 0;
	padding-left: 1.5rem;
	padding-right: 0;
}

/* ========== SIDEBAR FILTROS (ESQUERDA) ========== */
.filter-section-title {
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin: 0 0 0.75rem;
	text-align: center;
}

.filter-section-plataformas {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #eee;
}

/* Pills (Categorias / Plataformas): nome centralizado na largura total do <a>; ícone na 1.ª coluna. Títulos h2 seguem .filter-section-title (centrados). */
.filter-section-plataformas .filter-item a,
.filter-section-subcategories .filter-item a {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	column-gap: 0.35em;
}

.filter-section-plataformas .filter-item a .filter-plat-leading,
.filter-section-subcategories .filter-item a .filter-plat-leading {
	justify-self: start;
	display: flex;
	align-items: center;
	min-width: 0;
}

.filter-section-plataformas .filter-item a .filter-plat-name,
.filter-section-subcategories .filter-item a .filter-plat-name {
	justify-self: center;
	text-align: center;
	min-width: 0;
}

.filter-section-plataformas .filter-item a .filter-plat-trailing,
.filter-section-subcategories .filter-item a .filter-plat-trailing {
	min-width: 0;
	pointer-events: none;
}

.filter-section-plataformas .filter-item a .filter-item-icon,
.filter-section-plataformas .filter-item a .psverso-plat-icon-accent.filter-item-icon,
.filter-section-subcategories .filter-item a .filter-item-icon,
.filter-section-subcategories .filter-item a .psverso-plat-icon-accent.filter-item-icon {
	margin-right: 0;
}

.filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.filter-item {
	margin: 0;
}

.filter-item a {
	display: block;
	text-align: center;
	padding: 0.4rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #000;
	text-decoration: none;
	border: 1px solid #000;
	border-radius: 2rem;
	background: transparent;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-item a:hover {
	background: transparent;
	border-color: #0091FF;
	color: #0091FF;
}

.filter-item.filter-active a {
	font-weight: 600;
	color: #fff;
	background: #0091FF;
	border-color: #0091FF;
}

/* ========== LISTA DE POSTS (formato Boombox Builder: card horizontal 220px) ========== */
.editorial-posts-section-title {
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #000;
	font-weight: 700;
}

/* Template Guias 2: bloco extra de posts (separação do bloco principal) */
.editorial-posts-section-title-extra {
	margin-top: 2.5rem;
}
.editorial-posts-grid-extra {
	margin-top: 0;
	line-height: 1.2;
}

/* ===== TABS DE FILTRO (mesmo estilo bb-recent-filters do Builder) ===== */
.editorial-post-tabs {
	display: flex;
	align-items: center;
	margin-bottom: 1.25rem;
	width: 100%;
}

.editorial-tabs-list {
	display: flex;
	gap: 8px;
	width: 100%;
	justify-content: flex-start;
	flex-wrap: wrap;
}

.bb-filter-btn {
	padding: 6px 16px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 0.875rem;
	background: #000 !important;
	color: #fff !important;
	text-decoration: none !important;
	transition: all 0.3s ease;
	cursor: pointer;
	display: inline-block;
	white-space: nowrap;
}

.bb-filter-btn:hover,
.bb-filter-btn:focus {
	background: #0091FF !important;
	color: #fff !important;
}

.bb-filter-btn.active {
	background: #0091FF !important;
	color: #fff !important;
	box-shadow: 0 2px 8px rgba(0,145,255,0.25);
}

/* Abas horizontais de categoria (página plataforma): texto centrado na largura do botão; sem ícones */
[data-editorial-plat-cat-tabs] .bb-filter-btn {
	display: inline-grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	column-gap: 0.35em;
	min-width: 0;
	white-space: normal;
}

[data-editorial-plat-cat-tabs] .bb-filter-btn .filter-plat-leading {
	justify-self: start;
	display: flex;
	align-items: center;
	min-width: 0;
}

[data-editorial-plat-cat-tabs] .bb-filter-btn .filter-plat-name {
	justify-self: center;
	text-align: center;
	min-width: 0;
	white-space: nowrap;
}

[data-editorial-plat-cat-tabs] .bb-filter-btn .filter-plat-trailing {
	min-width: 0;
	pointer-events: none;
}

/* Abas deslizantes já ativadas no responsivo 991px acima; aqui só ajustes de tamanho */
@media (max-width: 819px) {
	.bb-filter-btn {
		padding: 6px 10px !important;
		font-size: 0.8rem !important;
		flex-shrink: 0 !important;
	}
}

@media (max-width: 480px) {
	.bb-filter-btn {
		padding: 5px 8px !important;
		font-size: 0.75rem !important;
		flex-shrink: 0 !important;
	}
}

.editorial-posts-grid .editorial-post-items {
	display: flex;
	flex-direction: column;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Espaço igual acima e abaixo da linha para ficar centralizada entre os posts */
.bb-post-collection .post-items .editorial-post-card-wrap,
.editorial-post-card-wrap {
	margin: 0 !important;
	list-style: none;
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
	padding-left: 0 !important;
	padding-right: 0 !important;
	border-bottom: 1px solid #e5e7eb;
}

.editorial-post-card-wrap:first-child {
	padding-top: 0;
}

.editorial-post-card-wrap:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

/* Card no formato Boombox: linha horizontal, 220px altura, sem sombra/moldura */
.editorial-post-card.editorial-post-card {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 10px;
	height: 220px;
	max-height: 220px;
	background: #fff;
	box-shadow: none;
	border: none;
	border-radius: 14px;
	overflow: hidden;
}

.editorial-post-card:hover {
	box-shadow: none;
}

/* Thumbnail à esquerda: largura fixa (mais largo), altura 100% */
.editorial-post-card-media {
	flex: 0 0 360px;
	width: 360px;
	height: 220px;
	min-height: 0;
	background: #e8eaed;
	position: relative;
}

.editorial-card-thumb-link {
	display: block;
	width: 100%;
	height: 100%;
}

.editorial-card-thumb-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.editorial-card-thumb-link .wp-review-thumbnail-wrapper {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	overflow: hidden;
}

.editorial-card-thumb-link .wp-review-thumbnail-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.editorial-card-no-thumb {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.editorial-post-card-content {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 1rem 1.25rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.editorial-card-subcategory-label {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 0.5rem;
	padding: 0.25rem 0.6rem;
	background: transparent;
	border: 1px solid #000;
	border-radius: 0.25rem;
	color: #000;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.editorial-card-subcategory-label:hover {
	background: #0091FF;
	border-color: #0091FF;
	color: #fff;
}

.editorial-card-title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 0.5rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.editorial-post-card.title-hover-underline .editorial-card-title a {
	text-decoration: none;
}

.editorial-post-card.title-hover-underline .editorial-card-title a:hover {
	text-decoration: underline;
}

.editorial-card-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.editorial-card-title a:hover {
	color: #0066cc;
}

/* Autor no mesmo estilo do Boombox Builder (post-meta) */
.editorial-post-card-content .post-meta.editorial-card-post-meta {
	font-size: 0.98rem;
	margin: 0 0 0.35rem;
}

.editorial-card-author-bottom {
	margin-top: auto;
	padding-top: 0.5rem;
	font-size: 0.875rem;
}

.editorial-card-author-bottom .author-link {
	color: #000;
	text-decoration: none;
}

.editorial-card-author-bottom .author-link:hover {
	color: #0091FF;
}

.editorial-card-date-wrap {
	font-size: 0.875rem;
	margin-bottom: 0.5rem;
}

.editorial-card-date-wrap .entry-date {
	font-size: inherit;
}

.editorial-card-excerpt {
	font-size: 0.875rem;
	line-height: 1.45;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.9em;
	flex-shrink: 0;
}

.editorial-card-meta {
	font-size: 0.8125rem;
	color: #777;
}

.editorial-card-author {
	display: block;
	margin-bottom: 0.15rem;
}

.editorial-card-reading-time .bb-reading-time { font-size: inherit; }

/* ========== SIDEBAR EDITORIAL (DIREITA) ========== */
.editorial-widget {
	margin-bottom: 1.5rem;
	padding: 1rem;
	background: #f8f9fa;
	border-radius: 8px;
}

.editorial-widget-title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
	color: #1a1a1a;
}

/* --- Agenda de lançamentos: linha do tempo vertical (fundo = padrão editorial-widget) --- */
.release-calendar-widget.release-calendar-timeline {
	/* Herda background de .editorial-widget (#f8f9fa); cor de destaque via --rc-accent (categoria/plataforma). */
}

.release-calendar-timeline-title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
	color: #1a1a1a;
	line-height: 1.3;
	text-align: center;
}

.release-timeline {
	position: relative;
	margin-top: 0.75rem;
}

.release-timeline-list {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

/* Linha vertical contínua (alinhada ao centro dos marcadores) */
.release-timeline-list::before {
	content: "";
	position: absolute;
	left: 4.6rem;
	top: 0;
	bottom: 0;
	width: 2px;
	background-color: #a8b8c8;
	z-index: 0;
}

.release-timeline-item {
	display: flex;
	align-items: center;
	position: relative;
	z-index: 1;
	min-height: 5rem;
	padding: 0.75rem 0;
	gap: 0;
}

.release-timeline-item:first-child {
	padding-top: 0.25rem;
}

.release-timeline-item:last-child {
	padding-bottom: 0.25rem;
}

/* Coluna data: mês abreviado, dia grande, mês por extenso */
.release-timeline-date {
	width: 4rem;
	flex-shrink: 0;
	text-align: right;
	padding-right: 0.75rem;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 0.1rem;
}

/* Dia da semana (topo da data) — cor de destaque da categoria/plataforma */
.release-timeline-day-of-week {
	font-size: 0.7rem;
	font-weight: 400;
	color: var(--rc-accent, #0091FF);
	line-height: 1.2;
}

.release-timeline-day {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--rc-accent, #0091FF);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.release-timeline-month {
	font-size: 0.7rem;
	font-weight: 400;
	color: var(--rc-accent, #0091FF);
	line-height: 1.2;
}

/* Template Guias 2: widget com posts da subcategoria — só número 1–5 e título; centralizar na section */
.editorial-widget-guias-posts .release-timeline {
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
}
.editorial-widget-guias-posts .release-timeline-list {
	margin: 0 auto;
	padding-left: 0;
}
/* Linha vertical alinhada ao centro dos marcadores */
.editorial-widget-guias-posts .release-timeline-list::before {
	left: 2.58rem;
}
.editorial-widget-guias-posts .release-timeline-item {
	padding-left: 0;
	justify-content: center;
}
.editorial-widget-guias-posts .release-timeline-date {
	width: 2.25rem;
	padding-right: 0.5rem;
	justify-content: center;
	flex-shrink: 0;
}
.editorial-widget-guias-posts .release-timeline-marker {
	margin-left: 0;
	margin-right: 0.25rem;
}
.editorial-widget-guias-posts .release-timeline-content {
	padding-left: 0.5rem;
	flex: 1;
	min-width: 0;
	text-align: left;
}

/* Marcador (bolinha) na linha — cor de destaque da categoria/plataforma */
.release-timeline-marker {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: var(--rc-accent, #0091FF);
	flex-shrink: 0;
	margin: 0 -5px 0 0.25rem;
	z-index: 1;
}

/* Conteúdo: nome do jogo e plataformas */
.release-timeline-content {
	flex: 1;
	min-width: 0;
	padding-left: 0.75rem;
}

.release-timeline-entry-title {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 0.2rem;
	line-height: 1.3;
}

.release-timeline-entry-title .release-timeline-link,
.release-timeline-entry-title .release-timeline-name {
	color: inherit;
	text-decoration: none;
}

.release-timeline-entry-title .release-timeline-link:hover {
	text-decoration: underline;
}

/* Guias 2: mesmo hover do título dos posts (cor + sublinhado) */
.editorial-widget-guias-posts .release-timeline-entry-title .release-timeline-link:hover {
	color: #0066cc;
	text-decoration: underline;
}

.release-timeline-meta {
	font-size: 0.75rem;
	font-weight: 400;
	color: #2d2d2d;
	margin: 0;
	line-height: 1.35;
}

.release-calendar-empty {
	font-size: 0.875rem;
	color: #2d2d2d;
	margin: 0.5rem 0 0;
	padding: 0;
}

/* Bloco curadoria: sem fundo na section; menos espaço entre blocos */
.editorial-widget.editorial-widget-curation {
	background: transparent !important;
	padding-left: 0;
	padding-right: 0;
	margin-bottom: 0.75rem;
}

.editorial-curation-box {
	background: transparent;
	padding: 0;
	border-radius: 12px;
	overflow: hidden;
}

/* Área da imagem: quadrada com bordas arredondadas; botão sobreposto na parte inferior */
.editorial-curation-box .editorial-curation-image-wrap {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
}

.editorial-curation-box .editorial-curation-image-link {
	position: absolute;
	inset: 0;
	display: block;
}

.editorial-curation-box .editorial-curation-image-link img,
.editorial-curation-box .editorial-curation-image-wrap .editorial-curation-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.editorial-curation-box .editorial-curation-image-wrap > .editorial-curation-image {
	position: absolute;
	top: 0;
	left: 0;
}

/* Botão dentro da imagem, na parte inferior — todos os cantos com o mesmo arredondamento */
.editorial-curation-box .editorial-curation-image-wrap .editorial-cta-button {
	position: absolute;
	bottom: 0.75rem;
	left: 0.75rem;
	right: 0.75rem;
	display: block;
	text-align: center;
	padding: 0.5rem 1rem;
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
	border-radius: 8px;
	transition: background-color 0.2s, color 0.2s;
	box-sizing: border-box;
}

.editorial-curation-box .editorial-cta-button.editorial-cta-button-standalone {
	margin-top: 0;
	border-radius: 8px;
}

.editorial-curation-box p {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
}

.editorial-cta-button {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: #0091FF;
	color: #fff;
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
	border-radius: 8px;
	transition: background-color 0.2s, color 0.2s;
}

.editorial-cta-button:hover,
.editorial-cta-button:focus {
	color: #fff;
}

/* Curadoria: CTA por bloco (variáveis definidas no <section>) */
.editorial-widget-curation--custom-cta .editorial-cta-button {
	background: var(--curation-btn-bg, #0091ff) !important;
	color: var(--curation-btn-color, #fff) !important;
	border-radius: 8px !important;
}

.editorial-widget-curation--custom-cta .editorial-cta-button:hover,
.editorial-widget-curation--custom-cta .editorial-cta-button:focus {
	background: var(--curation-btn-hover-bg, #0077dd) !important;
	color: var(--curation-btn-hover-color, #fff) !important;
}

.editorial-popular-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.editorial-popular-list li {
	padding: 0.35rem 0;
	font-size: 0.9375rem;
	border-bottom: 1px solid #eee;
}

.editorial-popular-list a {
	color: #333;
	text-decoration: none;
}

.editorial-popular-list a:hover {
	color: #0066cc;
}

.editor-expertise-panel .editorial-widget-title {
	text-align: center;
}

.editor-expertise-panel-inner {
	text-align: center;
}

.editor-expertise-avatar-wrap {
	margin: 0 auto 0.75rem;
	text-align: center;
}

.editor-expertise-avatar-wrap .editor-expertise-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	display: block;
	margin: 0 auto;
	object-fit: cover;
}

.editor-expertise-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #ddd;
	margin: 0 auto 0.75rem;
}

.editor-expertise-avatar-link {
	display: inline-block;
}

.editor-expertise-avatar-link:hover .editor-expertise-avatar {
	opacity: 0.85;
}

.editor-expertise-name-link {
	color: inherit;
	text-decoration: none;
}

.editor-expertise-name-link:hover {
	color: #0091FF;
}

.editor-expertise-name {
	font-weight: 600;
	margin: 0 0 0.25rem;
	color: #1a1a1a;
}

.editor-expertise-role {
	font-size: 0.875rem;
	color: #0066cc;
	margin: 0 0 0.5rem;
}

.editor-expertise-social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.editor-expertise-social .bb-author-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #333;
	text-decoration: none;
	transition: color 0.2s;
}

.editor-expertise-social .bb-author-social-link:hover {
	color: #0091FF;
}

.editor-expertise-bio {
	font-size: 0.8125rem;
	color: #555;
	line-height: 1.4;
	margin: 0;
}

/* ========== RODAPÉ EDITORIAL ========== */
/* Posicionado no fim de #page-wrapper, acima do footer do tema (footer.php) */
.editorial-footer {
	background: #000;
	color: #fff;
	padding: 1.25rem 0;
	margin-top: 0;
}

/* Zerar margin-top do footer do tema nas páginas editoriais (categoria e plataforma) */
body.category-editorial-hub #footer {
	margin-top: 0 !important;
}

.editorial-footer-text {
	margin: 0;
	font-size: 0.875rem;
	color: #fff;
}

.editorial-footer-text a {
	color: #fff;
	text-decoration: underline;
}

.editorial-footer-text a:hover {
	color: rgba(255, 255, 255, 0.85);
}

/* ========== INFINITE SCROLL ========== */
.editorial-load-more-sentinel {
	height: 1px;
	width: 100%;
}

.editorial-load-more-spinner {
	display: flex;
	justify-content: center;
	padding: 1.5rem 0;
}

.editorial-load-more-dots {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #0091FF;
	box-shadow: 20px 0 0 #0091FF, -20px 0 0 #0091FF;
	animation: editorial-dots-pulse 0.8s infinite ease-in-out alternate;
}

@keyframes editorial-dots-pulse {
	0%   { box-shadow: 20px 0 0 rgba(0,145,255,0.2), -20px 0 0 rgba(0,145,255,0.2); }
	50%  { box-shadow: 20px 0 0 rgba(0,145,255,0.2), -20px 0 0 rgba(0,145,255,1); }
	100% { box-shadow: 20px 0 0 rgba(0,145,255,1),   -20px 0 0 rgba(0,145,255,0.2); }
}

/* ========== RESPONSIVO ========== */
/* Layout mobile-friendly (empilhado) em mobile E tablet, incl. iPad Pro (até 1399px). Desktop (1400px+) = sidebar à esquerda. */
@media (max-width: 1399px) {
	/* Desfaz o layout de 2 colunas: tudo em coluna */
	.editorial-outer-row {
		flex-direction: column;
	}

	/* Filtros acima do featured row */
	.editorial-left-col {
		position: static !important;
		top: auto !important;
		left: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		max-height: none !important;
		flex: 0 0 auto;
		padding-right: 0;
		order: 0;
	}

	/* Filtros (subcategorias e plataformas): deslizante horizontal em tablet/mobile */
	.editorial-left-col .filter-list {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 0.5rem;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		padding-bottom: 6px;
		margin-left: -2px;
		margin-right: -2px;
	}
	.editorial-left-col .filter-list .filter-item {
		flex-shrink: 0;
	}

	/* Abas (Notícias, Anúncios, etc.): deslizante horizontal em tablet/mobile */
	.editorial-tabs-list,
	.bb-recent-filters.editorial-tabs-list {
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch !important;
		scrollbar-width: thin;
		padding-bottom: 6px;
	}
	.editorial-tabs-list .bb-filter-btn,
	.bb-recent-filters .bb-filter-btn {
		flex-shrink: 0 !important;
	}

	.editorial-center-col {
		order: 1;
		width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	/* Featured row (Notícias Populares + Mais vistos): empilha e centraliza (tablet usa mais largura via media 768–1399 abaixo) */
	.editorial-featured-row {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 100%;
		max-width: 100%;
		padding: 0 1rem;
		box-sizing: border-box;
	}

	.editorial-featured-row .editorial-featured-block-wrap {
		flex: 0 0 auto;
		width: 100%;
		max-width: 560px;
		margin-left: auto;
		margin-right: auto;
	}

	.editorial-featured-row .editorial-featured-list-wrap {
		flex: 0 0 auto;
		width: 100%;
		max-width: 560px;
		margin-left: auto;
		margin-right: auto;
	}

	.category-editorial-row {
		flex-direction: column;
		width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	.category-editorial-main {
		order: 1;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		box-sizing: border-box;
	}

	.editorial-sidebar {
		order: 3;
		padding: 1rem 0 0;
		width: 100%;
		box-sizing: border-box;
	}
}

/* ========== SÓ TABLET (768px–1399px, incl. iPad Pro 11" e 12.9" landscape): featured row centralizado e a aproveitar largura ========== */
@media (min-width: 768px) and (max-width: 1399px) {
	.editorial-featured-row {
		width: 100%;
		max-width: 100%;
		padding: 0 1.5rem;
		box-sizing: border-box;
		justify-content: center;
		align-items: center;
	}

	.editorial-featured-row .editorial-featured-block-wrap {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	.editorial-featured-row .editorial-featured-list-wrap {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

/* ========== TABLET (768–1399px): sidebar — release à esquerda, curadoria à direita em grid (1=full, 2=lado a lado, 3=2+1, 4=2x2); imagens quadradas ========== */
@media (min-width: 768px) and (max-width: 1399px) {
	.editorial-sidebar-inner {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1.25rem;
		align-items: start;
		width: 100%;
		box-sizing: border-box;
	}

	.editorial-sidebar-inner > .release-calendar-widget.release-calendar-timeline {
		grid-column: 1;
		grid-row: 1;
		min-width: 0;
	}

	.editorial-sidebar-curation-grid {
		grid-column: 2;
		grid-row: 1;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 0.125rem;
		min-width: 0;
		width: 100%;
		box-sizing: border-box;
	}

	/* 1 bloco = coluna direita inteira; 2 = lado a lado; 3 = 2 em cima, 1 em baixo; 4 = 2x2
	 * A percentagem no :only-child é sempre em relação à coluna direita (50% da sidebar), não à sidebar inteira. */
	.editorial-sidebar-curation-grid .editorial-widget-curation {
		min-width: 0;
		margin-bottom: 0;
	}
	.editorial-sidebar-curation-grid .editorial-widget-curation:only-child {
		grid-column: 1 / -1;
		width: 90%;
		margin-left: auto;
		margin-right: auto;
		max-width: 100%;
	}

	/* 3 ou 4 blocos: reduzir um pouco o tamanho de cada bloco (90% da célula) */
	.editorial-sidebar-curation-grid .editorial-widget-curation:first-child:nth-last-child(3),
	.editorial-sidebar-curation-grid .editorial-widget-curation:first-child:nth-last-child(3) ~ .editorial-widget-curation,
	.editorial-sidebar-curation-grid .editorial-widget-curation:first-child:nth-last-child(4),
	.editorial-sidebar-curation-grid .editorial-widget-curation:first-child:nth-last-child(4) ~ .editorial-widget-curation {
		width: 90%;
		max-width: 100%;
		margin-left: auto;
		margin-right: auto;
	}

	.editorial-sidebar-curation-grid .editorial-curation-box .editorial-curation-image-wrap {
		aspect-ratio: 1 / 1;
		width: 100%;
		max-width: 100%;
	}

	.editorial-sidebar-curation-grid .editorial-curation-box .editorial-curation-image-link img,
	.editorial-sidebar-curation-grid .editorial-curation-box .editorial-curation-image-wrap .editorial-curation-image {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	/* Título da curadoria no tablet: tamanho menor; permite quebra para segunda linha; menos espaço abaixo */
	.editorial-sidebar-curation-grid .editorial-widget-title {
		font-size: 0.75rem;
		margin-bottom: 0.125rem;
	}
	.editorial-sidebar-curation-grid .editorial-widget-curation:only-child .editorial-widget-title {
		font-size: 0.9rem;
	}

	/* Eventos e Especialista: largura total abaixo do bloco de 2 colunas */
	.editorial-sidebar-inner > .events-widget,
	.editorial-sidebar-inner > .editor-expertise-panel {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	/* Reservar espaço da scrollbar para largura consistente entre páginas (evita main 320px vs 341px) */
	body.category-editorial-hub {
		overflow-y: scroll;
	}

	/* Mais espaço entre filtros (esquerda) e bloco featured (Notícias Populares) no mobile */
	.editorial-center-col {
		margin-top: 2rem;
	}

	/* Em mobile o card empilha: imagem em cima, conteúdo embaixo */
	.editorial-post-card.editorial-post-card {
		flex-direction: column;
		height: auto;
		max-height: none;
	}

	.editorial-post-card-media {
		flex: 0 0 auto;
		width: 100%;
		height: 180px;
	}

	.editorial-filters-chips .container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	/* Featured row em mobile: bloco e lista ocupam largura útil, centralizados */
	.editorial-featured-row {
		padding: 0 1rem;
	}

	.editorial-featured-row .editorial-featured-block-wrap,
	.editorial-featured-row .editorial-featured-list-wrap {
		max-width: 100%;
	}

	/*
	 * Filtros (Categorias/Tipos + Plataformas): no mobile, ícone + texto como um bloco centrado na pill.
	 * Desktop/tablet (≥768px) mantém o grid 1fr auto 1fr definido fora deste media.
	 */
	.editorial-left-col .filter-section-plataformas .filter-item a,
	.editorial-left-col .filter-section-subcategories .filter-item a {
		display: flex;
		flex-wrap: nowrap;
		justify-content: center;
		align-items: center;
		gap: 0.35em;
		grid-template-columns: unset;
	}

	.editorial-left-col .filter-section-plataformas .filter-item a .filter-plat-leading,
	.editorial-left-col .filter-section-subcategories .filter-item a .filter-plat-leading {
		justify-self: unset;
		flex: 0 0 auto;
		min-width: 0;
	}

	.editorial-left-col .filter-section-plataformas .filter-item a .filter-plat-name,
	.editorial-left-col .filter-section-subcategories .filter-item a .filter-plat-name {
		justify-self: unset;
		text-align: center;
		flex: 0 1 auto;
		min-width: 0;
	}

	.editorial-left-col .filter-section-plataformas .filter-item a .filter-plat-trailing,
	.editorial-left-col .filter-section-subcategories .filter-item a .filter-plat-trailing {
		display: none;
	}

	/* Sem ícone: não reservar coluna vazia (evita espaço fantasma por whitespace no span) */
	.editorial-left-col .filter-section-plataformas .filter-item a .filter-plat-leading:not(:has(.filter-item-icon)),
	.editorial-left-col .filter-section-subcategories .filter-item a .filter-plat-leading:not(:has(.filter-item-icon)) {
		display: none;
	}
}

/* Container editorial: menos padding em tablet/mobile para aproveitar espaço */
@media (max-width: 991px) {
	body.category-editorial-hub #main .main-container.category-editorial-layout,
	#main .main-container.category-editorial-layout {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}
}

@media (max-width: 767px) {
	body.category-editorial-hub #main .main-container.category-editorial-layout,
	#main .main-container.category-editorial-layout {
		padding-left: 0.75rem !important;
		padding-right: 0.75rem !important;
	}
}

/* ========== NIGHT MODE — sidebar editorial (categoria e plataforma, desktop/mobile/tablet) ========== */
.boombox-theme-night .editorial-left-col,
.boombox-theme-night .editorial-left-col.is-fixed,
.boombox-theme-dark .editorial-left-col,
.boombox-theme-dark .editorial-left-col.is-fixed {
	background: #121117 !important;
}

.boombox-theme-night .editorial-left-col .filter-section-title,
.boombox-theme-night .editorial-left-col .category-filter-sidebar-inner,
.boombox-theme-night .editorial-left-col .filter-item a,
.boombox-theme-dark .editorial-left-col .filter-section-title,
.boombox-theme-dark .editorial-left-col .category-filter-sidebar-inner,
.boombox-theme-dark .editorial-left-col .filter-item a {
	color: #ffffff !important;
	border-color: #ffffff;
}

.boombox-theme-night .editorial-left-col .filter-item a:hover,
.boombox-theme-dark .editorial-left-col .filter-item a:hover {
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.5);
}

.boombox-theme-night .editorial-left-col .filter-item.filter-active a,
.boombox-theme-dark .editorial-left-col .filter-item.filter-active a {
	color: #121117 !important;
	background: #ffffff !important;
	border-color: #ffffff;
}

.boombox-theme-night .editorial-left-col .filter-item.filter-active a .psverso-plat-icon-accent,
.boombox-theme-dark .editorial-left-col .filter-item.filter-active a .psverso-plat-icon-accent {
	background-color: var(--psverso-plat-accent, #0091ff) !important;
}

.boombox-theme-night .editorial-left-col .filter-section-plataformas,
.boombox-theme-dark .editorial-left-col .filter-section-plataformas {
	border-top-color: rgba(255, 255, 255, 0.2);
}
