/**
 * Community Heart Project — front-end styles.
 *
 * Everything is scoped under .tsch / .tsch-single so nothing here can leak
 * into the rest of the site, and so Astra + Elementor styles can't bleed in.
 * Colours come from custom properties: the client can rebrand from one block.
 */

.tsch,
.tsch-single {
	/* Brand palette, taken from the site's Elementor kit / Astra global colours:
	   #F15A29 "APACVB - Red/Orange", #49A7A3 "APACVB - Turquoise",
	   #FAA21B "APACVB - Gold". Neutrals follow their existing slate ramp.

	   #F15A29 is used throughout, including solid buttons, per client
	   direction. Worth knowing: white text on #F15A29 measures 3.37:1, under
	   the 4.5:1 WCAG AA threshold for normal text. Button labels are therefore
	   set at 16px/700 so they qualify as large text, where the 3:1 threshold
	   applies and this passes. --tsch-accent-dark is the hover state. */
	--tsch-brand: #f15a29;
	--tsch-accent: #f15a29;
	--tsch-accent-dark: #d14719;
	--tsch-teal: #49a7a3;
	--tsch-teal-dark: #2f7370;
	--tsch-teal-tint: #eaf5f4;
	--tsch-gold: #faa21b;
	--tsch-ink: #1e293b;
	--tsch-muted: #64748b;
	--tsch-line: #e2e8f0;
	--tsch-surface: #fff;
	--tsch-surface-alt: #f9fafb;
	--tsch-radius: 12px;
	--tsch-map-height: clamp(380px, 58vh, 620px);
	/* Matches the site's Elementor kit container_width (1400px), so our pages
	   line up with every other page on the site. Change here only. */
	--tsch-max-width: 1400px;
	--tsch-shadow: 0 1px 2px rgba(20, 22, 28, .06), 0 6px 20px rgba(20, 22, 28, .07);

	color: var(--tsch-ink);
	font-size: 16px;
	line-height: 1.5;
}

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

.tsch .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------- toolbar */

.tsch-toolbar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 14px;
}

.tsch-search {
	position: relative;
	flex: 1 1 220px;
}

.tsch-search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	fill: var(--tsch-muted);
	pointer-events: none;
}

.tsch input.tsch-q {
	width: 100%;
	margin: 0;
	padding: 11px 14px 11px 38px;
	font-size: 16px; /* 16px keeps iOS Safari from zooming on focus */
	line-height: 1.4;
	color: var(--tsch-ink);
	background: var(--tsch-surface);
	border: 1px solid var(--tsch-line);
	border-radius: var(--tsch-radius);
	box-shadow: none;
	appearance: none;
}

.tsch input.tsch-q:focus {
	border-color: var(--tsch-accent);
	outline: 2px solid rgba(241, 90, 41, .25);
	outline-offset: 1px;
}

.tsch-tabs {
	display: flex;
	gap: 4px;
	padding: 4px;
	background: var(--tsch-surface-alt);
	border-radius: var(--tsch-radius);
}

.tsch button.tsch-tab {
	flex: 1 1 auto;
	padding: 9px 12px;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	color: var(--tsch-muted);
	background: transparent;
	border: 0;
	border-radius: 9px;
	cursor: pointer;
	transition: background .15s, color .15s;
}

.tsch button.tsch-tab:hover {
	color: var(--tsch-ink);
}

.tsch button.tsch-tab.is-active {
	color: var(--tsch-teal-dark);
	background: var(--tsch-surface);
	box-shadow: 0 1px 2px rgba(20, 22, 28, .08);
}

.tsch-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.tsch select.tsch-filter-type,
.tsch select.tsch-sort {
	flex: 1 1 130px;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 9px 12px;
	font: inherit;
	font-size: 14px;
	color: var(--tsch-ink);
	background: var(--tsch-surface);
	border: 1px solid var(--tsch-line);
	border-radius: 10px;
	height: auto;
}

.tsch select.tsch-filter-type[hidden] {
	display: none;
}

