/*
Theme Name: Minha Entrada Fieltro
Description: The letterboard at the door of Minha Entrada: grooved oxblood felt with white peg letters, and a light page to read on.
Version: 1.0.6
Requires PHP: 8.2
License: GPL-2.0-or-later
Text Domain: minhaentrada-fieltro
*/

@font-face {
	font-family: "League Gothic";
	src: url("assets/fonts/LeagueGothic.woff2") format("woff2");
	font-weight: 400;
	font-stretch: 75% 100%;
	font-display: swap;
}
@font-face {
	font-family: "Hanken Grotesk";
	src: url("assets/fonts/HankenGrotesk.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Hanken Grotesk";
	src: url("assets/fonts/HankenGrotesk-Italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

:root {
	--felt: #5c1f2b;
	--groove: #46161f;
	--peg: #f7f5f2;
	--felt-text: #e3c9cd;
	--page: #f2f2f3;
	--surface: #ffffff;
	--ink: #231b1d;
	--muted: #6b6265;
	--rule: #d8d3d4;
	--shadow: #1f070c;
	/* The groove pitch: every line of peg letters is a whole number of grooves tall. */
	--g: 14px;
	--peg-face: "League Gothic", "Arial Narrow", sans-serif;
	--text-face: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
	--measure: 33em;
	--wide: 50rem;
}

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

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

body {
	margin: 0;
	background: var(--page);
	color: var(--ink);
	font-family: var(--text-face);
	font-size: 1.125rem;
	line-height: 1.65;
	font-weight: 400;
	font-kerning: normal;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--felt);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
a:hover {
	text-decoration-thickness: 2px;
}
:focus-visible {
	outline: 3px solid var(--felt);
	outline-offset: 3px;
	border-radius: 2px;
}
.tablero :focus-visible,
.taquilla :focus-visible,
.franja :focus-visible {
	outline-color: var(--peg);
}

.salto {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 20;
	padding: 0.5rem 1rem;
	background: var(--peg);
	color: var(--felt);
	font-weight: 700;
}
.salto:focus {
	top: 1rem;
}

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

.marco {
	width: 100%;
	max-width: 76rem;
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4.5vw, 3.5rem);
}
/* Articles and pages: one sheet, centred, that the title on the board and the text share. */
.hoja {
	max-width: var(--wide);
	margin-inline: auto;
}

/* ── The felt board ───────────────────────────────────────────── */

.tablero,
.franja,
.fieltro {
	background-color: var(--felt);
	background-image:
		repeating-linear-gradient(
			to bottom,
			transparent 0,
			transparent calc(var(--g) - 3px),
			var(--groove) calc(var(--g) - 3px),
			var(--groove) calc(var(--g) - 1px),
			rgba(255, 236, 240, 0.06) calc(var(--g) - 1px),
			rgba(255, 236, 240, 0.06) var(--g)
		),
		url("assets/img/felt.svg");
	background-size: auto, 220px 220px;
	color: var(--peg);
}

.tablero {
	padding-block: calc(var(--g) * 2) calc(var(--g) * 4);
	border-bottom: 6px solid var(--groove);
}

/* Peg letters: white plastic, evenly spaced, standing in the grooves. */
.peg {
	font-family: var(--peg-face);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--peg);
	text-shadow:
		0 2px 0 rgba(31, 7, 12, 0.55),
		0 3px 5px rgba(31, 7, 12, 0.35);
	font-synthesis: none;
}

.cabecera {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	column-gap: 2.5rem;
}

.marca-sitio {
	display: inline-flex;
	align-items: flex-end;
	gap: 0.85rem;
	color: var(--peg);
	text-decoration: none;
	margin: 0;
}
.marca-sitio img {
	width: calc(var(--g) * 3.4);
	height: calc(var(--g) * 4);
	display: block;
	flex: none;
}
.marca-sitio .peg {
	font-size: 2.875rem;
	line-height: calc(var(--g) * 4);
	letter-spacing: 0.08em;
	position: relative;
	top: 4px;
}
.marca-sitio:hover {
	text-decoration: none;
}

.navegacion {
	width: 100%;
}
.menu-tablero {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	column-gap: 1.75rem;
	width: 100%;
	padding-left: calc(var(--g) * 3.4 + 0.85rem);
	margin-top: calc(var(--g) * 1);
}
.menu-tablero a {
	display: inline-block;
	font-family: var(--peg-face);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 1.375rem;
	line-height: calc(var(--g) * 2);
	color: var(--peg);
	text-decoration: none;
	text-shadow: 0 2px 0 rgba(31, 7, 12, 0.55);
	position: relative;
	top: 2px;
}
.menu-tablero a:hover {
	color: #fff;
}
.menu-tablero .current-menu-item > a,
.menu-tablero .current-menu-parent > a,
.menu-tablero .current-post-ancestor > a,
.menu-tablero a[aria-current] {
	box-shadow: 0 5px 0 -1px var(--peg);
}

/* What the board says on each page */
.cartel {
	margin-top: calc(var(--g) * 5);
}
.cartel__titulo {
	margin: 0;
	font-size: clamp(3.25rem, 8.4vw, 7.25rem);
	line-height: calc(var(--g) * 9);
	max-width: 12em;
	position: relative;
	top: 6px;
}
.cartel__titulo span {
	display: inline-block;
}
.cartel__texto {
	margin: calc(var(--g) * 2) 0 0;
	max-width: 34rem;
	color: var(--felt-text);
	font-size: 1.25rem;
	line-height: calc(var(--g) * 2);
}
.cartel__texto a {
	color: var(--peg);
}

.titulo-tablero {
	margin-top: calc(var(--g) * 4);
	max-width: 58rem;
}
.titulo-tablero.hoja {
	max-width: var(--wide);
}
.titulo-tablero__nicho {
	display: inline-block;
	margin: 0 0 calc(var(--g) * 1);
	font-size: 1.25rem;
	line-height: calc(var(--g) * 2);
	letter-spacing: 0.12em;
	color: var(--felt-text);
	text-decoration: none;
}
a.titulo-tablero__nicho:hover {
	color: var(--peg);
}
.titulo-tablero h1 {
	margin: 0;
	font-size: clamp(2.5rem, 5.4vw, 4.75rem);
	line-height: calc(var(--g) * 6);
	position: relative;
	top: 4px;
	overflow-wrap: break-word;
	hyphens: manual;
}
.titulo-tablero__bajada {
	margin: calc(var(--g) * 2) 0 0;
	max-width: 40rem;
	font-size: 1.25rem;
	line-height: calc(var(--g) * 2);
	color: var(--felt-text);
}

/* The home sign: its letters settle into the grooves once. */
@media (prefers-reduced-motion: no-preference) {
	.cartel__titulo .letra {
		animation: encaja 520ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
		animation-delay: calc(var(--i) * 28ms + 120ms);
	}
}
@keyframes encaja {
	from {
		opacity: 0;
		transform: translateY(-0.18em);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ── The light page ───────────────────────────────────────────── */

.sala {
	padding-block: 3.5rem 5rem;
}

.columna {
	max-width: var(--measure);
}
.columna > * {
	margin-block: 0 1.25rem;
}

h2,
h3,
.titulo-sala {
	font-family: var(--peg-face);
	font-weight: 400;
	color: var(--felt);
	letter-spacing: 0.015em;
	font-synthesis: none;
}
.columna h2 {
	font-size: 2.5rem;
	line-height: 1.1;
	margin: 3.25rem 0 1rem;
}
.columna h3 {
	font-size: 1.75rem;
	line-height: 1.15;
	margin: 2.25rem 0 0.6rem;
}
.columna h2 + *,
.columna h3 + * {
	margin-top: 0;
}
.columna p,
.columna li {
	hyphens: manual;
}
.columna strong {
	font-weight: 700;
}
.columna ul {
	padding-left: 1.1rem;
}
.columna ul li::marker {
	color: var(--felt);
	content: "■  ";
	font-size: 0.7em;
}
.columna ul li + li,
.columna ol li + li {
	margin-top: 0.5rem;
}

/* Byline */
.firma {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: 0 0 2.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--rule);
	max-width: var(--measure);
	font-size: 0.95rem;
	line-height: 1.45;
}
.firma img {
	width: 46px;
	height: 46px;
	border-radius: 9px;
	flex: none;
}
.firma__nombre {
	font-weight: 700;
	display: block;
}
.firma__fechas {
	color: var(--muted);
}

/* Featured drawing */
.portada {
	margin: 0 0 2.5rem;
	max-width: var(--wide);
}
.portada img {
	display: block;
	width: 100%;
	border-radius: 12px;
}

/* Figures break a little wider than the column */
.columna figure {
	margin: 2.25rem 0;
	width: min(var(--wide), calc(100vw - 2.5rem));
	max-width: none;
}
.columna > table,
.columna > .ranura {
	width: min(var(--wide), calc(100vw - 2.5rem));
	max-width: none;
}
.columna figure img {
	display: block;
	width: 100%;
	border-radius: 10px;
}
.columna figcaption {
	margin-top: 0.7rem;
	max-width: var(--measure);
	font-size: 0.9375rem;
	line-height: 1.5;
	font-style: italic;
	color: var(--muted);
	padding-left: 1.1rem;
	border-left: 4px solid var(--felt);
}

/* Terms explained on first use: small felt boxes */
.columna dl {
	margin: 1.75rem 0;
	padding: calc(var(--g) * 1.5) 1.5rem calc(var(--g) * 1);
	border-radius: 10px;
	max-width: 30rem;
	background-color: var(--felt);
	background-image:
		repeating-linear-gradient(
			to bottom,
			transparent 0,
			transparent calc(var(--g) - 3px),
			var(--groove) calc(var(--g) - 3px),
			var(--groove) calc(var(--g) - 1px),
			rgba(255, 236, 240, 0.05) calc(var(--g) - 1px),
			rgba(255, 236, 240, 0.05) var(--g)
		),
		url("assets/img/felt.svg");
	background-size: auto, 220px 220px;
	color: var(--peg);
}
.columna dt {
	font-family: var(--peg-face);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 1.5rem;
	line-height: calc(var(--g) * 2);
	text-shadow: 0 2px 0 rgba(31, 7, 12, 0.55);
	position: relative;
	top: 2px;
}
.columna dd {
	margin: 0 0 calc(var(--g) * 1);
	font-size: 1rem;
	line-height: calc(var(--g) * 2);
	color: var(--felt-text);
}
.columna dd + dt {
	margin-top: calc(var(--g) * 0.5);
}

/* Tips and key points: white plastic plaques */
.columna aside {
	margin: 2rem 0;
	padding: 1.15rem 1.4rem 1.2rem 1.4rem;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-bottom-width: 4px;
	border-radius: 10px;
	font-size: 1.0625rem;
	line-height: 1.6;
}
.columna aside > :first-child {
	margin-top: 0;
}
.columna aside > :last-child {
	margin-bottom: 0;
}
.columna aside p + p {
	margin-top: 0.6rem;
}
.columna aside strong:first-child {
	color: var(--felt);
}

/* A takeaway, set as a short line on a small board */
.columna blockquote {
	margin: 2.25rem 0;
	padding: calc(var(--g) * 2) 1.75rem calc(var(--g) * 2);
	border-radius: 10px;
	background-color: var(--felt);
	background-image:
		repeating-linear-gradient(
			to bottom,
			transparent 0,
			transparent calc(var(--g) - 3px),
			var(--groove) calc(var(--g) - 3px),
			var(--groove) calc(var(--g) - 1px),
			rgba(255, 236, 240, 0.05) calc(var(--g) - 1px),
			rgba(255, 236, 240, 0.05) var(--g)
		),
		url("assets/img/felt.svg");
	background-size: auto, 220px 220px;
	color: var(--peg);
}
.columna blockquote p {
	margin: 0;
	font-family: var(--peg-face);
	text-transform: uppercase;
	letter-spacing: 0.07em;
	font-size: 1.875rem;
	line-height: calc(var(--g) * 3);
	text-shadow:
		0 2px 0 rgba(31, 7, 12, 0.55),
		0 3px 5px rgba(31, 7, 12, 0.35);
	position: relative;
	top: 3px;
}
.columna blockquote p + p {
	margin-top: var(--g);
}
.columna blockquote cite,
.columna blockquote footer {
	display: block;
	margin-top: var(--g);
	font-family: var(--text-face);
	font-style: italic;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--felt-text);
	text-shadow: none;
}

/* Steps on numbered peg tiles */
.columna ol {
	list-style: none;
	counter-reset: paso;
	padding: 0;
	margin: 1.75rem 0;
}
.columna ol > li {
	counter-increment: paso;
	position: relative;
	padding-left: 3.6rem;
	min-height: 2.6rem;
}
.columna ol > li + li {
	margin-top: 1rem;
}
.columna ol > li::before {
	content: counter(paso);
	position: absolute;
	left: 0;
	top: 0.05rem;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 7px;
	background: var(--felt);
	color: var(--peg);
	font-family: var(--peg-face);
	font-size: 1.6rem;
	line-height: 2.6rem;
	text-align: center;
	text-shadow: 0 2px 0 rgba(31, 7, 12, 0.55);
	box-shadow: inset 0 -3px 0 var(--groove);
}

/* Tables: the head row is a strip of felt */
/* A table sits in its frame, named after its section; the frame scrolls on a phone. */
.tabla-marco {
	margin: 2rem 0;
	border-radius: 10px;
}
.columna table {
	width: 100%;
	max-width: var(--wide);
	border-collapse: separate;
	border-spacing: 0;
	margin: 0;
	font-size: 0.97rem;
	line-height: 1.5;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: 10px;
	overflow: hidden;
}
.columna thead th {
	background: var(--felt);
	color: var(--peg);
	font-family: var(--peg-face);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 1.2rem;
	line-height: 1.3;
	text-align: left;
	padding: 0.7rem 1rem 0.6rem;
	text-shadow: 0 2px 0 rgba(31, 7, 12, 0.5);
	border-bottom: 3px solid var(--groove);
}
.columna td,
.columna tbody th {
	padding: 0.8rem 1rem;
	vertical-align: top;
	text-align: left;
	border-top: 1px solid var(--rule);
}
.columna tbody tr:first-child td,
.columna tbody tr:first-child th {
	border-top: 0;
}
.columna td:first-child,
.columna tbody th {
	font-weight: 700;
}

/* Questions and answers */
.columna details {
	margin: 0;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: 10px;
}
.columna details + details {
	margin-top: 0.75rem;
}
.columna details:last-of-type {
	margin-bottom: 2rem;
}
.columna summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	font-weight: 700;
	line-height: 1.4;
}
.columna summary::-webkit-details-marker {
	display: none;
}
.columna summary::after {
	content: "+";
	flex: none;
	width: 2rem;
	height: 2rem;
	border-radius: 6px;
	background: var(--felt);
	color: var(--peg);
	font-family: var(--peg-face);
	font-size: 1.5rem;
	line-height: 2rem;
	text-align: center;
	box-shadow: inset 0 -3px 0 var(--groove);
}
.columna details[open] summary::after {
	content: "−";
}
.columna details > :not(summary) {
	margin: 0;
	padding: 0 1.25rem 1.1rem;
}
.columna details > p + p {
	padding-top: 0;
}

