/* Tour Morocco — homepage sections from the Claude Design. Tokens live in tm-site.css. */

.tm-home {
	font-family: var(--tm-sans-font);
	color: var(--tm-ink);
	background: var(--tm-sand);
}
.tm-home h1, .tm-home h2, .tm-home h3, .tm-home p, .tm-home figure, .tm-home blockquote { margin: 0; }
.tm-home a { color: var(--tm-terracotta); text-decoration: none; }
.tm-home a:hover { color: var(--tm-terracotta-darker); }
.tm-home button { font-family: var(--tm-sans-font); }

/* Photos fill their frame like the design's image slots. */
.tm-home .tm-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}

.tm-section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.tm-section--flush-top { padding-top: 0; }
.tm-section--flush-bottom { padding-bottom: 0; }

.tm-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tm-terracotta);
}
.tm-eyebrow--amber { color: var(--tm-amber); }

.tm-h2 {
	font-size: clamp(34px, 3.6vw, 52px) !important;
	line-height: 1.05 !important;
	color: inherit;
	text-wrap: balance;
}
.tm-h2--lg { font-size: clamp(36px, 4.2vw, 58px) !important; }
.tm-h2--xl { font-size: clamp(38px, 4.6vw, 62px) !important; }

.tm-link {
	align-self: flex-start;
	display: inline-flex;
	gap: 8px;
	align-items: center;
	font-weight: 600;
	color: var(--tm-ink) !important;
	border-bottom: 1.5px solid currentColor;
	padding-bottom: 3px;
	transition: color var(--tm-ease);
}
.tm-link .tm-i { width: 16px; height: 16px; transition: transform var(--tm-ease); }
.tm-link:hover .tm-i { transform: translateX(3px); }
.tm-link--quiet { color: var(--tm-ink-2) !important; border-bottom-color: transparent; font-weight: 500; }
.tm-link--quiet:hover { border-bottom-color: currentColor; }
.tm-link:hover { color: var(--tm-terracotta) !important; }
.tm-link--light { color: var(--tm-sand) !important; border-color: var(--tm-sand); }
.tm-link--light:hover { color: var(--tm-amber) !important; }
.tm-plainlink { font-weight: 600; color: var(--tm-ink) !important; margin-right: 8px; }
.tm-plainlink:hover { color: var(--tm-terracotta) !important; }

.tm-section__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 32px;
}
.tm-section__head--lg { margin-bottom: 40px; }
.tm-section__titles { display: flex; flex-direction: column; gap: 12px; }
.tm-section__meta { font-size: 15px; color: var(--tm-muted-2); }
.tm-dark .tm-section__meta { color: #B9AC9F; }
.tm-section__nav { display: flex; gap: 10px; align-items: center; }

.tm-arrow {
	width: 44px;
	height: 44px;
	border-radius: var(--tm-r);
	border: 1px solid var(--tm-line-strong);
	background: transparent;
	color: var(--tm-ink);
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
	transition: background-color var(--tm-ease), color var(--tm-ease), opacity var(--tm-ease);
}
.tm-arrow .tm-i { width: 18px; height: 18px; }
.tm-arrow:hover { background: var(--tm-ink); color: var(--tm-sand); border-color: var(--tm-ink); }
.tm-arrow[aria-disabled="true"] { opacity: .35; cursor: default; pointer-events: none; }

.tm-rating { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--tm-ink-2); }
.tm-rating b { color: var(--tm-ink); font-weight: 700; }
.tm-rating__new { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tm-terracotta); }
.tm-rating--light { color: var(--tm-line); }
.tm-rating--light b { color: var(--tm-ivory); }
.tm-rating--light .tm-stars { color: var(--tm-gold); }
.tm-rating--light .tm-rating__new { color: var(--tm-gold); }

