/*
Theme Name: gmicheli
Theme URI: https://aris.do/
Author: Aris Mota
Author URI: https://aris.do/
Description: Diario digital editorial G·Micheli — Newsreader / Inter, paleta de marca y slots NubeAds.
Version: 1.15.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gmicheli
Tags: news, blog, custom-logo, custom-menu, featured-images, sticky-post, translation-ready
*/

/* --------------------------------------------------------------------------
   Tokens — paleta de marca G·Micheli Al Día
   -------------------------------------------------------------------------- */

:root {
	/* Brand */
	--brand-primary: #0795b7;
	--brand-primary-dark: #067a98;
	--brand-primary-darker: #055e76;
	--brand-primary-light: #e8f7fa;
	--brand-orange: #f06a21;
	--brand-orange-dark: #d95416;
	--brand-orange-light: #fff1e8;
	--brand-amber: #f89a1c;
	--brand-yellow: #ffc51a;
	--brand-yellow-bright: #ffe500;
	--brand-green: #8dbd23;
	--brand-green-light: #f2f8e6;

	/* Neutrales */
	--background: #ffffff;
	--background-soft: #f7f8f9;
	--background-muted: #f1f3f5;
	--border-light: #e5e7e9;
	--border-medium: #d5dadf;
	--text-primary: #182126;
	--text-secondary: #58656c;
	--text-muted: #849097;
	--text-inverse: #ffffff;

	/* Estados editoriales */
	--breaking-news: var(--brand-orange);
	--breaking-news-bg: var(--brand-orange-light);
	--info: var(--brand-primary);
	--info-bg: var(--brand-primary-light);
	--success: #709c1b;
	--success-bg: var(--brand-green-light);
	--warning: #e8a400;
	--warning-bg: #fff8df;
	--danger: #c93632;
	--danger-bg: #fdedec;

	/* Tokens de tema (mapeo a marca) */
	--gm-bg: var(--background-soft);
	--gm-surface: var(--background);
	--gm-text: var(--text-primary);
	--gm-muted: var(--text-secondary);
	--gm-border: var(--border-light);
	--gm-rule: var(--text-primary);
	--gm-rule-soft: var(--border-medium);
	--gm-accent: var(--brand-primary);
	--gm-accent-hover: var(--brand-primary-dark);
	--gm-accent-soft: var(--brand-primary-light);
	--gm-live: var(--brand-orange);
	--gm-live-hover: var(--brand-orange-dark);
	--gm-radius: 4px;
	--gm-shadow: 0 1px 0 rgba(24, 33, 38, 0.04);
	--gm-shadow-sticky: 0 2px 12px rgba(24, 33, 38, 0.08);
	--gm-transition: 160ms ease;
	--gm-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--gm-font-display: "Newsreader", Georgia, "Times New Roman", serif;
	--gm-font-editorial: "Newsreader", Georgia, "Times New Roman", serif;

	/* Escala tipográfica editorial */
	--gm-text-hero: clamp(2.375rem, 3.2vw, 2.75rem); /* 38–44px */
	--gm-text-feature: clamp(1.625rem, 2.4vw, 1.875rem); /* 26–30px */
	--gm-text-section: clamp(1.25rem, 2vw, 1.5rem); /* 20–24px */
	--gm-text-card: clamp(1.0625rem, 1.4vw, 1.1875rem); /* 17–19px */
	--gm-text-list: clamp(0.9375rem, 1.2vw, 1.0625rem); /* 15–17px */
	--gm-text-deck: clamp(0.9375rem, 1.2vw, 1.0625rem); /* 15–17px */
	--gm-text-body: 1rem; /* 16px */
	--gm-text-meta: 0.8125rem; /* 13px */
	--gm-text-kicker: 0.75rem; /* 12px */
	--gm-text-ui: 0.9375rem; /* 15px */

	--gm-ratio-hero: 16 / 9;
	--gm-ratio-story: 3 / 2;
	--gm-ratio-thumb: 4 / 3;

	--gm-container: 80rem;
	--gm-gutter: 1.5rem;
	--gm-page-pad: 1.5rem;
	--gm-header-h: auto;
	--gm-focus: 0 0 0 3px rgba(7, 149, 183, 0.28);
}

