/*
Theme Name: Trail Peña Cabarga GeneratePress Child
Theme URI: https://trail.viacoreit.com/
Description: Tema hijo de GeneratePress para la web del Trail Peña Cabarga (CD Ozono Solares).
Author: Viacore
Author URI: https://viacoreit.com
Template: generatepress
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: tpcabarga
*/

/* ==========================================================
   FUENTES (alojadas en el tema, sin Google)
   Barlow Condensed: titulares, botones, antetítulos, navegación.
   Manrope (variable 400-700): texto.
   ========================================================== */

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(fonts/barlow-condensed-500-latin-ext.woff2) format("woff2");
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(fonts/barlow-condensed-500-latin.woff2) format("woff2");
	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: "Barlow Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(fonts/barlow-condensed-600-latin-ext.woff2) format("woff2");
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(fonts/barlow-condensed-600-latin.woff2) format("woff2");
	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: "Barlow Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(fonts/barlow-condensed-700-latin-ext.woff2) format("woff2");
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(fonts/barlow-condensed-700-latin.woff2) format("woff2");
	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: "Barlow Condensed";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url(fonts/barlow-condensed-800-latin-ext.woff2) format("woff2");
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url(fonts/barlow-condensed-800-latin.woff2) format("woff2");
	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: "Barlow Condensed";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url(fonts/barlow-condensed-900-latin-ext.woff2) format("woff2");
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url(fonts/barlow-condensed-900-latin.woff2) format("woff2");
	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: "Barlow Condensed";
	font-style: italic;
	font-weight: 900;
	font-display: swap;
	src: url(fonts/barlow-condensed-900-italic-latin-ext.woff2) format("woff2");
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: italic;
	font-weight: 900;
	font-display: swap;
	src: url(fonts/barlow-condensed-900-italic-latin.woff2) format("woff2");
	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: Manrope;
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(fonts/manrope-latin-ext.woff2) format("woff2");
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: Manrope;
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(fonts/manrope-latin.woff2) format("woff2");
	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;
}

/* ==========================================================
   TOKENS

   Colores: colores globales de GeneratePress con el nombre de la
   maqueta (inc/setup.php los define por defecto). Reglas de color
   del cliente en docs/conventions.md §3.
   ========================================================== */

:root {

	/* Paleta (respaldo si los colores globales no se han guardado). */
	--brand: #736d5e;
	--brand-700: #4b473f;
	--brand-800: #3a3731;
	--brand-200: #d6d2c8;
	--brand-100: #ebe7de;
	--lime: #c7f36b;
	--bg: #f3f0e8;
	--ink: #231f20;
	--muted: #57534a;
	--white: #fff;

	/* Colores de uso. */
	--tpc-color-line: rgb(35 31 32 / 16%);
	--tpc-color-error: #b3261e;
	--tpc-color-on-dark-muted: #d0ccc4;
	--tpc-color-on-dark-soft: #bdb8ae;
	--tpc-color-on-dark-link: #e2ded6;
	--tpc-color-grey: #808285;

	/* Tipografía. */
	--tpc-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--tpc-font-body: "Manrope", system-ui, sans-serif;

	/* Maquetación. */
	--tpc-max: 1240px;
	--tpc-pad: clamp(1.25rem, 4vw, 3.5rem);
	--tpc-header: 104px;
	--tpc-header-logo: 38px;
	--tpc-header-shadow: none;

	/* Espaciado. */
	--tpc-space-2xs: 4px;
	--tpc-space-xs: 8px;
	--tpc-space-sm: 16px;
	--tpc-space-md: 24px;
	--tpc-space-lg: 40px;
	--tpc-space-xl: 64px;
	--tpc-space-2xl: 96px;

	/* Radios. */
	--tpc-radius-sm: 4px;
	--tpc-radius-md: 8px;

	/* Foco: negro en claro, blanco en contextos oscuros (.tpc-surface-dark). */
	--tpc-focus-color: var(--ink);
	--tpc-focus-offset: 3px;
}

/* ==========================================================
   BASE
   ========================================================== */

html {
	scroll-padding-top: calc(var(--tpc-header) + var(--tpc-space-sm));
}

/* Las plantillas propias (fichas, resultados) pintan su <main>: ocupa todo el contenedor flexible de
   GeneratePress, como su .content-area. */

.site-content > .tpc-main {
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
}

/* Lo oculto con el atributo hidden (filtros) gana a cualquier display de componente. */

[hidden] {
	display: none !important;
}

@media (prefers-reduced-motion: no-preference) {

	html {
		scroll-behavior: smooth;
	}
}

body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--tpc-font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

@media (max-width: 760px) {

	body {
		font-size: 1rem;
	}
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--tpc-font-display);
	text-wrap: balance;
}

h1,
h2 {
	font-weight: 900;
	text-transform: uppercase;
}

:where([class*="tpc-"]),
:where([class*="tpc-"]) :where(*, ::before, ::after) {
	box-sizing: border-box;
}

/* Base de la maqueta, limitada a los componentes propios (las páginas de texto conservan la de
   GeneratePress). Especificidad de elemento: gana a GeneratePress (se carga antes) y pierde con
   cualquier clase de componente. */

:where(ol,
ul)[class*="tpc-"],
:where([class*="tpc-"]) :is(ol,
ul) {
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(table[class*="tpc-"]) {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

:where(table[class*="tpc-"]) :is(th,
td) {
	padding: 0.8rem 1rem;
	border: 0;
	border-top: 1px solid var(--tpc-color-line);
	text-align: left;
	vertical-align: middle;
}

:where(table[class*="tpc-"]) thead th {
	border-top: 0;
	background: var(--brand-700);
	color: var(--white);
	font-family: var(--tpc-font-display);
	font-size: 1.05rem;
	font-weight: 700;
	white-space: nowrap;
}

:where(table[class*="tpc-"]) thead :focus-visible {
	outline-color: var(--white);
}

::selection {
	background: var(--lime);
	color: var(--ink);
}

@media print {

	:where(table[class*="tpc-"]) thead th {
		border-bottom: 2px solid var(--ink);
		background: var(--white) !important;
		color: var(--ink) !important;
	}
}

.tpc-route-detail__ref {
	margin: 0 0 1rem;
}

/* ==========================================================
   FOCO
   ========================================================== */

:focus-visible {
	outline: 3px solid var(--tpc-focus-color);
	outline-offset: var(--tpc-focus-offset);
}

.tpc-surface-dark,
.tpc-site-header,
.tpc-footer {
	--tpc-focus-color: var(--white);
}

.tpc-surface-dark .tpc-card,
.tpc-surface-dark [class*="--light"] {
	--tpc-focus-color: var(--ink);
}

/* GeneratePress pinta «a:hover, a:focus, a:active» con el color de enlace (--brand-700) y gana a la
   clase del botón: al volver de una pestaña nueva (el enlace conserva el foco) el texto del botón oscuro
   quedaba del color del fondo. Cada variante mantiene su color en foco y pulsado; el hover sigue siendo el
   de Global Styles y las variantes de contexto (portada, banda del aviso) van después y mandan. */
.tpc-button--dark:is(:focus, :active):where(:not(:hover)) {
	color: var(--white);
}

.tpc-button--light:is(:focus, :active):where(:not(:hover)),
.tpc-button--outline:is(:focus, :active):where(:not(:hover)) {
	color: var(--ink);
}

.tpc-button--outline-light:is(:focus, :active):where(:not(:hover)) {
	color: var(--white);
}

/* ==========================================================
   MOVIMIENTO REDUCIDO
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ==========================================================
   UTILIDADES Y PIEZAS COMUNES
   ========================================================== */

.tpc-inner {
	width: min(calc(100% - var(--tpc-pad) * 2), var(--tpc-max));
	margin-inline: auto;
}

.screen-reader-text:focus,
.skip-link.screen-reader-text:focus {
	z-index: 300;
	top: 1rem;
	left: 1rem;
	width: auto;
	height: auto;
	padding: 0.8rem 1rem;
	clip-path: none;
	background: var(--white);
	color: var(--ink);
	font-weight: 700;
}

/* Sobre chocolate, el antetítulo va en lima (reglas de color §1). */

.tpc-surface-dark .tpc-eyebrow {
	color: var(--lime);
}

/* ==========================================================
   CABECERA: TOKENS DE ESTADO

   La cabecera es un Element de GP Premium montado con GenerateBlocks Pro
   (tpc-site-header, tpc-nav…: Global Styles, incluida la posición del botón
   de la fase). Aquí solo van los tokens que cambian con el tamaño y el estado
   (compacta al desplazarse, inc/layout/header.php).
   ========================================================== */

.tpc-header-compact {
	--tpc-header: 72px;
	--tpc-header-logo: 30px;
	--tpc-header-shadow: 0 6px 20px rgb(35 31 32 / 25%);
}

@media (max-width: 1180px) {

	:root {
		--tpc-header: 88px;
	}

	.tpc-header-compact {
		--tpc-header: 68px;
	}
}

@media (max-width: 760px) {

	:root {
		--tpc-pad: 1.15rem;
		--tpc-header: 76px;
		--tpc-header-logo: 30px;
	}
}

/* ==========================================================
   CABECERA DE PÁGINA
   ========================================================== */

.tpc-page-hero {
	position: relative;
	padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(6rem, 10vw, 8rem);
	overflow: hidden;
	background: var(--brand-700);
	color: var(--white);
}

.tpc-page-hero__image,
.tpc-page-hero__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.tpc-page-hero__image {
	object-fit: cover;
	filter: saturate(0.5);
}

.tpc-page-hero__overlay {
	background: linear-gradient(90deg, rgb(75 71 63 / 94%), rgb(75 71 63 / 88%) 55%, rgb(75 71 63 / 60%));
}

/* Más claro a la derecha (diseño), pero oscuro donde va el texto: contraste AA sobre cualquier foto. */
@media (max-width: 760px) {

	.tpc-page-hero__overlay {
		background: rgb(75 71 63 / 88%);
	}
}

.tpc-sierra--page-hero {
	height: 130px;
	color: rgb(255 255 255 / 22%);
}

.tpc-page-hero__inner {
	position: relative;
	z-index: 2;
}

.tpc-page-hero__title {
	max-width: 900px;
	margin: 0;
	color: var(--white);
	font-size: clamp(2.8rem, 6vw, 5rem);
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.02;
}

.tpc-page-hero__lead {
	max-width: 640px;
	margin: 1.2rem 0 0;
	color: rgb(255 255 255 / 90%);
	font-size: 1.15rem;
}

.tpc-page-hero--light {
	padding-bottom: clamp(3rem, 6vw, 4rem);
}

.tpc-page-hero--light .tpc-page-hero__overlay,
.tpc-page-hero--light .tpc-sierra {
	display: none;
}

@media print {

	.tpc-site-header,
	.tpc-footer,
	.tpc-page-hero {
		display: none !important;
	}
}

/* ==========================================================
   COMPONENTES QUE PINTA EL CÓDIGO

   Bloques tpc/*, plantillas y partes del tema. Portados de la maqueta v4
   (docs/diseno/web-estatica/css/estilos.css) con prefijo tpc- y tokens del
   tema, en el mismo orden: las reglas del final mandan sobre las anteriores.

   Lo que se monta con bloques en el editor (secciones, cabeceras de
   sección, botones, enlaces, listas, piezas editoriales) NO está aquí:
   vive en los Global Styles de GenerateBlocks (tools/global-styles/).
   ========================================================== */

/* stylelint-disable no-duplicate-selectors -- Capas de la maqueta v4: los ajustes del final sobrescriben a propósito. */

.tpc-hero :focus-visible,
.tpc-key-dates :focus-visible,
.tpc-newsletter :focus-visible,
.tpc-podium :focus-visible {
	outline-color: var(--white);
}

.tpc-sierra {
	pointer-events: none;
	width: 100%;
	height: 200px;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
}

.tpc-antenna {
	fill: currentcolor;
	width: 18px;
	height: 53px;
}

.tpc-icon {
	fill: none;
	stroke: currentcolor;
	stroke-width: 1.8px;
	flex: none;
	width: 20px;
	height: 20px;
	transition: transform 0.2s;
}

.tpc-icon--sm {
	width: 16px;
	height: 16px;
}

.tpc-icon--down {
	transform: rotate(90deg);
}

.tpc-icon--up {
	transform: rotate(-90deg);
}

.tpc-icon--left {
	transform: rotate(180deg);
}

.tpc-chip-button {
	border: 1px solid var(--ink);
	background: var(--white);
	min-height: 44px;
	font-family: var(--tpc-font-display);
	cursor: pointer;
	border-radius: 2px;
	padding: 0.4rem 0.9rem;
	font-size: 1rem;
	font-weight: 700;
}

.tpc-chip-button:hover {
	background: var(--brand-100);
}

.tpc-chip-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.tpc-tag {
	background: var(--ink);
	color: var(--white);
	font-family: var(--tpc-font-display);
	letter-spacing: 0.04em;
	padding: 0.2rem 0.55rem;
	font-size: 0.9rem;
	font-weight: 600;
	display: inline-block;
}

.tpc-tag--outline {
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--ink);
	background: 0 0;
}

.tpc-pending {
	color: var(--brand);
	font-family: var(--tpc-font-body);
	letter-spacing: 0;
	text-transform: none;
	max-width: 100%;
	border: 1px dashed;
	border-radius: 2px;
	align-items: center;
	gap: 0.35rem;
	padding: 0.1rem 0.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	display: inline-flex;
}

.tpc-pending::before {
	content: "";
	background: currentcolor;
	border-radius: 50%;
	width: 6px;
	height: 6px;
}

.tpc-pending--light,
.tpc-key-dates .tpc-pending,
.tpc-hero .tpc-pending {
	color: var(--white);
}

.tpc-demo-badge {
	border: 1px dashed var(--brand);
	color: var(--brand);
	white-space: nowrap;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.6rem;
	font-size: 0.9rem;
	font-weight: 700;
	display: inline-flex;
}

.tpc-hero {
	min-height: min(760px, calc(100svh - var(--tpc-header)));
	background: var(--ink);
	color: var(--white);
	align-items: center;
	padding: 4rem 0 7rem;
	display: flex;
	position: relative;
	overflow: hidden;
}

.tpc-hero__image,
.tpc-hero__veil {
	object-fit: cover;
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
}

.tpc-hero__image {
	object-position: 70% center;
	filter: saturate(0.55);
}

.tpc-hero__veil {
	background: linear-gradient(90deg, rgb(35 31 32 / 92%), rgb(35 31 32 / 70%), rgb(35 31 32 / 25%)),
	linear-gradient(transparent 50%, rgb(35 31 32 / 70%));
}

.tpc-hero__sierra {
	color: rgb(255 255 255 / 32%);
	height: 170px;
}

.tpc-hero__inner {
	z-index: 2;
	grid-template-columns: 1.4fr 0.7fr;
	align-items: end;
	gap: 3rem;
	display: grid;
	position: relative;
}

.tpc-hero__eyebrow {
	font-family: var(--tpc-font-display);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--brand-200);
	margin: 0 0 1rem;
	font-size: 1.15rem;
	font-weight: 600;
}

