/*
Theme Name: Huelva TV Portal
Theme URI: https://huelvatv.com/
Author: Huelva TV
Description: Tema informativo para television local con portada de noticias, directo, programacion, tiempo, agenda y television a la carta.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: huelva-tv-portal
Tags: news, custom-logo, featured-images, custom-menu, one-column, two-columns
*/

:root {
	--blue: #003f8f;
	--blue-dark: #002f73;
	--blue-soft: #eaf2fc;
	--red: #e50914;
	--text: #101826;
	--muted: #667085;
	--line: #dde3ec;
	--surface: #ffffff;
	--page: #f4f6f9;
	--ink-on-blue: #ffffff;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--page);
	color: var(--text);
	font-family: "Aptos", "Helvetica Neue", Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.45;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--blue);
}

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

.wrap {
	width: min(1480px, calc(100% - 64px));
	margin: 0 auto;
}

.skip-link,
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
	z-index: 20;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 10px 14px;
	background: #fff;
	clip: auto;
}

.top-strip {
	background: var(--blue-dark);
	color: var(--ink-on-blue);
	font-size: 14px;
}

.top-strip__inner,
.brand-row__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.today-line,
.social-line {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 40px;
}

.today-line span + span {
	padding-left: 18px;
	border-left: 1px solid rgba(255, 255, 255, .35);
}

.weather-mark::before {
	content: "☀";
	margin-right: 7px;
	color: #ffbf2f;
}

.social-line a {
	color: #fff;
	font-weight: 700;
	font-size: 13px;
}

.social-line .live-pill {
	align-self: stretch;
	display: inline-flex;
	align-items: center;
	padding: 0 24px;
	background: var(--red);
	text-transform: uppercase;
}

.brand-row {
	background: #fff;
	border-bottom: 1px solid var(--line);
}

.brand-row__inner {
	min-height: 104px;
}

.brand img {
	width: 310px;
	max-height: 78px;
	object-fit: contain;
	object-position: left center;
}

.brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.site-search {
	display: flex;
	flex: 1;
	max-width: 430px;
	height: 40px;
	border: 1px solid #c7ced9;
	background: #fff;
}

.site-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 0 16px;
	font: inherit;
	color: var(--text);
	outline: none;
}

.site-search button {
	width: 48px;
	border: 0;
	border-left: 1px solid var(--line);
	background: #fff;
	color: var(--muted);
	font-size: 22px;
	cursor: pointer;
}

.brand-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.outline-button,
.solid-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 18px;
	border: 1px solid var(--blue);
	border-radius: 3px;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0;
}

.outline-button {
	color: var(--blue);
	background: #fff;
}

.solid-button {
	color: #fff;
	background: var(--blue);
}

.solid-button:hover {
	color: #fff;
	background: #003678;
}

.wide {
	width: 100%;
}

.menu-toggle {
	display: none;
	border: 1px solid var(--line);
	background: #fff;
	padding: 9px 12px;
	font-weight: 700;
}

.main-nav,
.section-nav {
	background: #fff;
	border-bottom: 1px solid var(--line);
}

.main-nav ul,
.section-nav ul,
.site-footer ul {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav a {
	display: block;
	padding: 16px 20px 13px;
	border-bottom: 3px solid transparent;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 14px;
}

.main-nav .current-menu-item > a,
.main-nav a:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.section-nav {
	background: #f5f7fa;
}

.section-nav ul {
	justify-content: space-between;
	overflow-x: auto;
}

.section-nav a {
	display: block;
	white-space: nowrap;
	padding: 11px 20px;
	color: var(--blue);
	font-size: 13px;
	text-transform: uppercase;
}

.site-main {
	padding: 12px 0 0;
}

.lead-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(300px, .98fr) minmax(320px, .98fr);
	gap: 20px;
	align-items: stretch;
}

.hero-news__media {
	position: relative;
	display: block;
	min-height: 410px;
	height: 100%;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.hero-news__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .24) 58%, rgba(0, 0, 0, .05));
}

.red-tag,
.section-label,
.live-label {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	background: var(--blue);
	color: #fff;
	padding: 3px 7px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1;
}

.red-tag,
.live-label {
	background: var(--red);
}

.hero-news .red-tag {
	position: absolute;
	z-index: 1;
	top: 24px;
	left: 24px;
}

.hero-news__text {
	position: absolute;
	z-index: 1;
	left: 24px;
	bottom: 22px;
	width: min(680px, calc(100% - 48px));
	color: #fff;
}

.hero-news h1 {
	margin: 0 0 12px;
	max-width: 680px;
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.08;
	font-weight: 900;
	letter-spacing: 0;
}

.hero-news p {
	margin: 0 0 20px;
	max-width: 650px;
	font-size: 18px;
}

.hero-time,
.meta-time {
	color: #dfe6ef;
	font-size: 13px;
}

.meta-time {
	color: var(--muted);
}

.lead-list {
	display: grid;
	gap: 12px;
}