@media (min-width: 1100px) {
	:root {
		--gm-page-pad: 2rem;
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--background: #12181b;
		--background-soft: #0e1316;
		--background-muted: #1a2227;
		--border-light: #2a343a;
		--border-medium: #3a464d;
		--text-primary: #f2f5f6;
		--text-secondary: #a8b3b9;
		--text-muted: #7d8a91;
		--brand-primary: #2eb5d4;
		--brand-primary-dark: #4fc4de;
		--brand-primary-darker: #0795b7;
		--brand-primary-light: rgba(46, 181, 212, 0.16);
		--brand-orange: #ff7a35;
		--brand-orange-dark: #f06a21;
		--brand-orange-light: rgba(240, 106, 33, 0.18);
		--gm-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
		--gm-shadow-sticky: 0 2px 16px rgba(0, 0, 0, 0.45);
		--gm-focus: 0 0 0 3px rgba(46, 181, 212, 0.35);
	}
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: var(--gm-font);
	font-size: var(--gm-text-body);
	line-height: 1.65;
	color: var(--gm-text);
	background: var(--gm-bg);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

#main {
	flex: 1 0 auto;
}

img,
video,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--gm-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
	transition: color var(--gm-transition);
}

a:hover {
	color: var(--gm-accent-hover);
}

a:focus-visible,
button:focus-visible,
.gm-nav-toggle:focus-visible {
	outline: none;
	box-shadow: var(--gm-focus);
	border-radius: 2px;
}

h1,
h2,
h3,
h4 {
	font-family: var(--gm-font-display);
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	color: var(--gm-text);
}

p {
	margin: 0 0 1em;
}

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

button {
	font: inherit;
	cursor: pointer;
	border: 0;
	background: none;
	color: inherit;
}

.screen-reader-text,
.gm-skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gm-skip-link:focus {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	clip: auto;
	overflow: visible;
	white-space: normal;
	background: var(--gm-accent);
	color: #fff;
	border-radius: 2px;
	font-weight: 600;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.gm-container {
	width: min(100% - (2 * var(--gm-page-pad)), var(--gm-container));
	margin-inline: auto;
}

.gm-layout {
	display: grid;
	gap: var(--gm-gutter);
	padding-block: 1.5rem 3rem;
}

@media (min-width: 960px) {
	.gm-layout {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: start;
		gap: var(--gm-gutter);
		padding-block: 2rem 4rem;
	}

	.gm-main {
		grid-column: 1 / span 9;
	}

	.gm-sidebar {
		grid-column: 10 / span 3;
		min-width: 0;
	}
}

.gm-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3.5rem;
}

.gm-section__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid var(--gm-rule-soft);
}

.gm-section__title {
	font-family: var(--gm-font-display);
	font-size: var(--gm-text-section);
	margin: 0;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.gm-section__link {
	font-family: var(--gm-font);
	font-size: var(--gm-text-ui);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: var(--gm-muted);
}

.gm-section__link:hover {
	color: var(--gm-accent);
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Portada periódico: topstory 3 cols + rails + teasers
   -------------------------------------------------------------------------- */

.gm-frontpage {
	gap: 3.5rem;
}

.gm-topstory {
	padding-bottom: 0;
	border-bottom: 0;
}

.gm-topstory__grid {
	display: grid;
	gap: 1.5rem;
}

.gm-topstory__col {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	min-width: 0;
}

.gm-topstory__col--center {
	order: -1;
}

.gm-topstory-item {
	padding-block: 0;
	border-bottom: 0;
}

.gm-topstory-item:first-child {
	padding-top: 0;
}

.gm-topstory-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.gm-topstory-item__link {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	text-decoration: none;
	color: inherit;
}

.gm-topstory-item__link:hover {
	text-decoration: none;
	color: inherit;
}

.gm-topstory-item__media {
	margin: 0;
	overflow: hidden;
	background: var(--gm-border);
	width: 100%;
}

.gm-topstory-item__img,
.gm-topstory-item__media .gm-media-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: var(--gm-ratio-hero);
	object-fit: cover;
	object-position: center;
}

.gm-topstory-item__media .gm-media-placeholder {
	min-height: 14rem;
	background: linear-gradient(135deg, var(--gm-border), #c4c4c4);
}

.gm-topstory-item__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.gm-kicker {
	display: inline-block;
	width: fit-content;
	font-family: var(--gm-font);
	font-size: var(--gm-text-kicker);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brand-primary);
	text-decoration: none;
}

a.gm-kicker:hover {
	color: var(--brand-primary-dark);
	text-decoration: none;
}

.gm-topstory-item__title {
	margin: 0;
	font-family: var(--gm-font-display);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--gm-text);
}

.gm-topstory-item__link:hover .gm-topstory-item__title {
	color: var(--gm-accent);
}

.gm-topstory-item--lead .gm-topstory-item__title {
	font-size: var(--gm-text-hero);
}

.gm-topstory-item--feature .gm-topstory-item__title {
	font-size: var(--gm-text-feature);
}

.gm-topstory-item--compact .gm-topstory-item__title {
	font-size: var(--gm-text-list);
}