.tpc-hero h1 {
	font-family: var(--tpc-font-display);
	letter-spacing: -0.01em;
	text-transform: uppercase;
	margin: 0;
	font-size: clamp(3.2rem, 7.5vw, 6.6rem);
	font-weight: 700;
	line-height: 1;
}

.tpc-hero h1 span {
	color: var(--brand-200);
}

.tpc-hero__date {
	font-family: var(--tpc-font-display);
	margin: 1rem 0 0;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 600;
}

.tpc-hero__lead {
	color: rgb(255 255 255 / 90%);
	max-width: 560px;
	margin: 1rem 0 2rem;
	font-size: 1.15rem;
}

.tpc-hero__actions {
	flex-wrap: wrap;
	gap: 0.8rem;
	display: flex;
}

.tpc-hero__panel {
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	background: rgb(35 31 32 / 60%);
	border: 1px solid rgb(255 255 255 / 35%);
	padding: 1.6rem;
}

.tpc-hero__status {
	font-family: var(--tpc-font-display);
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 700;
	display: flex;
}

.tpc-status-dot {
	background: var(--white);
	border-radius: 50%;
	flex: none;
	width: 11px;
	height: 11px;
	animation: 2.2s 3 pulse;
	display: inline-block;
	box-shadow: 0 0 rgb(255 255 255 / 60%);
}

.tpc-status-dot--dark {
	background: var(--brand);
	vertical-align: middle;
	box-shadow: 0 0 rgb(129 123 107 / 60%);
}

.tpc-countdown {
	font-family: var(--tpc-font-display);
	gap: 1.5rem;
	margin: 0;
	font-size: 1.1rem;
	display: flex;
}

.tpc-countdown span {
	flex-direction: column;
	display: flex;
}

.tpc-countdown b {
	font-variant-numeric: tabular-nums;
	font-size: 3.6rem;
	line-height: 1;
}

.tpc-hero__panel-note {
	color: rgb(255 255 255 / 85%);
	margin: 0.6rem 0 0;
	font-size: 0.95rem;
}

.tpc-key-dates {
	background: var(--brand-700);
	color: var(--white);
}

.tpc-key-dates ol {
	grid-template-columns: repeat(4, 1fr);
	display: grid;
}

.tpc-key-dates li {
	border-left: 1px solid rgb(255 255 255 / 20%);
	flex-direction: column;
	gap: 0.3rem;
	padding: 1.4rem 1.2rem;
	display: flex;
}

.tpc-key-dates li:first-child {
	border-left: 0;
	padding-left: 0;
}

.tpc-key-dates span {
	color: rgb(255 255 255 / 88%);
	font-size: 0.95rem;
}

.tpc-key-dates b {
	font-family: var(--tpc-font-display);
	font-size: 1.5rem;
}

.tpc-routes-grid {
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	display: grid;
}

.tpc-route-card {
	background: var(--white);
	border-top: 6px solid var(--brand);
	box-shadow: 0 1px 0 var(--tpc-color-line);
	flex-direction: column;
	align-items: flex-start;
	padding: 1.6rem;
	display: flex;
}

.tpc-route-card h3 {
	font-family: var(--tpc-font-display);
	text-transform: uppercase;
	margin: 1rem 0 0.8rem;
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1;
}

.tpc-route-card__stats {
	border-top: 1px solid var(--tpc-color-line);
	border-bottom: 1px solid var(--tpc-color-line);
	grid-template-columns: 1fr 1fr;
	gap: 0.8rem;
	width: 100%;
	margin: 0 0 1rem;
	padding: 0.8rem 0;
	display: grid;
}

.tpc-route-card__stats dt {
	color: var(--muted);
	font-size: 0.9rem;
}

.tpc-route-card__stats dd {
	font-family: var(--tpc-font-display);
	margin: 0.1rem 0 0;
	font-size: 1.6rem;
	font-weight: 700;
}

.tpc-route-card__stats .tpc-pending {
	font-size: 0.9rem;
}

.tpc-route-card p {
	color: var(--muted);
	flex: 1;
	margin: 0 0 1rem;
}

.tpc-news-grid {
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	display: grid;
}

.tpc-news-card {
	background: var(--white);
	flex-direction: column;
	display: flex;
}

.tpc-news-card img {
	aspect-ratio: 16/10;
	object-fit: cover;
	width: 100%;
}

.tpc-news-card > div {
	flex-direction: column;
	flex: 1;
	align-items: flex-start;
	padding: 1.4rem;
	display: flex;
}

.tpc-news-card h3 {
	font-family: var(--tpc-font-display);
	margin: 0.8rem 0 0.4rem;
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1.1;
}

.tpc-news-card p {
	color: var(--muted);
	flex: 1;
	margin: 0 0 0.6rem;
}

.tpc-results-teaser {
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 3rem;
	display: grid;
}

.tpc-official-results {
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	display: grid;
}

.tpc-official-results--compact {
	grid-template-columns: 1fr;
}

.tpc-official-results a {
	background: var(--white);
	border: 1px solid var(--tpc-color-line);
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1rem;
	min-height: 84px;
	padding: 1rem 1.2rem;
	text-decoration: none;
	display: grid;
}

.tpc-official-results a:hover {
	border-color: var(--ink);
}

.tpc-official-results__year {
	font-family: var(--tpc-font-display);
	color: var(--brand);
	font-size: 2.4rem;
	font-weight: 700;
}

.tpc-official-results b {
	font-family: var(--tpc-font-display);
	font-size: 1.3rem;
	display: block;
}

.tpc-official-results small {
	color: var(--muted);
	font-size: 0.9rem;
}

.tpc-gallery-teaser {
	background: var(--ink);
	cursor: pointer;
	border: 0;
	width: 100%;
	padding: 0;
	display: block;
	position: relative;
	overflow: hidden;
}

.tpc-gallery-teaser img {
	aspect-ratio: 4/3;
	object-fit: cover;
	opacity: 0.85;
	width: 100%;
	transition: transform 0.4s,
	opacity 0.3s;
}

.tpc-gallery-teaser:hover img {
	opacity: 0.7;
	transform: scale(1.03);
}

.tpc-gallery-teaser__label {
	color: var(--white);
	font-family: var(--tpc-font-display);
	text-align: left;
	background: linear-gradient(transparent, rgb(35 31 32 / 92%));
	align-items: center;
	gap: 0.6rem;
	padding: 1.2rem 1.4rem;
	font-size: 1.5rem;
	font-weight: 700;
	display: flex;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
}

.tpc-logo-strip {
	border: 1px solid var(--tpc-color-line);
	grid-template-columns: repeat(6, 1fr);
	display: grid;
}

.tpc-logo-strip li {
	border-right: 1px solid var(--tpc-color-line);
	justify-content: center;
	align-items: center;
	min-height: 120px;
	padding: 1rem;
	display: flex;
}

.tpc-logo-strip li:last-child {
	border-right: 0;
}

.tpc-logo-strip img {
	object-fit: contain;
	max-height: 70px;
}

.tpc-newsletter {
	background: var(--brand-700);
	color: var(--white);
	padding: 4rem 0 6rem;
	position: relative;
	overflow: hidden;
}

.tpc-newsletter__sierra {
	color: rgb(255 255 255 / 15%);
	height: 120px;
}

.tpc-newsletter__grid {
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 3rem;
	display: grid;
	position: relative;
}

.tpc-newsletter h2 {
	font-family: var(--tpc-font-display);
	text-transform: uppercase;
	margin: 0 0 0.6rem;
	font-size: clamp(2rem, 3.6vw, 2.8rem);
	font-weight: 700;
	line-height: 1.05;
}

.tpc-newsletter p {
	color: rgb(255 255 255 / 92%);
	margin: 0;
}

.tpc-newsletter .tpc-subscribe-form input[type="email"] {
	border-color: var(--white);
}

.tpc-newsletter .tpc-button--dark {
	background: var(--white);
	color: var(--ink);
}

.tpc-newsletter .tpc-button--dark:hover {
	background: var(--brand-100);
}

/* Enlaces del formulario sobre la banda oscura (la variante compacta va sobre fondo claro). */
.tpc-newsletter .tpc-subscribe-form a {
	color: var(--white);
}

.tpc-newsletter .tpc-field-error {
	color: var(--white);
	background: var(--tpc-color-error);
	padding: 0.3rem 0.6rem;
}

.tpc-newsletter__ok {
	border: 1px solid rgb(255 255 255 / 50%);
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.2rem 1.4rem;
	display: flex;
}

.tpc-newsletter__ok .tpc-text-link {
	color: var(--white);
}

.tpc-subscribe-form > label:not(.tpc-checkbox) {
	margin-bottom: 0.4rem;
	font-weight: 600;
	display: block;
}

.tpc-subscribe-form__row {
	display: flex;
}

.tpc-subscribe-form__row input {
	border-right: 0;
	flex: 1;
	min-width: 0;
}

.tpc-route-tabs {
	border-bottom: 2px solid var(--ink);
	display: flex;
	overflow-x: auto;
}

.tpc-route-tabs button,
.tpc-route-tabs a {
	min-height: 52px;
	font-family: var(--tpc-font-display);
	cursor: pointer;
	background: 0 0;
	border: 0;
	flex: 1 0 auto;
	padding: 0.8rem 1.2rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.tpc-route-tabs button:hover,
.tpc-route-tabs a:hover {
	background: var(--brand-100);
}

.tpc-route-tabs button[aria-selected="true"],
.tpc-route-tabs a[aria-current="page"] {
	background: var(--ink);
	color: var(--white);
}

.tpc-route-detail {
	background: var(--white);
	grid-template-columns: 1.1fr 0.9fr;
	animation: 0.3s fadeIn;
	display: grid;
}

.tpc-route-detail__copy {
	padding: clamp(1.6rem, 4vw, 3rem);
}

.tpc-route-detail h2 {
	font-family: var(--tpc-font-display);
	text-transform: uppercase;
	margin: 0.8rem 0 0.4rem;
	font-size: clamp(2.6rem, 5vw, 4rem);
	font-weight: 700;
	line-height: 1;
}

.tpc-route-detail__summary {
	color: var(--muted);
	margin: 0 0 1.4rem;
	font-size: 1.15rem;
}

.tpc-facts {
	border-top: 1px solid var(--tpc-color-line);
	margin: 0;
}

.tpc-facts div {
	border-bottom: 1px solid var(--tpc-color-line);
	grid-template-columns: 1fr 1.5fr;
	gap: 1rem;
	padding: 0.75rem 0;
	display: grid;
}

.tpc-facts dt {
	font-weight: 600;
}

.tpc-facts dd {
	margin: 0;
}

.tpc-route-detail__visual img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	min-height: 420px;
}

