/*
Theme Name: DeporteCentral
Theme URI: https://deportecentral.com/
Author: DeporteCentral
Description: Tema de noticias deportivas en español. Portada automática por secciones, franja de marcadores editable y una pantalla de ajustes en SP-Settings.
Version: 2.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: deportecentral
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-colors, translation-ready
*/

:root {
	--dc-blue: #1f4fe0;
	--dc-navy: #0b1c4b;
	--dc-amber: #ffb020;
	--dc-ice: #f2f5fa;
	--dc-line: #e3e8f0;
	--dc-muted: #5b6784;
	--dc-wrap: 1180px;
	--dc-gap: 28px;
	--dc-radius: 12px;
}

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

body {
	margin: 0;
	background: #fff;
	color: var(--dc-navy);
	font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--dc-blue); }
a:hover { color: var(--dc-navy); }

h1, h2, h3, h4 {
	font-weight: 800;
	letter-spacing: -0.017em;
	line-height: 1.15;
	margin: 0 0 .5em;
}

.dc-wrap {
	width: 100%;
	max-width: var(--dc-wrap);
	margin: 0 auto;
	padding: 0 20px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.dc-skip {
	position: absolute;
	left: -9999px;
	background: var(--dc-navy);
	color: #fff;
	padding: 12px 18px;
	z-index: 100;
}
.dc-skip:focus { left: 12px; top: 12px; }

:focus-visible {
	outline: 3px solid var(--dc-blue);
	outline-offset: 2px;
}

/* ---------- header ---------- */

.dc-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: #fff;
	border-bottom: 1px solid var(--dc-line);
}

.dc-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 68px;
}

.dc-brand img,
.dc-brand .custom-logo { max-height: 40px; width: auto; }

.dc-wordmark {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--dc-navy);
	text-decoration: none;
}
.dc-mark svg { width: 34px; height: 34px; display: block; }

.dc-nav {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-left: auto;
}

.dc-menu {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.dc-menu a {
	color: var(--dc-navy);
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	padding: 6px 0;
	display: inline-block;
	border-bottom: 2px solid transparent;
}
.dc-menu a:hover,
.dc-menu .current-menu-item > a {
	border-bottom-color: var(--dc-blue);
	color: var(--dc-blue);
}
.dc-menu .sub-menu {
	display: none;
	position: absolute;
	background: #fff;
	border: 1px solid var(--dc-line);
	border-radius: 10px;
	padding: 8px;
	list-style: none;
	min-width: 180px;
	box-shadow: 0 12px 30px rgba(11, 28, 75, .1);
}
.dc-menu li { position: relative; }
.dc-menu li:hover > .sub-menu,
.dc-menu li:focus-within > .sub-menu { display: block; }
.dc-menu .sub-menu a { padding: 6px 10px; display: block; border: 0; }

.dc-search input {
	border: 1px solid var(--dc-line);
	background: var(--dc-ice);
	border-radius: 999px;
	padding: 8px 16px;
	font: inherit;
	font-size: 14px;
	width: 150px;
	color: var(--dc-navy);
}

.dc-burger {
	display: none;
	margin-left: auto;
	background: none;
	border: 0;
	padding: 10px;
	cursor: pointer;
}
.dc-burger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--dc-navy);
	margin: 4px 0;
	transition: transform .18s ease, opacity .18s ease;
}
.dc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.dc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.dc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- score strip ---------- */

.dc-ticker {
	background: var(--dc-navy);
	color: #fff;
	font-size: 14px;
}
.dc-ticker__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 46px;
	padding-top: 6px;
	padding-bottom: 6px;
}
.dc-ticker__label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 700;
	color: var(--dc-amber);
	flex: none;
}
.dc-pulse {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--dc-amber);
	animation: dc-pulse 1.8s ease-in-out infinite;
}
@keyframes dc-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .25; }
}
@media (prefers-reduced-motion: reduce) {
	.dc-pulse { animation: none; }
}

.dc-ticker__rows {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-left: 18px;
	border-left: 1px solid rgba(255, 255, 255, .18);
	overflow-x: auto;
	scrollbar-width: none;
}
.dc-ticker__rows::-webkit-scrollbar { display: none; }
.dc-ticker__rows[data-lines="2"] { gap: 7px; }
.dc-ticker__rows > li {
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-right: 26px;
}