.gm-topstory-item__excerpt {
	margin: 0;
	font-family: var(--gm-font);
	font-size: var(--gm-text-deck);
	line-height: 1.5;
	color: var(--gm-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gm-topstory-item--compact .gm-topstory-item__excerpt {
	-webkit-line-clamp: 2;
	font-size: var(--gm-text-body);
}

@media (min-width: 960px) {
	.gm-topstory__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
		gap: 0;
		align-items: stretch;
	}

	.gm-topstory__grid--no-left {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	}

	.gm-topstory__grid--no-right {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
	}

	.gm-topstory__grid--no-left.gm-topstory__grid--no-right {
		grid-template-columns: minmax(0, 1fr);
	}

	.gm-topstory__col--center {
		order: 0;
	}

	.gm-topstory__col--left {
		padding-right: 1.35rem;
		border-right: 1px solid var(--gm-rule-soft);
	}

	.gm-topstory__col--center {
		padding-inline: 1.35rem;
	}

	.gm-topstory__grid--no-left .gm-topstory__col--center {
		padding-left: 0;
	}

	.gm-topstory__grid--no-right .gm-topstory__col--center {
		padding-right: 0;
	}

	.gm-topstory__col--right {
		padding-left: 1.35rem;
		border-left: 1px solid var(--gm-rule-soft);
	}

	.gm-topstory-item--lead .gm-topstory-item__title {
		font-size: var(--gm-text-hero);
	}

	.gm-topstory__col--left .gm-topstory-item--feature .gm-topstory-item__title {
		font-size: var(--gm-text-feature);
	}
}

.gm-rail {
	padding-bottom: 0.5rem;
}

.gm-rail--strong .gm-rail__grid {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 960px) {
	.gm-rail--strong .gm-rail__grid {
		grid-template-columns: 1.2fr 1fr;
		gap: 1.75rem;
		align-items: start;
	}

	.gm-rail--strong .gm-rail__lead {
		padding-right: 1.5rem;
		border-right: 1px solid var(--gm-rule-soft);
	}

	.gm-rail--strong .gm-rail__lead .gm-card__media,
	.gm-rail--strong .gm-rail__lead .gm-card .gm-media-placeholder {
		min-height: 14rem;
	}
}

.gm-rail__list {
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
}

.gm-rail__list--stack {
	gap: 1.25rem;
}

.gm-rail__list .gm-teaser {
	padding-block: 0;
	border-bottom: 0;
}

.gm-rail__list .gm-teaser:first-child {
	padding-top: 0;
}

.gm-rail__list .gm-teaser:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.gm-rail__trio {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.gm-rail__trio {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}
}

.gm-rail__trio .gm-card__excerpt {
	-webkit-line-clamp: 2;
}

.gm-rail-feature {
	margin: 0;
}

.gm-rail-feature__link {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	text-decoration: none;
	color: inherit;
}

.gm-rail-feature__media {
	margin: 0;
	overflow: hidden;
	width: 100%;
	background: var(--gm-border);
}

.gm-rail-feature__img,
.gm-rail-feature__media .gm-media-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: var(--gm-ratio-hero);
	object-fit: cover;
	object-position: center;
}

.gm-rail-feature__media .gm-media-placeholder {
	min-height: 12rem;
	background: linear-gradient(135deg, var(--gm-border), #c4c4c4);
}

.gm-rail-feature__body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	max-width: 46rem;
}

.gm-rail-feature__title {
	font-family: var(--gm-font-display);
	font-size: var(--gm-text-feature);
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0;
	transition: color var(--gm-transition);
}

.gm-rail-feature__link:hover .gm-rail-feature__title {
	color: var(--gm-accent);
}

.gm-rail-feature__excerpt {
	margin: 0;
	color: var(--gm-muted);
	font-size: var(--gm-text-deck);
	font-family: var(--gm-font);
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (min-width: 960px) {
	.gm-rail-feature__title {
		font-size: var(--gm-text-hero);
	}
}

.gm-teaser {
	background: transparent;
}

.gm-teaser__link {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	text-decoration: none;
	color: inherit;
}

.gm-teaser__title {
	font-family: var(--gm-font-display);
	font-size: var(--gm-text-list);
	margin: 0;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
	transition: color var(--gm-transition);
}

.gm-teaser__link:hover .gm-teaser__title {
	color: var(--gm-accent);
}

.gm-teaser .gm-kicker {
	align-self: flex-start;
}

.gm-teaser .gm-meta {
	margin-top: 0;
	padding-top: 0;
}

/* --------------------------------------------------------------------------
   Editorial destacado
   -------------------------------------------------------------------------- */

.gm-editorial {
	background: var(--gm-surface);
	border-top: 1px solid var(--gm-rule-soft);
	border-bottom: 0;
	padding: 2rem 1.35rem;
}

@media (min-width: 768px) {
	.gm-editorial {
		padding: 2.5rem 2.5rem;
	}
}

.gm-editorial__inner {
	max-width: 42rem;
	margin-inline: auto;
	text-align: center;
}

.gm-editorial__kicker {
	margin: 0 0 0.75rem;
	font-family: var(--gm-font);
	font-size: var(--gm-text-kicker);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gm-accent);
}

