/*
 * torneo-detail.css — Page styles for /torneo/<slug>/.
 *
 * Inherits tokens.css. Mockup tokens (--s-1..9, --gutter, --max-w) were
 * translated to the project scale (--space-1..16, --container-*). Status,
 * date, and ACF fields are rendered server-side; the JS only animates the
 * countdown and toggles share + lightbox. All classes are prefixed .td-*.
 */

.td-page { font-family: var(--font-body); color: var(--text-primary); }
.td-container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.td-breadcrumb {
	padding: var(--space-4) 0 0;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-tertiary);
	letter-spacing: 0.04em;
	display: flex;
	align-items: center;
	gap: var(--space-2);
	flex-wrap: wrap;
}
.td-breadcrumb a {
	color: var(--text-secondary);
	text-decoration: none;
	transition: color var(--transition-base);
}
.td-breadcrumb a:hover { color: var(--text-primary); }
.td-breadcrumb__sep { color: var(--text-tertiary); opacity: 0.5; }
.td-breadcrumb__current {
	color: var(--text-tertiary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 360px;
}

/* ============================================================
   HERO — 2 cols editorial
   ============================================================ */
.td-hero {
	padding: var(--space-6) 0 var(--space-12);
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: var(--space-16);
	align-items: start;
	border-bottom: 1px solid var(--border-default);
}

.td-hero__info { min-width: 0; }

.td-status-row {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
	flex-wrap: wrap;
}
.td-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border-radius: var(--radius-sm);
}
.td-status--upcoming { background: var(--accent-50); color: var(--accent-800); }
.td-status--upcoming::before {
	content: "";
	width: 6px;
	height: 6px;
	background: var(--accent-600);
	border-radius: 50%;
}
.td-status--live { background: rgba(181, 48, 46, 0.1); color: var(--danger); }
.td-status--live::before {
	content: "";
	width: 6px;
	height: 6px;
	background: var(--danger);
	border-radius: 50%;
	animation: td-pulse 1.5s ease-in-out infinite;
}
.td-status--finished { background: var(--bg-muted); color: var(--text-secondary); }
.td-status--finished::before { content: "✓"; font-size: 11px; }
@keyframes td-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(1.4); }
}

.td-type-tag {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-secondary);
}

.td-hero__title {
	font-family: var(--font-display);
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--text-primary);
	margin: 0 0 var(--space-4);
}
.td-hero__title em { font-style: italic; color: var(--accent-600); }

.td-hero__subtitle {
	font-size: 17px;
	color: var(--text-secondary);
	line-height: 1.5;
	max-width: 560px;
	margin: 0 0 var(--space-6);
}

.td-meta-row {
	display: flex;
	gap: var(--space-6);
	flex-wrap: wrap;
	margin-bottom: var(--space-8);
}
.td-meta-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.td-meta-item__label {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-tertiary);
}
.td-meta-item__value {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 500;
	color: var(--text-primary);
}
.td-meta-item__value svg {
	width: 14px;
	height: 14px;
	color: var(--text-secondary);
	flex-shrink: 0;
}

.td-cta-row {
	display: flex;
	gap: var(--space-3);
	flex-wrap: wrap;
}
.td-btn-primary,
.td-btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: 13px 24px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
	cursor: pointer;
}
.td-btn-primary {
	background: var(--accent-600);
	color: var(--text-on-accent);
	border: 0;
}
.td-btn-primary:hover { background: var(--accent-800); }
.td-btn-primary svg { width: 14px; height: 14px; }
.td-btn-secondary {
	background: transparent;
	color: var(--text-primary);
	border: 1px solid var(--border-strong);
}
.td-btn-secondary:hover { border-color: var(--text-primary); background: var(--bg-muted); }
.td-btn-secondary svg { width: 14px; height: 14px; }

/* ============================================================
   COUNTDOWN COLUMN (3 variants: upcoming / live / finished)
   ============================================================ */
.td-countdown {
	background: var(--text-primary);
	color: var(--text-on-accent);
	padding: var(--space-12) var(--space-8);
	border-radius: var(--radius-sm);
	text-align: center;
	position: relative;
	overflow: hidden;
	min-height: 320px;
}
.td-countdown::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 30%, rgba(30, 58, 95, 0.3), transparent 50%);
	pointer-events: none;
}
.td-countdown > * { position: relative; }