.tsch button.tsch-locate {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 9px 14px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--tsch-ink);
	background: var(--tsch-surface);
	border: 1px solid var(--tsch-line);
	border-radius: 10px;
	cursor: pointer;
}

.tsch button.tsch-locate svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.tsch button.tsch-locate:hover {
	border-color: var(--tsch-teal-dark);
	color: var(--tsch-teal-dark);
}

.tsch button.tsch-locate.is-active {
	color: #fff;
	background: var(--tsch-teal-dark);
	border-color: var(--tsch-teal-dark);
}

.tsch button.tsch-locate.is-busy {
	opacity: .6;
	pointer-events: none;
}

.tsch-view-toggle[hidden] {
	display: none;
}

.tsch-view-toggle {
	display: flex;
	margin-left: auto;
	overflow: hidden;
	border: 1px solid var(--tsch-line);
	border-radius: 10px;
}

.tsch button.tsch-view {
	padding: 9px 16px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--tsch-muted);
	background: var(--tsch-surface);
	border: 0;
	cursor: pointer;
}

.tsch button.tsch-view.is-active {
	color: #fff;
	background: var(--tsch-accent);
}

.tsch p.tsch-status {
	margin: 0 0 10px;
	font-size: 13px;
	color: var(--tsch-muted);
}

/* --------------------------------------------------------------- stage */

.tsch-stage {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr;
}

.tsch-map {
	height: var(--tsch-map-height);
	background: var(--tsch-surface-alt);
	border: 1px solid var(--tsch-line);
	border-radius: var(--tsch-radius);
	overflow: hidden;
	z-index: 0; /* keep Leaflet panes below the theme's sticky header */
}

.tsch[data-view="list"] .tsch-map {
	display: none;
}

.tsch[data-view="map"] .tsch-results {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr;
}

.tsch[data-view="list"] .tsch-results {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
}

/* ---------------------------------------------------------------- card */

.tsch-card {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px;
	background: var(--tsch-surface);
	border: 1px solid var(--tsch-line);
	border-radius: var(--tsch-radius);
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

.tsch-card:hover {
	border-color: var(--tsch-brand);
	box-shadow: var(--tsch-shadow);
}

.tsch-card-media {
	flex: 0 0 78px;
	width: 78px;
	height: 78px;
	overflow: hidden;
	border-radius: 9px;
	background: var(--tsch-surface-alt);
}

.tsch-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tsch-card-body {
	min-width: 0;
}

.tsch h3.tsch-card-title {
	margin: 0 0 3px;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
}

.tsch h3.tsch-card-title a {
	color: var(--tsch-ink);
	text-decoration: none;
}

.tsch h3.tsch-card-title a:hover {
	color: var(--tsch-accent);
}

.tsch p.tsch-card-meta {
	margin: 0;
	font-size: 13px;
	color: var(--tsch-muted);
}

.tsch p.tsch-card-dist {
	margin: 4px 0 0;
	font-size: 12px;
	font-weight: 700;
	color: var(--tsch-accent-dark);
}

.tsch p.tsch-card-nomap {
	color: var(--tsch-muted);
	font-weight: 600;
}

.tsch-chip {
	display: inline-block;
	padding: 1px 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--tsch-teal-dark);
	background: var(--tsch-teal-tint);
	border-radius: 999px;
}

.tsch p.tsch-empty,
.tsch p.tsch-noscript {
	grid-column: 1 / -1;
	margin: 0;
	padding: 28px 16px;
	text-align: center;
	color: var(--tsch-muted);
	background: var(--tsch-surface-alt);
	border-radius: var(--tsch-radius);
}

/* In list view the cards read better stacked than as media objects. */
.tsch[data-view="list"] .tsch-card {
	flex-direction: column;
	align-items: stretch;
	padding: 0;
	overflow: hidden;
}

.tsch[data-view="list"] .tsch-card-media {
	flex: 0 0 auto;
	width: 100%;
	height: 160px;
	border-radius: 0;
}