.tm-heart {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 249, 241, .94);
	color: var(--tm-ink);
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
	transition: transform var(--tm-ease), color var(--tm-ease);
}
.tm-heart .tm-i { width: 19px; height: 19px; }
.tm-heart:hover { transform: scale(1.06); }
.tm-heart:active { transform: scale(.94); }
.tm-heart[aria-pressed="true"] { color: var(--tm-m1); --tm-heart-fill: var(--tm-m1); }

/* ------------------------------------------------------------------ Hero */
.tm-hero-wrap { position: relative; padding: 16px 16px 0; }
.tm-hero {
	position: relative;
	height: min(88vh, 780px);
	min-height: 560px;
	border-radius: var(--tm-r-lg);
	overflow: hidden;
	background: #3A2A1E;
}
/* Slider: stacked slides crossfade; the active one zooms in slowly. */
.tm-hero__slides { position: absolute; inset: 0; }
.tm-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.tm-slide.is-active { opacity: 1; }
.tm-hero .tm-slide .tm-img {
	object-position: var(--pos, 50% 50%);
	transform: scale(1.001);
	transition: transform 7.5s linear;
}
.tm-slide.is-active .tm-img { transform: scale(1.06); }

.tm-slider-ui {
	position: absolute;
	top: clamp(16px, 2.6vw, 32px);
	right: clamp(16px, 2.6vw, 32px);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 8px 8px 8px 16px;
	border-radius: var(--tm-r);
	background: rgba(20, 14, 10, .5);
	color: var(--tm-ivory);
	font-size: 13px;
	line-height: 1;
}
.tm-slider-ui__caption { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.tm-slider-ui__caption .tm-i { width: 14px; height: 14px; opacity: .8; }
.tm-slider-ui__count { font-variant-numeric: tabular-nums; color: rgba(255, 248, 238, .7); white-space: nowrap; }
.tm-slider-ui__count b { color: var(--tm-ivory); font-weight: 600; }
.tm-slider-ui__dots { display: flex; gap: 4px; }
.tm-dot {
	width: 26px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	display: grid;
	align-items: center;
}
.tm-dot span { display: block; height: 3px; border-radius: 2px; background: rgba(255, 248, 238, .35); overflow: hidden; }
.tm-dot span::after { content: ''; display: block; height: 100%; width: 0; background: var(--tm-ivory); }
.tm-dot.is-active span::after { width: 100%; }
.tm-hero.is-playing .tm-dot.is-active span::after { animation: tm-dot-fill var(--tm-slide-ms, 6000ms) linear forwards; }
@keyframes tm-dot-fill { from { width: 0; } to { width: 100%; } }
.tm-dot:hover span { background: rgba(255, 248, 238, .6); }
.tm-slider-ui__toggle {
	width: 32px;
	height: 32px;
	border-radius: var(--tm-r-sm);
	border: 1px solid rgba(255, 248, 238, .3);
	background: transparent;
	color: var(--tm-ivory);
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
	transition: background-color var(--tm-ease);
}
.tm-slider-ui__toggle:hover { background: rgba(255, 248, 238, .15); }
.tm-slider-ui__toggle .tm-i { width: 14px; height: 14px; }
.tm-slider-ui__toggle .tm-i-play { display: none; }
.tm-hero.is-paused .tm-slider-ui__toggle .tm-i-pause { display: none; }
.tm-hero.is-paused .tm-slider-ui__toggle .tm-i-play { display: inline-block; }
.tm-slider-ui :focus-visible { outline: 2px solid var(--tm-gold); outline-offset: 2px; }
@media (max-width: 700px) {
	.tm-slider-ui { gap: 10px; padding-left: 12px; }
	.tm-slider-ui__count { display: none; }
	.tm-dot { width: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.tm-slide { transition: none; }
	.tm-hero .tm-slide .tm-img, .tm-slide.is-active .tm-img { transform: none; transition: none; }
}
.tm-hero__shade {
	position: absolute;
	inset: 0;
	/* Vertical fade for the search card + a soft left wash so the headline reads on busy photos. */
	background:
		linear-gradient(90deg, rgba(20, 14, 10, .5) 0%, rgba(20, 14, 10, .15) 45%, rgba(20, 14, 10, 0) 70%),
		linear-gradient(180deg, rgba(20, 14, 10, .15) 0%, rgba(20, 14, 10, .05) 40%, rgba(20, 14, 10, .7) 100%);
	pointer-events: none;
}
.tm-hero__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: clamp(24px, 5vw, 64px);
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.tm-hero__copy { display: flex; flex-direction: column; gap: 18px; max-width: 880px; }
.tm-hero__kicker {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	color: var(--tm-ivory);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .02em;
}
.tm-hero__kicker::before { content: ''; width: 36px; height: 2px; background: var(--tm-gold); }
.tm-hero__title {
	font-size: clamp(44px, 7vw, 96px) !important;
	line-height: 1 !important;
	color: var(--tm-ivory) !important;
	text-wrap: balance;
}
.tm-hero__title em, .tm-video__title em { color: var(--tm-gold); font-style: italic; }

/* Search card */
.tm-search {
	background: var(--tm-cream);
	border-radius: var(--tm-r-lg);
	padding: 10px;
	max-width: 1040px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
	margin: 0;
}
.tm-search__tabs { display: flex; gap: 4px; padding: 4px 4px 10px; flex-wrap: wrap; }
.tm-search__tab {
	border: 0;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	padding: 9px 16px;
	border-radius: 999px;
	background: transparent;
	color: var(--tm-ink-2);
	line-height: 1.2;
}
.tm-search__tab.is-active { background: var(--tm-ink); color: var(--tm-sand); }
.tm-search__fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 6px;
	align-items: stretch;
}
.tm-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 16px;
	border-radius: var(--tm-r);
	background: var(--tm-field);
	margin: 0;
	font-weight: 400;
	min-width: 0;
}
.tm-field__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--tm-muted-2); /* design's #7A6B5F is 4.3:1 on the field colour; this passes AA */
	line-height: 1.3;
}
.tm-field input[type="text"],
.tm-field input[type="date"] {
	border: 0;
	background: transparent;
	font: 400 16px/1.4 var(--tm-sans-font);
	color: var(--tm-ink);
	outline: none;
	padding: 0;
	height: auto;
	width: 100%;
	min-width: 0;
	box-shadow: none;
}
.tm-field input::placeholder { color: #9A8B7E; }
.tm-field__dates { display: flex; align-items: center; gap: 6px; color: var(--tm-muted); }
.tm-field__dates input[type="date"] { font-size: 15px; }
.tm-field__dates input[type="date"]:invalid,
.tm-field__dates input[type="date"].is-empty { color: #9A8B7E; }
.tm-guests { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tm-guests__label { font-size: 16px; line-height: 1.4; }
.tm-guests__btns { display: flex; gap: 6px; }
.tm-guests__btn {
	width: 30px;
	height: 30px;
	border-radius: var(--tm-r-sm);
	border: 1px solid var(--tm-line-strong);
	background: var(--tm-cream);
	color: var(--tm-ink);
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
	transition: border-color var(--tm-ease);
}
.tm-guests__btn .tm-i { width: 14px; height: 14px; }
.tm-guests__btn:hover { border-color: var(--tm-ink); }
.tm-search__submit {
	border: 0;
	cursor: pointer;
	border-radius: var(--tm-r);
	background: var(--tm-terracotta);
	color: var(--tm-ivory);
	font-size: 16px;
	font-weight: 700;
	padding: 16px 24px;
	transition: background-color var(--tm-ease);
}
.tm-search__submit:hover { background: var(--tm-terracotta-dark); }

/* ------------------------------------------------------------------ Intro */
.tm-intro {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: clamp(32px, 6vw, 96px);
	align-items: end;
}
.tm-intro__head { display: flex; flex-direction: column; gap: 20px; }
.tm-intro__body { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.6; color: var(--tm-ink-2); }
.tm-intro__body p { text-wrap: pretty; }
.tm-intro__lead { color: var(--tm-ink); font-size: 20px; }
.tm-intro__links { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------------ Carousels */
.tm-track {
	display: grid;
	grid-auto-flow: column;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
	overscroll-behavior-x: contain;
}
.tm-track::-webkit-scrollbar { display: none; }
.tm-track--4 { grid-auto-columns: minmax(280px, calc((100% - 72px) / 4)); }
.tm-track--3 { grid-auto-columns: minmax(300px, calc((100% - 48px) / 3)); }
.tm-track > * { scroll-snap-align: start; }

.tm-tour { position: relative; display: flex; flex-direction: column; gap: 16px; }
.tm-tour__media {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: var(--tm-r-card);
	overflow: hidden;
	background: var(--tm-photo);
}
.tm-tour__media .tm-img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tm-tour:hover .tm-tour__media .tm-img { transform: scale(1.04); }
.tm-tour__tags { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; pointer-events: none; }
.tm-tag {
	background: var(--tm-cream);
	color: var(--tm-ink);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 5px 9px;
	border-radius: 6px;
	line-height: 1.2;
}
.tm-tag--sale { background: var(--tm-m1); color: #fff; }
.tm-tour__body { display: flex; flex-direction: column; gap: 7px; }
.tm-tour__place, .tm-exp__place { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--tm-muted-2); }
.tm-tour__place .tm-i, .tm-exp__place .tm-i { width: 14px; height: 14px; }
.tm-tour__foot {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-top: 6px;
	padding-top: 12px;
	border-top: 1px solid var(--tm-line);
	font-size: 14px;
	color: var(--tm-ink-2);
}
.tm-duration { display: inline-flex; align-items: center; gap: 6px; }
.tm-duration .tm-i { width: 15px; height: 15px; opacity: .75; }
.tm-price { margin-left: auto; white-space: nowrap; }
.tm-price__from { font-size: 13px; color: var(--tm-muted-2); }
.tm-price strong { font-size: 18px; font-weight: 700; color: var(--tm-ink); }
.tm-price s { font-size: 13px; color: var(--tm-muted); margin-left: 4px; }
.tm-tour__title { font: 600 19px/1.3 var(--tm-sans-font) !important; }
.tm-tour__title a { color: var(--tm-ink) !important; }
.tm-tour__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.tm-tour:hover .tm-tour__title a { color: var(--tm-terracotta) !important; }

.tm-exp {
	position: relative;
	aspect-ratio: 3 / 4;
	border-radius: var(--tm-r-card);
	overflow: hidden;
	background: #3A2E25;
	color: var(--tm-ivory);
}
.tm-exp .tm-img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tm-exp:hover .tm-img { transform: scale(1.04); }
.tm-exp__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .75) 100%);
	pointer-events: none;
}
.tm-exp .tm-heart { top: 14px; right: 14px; }
.tm-exp__body {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.tm-exp .tm-exp__place { color: var(--tm-line); }
.tm-exp__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(255, 248, 238, .22); font-size: 14px; color: var(--tm-line); }
.tm-exp .tm-price__from, .tm-exp .tm-price s { color: #CDBFB1; }
.tm-exp .tm-price strong { color: var(--tm-ivory); }
.tm-exp__title { font-size: 28px !important; line-height: 1.1 !important; }
.tm-exp__title a { color: var(--tm-ivory) !important; }
.tm-exp__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* ------------------------------------------------------------------ Destinations */
.tm-dark { background: var(--tm-ink); color: var(--tm-sand); }
.tm-bento {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	grid-auto-rows: 240px;
	grid-auto-flow: dense;
	gap: 16px;
}
.tm-dest {
	position: relative;
	border-radius: var(--tm-r-card);
	overflow: hidden;
	background: #3A2E25;
	color: var(--tm-ivory) !important;
}
.tm-dest--0 { grid-column: span 2; grid-row: span 2; }
.tm-dest--4 { grid-row: span 2; }
/* With 4 columns these spans tile the nine destinations into a full 4×4 block. */
.tm-dest--5, .tm-dest--6, .tm-dest--7 { grid-column: span 2; }
.tm-dest .tm-img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tm-dest:hover .tm-img { transform: scale(1.05); }
.tm-dest__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .65) 100%);
	pointer-events: none;
}
.tm-dest__meta {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 18px;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 12px;
}
.tm-dest__name { font-size: 30px; line-height: 1; }
.tm-dest--0 .tm-dest__name { font-size: 46px; }
.tm-dest__count {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #EADFD2;
	white-space: nowrap;
}
@media (max-width: 560px) {
	.tm-dest--0, .tm-dest--5, .tm-dest--6, .tm-dest--7 { grid-column: span 1; }
	.tm-dest--0 .tm-dest__name { font-size: 40px; }
}

