/* ==========================================================================
   True Strays — section block styles

   Loads only on pages carrying one of the ACF blocks (inc/setup.php), and in
   the editor. Tokens come from theme.json; the section wrapper, container and
   buttons live in core.css.
   ========================================================================== */

/* Sections are alignfull; their .ts-container does the width. Vertical rhythm
   is the section system in core.css (margins, D-036). In the editor canvas ACF
   wraps each block, so the margins can't collapse there; drop them to keep the
   editor readable. */
.editor-styles-wrapper .ts-sec {
	margin-block: 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.ts-hero__frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--band);
}

.ts-hero--bleed .ts-hero__frame {
	border-radius: 0;
}

/* Taller heroes get a taller crop on phones too. Phones only: from 48em the
   frame has a fixed height, and an aspect-ratio there derives the width from
   that height, which pushed a 765px-wide hero past a 768px screen. */
@media (max-width: 47.99em) {
	.ts-hero--h-tall .ts-hero__frame,
	.ts-hero--h-screen .ts-hero__frame {
		aspect-ratio: 1 / 1;
	}
}

@media (min-width: 48em) {
	.ts-hero__frame {
		aspect-ratio: auto;
		height: var(--ts-hero-h, 66svh);
		min-height: 433px;
	}
}

.ts-hero--h-short  { --ts-hero-h: 40svh; }
.ts-hero--h-medium { --ts-hero-h: 66svh; }
.ts-hero--h-tall   { --ts-hero-h: 85svh; }
.ts-hero--h-screen { --ts-hero-h: 100svh; }

.ts-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

.ts-hero--pos-top .ts-hero__img    { object-position: 50% 20%; }
.ts-hero--pos-lower .ts-hero__img  { object-position: 50% 60%; }
.ts-hero--pos-bottom .ts-hero__img { object-position: 50% 80%; }

.ts-hero__overlay {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: end center;
	padding: var(--wp--preset--spacing--60) var(--wp--custom--gutter);
	background: linear-gradient(to top, rgba(23, 22, 23, 0.7), rgba(23, 22, 23, 0) 60%);
	text-align: center;
}

.ts-hero__heading {
	margin: 0;
	color: var(--wp--preset--color--paper);
	font-size: var(--wp--preset--font-size--display);
	line-height: 1.05;
	text-transform: uppercase;
	letter-spacing: 0.005em;
}

/* --------------------------------------------------------------------------
   Press quotes
   -------------------------------------------------------------------------- */

.ts-quotes__heading,
.ts-posts__heading {
	margin: 0 0 var(--wp--preset--spacing--50);
	text-align: center;
}

.ts-quotes__list {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	max-width: var(--wp--custom--measure);
	margin: 0 auto;
	padding: 0;
	list-style: none;
	text-align: center;
}

.ts-quotes--list .ts-quotes__list {
	gap: var(--wp--preset--spacing--20);
}

.ts-quote {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
}

.ts-quotes--feature .ts-quote {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.45;
}

/* Quote and source run on one line, wrapping naturally: “Impressive” – Source */
.ts-quote__text,
.ts-quote__text p,
.ts-quote__source {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: inherit;
}

.ts-quote__source cite {
	font-style: normal;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.ts-quote__source a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.ts-quote__source a:hover {
	text-decoration-thickness: 2px;
}

.ts-bg-dark .ts-quote__source cite {
	color: var(--wp--preset--color--paper);
}

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */

.ts-features {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--70) var(--wp--preset--spacing--40);
	text-align: center;
}

@media (min-width: 48em) {
	.ts-features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ts-features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	/* Subgrid lines the images up even when headings wrap to different depths. */
	.ts-features--2 .ts-feature,
	.ts-features--3 .ts-feature {
		grid-row: span 3;
		grid-template-rows: subgrid;
	}
}

.ts-feature {
	display: grid;
	align-content: start;
	justify-items: center;
	row-gap: var(--wp--preset--spacing--40);
}

/* Headings top-aligned across the row; the subgrid row takes the tallest
   heading, so the images below still line up (D-039). Bottom-aligning them
   left a one-line heading level with the second line of its neighbour. */
.ts-feature__heading {
	align-self: start;
	margin: 0;
	font-size: var(--wp--preset--font-size--heading-l);
}

.ts-feature__heading a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.ts-feature__heading a:hover {
	color: var(--wp--preset--color--accent);
}

/* Every card image sits on the same tile. Product shots on a white background
   (the vinyl mock-up) blend into the tile with multiply, so they read as the
   same shape and size as full-bleed photos (the merch bundle) beside them. */
.ts-feature__media {
	display: block;
	width: 100%;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--band);
	line-height: 0;
}

.ts-feature__img {
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;
	transition: transform 0.4s var(--wp--custom--ease);
}

a.ts-feature__media:hover .ts-feature__img {
	transform: scale(1.02);
}