.gm-editorial__title {
	font-family: var(--gm-font-editorial);
	font-size: var(--gm-text-feature);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
	margin: 0 0 0.85rem;
}

.gm-editorial__title a {
	color: var(--gm-text);
	text-decoration: none;
	transition: color var(--gm-transition);
}

.gm-editorial__title a:hover {
	color: var(--gm-accent);
}

.gm-editorial__excerpt {
	margin: 0 0 1.25rem;
	font-size: var(--gm-text-deck);
	line-height: 1.65;
	color: var(--gm-muted);
	font-family: var(--gm-font-editorial);
	font-style: italic;
	font-weight: 500;
}

.gm-editorial__cta {
	display: inline-block;
	font-family: var(--gm-font);
	font-size: var(--gm-text-ui);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	background: var(--gm-accent);
	padding: 0.65rem 1.25rem;
	border-radius: 2px;
	transition: background var(--gm-transition);
}

.gm-editorial__cta:hover {
	background: var(--gm-accent-hover);
	color: #fff;
}

.gm-editorial__archive {
	display: block;
	margin-top: 0.85rem;
	font-size: var(--gm-text-ui);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--gm-muted);
}

.gm-editorial__archive:hover {
	color: var(--gm-accent);
}

/* --------------------------------------------------------------------------
   Masthead / header sticky
   -------------------------------------------------------------------------- */

.gm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--gm-surface);
	border-bottom: 1px solid var(--gm-border);
	transition: box-shadow var(--gm-transition);
}

.gm-header.is-scrolled {
	box-shadow: var(--gm-shadow-sticky);
}

.gm-masthead {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"center right"
		"left left"
		"actions actions";
	gap: 0.75rem 1rem;
	align-items: center;
	padding-block: 0.85rem;
	border-bottom: 1px solid var(--gm-border);
}

.gm-masthead__left {
	grid-area: left;
}

.gm-masthead__center {
	grid-area: center;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.gm-masthead__right {
	grid-area: right;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
}

.gm-masthead__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.55rem;
	font-size: var(--gm-text-meta);
	color: var(--gm-text);
}

.gm-masthead__date {
	margin: 0;
	font-weight: 500;
	color: var(--gm-text);
}

.gm-masthead__sep {
	color: var(--gm-muted);
	font-weight: 400;
}

.gm-masthead__weather {
	margin: 0;
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.45rem;
}

.gm-masthead__temp strong {
	font-weight: 700;
}

.gm-masthead__temp-f {
	color: var(--gm-muted);
	font-weight: 500;
}

.gm-masthead__weather-icon {
	display: inline-block;
	width: 1.1rem;
	height: 0.7rem;
	border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
	background: #7dd3fc;
	box-shadow: 0.35rem 0 0 -0.1rem #bae6fd, -0.3rem 0.05rem 0 -0.15rem #bae6fd;
	flex-shrink: 0;
}

.gm-masthead__weather-label {
	color: var(--gm-text);
}

.gm-brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--gm-text);
	font-family: var(--gm-font-display);
	font-weight: 700;
	font-size: var(--gm-text-section);
	letter-spacing: -0.01em;
	line-height: 1.05;
}

.gm-brand:hover {
	color: var(--gm-accent);
}

.gm-brand img,
.gm-brand .custom-logo {
	max-height: 4.25rem;
	width: auto;
	max-width: 14rem;
	object-fit: contain;
}

.gm-masthead__actions {
	grid-area: actions;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem;
	width: 100%;
	position: relative;
}

.gm-masthead__search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.gm-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 2px;
	border: 1px solid var(--gm-border);
	background: var(--gm-bg);
	color: var(--gm-text);
	transition: color var(--gm-transition), border-color var(--gm-transition), background var(--gm-transition);
}

.gm-search-toggle:hover,
.gm-masthead__search.is-open .gm-search-toggle {
	color: var(--gm-accent);
	border-color: var(--gm-accent);
	background: var(--gm-accent-soft);
}

.gm-search-toggle__icon {
	display: block;
}