/* ------------------------------------------------------------------ Promos */
.tm-promos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 20px;
}
.tm-promo {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 20px;
	align-items: center;
	padding: 16px;
	border-radius: var(--tm-r-card);
	background: var(--tm-cream);
	border: 1px solid var(--tm-line);
	color: var(--tm-ink) !important;
	transition: border-color var(--tm-ease);
}
.tm-promo:hover { border-color: var(--tm-terracotta); }
.tm-promo__media {
	position: relative;
	width: 120px;
	height: 120px;
	border-radius: var(--tm-r);
	overflow: hidden;
	background: var(--tm-photo);
}
.tm-promo__body { display: flex; flex-direction: column; gap: 6px; }
.tm-promo__tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tm-terracotta); }
.tm-promo__title { font-size: 20px; font-weight: 600; line-height: 1.25; }
.tm-promo__text { font-size: 14px; line-height: 1.5; color: var(--tm-muted-2); }
.tm-promo__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--tm-ink); }
.tm-promo__cta .tm-i { width: 15px; height: 15px; transition: transform var(--tm-ease); }
.tm-promo:hover .tm-promo__cta { color: var(--tm-terracotta); }
.tm-promo:hover .tm-promo__cta .tm-i { transform: translateX(3px); }

/* ------------------------------------------------------------------ Video band */
.tm-video-wrap { padding: 0 16px; }
.tm-video {
	position: relative;
	max-width: 1400px;
	margin: 0 auto;
	aspect-ratio: 16 / 8;
	min-height: 420px;
	border-radius: var(--tm-r-lg);
	overflow: hidden;
	background: #2A211B;
}
.tm-video__shade { position: absolute; inset: 0; background: rgba(20, 14, 10, .45); pointer-events: none; }
.tm-video__content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 28px;
	text-align: center;
	padding: 24px;
}
.tm-video__title {
	font-size: clamp(40px, 6vw, 88px) !important;
	line-height: 1 !important;
	color: var(--tm-ivory) !important;
}
.tm-video__play {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--tm-cream);
	color: var(--tm-ink) !important;
	padding: 10px 22px 10px 10px;
	border-radius: var(--tm-r);
	font-weight: 600;
	transition: background-color var(--tm-ease);
	text-align: left;
}
.tm-video__play:hover { background: var(--tm-gold); }
.tm-video__icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: var(--tm-r-sm);
	background: var(--tm-terracotta);
	color: var(--tm-ivory);
	display: grid;
	place-items: center;
}
.tm-video__icon .tm-i { width: 18px; height: 18px; }
.tm-video__play > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.tm-video__play small { font-size: 13px; font-weight: 500; color: var(--tm-muted-2); }