.columna hr {
	border: 0;
	height: 4px;
	background: var(--rule);
	border-radius: 2px;
	margin: 3rem 0;
	width: 6rem;
}

/* ── Listings: numbered entries in reading order ─────────────── */

.titulo-sala {
	font-size: 2.75rem;
	line-height: 1.05;
	margin: 0 0 1.75rem;
}

.lista-entradas {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: entrada;
}
.entrada {
	counter-increment: entrada;
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr);
	column-gap: 1.25rem;
	max-width: 66rem;
}
.entrada + .entrada {
	margin-top: 3rem;
}
.entrada::before {
	content: counter(entrada);
	grid-row: 1 / span 2;
	font-family: var(--peg-face);
	font-size: 3.5rem;
	line-height: 1;
	color: var(--felt);
	text-align: right;
	padding-top: 0.5rem;
}
.entrada__tablilla {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: center;
	gap: 1.5rem;
	padding: calc(var(--g) * 2) clamp(1.25rem, 3vw, 2.25rem);
	border-radius: 12px;
	text-decoration: none;
	color: var(--peg);
}
.entrada__tablilla--sola {
	grid-template-columns: minmax(0, 1fr);
}
.entrada__tablilla:hover .entrada__titulo {
	color: #fff;
}
.entrada__titulo {
	margin: 0;
	font-size: clamp(1.9rem, 3.4vw, 2.85rem);
	line-height: calc(var(--g) * 3.5);
	position: relative;
	top: 3px;
}
.entrada__tablilla img {
	display: block;
	width: 100%;
	border-radius: 9px;
	border: 3px solid var(--groove);
}
.entrada__pie {
	grid-column: 2;
	margin-top: 0.9rem;
	max-width: var(--measure);
}
.entrada__pie p {
	margin: 0 0 0.4rem;
}
.entrada__fecha {
	font-size: 0.9375rem;
	color: var(--muted);
}
.entrada__seguir {
	font-weight: 700;
}