.tpc-course {
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-top: 1.5rem;
	display: grid;
}

.tpc-course h2 {
	font-family: var(--tpc-font-display);
	text-transform: uppercase;
	margin: 0 0 1rem;
	font-size: 1.9rem;
	font-weight: 700;
}

.tpc-course__steps {
	counter-reset: step;
}

.tpc-course__steps li {
	border-bottom: 1px solid var(--tpc-color-line);
	counter-increment: step;
	padding: 0.7rem 0 0.7rem 3rem;
	position: relative;
}

.tpc-course__steps li::before {
	content: counter(step);
	background: var(--ink);
	width: 2rem;
	height: 2rem;
	color: var(--white);
	font-family: var(--tpc-font-display);
	place-items: center;
	font-weight: 700;
	display: grid;
	position: absolute;
	top: 0.6rem;
	left: 0;
}

.tpc-course__map {
	background: var(--brand-700);
	min-height: 260px;
	color: var(--white);
	align-items: flex-start;
	padding: 1.4rem;
	display: flex;
	position: relative;
	overflow: hidden;
}

.tpc-course__sierra {
	color: var(--brand-200);
	opacity: 0.55;
	height: 170px;
}

.tpc-course__map p {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0;
	display: flex;
	position: relative;
}

.tpc-course__map b {
	font-family: var(--tpc-font-display);
	font-size: 1.6rem;
}

.tpc-course__map .tpc-pending {
	color: var(--white);
}

.tpc-course__actions {
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 2rem;
	display: flex;
}

.tpc-signup-layout {
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	display: grid;
}

.tpc-signup-status {
	background: var(--white);
	border-top: 6px solid var(--brand);
	padding: 2rem;
}

.tpc-signup-status h2 {
	font-family: var(--tpc-font-display);
	text-transform: uppercase;
	align-items: center;
	gap: 0.7rem;
	margin: 0 0 1rem;
	font-size: 3rem;
	font-weight: 700;
	line-height: 1;
	display: flex;
}

.tpc-signup-status__actions {
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 1.4rem;
	display: flex;
}

.tpc-timeline {
	border-left: 2px solid var(--ink);
}

.tpc-timeline li {
	border-bottom: 1px solid var(--tpc-color-line);
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1rem 0 1rem 1.6rem;
	display: flex;
	position: relative;
}

.tpc-timeline li::before {
	content: "";
	background: var(--bg);
	border: 2px solid var(--ink);
	border-radius: 50%;
	width: 12px;
	height: 12px;
	margin-top: -6px;
	position: absolute;
	top: 50%;
	left: -7px;
}

.tpc-timeline li:last-child::before {
	background: var(--ink);
}

.tpc-timeline b {
	font-family: var(--tpc-font-display);
	font-size: 1.25rem;
}

.tpc-price-table th small {
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 400;
	display: block;
}

.tpc-info-columns {
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-top: 2.5rem;
	display: grid;
}

.tpc-info-columns h3 {
	font-family: var(--tpc-font-display);
	text-transform: uppercase;
	margin: 0 0 0.4rem;
	font-size: 1.5rem;
}

.tpc-info-columns p {
	color: var(--muted);
	margin: 0 0 0.6rem;
}

.tpc-day-layout {
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 3rem;
	display: grid;
}

.tpc-schedule {
	border-top: 2px solid var(--ink);
}

.tpc-schedule li {
	border-bottom: 1px solid var(--tpc-color-line);
	font-family: var(--tpc-font-display);
	grid-template-columns: 7rem 1fr;
	align-items: center;
	gap: 1rem;
	padding: 1rem 0;
	font-size: 1.35rem;
	font-weight: 600;
	display: grid;
}

.tpc-place-card {
	background: var(--white);
}

.tpc-place-card__map {
	background: var(--brand);
	color: rgb(255 255 255 / 45%);
	height: 220px;
	position: relative;
	overflow: hidden;
}

.tpc-place-card__pin {
	background: var(--ink);
	border-radius: 50% 50% 50% 0;
	width: 26px;
	height: 26px;
	margin-left: -13px;
	position: absolute;
	top: 40%;
	left: 50%;
	transform: rotate(-45deg);
	box-shadow: 0 0 0 6px rgb(255 255 255 / 40%);
}

.tpc-place-card__body {
	padding: 1.6rem;
}

.tpc-place-card__body p {
	color: var(--muted);
}

.tpc-docs {
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	display: grid;
}

.tpc-docs li {
	background: var(--white);
	border: 1px solid var(--tpc-color-line);
	align-items: center;
	gap: 1rem;
	padding: 1.2rem;
	display: flex;
}

.tpc-docs__icon {
	background: var(--brand-100);
	flex: none;
	place-items: center;
	width: 48px;
	height: 48px;
	display: grid;
}

.tpc-docs b {
	font-family: var(--tpc-font-display);
	font-size: 1.3rem;
	display: block;
}

.tpc-news-list article {
	border-top: 1px solid var(--tpc-color-line);
	grid-template-columns: 320px 1fr;
	gap: 2rem;
	padding: 2rem 0;
	display: grid;
}

.tpc-news-list article:last-child {
	border-bottom: 1px solid var(--tpc-color-line);
}

.tpc-news-list img {
	aspect-ratio: 4/3;
	object-fit: cover;
	width: 100%;
}

.tpc-news-list h2 {
	font-family: var(--tpc-font-display);
	text-transform: none;
	margin: 0.7rem 0 0.4rem;
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.05;
}

.tpc-news-list p {
	color: var(--muted);
	margin: 0 0 0.6rem;
}

.tpc-news-more {
	border-left: 3px solid var(--brand);
	margin: 1rem 0;
	padding-left: 1rem;
	animation: 0.3s fadeIn;
}

.tpc-news-more p {
	color: var(--ink);
}

.tpc-logo-group {
	border-top: 2px solid var(--ink);
	padding: 2.5rem 0;
}

.tpc-logo-group h2 {
	font-family: var(--tpc-font-display);
	text-transform: uppercase;
	margin: 0 0 1.5rem;
	font-size: 2.4rem;
	font-weight: 700;
}

.tpc-logo-grid {
	background: var(--tpc-color-line);
	border: 1px solid var(--tpc-color-line);
	grid-template-columns: repeat(6, 1fr);
	gap: 1px;
	display: grid;
}

.tpc-logo-grid li {
	background: var(--white);
	justify-content: center;
	align-items: center;
	min-height: 130px;
	padding: 1rem;
	display: flex;
}

.tpc-logo-grid img {
	object-fit: contain;
	max-height: 80px;
}

.tpc-logo-group__more {
	color: var(--muted);
	margin: 1.2rem 0 0;
}

.tpc-logo-group__more span {
	color: var(--ink);
	font-weight: 700;
}

.tpc-results__head {
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1.5rem;
	margin-bottom: 2rem;
	display: flex;
}

.tpc-results__head h2 {
	font-family: var(--tpc-font-display);
	text-transform: uppercase;
	margin: 0;
	font-size: clamp(2.2rem, 4vw, 3.3rem);
	font-weight: 700;
	line-height: 1.05;
}

.tpc-results__intro {
	max-width: 620px;
	color: var(--muted);
	margin: 0.6rem 0 0;
}

.tpc-results__selectors {
	grid-template-columns: auto 1fr;
	gap: 1.5rem 2.5rem;
	margin-bottom: 2rem;
	display: grid;
}

.tpc-segmented {
	border: 0;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.tpc-segmented legend {
	margin-bottom: 0.5rem;
	font-weight: 700;
}

.tpc-segmented > div:not(.tpc-segmented__label) {
	border: 1px solid var(--ink);
	background: var(--white);
	flex-wrap: wrap;
	display: flex;
}

.tpc-segmented label {
	flex: 1 0 auto;
	position: relative;
}

.tpc-segmented input {
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
	margin: 0;
	position: absolute;
	inset: 0;
}

.tpc-segmented span {
	border-right: 1px solid var(--tpc-color-line);
	min-height: 48px;
	font-family: var(--tpc-font-display);
	white-space: nowrap;
	justify-content: center;
	align-items: center;
	padding: 0.5rem 1.1rem;
	font-size: 1.15rem;
	font-weight: 700;
	display: flex;
}

.tpc-segmented label:last-child span {
	border-right: 0;
}

.tpc-segmented label:hover span {
	background: var(--brand-100);
}

.tpc-segmented label.is-checked span {
	background: var(--ink);
	color: var(--white);
}

/* Selectores como enlaces (prueba y edición son páginas propias). */

.tpc-segmented__label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 700;
}

.tpc-segmented a {
	flex: 1 0 auto;
	color: inherit;
	text-decoration: none;
}

.tpc-segmented a:last-child span {
	border-right: 0;
}

.tpc-segmented a:hover span {
	background: var(--brand-100);
}

.tpc-segmented a[aria-current="page"] span {
	background: var(--ink);
	color: var(--white);
}

.tpc-results-search {
	grid-template-columns: 2fr 1fr auto;
	margin-bottom: 1rem;
}

.tpc-results__toolbar .tpc-button {
	min-height: 44px;
	padding: 0.45rem 0.9rem;
	font-size: 1rem;
}

.tpc-results__back {
	margin: 2rem 0 0;
}

.tpc-segmented input:focus-visible + span {
	outline: 3px solid var(--brand);
	outline-offset: -3px;
}

.tpc-results__stats {
	background: var(--white);
	border: 1px solid var(--tpc-color-line);
	grid-template-columns: repeat(4, 1fr);
	margin: 0 0 1.5rem;
	display: grid;
}

.tpc-results__stats div {
	border-right: 1px solid var(--tpc-color-line);
	padding: 1.1rem 1.3rem;
}

.tpc-results__stats div:last-child {
	border: 0;
}

.tpc-results__stats dt {
	color: var(--muted);
	font-size: 0.92rem;
}

.tpc-results__stats dd {
	font-family: var(--tpc-font-display);
	margin: 0.2rem 0 0;
	font-size: 2.1rem;
	font-weight: 700;
}

.tpc-podiums {
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
	display: grid;
}

.tpc-podium {
	background: var(--brand-700);
	color: var(--white);
	padding: 1.5rem;
}

.tpc-podium h3 {
	font-family: var(--tpc-font-display);
	text-transform: uppercase;
	margin: 0 0 1rem;
	font-size: 1.6rem;
	font-weight: 700;
}

.tpc-podium li {
	border-top: 1px solid rgb(255 255 255 / 20%);
	grid-template-columns: 2.5rem 1fr auto;
	align-items: center;
	gap: 0.8rem;
	padding: 0.7rem 0;
	display: grid;
}

.tpc-podium__pos {
	border: 1px solid var(--white);
	width: 2.2rem;
	height: 2.2rem;
	font-family: var(--tpc-font-display);
	place-items: center;
	font-size: 1.2rem;
	font-weight: 700;
	display: grid;
}

.tpc-podium li:first-child .tpc-podium__pos {
	background: var(--white);
	color: var(--ink);
}

.tpc-podium__name {
	font-weight: 600;
}

.tpc-podium__name small {
	color: rgb(255 255 255 / 85%);
	font-size: 0.9rem;
	font-weight: 400;
	display: block;
}

.tpc-podium__time {
	font-family: var(--tpc-font-display);
	font-variant-numeric: tabular-nums;
	font-size: 1.45rem;
	font-weight: 700;
}

.tpc-results__filters {
	background: var(--brand-100);
	border: 1px solid var(--tpc-color-line);
	grid-template-columns: 2fr 1fr 1fr auto;
	align-items: end;
	gap: 1rem;
	padding: 1.3rem;
	display: grid;
}

.tpc-results__filters > label:not(.tpc-checkbox) {
	flex-direction: column;
	gap: 0.4rem;
	font-weight: 600;
	display: flex;
}

.tpc-input-icon {
	display: block;
	position: relative;
}

.tpc-input-icon .tpc-icon {
	color: var(--muted);
	position: absolute;
	top: 50%;
	left: 0.9rem;
	transform: translateY(-50%);
}

.tpc-input-icon input {
	width: 100%;
	padding-left: 2.8rem;
}

.tpc-results__toolbar {
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin: 1.5rem 0 0.8rem;
	display: flex;
}

.tpc-results__toolbar p {
	margin: 0;
	font-weight: 600;
}

.tpc-results__toolbar > div {
	flex-wrap: wrap;
	gap: 0.5rem;
	display: flex;
}

.tpc-table-wrap {
	background: var(--white);
	border: 1px solid var(--tpc-color-line);
	scroll-margin-top: calc(var(--tpc-header) + 16px);
	overflow-x: auto;
}

.tpc-sort-icon {
	fill: rgb(255 255 255 / 40%);
	width: 10px;
	height: 14px;
}