.td-countdown__label {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--neutral-400);
	margin-bottom: var(--space-3);
}
.td-countdown__num {
	font-family: var(--font-display);
	font-size: 112px;
	font-weight: 500;
	line-height: 0.9;
	color: var(--neutral-0);
	letter-spacing: -0.04em;
	margin-bottom: var(--space-4);
	font-variant-numeric: tabular-nums;
}
.td-countdown__unit {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 22px;
	font-weight: 400;
	color: var(--neutral-200);
}
.td-countdown__units {
	display: flex;
	justify-content: center;
	gap: var(--space-4);
	margin-top: var(--space-4);
	padding-top: var(--space-4);
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.td-countdown__units .unit {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--neutral-400);
	letter-spacing: 0.08em;
}
.td-countdown__units .unit strong {
	display: block;
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 500;
	color: var(--neutral-0);
	font-style: italic;
	margin-bottom: 2px;
	font-variant-numeric: tabular-nums;
}

/* Live state */
.td-countdown--live { background: linear-gradient(155deg, #4a1d1d, #2c0e0e); }
.td-countdown--live .td-countdown__label { color: rgba(255, 180, 180, 0.7); }
.td-countdown__round {
	font-family: var(--font-display);
	font-size: 48px;
	font-weight: 500;
	line-height: 1.0;
	color: var(--neutral-0);
	margin-bottom: var(--space-3);
}
.td-countdown__round strong {
	font-size: 88px;
	font-style: italic;
	display: block;
	font-variant-numeric: tabular-nums;
}
.td-countdown__live-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: var(--space-4);
	padding: 10px 18px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--neutral-0);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: background var(--transition-base);
}
.td-countdown__live-link:hover { background: rgba(255, 255, 255, 0.18); }
.td-countdown__live-link svg { width: 14px; height: 14px; }

/* Finished state */
.td-countdown--finished {
	background: var(--bg-muted);
	color: var(--text-primary);
	border: 1px solid var(--border-default);
}
.td-countdown--finished::before { display: none; }
.td-countdown--finished .td-countdown__label { color: var(--text-tertiary); }
.td-countdown__winner {
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: 500;
	line-height: 1.1;
	color: var(--text-primary);
	margin-bottom: var(--space-2);
}
.td-countdown__winner em { font-style: italic; color: var(--accent-600); }
.td-countdown__winner-meta {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-secondary);
}
.td-countdown__view-results {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: var(--space-4);
	padding: 11px 20px;
	background: var(--text-primary);
	color: var(--text-on-accent);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: background var(--transition-base);
}
.td-countdown__view-results:hover { background: var(--accent-800); }
.td-countdown__view-results svg { width: 14px; height: 14px; }

/* ============================================================
   STATS BAR
   ============================================================ */
.td-stats {
	background: var(--bg-muted);
	border-bottom: 1px solid var(--border-default);
}
.td-stats__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: var(--space-4) var(--container-padding);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-6);
}
.td-stat {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.td-stat__label {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-tertiary);
}
.td-stat__value {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
}
.td-stat__value--mono { font-family: var(--font-mono); font-size: 13px; }
.td-stat__value--highlight { color: var(--accent-600); }

/* ============================================================
   MAIN GRID (content + sticky sidebar)
   ============================================================ */
.td-main {
	padding: var(--space-12) 0;
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: var(--space-16);
}

.td-content { min-width: 0; }

/* About block (WYSIWYG content) */
.td-about {
	padding-bottom: var(--space-12);
	margin-bottom: var(--space-12);
	border-bottom: 1px solid var(--border-default);
}
.td-block__eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-tertiary);
	margin-bottom: var(--space-2);
}
.td-block__title {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.1;
	margin: 0 0 var(--space-4);
	color: var(--text-primary);
}
.td-about__body { font-size: 16px; line-height: 1.65; color: var(--text-primary); }
.td-about__body p { margin: 0 0 var(--space-3); }
.td-about__body p:last-child { margin-bottom: 0; }
.td-about__body a { color: var(--accent-600); border-bottom: 1px solid currentColor; }
.td-about__body h2, .td-about__body h3 {
	font-family: var(--font-display);
	font-weight: 500;
	margin: var(--space-6) 0 var(--space-3);
}
.td-about__body h2 { font-size: 24px; }
.td-about__body h3 { font-size: 20px; }
.td-about__body ul, .td-about__body ol { margin: 0 0 var(--space-3) var(--space-6); }
.td-about__body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: var(--space-3) 0; }