.texto-sitio {
	margin-top: 4rem;
	padding-top: 0.5rem;
	border-top: 4px solid var(--felt);
}
.texto-sitio > h2:first-child {
	margin-top: 1.5rem;
}

.paginacion {
	margin-top: 3rem;
	display: flex;
	gap: 1.5rem;
	font-weight: 700;
}

/* After the article: who wrote it, and where to go next */
.nota-equipo {
	display: flex;
	gap: 1.1rem;
	align-items: flex-start;
	max-width: var(--measure);
	margin-top: 3.5rem;
	padding-top: 1.5rem;
	border-top: 4px solid var(--felt);
	font-size: 1rem;
	line-height: 1.6;
}
.nota-equipo img {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	flex: none;
}
.nota-equipo h2,
.sigue h2 {
	font-size: 1.75rem;
	line-height: 1.1;
	margin: 0 0 0.5rem;
}
.nota-equipo p {
	margin: 0 0 0.5rem;
}
.sigue {
	max-width: var(--measure);
	margin-top: 2.5rem;
}
.sigue ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sigue li {
	border-top: 1px solid var(--rule);
}
.sigue li:last-child {
	border-bottom: 1px solid var(--rule);
}
.sigue a {
	display: block;
	padding: 0.75rem 0;
	font-weight: 700;
	text-decoration: none;
}
.sigue a:hover {
	text-decoration: underline;
}