.tpc-sort-icon .on {
	fill: var(--white);
}

.tpc-price-table tbody th {
	font-family: var(--tpc-font-display);
	font-size: 1.25rem;
}

.tpc-results-table tbody tr:not(.tpc-row-detail):hover {
	background: rgb(250 249 246);
}

.tpc-results-table tbody tr.is-open {
	background: var(--brand-100);
}

.tpc-results-table .tpc-runner {
	font-weight: 600;
}

.tpc-results-table .tpc-runner small {
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 400;
	display: block;
}

.tpc-results-table td small {
	color: var(--muted);
	font-size: 0.9rem;
}

.tpc-results-table .tpc-time {
	font-family: var(--tpc-font-display);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	font-size: 1.3rem;
	font-weight: 700;
}

.tpc-results-table tr.is-dnf .tpc-time {
	color: var(--tpc-color-error);
	font-size: 1.05rem;
}

.tpc-pos-badge {
	border: 1px solid var(--tpc-color-line);
	min-width: 2.2rem;
	height: 2.2rem;
	font-family: var(--tpc-font-display);
	place-items: center;
	padding: 0 0.3rem;
	font-size: 1.15rem;
	font-weight: 700;
	display: inline-grid;
}

.tpc-pos-badge--top {
	background: var(--ink);
	color: var(--white);
	border-color: var(--ink);
}

.tpc-cell-action {
	text-align: right;
	width: 56px;
}

.tpc-row-toggle {
	border: 1px solid var(--tpc-color-line);
	background: var(--white);
	color: var(--ink);
	padding: 0;
	cursor: pointer;
	place-items: center;
	width: 44px;
	height: 44px;
	display: inline-grid;
}

.tpc-row-toggle .tpc-icon {
	width: 18px;
	height: 18px;
	transform: rotate(90deg);
	transition: transform 0.2s;
}

.tpc-row-toggle[aria-expanded="true"] .tpc-icon {
	transform: rotate(-90deg);
}

.tpc-results-table thead th button {
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.tpc-results-table thead th button:hover {
	text-decoration: underline;
}

.tpc-results-table thead th button::after {
	content: "↕";
	opacity: 0.5;
}

.tpc-results-table thead th[aria-sort="ascending"] button::after {
	content: "↑";
	opacity: 1;
}

.tpc-results-table thead th[aria-sort="descending"] button::after {
	content: "↓";
	opacity: 1;
}

.tpc-segmented__label {
	text-align: left;
}

.tpc-row-toggle:hover {
	background: var(--brand-100);
	color: var(--ink);
}

.tpc-row-detail td {
	background: var(--brand-100);
	border-top: 0;
	padding: 0;
}

.tpc-row-detail__grid {
	grid-template-columns: 1.2fr 1fr;
	gap: 2rem;
	padding: 1.2rem 1.4rem 1.6rem;
	animation: 0.25s fadeIn;
	display: grid;
}

.tpc-row-detail dl {
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin: 0;
	display: grid;
}

.tpc-row-detail dt {
	color: var(--muted);
	font-size: 0.9rem;
}

.tpc-row-detail dd {
	font-family: var(--tpc-font-display);
	margin: 0.2rem 0 0;
	font-size: 1.5rem;
	font-weight: 700;
}

.tpc-splits ol {
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-top: 0.4rem;
	display: flex;
}

.tpc-splits li {
	border-left: 3px solid var(--brand);
	flex-direction: column;
	padding-left: 0.8rem;
	display: flex;
}

.tpc-splits li span {
	color: var(--muted);
	font-size: 0.9rem;
}

.tpc-splits li b {
	font-family: var(--tpc-font-display);
	font-variant-numeric: tabular-nums;
	font-size: 1.3rem;
}

.tpc-results__none {
	text-align: center;
	padding: 2rem;
}

.tpc-results__empty {
	background: var(--white);
	border: 1px solid var(--tpc-color-line);
	padding: 2.5rem;
}

.tpc-results__empty h3 {
	font-family: var(--tpc-font-display);
	text-transform: uppercase;
	margin: 0 0 0.6rem;
	font-size: 2.2rem;
	font-weight: 700;
}

.tpc-results__empty p {
	max-width: 620px;
	color: var(--muted);
}

.tpc-pagination {
	justify-content: center;
	align-items: center;
	gap: 0.4rem;
	margin-top: 1.5rem;
	display: flex;
}

.tpc-pagination button {
	border: 1px solid var(--ink);
	background: var(--white);
	color: var(--ink);
	min-width: 44px;
	height: 44px;
	font-family: var(--tpc-font-display);
	cursor: pointer;
	place-items: center;
	padding: 0 0.6rem;
	font-size: 1.1rem;
	font-weight: 700;
	display: grid;
}

.tpc-pagination button:hover:not(:disabled) {
	background: var(--brand-100);
}

.tpc-pagination button[aria-current="page"] {
	background: var(--ink);
	color: var(--white);
}

.tpc-pagination button:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.tpc-archive {
	background: var(--brand-100);
}

.tpc-archive-grid {
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	display: grid;
}

.tpc-archive-card {
	background: var(--white);
	border-top: 6px solid var(--brand);
	flex-direction: column;
	align-items: flex-start;
	padding: 1.8rem;
	display: flex;
}

.tpc-archive-card__year {
	font-family: var(--tpc-font-display);
	font-size: 4rem;
	font-weight: 700;
	line-height: 0.9;
}

.tpc-archive-card__ed {
	font-family: var(--tpc-font-display);
	color: var(--brand);
	margin-top: 0.3rem;
	font-size: 1.2rem;
	font-weight: 600;
}

.tpc-archive-card__count {
	color: var(--muted);
	margin: 0.5rem 0 1rem;
}

.tpc-archive-card dl {
	border-top: 1px solid var(--tpc-color-line);
	width: 100%;
	margin: 0 0 1.5rem;
}

.tpc-archive-card dl div {
	border-bottom: 1px solid var(--tpc-color-line);
	padding: 0.7rem 0;
}

.tpc-archive-card dt {
	color: var(--brand);
	font-size: 0.9rem;
	font-weight: 700;
}

.tpc-archive-card dd {
	justify-content: space-between;
	gap: 1rem;
	margin: 0.2rem 0 0;
	display: flex;
}

.tpc-archive-card dd b {
	font-family: var(--tpc-font-display);
	font-size: 1.15rem;
}

.tpc-archive-card .tpc-text-link {
	margin-top: auto;
}

.tpc-media-grid {
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	display: grid;
}

.tpc-media-grid li:first-child,
.tpc-media-grid li:nth-child(4),
.tpc-media-grid li:nth-child(6) {
	grid-column: span 2;
}

.tpc-media-card {
	background: var(--ink);
	text-decoration: none;
	width: 100%;
	height: 100%;
	min-height: 340px;
	color: var(--white);
	cursor: zoom-in;
	text-align: left;
	border: 0;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	padding: 1.6rem;
	display: flex;
	position: relative;
	overflow: hidden;
}

.tpc-media-card::after {
	content: "";
	background: linear-gradient(
	rgb(35 31 32 / 0%) 20%,
	rgb(35 31 32 / 30%) 45%,
	rgb(35 31 32 / 85%) 75%,
	rgb(35 31 32 / 95%)
	);
	position: absolute;
	inset: 0;
}

.tpc-media-card > img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	transition: transform 0.4s;
	position: absolute;
	inset: 0;
}

.tpc-media-card:hover > img,
.tpc-media-card:focus-visible > img {
	transform: scale(1.04);
}

.tpc-media-card > span {
	z-index: 1;
	position: relative;
	font-family: var(--tpc-font-display);
	font-size: medium;
}

a.tpc-media-card:hover {
	color: var(--lime);
}

.tpc-media-card__caption {
	z-index: 1;
	max-width: 30rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	position: relative;
}

.tpc-media-card__text {
	max-width: 440px;
	margin-top: 0.4rem;
	font-size: 1rem;
}

.tpc-media-grid li:nth-child(2) img {
	object-position: 50% 35%;
}

.tpc-media-grid li:nth-child(4) img {
	object-position: 50% 28%;
}

.tpc-media-grid li:nth-child(6) img {
	object-position: 50% 22%;
}

.tpc-dialog {
	z-index: 200;
	background: rgb(35 31 32 / 75%);
	justify-content: center;
	align-items: center;
	padding: 1.5rem;
	animation: 0.2s fadeIn;
	display: flex;
	position: fixed;
	inset: 0;
}

.tpc-dialog__box {
	background: var(--white);
	width: min(560px, 100%);
	max-height: calc(100vh - 3rem);
	color: var(--ink);
	border-top: 6px solid var(--brand);
	padding: 2.4rem;
	position: relative;
	overflow: auto;
}

.tpc-dialog__title {
	font-family: var(--tpc-font-display);
	text-transform: uppercase;
	margin: 0 2.5rem 1rem 0;
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.05;
}

.tpc-dialog__lead {
	color: var(--muted);
	margin: 0 0 1.4rem;
}

.tpc-dialog__close {
	border: 1px solid var(--tpc-color-line);
	cursor: pointer;
	background: 0 0;
	place-items: center;
	width: 44px;
	height: 44px;
	display: grid;
	position: absolute;
	top: 1rem;
	right: 1rem;
}

.tpc-dialog__close:hover {
	background: var(--brand-100);
}

.tpc-dialog__success {
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	display: flex;
}

.tpc-dialog--media {
	background: rgb(35 31 32 / 95%);
	padding: 4rem;
}

.tpc-dialog--media .tpc-dialog__box {
	width: auto;
	max-width: min(1100px, 100%);
	color: var(--white);
	background: 0 0;
	border: 0;
	padding: 0;
	position: static;
	overflow: visible;
}

.tpc-dialog--media .tpc-dialog__close {
	color: var(--white);
	border-color: rgb(255 255 255 / 50%);
	position: fixed;
	top: 1.2rem;
	right: 1.2rem;
}

.tpc-lightbox__figure {
	margin: 0;
}

.tpc-lightbox__figure img {
	object-fit: contain;
	max-height: 76vh;
	margin: 0 auto;
}

.tpc-lightbox__figure figcaption {
	color: rgb(255 255 255 / 90%);
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1rem;
	display: flex;
}

.tpc-lightbox__figure figcaption b {
	font-family: var(--tpc-font-display);
	font-size: 1.15rem;
}

.tpc-lightbox__nav {
	width: 48px;
	height: 48px;
	color: var(--white);
	cursor: pointer;
	background: rgb(35 31 32 / 60%);
	border: 1px solid rgb(255 255 255 / 50%);
	place-items: center;
	display: grid;
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
}

.tpc-lightbox__nav--prev {
	left: 1.2rem;
}

.tpc-lightbox__nav--next {
	right: 1.2rem;
}

.tpc-lightbox__nav:hover,
.tpc-dialog--media .tpc-dialog__close:hover {
	background: var(--white);
	color: var(--ink);
}

@media (max-width: 1180px) {

	.tpc-routes-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tpc-logo-strip,
	.tpc-logo-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.tpc-logo-strip li:nth-child(3) {
		border-right: 0;
	}

	.tpc-logo-strip li:nth-child(-n + 3) {
		border-bottom: 1px solid var(--tpc-color-line);
	}

	.tpc-results__selectors {
		grid-template-columns: 1fr;
	}

	.tpc-results__filters {
		grid-template-columns: 1fr 1fr;
	}

	.tpc-results__search {
		grid-column: 1/-1;
	}
}