.dc-ticker__list {
	display: flex;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
	width: max-content;
}
.dc-ticker__list li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.dc-ticker__list a { color: inherit; text-decoration: none; display: flex; gap: 8px; align-items: center; }
.dc-ticker__list a:hover .dc-score { background: var(--dc-blue); }
.dc-team { color: #cdd6e8; }
.dc-score {
	font-weight: 800;
	background: rgba(255, 255, 255, .1);
	border-radius: 6px;
	padding: 2px 8px;
	transition: background .15s ease;
}
.dc-state { color: var(--dc-amber); font-size: 12px; font-weight: 700; }

/* ---------- layout ---------- */

.dc-main { padding: 34px 0 60px; }

.dc-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	align-items: start;
}
.dc-no-sidebar .dc-columns { grid-template-columns: minmax(0, 1fr); }
.dc-no-sidebar .dc-columns__side:empty { display: none; }

/* ---------- story blocks ---------- */

.dc-story__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 8 / 5;
	background: var(--dc-ice);
	border-radius: var(--dc-radius);
	overflow: hidden;
	color: #c9d3e6;
}
.dc-story__media img { width: 100%; height: 100%; object-fit: cover; }
.dc-placeholder { display: block; width: 30%; max-width: 92px; }
.dc-placeholder svg { width: 100%; height: auto; display: block; }
.dc-story--lead .dc-story__media { aspect-ratio: 5 / 3; }
.dc-story--lead .dc-placeholder { max-width: 120px; }

.dc-story__title { font-size: 20px; margin: 8px 0 6px; }
.dc-story__title a { color: inherit; text-decoration: none; }
.dc-story__title a:hover { color: var(--dc-blue); }
.dc-story__excerpt { color: var(--dc-muted); margin: 0 0 8px; font-size: 15px; }

.dc-label {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: var(--dc-blue);
	text-decoration: none;
	margin-bottom: 2px;
}
.dc-label:hover { text-decoration: underline; }

.dc-meta {
	font-size: 13px;
	color: var(--dc-muted);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}
.dc-dot {
	width: 3px; height: 3px;
	border-radius: 50%;
	background: currentColor;
	display: inline-block;
	opacity: .55;
}

/* hero */
.dc-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 40px;
	padding-bottom: 34px;
	margin-bottom: 34px;
	border-bottom: 3px solid var(--dc-navy);
}
.dc-story--lead .dc-story__title { font-size: clamp(28px, 3.4vw, 42px); margin-top: 14px; }
.dc-story--lead .dc-story__excerpt { font-size: 17px; }
.dc-hero__side { display: flex; flex-direction: column; gap: 20px; }

/* compact list item */
.dc-story--list {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--dc-line);
}
.dc-story--list:last-child { border-bottom: 0; padding-bottom: 0; }
.dc-story--list .dc-story__title { font-size: 16px; margin: 4px 0 4px; line-height: 1.3; }
.dc-story--list .dc-story__media { aspect-ratio: 4 / 3; }
.dc-story--list .dc-placeholder { max-width: 40px; }

/* section blocks */
.dc-block { margin-bottom: 46px; }
.dc-block__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	border-top: 3px solid var(--dc-navy);
	padding-top: 10px;
	margin-bottom: 22px;
}
.dc-section-title { font-size: 22px; margin: 0; }
.dc-more { font-size: 14px; font-weight: 600; text-decoration: none; }
.dc-more:hover { text-decoration: underline; }

.dc-block__body {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 36px;
}
.dc-block__rest { display: flex; flex-direction: column; gap: 18px; }

.dc-grid-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 32px 28px;
}

/* ---------- sidebar ---------- */

.dc-columns__side { position: sticky; top: 90px; }
.dc-popular { margin-bottom: 34px; }
.dc-popular .dc-section-title {
	border-top: 3px solid var(--dc-navy);
	padding-top: 10px;
	font-size: 18px;
	margin-bottom: 14px;
}
.dc-ranked {
	list-style: none;
	counter-reset: dc;
	margin: 0;
	padding: 0;
}
.dc-ranked li {
	counter-increment: dc;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--dc-line);
}
.dc-ranked li::before {
	content: counter(dc);
	font-size: 20px;
	font-weight: 800;
	color: var(--dc-amber);
	line-height: 1.2;
}
.dc-ranked a {
	color: var(--dc-navy);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.35;
}
.dc-ranked a:hover { color: var(--dc-blue); }

.widget { margin-bottom: 30px; font-size: 15px; }
.widget-title {
	font-size: 16px;
	border-top: 3px solid var(--dc-navy);
	padding-top: 10px;
	margin-bottom: 12px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--dc-line); }
.widget a { text-decoration: none; }
.widget a:hover { text-decoration: underline; }

/* ---------- article ---------- */