/* Institutional and policy pages */
.pagina__letrero {
	display: block;
	width: min(100%, 26rem);
	height: auto;
	margin: 0 0 2.25rem;
	border-radius: 12px;
}
.pagina__revision {
	max-width: var(--measure);
	margin-top: 2.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--rule);
	font-size: 0.9375rem;
	color: var(--muted);
}
.aviso-sala {
	max-width: var(--measure);
	margin: 0 0 2.5rem;
	font-size: 1.125rem;
}
.lista-todas {
	margin: 2rem 0 0 4.75rem;
	font-weight: 700;
}

/* ── Ads: a labelled slot, set apart from the reading ────────── */

.ranura {
	margin: 2.75rem 0;
	padding: 0.75rem 0.85rem 0.9rem;
	border: 1px dashed #b9b0b2;
	border-radius: 10px;
	background: #ebeaec;
	max-width: var(--wide);
}
.cartela {
	display: block;
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	line-height: 1.3;
	letter-spacing: 0.02em;
	color: var(--muted);
}
.ranura iframe {
	display: block;
	max-width: 100%;
	border: 0;
}

/* ── Measurement notice ─────────────────────────────────────── */

.taquilla {
	position: fixed;
	z-index: 30;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1rem clamp(1.25rem, 4.5vw, 3.5rem) 1.1rem;
	background-color: var(--felt);
	background-image:
		repeating-linear-gradient(
			to bottom,
			transparent 0,
			transparent calc(var(--g) - 3px),
			var(--groove) calc(var(--g) - 3px),
			var(--groove) calc(var(--g) - 1px),
			rgba(255, 236, 240, 0.05) calc(var(--g) - 1px),
			rgba(255, 236, 240, 0.05) var(--g)
		),
		url("assets/img/felt.svg");
	background-size: auto, 220px 220px;
	border-top: 6px solid var(--groove);
	color: var(--peg);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	font-size: 1rem;
	line-height: 1.5;
}
.taquilla[hidden] {
	display: none;
}
.taquilla p {
	margin: 0;
	flex: 1 1 26rem;
	max-width: 46rem;
}
.taquilla a {
	color: var(--peg);
	font-weight: 700;
}
.taquilla button,
.picaporte button {
	appearance: none;
	min-width: 8.5rem;
	padding: 0.55rem 1.1rem 0.5rem;
	border: 0;
	border-radius: 7px;
	background: var(--peg);
	color: var(--felt);
	font-family: var(--peg-face);
	font-size: 1.3rem;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: inset 0 -3px 0 #cfc6c8;
}
.taquilla button:hover,
.picaporte button:hover {
	background: #fff;
}
.picaporte {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0 1.5rem;
	padding: 1.25rem 1.4rem 1.4rem;
	border: 0;
	border-radius: 10px;
	background-color: var(--felt);
	color: var(--peg);
	max-width: var(--measure);
}
.picaporte p {
	flex: 1 0 100%;
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
}
.picaporte p:empty {
	display: none;
}
.picaporte .mirilla {
	color: var(--peg);
	margin: 0;
}
.picaporte legend {
	float: left;
	width: 100%;
	margin-bottom: 0.75rem;
	font-family: var(--peg-face);
	text-transform: uppercase;
	letter-spacing: 0.07em;
	font-size: 1.75rem;
	line-height: 1.25;
	color: var(--peg);
}
.picaporte button:focus-visible {
	outline-color: var(--peg);
}
.mirilla {
	display: block;
	margin: 0 0 1.5rem;
	font-weight: 700;
	color: var(--felt);
}