@media (max-width: 760px) {

	.tpc-hero {
		min-height: 0;
		padding: 2.5rem 0 6rem;
	}

	.tpc-hero__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.tpc-hero__veil {
		background: linear-gradient(rgb(35 31 32 / 60%), rgb(35 31 32 / 95%));
	}

	.tpc-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.tpc-countdown b {
		font-size: 2.8rem;
	}

	.tpc-key-dates ol {
		grid-template-columns: 1fr 1fr;
	}

	.tpc-key-dates li {
		border-top: 1px solid rgb(255 255 255 / 20%);
		border-left: 0;
		padding: 1rem 0.8rem;
	}

	.tpc-key-dates li:nth-child(odd) {
		padding-left: 0;
	}

	.tpc-routes-grid,
	.tpc-news-grid,
	.tpc-info-columns,
	.tpc-docs,
	.tpc-official-results {
		grid-template-columns: 1fr;
	}

	.tpc-results-teaser,
	.tpc-newsletter__grid,
	.tpc-route-detail,
	.tpc-course,
	.tpc-signup-layout,
	.tpc-day-layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.tpc-route-tabs {
		grid-template-columns: 1fr 1fr;
		display: grid;
		overflow: visible;
	}

	.tpc-route-tabs button,
	.tpc-route-tabs a {
		padding: 0.7rem 0.5rem;
		font-size: 1.1rem;
	}

	.tpc-route-detail__visual img {
		min-height: 280px;
	}

	.tpc-facts div {
		grid-template-columns: 1fr;
		gap: 0.1rem;
	}

	.tpc-logo-strip,
	.tpc-logo-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tpc-logo-strip li {
		border-bottom: 1px solid var(--tpc-color-line);
	}

	.tpc-logo-strip li:nth-child(odd) {
		border-right: 1px solid var(--tpc-color-line);
	}

	.tpc-logo-strip li:nth-child(2n) {
		border-right: 0;
	}

	.tpc-subscribe-form__row {
		flex-direction: column;
	}

	.tpc-subscribe-form__row input {
		min-height: 52px;
		border-right: 1px solid !important;
	}

	.tpc-news-list article {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.tpc-schedule li {
		grid-template-columns: 5.5rem 1fr;
		font-size: 1.15rem;
	}

	.tpc-media-grid {
		flex-direction: column;
		display: flex;
	}

	.tpc-media-card {
		min-height: 300px;
	}

	.tpc-results__stats {
		grid-template-columns: 1fr 1fr;
	}

	.tpc-results__stats div:nth-child(2) {
		border-right: 0;
	}

	.tpc-results__stats div:nth-child(-n + 2) {
		border-bottom: 1px solid var(--tpc-color-line);
	}

	.tpc-results__stats dd {
		font-size: 1.7rem;
	}

	.tpc-podiums {
		grid-template-columns: 1fr;
	}

	.tpc-results__filters {
		flex-direction: column;
		align-items: stretch;
		padding: 1rem;
		display: flex;
	}

	.tpc-segmented > div {
		grid-template-columns: 1fr 1fr;
		display: grid;
	}

	.tpc-segmented--3 > div {
		grid-template-columns: repeat(3, 1fr);
	}

	.tpc-segmented span {
		border-bottom: 1px solid var(--tpc-color-line);
		white-space: normal;
		text-align: center;
	}

	.tpc-results-table thead {
		clip-path: inset(50%);
		width: 1px;
		height: 1px;
		position: absolute;
		overflow: hidden;
	}

	.tpc-results-table,
	.tpc-results-table tbody,
	.tpc-results-table tr,
	.tpc-results-table td,
	.tpc-results-table th {
		display: block;
	}

	.tpc-results-table tbody tr:not(.tpc-row-detail) {
		border-top: 1px solid var(--tpc-color-line);
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: 0.2rem 0.9rem;
		padding: 1rem;
		display: grid;
	}

	.tpc-results-table tbody tr:not(.tpc-row-detail) > * {
		border: 0;
		padding: 0;
	}

	.tpc-results-table .tpc-col-pos {
		grid-row: span 2;
	}

	.tpc-results-table .tpc-runner {
		grid-column: 2;
	}

	.tpc-results-table .tpc-col-bib {
		display: none;
	}

	.tpc-results-table .tpc-col-cat {
		color: var(--muted);
		grid-column: 2;
		font-size: 0.9rem;
	}

	.tpc-results-table td.tpc-time {
		text-align: right;
		grid-area: 1/3;
	}

	.tpc-results-table .tpc-cell-action {
		grid-area: 2/3;
		width: auto;
	}

	.tpc-results-table .tpc-hide-sm {
		display: none !important;
	}

	.tpc-row-detail__grid {
		grid-template-columns: 1fr;
		padding: 1rem;
	}

	.tpc-row-detail dl {
		grid-template-columns: 1fr 1fr;
	}

	.tpc-price-table thead {
		display: none;
	}

	.tpc-price-table,
	.tpc-price-table tbody,
	.tpc-price-table tr,
	.tpc-price-table td,
	.tpc-price-table th {
		display: block;
	}

	.tpc-price-table tr {
		border-top: 1px solid var(--tpc-color-line);
		padding: 1rem;
	}

	.tpc-price-table td,
	.tpc-price-table th {
		border: 0;
		padding: 0.2rem 0;
	}

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

	.tpc-dialog--media {
		padding: 4rem 1rem;
	}

	.tpc-lightbox__nav {
		top: auto;
		bottom: 1rem;
		transform: none;
	}

	.tpc-dialog__box {
		padding: 2rem 1.3rem;
	}

	.tpc-dialog__title {
		font-size: 1.8rem;
	}
}

@media print {

	.tpc-results__selectors,
	.tpc-results__filters,
	.tpc-results__toolbar > div,
	.tpc-pagination,
	.tpc-podiums,
	.tpc-archive,
	.tpc-cell-action,
	.tpc-demo-badge,
	.tpc-official-results {
		display: none !important;
	}
}

.tpc-route-detail:focus-visible {
	outline-offset: 4px;
}

.tpc-hero__panel {
	flex-direction: column;
	align-items: flex-start;
	display: flex;
}

.tpc-hero__logo {
	aspect-ratio: 1;
	width: min(240px, 100%);
	height: auto;
	margin: 0 0 1.4rem;
}

.tpc-cup {
	background: var(--bg);
	border-left: 4px solid var(--brand);
	align-items: center;
	gap: 1rem;
	margin-top: 1.4rem;
	padding: 1rem;
	display: flex;
}

.tpc-cup img {
	width: auto;
	height: 56px;
}

.tpc-cup p {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.4rem;
	margin: 0;
	display: flex;
}

.tpc-logo-group h2 small {
	color: var(--brand);
	font-size: 1.2rem;
	font-weight: 600;
}

.tpc-logo-grid li {
	min-height: 110px;
}

.tpc-logo-grid img {
	max-height: 64px;
}

@media (max-width: 760px) {

	.tpc-hero__logo {
		width: 160px;
	}

	.tpc-cup {
		flex-wrap: wrap;
	}
}

.tpc-logo-grid {
	background: var(--white);
	gap: 0;
}

.tpc-logo-grid li {
	box-shadow: 0 0 0 0.5px var(--tpc-color-line);
}

.tpc-ref2026 {
	background: var(--brand-100);
	color: var(--brand);
	font-family: var(--tpc-font-body);
	letter-spacing: 0;
	text-transform: none;
	vertical-align: middle;
	white-space: nowrap;
	border-radius: 2px;
	align-items: center;
	gap: 0.3rem;
	margin-left: 0.3rem;
	padding: 0.05rem 0.45rem;
	font-size: 0.9rem;
	font-weight: 600;
	display: inline-flex;
}

.tpc-key-dates__note {
	color: rgb(255 255 255 / 85%);
	margin: 0;
	padding: 0 0 1rem;
	font-size: 0.9rem;
}

.tpc-course__profile {
	background: var(--white);
	border: 1px solid var(--tpc-color-line);
	margin: 0;
	padding: 1rem;
}

.tpc-course__profile img {
	width: 100%;
	height: auto;
}

.tpc-course__profile figcaption,
.tpc-course__mapimg figcaption {
	color: var(--muted);
	margin-top: 0.6rem;
	font-size: 0.95rem;
}

.tpc-course__mapimg {
	background: var(--white);
	border: 1px solid var(--tpc-color-line);
	margin: 1.5rem 0 0;
	padding: 1rem;
}

.tpc-course__mapimg img {
	width: 100%;
	height: auto;
}

.tpc-price-table td.tpc-price {
	font-family: var(--tpc-font-display);
	font-size: 1.35rem;
	font-weight: 700;
}

.tpc-aid-table th[scope="row"] {
	font-family: var(--tpc-font-display);
	font-size: 1.2rem;
}

.tpc-table-note {
	margin: 0.8rem 0 0;
}

.tpc-docs li {
	padding: 0;
}

.tpc-docs li > a {
	align-self: stretch;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 1.2rem;
	text-decoration: none;
	display: flex;
}

.tpc-docs li > a:hover {
	background: var(--brand-100);
}

.tpc-docs li:not(:has(a)) {
	padding: 1.2rem;
}

.tpc-docs small {
	color: var(--muted);
	font-size: 0.95rem;
	display: block;
}

.tpc-schedule li {
	grid-template-columns: 14rem 1fr;
}

.tpc-schedule__time {
	font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {

	.tpc-schedule li {
		grid-template-columns: 1fr;
		gap: 0.1rem;
	}

	.tpc-schedule__time {
		color: var(--brand);
		font-size: 1rem;
	}

	.tpc-aid-table thead {
		display: none;
	}

	.tpc-aid-table,
	.tpc-aid-table tbody,
	.tpc-aid-table tr,
	.tpc-aid-table td,
	.tpc-aid-table th {
		display: block;
	}

	.tpc-aid-table tr {
		border-top: 1px solid var(--tpc-color-line);
		padding: 0.8rem 1rem;
	}

	.tpc-aid-table td,
	.tpc-aid-table th {
		border: 0;
		padding: 0.1rem 0;
	}
}

.tpc-edition-nav {
	background: var(--white);
	border-bottom: 1px solid var(--tpc-color-line);
	top: var(--tpc-header);
	z-index: 40;
	position: sticky;
}

.tpc-edition-nav .tpc-section__inner {
	flex-wrap: wrap;
	align-items: center;
	gap: 2rem;
	display: flex;
}

.tpc-edition-nav__label {
	font-family: var(--tpc-font-display);
	color: var(--brand);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 1.1rem;
	font-weight: 700;
}

.tpc-edition-nav ul {
	flex-wrap: wrap;
	gap: 0.5rem;
	display: flex;
}

.tpc-edition-nav a {
	min-height: 52px;
	font-family: var(--tpc-font-display);
	border-bottom: 4px solid transparent;
	align-items: center;
	padding: 0 1rem;
	font-size: 1.2rem;
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
}

.tpc-edition-nav a:hover {
	background: var(--brand-100);
}

.tpc-edition-nav a[aria-current="page"] {
	border-color: var(--ink);
}

.tpc-editions {
	flex-direction: column;
	gap: 1rem;
	display: flex;
}

.tpc-edition {
	background: var(--white);
	border-left: 6px solid var(--brand);
	grid-template-columns: 5.5rem 1fr auto;
	align-items: center;
	gap: 1.5rem;
	padding: 1.4rem 1.6rem;
	display: grid;
}

.tpc-edition--next {
	background: var(--brand-100);
	border-left-color: var(--ink);
}

.tpc-edition__ord {
	background: var(--brand-700);
	width: 5rem;
	height: 5rem;
	color: var(--white);
	font-family: var(--tpc-font-display);
	place-items: center;
	font-size: 2.2rem;
	font-weight: 700;
	display: grid;
}

.tpc-edition--next .tpc-edition__ord {
	background: var(--ink);
}

.tpc-edition__year {
	font-family: var(--tpc-font-display);
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1;
}

.tpc-edition__date {
	color: var(--muted);
	margin: 0.2rem 0 0.6rem;
}

.tpc-edition__status {
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-weight: 600;
	display: flex;
}

.tpc-edition__facts {
	flex-wrap: wrap;
	gap: 0.4rem 2rem;
	margin: 0;
	display: flex;
}

.tpc-edition__facts dt {
	color: var(--muted);
	font-size: 0.9rem;
}

.tpc-edition__facts dd {
	margin: 0;
	font-weight: 600;
}

.tpc-edition__actions {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	display: flex;
}

/* Columna de acciones con el mismo ancho en todas las filas: el botón la llena y el resto va a la izquierda. */
@media (min-width: 761px) {

	.tpc-edition {
		grid-template-columns: 5.5rem 1fr 14rem;
	}

	.tpc-edition__actions .tpc-button {
		width: 100%;
	}
}

.tpc-edition-strip {
	grid-template-columns: repeat(5, 1fr);
	gap: 1rem;
	display: grid;
}

.tpc-edition-strip a {
	background: var(--white);
	border-top: 6px solid var(--brand);
	flex-direction: column;
	gap: 0.2rem;
	min-height: 150px;
	padding: 1.3rem;
	text-decoration: none;
	transition: background 0.15s;
	display: flex;
}

.tpc-edition-strip a:hover {
	background: var(--brand-100);
}

.tpc-edition-strip .is-next a {
	background: var(--ink);
	color: var(--white);
	border-top-color: var(--ink);
}

.tpc-edition-strip .is-next a:hover {
	background: var(--brand-800);
}

.tpc-edition-strip__ord {
	font-family: var(--tpc-font-display);
	color: var(--brand);
	font-size: 1.1rem;
	font-weight: 700;
}

.tpc-edition-strip .is-next .tpc-edition-strip__ord {
	color: var(--brand-200);
}

.tpc-edition-strip b {
	font-family: var(--tpc-font-display);
	font-size: 2.6rem;
	line-height: 1;
}

.tpc-edition-strip span:last-child {
	margin-top: auto;
	font-size: 0.95rem;
}

/* Tantas columnas como ediciones con fotos (hasta 3): siempre a todo el ancho, como los vídeos. */
.tpc-album-grid {
	--tpc-album-cols: 3;
	--tpc-album-ratio: 4/3;
	grid-template-columns: repeat(var(--tpc-album-cols), 1fr);
	gap: 1rem;
	display: grid;
}

.tpc-album-grid--cols-1 {
	--tpc-album-cols: 1;
	--tpc-album-ratio: 21/9;
}

.tpc-album-grid--cols-2 {
	--tpc-album-cols: 2;
	--tpc-album-ratio: 16/9;
}

.tpc-album-grid button,
.tpc-album-grid a {
	background: var(--ink);
	cursor: pointer;
	text-align: left;
	border: 0;
	width: 100%;
	padding: 0;
	display: block;
	position: relative;
	overflow: hidden;
}

.tpc-album-grid img {
	aspect-ratio: var(--tpc-album-ratio);
	object-fit: cover;
	object-position: 50% 30%;
	opacity: 0.85;
	width: 100%;
	transition: transform 0.4s,
	opacity 0.3s;
}

.tpc-album-grid button:hover img,
.tpc-album-grid a:hover img {
	opacity: 0.7;
	transform: scale(1.04);
}

.tpc-album-grid__label {
	color: var(--white);
	background: linear-gradient(rgb(35 31 32 / 0%), rgb(35 31 32 / 80%) 35%, rgb(35 31 32 / 95%));
	flex-direction: column;
	padding: 1.6rem 1.2rem 1rem;
	display: flex;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
}

.tpc-album-grid__label b {
	font-family: var(--tpc-font-display);
	font-size: 1.5rem;
}

.tpc-album-filter {
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	display: flex;
}

.tpc-album-filter button,
.tpc-album-filter a {
	border: 1px solid var(--ink);
	background: var(--white);
	color: var(--ink);
	min-height: 56px;
	font-family: var(--tpc-font-display);
	cursor: pointer;
	flex-direction: column;
	align-items: flex-start;
	padding: 0.5rem 1rem;
	font-size: 1.15rem;
	font-weight: 700;
	display: flex;
}

.tpc-album-filter button small {
	font-family: var(--tpc-font-body);
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 400;
}

.tpc-album-filter a {
	justify-content: center;
	text-decoration: none;
}

.tpc-album-filter a[aria-current="page"] {
	background: var(--ink);
	color: var(--white);
}

.tpc-album-filter button:is(:hover, :focus) {
	background: var(--brand-100);
	color: var(--ink);
}

.tpc-album-filter button[aria-pressed="true"] {
	background: var(--ink);
	color: var(--white);
}

.tpc-album-filter button[aria-pressed="true"] small {
	color: var(--brand-200);
}

.tpc-media-card__label {
	z-index: 1;
	color: var(--brand-200);
	margin-bottom: 0.3rem;
	font-size: 0.95rem;
	font-weight: 600;
	position: relative;
}

.tpc-history {
	border-top: 2px solid var(--ink);
	grid-template-columns: repeat(5, 1fr);
	gap: 0;
	display: grid;
}

.tpc-history li {
	flex-direction: column;
	gap: 0.8rem;
	padding: 1.4rem 1.2rem 0 0;
	display: flex;
}

.tpc-history__ord {
	background: var(--brand-700);
	width: 3.2rem;
	height: 3.2rem;
	color: var(--white);
	font-family: var(--tpc-font-display);
	place-items: center;
	font-size: 1.5rem;
	font-weight: 700;
	display: grid;
}

.tpc-history li:last-child .tpc-history__ord {
	background: var(--ink);
}

.tpc-history b {
	font-family: var(--tpc-font-display);
	font-size: 2rem;
}

.tpc-history p {
	color: var(--muted);
	margin: 0.3rem 0;
}

.tpc-palmares .tpc-time {
	font-family: var(--tpc-font-display);
	font-variant-numeric: tabular-nums;
	font-size: 1.25rem;
	font-weight: 700;
}

.tpc-palmares tbody th {
	font-family: var(--tpc-font-display);
	font-size: 1.2rem;
}

@media (max-width: 1180px) {

	.tpc-edition-strip {
		grid-template-columns: repeat(3, 1fr);
	}

	.tpc-history {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem 0;
	}
}

@media (max-width: 760px) {

	.tpc-edition-nav {
		position: static;
	}

	.tpc-edition-nav .tpc-section__inner {
		gap: 0.3rem;
	}

	.tpc-edition-nav a {
		padding: 0 0.6rem;
		font-size: 1.05rem;
	}

	.tpc-edition {
		grid-template-columns: 1fr;
		gap: 0.8rem;
	}

	.tpc-edition__ord {
		width: 3.4rem;
		height: 3.4rem;
		font-size: 1.6rem;
	}

	.tpc-edition-strip {
		grid-template-columns: 1fr 1fr;
	}

	.tpc-edition-strip .is-next {
		grid-column: 1/-1;
	}

	.tpc-history {
		grid-template-columns: 1fr;
	}

	.tpc-history li {
		border-bottom: 1px solid var(--tpc-color-line);
		flex-direction: row;
		align-items: flex-start;
		gap: 1rem;
		padding: 1rem 0;
	}

	.tpc-palmares thead {
		display: none;
	}

	.tpc-palmares,
	.tpc-palmares tbody,
	.tpc-palmares tr,
	.tpc-palmares td,
	.tpc-palmares th {
		display: block;
	}

	.tpc-palmares tr {
		border-top: 1px solid var(--tpc-color-line);
		padding: 0.8rem 1rem;
	}

	.tpc-palmares td,
	.tpc-palmares th {
		border: 0;
		padding: 0.1rem 0;
	}
}

.tpc-race-list {
	flex-direction: column;
	gap: 0.6rem;
	display: flex;
}

.tpc-race {
	background: var(--white);
	color: var(--ink);
	border-left: 6px solid var(--brand-200);
	grid-template-columns: 5.5rem 1fr auto;
	align-items: center;
	gap: 1.4rem;
	padding: 1.1rem 1.3rem;
	display: grid;
}

.tpc-race--own {
	border-left-color: var(--ink);
	background: var(--brand-100);
}

.tpc-race__date {
	background: var(--brand-700);
	width: 5rem;
	height: 5.4rem;
	color: var(--white);
	font-family: var(--tpc-font-display);
	flex-direction: column;
	justify-content: center;
	align-items: center;
	line-height: 1;
	display: flex;
}

.tpc-race--own .tpc-race__date {
	background: var(--ink);
}

.tpc-race__date b {
	font-size: 2.2rem;
}

.tpc-race__date span {
	font-size: 1.1rem;
	font-weight: 700;
}

.tpc-race__date small {
	color: var(--brand-200);
	margin-top: 0.2rem;
	font-size: 0.9rem;
}

.tpc-race__title {
	font-family: var(--tpc-font-display);
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	font-size: 1.55rem;
	font-weight: 700;
	line-height: 1.1;
	display: flex;
}

.tpc-race__meta {
	color: var(--muted);
	margin: 0.2rem 0 0;
}

.tpc-race__dist {
	margin: 0.2rem 0 0;
	font-weight: 600;
}

.tpc-race__tags {
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.5rem;
	display: flex;
}

.tpc-race__tags li {
	border: 1px solid var(--tpc-color-line);
	padding: 0.1rem 0.5rem;
	font-size: 0.9rem;
}

.tpc-race__tags .tpc-race__flag {
	border-style: dashed;
	border-color: var(--brand);
	color: var(--brand);
}

.tpc-race__cup {
	color: var(--brand);
	margin: 0.4rem 0 0;
	font-size: 0.95rem;
	font-weight: 600;
}

.tpc-race__actions {
	flex-direction: column;
	align-items: flex-end;
	display: flex;
}

.tpc-race-list--compact .tpc-race {
	grid-template-columns: 5.5rem 1fr auto;
}

.tpc-race-list--compact .tpc-race__tags,
.tpc-race-list--compact .tpc-race__cup {
	display: none;
}

.tpc-cal-filters {
	background: var(--brand-100);
	border: 1px solid var(--tpc-color-line);
	grid-template-columns: 1.4fr 0.8fr 1.6fr;
	align-items: end;
	gap: 1rem;
	padding: 1.3rem;
	display: grid;
}

.tpc-cal-filters :is(input, select) {
	background-color: var(--white);
}

.tpc-cal-filters > label {
	flex-direction: column;
	gap: 0.4rem;
	font-weight: 600;
	display: flex;
}

.tpc-cal-types {
	border: 0;
	margin: 0;
	padding: 0;
}

.tpc-cal-types legend {
	margin-bottom: 0.4rem;
	font-weight: 600;
}

.tpc-cal-types > div {
	flex-wrap: wrap;
	gap: 0.4rem;
	display: flex;
}

.tpc-cal-types button {
	border: 1px solid var(--ink);
	background: var(--white);
	color: var(--ink);
	min-height: 44px;
	font-family: var(--tpc-font-display);
	cursor: pointer;
	padding: 0.4rem 0.9rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.tpc-cal-types button:is(:hover, :focus) {
	background: var(--brand-100);
	color: var(--ink);
}

.tpc-cal-types button[aria-pressed="true"] {
	background: var(--ink);
	color: var(--white);
}

.tpc-cal-count {
	margin: 1.2rem 0;
	font-weight: 700;
}

.tpc-cal-month {
	margin-bottom: 2rem;
}

.tpc-cal-month__title {
	border-bottom: 2px solid var(--ink);
	font-family: var(--tpc-font-display);
	text-transform: uppercase;
	margin: 0 0 0.8rem;
	padding-bottom: 0.4rem;
	font-size: 1.6rem;
}

.tpc-cal-note {
	background: var(--white);
	border: 1px dashed var(--brand);
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-top: 1.5rem;
	padding: 1.2rem;
	display: flex;
}

.tpc-copa-grid {
	grid-template-columns: repeat(3, 1fr);
	gap: 1.2rem;
	display: grid;
}

.tpc-copa-grid article {
	background: var(--bg);
	border-top: 6px solid var(--brand);
	padding: 1.6rem;
}

.tpc-copa-grid__n {
	font-family: var(--tpc-font-display);
	font-size: 3.4rem;
	font-weight: 700;
	line-height: 1;
}

.tpc-copa-grid h3 {
	font-family: var(--tpc-font-display);
	text-transform: uppercase;
	margin: 0.3rem 0;
	font-size: 1.7rem;
}

.tpc-copa-grid p {
	margin: 0 0 0.6rem;
	color: var(--muted);
}

.tpc-copa-grid small {
	color: var(--muted);
	font-size: 0.9rem;
}

.tpc-guide-grid {
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	display: grid;
}

.tpc-guide-grid li {
	background: var(--white);
	border-top: 6px solid var(--brand);
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 1.4rem;
	display: flex;
}

.tpc-guide-grid h3 {
	font-family: var(--tpc-font-display);
	margin: 0;
	font-size: 1.45rem;
	line-height: 1.1;
}

.tpc-guide-grid p {
	color: var(--muted);
	margin: 0;
}

@media (max-width: 1180px) {

	.tpc-cal-filters {
		grid-template-columns: 1fr 1fr;
	}

	.tpc-cal-types {
		grid-column: 1/-1;
	}

	.tpc-guide-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 760px) {

	.tpc-race,
	.tpc-race-list--compact .tpc-race {
		grid-template-columns: 4.2rem 1fr;
		gap: 1rem;
		padding: 1rem;
	}

	.tpc-race__date {
		width: 4rem;
		height: 4.6rem;
	}

	.tpc-race__date b {
		font-size: 1.8rem;
	}

	.tpc-race__actions {
		grid-column: 2;
		align-items: flex-start;
	}

	.tpc-cal-filters {
		flex-direction: column;
		align-items: stretch;
		display: flex;
	}

	.tpc-copa-grid,
	.tpc-guide-grid {
		grid-template-columns: 1fr;
	}
}

.tpc-home-search {
	max-width: 680px;
	margin: 0 0 2.5rem;
}

.tpc-home-search label {
	display: block;
	font-family: var(--tpc-font-display);
	font-weight: 800;
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.5rem;
}

.tpc-home-search__row {
	display: flex;
	gap: 0;
}

.tpc-home-search__row input {
	flex: 1;
	min-width: 0;
	min-height: 52px;
	font-size: 1.05rem;
}

.tpc-home-search__row .tpc-button {
	min-height: 52px;
	border-radius: 0;
}

.tpc-news-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 0.6rem;
}

.tpc-news-meta .tpc-tag {
	margin: 0;
}

.tpc-news-date {
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 600;
}

.tpc-race-featured {
	margin: 0 0 2.5rem;
}

.tpc-race-sheet .tpc-facts {
	margin-top: 1rem;
}

.tpc-race-sheet__actions {
	margin: 1.5rem 0 1rem;
}

/* Ficha sin foto: el texto a una columna de lectura. */

.tpc-route-detail--text {
	grid-template-columns: minmax(0, 52rem);
}

.tpc-race-sheet .tpc-tag {
	margin-left: 0.6rem;
}

.tpc-race-sheet__content {
	max-width: 760px;
	margin-top: 2.5rem;
}

.tpc-cal-empty {
	padding: 1.2rem;
	border: 1px dashed var(--brand);
	background: var(--white);
}

.tpc-cal-seasons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1rem;
	align-items: center;
	margin-top: 2rem;
	font-weight: 600;
}

.tpc-cal-seasons a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ink);
}