/* Convocatoria gallery */
.td-convocatoria {
	margin-bottom: var(--space-12);
	scroll-margin-top: 80px;
}
.td-convocatoria__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: var(--space-4);
	flex-wrap: wrap;
	gap: var(--space-3);
}
.td-convocatoria__hint {
	font-size: 13px;
	color: var(--text-tertiary);
	margin: 0 0 var(--space-4);
	font-family: var(--font-mono);
	letter-spacing: 0.04em;
}
.td-download-pdf {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-600);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: all var(--transition-base);
}
.td-download-pdf:hover {
	border-color: var(--accent-600);
	background: var(--accent-50);
}
.td-download-pdf svg { width: 12px; height: 12px; }

.td-gallery {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}
.td-gallery__item {
	position: relative;
	background: var(--bg-muted);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-sm);
	overflow: hidden;
	margin: 0;
	cursor: zoom-in;
	transition: border-color var(--transition-base);
}
.td-gallery__item:hover { border-color: var(--border-strong); }
.td-gallery__num {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	padding: 4px 10px;
	background: rgba(0, 0, 0, 0.7);
	color: var(--neutral-0);
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.08em;
	border-radius: var(--radius-sm);
}
/* Cover badge: bumps to accent blue + uppercase to flag this item as the
   official portada, separate from the numbered bases. */
.td-gallery__num--cover {
	background: var(--accent-600);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 600;
}
.td-gallery__item img {
	width: 100%;
	display: block;
	height: auto;
}

/* External links block */
.td-external-links {
	margin-top: var(--space-8);
	padding: var(--space-6);
	background: var(--bg-muted);
	border-radius: var(--radius-sm);
}
.td-external-links h3 {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-secondary);
	margin: 0 0 var(--space-3);
}
.td-external-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.td-external-links a {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	padding: 10px var(--space-3);
	background: var(--bg-page);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 500;
	color: var(--text-primary);
	text-decoration: none;
	transition: all var(--transition-base);
}
.td-external-links a:hover {
	border-color: var(--accent-600);
	color: var(--accent-600);
}
.td-external-links svg { width: 14px; height: 14px; color: var(--text-secondary); flex-shrink: 0; }
.td-external-links a:hover svg { color: var(--accent-600); }
.td-external-links .ext-arrow { margin-left: auto; opacity: 0.4; font-family: var(--font-mono); }

/* ============================================================
   SIDEBAR (sticky on desktop)
   ============================================================ */
.td-sidebar {
	position: sticky;
	/* Small offset from viewport top — the sticky .mc-nav at top:0 sits over
	   the first ~64px so this value puts the sidebar slightly under it.
	   Originally 88px which left a visible empty band whenever the page
	   scrolled past the nav. */
	top: 20px;
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding-right: 4px;
}
.td-sidebar::-webkit-scrollbar { width: 4px; }
.td-sidebar::-webkit-scrollbar-track { background: transparent; }
.td-sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

.td-sb-card {
	background: var(--bg-page);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-sm);
	padding: var(--space-4);
}
.td-sb-card__title {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-secondary);
	margin: 0 0 var(--space-3);
}
.td-sb-card__hint {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.5;
	margin: 0 0 var(--space-3);
}
.td-sb-card .td-btn-primary { width: 100%; justify-content: center; }
.td-sb-card__deadline {
	margin-top: var(--space-3);
	padding-top: var(--space-3);
	border-top: 1px solid var(--border-default);
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-secondary);
	text-align: center;
}

