/* ==========================================================================
   Song page. Loaded on song pages only.
   Desktop and phone layouts per the approved boards ("Fine-tuning: song page,
   draft 2" and the 390 px phone board).
   ========================================================================== */

/* Full width: the song page sets its own 1160 px container. */
.tps-song-page .site-content > .ast-container {
	display: block;
	max-width: none;
	padding: 0;
	margin: 0;
}

.tps-song {
	max-width: 1160px;
	margin: 0 auto;
	padding: 44px 32px 56px;
	display: flex;
	flex-direction: column;
	gap: 56px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--tps-ink);
}
.tps-song p {
	margin: 0;
}
.tps-song a:not(.tps-btn) {
	color: var(--tps-ink);
}
.tps-song a:not(.tps-btn):hover {
	color: var(--tps-brick);
}

/* ---- Top: lead column and buy column ------------------------------------ */

.tps-song__top {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}
.tps-song__lead,
.tps-song__buy {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.tps-song__back {
	text-decoration: none;
}
.tps-song__title {
	margin: 0;
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	font-size: 64px;
	line-height: 0.98;
	text-transform: uppercase;
	overflow-wrap: break-word;
}
.tps-song__artist {
	font-family: var(--tps-font-narrow);
	font-weight: 600;
	font-size: 30px;
	line-height: 1.1;
}
.tps-song__intro {
	max-width: 540px;
	font-size: 19px;
	line-height: 1.5;
}
.tps-song__facts {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--tps-rule);
	font-size: 16px;
}
.tps-song__facts strong {
	font-weight: 700;
}
.tps-song__clips {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 8px;
}
.tps-song__art img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}
.tps-song__format,
.tps-song__ebay {
	font-size: 15px;
	line-height: 1.5;
}
.tps-song__ebay {
	margin-top: 4px !important;
	padding-top: 12px;
	border-top: 1px solid var(--tps-rule);
}

/* ---- Lesson overview and What's included -------------------------------- */

.tps-song__details {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}
.tps-song__overview,
.tps-song__included {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.tps-song__included {
	gap: 20px;
}
.tps-song .tps-song__writeup > * + * {
	margin-top: 16px;
}
.tps-song__writeup p {
	font-size: 17px;
	line-height: 1.6;
}
.tps-videos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 8px;
}
.tps-video {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.tps-video figcaption {
	font-size: 15px;
}
.tps-video__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--tps-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.tps-video__frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
}
.tps-video__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.tps-play--video {
	position: relative;
	width: 56px;
	height: 56px;
}
.tps-play--video:hover {
	color: var(--tps-cream);
}

.tps-included__group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tps-rows {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 1.4;
}
.tps-rows li {
	margin: 0;
	padding: 9px 0;
	border-top: 1px solid var(--tps-rule);
}
.tps-rows--numbered {
	list-style: decimal;
	padding-left: 22px;
}

/* ---- Sample pages ------------------------------------------------------- */

.tps-song__pages {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.tps-pages {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}
.tps-pages__thumbs {
	flex: none;
	width: 140px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.tps-pages__thumb {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
/* With two or three sample pages, each thumbnail is a button: no button
   look, and the chosen one's label is brick (as the current menu item). */
button.tps-pages__thumb,
button.tps-pages__thumb:hover,
button.tps-pages__thumb:focus {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--tps-ink);
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	cursor: pointer;
}
.tps-pages__thumb .tps-label {
	display: block;
}
button.tps-pages__thumb[aria-pressed="true"] .tps-label {
	color: var(--tps-brick);
}
/* The site's usual keyboard focus outline (Astra's button styles drop it). */
button.tps-pages__thumb:focus-visible {
	outline: 2px solid var(--tps-ink);
	outline-offset: 2px;
}
.tps-pages__thumb img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--tps-rule);
	background: #fff;
}
.tps-pages__preview {
	flex: 1;
	min-width: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.tps-pages__crop {
	position: relative;
	aspect-ratio: 1400 / 944;
	background: #fff;
	border: 1px solid var(--tps-rule);
	overflow: hidden;
}
.tps-pages__crop img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}
.tps-pages__watermark {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	font-size: 110px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tps-rule);
	opacity: 0.28;
	transform: rotate(-18deg);
}
.tps-pages__fade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 38%;
	background: linear-gradient(to bottom, rgba(247, 242, 232, 0), var(--tps-page));
}

/* ---- Second buy point ---------------------------------------------------- */

.tps-buybar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding: 20px 0;
	border-top: 1px solid var(--tps-rule);
	border-bottom: 1px solid var(--tps-rule);
}
.tps-buybar__title {
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	font-size: 26px;
	line-height: 1.3;
}

/* ---- More song lessons (tiles are shared, in style.css) ------------------ */

.tps-song__more {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* ==========================================================================
   Phones and small tablets: one column. The top block becomes one flow:
   back link, title, artist, album art, price and Add to cart, format line,
   eBay line, then the intro sentence, the two facts and the samples.
   ========================================================================== */

@media (max-width: 767px) {
	.tps-song {
		padding: 24px 18px 40px;
		gap: 44px;
	}
	.tps-song__top {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}
	.tps-song__lead,
	.tps-song__buy {
		display: contents;
	}
	.tps-song__back    { order: 1; }
	.tps-song__title   { order: 2; font-size: 42px; }
	.tps-song__artist  { order: 3; font-size: 26px; }
	.tps-song__art     { order: 4; }
	.tps-song__purchase { order: 5; }
	.tps-song__format  { order: 6; }
	.tps-song__ebay    { order: 7; }
	.tps-song__intro   { order: 8; font-size: 18px; }
	.tps-song__facts   { order: 9; }
	.tps-song__clips   { order: 10; }

	.tps-song__details {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
	/* One column here, so "What's included" gets its own rule, like every
	   other section heading (same values as .tps-ruled in style.css). */
	.tps-song__included {
		border-top: 2px solid var(--tps-ink);
		padding-top: 12px;
		margin-top: 12px;
	}
	.tps-videos {
		grid-template-columns: minmax(0, 1fr);
	}

	.tps-pages {
		flex-direction: column;
		gap: 16px;
	}
	.tps-pages__thumbs {
		width: auto;
		flex-direction: row;
		gap: 12px;
	}
	.tps-pages__thumb {
		flex: 1;
		min-width: 0;
	}
	.tps-pages__watermark {
		font-size: 52px;
	}
	.tps-buybar__title { font-size: 22px; }
}