.tpc-cal-seasons a[aria-current="page"] {
	text-decoration: none;
	border-bottom: 3px solid var(--ink);
}

@media (max-width: 760px) {

	.tpc-home-search__row {
		flex-direction: column;
		gap: 0.6rem;
	}

	.tpc-home-search__row .tpc-button {
		width: 100%;
	}
}

.tpc-video-grid {
	list-style: none;
	padding: 0;
	margin: 0 0 3rem;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.tpc-video-card {
	position: relative;
	display: block;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: var(--brand-700);
	color: var(--white);
	text-decoration: none;
}

.tpc-video-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tpc-video-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(rgb(75 71 63 / 0%) 35%, rgb(75 71 63 / 90%));
}

.tpc-video-card__play {
	position: absolute;
	z-index: 1;
	left: 50%;
	top: 45%;
	transform: translate(-50%, -50%);
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--brand-700);
	display: grid;
	place-items: center;
}

.tpc-video-card__play svg {
	width: 30px;
	height: 30px;
	fill: var(--lime);
}

.tpc-video-card__label {
	position: absolute;
	z-index: 1;
	left: 1.25rem;
	right: 1.25rem;
	bottom: 1rem;
	display: flex;
	flex-direction: column;
}

.tpc-video-card__label b {
	font-family: var(--tpc-font-display);
	font-weight: 800;
	font-size: 1.6rem;
	text-transform: uppercase;
}

