/*
Theme Name: Marca Aula
Author: Máster de Periodismo Deportivo
Description: Diario deportivo de clase. La maqueta sigue la portada de Marca (cintillo, apertura, resultados, crónica, firma y clasificación) sin ser el sitio oficial ni usar su marca registrada.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marca-aula
Tags: news, custom-menu, featured-images, threaded-comments, translation-ready, editor-style
*/

:root {
	--ink: #161616;
	--muted: #5e5e5e;
	--line: #e6e6e6;
	--paper: #fff;
	--soft: #f6f6f6;
	--red: #e30613;
	--max: 1180px;
	--font: "Source Sans 3", "Segoe UI", sans-serif;
	--display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	color: var(--ink);
	background: var(--paper);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.5;
}

img, svg { max-width: 100%; height: auto; }
img.thumb, .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

a { color: inherit; }
button, input { font: inherit; }

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: #fff;
	padding: .5rem 1rem;
	z-index: 10000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.wrap {
	width: min(var(--max), calc(100% - 2rem));
	margin-inline: auto;
}

.ticker {
	display: flex;
	align-items: stretch;
	background: #111;
	color: #fff;
	min-height: 34px;
}
.ticker__label {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	padding: 0 .8rem;
	background: var(--red);
	font-family: var(--display);
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-size: .95rem;
}
.ticker__track {
	display: flex;
	gap: 1.4rem;
	overflow-x: auto;
	align-items: center;
	padding: 0 .8rem;
}
.ticker__track a {
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	font-size: .92rem;
}
.ticker__track a:hover { color: #ffb4b8; }

.site-header {
	background: #fff;
	border-top: 4px solid var(--red);
	border-bottom: 1px solid var(--line);
}

.header-bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	padding: .7rem 0 .35rem;
}
.today {
	margin: 0;
	color: var(--muted);
	font-size: .85rem;
	text-transform: capitalize;
}
.header-tools { justify-self: end; }

.brand {
	justify-self: center;
	font-family: var(--display);
	font-weight: 800;
	font-size: 4rem;
	line-height: .8;
	letter-spacing: -0.03em;
	color: #111;
	text-decoration: none;
}
.brand span { color: var(--red); }
.custom-logo-link { justify-self: center; line-height: 0; }
.custom-logo { max-height: 64px; width: auto; }

.menu-toggle {
	display: none;
	border: 0;
	background: #111;
	color: #fff;
	padding: .4rem .7rem;
	font-weight: 700;
	cursor: pointer;
}

.menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .15rem 1.1rem;
	list-style: none;
	margin: 0;
	padding: .55rem 0;
}
.menu a {
	text-decoration: none;
	font-weight: 700;
	font-size: .95rem;
}
.section-nav { background: var(--soft); }
.section-nav .menu { padding: .35rem 0; }
.section-nav a {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #444;
}
.primary-nav .current-menu-item > a,
.primary-nav .current-cat > a,
.section-nav .current-menu-item > a {
	box-shadow: inset 0 -3px 0 var(--red);
}

.search-form { display: flex; }
.search-form input[type="search"] {
	width: 150px;
	border: 1px solid #ccc;
	border-right: 0;
	padding: .35rem .5rem;
}
.search-form button {
	border: 0;
	background: #111;
	color: #fff;
	padding: .35rem .6rem;
	cursor: pointer;
}

