
/* ¡Esto! Civic News Auto Home 2.0 */

/* Logo más grande, manteniendo proporción. */
@media (min-width: 769px) {
	.esto-civic-auto {
		--logo-size-custom: 240px !important;
	}

	.esto-civic-auto .site-branding,
	.esto-civic-auto .site-logo,
	.esto-civic-auto .custom-logo-link {
		max-width: 240px !important;
		width: auto !important;
	}

	.esto-civic-auto .custom-logo-link img,
	.esto-civic-auto img.custom-logo {
		width: 240px !important;
		max-width: 240px !important;
		height: auto !important;
		object-fit: contain !important;
	}
}

@media (max-width: 768px) {
	.esto-civic-auto {
		--logo-size-custom: 180px !important;
	}

	.esto-civic-auto .site-branding,
	.esto-civic-auto .site-logo,
	.esto-civic-auto .custom-logo-link {
		max-width: 180px !important;
	}

	.esto-civic-auto .custom-logo-link img,
	.esto-civic-auto img.custom-logo {
		width: 180px !important;
		max-width: 180px !important;
		height: auto !important;
	}
}

/* No cortar palabras en titulares. */
.esto-civic-auto .entry-title,
.esto-civic-auto .entry-title a,
.esto-civic-auto .post-title,
.esto-civic-auto .post-title a,
.esto-civic-auto .news-title,
.esto-civic-auto .news-title a,
.esto-civic-auto article h1,
.esto-civic-auto article h2,
.esto-civic-auto article h3,
.esto-civic-auto article h4,
.esto-civic-auto article h5,
.esto-civic-auto article h6 {
	word-break: normal !important;
	overflow-wrap: normal !important;
	hyphens: none !important;
	-webkit-hyphens: none !important;
	white-space: normal !important;
}

/* Ocultar autor en tarjetas/listados de portada. */
.esto-civic-auto .byline,
.esto-civic-auto .post-author,
.esto-civic-auto .entry-author,
.esto-civic-auto .author-name,
.esto-civic-auto .posted-by,
.esto-civic-auto .post-meta .author,
.esto-civic-auto .entry-meta .author {
	display: none !important;
}

/*
 * Estructura de la demo:
 * primer widget principal a ancho completo;
 * desde el siguiente, 70% contenido + 30% Secondary.
 */
@media (min-width: 992px) {
	.esto-civic-auto .main-widget-area .widget-area-wrapper.frontpage-right-sidebar {
		display: grid !important;
		grid-template-columns: minmax(0, 70%) minmax(0, 30%) !important;
		align-items: start !important;
	}

	.esto-civic-auto .main-widget-area .widget-area-wrapper.frontpage-right-sidebar > .primary-widgets-area {
		display: contents !important;
	}

	.esto-civic-auto .main-widget-area .primary-widgets-area > .widget:first-child {
		grid-column: 1 / -1 !important;
		grid-row: 1 !important;
		width: 100% !important;
		min-width: 0 !important;
		padding-inline: 0.5rem !important;
	}

	.esto-civic-auto .main-widget-area .primary-widgets-area > .widget:not(:first-child) {
		grid-column: 1 !important;
		width: 100% !important;
		min-width: 0 !important;
		padding-inline: 0.5rem !important;
	}

	.esto-civic-auto .main-widget-area .widget-area-wrapper.frontpage-right-sidebar > .secondary-widgets-area {
		grid-column: 2 !important;
		grid-row: 2 / span 100 !important;
		width: 100% !important;
		min-width: 0 !important;
		padding-inline: 0.5rem !important;
		align-self: start !important;
	}

	.esto-civic-auto .main-widget-area .primary-widgets-area > .widget:first-child .grid-posts-wrapper {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}


/* v2.1 — Quita el bloque final duplicado de la portada.
   Civic News envuelve el contenido extra de la home en .civic-news-main-wrapper.
   Ocultamos únicamente ese wrapper; no toca Banner ni las áreas Primary/Secondary. */
.esto-civic-auto .civic-news-main-wrapper {
	display: none !important;
}

/* v2.2.1: quitar fecha de las 9 noticias superiores.
   Selectores exactos del markup de Civic News:
   .banner-main-part = 4 Destacadas
   .featured-posts   = 5 Últimas Noticias */
.esto-civic-auto #civic_news_banner_section .banner-main-part .post-meta .post-date,
.esto-civic-auto #civic_news_banner_section .banner-main-part .post-meta .entry-date,
.esto-civic-auto #civic_news_banner_section .featured-posts .post-meta .post-date,
.esto-civic-auto #civic_news_banner_section .featured-posts .post-meta .entry-date {
    display: none !important;
}