.dc-single { max-width: 800px; }
.dc-article__head { margin-bottom: 22px; }
.dc-article__title { font-size: clamp(30px, 4vw, 44px); margin: 6px 0 12px; }
.dc-article__standfirst {
	font-size: 20px;
	color: var(--dc-muted);
	line-height: 1.45;
	margin: 0 0 14px;
}
.dc-article__media { margin: 0 0 26px; }
.dc-article__media img { border-radius: var(--dc-radius); width: 100%; }
.dc-article__media figcaption {
	font-size: 13px;
	color: var(--dc-muted);
	padding-top: 8px;
}

.dc-content { font-size: 18px; line-height: 1.72; max-width: 68ch; }
.dc-content p { margin: 0 0 1.25em; }
.dc-content h2 { font-size: 26px; margin: 1.7em 0 .5em; }
.dc-content h3 { font-size: 21px; margin: 1.5em 0 .5em; }
.dc-content blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	border-left: 4px solid var(--dc-amber);
	font-size: 20px;
	color: var(--dc-navy);
}
.dc-content ul, .dc-content ol { padding-left: 1.3em; }
.dc-content li { margin-bottom: .4em; }
.dc-content img { border-radius: var(--dc-radius); }
.dc-content figcaption { font-size: 13px; color: var(--dc-muted); padding-top: 6px; }
.dc-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.dc-content th, .dc-content td { padding: 10px; border-bottom: 1px solid var(--dc-line); text-align: left; }
.dc-content th { background: var(--dc-ice); }

.dc-tags { font-size: 14px; color: var(--dc-muted); margin-top: 26px; }

.dc-prevnext {
	display: flex;
	gap: 20px;
	margin: 34px 0;
	padding: 20px 0;
	border-top: 1px solid var(--dc-line);
	border-bottom: 1px solid var(--dc-line);
	font-weight: 600;
}
.dc-prevnext__item { flex: 1; }
.dc-prevnext__item--next { text-align: right; }
.dc-prevnext em {
	display: block;
	font-style: normal;
	font-size: 13px;
	font-weight: 600;
	color: var(--dc-muted);
	margin-bottom: 3px;
}
.dc-prevnext a { text-decoration: none; }
.dc-prevnext a:hover { text-decoration: underline; }

/* ---------- archives, search, empty ---------- */

.dc-archive-head {
	border-top: 3px solid var(--dc-navy);
	padding-top: 12px;
	margin-bottom: 28px;
}
.dc-page-title { font-size: 32px; margin: 0; }
.dc-archive-desc { color: var(--dc-muted); font-size: 16px; }

.dc-empty {
	text-align: center;
	padding: 70px 20px;
	background: var(--dc-ice);
	border-radius: 18px;
	margin: 20px 0;
}
.dc-empty h1 { font-size: 28px; }
.dc-empty p { color: var(--dc-muted); max-width: 46ch; margin: 0 auto 18px; }

.dc-button {
	display: inline-block;
	background: var(--dc-blue);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	padding: 12px 22px;
	border-radius: 999px;
}
.dc-button:hover { background: var(--dc-navy); color: #fff; }

.search-form { display: flex; gap: 8px; justify-content: center; }
.search-form input[type="search"] {
	border: 1px solid var(--dc-line);
	border-radius: 999px;
	padding: 10px 18px;
	font: inherit;
	min-width: 220px;
}
.search-form input[type="submit"] {
	border: 0;
	border-radius: 999px;
	background: var(--dc-navy);
	color: #fff;
	font: inherit;
	font-weight: 700;
	padding: 10px 20px;
	cursor: pointer;
}

.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--dc-line);
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
}
.pagination .current {
	background: var(--dc-navy);
	border-color: var(--dc-navy);
	color: #fff;
}

/* ---------- comments ---------- */