.tpc-video-card__label span {
	color: rgb(255 255 255 / 90%);
	font-family: var(--tpc-font-display);
}

a.tpc-video-card:hover {
	color: var(--lime);
}

@media (max-width: 760px) {

	.tpc-video-grid {
		grid-template-columns: 1fr;
	}

	.tpc-album-grid {
		--tpc-album-cols: 1;
		--tpc-album-ratio: 16/9;
	}
}

.tpc-hero {
	background: var(--brand-700);
}

.tpc-hero__veil {
	background: linear-gradient(90deg, rgb(75 71 63 / 95%) 0%, rgb(75 71 63 / 80%) 46%, rgb(75 71 63 / 25%) 80%),
	linear-gradient(transparent 50%, rgb(75 71 63 / 80%));
}

@media (max-width: 760px) {

	.tpc-hero__veil {
		background: linear-gradient(rgb(75 71 63 / 70%), rgb(75 71 63 / 95%));
	}
}

.tpc-hero h1 span,
.tpc-race__date small {
	color: var(--lime);
}

.tpc-hero__eyebrow {
	color: var(--brand-200);
}

.tpc-hero__panel {
	background: rgb(58 55 49 / 70%);
}

.tpc-gallery-teaser,
.tpc-album-grid button,
.tpc-album-grid a,
.tpc-media-card {
	background: var(--brand-700);
}

.tpc-tag {
	background: var(--brand-700);
}

.tpc-tag--outline {
	background: transparent;
}

.tpc-route-tabs {
	border-bottom-color: var(--brand-700);
}

.tpc-route-tabs button[aria-selected="true"],
.tpc-route-tabs a[aria-current="page"],
.tpc-segmented label.is-checked span,
.tpc-pagination button[aria-current="page"],
.tpc-album-filter button[aria-pressed="true"],
.tpc-cal-types button[aria-pressed="true"],
.tpc-pos-badge--top,
.tpc-course__steps li::before,
.tpc-timeline li:last-child::before {
	background: var(--brand-700);
	border-color: var(--brand-700);
	color: var(--white);
}

.tpc-edition--next .tpc-edition__ord,
.tpc-history li:last-child .tpc-history__ord,
.tpc-race--own .tpc-race__date,
.tpc-edition-strip .is-next a {
	background: var(--brand-700);
	border-top-color: var(--brand-700);
}

.tpc-edition--next .tpc-edition__ord,
.tpc-history li:last-child .tpc-history__ord,
.tpc-edition-strip .is-next .tpc-edition-strip__ord {
	color: var(--lime);
}

.tpc-edition-strip .is-next a:hover {
	background: var(--brand-800);
}

.tpc-edition--next,
.tpc-race--own {
	border-left-color: var(--brand-700);
}

.tpc-edition-strip .is-next a:hover .tpc-edition-strip__ord {
	color: var(--brand-200);
}

.tpc-hero__logo {
	width: 100%;
	max-width: 380px;
	aspect-ratio: auto;
	height: auto;
	max-height: 300px; /* Un logo de la edición más alto no estira el recuadro. */
	object-fit: contain;
	object-position: left center;
}

.tpc-hero h1 span {
	font-style: italic;
	font-weight: 900;
}

.tpc-hero .tpc-button--light,
.tpc-newsletter .tpc-button--dark {
	border-radius: 0;
	background: var(--lime);
	color: var(--brand-700);
	border-color: var(--lime);
}

.tpc-hero .tpc-button--light:hover,
.tpc-newsletter .tpc-button--dark:hover {
	background: var(--white);
	color: var(--ink);
	border-color: var(--white);
}

.tpc-podium li:first-child .tpc-podium__pos {
	background: var(--lime);
	color: var(--ink);
	border-color: var(--lime);
}

.tpc-archive,
.tpc-ref2026,
.tpc-race--own,
.tpc-cal-filters,
.tpc-results__filters,
.tpc-edition--next,
.tpc-row-detail,
.tpc-cup {
	--brand: var(--brand-700);
}

.tpc-course__map :focus-visible {
	outline-color: var(--white);
}

.tpc-hero h1 {
	font-weight: 900;
	letter-spacing: -0.02em;
}

.tpc-newsletter h2,
.tpc-route-detail h2,
.tpc-results__head h2,
.tpc-signup-status h2,
.tpc-logo-group h2,
.tpc-news-list h2,
.tpc-archive-card__year,
.tpc-copa-grid__n {
	font-weight: 900;
	letter-spacing: -0.01em;
}

.tpc-chip-button,
.tpc-route-tabs button,
.tpc-route-tabs a,
.tpc-segmented span,
.tpc-pagination button,
.tpc-album-filter button,
.tpc-cal-types button,
.tpc-edition-nav a {
	font-weight: 800;
}

.tpc-hero__eyebrow,
.tpc-tag {
	font-weight: 800;
}

.tpc-route-tabs a,
.tpc-album-grid a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.tpc-route-tabs a {
	text-align: center;
}

.tpc-route-tabs a[aria-current="page"] {
	color: var(--white);
}

.tpc-route-tabs ul,
.tpc-route-tabs [role="tablist"] {
	display: flex;
}

/* ==========================================================
   Noticias y formularios propios (F5)
   ========================================================== */

/* Campo trampa antispam: fuera de la vista y del orden de tabulación. */
.tpc-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tpc-form-status:empty {
	display: none;
}

.tpc-form-status {
	margin: 1rem 0 0;
	font-weight: 700;
}

.tpc-newsletter .tpc-form-status {
	border: 1px solid rgb(255 255 255 / 50%);
	padding: 0.8rem 1rem;
}

.tpc-prose {
	max-width: 46rem;
	font-size: 1.1rem;
	line-height: 1.7;
}

.tpc-prose > * + * {
	margin-top: 1.2rem;
}

.tpc-prose h2,
.tpc-prose h3 {
	font-family: var(--tpc-font-display);
	margin-top: 2.2rem;
	line-height: 1.1;
}

.tpc-prose img {
	height: auto;
}

.tpc-news-action {
	margin-top: 2.5rem;
}

.tpc-news-notify {
	background: var(--brand-100);
	border-top: 6px solid var(--brand);
	padding: clamp(1.5rem, 3vw, 2.2rem);
}

.tpc-news-notify h2 {
	margin: 0 0 0.4rem;
	font-size: 1.6rem;
}

.tpc-news-notify p {
	margin: 0 0 1rem;
}

.tpc-subscribe-form input[type="email"],
.tpc-home-search input {
	background-color: var(--white);
	color: var(--ink);
}

.tpc-news-pages ul {
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
	display: flex;
}

.tpc-news-pages a,
.tpc-news-pages span {
	border: 1px solid var(--tpc-color-line);
	justify-content: center;
	align-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.9rem;
	display: inline-flex;
}

.tpc-news-pages .current {
	background: var(--ink);
	color: var(--white);
	border-color: var(--ink);
}

/* ==========================================================
   Ficha de modalidad: piezas de los bloques tpc/modality-* (la composición es un Element de GB)
   ========================================================== */

.tpc-modality-intro__title {
	font-family: var(--tpc-font-display);
	text-transform: uppercase;
	margin: 0.8rem 0 0.4rem;
	font-size: clamp(2.6rem, 5vw, 4rem);
	font-weight: 900;
	letter-spacing: -0.01em;
	line-height: 1;
}

.tpc-modality-intro__summary {
	color: var(--muted);
	margin: 0 0 1.4rem;
	font-size: 1.15rem;
}

.tpc-modality-intro__ref {
	margin: 0 0 1rem;
}

/* ==========================================================
   Dónde comer y alojarse (tpc/places)
   ========================================================== */

.tpc-places__empty {
	border: 1px dashed var(--tpc-color-line);
	padding: 1.5rem;
	color: var(--muted);
}

.tpc-place-list {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
}

.tpc-place-card {
	background: var(--white);
	border-top: 6px solid var(--tpc-color-line);
	flex-direction: column;
	display: flex;
}

.tpc-place-card--partner {
	border-top-color: var(--brand);
}

.tpc-place-card img {
	aspect-ratio: 16/9;
	object-fit: cover;
	width: 100%;
	height: auto;
}

.tpc-place-card__body {
	padding: 1.1rem 1.2rem 1.2rem;
}

.tpc-place-card__tags {
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 0.6rem;
	display: flex;
}

.tpc-place-card__tags .tpc-tag {
	font-size: 0.8rem;
}

.tpc-place-card h3,
.tpc-place-card h4 {
	font-family: var(--tpc-font-display);
	margin: 0 0 0.2rem;
	font-size: 1.6rem;
	line-height: 1.1;
}

.tpc-place-card__where,
.tpc-place-card__address {
	color: var(--muted);
	margin: 0 0 0.4rem;
}

/* Iconos de Tabler (maqueta de Lourdes, 19 nov): tipo junto al nombre, dirección, teléfono y web. */
.tpc-place-card h4 {
	align-items: center;
	gap: 0.45rem;
	display: flex;
}

.tpc-place-card h4 .tpc-icon {
	width: 22px;
	height: 22px;
	stroke-width: 1.75px;
}

.tpc-place-card__address {
	align-items: flex-start;
	gap: 0.4rem;
	display: flex;
}

.tpc-place-card__address .tpc-icon {
	margin-top: 0.2em;
}

.tpc-place-card__offer {
	background: var(--brand-100);
	margin: 0.6rem 0;
	padding: 0.5rem 0.8rem;
	font-weight: 700;
}

.tpc-place-card__links {
	flex-wrap: wrap;
	gap: 0.2rem 1.2rem;
	margin: 0.4rem 0 0;
	display: flex;
}

.tpc-place-card__links a {
	min-height: 32px; /* Por encima de los 24 px de WCAG 2.5.8 y con la ficha compacta de la maqueta. */
	align-items: center;
	gap: 0.35rem;
	font-weight: 600;
	display: inline-flex;
}

/* ==========================================================
   Revisión de accesibilidad y diseño (10 nov 2026)
   ========================================================== */

/* Reflujo a 320 px (WCAG 1.4.10): palabras largas y columnas de rejilla que no encogen. */
h1,
h2,
h3 {
	overflow-wrap: break-word;
}

.tpc-signup-layout > * {
	min-width: 0;
}

/* El logo de la portada se ve también en móvil (lleva el patrocinador principal). Con versión móvil
   de la edición va en un <picture>: que no cuente como caja, para que el panel siga mandando. */
.tpc-hero__panel picture {
	display: contents;
}

/* ==========================================================
   Bloque tpc/embed: portada propia hasta que se pulsa (nada de terceros antes).
   ========================================================== */

.tpc-embed {
	margin: 0 0 2rem;
}

.tpc-embed__frame {
	position: relative;
	aspect-ratio: 16/9;
	background: var(--brand-700);
	color: var(--white);
	overflow: hidden;
}

.tpc-embed--map .tpc-embed__frame,
.tpc-embed--route .tpc-embed__frame {
	aspect-ratio: 4/3;
}

.tpc-embed--post .tpc-embed__frame {
	aspect-ratio: 4/5;
	max-width: 540px;
}