/* Location card */
.td-sb-card--location .td-map {
	aspect-ratio: 16 / 10;
	background: var(--bg-muted);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-sm);
	margin: 0 0 var(--space-3);
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: inherit;
	transition: border-color var(--transition-base);
}
.td-sb-card--location .td-map--clickable { cursor: pointer; }
.td-sb-card--location .td-map--clickable:hover {
	border-color: var(--accent-600);
}
.td-sb-card--location .td-map--clickable:hover .td-map__pin svg {
	transform: translateY(-2px);
}
.td-sb-card--location .td-map__pin svg {
	transition: transform var(--transition-base);
}
.td-sb-card--location .td-map::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.04) 100%);
}
.td-sb-card--location .td-map__pin {
	position: relative;
	z-index: 2;
	color: var(--accent-600);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 0 var(--space-3);
	text-align: center;
}
.td-sb-card--location .td-map__pin svg {
	width: 44px;
	height: 44px;
	filter: drop-shadow(0 4px 8px rgba(30, 58, 95, 0.25));
}
.td-sb-card--location .td-map__pin-label {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 600;
	color: var(--accent-800);
	letter-spacing: -0.005em;
}
.td-sb-card--location .td-venue-name {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.005em;
	margin: 0 0 6px;
	line-height: 1.2;
}
.td-sb-card--location .td-venue-address {
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.4;
	margin: 0 0 var(--space-3);
}
.td-map-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-600);
	text-decoration: none;
	transition: color var(--transition-base);
}
.td-map-cta:hover { color: var(--accent-800); }
.td-map-cta svg { width: 12px; height: 12px; }

/* Share card */
.td-share__row { display: flex; gap: var(--space-2); }
.td-share__btn {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-muted);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-sm);
	color: var(--text-secondary);
	transition: all var(--transition-base);
	cursor: pointer;
	text-decoration: none;
}
.td-share__btn:hover {
	color: var(--text-primary);
	border-color: var(--border-strong);
	background: var(--bg-page);
}
.td-share__btn svg { width: 16px; height: 16px; }

/* Owner edit card */
.td-sb-card--owner {
	background: var(--accent-50);
	border-color: var(--accent-200);
}
.td-sb-card--owner .td-owner-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px var(--space-3);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-600);
	text-decoration: none;
}
.td-sb-card--owner .td-owner-link svg { width: 12px; height: 12px; }

.td-updated-banner {
	max-width: var(--container-max);
	margin: var(--space-3) auto 0;
	padding: 10px var(--container-padding);
	background: var(--success);
	color: var(--neutral-0);
	font-size: 13px;
	border-radius: var(--radius-sm);
	text-align: center;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.td-comments {
	border-top: 1px solid var(--border-default);
	padding: var(--space-12) 0;
}
.td-comments__header {
	display: flex;
	align-items: baseline;
	gap: var(--space-3);
	margin-bottom: var(--space-6);
}
.td-comments__header h2 {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 500;
	letter-spacing: -0.01em;
	margin: 0;
}
.td-comments__count {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-tertiary);
	letter-spacing: 0.06em;
}

/* ============================================================
   LIGHTBOX (convocatoria zoom)
   ============================================================ */
.td-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.9);
	display: none;
	align-items: center;
	justify-content: center;
	padding: var(--space-4);
	opacity: 0;
	transition: opacity var(--transition-base);
}
.td-lightbox.is-open { display: flex; opacity: 1; }
.td-lightbox img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
.td-lightbox__close {
	position: absolute;
	top: var(--space-4);
	right: var(--space-4);
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.1);
	border: 0;
	border-radius: var(--radius-full);
	color: var(--neutral-0);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.td-lightbox__close:hover { background: rgba(255, 255, 255, 0.2); }
.td-lightbox__close svg { width: 22px; height: 22px; }

/* ============================================================
   BACK LINK — a subtle "Ver todos los torneos" anchored above the
   dark CTA so readers have an exit before the acquisition pitch.
   ============================================================ */