.score-strip {
	display: flex;
	align-items: stretch;
	background: var(--soft);
	border-bottom: 1px solid var(--line);
}
.score-strip__label {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	padding: 0 .85rem;
	background: var(--red);
	color: #fff;
	text-decoration: none;
	font-family: var(--display);
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.score-strip__track {
	display: flex;
	gap: .45rem;
	overflow-x: auto;
	padding: .45rem;
}

.match-pill {
	flex: 0 0 auto;
	min-width: 176px;
	display: flex;
	flex-direction: column;
	gap: .1rem;
	background: #fff;
	border: 1px solid var(--line);
	text-decoration: none;
	padding: .35rem .55rem .4rem;
	color: inherit;
}
.match-pill.is-directo { border-color: var(--red); }
.match-pill__comp {
	font-size: .68rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 700;
}
.match-pill__line {
	display: flex;
	justify-content: space-between;
	gap: .8rem;
	font-size: .84rem;
}
.match-pill__line b { font-variant-numeric: tabular-nums; }
.match-pill__state {
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #444;
}
.match-pill.is-directo .match-pill__state,
.scorebug .is-directo,
.state.is-directo { color: var(--red); }

.dot {
	width: .45rem;
	height: .45rem;
	border-radius: 50%;
	background: var(--red);
	display: inline-block;
	margin-right: .25rem;
	box-shadow: 0 0 0 0 rgba(227, 6, 19, .7);
	animation: marca-pulse 1.4s infinite;
}
@keyframes marca-pulse {
	70% { box-shadow: 0 0 0 6px rgba(227, 6, 19, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.dot { animation: none; }
	html { scroll-behavior: auto; }
}

.home, .layout, .page-wrap { padding: 1.2rem 0 2.5rem; }
.layout, .home-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 1.8rem;
	align-items: start;
}

.card { min-width: 0; }
.card a { text-decoration: none; }
.card h2 a:hover,
.card h3 a:hover,
.hero-title:hover { color: var(--red); }
.card h2,
.card h3 {
	font-family: var(--display);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: .95;
	margin: .15rem 0 .35rem;
}
.card.is-hero h2 { font-size: clamp(2.1rem, 4vw, 3.55rem); }
.card.is-card h2,
.card.is-card h3 { font-size: 1.55rem; }
.card.is-row h3 { font-size: 1.2rem; margin: 0; }
.card.is-opinion h3 { font-size: 1.45rem; }

.thumb-wrap {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #141414;
}
.card.is-row .thumb-wrap { aspect-ratio: 4 / 3; }
.ph-svg { display: block; width: 100%; height: 100%; }

.play {
	position: absolute;
	left: .6rem;
	bottom: .6rem;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--red);
}
.play::after {
	content: "";
	position: absolute;
	left: .78rem;
	top: .55rem;
	border-style: solid;
	border-width: .45rem 0 .45rem .75rem;
	border-color: transparent transparent transparent #fff;
}
.duration {
	position: absolute;
	right: .5rem;
	bottom: .5rem;
	background: #111;
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	padding: .1rem .35rem;
}

.kicker {
	margin: 0;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.kicker__main { color: var(--red); margin-right: .4rem; }
.kicker__sec { color: var(--muted); text-decoration: none; }

.deck {
	margin: .35rem 0 .6rem;
	font-size: 1.15rem;
	line-height: 1.35;
	font-weight: 600;
}
.card.is-hero .deck { font-size: 1.28rem; }

.byline {
	margin: 0;
	color: #333;
	font-size: .82rem;
}
.byline > span,
.byline .role {
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--muted);
	font-size: .72rem;
	font-weight: 700;
}
.byline a { font-weight: 800; text-decoration: none; }
.byline a:hover { color: var(--red); }
.comments-count { color: var(--red); margin-left: .35rem; font-weight: 700; }

.dest-grid,
.card-grid,
.opinion-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.1rem 1rem;
}
.dest-grid { margin-top: 1.2rem; }
.card-grid { grid-template-columns: repeat(4, 1fr); }
.opinion-grid { grid-template-columns: 1fr 1fr; }

.card.is-row {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: .7rem;
	align-items: center;
}
.card.is-opinion {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: .8rem;
	align-items: center;
}
.avatar, .avatar-link img, .author-box img.avatar {
	border-radius: 50%;
	width: 72px;
	height: 72px;
	object-fit: cover;
}
.author-box img.avatar { width: 96px; height: 96px; }