/* ── Quiz controls, if a page ever asks one ──────────────────── */

.picaporte-pregunta {
	margin: 3rem 0;
	max-width: var(--measure);
}

/* ── Search ─────────────────────────────────────────────────── */

.buscador {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: calc(var(--g) * 3);
	max-width: 36rem;
}
.buscador input[type="search"] {
	flex: 1 1 16rem;
	min-width: 0;
	padding: 0.7rem 0.9rem;
	border: 0;
	border-radius: 7px;
	background: var(--peg);
	color: var(--ink);
	font: inherit;
	font-size: 1.0625rem;
	box-shadow: inset 0 3px 0 rgba(31, 7, 12, 0.12);
}
.buscador button {
	appearance: none;
	padding: 0.55rem 1.3rem 0.5rem;
	border: 2px solid var(--peg);
	border-radius: 7px;
	background: transparent;
	color: var(--peg);
	font-family: var(--peg-face);
	font-size: 1.35rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}
.buscador button:hover {
	background: rgba(247, 245, 242, 0.12);
}

/* ── The missing page: letters fallen off the board ─────────── */

.tablero--caido {
	position: relative;
	overflow: hidden;
	padding-bottom: calc(var(--g) * 9);
}
.caidas {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(var(--g) * 1);
	height: calc(var(--g) * 5);
	pointer-events: none;
}
.caidas span {
	position: absolute;
	bottom: 0;
	font-size: 3.25rem;
	line-height: 1;
}

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