.lead-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 170px;
	gap: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
	background: #fff;
}

.lead-item h2 {
	margin: 7px 0 8px;
	font-size: 17px;
	line-height: 1.17;
	font-weight: 850;
}

.lead-item__image,
.news-card__image,
.archive-card__image {
	display: block;
	background-size: cover;
	background-position: center;
	background-color: #d8dee8;
}

.lead-item__image {
	min-height: 86px;
}

.front-rail {
	background: #fff;
}

.live-card {
	border: 1px solid var(--line);
	background: #fff;
}

.live-card h2,
.weather-box h2 {
	margin: 0;
	padding: 10px 14px;
	background: var(--red);
	color: #fff;
	font-size: 14px;
	text-transform: uppercase;
}

.live-player {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	margin: 12px;
	background-size: cover;
	background-position: center;
}

.live-player::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .18);
}

.play-button {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin: -36px 0 0 -36px;
	border-radius: 50%;
	background: #fff;
	color: #111;
	font-size: 30px;
	line-height: 1;
}

.live-label {
	position: absolute;
	z-index: 1;
	left: 10px;
	bottom: 10px;
}

.live-card__body {
	padding: 0 16px 16px;
}

.live-card__body h3 {
	margin: 0 0 5px;
	font-size: 19px;
	line-height: 1.2;
}

.live-card__body p {
	margin: 0 0 14px;
	color: var(--muted);
}

.small-link {
	display: block;
	margin-top: 10px;
	color: var(--blue);
	text-align: center;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 800;
}

.ticker {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	margin-top: 12px;
	background: #fff;
	border: 1px solid var(--line);
	min-height: 36px;
}

.ticker strong {
	padding-left: 16px;
	color: var(--red);
	text-transform: uppercase;
	font-size: 13px;
}

.ticker div {
	display: flex;
	overflow: hidden;
}

.ticker span {
	flex: 0 0 auto;
	padding: 0 24px;
	border-left: 1px solid var(--line);
	font-size: 13px;
	white-space: nowrap;
}

.ticker a {
	padding-right: 14px;
	color: var(--blue);
	font-size: 12px;
	font-weight: 800;
}

.content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	margin-top: 20px;
}

.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	border-bottom: 2px solid var(--line);
}

.section-heading h2 {
	margin: 0;
	padding-bottom: 8px;
	border-bottom: 3px solid var(--blue);
	color: var(--blue);
	font-size: 20px;
	text-transform: uppercase;
}

.section-heading a {
	color: var(--blue);
	font-size: 12px;
	font-weight: 800;
}

.card-grid {
	display: grid;
	gap: 14px;
}

.card-grid--four {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.news-card {
	background: #fff;
	border: 1px solid var(--line);
}

.news-card__image {
	aspect-ratio: 16 / 9;
}

.news-card__body {
	padding: 10px 12px 12px;
}

.news-card h3,
.program-card h3,
.archive-card h2 {
	margin: 7px 0 6px;
	font-size: 17px;
	line-height: 1.22;
}

.news-card p,
.archive-card p,
.site-footer p {
	margin: 0 0 9px;
	color: #3f4a5a;
	font-size: 14px;
}

.split-sections {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 22px;
}

.mini-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.news-card--compact .news-card__body {
	padding: 8px 9px 10px;
}

.news-card--compact h3 {
	font-size: 14px;
}

.program-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.program-card {
	background: #fff;
	border: 1px solid var(--line);
}

.program-card__image {
	position: relative;
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: center;
}

.program-card__image span {
	position: absolute;
	left: 50%;
	top: 50%;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin: -21px 0 0 -21px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
}

.program-card__image em {
	position: absolute;
	right: 6px;
	bottom: 6px;
	padding: 2px 5px;
	background: rgba(0, 0, 0, .72);
	color: #fff;
	font-style: normal;
	font-size: 11px;
}

.program-card h3 {
	padding: 0 9px 10px;
	font-size: 14px;
}

.side-column {
	display: grid;
	gap: 16px;
	align-content: start;
}

.weather-box,
.agenda-box,
.htv-widget {
	background: #fff;
	border: 1px solid var(--line);
}

.weather-box h2 {
	background: var(--blue);
}

.weather-now {
	display: grid;
	grid-template-columns: 82px auto 1fr;
	align-items: center;
	gap: 14px;
	padding: 16px;
	background: #0973c9;
	color: #fff;
}

.sun-icon {
	color: #ffbf2f;
	font-size: 54px;
	line-height: 1;
	text-align: center;
}

.weather-now strong {
	font-size: 31px;
}

.forecast-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--line);
}

.forecast-row span {
	padding: 10px;
	text-align: center;
	color: var(--muted);
	font-size: 12px;
}

.forecast-row span + span {
	border-left: 1px solid var(--line);
}

.forecast-row b {
	color: var(--blue);
	font-weight: 700;
}

.agenda-box {
	padding: 0 12px 12px;
}

.agenda-box .section-heading {
	margin: 0 -12px 12px;
	padding: 0 12px;
}