/* v2.4.1 — Fila horizontal nativa "Editor Choice" = LO MÁS LEÍDO */
.esto-civic-auto #civic_news_banner_section .editors-choice::before {
	content: "LO MÁS LEÍDO";
	display: block;
	margin: 0 0 14px;
	padding-left: 12px;
	border-left: 6px solid currentColor;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
}

/* En esta fila el post-meta contiene únicamente la fecha. */
.esto-civic-auto #civic_news_banner_section .editors-choice .post-meta {
	display: none !important;
}


/* v2.5 — Notas interiores: nunca partir palabras del título */
.single-post .entry-title,
.single-post h1,
.single-post .post-title,
.single-post .entry-header .entry-title {
	word-break: normal !important;
	overflow-wrap: normal !important;
	hyphens: none !important;
	-webkit-hyphens: none !important;
}

/* Ocultar autor en notas; conservar fecha */
.single-post .byline,
.single-post .post-author,
.single-post .author.vcard {
	display: none !important;
}


/* v2.5.1 — Corrección real para notas interiores.
   Civic News aplica: .post .entry-header h1 { word-break: break-all; } */
body.single-post .post .entry-header h1,
body.single-post .post .entry-header h1.entry-title,
body.single-post .post .entry-header .entry-title,
body.single-post .post .entry-header .entry-title a,
body.single-post .post .entry-header .entry-title * {
	word-break: keep-all !important;
	word-wrap: normal !important;
	overflow-wrap: normal !important;
	hyphens: none !important;
	-webkit-hyphens: none !important;
}

/* Breadcrumb de todas las notas: Inicio / Categoría.
   El tema marca el título actual con .trail-end. */
body.single-post .breadcrumbs .trail-end,
body.single-post .breadcrumb-trail .trail-end {
	display: none !important;
}

/* Al ocultar trail-end, quitar la barra final de la categoría anterior. */
body.single-post .breadcrumbs ul li:nth-last-child(2)::after,
body.single-post .breadcrumb-trail ul li:nth-last-child(2)::after {
	content: "" !important;
	display: none !important;
}


/* v2.9 — La home debe empezar editorialmente por DESTACADAS.
   Se elimina la fila horizontal "LO MÁS LEÍDO" (Editor Choice) del inicio.
   LO MÁS LEÍDO sigue existiendo donde corresponde: sidebar/ranking. */
body.home #civic_news_banner_section .editors-choice,
body.front-page #civic_news_banner_section .editors-choice {
	display: none !important;
}

/* Mobile: compactar cabecera para evitar el gran bloque blanco
   entre el logo y la barra negra de navegación. */
@media (max-width: 600px) {
	body.home .site-header .civic-news-top-header .top-header-container,
	body.front-page .site-header .civic-news-top-header .top-header-container {
		padding-top: 8px !important;
		padding-bottom: 8px !important;
		gap: 4px !important;
	}

	body.home .site-header .site-branding,
	body.front-page .site-header .site-branding {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	body.home .site-header .site-branding .site-logo,
	body.front-page .site-header .site-branding .site-logo {
		margin: 0 !important;
		padding: 0 !important;
	}

	body.home .site-header .site-branding .site-logo img,
	body.front-page .site-header .site-branding .site-logo img {
		display: block !important;
		margin: 0 auto !important;
	}

	body.home .site-header,
	body.front-page .site-header {
		margin-block-end: 0.8rem !important;
	}
}


/* v2.11 — Ocultar de forma persistente el bloque exacto identificado en DevTools.
   Es el List Posts Thumbnail widget que contiene, entre otras,
   “Murió un hombre atropellado por un subte de la Línea A”. */
body.home #civic_news_list_posts_thumbnail_widget-3,
body.front-page #civic_news_list_posts_thumbnail_widget-3 {
	display: none !important;
}