.franja {
	padding-block: calc(var(--g) * 1);
	border-top: 6px solid var(--groove);
}
.franja p {
	margin: 0;
	font-size: 1.2rem;
	line-height: calc(var(--g) * 2);
	letter-spacing: 0.12em;
	position: relative;
	top: 2px;
}
.pie {
	padding-block: 2.25rem 3rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--muted);
}
.pie__fila {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1rem 2.5rem;
}
.pie__sello {
	display: flex;
	gap: 0.9rem;
	align-items: center;
	flex: 1 1 22rem;
}
.pie__sello img {
	width: 52px;
	height: 52px;
	border-radius: 10px;
	flex: none;
}
.pie__sello p {
	margin: 0;
}
.pie__nombre {
	color: var(--ink);
	font-weight: 700;
}
.pie a {
	color: var(--felt);
}
.menu-pie {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.4rem;
	flex: 1 1 26rem;
}
.menu-pie a {
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1px solid var(--rule);
}
.menu-pie a:hover {
	border-bottom-color: var(--felt);
}

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

@media (max-width: 860px) {
	.entrada__tablilla {
		grid-template-columns: minmax(0, 1fr);
	}
	.entrada__tablilla img {
		max-width: 26rem;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 1.0625rem;
	}
	.tablero {
		padding-block: calc(var(--g) * 1) calc(var(--g) * 3);
	}
	.cabecera {
		column-gap: 1rem;
	}
	.marca-sitio {
		gap: 0.6rem;
	}
	.marca-sitio img {
		width: calc(var(--g) * 2.55);
		height: calc(var(--g) * 3);
	}
	.marca-sitio .peg {
		font-size: 2.15rem;
		line-height: calc(var(--g) * 3);
		top: 3px;
	}
	.menu-tablero {
		padding-left: 0;
		column-gap: 1.25rem;
		margin-top: calc(var(--g) * 1);
	}
	.menu-tablero a {
		font-size: 1.2rem;
	}
	.cartel {
		margin-top: calc(var(--g) * 3);
	}
	.cartel__titulo {
		font-size: 3.3rem;
		line-height: calc(var(--g) * 5);
		top: 4px;
	}
	.cartel__texto {
		font-size: 1.0625rem;
		line-height: calc(var(--g) * 2);
	}
	.titulo-tablero {
		margin-top: calc(var(--g) * 3);
	}
	.titulo-tablero h1 {
		font-size: 2.4rem;
		line-height: calc(var(--g) * 4);
		top: 3px;
	}
	.titulo-tablero__bajada {
		font-size: 1.0625rem;
	}
	.sala {
		padding-block: 2.25rem 3.5rem;
	}
	.columna h2 {
		font-size: 2.15rem;
	}
	.columna figure {
		width: 100%;
	}
	/* A shadow at the edge shows there are more columns to scroll to; it fades once you reach them. */
	.tabla-marco {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		background:
			linear-gradient(to right, var(--surface) 35%, rgba(255, 255, 255, 0)) left center / 2.5rem 100% no-repeat local,
			linear-gradient(to left, var(--surface) 35%, rgba(255, 255, 255, 0)) right center / 2.5rem 100% no-repeat local,
			radial-gradient(farthest-side at 0 50%, rgba(35, 27, 29, 0.3), rgba(35, 27, 29, 0)) left center / 1rem 100% no-repeat scroll,
			radial-gradient(farthest-side at 100% 50%, rgba(35, 27, 29, 0.3), rgba(35, 27, 29, 0)) right center / 1rem 100% no-repeat scroll,
			var(--surface);
	}
	.tabla-marco table {
		background: transparent;
	}
	.columna thead th,
	.columna td {
		min-width: 9.5rem;
	}
	.entrada {
		grid-template-columns: minmax(0, 1fr);
	}
	.entrada::before {
		grid-row: auto;
		text-align: left;
		font-size: 2.5rem;
		padding: 0 0 0.35rem;
	}
	.entrada__pie {
		grid-column: 1;
	}
	.entrada__titulo {
		font-size: 1.8rem;
		line-height: calc(var(--g) * 3);
	}
	.titulo-sala {
		font-size: 2.3rem;
	}
	.taquilla button {
		flex: 1 1 8rem;
	}
	.caidas span {
		font-size: 2.4rem;
	}
	.tablero--caido {
		padding-bottom: calc(var(--g) * 11);
	}
}

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