.tsch[data-view="list"] .tsch-card-body {
	padding: 12px 14px 16px;
}

/* -------------------------------------------------------------- markers */

.tsch-marker svg {
	width: 32px;
	height: 32px;
	fill: var(--tsch-brand, #f15a29);
	stroke: #fff;
	stroke-width: 1.4;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}

.leaflet-marker-icon.tsch-marker {
	background: none;
	border: 0;
}

.tsch-you {
	fill: #1b5a67;
	fill-opacity: .9;
	stroke: #fff;
	stroke-width: 3;
}

.marker-cluster {
	background: rgba(241, 90, 41, .25);
	border-radius: 50%;
}

.marker-cluster div {
	width: 34px;
	height: 34px;
	margin: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	font: 700 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #fff;
	background: var(--tsch-brand, #f15a29);
	border-radius: 50%;
}

/* --------------------------------------------------------------- popup */

.tsch-popup {
	width: 220px;
}

.tsch-popup .tsch-popup-img {
	width: 100%;
	height: 116px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 8px;
	display: block;
}

.tsch-popup h4 {
	margin: 0 0 4px;
	font-size: 15px;
	line-height: 1.3;
}

.tsch-popup h4 a {
	color: var(--tsch-ink, #1e293b);
	text-decoration: none;
}

.tsch-popup p {
	margin: 0 0 3px;
	font-size: 13px;
	color: var(--tsch-muted, #64748b);
}

.tsch-popup-actions {
	display: flex;
	gap: 6px;
	margin-top: 10px !important;
}

.tsch-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	padding: 7px 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	color: #fff !important;
	background: var(--tsch-accent, #f15a29);
	/* Transparent border so this matches the ghost variant's box exactly —
	   otherwise the flex row stretches to the bordered button's height and
	   this label sits high. */
	border: 1px solid transparent;
	border-radius: 8px;
}

.tsch-btn-ghost {
	color: var(--tsch-accent, #f15a29) !important;
	background: transparent;
	border-color: var(--tsch-accent, #f15a29);
}

.tsch-btn:hover {
	background: var(--tsch-accent-dark);
	border-color: var(--tsch-accent-dark);
}

.tsch-btn-ghost:hover {
	color: #fff !important;
	background: var(--tsch-accent);
	border-color: var(--tsch-accent);
}

/* Inactive segment: tint the fill, and match the border to it. */
.tsch button.tsch-view:not(.is-active):hover {
	color: var(--tsch-accent);
	background: var(--tsch-surface-alt);
}

/* ------------------------------------------------------------ responsive */

@media (min-width: 640px) {
	.tsch-toolbar {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}

	.tsch-tabs {
		flex: 0 0 auto;
	}

	.tsch-controls {
		flex: 1 1 100%;
	}
}

@media (min-width: 900px) {
	.tsch[data-view="map"] .tsch-stage {
		grid-template-columns: minmax(0, 1.55fr) minmax(min(280px, 100%), 1fr);
	}

	.tsch[data-view="map"] .tsch-results {
		max-height: var(--tsch-map-height);
		padding-right: 4px;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.tsch-map {
		height: var(--tsch-map-height);
	}
}

@media (max-width: 639px) {
	.tsch-view-toggle {
		margin-left: 0;
		flex: 1 1 100%;
	}

	.tsch button.tsch-view {
		flex: 1 1 50%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tsch-card {
		transition: none;
	}
}

/* =====================================================================
   Single pages — heart, artist, location
   ===================================================================== */

.tsch-single {
	width: 100%;
	max-width: var(--tsch-max-width);
	margin-inline: auto;
	padding: 28px clamp(16px, 4vw, 56px) 60px;
}

/* The directory itself is centred to the same width. Harmless when the
   shortcode sits inside an already-constrained Elementor section. */
.tsch {
	width: 100%;
	max-width: var(--tsch-max-width);
	margin-inline: auto;
	padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 32px);
}

.tsch-breadcrumb {
	margin-bottom: 18px;
	font-size: 14px;
	font-weight: 600;
}

.tsch-breadcrumb a {
	color: var(--tsch-muted);
	text-decoration: none;
}

.tsch-breadcrumb a:hover {
	color: var(--tsch-accent);
}

.tsch-single .tsch-eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--tsch-teal-dark);
}

.tsch-single h1.tsch-title {
	margin: 0 0 10px;
	font-size: clamp(28px, 5vw, 44px);
	line-height: 1.12;
	font-weight: 800;
}

.tsch-hero {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
	margin-bottom: 36px;
}

.tsch-hero-media img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--tsch-radius);
	box-shadow: var(--tsch-shadow);
}

.tsch-single p.tsch-byline,
.tsch-single p.tsch-place,
.tsch-single p.tsch-count {
	margin: 0 0 6px;
	font-size: 16px;
	color: var(--tsch-muted);
}

.tsch-single p.tsch-byline a,
.tsch-single p.tsch-place a {
	color: var(--tsch-ink);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid var(--tsch-brand);
}

.tsch-single p.tsch-address {
	margin: 0 0 10px;
	color: var(--tsch-muted);
}

.tsch-single p.tsch-note {
	margin: 10px 0;
	padding: 12px 14px;
	font-size: 15px;
	background: var(--tsch-surface-alt);
	border-left: 3px solid var(--tsch-gold);
	border-radius: 0 8px 8px 0;
}

.tsch-single p.tsch-actions {
	margin: 18px 0 0;
}

.tsch-cta {
	display: inline-block;
	padding: 12px 22px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	color: #fff !important;
	background: var(--tsch-accent);
	border: 2px solid var(--tsch-accent);
	border-radius: 999px;
	transition: background .15s, color .15s;
}

.tsch-cta:hover {
	background: var(--tsch-accent-dark);
	border-color: var(--tsch-accent-dark);
}

.tsch-cta-ghost {
	color: var(--tsch-accent) !important;
	background: transparent;
}

.tsch-cta-ghost:hover {
	color: #fff !important;
	background: var(--tsch-accent);
}

.tsch-section {
	padding-top: 32px;
	margin-top: 32px;
	border-top: 1px solid var(--tsch-line);
}

.tsch-single .tsch-section h2 {
	margin: 0 0 16px;
	font-size: clamp(20px, 3vw, 26px);
	font-weight: 800;
	line-height: 1.2;
}

.tsch-prose p {
	margin: 0 0 1em;
	line-height: 1.7;
}

.tsch-prose :last-child {
	margin-bottom: 0;
}

.tsch-location-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
	align-items: start;
}

.tsch-single p.tsch-location-name {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
}

.tsch-minimap {
	height: clamp(220px, 40vh, 340px);
	background: var(--tsch-surface-alt);
	border: 1px solid var(--tsch-line);
	border-radius: var(--tsch-radius);
	overflow: hidden;
	z-index: 0;
}

/* ---------------------------------------------------------- artist card */

.tsch-artist-card,
.tsch-artist-header {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.tsch-artist-header {
	margin-bottom: 8px;
}

.tsch-artist-avatar {
	flex: 0 0 96px;
	width: 96px;
	display: block;
}

.tsch-artist-avatar-lg {
	flex-basis: 140px;
	width: 140px;
}

.tsch-artist-avatar img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.tsch-artist-body {
	flex: 1 1 260px;
	min-width: 0;
}

.tsch-artist-body h3 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
}

.tsch-artist-body h3 a {
	color: var(--tsch-ink);
	text-decoration: none;
}

ul.tsch-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

ul.tsch-contact li {
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.tsch-contact a {
	color: var(--tsch-muted);
	text-decoration: none;
	border-bottom: 1px solid var(--tsch-line);
}

ul.tsch-contact a:hover {
	color: var(--tsch-accent);
	border-color: var(--tsch-accent);
}

/* -------------------------------------------------------------- sponsors */

.tsch-single p.tsch-sponsor-note {
	margin: -6px 0 18px;
	color: var(--tsch-muted);
}

.tsch-sponsors {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
	align-items: center;
}

.tsch-sponsor {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100px;
	padding: 16px;
	text-decoration: none;
	background: var(--tsch-surface);
	border: 1px solid var(--tsch-line);
	border-radius: var(--tsch-radius);
	transition: border-color .15s, box-shadow .15s;
}

.tsch-sponsor:hover {
	border-color: var(--tsch-brand);
	box-shadow: var(--tsch-shadow);
}

.tsch-sponsor img {
	max-width: 100%;
	max-height: 76px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.tsch-sponsor-name {
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	color: var(--tsch-ink);
}

/* ------------------------------------------------------------ heart grid */

.tsch-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
	margin-top: 20px;
}

a.tsch-grid-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	background: var(--tsch-surface);
	border: 1px solid var(--tsch-line);
	border-radius: var(--tsch-radius);
	overflow: hidden;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

a.tsch-grid-card:hover {
	border-color: var(--tsch-brand);
	box-shadow: var(--tsch-shadow);
	transform: translateY(-2px);
}

.tsch-grid-media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--tsch-surface-alt);
}

.tsch-grid-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tsch-grid-body {
	display: block;
	padding: 12px 14px 14px;
}

.tsch-grid-title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tsch-ink);
}