.agenda-item {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
}

.date-box {
	border-right: 1px solid var(--line);
	text-align: center;
	color: var(--blue);
	text-transform: uppercase;
}

.date-box strong {
	display: block;
	font-size: 27px;
	line-height: 1;
}

.agenda-item h3 {
	margin: 0 0 4px;
	font-size: 16px;
}

.agenda-item p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.ad-box {
	display: block;
	min-height: 118px;
	padding: 18px;
	background: linear-gradient(90deg, #648a9b, #d46e37);
	color: #fff;
	overflow: hidden;
}

.ad-box span,
.ad-box strong {
	display: block;
	font-size: 24px;
	line-height: 1.05;
	text-transform: uppercase;
}

.ad-box strong {
	font-size: 18px;
	text-transform: none;
}

.archive-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 26px;
	margin-top: 18px;
}

.archive-header h1,
.single-article h1 {
	margin: 0 0 16px;
	font-size: 38px;
	line-height: 1.1;
}

.archive-list {
	display: grid;
	gap: 16px;
}

.archive-card {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 18px;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--line);
}

.archive-card__image {
	aspect-ratio: 16 / 9;
}

.archive-sidebar {
	display: grid;
	gap: 16px;
	align-content: start;
}

.single-layout {
	max-width: 980px;
	margin-top: 28px;
}

.single-article {
	background: #fff;
	border: 1px solid var(--line);
	padding: 28px;
}

.single-meta {
	margin-bottom: 18px;
	color: var(--muted);
}

.single-hero {
	margin: 0 0 24px;
}

.entry-content {
	font-size: 18px;
	line-height: 1.72;
}

.entry-content a {
	color: var(--blue);
	text-decoration: underline;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin-top: 0;
	margin-bottom: 20px;
}

.tag-list {
	margin-top: 24px;
}

.tag-list a {
	display: inline-block;
	margin: 0 7px 7px 0;
	padding: 5px 8px;
	border: 1px solid var(--line);
	color: var(--blue);
	font-size: 13px;
}

.nav-links {
	display: flex;
	gap: 8px;
	margin: 20px 0;
}

.nav-links a,
.nav-links span {
	padding: 7px 10px;
	background: #fff;
	border: 1px solid var(--line);
}

.site-footer {
	margin-top: 34px;
	padding: 28px 0;
	background: #0c2344;
	color: #d7e2f1;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px;
	align-items: center;
}

.footer-logo {
	width: 190px;
	margin-bottom: 8px;
	filter: brightness(0) invert(1);
}

.site-footer a {
	color: #fff;
}

.site-footer ul {
	gap: 18px;
}

.htv-widget {
	padding: 12px;
}

.htv-widget .block-title {
	margin: 0 0 10px;
	color: var(--blue);
	font-size: 18px;
}

@media (max-width: 1180px) {
	.wrap {
		width: min(100% - 32px, 1480px);
	}

	.lead-layout,
	.content-grid,
	.archive-layout {
		grid-template-columns: 1fr;
	}

	.front-rail,
	.side-column,
	.archive-sidebar {
		max-width: none;
	}

	.card-grid--four {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.top-strip__inner,
	.brand-row__inner {
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
		padding: 12px 0;
	}

	.today-line,
	.social-line {
		min-height: auto;
		flex-wrap: wrap;
	}

	.brand img {
		width: 240px;
	}

	.site-search {
		max-width: none;
		width: 100%;
	}

	.brand-actions {
		width: 100%;
	}

	.brand-actions a {
		flex: 1;
	}

	.menu-toggle {
		display: inline-flex;
		justify-content: center;
	}

	.main-nav ul {
		display: none;
		flex-direction: column;
		align-items: stretch;
	}

	.main-nav ul.is-open {
		display: flex;
	}

	.main-nav a {
		border-bottom: 1px solid var(--line);
	}

	.section-nav .wrap {
		width: 100%;
	}

	.hero-news__media {
		min-height: 420px;
	}

	.lead-item {
		grid-template-columns: 1fr 130px;
	}

	.ticker {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 10px 0;
	}

	.ticker div {
		overflow-x: auto;
	}

	.split-sections,
	.program-grid {
		grid-template-columns: 1fr;
	}

	.archive-card {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.wrap {
		width: min(100% - 20px, 1480px);
	}

	.card-grid--four,
	.mini-grid {
		grid-template-columns: 1fr;
	}

	.hero-news h1 {
		font-size: 31px;
	}

	.hero-news p {
		font-size: 16px;
	}

	.lead-item {
		grid-template-columns: 1fr;
	}

	.lead-item__image {
		min-height: 160px;
		order: -1;
	}

	.weather-now {
		grid-template-columns: 64px 1fr;
	}

	.weather-now span:last-child {
		grid-column: 1 / -1;
	}

	.single-article {
		padding: 18px;
	}

	.archive-header h1,
	.single-article h1 {
		font-size: 30px;
	}
}