@media screen {
	.taquilla {
		left: 0.5rem;
		right: 0.5rem;
		bottom: max(0.5rem, env(safe-area-inset-bottom));
		width: auto;
		max-width: 33rem;
		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(--rule);
		border-radius: 7px;
		background: var(--surface);
		color: var(--muted);
		box-shadow: none;
		font: 400 0.875rem/1.4 var(--text-face);
	}
	.taquilla::before,
	.taquilla::after { display: none; }
	.taquilla p {
		grid-column: 1 / -1;
		margin: 0;
		max-width: none;
		font: inherit;
	}
	.taquilla a {
		color: var(--felt);
		font-weight: 400;
		white-space: normal;
		text-decoration: underline;
	}
	.taquilla button {
		min-width: 0;
		min-height: 44px;
		width: 100%;
		margin: 0;
		padding: 0.4rem 0.5rem;
		border: 1px solid var(--rule);
		border-radius: 7px;
		background: var(--surface);
		color: var(--muted);
		box-shadow: none;
		font: 500 0.875rem/1.25 var(--text-face);
		font-stretch: normal;
		letter-spacing: normal;
		text-transform: none;
		cursor: pointer;
	}
	.taquilla button:hover { background: var(--page); }
	.taquilla :focus-visible { outline: 2px solid var(--felt); outline-offset: 2px; }
	body:has(.taquilla) { padding-bottom: 10rem; }
}
@media screen and (max-width: 620px) {
	body:has(.taquilla) { padding-bottom: 12rem; }
}

@media print {
	.taquilla { display: none; }
	body:has(.taquilla) { padding-bottom: 0; }
}