.ts-feature__action {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.ts-contact {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
	align-items: center;
}

@media (min-width: 48em) {
	.ts-contact--media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ts-contact__details {
	text-align: center;
}

.ts-contact__group + .ts-contact__group {
	margin-block-start: var(--wp--preset--spacing--50);
}

.ts-contact__role {
	margin: 0 0 var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--muted);
}

.ts-contact__list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

.ts-contact__list a {
	overflow-wrap: anywhere;
}

.ts-contact .ts-social.wp-block-social-links {
	margin-block-start: var(--wp--preset--spacing--50);
	color: var(--wp--preset--color--ink);
}

.ts-contact .ts-social.wp-block-social-links .wp-social-link svg {
	width: 26px;
	height: 26px;
}

.ts-contact__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--wp--custom--radius--card);
}

/* --------------------------------------------------------------------------
   Player (Spotify / Bandcamp)
   -------------------------------------------------------------------------- */

.ts-player {
	max-width: 900px;
	margin: 0 auto;
}

.ts-player__frame {
	position: relative;
	height: var(--ts-player-h, 480px);
	overflow: hidden;
	border-radius: 12px;
	background: var(--wp--preset--color--band);
}

.ts-player__frame .ts-embed-frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.ts-player__facade {
	display: grid;
	place-content: center;
	justify-items: center;
	gap: var(--wp--preset--spacing--30);
	width: 100%;
	height: 100%;
	padding: var(--wp--preset--spacing--50);
	border: 0;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	font: inherit;
	text-align: center;
	cursor: pointer;
}

.ts-player__play {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	padding-left: 4px; /* optical centre of the triangle */
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--paper);
	transition: background-color 0.2s var(--wp--custom--ease), transform 0.2s var(--wp--custom--ease);
}

.ts-player__facade:hover .ts-player__play {
	background: var(--wp--preset--color--accent-deep);
	transform: scale(1.05);
}

.ts-player__title {
	font-size: var(--wp--preset--font-size--heading-m);
	font-weight: 600;
	line-height: 1.25;
}

.ts-player__facade:focus-visible {
	outline-color: var(--wp--preset--color--paper);
	outline-offset: -6px;
}

.ts-player__note {
	margin-block-start: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

/* --------------------------------------------------------------------------
   Videos
   -------------------------------------------------------------------------- */

.ts-videos {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 48em) {
	.ts-videos--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ts-videos--1 {
	max-width: 900px;
	margin-inline: auto;
}

.ts-video__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--ink);
}

.ts-video__frame .ts-embed-frame,
.ts-video__facade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ts-video__facade {
	display: block;
	padding: 0;
	background: var(--wp--preset--color--ink);
	cursor: pointer;
}

/* hqdefault is 4:3 with letterbox bars; cover crops them away. */
.ts-video__facade img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--wp--custom--ease), opacity 0.2s var(--wp--custom--ease);
	opacity: 0.92;
}

.ts-video__facade:hover img {
	transform: scale(1.02);
	opacity: 1;
}

.ts-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 68px;
	height: 48px;
	padding-left: 3px;
	border-radius: 14px;
	background: rgba(23, 22, 23, 0.82);
	color: var(--wp--preset--color--paper);
	transform: translate(-50%, -50%);
	transition: background-color 0.2s var(--wp--custom--ease);
}

.ts-video__facade:hover .ts-video__play,
.ts-video__facade:focus-visible .ts-video__play {
	background: var(--wp--preset--color--accent);
}

.ts-video__facade:focus-visible {
	outline-color: var(--wp--preset--color--paper);
	outline-offset: -6px;
}

.ts-video__title {
	margin: var(--wp--preset--spacing--30) 0 0;
	color: var(--wp--preset--color--ink);
	font-weight: 500;
	text-align: center;
}

/* --------------------------------------------------------------------------
   Live dates (Bandsintown)
   -------------------------------------------------------------------------- */

.ts-gigs {
	max-width: 900px;
	margin: 0 auto;
	text-align: start;
}

.ts-gigs .bit-widget {
	font-family: inherit !important; /* the widget injects its own stack */
}

.ts-gigs__noscript {
	text-align: center;
	color: var(--wp--preset--color--muted);
}

/* --------------------------------------------------------------------------
   Latest news (block) — card styling shared with the News template in core.css
   -------------------------------------------------------------------------- */

.ts-posts {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

@media (min-width: 48em) {
	.ts-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64em) {
	.ts-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Same subgrid treatment as the News template cards (core.css). */
.ts-posts > .ts-posts__item {
	display: grid;
	grid-row: span 4;
	grid-template-rows: subgrid;
	row-gap: 0;
	align-content: start;
}

.ts-posts__title {
	margin: 0 0 var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--large);
}

.ts-posts__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.ts-posts__title a:hover {
	color: var(--wp--preset--color--accent);
}

.ts-posts .ts-meta {
	margin: 0;
}

.ts-posts__excerpt {
	margin: var(--wp--preset--spacing--20) 0 0;
}

.ts-posts__more {
	margin: var(--wp--preset--spacing--60) 0 0;
	text-align: center;
}

/* --------------------------------------------------------------------------
   Newsletter (block)
   -------------------------------------------------------------------------- */

.ts-signup-sec__intro {
	max-width: var(--wp--custom--measure);
	margin: 0 auto var(--wp--preset--spacing--40);
	text-align: center;
}

.ts-signup-sec__intro > :last-child {
	margin-bottom: 0;
}