.tsch-grid-meta {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	color: var(--tsch-muted);
}

.tsch-grid-dist {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	font-weight: 700;
	color: var(--tsch-accent-dark);
}

p.tsch-backlink {
	margin-top: 40px;
	text-align: center;
}

@media (min-width: 782px) {
	.tsch-hero {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		align-items: center;
		gap: 36px;
	}

	.tsch-location-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	a.tsch-grid-card,
	a.tsch-grid-card:hover {
		transition: none;
		transform: none;
	}
}


/* ------------------------------------------------ richer list-view cards */

/* Artists and locations often have no featured image yet. A lettered tile
   keeps those cards looking deliberate instead of half-empty. */
.tsch-card-media.is-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--tsch-brand) 0%, var(--tsch-gold) 100%);
}

.tsch-card-media.is-empty span {
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
	color: #fff;
}

.tsch[data-view="list"] .tsch-card-media.is-empty span {
	font-size: 44px;
}

.tsch p.tsch-card-count {
	margin: 5px 0 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .01em;
	color: var(--tsch-teal-dark);
}

.tsch p.tsch-card-bio,
.tsch p.tsch-card-address,
.tsch p.tsch-card-sponsor {
	margin: 5px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--tsch-muted);
}

.tsch p.tsch-card-sponsor {
	font-size: 12px;
	font-style: italic;
}