.tm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(20, 14, 10, .88);
	display: grid;
	place-items: center;
	padding: 24px;
}
.tm-lightbox[hidden] { display: none; }
.tm-lightbox__frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.tm-lightbox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.tm-lightbox__close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 48px;
	height: 48px;
	border-radius: var(--tm-r);
	border: 0;
	background: var(--tm-cream);
	color: var(--tm-ink);
	display: grid;
	place-items: center;
	cursor: pointer;
}
.tm-lightbox__close .tm-i { width: 22px; height: 22px; }

/* ------------------------------------------------------------------ Testimonials */
.tm-quotes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}
.tm-quotes__side { display: flex; flex-direction: column; gap: 20px; }
.tm-quotes__people { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.tm-person {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--tm-line-strong);
	background: transparent;
	color: var(--tm-ink);
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	padding: 6px 14px 6px 6px;
	border-radius: 999px;
	line-height: 1.2;
	transition: background-color var(--tm-ease), color var(--tm-ease), border-color var(--tm-ease);
}
.tm-person.is-active { background: var(--tm-ink); color: var(--tm-sand); border-color: var(--tm-ink); }
.tm-person__avatar {
	position: relative;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--tm-photo);
	display: block;
	flex-shrink: 0;
}
.tm-quote {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: clamp(28px, 4vw, 48px);
	background: var(--tm-cream);
	border-left: 3px solid var(--tm-terracotta);
	border-radius: 0 var(--tm-r-card) var(--tm-r-card) 0;
}
.tm-quote[hidden] { display: none; }
.tm-quote blockquote {
	border: 0;
	padding: 0;
	font-size: clamp(22px, 2.1vw, 30px) !important;
	font-weight: 500 !important;
	line-height: 1.3;
	letter-spacing: 0;
	color: var(--tm-ink);
	text-wrap: pretty;
	quotes: none;
}
.tm-quote blockquote::before, .tm-quote blockquote::after { content: none; }
.tm-quote figcaption {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	border-top: 1px solid var(--tm-line);
	padding-top: 20px;
}
.tm-quote blockquote p { margin: 0; }
.tm-quote figcaption { justify-content: flex-start; }
.tm-quote__photo { position: relative; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--tm-photo); flex-shrink: 0; }
.tm-quote__who { display: flex; flex-direction: column; gap: 5px; }
.tm-quotes__more { margin-top: 8px; }

