/*
Theme Name: Kryuja Consola
Theme URI: https://kryuja.org/
Author: Kryuja
Description: Kryuja's own theme: a mixing desk for digital marketing, with aluminium panels, channel strips, faders and level meters.
Version: 1.0.5
Requires at least: 6.6
Requires PHP: 8.2
License: GPL-2.0-or-later
Text Domain: kryuja-consola
*/

/* ── Type (OFL, shipped in the theme) ────────────────────────── */

@font-face {
	font-family: "Chivo";
	src: url("assets/fonts/chivo-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Chivo";
	src: url("assets/fonts/chivo-latin-ext.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Onest";
	src: url("assets/fonts/onest-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Onest";
	src: url("assets/fonts/onest-latin-ext.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ──────────────────────────────────────────────────── */

:root {
	--turquesa: #12a594;
	--enlace: #0b7a6d;
	--aluminio: #dde1e4;
	--aluminio-claro: #eef0f2;
	--regla: #b4bcc2;
	--apagado: #c6cdd2;
	--grafito: #20262b;
	--gris: #4f5a62;
	--pico: #e2574c;
	--cinta-papel: #f7f7f2;
	--papel: #ffffff;
	--titulos: "Chivo", "Arial Narrow", Arial, sans-serif;
	--texto: "Onest", "Segoe UI", Arial, sans-serif;
	--medida: 35rem;
	--ancho: 76rem;
	--margen: clamp(1rem, 4vw, 2.5rem);
}

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

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

body {
	margin: 0;
	background: var(--papel);
	color: var(--grafito);
	font-family: var(--texto);
	font-size: 1.125rem;
	line-height: 1.6;
	font-weight: 400;
	font-optical-sizing: auto;
}

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

a {
	color: var(--enlace);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
a:hover {
	text-decoration-thickness: 2px;
}

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

h1,
h2,
h3,
h4 {
	font-family: var(--titulos);
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0;
	text-wrap: balance;
}

p {
	margin: 0 0 1.1em;
}

.salto {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	background: var(--cinta-papel);
	color: var(--grafito);
	border: 2px solid var(--grafito);
	padding: 0.5rem 0.9rem;
	font-family: var(--titulos);
	font-weight: 700;
	text-decoration: none;
}
.salto:focus {
	top: 1rem;
}

.oculto {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ── Brushed aluminium panel ─────────────────────────────────── */

.panel {
	background-color: var(--aluminio);
	background-image:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 3px),
		repeating-linear-gradient(0deg, rgba(32, 38, 43, 0.035) 0 1px, transparent 1px 5px);
	border-top: 1px solid #f4f6f7;
	border-bottom: 1px solid var(--regla);
}

.interior {
	width: min(100% - 2 * var(--margen), var(--ancho));
	margin-inline: auto;
}

/* Tape: a piece of scribble tape with its name written on it. */
.marbete {
	display: inline-block;
	margin: 0;
	padding: 0.18rem 0.6rem 0.2rem;
	background: var(--cinta-papel);
	border: 1px solid var(--regla);
	border-radius: 2px;
	font-family: var(--titulos);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--grafito);
	box-shadow: 0 1px 0 rgba(32, 38, 43, 0.08);
}
a.marbete,
.marbete a {
	color: var(--grafito);
	text-decoration: none;
}
a.marbete:hover,
.marbete a:hover {
	text-decoration: underline;
}

/* ── Header: the plate with the logo and the tape strip ──────── */

.cabeza__placa {
	display: flex;
	justify-content: center;
	padding: 1.15rem var(--margen) 1.05rem;
}
.cabeza__logo {
	display: block;
	line-height: 0;
}
.cabeza__logo img {
	width: auto;
	height: 2.75rem;
}

.franja {
	background: var(--cinta-papel);
	border-top: 2px solid var(--grafito);
	border-bottom: 2px solid var(--grafito);
}
.franja ul,
.franja ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
}
.franja li + li {
	border-left: 1px solid var(--regla);
}
.franja a {
	display: block;
	height: 100%;
	padding: 0.7rem clamp(0.7rem, 2vw, 1.4rem) 0.75rem;
	font-family: var(--titulos);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.25;
	color: var(--grafito);
	text-decoration: none;
}
.franja a:hover {
	background: var(--papel);
}
.franja a:focus-visible {
	outline-offset: -4px;
}
/* Each channel's select lamp, lit on the current page. */
.franja--menu a::before {
	content: "";
	display: block;
	width: 1.6rem;
	height: 0.32rem;
	margin-bottom: 0.45rem;
	border-radius: 0.2rem;
	background: var(--apagado);
	box-shadow: inset 0 0 0 1px rgba(32, 38, 43, 0.25);
}
.franja--menu .current-menu-item > a::before,
.franja--menu .current-menu-parent > a::before,
.franja--menu .current-post-ancestor > a::before,
.franja--menu .current-category-ancestor > a::before,
.franja--menu a[aria-current]::before {
	background: var(--turquesa);
	box-shadow: inset 0 0 0 1px var(--grafito), 0 0 0 2px rgba(18, 165, 148, 0.25);
}

/* A guide's parts strip: numbered cells that lead to each section. */
.franja--partes ol {
	grid-auto-flow: row;
	grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
}
.franja--partes li {
	border-left: 1px solid var(--regla);
	border-bottom: 1px solid var(--regla);
	margin-bottom: -1px;
	margin-left: -1px;
}
.franja--partes a {
	display: flex;
	gap: 0.55rem;
	align-items: flex-start;
	font-size: 0.95rem;
}
.franja__num {
	flex: none;
	display: inline-grid;
	place-items: center;
	min-width: 1.7rem;
	height: 1.25rem;
	margin-top: 0.05rem;
	padding: 0 0.3rem;
	background: var(--turquesa);
	border: 2px solid var(--grafito);
	border-radius: 3px;
	font-size: 0.8rem;
	font-weight: 800;
	line-height: 1;
}
.franja__titulo {
	padding: 0.85rem 0 0;
	font-family: var(--titulos);
	font-weight: 700;
	font-size: 0.875rem;
	color: var(--gris);
}

/* ── Level meter and fader ───────────────────────────────────── */

.medidor {
	--nivel: 0.5;
	--alto: 10rem;
	position: relative;
	display: block;
	width: 0.7rem;
	height: var(--alto);
	background: repeating-linear-gradient(to top, var(--apagado) 0 0.5rem, transparent 0.5rem 0.68rem);
}
.medidor::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: calc(var(--nivel) * 100%);
	background: linear-gradient(to top, var(--turquesa) 0 calc(var(--alto) * 0.8), var(--pico) calc(var(--alto) * 0.8));
	background-size: 100% var(--alto);
	background-position: bottom;
	-webkit-mask: repeating-linear-gradient(to top, #000 0 0.5rem, transparent 0.5rem 0.68rem);
	mask: repeating-linear-gradient(to top, #000 0 0.5rem, transparent 0.5rem 0.68rem);
}
.medidor--tumbado {
	--ancho-medidor: 6rem;
	width: var(--ancho-medidor);
	height: 0.6rem;
	background: repeating-linear-gradient(to right, var(--apagado) 0 0.45rem, transparent 0.45rem 0.6rem);
}
.medidor--tumbado::after {
	top: 0;
	right: auto;
	height: 100%;
	width: calc(var(--nivel) * 100%);
	background: var(--turquesa);
	-webkit-mask: repeating-linear-gradient(to right, #000 0 0.45rem, transparent 0.45rem 0.6rem);
	mask: repeating-linear-gradient(to right, #000 0 0.45rem, transparent 0.45rem 0.6rem);
}

.fader {
	--nivel: 0.5;
	--alto: 10rem;
	position: relative;
	display: block;
	width: 2.4rem;
	height: var(--alto);
	/* The fader's scale to the left of the slot. */
	background:
		linear-gradient(var(--grafito), var(--grafito)) center / 0.4rem 100% no-repeat,
		repeating-linear-gradient(to top, var(--gris) 0 1px, transparent 1px 0.83rem) left / 0.45rem 100% no-repeat;
	border-radius: 0.2rem;
}
.fader__tapa {
	position: absolute;
	left: 50%;
	bottom: calc(var(--nivel) * (100% - 1.4rem));
	width: 2.2rem;
	height: 1.4rem;
	transform: translateX(-50%);
	background: var(--turquesa);
	border: 2px solid var(--grafito);
	border-radius: 0.25rem;
}
.fader__tapa::after {
	content: "";
	position: absolute;
	left: 0.3rem;
	right: 0.3rem;
	top: 50%;
	height: 2px;
	margin-top: -1px;
	background: var(--grafito);
}

/* ── Home: the channel desk ──────────────────────────────────── */

.mesa {
	padding: clamp(2rem, 5vw, 3.6rem) 0 clamp(2rem, 4vw, 3rem);
}
.mesa__cabeza {
	display: grid;
	gap: 1.1rem clamp(2rem, 5vw, 4.5rem);
}
@media (min-width: 60.01rem) {
	.mesa__cabeza {
		grid-template-columns: minmax(0, 1fr) minmax(16rem, 23rem);
		align-items: end;
	}
	.mesa__cabeza .mesa__entrada {
		margin: 0 0 0.35rem;
		padding-top: 0.9rem;
		border-top: 2px solid var(--grafito);
	}
}
.mesa__titulo {
	max-width: 17ch;
	font-size: clamp(2.35rem, 5.6vw, 4.6rem);
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -0.025em;
}
.mesa__entrada {
	max-width: 38rem;
	margin: 1.1rem 0 0;
	font-size: 1.2rem;
	color: var(--grafito);
}
.mesa__canales {
	list-style: none;
	margin: clamp(1.8rem, 4vw, 2.8rem) 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	border: 2px solid var(--grafito);
	border-radius: 6px;
	background: var(--aluminio-claro);
	overflow: hidden;
}
.tira {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 0 1.1rem;
	border-left: 1px solid var(--regla);
}
.tira:first-child {
	border-left: 0;
}
.tira .marbete {
	align-self: stretch;
	border: 0;
	border-bottom: 1px solid var(--regla);
	border-radius: 0;
	box-shadow: none;
	padding: 0.55rem 0.7rem;
	font-size: 0.95rem;
	text-align: center;
}
.tira__nivel {
	display: flex;
	align-items: flex-end;
	gap: 0.9rem;
	margin: 1.4rem 0 1.1rem;
}
.tira__perilla {
	width: 2.1rem;
	height: 2.1rem;
	margin-top: 1.1rem;
	border: 2px solid var(--grafito);
	border-radius: 50%;
	background:
		linear-gradient(var(--grafito), var(--grafito)) 50% 18% / 2px 38% no-repeat,
		radial-gradient(circle, #f4f6f7 0 55%, var(--aluminio) 56%);
	transform: rotate(var(--giro, 0deg));
}
.tira__notas {
	margin: 0;
	padding: 0 0.85rem;
	width: 100%;
	font-size: 0.875rem;
	line-height: 1.4;
}
.tira__notas dt {
	font-family: var(--titulos);
	font-weight: 800;
	font-size: 0.8rem;
	color: var(--gris);
}
.tira__notas dd {
	margin: 0 0 0.5rem;
}
.mesa__nota {
	margin: 0.6rem 0 0;
	font-size: 0.875rem;
	color: var(--gris);
	text-align: right;
}

/* ── Home: guides and the site's own text ───────────────────── */

.portada {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
@media (min-width: 60.01rem) {
	/* With one or two guides, the strips keep their width and the site's text sits beside them. */
	.portada--pocas {
		grid-template-columns: auto minmax(0, 36rem);
		justify-content: start;
	}
	.portada--pocas .modulos {
		grid-template-columns: repeat(var(--guias, 1), 19.5rem);
	}
	.portada:not(.portada--pocas) .portada__texto {
		display: grid;
		grid-template-columns: minmax(0, var(--medida)) minmax(0, 1fr);
		gap: 0 clamp(2rem, 5vw, 4rem);
		align-items: start;
	}
	.portada:not(.portada--pocas) .portada__texto .seccion-titulo {
		grid-column: 1 / -1;
	}
	.portada:not(.portada--pocas) .portada__texto .canal {
		margin-top: 0;
	}
}
.seccion-titulo {
	font-size: 1.6rem;
	font-weight: 800;
	margin-bottom: 1.2rem;
}

.modulos {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
	gap: 1.25rem;
}
.modulo {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 34rem;
	background: var(--papel);
	border: 2px solid var(--grafito);
	border-radius: 6px;
	overflow: hidden;
}
.modulo__cinta {
	padding: 0.55rem 0.9rem;
	background: var(--cinta-papel);
	border-bottom: 1px solid var(--regla);
	font-family: var(--titulos);
	font-weight: 700;
	font-size: 0.875rem;
}
.modulo__imagen {
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--aluminio-claro);
	border-bottom: 1px solid var(--regla);
}
.modulo__imagen img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.modulo__cuerpo {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.1rem 1.1rem 1rem;
}
.modulo__titulo {
	font-size: 1.4rem;
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: 0.7rem;
}
.modulo__titulo a {
	color: var(--grafito);
	text-decoration: none;
}
.modulo__titulo a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.modulo__titulo a:hover {
	text-decoration: underline;
}
.modulo:focus-within {
	outline: 3px solid var(--enlace);
	outline-offset: 3px;
}
.modulo__titulo a:focus-visible {
	outline: none;
}
.modulo__extracto {
	font-size: 1rem;
	color: var(--gris);
	margin-bottom: 1rem;
}
.lectura {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--regla);
	font-size: 0.875rem;
	color: var(--gris);
}
.lectura__nivel {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

.portada__texto {
	padding-top: 0.25rem;
}
.portada__texto .prosa {
	max-width: var(--medida);
}
.banda-final {
	padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}
.banda-final .canal {
	margin: 0 auto;
	max-width: 62rem;
}

/* ── Guide: head, parts and column ───────────────────────────── */

.pieza__cabeza {
	padding: clamp(1.8rem, 5vw, 3.2rem) 0 clamp(1.8rem, 4vw, 2.6rem);
}
.pieza__cabeza .interior {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}
.pieza__titulo {
	margin: 1rem 0 0;
	font-size: clamp(2rem, 4.2vw, 3.35rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.02em;
}
.pieza__entradilla {
	margin: 1rem 0 1.4rem;
	font-size: 1.2rem;
	max-width: 36rem;
}
.firma {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin: 0;
}
.firma img {
	width: 2.75rem;
	height: 2.75rem;
	flex: none;
}
.firma__nombre {
	margin: 0;
	font-family: var(--titulos);
	font-weight: 800;
	font-size: 1rem;
	line-height: 1.2;
}
.firma__papel {
	margin: 0;
	font-size: 0.9rem;
	color: var(--gris);
}
.fechas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.6rem;
	margin: 1rem 0 0;
	font-size: 0.9rem;
}
.fechas div {
	display: flex;
	gap: 0.4rem;
}
.fechas dt {
	font-family: var(--titulos);
	font-weight: 700;
	color: var(--gris);
}
.fechas dd {
	margin: 0;
}
.pieza__portada {
	margin: 0;
	padding: 0.6rem;
	background: var(--papel);
	border: 2px solid var(--grafito);
	border-radius: 6px;
}
.pieza__portada img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: contain;
}

.pieza__retorno {
	padding: 1.6rem 0 0;
}
.pieza__retorno .canal {
	max-width: 62rem;
	margin: 0 auto;
}

.columna {
	width: min(100% - 2 * var(--margen), var(--medida));
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3rem) 0 1rem;
}

/* ── Blocks inside a text ────────────────────────────────────── */

.prosa {
	counter-reset: parte;
}
.prosa > :first-child {
	margin-top: 0;
}
.prosa h2 {
	counter-increment: parte;
	position: relative;
	margin: 3.2rem 0 1rem;
	padding-top: 1.1rem;
	border-top: 2px solid var(--grafito);
	font-size: clamp(1.55rem, 3vw, 1.95rem);
	font-weight: 800;
	scroll-margin-top: 1.5rem;
}
.pieza .prosa h2::before {
	content: counter(parte);
	display: inline-grid;
	place-items: center;
	min-width: 2rem;
	height: 1.45rem;
	margin: 0 0.6rem 0 0;
	padding: 0 0.35rem;
	vertical-align: 0.2em;
	background: var(--turquesa);
	border: 2px solid var(--grafito);
	border-radius: 3px;
	font-size: 0.85rem;
	font-weight: 800;
	line-height: 1;
}
.prosa h3 {
	margin: 2.2rem 0 0.7rem;
	font-size: 1.3rem;
	font-weight: 800;
}
.prosa h4 {
	margin: 1.6rem 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 800;
}
.prosa ul,
.prosa ol {
	margin: 0 0 1.2em;
	padding: 0;
	list-style: none;
}
.prosa li {
	position: relative;
	margin: 0 0 0.55em;
}
.prosa ul > li {
	padding-left: 1.5rem;
}
.prosa ul > li::before {
	content: "";
	position: absolute;
	left: 0.1rem;
	top: 0.62em;
	width: 0.7rem;
	height: 0.42rem;
	border-radius: 2px;
	background: var(--turquesa);
	box-shadow: inset 0 0 0 1.5px var(--grafito);
}
.prosa ol {
	counter-reset: paso;
}
.prosa ol > li {
	counter-increment: paso;
	padding: 0.1rem 0 0 3.1rem;
	min-height: 1.8rem;
}
.prosa ol > li::before {
	content: counter(paso);
	position: absolute;
	left: 0;
	top: 0.15rem;
	display: grid;
	place-items: center;
	width: 2.3rem;
	height: 1.55rem;
	background: var(--turquesa);
	border: 2px solid var(--grafito);
	border-radius: 4px;
	font-family: var(--titulos);
	font-size: 0.85rem;
	font-weight: 800;
	line-height: 1;
}
.prosa li > ul,
.prosa li > ol {
	margin-top: 0.5em;
}
.prosa strong {
	font-weight: 650;
}
.prosa hr {
	border: 0;
	height: 0.6rem;
	margin: 2.5rem 0;
	background: repeating-linear-gradient(to right, var(--apagado) 0 0.45rem, transparent 0.45rem 0.6rem);
}

.prosa figure {
	margin: 2.4rem 0;
}
@media (min-width: 62rem) {
	.prosa figure {
		margin-left: -3rem;
		margin-right: -3rem;
	}
}
.prosa figure img {
	display: block;
	width: 100%;
	background: var(--papel);
	border: 1px solid var(--regla);
	border-bottom: 0;
	border-radius: 6px 6px 0 0;
}
.prosa figcaption {
	padding: 0.6rem 0.9rem 0.7rem;
	background: var(--cinta-papel);
	border: 1px solid var(--regla);
	border-radius: 0 0 6px 6px;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--grafito);
}
.prosa figure > :last-child:not(figcaption) {
	border-bottom: 1px solid var(--regla);
	border-radius: 6px;
}

/* Tables: an aluminium head row, rows with thin rules and segmented meters. */
.tabla {
	container-type: inline-size;
	margin: 2rem 0;
	overflow-x: auto;
	border: 1px solid var(--regla);
	border-radius: 6px;
	background: var(--papel);
}
.prosa figure .tabla {
	margin: 0;
	border-radius: 6px 6px 0 0;
	border-bottom: 0;
}
.prosa table {
	width: 100%;
	min-width: 30rem;
	border-collapse: collapse;
	font-size: 0.975rem;
	line-height: 1.45;
}
/* The caption tape stays in view, at the box's width, while the table scrolls on a phone. */
.prosa caption {
	caption-side: top;
	position: sticky;
	left: 0;
	box-sizing: border-box;
	max-width: 100cqi;
	padding: 0.7rem 0.9rem;
	text-align: left;
	font-family: var(--titulos);
	font-weight: 800;
	font-size: 1rem;
	border-bottom: 1px solid var(--regla);
	background: var(--cinta-papel);
}
.prosa th {
	padding: 0.65rem 0.9rem;
	text-align: left;
	vertical-align: bottom;
	background: var(--aluminio);
	border-bottom: 2px solid var(--grafito);
	font-family: var(--titulos);
	font-weight: 700;
	font-size: 0.9rem;
}
.prosa tbody th {
	background: var(--aluminio-claro);
	border-bottom: 1px solid var(--regla);
	vertical-align: top;
}
.prosa td {
	padding: 0.65rem 0.9rem;
	vertical-align: top;
	border-bottom: 1px solid var(--regla);
}
.prosa tr:last-child > * {
	border-bottom: 0;
}
.prosa td meter {
	display: block;
	margin: 0.35rem 0 0.15rem;
}

meter {
	-webkit-appearance: none;
	appearance: none;
	width: 7.5rem;
	height: 0.65rem;
	border: 0;
	background: none;
	-webkit-mask: repeating-linear-gradient(to right, #000 0 0.42rem, transparent 0.42rem 0.56rem);
	mask: repeating-linear-gradient(to right, #000 0 0.42rem, transparent 0.42rem 0.56rem);
}
meter::-webkit-meter-inner-element {
	display: block;
}
meter::-webkit-meter-bar {
	height: 0.65rem;
	background: var(--apagado);
	border: 0;
	border-radius: 0;
}
meter::-webkit-meter-optimum-value,
meter::-webkit-meter-suboptimum-value,
meter::-webkit-meter-even-less-good-value {
	background: var(--turquesa);
	border-radius: 0;
}
meter::-moz-meter-bar {
	background: var(--turquesa);
}
meter:-moz-meter-optimum::-moz-meter-bar,
meter:-moz-meter-sub-optimum::-moz-meter-bar,
meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
	background: var(--turquesa);
}

/* Aside: a note mounted on a fader groove. */
.prosa aside {
	position: relative;
	margin: 2rem 0;
	padding: 1.05rem 1.2rem 0.2rem 3.4rem;
	background: var(--aluminio-claro);
	border: 1px solid var(--regla);
	border-radius: 6px;
}
.prosa aside::before {
	content: "";
	position: absolute;
	left: 1.4rem;
	top: 0.9rem;
	bottom: 0.9rem;
	width: 0.3rem;
	border-radius: 0.15rem;
	background: var(--grafito);
}
.prosa aside::after {
	content: "";
	position: absolute;
	left: 0.85rem;
	top: 1.15rem;
	width: 1.4rem;
	height: 0.95rem;
	background: var(--turquesa);
	border: 2px solid var(--grafito);
	border-radius: 3px;
}
.prosa aside p {
	margin-bottom: 0.85em;
}

/* Questions: each one opens with a knob that turns. */
.prosa details {
	margin: 0 0 0.6rem;
	border: 1px solid var(--regla);
	border-radius: 6px;
	background: var(--papel);
}
.prosa details + :not(details) {
	margin-top: 1.6rem;
}
.prosa summary {
	position: relative;
	display: block;
	padding: 0.85rem 1rem 0.85rem 3.3rem;
	cursor: pointer;
	font-family: var(--titulos);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.3;
	list-style: none;
}
.prosa summary::-webkit-details-marker {
	display: none;
}
.prosa summary::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 0.8rem;
	width: 1.45rem;
	height: 1.45rem;
	border: 2px solid var(--grafito);
	border-radius: 50%;
	background:
		linear-gradient(var(--grafito), var(--grafito)) 50% 15% / 2px 40% no-repeat,
		var(--aluminio-claro);
	transform: rotate(-90deg);
	transition: transform 0.2s ease;
}
.prosa details[open] > summary::before {
	transform: rotate(0deg);
	background:
		linear-gradient(var(--grafito), var(--grafito)) 50% 15% / 2px 40% no-repeat,
		var(--turquesa);
}
.prosa details > :not(summary) {
	margin-left: 3.3rem;
	margin-right: 1rem;
}
.prosa details[open] > summary {
	border-bottom: 1px solid var(--regla);
	margin-bottom: 0.8rem;
}

.prosa dl {
	margin: 1.6rem 0;
}
.prosa dt {
	display: inline-block;
	margin: 0 0 0.35rem;
	padding: 0.1rem 0.5rem;
	background: var(--cinta-papel);
	border: 1px solid var(--regla);
	border-radius: 2px;
	font-family: var(--titulos);
	font-weight: 700;
	font-size: 0.95rem;
}
.prosa dd {
	margin: 0 0 1.1rem;
}

.prosa blockquote {
	position: relative;
	margin: 2.2rem 0;
	padding: 0.2rem 0 0.2rem 2rem;
	font-family: var(--titulos);
	font-weight: 700;
	font-size: 1.3rem;
	line-height: 1.35;
}
.prosa blockquote::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2rem;
	bottom: 0.2rem;
	width: 0.65rem;
	background: linear-gradient(to top, var(--turquesa) 0 82%, var(--pico) 82%);
	-webkit-mask: repeating-linear-gradient(to top, #000 0 0.45rem, transparent 0.45rem 0.6rem);
	mask: repeating-linear-gradient(to top, #000 0 0.45rem, transparent 0.45rem 0.6rem);
}
.prosa blockquote p:last-child {
	margin-bottom: 0;
}
.prosa code {
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.88em;
	padding: 0.05em 0.3em;
	background: var(--aluminio-claro);
	border: 1px solid var(--regla);
	border-radius: 3px;
}
.prosa :not(pre) > code {
	overflow-wrap: anywhere;
}
.prosa pre {
	overflow-x: auto;
	padding: 0.9rem 1rem;
	background: var(--aluminio-claro);
	border: 1px solid var(--regla);
	border-radius: 6px;
	font-size: 0.9rem;
	line-height: 1.5;
}
.prosa pre code {
	padding: 0;
	border: 0;
	background: none;
}

/* ── Advertising spaces and the cookie notice ────────────────── */

.canal {
	margin: 2.4rem 0;
	padding: 0.55rem 0.55rem 0.7rem;
	background: var(--aluminio);
	border: 1px solid var(--regla);
	border-radius: 6px;
}
.canal iframe {
	display: block;
	width: 100%;
	border: 0;
	background: var(--papel);
	border-radius: 3px;
}
.cinta {
	display: inline-block;
	margin: 0 0 0.5rem;
	padding: 0.1rem 0.5rem;
	background: var(--cinta-papel);
	border: 1px solid var(--regla);
	border-radius: 2px;
	font-family: var(--titulos);
	font-weight: 700;
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--gris);
}
body > .canal {
	width: min(100% - 2 * var(--margen), 62rem);
	margin: 1.5rem auto;
}

.retorno {
	position: fixed;
	z-index: 60;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.7rem 0.8rem;
	padding: 0.95rem var(--margen) 1.05rem;
	background-color: var(--aluminio);
	background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 3px);
	border-top: 2px solid var(--grafito);
	font-size: 0.95rem;
	line-height: 1.45;
}
.retorno p {
	flex: 1 1 28rem;
	margin: 0;
	max-width: 52rem;
}
.retorno a {
	color: var(--grafito);
	font-weight: 600;
}
.retorno button,
.conmutador button {
	min-width: 8.5rem;
	padding: 0.55rem 1.1rem;
	background: var(--cinta-papel);
	border: 2px solid var(--grafito);
	border-radius: 4px;
	color: var(--grafito);
	font-family: var(--titulos);
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
}
.retorno button:hover,
.conmutador button:hover {
	background: var(--papel);
}

.conmutador {
	margin: 1.6rem 0;
	padding: 1rem 1.1rem 1.1rem;
	background: var(--aluminio-claro);
	border: 1px solid var(--regla);
	border-radius: 6px;
}
.conmutador p {
	margin: 0 0 0.7rem;
}
fieldset.conmutador {
	min-width: 0;
}
fieldset.conmutador legend {
	padding: 0 0.4rem;
	font-family: var(--titulos);
	font-weight: 800;
	font-size: 1.15rem;
}
fieldset.conmutador p {
	display: inline-block;
	margin: 0.3rem 0.5rem 0 0;
}
.piloto {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 1.2rem;
	font-weight: 600;
}
.piloto:not(:empty)::before {
	content: "";
	flex: none;
	width: 1.3rem;
	height: 0.38rem;
	border-radius: 0.2rem;
	background: var(--turquesa);
	box-shadow: inset 0 0 0 1px var(--grafito);
}

/* ── Archive and lists ───────────────────────────────────────── */

.archivo__cabeza {
	padding: clamp(2rem, 5vw, 3.2rem) 0 clamp(1.8rem, 4vw, 2.6rem);
}
.archivo__titulo {
	margin: 0.9rem 0 0.8rem;
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	font-weight: 900;
	letter-spacing: -0.02em;
}
.archivo__descripcion {
	max-width: 40rem;
	margin: 0 0 1.2rem;
	font-size: 1.15rem;
}
.cuenta {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	font-family: var(--titulos);
	font-weight: 700;
	font-size: 0.95rem;
}

.filas {
	list-style: none;
	margin: 0;
	padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}
.fila {
	position: relative;
	display: grid;
	grid-template-columns: 15rem minmax(0, 1fr) 14.5rem;
	gap: 1.5rem;
	align-items: start;
	padding: 1.6rem 0;
	border-bottom: 1px solid var(--regla);
}
.fila:first-child {
	border-top: 2px solid var(--grafito);
}
.fila__imagen {
	display: block;
	aspect-ratio: 3 / 2;
	border: 2px solid var(--grafito);
	border-radius: 6px;
	overflow: hidden;
	background: var(--aluminio-claro);
}
.fila__imagen img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fila__titulo {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0 0 0.6rem;
}
.fila__titulo a {
	color: var(--grafito);
	text-decoration: none;
}
.fila__titulo a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.fila__titulo a:hover {
	text-decoration: underline;
}
.fila:focus-within {
	outline: 3px solid var(--enlace);
	outline-offset: 4px;
}
.fila__titulo a:focus-visible {
	outline: none;
}
.fila__extracto {
	margin: 0;
	color: var(--gris);
	font-size: 1rem;
	max-width: 38rem;
}
.fila__datos {
	display: grid;
	gap: 0.6rem;
	white-space: nowrap;
	font-size: 0.875rem;
	color: var(--gris);
}

.paginas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0 0 3rem;
}
.paginas .page-numbers {
	display: inline-block;
	min-width: 2.6rem;
	padding: 0.35rem 0.7rem;
	text-align: center;
	background: var(--cinta-papel);
	border: 1px solid var(--regla);
	border-radius: 2px;
	font-family: var(--titulos);
	font-weight: 700;
	color: var(--grafito);
	text-decoration: none;
}
.paginas .current {
	background: var(--turquesa);
	border-color: var(--grafito);
}

/* ── Institutional and policy pages ──────────────────────────── */

.hoja__cabeza {
	padding: clamp(2rem, 5vw, 3rem) 0 clamp(1.6rem, 4vw, 2.2rem);
}
.hoja__titulo {
	margin: 0.9rem 0 0;
	max-width: 22ch;
	font-size: clamp(2.1rem, 4.6vw, 3.4rem);
	font-weight: 900;
	letter-spacing: -0.02em;
}
.hoja__entradilla {
	max-width: 38rem;
	margin: 0.9rem 0 0;
	font-size: 1.15rem;
}
.hoja__actualizado {
	margin: 0.9rem 0 0;
	font-size: 0.9rem;
	color: var(--gris);
}
.hoja .prosa h2 {
	font-size: 1.45rem;
}

.contacto-placa {
	display: grid;
	gap: 0.4rem;
	margin: 0 0 2rem;
	padding: 1.2rem 1.3rem;
	background: var(--aluminio-claro);
	border: 2px solid var(--grafito);
	border-radius: 6px;
}
.contacto-placa a {
	font-family: var(--titulos);
	font-weight: 800;
	font-size: clamp(1.3rem, 4vw, 1.75rem);
	overflow-wrap: anywhere;
}

/* The team's note at the end of a guide. */
.nota-equipo {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
	margin: 3rem 0 0;
	padding: 1.2rem 1.25rem;
	background: var(--aluminio-claro);
	border: 1px solid var(--regla);
	border-radius: 6px;
}
.nota-equipo img {
	width: 3.5rem;
	height: 3.5rem;
}
.nota-equipo p {
	margin: 0 0 0.4rem;
	font-size: 0.975rem;
}
.nota-equipo .firma__nombre {
	font-size: 1.05rem;
	margin-bottom: 0.1rem;
}
.mas-guias {
	padding: clamp(2.5rem, 6vw, 4rem) 0;
	border-top: 1px solid var(--regla);
	margin-top: 3rem;
}

/* Search and the missing page */
.buscador {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	max-width: 34rem;
	margin: 1.2rem 0 0;
}
.buscador input {
	flex: 1 1 14rem;
	min-width: 0;
	padding: 0.6rem 0.8rem;
	border: 2px solid var(--grafito);
	border-radius: 4px;
	background: var(--papel);
	color: var(--grafito);
	font: inherit;
}
.buscador button {
	padding: 0.6rem 1.2rem;
	background: var(--turquesa);
	border: 2px solid var(--grafito);
	border-radius: 4px;
	color: var(--grafito);
	font-family: var(--titulos);
	font-weight: 800;
	font-size: 1rem;
	cursor: pointer;
}
.sin-senal {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(1.5rem, 5vw, 3.5rem);
	align-items: center;
}
.sin-senal__tira {
	display: flex;
	align-items: flex-end;
	gap: 0.9rem;
	padding: 1.2rem 1.3rem;
	background: var(--aluminio-claro);
	border: 2px solid var(--grafito);
	border-radius: 6px;
}
.vacio {
	padding: 2rem 0 3rem;
}

/* ── Footer ──────────────────────────────────────────────────── */

.pie {
	margin-top: 0;
	padding: clamp(2rem, 5vw, 3rem) 0 1.4rem;
	border-top: 2px solid var(--grafito);
}
.pie__interior {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 2rem clamp(2rem, 6vw, 5rem);
}
.pie__marca {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}
.pie__marca img {
	width: 3.4rem;
	height: 3.4rem;
	flex: none;
}
.pie__nombre {
	margin: 0;
	font-family: var(--titulos);
	font-weight: 900;
	font-size: 1.4rem;
	line-height: 1.1;
}
.pie__lema {
	margin: 0.2rem 0 0.9rem;
	font-size: 1rem;
}
.pie__editor {
	margin: 0;
	font-size: 0.95rem;
	max-width: 34rem;
}
.pie__editor a {
	color: var(--grafito);
	font-weight: 600;
}
.pie nav h2 {
	font-size: 1rem;
	font-weight: 800;
	margin: 0 0 0.8rem;
}
.pie__cintas {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}
.pie__cintas a {
	display: inline-block;
	padding: 0.3rem 0.65rem;
	background: var(--cinta-papel);
	border: 1px solid var(--regla);
	border-radius: 2px;
	font-family: var(--titulos);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--grafito);
	text-decoration: none;
	box-shadow: 0 1px 0 rgba(32, 38, 43, 0.08);
}
.pie__cintas a:hover {
	background: var(--papel);
	text-decoration: underline;
}
.pie__cintas .current-menu-item > a {
	border-color: var(--grafito);
}
.pie__linea {
	margin: 2rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--regla);
	font-size: 0.875rem;
	color: var(--gris);
}

/* ── Narrow screens ──────────────────────────────────────────── */

@media (max-width: 60rem) {
	.mesa__canales {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.tira:nth-child(4) {
		border-left: 0;
	}
	.tira:nth-child(n + 4) {
		border-top: 1px solid var(--regla);
	}
	.portada,
	.pieza__cabeza .interior,
	.pie__interior {
		grid-template-columns: minmax(0, 1fr);
	}
	.pieza__portada {
		max-width: 34rem;
	}
	.fila {
		grid-template-columns: 11rem minmax(0, 1fr);
	}
	.fila__datos {
		grid-column: 2;
	}
}

@media (max-width: 40rem) {
	body {
		font-size: 1.0625rem;
	}
	.cabeza__logo img {
		height: 2.3rem;
	}
	.franja a {
		font-size: 0.875rem;
		padding: 0.6rem 0.55rem 0.65rem;
	}
	.franja--menu a::before {
		width: 1.2rem;
	}
	.franja--partes ol {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
	.mesa__canales {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tira:nth-child(odd) {
		border-left: 0;
	}
	.tira:nth-child(4) {
		border-left: 1px solid var(--regla);
	}
	.tira:nth-child(n + 3) {
		border-top: 1px solid var(--regla);
	}
	.tira .medidor,
	.tira .fader {
		--alto: 7rem;
	}
	.modulo {
		min-height: 0;
	}
	.fila {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}
	.fila__datos {
		grid-column: auto;
	}
	.fila__imagen {
		max-width: 20rem;
	}
	.sin-senal {
		grid-template-columns: minmax(0, 1fr);
	}
	.sin-senal__tira {
		justify-self: start;
	}
	.prosa ol > li {
		padding-left: 2.9rem;
	}
	.prosa aside {
		padding-left: 2.9rem;
	}
	.prosa aside::before {
		left: 1.2rem;
	}
	.prosa aside::after {
		left: 0.65rem;
	}
	.prosa details > :not(summary) {
		margin-left: 1rem;
	}
	.retorno button {
		flex: 1 1 8rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.franja--menu,
	.canal,
	.retorno,
	.pie nav {
		display: none !important;
	}
}

/* Search: pages without a drawing of their own carry the mark. */
.fila__imagen--marca {
	display: grid;
	place-items: center;
	aspect-ratio: 3 / 2;
}
.fila__imagen--marca img {
	width: 4rem;
	height: 4rem;
	object-fit: contain;
}


@media screen {
	.retorno {
		left: 0.5rem;
		right: 0.5rem;
		bottom: max(0.5rem, env(safe-area-inset-bottom));
		width: auto;
		max-width: 34rem;
		margin: 0 auto;
		transform: none;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem;
		padding: 0.75rem;
		border: 1px solid var(--regla);
		border-radius: 5px;
		background: var(--papel);
		color: var(--gris);
		box-shadow: none;
		font: 400 0.875rem/1.4 var(--texto);
	}
	.retorno::before,
	.retorno::after { display: none; }
	.retorno p {
		grid-column: 1 / -1;
		margin: 0;
		max-width: none;
		font: inherit;
	}
	.retorno a {
		color: var(--enlace);
		font-weight: 400;
		white-space: normal;
		text-decoration: underline;
	}
	.retorno button {
		min-width: 0;
		min-height: 44px;
		width: 100%;
		margin: 0;
		padding: 0.4rem 0.5rem;
		border: 1px solid var(--regla);
		border-radius: 5px;
		background: var(--papel);
		color: var(--gris);
		box-shadow: none;
		font: 500 0.875rem/1.25 var(--texto);
		font-stretch: normal;
		letter-spacing: normal;
		text-transform: none;
		cursor: pointer;
	}
	.retorno button:hover { background: var(--aluminio-claro); }
	.retorno :focus-visible { outline: 2px solid var(--enlace); outline-offset: 2px; }
	body:has(.retorno) { padding-bottom: 10rem; }
}
@media screen and (max-width: 620px) {
	body:has(.retorno) { padding-bottom: 12rem; }
}