.tsch p.tsch-card-link {
	margin: 8px 0 0;
	font-size: 12px;
	font-weight: 700;
	color: var(--tsch-accent);
}

.tsch-card:hover p.tsch-card-link {
	color: var(--tsch-accent-dark);
}

/* Locations read as place cards: a banner image over the details. */
.tsch[data-tab="locations"] .tsch-results {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
}

.tsch[data-tab="locations"] .tsch-card {
	flex-direction: column;
	align-items: stretch;
	padding: 0;
	overflow: hidden;
}

.tsch[data-tab="locations"] .tsch-card-media {
	flex: 0 0 auto;
	width: 100%;
	height: 150px;
	border-radius: 0;
}

.tsch[data-tab="locations"] .tsch-card-body {
	padding: 12px 14px 16px;
}

/* Artists are people, so they get an avatar beside their details rather than
   a banner. Wider columns than the location grid, since the content runs
   horizontally. */
.tsch[data-tab="artists"] .tsch-results {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}

.tsch[data-tab="artists"] .tsch-card {
	flex-direction: row;
	align-items: center;
	gap: 14px;
	padding: 14px;
	overflow: visible;
}

.tsch[data-tab="artists"] .tsch-card-media {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
}

.tsch[data-tab="artists"] .tsch-card-media img {
	border-radius: 50%;
}