/* ------------------------------------------------------------------ Blog */
.tm-posts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 28px;
}
.tm-post { display: flex; flex-direction: column; gap: 18px; color: var(--tm-ink) !important; }
.tm-post:hover { color: var(--tm-terracotta) !important; }
.tm-post__media {
	position: relative;
	aspect-ratio: 3 / 2;
	border-radius: var(--tm-r-card);
	overflow: hidden;
	background: var(--tm-photo);
	display: block;
}
.tm-post__media .tm-img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tm-post:hover .tm-post__media .tm-img { transform: scale(1.04); }
.tm-post__body { display: flex; flex-direction: column; gap: 8px; }
.tm-post__tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tm-muted); }
.tm-post__title { font-size: 22px; font-weight: 600; line-height: 1.25; text-wrap: balance; }
.tm-post__excerpt { font-size: 15px; line-height: 1.55; color: var(--tm-muted-2); }

/* ------------------------------------------------------------------ Small screens */
@media (max-width: 700px) {
	.tm-hero-wrap { padding: 10px 10px 0; }
	.tm-hero { height: auto; min-height: 640px; border-radius: 22px; }
	.tm-hero__content { position: relative; padding-top: 180px; }
	.tm-search__fields { grid-template-columns: 1fr; }
	.tm-search__tabs { flex-wrap: nowrap; gap: 2px; }
	.tm-search__tab { padding: 9px 12px; white-space: nowrap; }
	.tm-section__nav .tm-plainlink { display: none; }
	.tm-track--4, .tm-track--3 { grid-auto-columns: 80%; }
	.tm-video { aspect-ratio: auto; min-height: 420px; }
	.tm-video-wrap { padding: 0 10px; }
	.tm-promo { grid-template-columns: 96px 1fr; }
	.tm-promo__media { width: 96px; height: 96px; }
}

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