.comments-area { margin-top: 40px; max-width: 68ch; }
.comments-title, .comment-reply-title { font-size: 20px; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { border-top: 1px solid var(--dc-line); padding: 16px 0; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: 1px solid var(--dc-line);
	border-radius: 10px;
	padding: 10px 14px;
	font: inherit;
}
.comment-form input[type="submit"] {
	border: 0;
	background: var(--dc-blue);
	color: #fff;
	font: inherit;
	font-weight: 700;
	padding: 12px 22px;
	border-radius: 999px;
	cursor: pointer;
}

/* ---------- footer ---------- */

.dc-footer {
	background: var(--dc-navy);
	color: #c3ccdf;
	padding: 46px 0 26px;
	font-size: 15px;
}
.dc-footer a { color: #fff; text-decoration: none; }
.dc-footer a:hover { color: var(--dc-amber); }
.dc-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 40px;
	padding-bottom: 30px;
}
.dc-footer__name { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.dc-footer__note { margin: 0 0 14px; max-width: 34ch; }
.dc-social { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 0; font-weight: 600; }
.dc-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 26px;
}
.dc-footer .widget-title { color: #fff; border-top-color: rgba(255, 255, 255, .22); font-size: 15px; }
.dc-footer .widget li { border-bottom-color: rgba(255, 255, 255, .12); }
.dc-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	border-top: 1px solid rgba(255, 255, 255, .16);
	padding-top: 18px;
	font-size: 14px;
}
.dc-footer__menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
	.dc-columns { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.dc-columns__side { position: static; }
	.dc-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.dc-block__body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 782px) {
	/*
	 * On a phone the whole strip scrolls as one piece and the label is pinned
	 * to the left edge, so "En vivo" stays put however far the scores scroll.
	 */
	.dc-ticker__inner {
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-behavior: auto;
		scrollbar-width: none;
		gap: 12px;
	}
	.dc-ticker__inner::-webkit-scrollbar { display: none; }

	.dc-ticker__label {
		position: sticky;
		left: 0;
		z-index: 2;
		background: var(--dc-navy);
		padding-right: 12px;
		box-shadow: 10px 0 10px -6px var(--dc-navy);
	}

	.dc-ticker__rows {
		flex: none;
		width: max-content;
		overflow: visible;
		padding-left: 0;
		border-left: 0;
	}

	/* Two rows is a lot of header on a phone: fold them back into one line. */
	.dc-ticker__rows[data-lines="2"][data-mobile="0"] {
		flex-direction: row;
		gap: 26px;
	}

	body { font-size: 16px; }
	.dc-burger { display: block; }
	.dc-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: #fff;
		border-bottom: 1px solid var(--dc-line);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 20px 18px;
		box-shadow: 0 18px 30px rgba(11, 28, 75, .08);
	}
	.dc-nav.is-open { display: flex; }
	.dc-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.dc-menu li { border-bottom: 1px solid var(--dc-line); }
	.dc-menu a { padding: 13px 0; font-size: 16px; }
	.dc-menu .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 8px 14px; }
	.dc-search { padding-top: 14px; }
	.dc-search input { width: 100%; }
	.dc-header__inner { position: relative; min-height: 60px; }
	.dc-footer__top { grid-template-columns: minmax(0, 1fr); }
	.dc-main { padding: 24px 0 44px; }
	.dc-grid-cards { gap: 26px 20px; }
}

@media (max-width: 480px) {
	.dc-grid-cards { grid-template-columns: minmax(0, 1fr); }
	.dc-story--list { grid-template-columns: 84px minmax(0, 1fr); }
	.dc-wordmark { font-size: 19px; }
	.dc-mark svg { width: 30px; height: 30px; }
}

/* ---------- score strip: league tag and live state ---------- */

.dc-league {
	font-size: 11px;
	font-weight: 700;
	color: #8fa3c8;
	letter-spacing: .01em;
}
.dc-ticker__list li.is-live .dc-score {
	background: var(--dc-blue);
	color: #fff;
}
.dc-ticker__list li.is-live .dc-state {
	color: var(--dc-amber);
}

/* ---------- visitor language toggle ---------- */

.dc-langpick {
	display: flex;
	gap: 2px;
	margin: 0;
	border: 1px solid var(--dc-line);
	border-radius: 999px;
	overflow: hidden;
	flex: none;
}
.dc-langpick a {
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	color: var(--dc-muted);
	text-decoration: none;
	line-height: 1;
}
.dc-langpick a.is-on {
	background: var(--dc-navy);
	color: #fff;
}
.dc-langpick a:not(.is-on):hover {
	background: var(--dc-ice);
	color: var(--dc-navy);
}
@media (max-width: 782px) {
	.dc-langpick { align-self: flex-start; margin-top: 14px; }
}

/* ---------- advertising ---------- */

.dc-ad {
	display: block;
	margin: 0 0 30px;
	text-align: center;
}
.dc-ad__label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: var(--dc-muted);
	letter-spacing: .03em;
	margin-bottom: 6px;
}
.dc-ad__slot {
	max-width: 100%;
	overflow: hidden;
}
.dc-ad__slot :is(iframe, ins, img) { max-width: 100%; }

.dc-ad--after-post {
	margin: 34px 0;
	padding: 24px 0;
	border-top: 1px solid var(--dc-line);
	border-bottom: 1px solid var(--dc-line);
}
.dc-ad--sidebar { margin-bottom: 34px; }
.dc-ad--footer { margin: 10px 0 40px; }