.gm-masthead__search-panel {
	position: absolute;
	top: calc(100% + 0.4rem);
	right: 0;
	z-index: 120;
	width: min(18rem, calc(100vw - 2rem));
	padding: 0.65rem;
	background: var(--gm-surface);
	border: 1px solid var(--gm-border);
	box-shadow: var(--gm-shadow-sticky);
}

.gm-masthead__search-panel[hidden] {
	display: none !important;
}

.gm-masthead__search-panel .search-form {
	display: flex;
	gap: 0.35rem;
	margin: 0;
}

.gm-masthead__search-panel .search-field {
	flex: 1;
	min-width: 0;
	padding: 0.45rem 0.65rem;
	border: 1px solid var(--gm-border);
	border-radius: 2px;
	background: var(--gm-bg);
	color: var(--gm-text);
	font: inherit;
	font-size: var(--gm-text-ui);
}

.gm-masthead__search-panel .search-submit {
	padding: 0.45rem 0.7rem;
	border-radius: 2px;
	background: var(--gm-text);
	color: var(--gm-surface);
	font-weight: 700;
	font-size: var(--gm-text-ui);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.gm-live-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.9rem;
	border-radius: 2px;
	background: var(--gm-live);
	color: var(--text-inverse);
	font-size: var(--gm-text-ui);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background var(--gm-transition);
}

.gm-live-btn:hover {
	background: var(--gm-live-hover);
	color: var(--text-inverse);
}

.gm-live-btn__dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	animation: gm-live-pulse 1.4s ease-out infinite;
}

@keyframes gm-live-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
	}
	70% {
		box-shadow: 0 0 0 0.45rem rgba(255, 255, 255, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
	}
}

.gm-header__nav-bar {
	position: relative;
	border-top: 0;
	border-bottom: 1px solid var(--gm-rule-soft);
	background: var(--gm-surface);
}

.gm-header__nav-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
}

.gm-nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 2px;
	border: 1px solid var(--gm-border);
	background: var(--gm-bg);
}

.gm-nav-toggle__bar {
	display: block;
	width: 1.05rem;
	height: 2px;
	background: var(--gm-text);
	position: relative;
}

.gm-nav-toggle__bar::before,
.gm-nav-toggle__bar::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--gm-text);
}

.gm-nav-toggle__bar::before {
	top: -5px;
}

.gm-nav-toggle__bar::after {
	top: 5px;
}

.gm-nav {
	display: none;
	width: 100%;
}

.gm-nav.is-open {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 110;
	background: var(--gm-surface);
	border-bottom: 1px solid var(--gm-border);
	padding: 0.75rem 1rem 1rem;
	box-shadow: var(--gm-shadow-sticky);
}