.tpc-embed__facade {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	padding: 1.25rem;
	text-align: center;
}

.tpc-embed__facade p {
	margin: 0;
}

.tpc-embed__provider {
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tpc-color-on-dark-muted);
}

.tpc-embed__title {
	font-family: var(--tpc-font-display);
	font-weight: 800;
	font-size: clamp(1.25rem, 3vw, 1.6rem);
	line-height: 1.15;
	text-transform: uppercase;
	overflow-wrap: break-word;
	max-width: 32ch;
}

.tpc-embed__load {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 44px;
	padding: 0.5rem 1.25rem 0.5rem 0.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.tpc-embed__load:hover {
	background: var(--brand-100);
}

.tpc-embed__load:focus-visible,
.tpc-embed__link:focus-visible {
	outline: 3px solid var(--white);
	outline-offset: 3px;
}

.tpc-embed__play {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--brand-700);
}

.tpc-embed__play svg {
	width: 18px;
	height: 18px;
	fill: var(--lime);
}

.tpc-embed__note {
	max-width: 46ch;
	font-size: 0.875rem;
	color: var(--tpc-color-on-dark-muted);
}

.tpc-embed__link {
	color: var(--white);
	text-decoration: underline;
}

.tpc-embed__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.tpc-embed__caption {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: var(--muted);
}

/* En móvil la portada no cabe en 16:9 con todos los textos: crece lo que haga falta. */
@media (max-width: 480px) {

	.tpc-embed__frame:not(:has(iframe)) {
		aspect-ratio: auto;
		min-height: 220px;
	}

	.tpc-embed__facade {
		position: relative;
		min-height: 220px;
	}
}

/* Páginas de los enlaces del «Avísame» (confirmar alta, darse de baja). */
.tpc-notify-status__body {
	padding-block: 3rem 4rem;
	max-width: 60ch;
}

.tpc-notify-status__body p {
	margin: 0 0 1.5rem;
}

/* ==========================================================
   Desplegables (11 nov 2026): misma altura que los campos de texto y flecha propia con aire a la derecha.
   ========================================================== */

select:not([multiple]):not([size]) {
	appearance: none;
	line-height: 1.5;
	padding-right: 2.75rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231f20' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 1.1rem;
	cursor: pointer;
}

/* ==========================================================
   Fotos por edición (18 nov 2026): /fotos/?edicion= y la selección de esa edición. Las horizontales
   ocupan una celda 4:3 y las verticales dos de alto, para no cortarlas.
   ========================================================== */

.tpc-album-heading {
	margin: 0 0 1.25rem;
}

.tpc-gallery {
	container-type: inline-size;
}

.tpc-media-grid--edition {
	--tpc-cols: 3;
	--tpc-gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--tpc-cols), 1fr);
	grid-auto-rows: calc((100cqi - (var(--tpc-cols) - 1) * var(--tpc-gap)) / var(--tpc-cols) * 0.75);
	grid-auto-flow: dense;
	gap: var(--tpc-gap);
}

.tpc-media-grid--edition li:nth-child(n) {
	grid-column: auto;
}

.tpc-media-grid--edition li.is-portrait {
	grid-row: span 2;
}

.tpc-media-grid--edition .tpc-media-card {
	min-height: 0;
	padding: 1rem;
}

.tpc-media-grid--edition li:nth-child(n) img {
	object-position: 50% 35%;
}

.tpc-media-grid--edition .tpc-media-card::after {
	background: linear-gradient(rgb(35 31 32 / 0%) 55%, rgb(35 31 32 / 88%));
}

.tpc-media-grid--edition .tpc-media-card__caption {
	font-family: var(--tpc-font-display);
	font-size: 0.9rem;
}

/* Móvil: dos columnas de miniaturas cuadradas con el pie debajo (sobre la foto taparía demasiado). */
@media (max-width: 760px) {

	.tpc-media-grid--edition {
		--tpc-gap: 0.5rem;
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: auto;
	}

	.tpc-media-grid--edition li.is-portrait {
		grid-row: auto;
	}

	.tpc-media-grid--edition .tpc-media-card {
		justify-content: flex-start;
		padding: 0;
	}

	.tpc-media-grid--edition .tpc-media-card::after {
		display: none;
	}

	.tpc-media-grid--edition .tpc-media-card > img {
		position: static;
		aspect-ratio: 1;
		height: auto;
		object-position: 50% 30%;
	}

	.tpc-media-grid--edition .tpc-media-card__caption {
		padding: 0.5rem 0.6rem 0.6rem;
		font-size: 0.8rem;
		line-height: 1.3;
	}
}

/* Mapa web (tpc/sitemap). */
.tpc-sitemap {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: 2rem 3rem;
	align-items: start;
}

.tpc-sitemap h2 {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
}

.tpc-sitemap ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tpc-sitemap ul ul {
	margin: 0.2rem 0 0.4rem;
	padding-left: 1rem;
	border-left: 2px solid var(--brand-200);
}

.tpc-sitemap a {
	display: inline-block;
	padding: 0.3rem 0;
	color: var(--ink);
}

.tpc-sitemap a:hover {
	color: var(--brand-700);
}

/* ==========================================================
   Filas de formulario alineadas (12 nov 2026): campos, desplegables y botones de una misma fila
   miden lo mismo (--tpc-control-h). El buscador de la portada y el «Avísame» van más grandes y ya
   cuadran entre sí.
   ========================================================== */

:root {
	--tpc-control-h: 3rem;
}

input:is([type="text"], [type="search"], [type="email"], [type="tel"], [type="url"], [type="number"]),
select:not([multiple]):not([size]) {
	min-height: var(--tpc-control-h);
}

.tpc-results-search .tpc-button,
.tpc-cal-types button {
	height: var(--tpc-control-h);
	min-height: var(--tpc-control-h);
	padding-block: 0;
}

.tpc-results__filters .tpc-checkbox {
	display: flex;
	align-items: center;
	min-height: var(--tpc-control-h);
	margin-top: 0;
}

/* ==========================================================
   Alineaciones entre tarjetas y filas (12 nov 2026)
   ========================================================== */

/* Noticias: la fecha y la etiqueta no crecen; el enlace queda abajo en todas. */
.tpc-news-card .tpc-news-meta {
	flex: none;
}

/* Modalidades: etiqueta, título, datos, texto y enlace a la misma altura en todas las tarjetas. */
@supports (grid-template-rows: subgrid) {

	.tpc-route-card {
		display: grid;
		grid-row: span 5;
		grid-template-rows: subgrid;
		row-gap: 0;
		justify-items: start;
		align-items: start;
	}

	.tpc-route-card__stats {
		row-gap: 0;
	}

	.tpc-route-card__stats > div {
		display: grid;
		grid-row: span 2;
		grid-template-rows: subgrid;
		row-gap: 0.1rem;
	}

	.tpc-route-card__stats dd {
		margin: 0;
	}
}

/* Fechas de la edición: etiqueta a la izquierda y dato a la derecha en todas las filas. */
.tpc-timeline li {
	display: grid;
	grid-template-columns: minmax(9rem, 1fr) auto;
	column-gap: 1.5rem;
	row-gap: 0.25rem;
}

.tpc-timeline b {
	text-align: right;
}

/* Modalidad: aire entre la etiqueta y la tabla de datos. */
.tpc-modality-intro {
	margin-bottom: 1rem;
}

@media (max-width: 760px) {

	.tpc-timeline li {
		grid-template-columns: 1fr;
	}

	.tpc-timeline b {
		text-align: left;
	}

	/* El botón de reproducir no pisa el título del vídeo. */
	.tpc-video-card__play {
		top: 38%;
		width: 56px;
		height: 56px;
	}

	.tpc-video-card__play svg {
		width: 24px;
		height: 24px;
	}
}

/* Contacto: el correo no desborda en pantallas estrechas. */
.tpc-contact-data dd {
	overflow-wrap: anywhere;
}

/* ==========================================================
   Avituallamientos de todas las pruebas y material obligatorio (18 nov 2026)
   ========================================================== */

.tpc-aid + .tpc-aid {
	margin-top: 2.5rem;
}

.tpc-aid__title {
	margin: 0 0 0.3rem;
}

.tpc-aid__meta {
	color: var(--muted);
	margin: 0 0 0.8rem;
}

.tpc-gear-table th[scope="col"]:not(:first-child),
.tpc-gear-table td {
	text-align: center;
	width: 4.5rem;
}

.tpc-gear-table td {
	font-weight: 700;
}

@media (max-width: 760px) {

	/* En móvil cada fila es una tarjeta: el nombre de la columna va delante del dato. */
	.tpc-aid-table td[data-label]::before {
		content: attr(data-label) ": ";
		color: var(--muted);
	}

	.tpc-gear-table th,
	.tpc-gear-table td {
		padding: 0.5rem 0.35rem;
		font-size: 0.9rem;
	}

	.tpc-gear-table th[scope="col"]:not(:first-child),
	.tpc-gear-table td {
		width: 2.8rem;
	}
}

/* Comer y alojarse: saltos a cada sección y grupos «Colaboradores» / «Más opciones cerca» (18 nov 2026). */
.tpc-places__jump {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 2.5rem;
}

.tpc-places__section + .tpc-places__section {
	margin-top: 3.5rem;
}

.tpc-places__section h2 {
	margin: 0 0 1rem;
}

.tpc-places__group {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 2rem 0 1rem;
	font-family: var(--tpc-font-display);
	font-size: 1.35rem;
	text-transform: uppercase;
}

.tpc-places__group::after {
	content: "";
	flex: 1;
	border-top: 1px solid var(--ink);
}

/* Track GPX de la modalidad, debajo del plano (comentario de Lourdes, 24 nov 2026): tarjeta como las de
   Descargas, pegada al plano (o al recorrido si no hay plano). */
.tpc-course__gpx {
	background: var(--white);
	border: 1px solid var(--tpc-color-line);
	flex-wrap: wrap;
	align-items: center;
	gap: 0.2rem 1rem;
	margin: 1rem 0 0;
	padding: 0.4rem 1rem;
	display: flex;
}

.tpc-course__mapimg + .tpc-course__gpx {
	border-top: 0;
	margin-top: 0;
}

.tpc-course__gpx + .tpc-course__gpx {
	border-top: 0;
	margin-top: 0;
}

.tpc-course__gpx a {
	min-height: 44px;
	align-items: center;
	gap: 0.5rem;
	display: inline-flex;
}

.tpc-course__gpx small {
	color: var(--muted);
	font-family: var(--tpc-font-body);
	font-size: 0.85rem;
	font-weight: 400;
	text-decoration: none;
	display: inline-block;
}

.tpc-course__gpx-note {
	color: var(--muted);
	font-size: 0.9rem;
}

/* El perfil no se estira hasta el alto de la lista de tramos (quedaba un hueco en blanco). */
.tpc-course__profile {
	align-self: start;
}

/* ==========================================================
   Comentarios de diseño de Lourdes (24 nov 2026), pasados desde Personalizar.
   Al final de la hoja para que manden sobre las reglas anteriores con el mismo selector.
   ========================================================== */

.tpc-results__filters {
	background: var(--white);
}

.tpc-edition {
	background: var(--bg);
}

.tpc-edition.tpc-edition--next {
	background: var(--brand-200);
	border-left-color: var(--lime);
}

.tpc-edition-strip a {
	background: var(--bg);
}

.tpc-edition-strip .is-next a {
	border-top-color: var(--lime);
}

@media (max-width: 760px) {

	.tpc-hero__image {
		object-position: 40% center;
	}
}

/* Clasificación en PDF (2013 y 2014): formato y tamaño debajo del botón. */
.tpc-edition__file {
	color: var(--muted);
	font-size: 0.85rem;
}

/* ==========================================================
   UTMB Index (24 nov 2026): logo junto al título de Modalidades, logo de categoría a la izquierda del
   enlace de cada tarjeta y en la ficha de la modalidad. Marca de UTMB: sin recolorear y sobre fondo claro.
   ========================================================== */

.tpc-section-heading__title {
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1.2rem;
	display: flex;
}

.tpc-utmb {
	width: auto;
	height: 40px;
	display: block;
}

.tpc-utmb--category {
	height: 32px;
}

.tpc-utmb-link {
	display: inline-flex;
}

.tpc-route-card__foot {
	justify-self: stretch;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	min-height: 44px;
	display: flex;
}

.tpc-route-card__foot .tpc-text-link {
	margin-left: auto;
}

.tpc-facts__utmb dd {
	align-items: center;
	gap: 0.6rem;
	display: flex;
}

/* Firma del pie: el enlace hereda el color claro del pie (con el de por defecto no se leía sobre el fondo oscuro). */
.tpc-footer__credit a {
	color: inherit;
	text-underline-offset: 3px;
}

.tpc-footer__credit a:hover,
.tpc-footer__credit a:focus-visible {
	color: var(--white);
}