.td-back-row {
	/* Flex centering is more robust than text-align here: the parent is a
	   flex column, and depending on inherited styles the inline-flex anchor
	   may or may not respect text-align. justify-content always centers. */
	display: flex;
	justify-content: center;
	padding: var(--space-6) var(--container-padding) var(--space-8);
}
.td-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	color: var(--text-secondary);
	text-decoration: none;
	transition: color var(--transition-fast);
}
.td-back-link svg {
	width: 14px;
	height: 14px;
	margin-top: 2px;
	opacity: 0.6;
	transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.td-back-link:hover { color: var(--accent-600); }
.td-back-link:hover svg { opacity: 1; transform: translateX(-2px); }

/* ============================================================
   CROSS-LINK (Publica tu torneo) — same pattern as the torneos archive
   and rating-fide. Flush to the footer via flex layout on the parent.
   ============================================================ */
.aa-main-content > .td-page { display: flex; flex-direction: column; flex: 1; }
.td-cross-link {
	margin-top: auto;
	padding: var(--space-16) var(--container-padding);
	background: var(--neutral-1000);
	color: var(--text-on-accent);
	text-align: center;
	position: relative;
	overflow: hidden;
}
.td-cross-link::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		conic-gradient(from 90deg at 8px 8px, rgba(255, 255, 255, 0.025) 90deg, transparent 0 180deg, rgba(255, 255, 255, 0.025) 0 270deg, transparent 0) 0 0 / 16px 16px,
		radial-gradient(ellipse at 20% 30%, rgba(74, 107, 142, 0.30), transparent 50%),
		radial-gradient(ellipse at 80% 70%, rgba(30, 58, 95, 0.25), transparent 50%);
	pointer-events: none;
	opacity: 0.95;
}
.td-cross-link::after {
	content: '';
	position: absolute;
	right: -40px;
	bottom: -40px;
	width: 320px;
	height: 320px;
	background-image: url('../assets/brand/isotype-on-dark.svg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: 0.07;
	pointer-events: none;
	transform: rotate(-8deg);
}
@media (max-width: 720px) {
	.td-cross-link::after { width: 200px; height: 200px; right: -20px; bottom: -20px; }
}
.td-cross-link__inner { position: relative; max-width: 720px; margin: 0 auto; }
.td-cross-link__eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent-200);
	margin: 0 0 var(--space-4);
}
.td-cross-link h2 {
	font-family: var(--font-display);
	font-size: clamp(32px, 6vw, 52px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.01em;
	margin: 0 0 var(--space-4);
}
.td-cross-link h2 em { font-style: italic; color: var(--accent-200); }
.td-cross-link p {
	font-size: 16px;
	color: var(--neutral-200);
	margin: 0 auto var(--space-8);
	max-width: 540px;
}
.td-cross-link__cta {
	display: inline-block;
	padding: 14px 28px;
	background: var(--neutral-0);
	color: var(--text-primary);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: background var(--transition-fast);
}
.td-cross-link__cta:hover { background: var(--accent-50); }

/* Share toast (replaces the prompt() on copy) */
.td-share-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	z-index: 1100;
	padding: 10px 18px;
	background: var(--text-primary);
	color: var(--text-on-accent);
	font-size: 13px;
	border-radius: var(--radius-sm);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--transition-base), transform var(--transition-base);
}
.td-share-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	/* Stack mode: flatten the grid + interleave sidebar cards with
	   content sections via `order`. `display: contents` lifts the
	   article/aside wrappers so their children become direct flex items. */
	.td-main {
		display: flex;
		flex-direction: column;
		gap: var(--space-6);
	}
	.td-content,
	.td-sidebar {
		display: contents;
	}
	.td-sidebar {
		position: static;
		max-height: none;
		overflow: visible;
		padding-right: 0;
	}
	.td-about              { order: 1; }
	.td-sb-card--owner     { order: 2; }
	.td-sb-card--inscripcion { order: 3; }
	.td-sb-card--location  { order: 4; }
	.td-convocatoria       { order: 5; }
	.td-sb-card--share     { order: 6; }
	.td-comments           { order: 7; } /* always last */
}

@media (max-width: 960px) {
	.td-hero {
		grid-template-columns: 1fr;
		gap: var(--space-6);
		padding: var(--space-6) 0 var(--space-8);
	}
	.td-countdown { padding: var(--space-6); min-height: 0; }
	.td-countdown__num { font-size: 80px; }
	.td-stats__inner { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}

@media (max-width: 720px) {
	.td-hero__title { font-size: 32px; }
	.td-meta-row { flex-direction: column; gap: var(--space-3); }
	.td-cta-row { flex-direction: column; }
	.td-cta-row .td-btn-primary,
	.td-cta-row .td-btn-secondary { width: 100%; justify-content: center; }
	.td-countdown__num { font-size: 64px; }
}