.gm-nav .menu {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.gm-nav a {
	display: block;
	padding: 0.7rem 0.35rem;
	border-bottom: 1px solid var(--gm-border);
	color: var(--gm-text);
	text-decoration: none;
	font-weight: 600;
	font-size: var(--gm-text-ui);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.gm-nav a:hover,
.gm-nav .current-menu-item > a,
.gm-nav .current_page_item > a {
	color: var(--gm-accent);
	background: transparent;
}

@media (min-width: 900px) {
	.gm-masthead {
		grid-template-columns: 1fr auto 1fr;
		grid-template-areas: "left center right";
		gap: 1rem 1.5rem;
		padding-block: 1rem;
	}

	.gm-masthead__center {
		align-items: center;
		text-align: center;
	}

	.gm-brand img,
	.gm-brand .custom-logo {
		max-height: 6rem;
		max-width: 18rem;
	}

	.gm-masthead__right {
		flex-direction: column;
		align-items: flex-end;
	}

	.gm-nav-toggle {
		display: none;
	}

	.gm-masthead__actions {
		justify-content: flex-end;
		width: auto;
	}

	.gm-nav,
	.gm-nav.is-open {
		display: block;
		position: static;
		padding: 0;
		border: 0;
		box-shadow: none;
		background: transparent;
	}

	.gm-nav .menu {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		gap: 0;
	}

	.gm-nav .menu > li:not(:last-child)::after {
		content: "";
		display: inline-block;
		width: 1px;
		height: 0.85em;
		margin-inline: 0.15rem;
		background: var(--gm-border);
		vertical-align: middle;
	}

	.gm-nav .menu > li {
		display: inline-flex;
		align-items: center;
	}

	.gm-nav a {
		padding: 0.65rem 0.85rem;
		border-bottom: 0;
	}
}

/* --------------------------------------------------------------------------
   En Vivo page
   -------------------------------------------------------------------------- */

.gm-envivo-page {
	padding-block: 1.5rem 3rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.gm-envivo-page__lead {
	margin: 0;
	color: var(--gm-muted);
	max-width: 40rem;
}

.gm-envivo-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.gm-envivo-grid--radio {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.gm-envivo-grid--radio {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gm-envivo-grid--tv {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.gm-envivo-card {
	background: var(--gm-surface);
	border: 1px solid var(--gm-border);
	padding: 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.gm-envivo-card__header {
	display: grid;
	grid-template-columns: 4rem 1fr;
	grid-template-rows: auto auto;
	gap: 0.35rem 0.85rem;
	align-items: center;
}

.gm-envivo-card__logo {
	grid-row: 1 / span 2;
	width: 4rem;
	height: 4rem;
	object-fit: contain;
	background: var(--gm-bg);
}

.gm-envivo-card__logo--placeholder {
	background: linear-gradient(135deg, var(--gm-border), #c4c4c4);
}

.gm-envivo-card__title {
	margin: 0;
	font-family: var(--gm-font-display);
	font-size: var(--gm-text-card);
}

.gm-envivo-card__type {
	font-size: var(--gm-text-kicker);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gm-accent);
}

.gm-envivo-audio,
.gm-envivo-video {
	width: 100%;
}

.gm-envivo-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.gm-envivo-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* --------------------------------------------------------------------------
   Hero editorial
   -------------------------------------------------------------------------- */

.gm-hero {
	position: relative;
	display: grid;
	border-radius: 0;
	overflow: hidden;
	background: var(--gm-surface);
	border: 1px solid var(--gm-border);
	box-shadow: none;
	min-height: 16rem;
}

.gm-hero__link {
	display: grid;
	text-decoration: none;
	color: inherit;
	isolation: isolate;
}

.gm-hero__media,
.gm-hero .gm-media-placeholder {
	grid-area: 1 / 1;
	width: 100%;
	aspect-ratio: var(--gm-ratio-hero);
	object-fit: cover;
	object-position: center;
	min-height: 16rem;
}

.gm-hero .gm-media-placeholder {
	background: linear-gradient(135deg, #2a2a2a 0%, #121212 55%, #3f0a0a 100%);
}

.gm-hero__overlay {
	grid-area: 1 / 1;
	align-self: end;
	padding: 1.35rem 1.25rem 1.5rem;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 8%, rgba(0, 0, 0, 0.4) 55%, transparent 100%);
	color: #f5f5f5;
	z-index: 1;
}

.gm-hero__title {
	font-family: var(--gm-font-display);
	font-size: var(--gm-text-hero);
	margin: 0.35rem 0 0.55rem;
	color: #fff;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.gm-hero__excerpt {
	margin: 0;
	max-width: 40rem;
	color: rgba(245, 245, 245, 0.88);
	font-size: var(--gm-text-deck);
	font-family: var(--gm-font);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gm-hero .gm-meta {
	color: rgba(245, 245, 245, 0.72);
	margin-top: 0.65rem;
}

.gm-hero .gm-meta a {
	color: inherit;
}

@media (min-width: 768px) {
	.gm-hero__media,
	.gm-hero .gm-media-placeholder {
		aspect-ratio: var(--gm-ratio-hero);
		min-height: 22rem;
	}

	.gm-hero__overlay {
		padding: 2.25rem 2.5rem 2.35rem;
	}
}

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */

.gm-grid {
	display: grid;
	gap: 1.5rem 1.25rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.gm-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.gm-grid--secondary {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.gm-card {
	background: var(--gm-surface);
	border: 0;
	border-top: 1px solid var(--gm-rule-soft);
	border-radius: 0;
	overflow: hidden;
	box-shadow: none;
	transition: border-color var(--gm-transition);
}

.gm-card:hover {
	transform: none;
	box-shadow: none;
	border-top-color: var(--gm-accent);
}

.gm-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.gm-card__media,
.gm-card .gm-media-placeholder {
	width: 100%;
	aspect-ratio: var(--gm-ratio-story);
	object-fit: cover;
	object-position: center;
	background: var(--gm-border);
}

.gm-rail--strong .gm-rail__lead .gm-card__media,
.gm-rail--strong .gm-rail__lead .gm-card .gm-media-placeholder {
	aspect-ratio: var(--gm-ratio-story);
	width: 100%;
}

.gm-card .gm-media-placeholder {
	background: linear-gradient(135deg, #e5e7eb, #c4c4c4);
}

.gm-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 0.9rem 0 0.25rem;
	flex: 1;
}

.gm-card__title {
	font-family: var(--gm-font-display);
	font-size: var(--gm-text-card);
	margin: 0;
	letter-spacing: -0.01em;
	font-weight: 700;
	transition: color var(--gm-transition);
}

.gm-card:hover .gm-card__title {
	color: var(--gm-accent);
}

.gm-card__excerpt {
	margin: 0;
	color: var(--gm-muted);
	font-size: var(--gm-text-body);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gm-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.85rem;
	font-family: var(--gm-font);
	font-size: var(--gm-text-meta);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gm-muted);
	margin-top: auto;
	padding-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   Sidebar / widgets
   -------------------------------------------------------------------------- */

.gm-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.65rem;
	min-width: 0;
}

.gm-sidebar-fuel {
	min-width: 0;
}

.gm-side-panel {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}

.gm-side-panel__title {
	font-family: var(--gm-font);
	font-size: var(--gm-text-kicker);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gm-text);
	margin: 0 0 0.9rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--gm-rule-soft);
}

.gm-side-panel__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.gm-side-panel__list--rank {
	gap: 0.75rem;
	counter-reset: none;
}

.gm-side-item__link {
	display: grid;
	grid-template-columns: 4.75rem 1fr;
	gap: 0.7rem;
	align-items: start;
	text-decoration: none;
	color: inherit;
}

.gm-side-item__media {
	display: block;
	overflow: hidden;
	background: var(--gm-border);
	width: 4.75rem;
}

.gm-side-item__img,
.gm-side-item__media .gm-media-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: var(--gm-ratio-thumb);
	object-fit: cover;
	object-position: center;
}

.gm-side-item__media .gm-media-placeholder {
	min-height: 3.5rem;
	background: linear-gradient(135deg, var(--gm-border), #c4c4c4);
}

.gm-side-item__title {
	font-family: var(--gm-font-display);
	font-size: var(--gm-text-list);
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.01em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color var(--gm-transition);
}

.gm-side-item__link:hover .gm-side-item__title {
	color: var(--gm-accent);
}

.gm-side-rank__link {
	display: grid;
	grid-template-columns: 1.75rem 1fr;
	gap: 0.55rem;
	align-items: start;
	text-decoration: none;
	color: inherit;
}

.gm-side-rank__num {
	font-family: var(--gm-font-display);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--gm-accent);
	letter-spacing: -0.02em;
}

.gm-side-rank__title {
	font-family: var(--gm-font-display);
	font-size: var(--gm-text-list);
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.01em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color var(--gm-transition);
}

.gm-side-rank__link:hover .gm-side-rank__title {
	color: var(--gm-accent);
}

.gm-side-panel__list--links {
	gap: 0.7rem;
}

.gm-side-link__a {
	display: block;
	font-family: var(--gm-font-display);
	font-size: var(--gm-text-list);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.01em;
	text-decoration: none;
	color: var(--gm-text);
	padding-left: 0.75rem;
	border-left: 2px solid var(--gm-rule-soft);
	transition: color var(--gm-transition), border-color var(--gm-transition);
}

.gm-side-link__a:hover {
	color: var(--gm-accent);
	border-left-color: var(--gm-accent);
}

.gm-widget {
	background: var(--gm-surface);
	border: 1px solid var(--gm-border);
	border-radius: 0;
	padding: 1.1rem 1.15rem 1.2rem;
}

.gm-widget__title {
	font-family: var(--gm-font);
	font-size: var(--gm-text-kicker);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 0.85rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid var(--gm-rule-soft);
}

.gm-widget ul {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.gm-widget a {
	color: var(--gm-text);
	text-decoration: none;
	font-size: var(--gm-text-list);
	font-weight: 600;
	font-family: var(--gm-font-display);
	line-height: 1.35;
}

.gm-widget a:hover {
	color: var(--gm-accent);
}

.gm-widget .search-form {
	display: flex;
	gap: 0.5rem;
}

.gm-widget .search-field {
	flex: 1;
	min-width: 0;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--gm-border);
	border-radius: 2px;
	background: var(--gm-bg);
	color: var(--gm-text);
	font: inherit;
}

.gm-widget .search-submit {
	padding: 0.55rem 0.9rem;
	border-radius: 2px;
	background: var(--gm-accent);
	color: #fff;
	font-weight: 700;
	font-size: var(--gm-text-ui);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: background var(--gm-transition);
}

.gm-widget .search-submit:hover {
	background: var(--gm-accent-hover);
}

/* --------------------------------------------------------------------------
   Single / index
   -------------------------------------------------------------------------- */

.gm-page-title {
	font-family: var(--gm-font-display);
	font-size: var(--gm-text-feature);
	margin: 0 0 1.25rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid var(--gm-rule-soft);
}

.gm-empty {
	padding: 2rem;
	border: 1px dashed var(--gm-border);
	border-radius: 0;
	color: var(--gm-muted);
	text-align: center;
}

.gm-article {
	background: var(--gm-surface);
	border: 1px solid var(--gm-border);
	border-radius: 0;
	overflow: hidden;
}

.gm-article__header {
	padding: 1.5rem 1.25rem 0;
}

@media (min-width: 768px) {
	.gm-article__header {
		padding: 2rem 2.25rem 0;
	}
}

.gm-article__title {
	font-family: var(--gm-font-display);
	font-size: var(--gm-text-hero);
	margin: 0.5rem 0 0.75rem;
	letter-spacing: -0.01em;
}

.single .gm-article.category-editorial .gm-article__title,
.single .gm-article.category-opinion .gm-article__title {
	font-family: var(--gm-font-editorial);
	letter-spacing: -0.01em;
	font-weight: 700;
}

.single .gm-article.category-editorial .entry-content,
.single .gm-article.category-editorial .gm-article__content,
.single .gm-article.category-opinion .entry-content,
.single .gm-article.category-opinion .gm-article__content {
	font-family: var(--gm-font-editorial);
	font-size: var(--gm-text-deck);
	line-height: 1.75;
}

.gm-article__header .gm-meta {
	padding-bottom: 1rem;
	margin-top: 0.75rem;
	border-bottom: 1px solid var(--gm-border);
}

.gm-article__featured {
	margin: 1.25rem 0 0;
}

.gm-article__featured img {
	width: 100%;
	aspect-ratio: var(--gm-ratio-hero);
	object-fit: cover;
	object-position: center;
}

.gm-article__content {
	padding: 1.5rem 1.25rem 2rem;
	max-width: 65ch;
	font-size: var(--gm-text-body);
	line-height: 1.8;
}

@media (min-width: 768px) {
	.gm-article__content {
		padding: 1.75rem 2.25rem 2.5rem;
	}
}

.gm-article__content > *:first-child {
	margin-top: 0;
}

.gm-article__content > p:first-of-type::first-letter {
	font-family: var(--gm-font-display);
	float: left;
	font-size: 3.4em;
	line-height: 0.8;
	font-weight: 700;
	padding: 0.08em 0.12em 0 0;
	color: var(--gm-text);
}

.gm-article__content h2,
.gm-article__content h3 {
	font-family: var(--gm-font-display);
	margin-top: 1.5em;
}

.gm-article__content img {
	border-radius: 0;
}

.gm-article__content a {
	font-weight: 600;
}

.gm-pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}

.gm-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.55rem;
	border-radius: 2px;
	border: 1px solid var(--gm-border);
	background: var(--gm-surface);
	color: var(--gm-text);
	text-decoration: none;
	font-size: var(--gm-text-ui);
	font-weight: 600;
}

.gm-pagination .page-numbers.current,
.gm-pagination .page-numbers:hover {
	background: var(--gm-accent);
	border-color: var(--gm-accent);
	color: #fff;
}

/* --------------------------------------------------------------------------
   Ad slots (NubeAds)
   -------------------------------------------------------------------------- */

.gm-ad-slot {
	width: 100%;
	max-width: 100%;
	margin-block: 0.25rem;
	overflow: hidden;
}

.gm-ad-band {
	padding-block: 0.75rem 0.25rem;
}

.gm-ad-band .gm-ad-slot {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 0;
}

.gm-ad-band .gm-ad-slot .nubeads-banner-wrap {
	margin-block: 0.5rem;
	width: 100%;
	max-width: 100%;
}

.gm-ad-slot .nubeads-banner-wrap {
	margin-block: 0.75rem;
}

.gm-sidebar .gm-ad-slot .nubeads-banner-wrap {
	margin-block: 0;
	padding-inline: 0;
}

.gm-article > .gm-ad-slot {
	padding-inline: 1.25rem;
}

@media (min-width: 768px) {
	.gm-article > .gm-ad-slot {
		padding-inline: 2.25rem;
	}
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.gm-footer {
	border-top: 1px solid var(--gm-rule-soft);
	background: var(--gm-surface);
	padding: 2rem 0;
	margin-top: auto;
}

.gm-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: flex-start;
}

@media (min-width: 640px) {
	.gm-footer__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.gm-footer__copy {
	margin: 0;
	color: var(--gm-muted);
	font-size: var(--gm-text-meta);
}

.gm-footer-nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
}

.gm-footer-nav a {
	color: var(--gm-muted);
	text-decoration: none;
	font-size: var(--gm-text-ui);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.gm-footer-nav a:hover {
	color: var(--gm-accent);
}

/* --------------------------------------------------------------------------
   Utilities / WordPress defaults
   -------------------------------------------------------------------------- */

.alignleft {
	float: left;
	margin: 0 1.25rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 1.25rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: var(--gm-text-meta);
	color: var(--gm-muted);
	margin-top: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