.tsch[data-tab="artists"] .tsch-card-media.is-empty span {
	font-size: 22px;
	letter-spacing: .02em;
}

.tsch[data-tab="artists"] .tsch-card-body {
	padding: 0;
}

/* Keep every avatar row the same height regardless of bio length. */
.tsch[data-tab="artists"] p.tsch-card-bio {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}


/* --------------------------------------------- section header + monogram */

/* Section title left, its "see all" link right — the link used to sit inside
   the text column, aligned to neither the avatar nor the section edge. */
.tsch-section-head {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 16px;
}

.tsch-single .tsch-section-head h2 {
	margin: 0;
}

.tsch-single a.tsch-section-link {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--tsch-accent);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.tsch-single a.tsch-section-link:hover {
	color: var(--tsch-accent-dark);
	border-bottom-color: var(--tsch-accent-dark);
}

.tsch-single h3.tsch-subhead {
	margin: 28px 0 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--tsch-muted);
}

.tsch-artist-avatar-link {
	flex: 0 0 96px;
	display: block;
	text-decoration: none;
}

/* Monogram stand-in when an artist has no photo of their own. */
.tsch-artist-avatar.is-monogram {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	background: linear-gradient(135deg, var(--tsch-brand) 0%, var(--tsch-gold) 100%);
	border-radius: 50%;
}

.tsch-artist-avatar.is-monogram > span {
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	color: #fff;
}

.tsch-artist-avatar-lg.is-monogram > span {
	font-size: 44px;
}

/* =====================================================================
   Responsive pass
   ===================================================================== */

/* Tablet: the map sits full-width with results beneath, so give those
   results two columns instead of one very wide stack. */
@media (min-width: 640px) and (max-width: 899px) {
	.tsch[data-view="map"] .tsch-results {
		grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
	}
}

/* Wide desktop: hand the results panel a little more room. */
@media (min-width: 1200px) {
	.tsch[data-view="map"] .tsch-stage {
		grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
	}
}

@media (max-width: 639px) {
	/* Comfortable touch targets — 44px is the accessible minimum, and the
	   toolbar controls were landing around 38px. */
	.tsch button.tsch-tab,
	.tsch button.tsch-view,
	.tsch button.tsch-locate,
	.tsch select.tsch-filter-type,
	.tsch select.tsch-sort {
		min-height: 44px;
	}

	.tsch button.tsch-locate {
		flex: 1 1 auto;
		justify-content: center;
	}

	/* Filter and sort share a row; "Near me" takes the next one. */
	.tsch select.tsch-filter-type,
	.tsch select.tsch-sort {
		flex: 1 1 calc(50% - 4px);
	}

	.tsch-card {
		gap: 10px;
	}

	/* Artist rows stay horizontal on phones, just tighter. */
	.tsch[data-tab="artists"] .tsch-card-media {
		flex-basis: 60px;
		width: 60px;
		height: 60px;
	}

	.tsch[data-tab="artists"] .tsch-card-media.is-empty span {
		font-size: 19px;
	}

	.tsch-single {
		padding-top: 20px;
		padding-bottom: 40px;
	}

	.tsch-section {
		padding-top: 24px;
		margin-top: 24px;
	}

	/* A pill that spans the screen reads better than one floating left. */
	.tsch-single p.tsch-actions .tsch-cta {
		display: block;
		text-align: center;
	}

	.tsch-artist-avatar-lg {
		flex-basis: 96px;
		width: 96px;
	}

	.tsch-artist-avatar-lg.is-monogram > span {
		font-size: 34px;
	}
}

/* Very narrow phones: stop the toolbar controls from squeezing. */
@media (max-width: 400px) {
	.tsch select.tsch-filter-type,
	.tsch select.tsch-sort {
		flex: 1 1 100%;
	}

	.tsch-sponsors {
		grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr));
	}
}

/* Landscape phones have very little height — don't let the map eat it all. */
@media (max-height: 500px) and (orientation: landscape) {
	.tsch {
		--tsch-map-height: 320px;
	}
}
