/**
 * Themes hub + theme term pages — charte 2026.
 */

.photo-slot {
	position: relative;
	background: linear-gradient(150deg, var(--jade-mid) 0%, var(--jade-deep) 100%);
	overflow: hidden;
}

.photo-slot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.themes-hero {
	background: var(--jade-deep);
	color: var(--white);
	padding: 2.15rem 0 2.5rem;
}

.themes-hero__crumb {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(251, 248, 240, 0.7);
	margin: 0 0 1rem;
}

.themes-hero__crumb a {
	color: inherit;
	text-decoration: none;
}

.themes-hero__crumb span {
	margin: 0 0.4rem;
	opacity: 0.55;
}

.themes-hero h1 {
	font-family: var(--font-display);
	font-size: clamp(1.7rem, 3.6vw, 2.6rem);
	color: var(--white);
	margin: 0;
	line-height: 1.15;
	max-width: 44rem;
}

.themes-intro {
	padding: 2.25rem 0 0.5rem;
	max-width: 52rem;
	color: var(--ink-soft);
}

.themes-intro h2,
.themes-intro h3 {
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 2.4vw, 1.55rem);
	color: var(--jade-deep);
	font-weight: 500;
	margin: 0 0 1rem;
}

.themes-intro p {
	margin: 0 0 1rem;
}

.themes-filters {
	display: flex;
	gap: 0.65rem;
	align-items: center;
	flex-wrap: wrap;
	padding: 1.6rem 0;
	border-top: 1px solid rgba(28, 27, 22, 0.12);
	border-bottom: 1px solid rgba(28, 27, 22, 0.12);
	margin-top: 1.25rem;
}

.themes-filters__k {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--clay);
}

.themes-filters__sep {
	width: 1px;
	height: 1.4rem;
	background: rgba(28, 27, 22, 0.15);
	margin: 0 0.35rem;
}

.themes-pill {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	background: var(--white);
	border: 1px solid rgba(28, 27, 22, 0.15);
	padding: 0.4rem 0.75rem;
	border-radius: 20px;
	text-decoration: none;
	color: var(--ink);
}

.themes-pill:hover,
.themes-pill.is-active {
	border-color: var(--gold);
	color: var(--jade-deep);
}

.themes-select-wrap {
	display: inline-flex;
}

.themes-select {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	background: var(--white);
	border: 1px solid rgba(28, 27, 22, 0.15);
	padding: 0.45rem 0.75rem;
	border-radius: 20px;
	color: var(--ink);
	max-width: 14rem;
}

.themes-section {
	padding: 2.5rem 0 3.5rem;
}

.themes-section__lbl {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--clay);
	margin-bottom: 1.1rem;
	display: block;
}

.themes-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.75rem;
}

.themes-grid--compact {
	grid-template-columns: repeat(4, 1fr);
}

.themes-card {
	position: relative;
	min-height: 6.5rem;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0.75rem;
	gap: 0.5rem;
	background: var(--jade-deep);
	border: 1px solid rgba(28, 27, 22, 0.1);
	transition: background-color 0.2s ease;
}

.themes-card:hover {
	background: var(--jade-mid);
}

.themes-card__avatar {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	flex: none;
}

.themes-card__lbl {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.03em;
	color: var(--white);
	line-height: 1.25;
}

.themes-formats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 2.75rem;
	padding-top: 2rem;
	border-top: 1px dashed rgba(28, 27, 22, 0.15);
}

.themes-format {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.03em;
	text-decoration: none;
	color: var(--jade-mid);
	border: 1px solid rgba(28, 27, 22, 0.15);
	padding: 0.55rem 1rem;
	border-radius: 20px;
}

.themes-format:hover {
	border-color: var(--gold);
	color: var(--jade-deep);
}

.themes-circuits {
	margin-top: 0.5rem;
}

.dest-circuit-card__duration {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--ink-soft);
}

.themes-empty {
	color: var(--ink-soft);
	margin: 1rem 0 0;
}

.themes-related {
	border-top: 1px solid rgba(28, 27, 22, 0.12);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (max-width: 1100px) {
	.themes-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 820px) {
	.themes-grid,
	.themes-grid--compact {
		grid-template-columns: repeat(3, 1fr);
	}

	.themes-filters__sep {
		display: none;
	}
}

@media (max-width: 560px) {
	.themes-grid,
	.themes-grid--compact {
		grid-template-columns: repeat(2, 1fr);
	}
}