.band, .opinion-band, .video-band, .related, .table-block { margin-top: 2rem; }
.opinion-band {
	background: var(--soft);
	padding: 1rem 1rem .3rem;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: max(1rem, calc(50vw - var(--max) / 2));
	padding-right: max(1rem, calc(50vw - var(--max) / 2));
}
.band-head, .band-title {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	border-top: 3px solid #111;
	margin: 0 0 .8rem;
	padding-top: .35rem;
}
.band-head h2, .band-title, .widget-title, .archive-head h1, .article h1, .scoreboard {
	font-family: var(--display);
}
.band-head h2 {
	margin: 0;
	font-size: 2rem;
	line-height: 1;
	font-weight: 800;
	letter-spacing: -.02em;
	text-transform: uppercase;
}
.band-head a { text-decoration: none; }
.more {
	color: var(--red);
	font-weight: 800;
	font-size: .82rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
}
.band-grid {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 1rem 1.4rem;
}
.band-rows { display: flex; flex-direction: column; gap: .85rem; }
.band-rows .card { padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
.band-rows .card:last-child { border-bottom: 0; padding-bottom: 0; }

.sidebar { display: flex; flex-direction: column; gap: 1.4rem; }
.widget-title {
	margin: 0 0 .4rem;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -.02em;
	text-transform: uppercase;
	border-top: 3px solid var(--red);
	padding-top: .3rem;
}
.widget-kicker, .widget-note {
	margin: 0 0 .4rem;
	color: var(--muted);
	font-size: .78rem;
}
.ranked {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: rank;
}
.ranked li {
	counter-increment: rank;
	display: grid;
	grid-template-columns: 1.5rem minmax(0, 1fr);
	gap: .45rem;
	padding: .65rem 0;
	border-bottom: 1px solid var(--line);
}
.ranked li::before {
	content: counter(rank);
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.5rem;
	color: var(--red);
	line-height: .9;
}
.ranked a { text-decoration: none; font-weight: 700; }
.ranked a:hover { color: var(--red); }

.standings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
.standings th {
	text-align: left;
	font-size: .68rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
	border-bottom: 2px solid #111;
	padding: .35rem;
}
.standings td { border-bottom: 1px solid var(--line); padding: .4rem .35rem; }
.standings .num { text-align: right; }
.standings .team { font-weight: 700; }
.standings .pts { font-weight: 800; }
.standings tr.zona-uefa td.pos { box-shadow: inset 3px 0 #0033a0; }
.standings tr.zona-descenso td.pos { box-shadow: inset 3px 0 var(--red); }
.standings-wrap { overflow-x: auto; }
.standings-empty, .standings-note, .empty-home { color: var(--muted); }
.widget-standings .more { display: inline-block; margin-top: .55rem; }

.archive-head { margin-bottom: 1rem; }
.archive-head h1 {
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	line-height: .92;
	margin: .2rem 0;
	font-weight: 800;
	letter-spacing: -.03em;
}
.archive-desc { color: #333; max-width: 46rem; }
.crumbs { font-size: .8rem; color: var(--muted); margin: 0 0 .4rem; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 700; }
.crumbs a:hover { color: var(--red); }
.crumbs span { margin: 0 .3rem; }

.article h1 {
	font-size: clamp(2.3rem, 5vw, 3.8rem);
	line-height: .92;
	margin: .15rem 0 .6rem;
	font-weight: 800;
	letter-spacing: -.03em;
}
.article .deck { font-size: 1.35rem; max-width: 42rem; }
.article-byline {
	display: flex;
	gap: .75rem;
	align-items: center;
	margin: .8rem 0 1rem;
}
.article-byline .avatar { width: 56px; height: 56px; }
.article-byline .name { font-weight: 800; text-decoration: none; display: block; }
.article-byline .role,
.article-byline .co,
.article-byline time { display: block; color: var(--muted); font-size: .85rem; }
.article-figure { margin: 0 0 1rem; }
.article-figure figcaption { color: var(--muted); font-size: .85rem; margin-top: .35rem; }
.article-figure .credit { font-weight: 700; }

.entry-content { font-size: 1.125rem; line-height: 1.65; }
.entry-content > p:first-of-type::first-letter {
	font-family: var(--display);
	font-weight: 800;
	float: left;
	font-size: 3.3rem;
	line-height: .8;
	padding: .15rem .4rem 0 0;
	color: var(--red);
}
.entry-content h2 {
	font-family: var(--display);
	font-size: 2rem;
	line-height: 1;
	margin: 1.4rem 0 .4rem;
}
.entry-content a { text-underline-offset: .15em; }
.entry-content a:hover { color: var(--red); }
.entry-content blockquote {
	margin: 1.2rem 0;
	padding: 0 0 0 1rem;
	border-left: 4px solid var(--red);
	font-family: var(--display);
	font-size: 1.8rem;
	line-height: 1.02;
	font-weight: 700;
}
.entry-content blockquote p { margin: 0; }
.entry-content blockquote p::first-letter { float: none; font-size: inherit; color: inherit; padding: 0; }

.tags { font-size: .85rem; }
.tags span {
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: .72rem;
	margin-right: .35rem;
}
.tags a {
	display: inline-block;
	margin: 0 .25rem .25rem 0;
	padding: .1rem .4rem;
	background: var(--soft);
	text-decoration: none;
	font-weight: 700;
}

.scorebug {
	border: 1px solid var(--line);
	border-left: 4px solid #111;
	padding: .6rem .8rem;
	margin: 0 0 1rem;
	max-width: 280px;
}
.scorebug p { margin: 0 0 .35rem; font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.scorebug__row {
	display: flex;
	justify-content: space-between;
	text-decoration: none;
	font-weight: 700;
	padding: .15rem 0;
}
.scorebug b { font-variant-numeric: tabular-nums; font-size: 1.2rem; }

.video-embed { margin: 0 0 1rem; }
.video-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }

.author-box {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 1rem;
	border-top: 3px solid #111;
	padding-top: .8rem;
	margin-top: 1.5rem;
}
.author-box h1, .author-box h2 {
	font-family: var(--display);
	font-size: 2rem;
	line-height: .95;
	margin: 0;
}
.author-box a { text-decoration: none; }
.author-box__label {
	margin: 0;
	color: var(--red);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.author-box .role { margin: .15rem 0; color: var(--muted); font-weight: 700; }
.author-box .is-missing { color: var(--muted); }

.match-single { max-width: 860px; }
.scoreboard { text-align: center; padding: 1rem 0 1.2rem; }
.scoreboard__meta, .scoreboard__place { color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; font-weight: 700; }
.scoreboard__teams {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 1rem;
	align-items: center;
	margin: .6rem 0;
}
.scoreboard .side { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.scoreboard .team { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: .95; }
.scoreboard__score strong {
	display: block;
	font-family: var(--display);
	font-size: clamp(3rem, 8vw, 5.5rem);
	line-height: .85;
	font-weight: 800;
}
.badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	color: #fff;
	font-family: var(--display);
	font-weight: 800;
	letter-spacing: .04em;
}
.chronicle-link { font-weight: 800; }
.chronicle-link a { color: var(--red); }
.chronicle-link.is-missing { color: var(--muted); font-weight: 600; }
.timeline { list-style: none; margin: 1rem 0; padding: 0; }
.timeline li {
	display: grid;
	grid-template-columns: 3.2rem 1fr;
	gap: .6rem;
	padding: .55rem 0;
	border-bottom: 1px solid var(--line);
}
.timeline .minute { font-weight: 800; font-variant-numeric: tabular-nums; }
.timeline .is-gol .minute { color: var(--red); }

.result-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.result-filters a {
	text-decoration: none;
	border: 1px solid var(--line);
	padding: .25rem .6rem;
	font-weight: 800;
	font-size: .8rem;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.result-filters .is-active { background: #111; color: #fff; border-color: #111; }
.results-list { display: grid; gap: .45rem; }
.results-list .match-pill { min-width: 0; }

.comments-area { margin-top: 2rem; border-top: 3px solid #111; padding-top: .6rem; }
.comments-area h2 { font-family: var(--display); font-size: 2rem; margin: 0 0 .6rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.comment-list .children { list-style: none; margin-left: 1.2rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: min(100%, 640px);
	display: block;
	padding: .45rem;
	border: 1px solid #ccc;
}
.comment-form .submit {
	background: var(--red);
	color: #fff;
	border: 0;
	padding: .5rem .9rem;
	font-weight: 800;
	cursor: pointer;
}

.navigation.pagination, .comments-pagination { margin-top: 1.2rem; }
.nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.nav-links a, .nav-links span {
	display: inline-block;
	padding: .25rem .55rem;
	border: 1px solid var(--line);
	text-decoration: none;
	font-weight: 700;
}
.nav-links .current { background: #111; color: #fff; }

.site-footer {
	background: #111;
	color: #fff;
	padding: 1.6rem 0 1rem;
	margin-top: 1rem;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr .6fr;
	gap: 1.5rem;
}
.site-footer .brand { color: #fff; font-size: 2.6rem; justify-self: start; }
.footer-note { color: #cfcfcf; max-width: 38rem; }
.site-footer .menu { justify-content: flex-start; flex-direction: column; gap: .35rem; padding: 0; }
.site-footer a { color: #fff; }
.legal { width: min(var(--max), calc(100% - 2rem)); margin: 1rem auto 0; color: #9a9a9a; font-size: .8rem; }

@media (max-width: 960px) {
	.layout, .home-top, .band-grid, .footer-grid { grid-template-columns: 1fr; }
	.card-grid { grid-template-columns: 1fr 1fr; }
	.sidebar { position: static; }
}

@media (max-width: 720px) {
	.menu-toggle { display: inline-flex; }
	.today { display: none; }
	.header-bar { grid-template-columns: auto 1fr auto; }
	.brand { font-size: 2.4rem; }
	.js #site-navs { display: none; }
	.js #site-navs.is-open { display: block; }
	#site-navs .menu { flex-direction: column; align-items: flex-start; padding-left: .2rem; }
	.dest-grid, .card-grid, .opinion-grid { grid-template-columns: 1fr; }
	.search-form input[type="search"] { width: 92px; }
	.scoreboard__teams { grid-template-columns: 1fr; }
	.opinion-band { margin-left: 0; margin-right: 0; padding-left: 1rem; padding-right: 1rem; }
}

@media print {
	.ticker, .site-header, .score-strip, .sidebar, .site-footer, .comments-area, .menu-toggle, .search-form { display: none !important; }
	.layout, .home-top { display: block; }
	body { font-size: 12pt; }
	a { text-decoration: none; }
}
