/*
Theme Name:  TPS Astra Child
Description: Child theme of Astra for The Pedal Stop.
Template:    astra
Version:     0.4.0
Text Domain: tps-astra-child
*/

/* ==========================================================================
   Fonts: self-hosted, latin subset, SIL Open Font License (assets/fonts/OFL.txt).
   Archivo is one variable file per style (weights 100-900).
   ========================================================================== */

@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/archivo-latin-wght-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Archivo";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/archivo-latin-wght-italic.woff2") format("woff2");
}
@font-face {
	font-family: "Archivo Narrow";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/archivo-narrow-latin-600-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Archivo Narrow";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/archivo-narrow-latin-700-normal.woff2") format("woff2");
}

/* ==========================================================================
   Colors. Astra's nine global colors are mapped onto the palette here, so
   Astra's own styles and Spectra blocks pick it up. Astra's saved palette is
   untouched, so switching back to Astra restores today's colors.
   ========================================================================== */

:root {
	--tps-page: #F7F2E8;
	--tps-ink: #17181A;
	--tps-brick: #A8423A;
	--tps-sage: #8DBF80;
	--tps-rule: #A9A396;
	--tps-cream: #EFE7D6;

	--tps-font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--tps-font-narrow: "Archivo Narrow", "Arial Narrow", "Archivo", Arial, sans-serif;

	--ast-global-color-0: var(--tps-brick);  /* buttons */
	--ast-global-color-1: var(--tps-ink);    /* button and link hover */
	--ast-global-color-2: var(--tps-ink);    /* headings */
	--ast-global-color-3: var(--tps-ink);    /* text */
	--ast-global-color-4: var(--tps-page);   /* page background */
	--ast-global-color-5: var(--tps-page);   /* content background */
	--ast-global-color-6: var(--tps-cream);
	--ast-global-color-7: var(--tps-ink);    /* was #232529 (dark) in Astra's palette */
	--ast-global-color-8: var(--tps-ink);    /* was #222222; the sidebar's Latest Posts uses it for text */
}

body,
.ast-separate-container,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .comment-respond,
.ast-separate-container .site-main > .ast-row {
	background-color: var(--tps-page);
}

body,
input,
select,
textarea {
	font-family: var(--tps-font);
	color: var(--tps-ink);
}
/* Buttons take the font only; their colors come from the button rules. */
button {
	font-family: var(--tps-font);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.entry-content :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	color: var(--tps-ink);
}

a,
.entry-content a,
.entry-title a {
	color: var(--tps-ink);
}
a:hover,
a:focus,
.entry-content a:hover,
.entry-title a:hover {
	color: var(--tps-brick);
}

/* Keyboard focus: a black outline on the page, cream inside dark boxes. */
:focus-visible {
	outline: 2px solid var(--tps-ink);
	outline-offset: 2px;
}
.tps-clip :focus-visible,
.tps-signup :focus-visible,
.tps-tile__square :focus-visible {
	outline-color: var(--tps-cream);
}

/* Buttons: brick with cream text, ink on hover. */
.ast-button,
.button,
.wp-block-search__button,
.search-submit,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.wp-element-button,
.edd-submit,
.edd-submit.button,
.edd-submit.button.blue {
	background-color: var(--tps-brick);
	border-color: var(--tps-brick);
	color: var(--tps-cream);
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 0;
}
.ast-button:hover,
.button:hover,
.wp-block-search__button:hover,
.search-submit:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
.edd-submit:hover,
.edd-submit.button.blue:hover {
	background-color: var(--tps-ink);
	border-color: var(--tps-ink);
	color: var(--tps-cream);
}

/* ==========================================================================
   Other page types on Astra's layout (Stage 4 review): forms, errors,
   archive badges, post byline.
   ========================================================================== */

/* EDD forms (checkout, login, profile): their section headings sit on a
   white or gray bar by default. */
#edd_checkout_form_wrap legend,
#edd_login_form legend,
#edd_profile_editor_form legend,
.edd-blocks-form legend,
.edd-blocks-form__group legend {
	background: transparent;
	padding-left: 0;
	padding-right: 0;
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--tps-ink);
}
#edd_login_form fieldset,
#edd_profile_editor_form fieldset {
	background: transparent;
}

/* EDD secondary buttons ("Enter a discount code"): black outline, the
   secondary button style. */
.edd-button-secondary,
button.edd-button-secondary {
	padding: 8px 14px;
	border: 2px solid var(--tps-ink);
	border-radius: 0;
	background: transparent;
	color: var(--tps-ink);
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: none;
}
.edd-button-secondary:hover,
.edd-button-secondary:focus {
	background: var(--tps-ink);
	color: var(--tps-cream);
}

/* Errors: brick, with an icon, on the page background (not pink). */
.edd_errors,
.edd-alert-error,
.wpforms-container .wpforms-error-container,
.wpforms-container .wpforms-error-alert {
	position: relative;
	margin: 0 0 20px;
	padding: 12px 14px 12px 46px;
	border: 2px solid var(--tps-brick);
	border-radius: 0;
	background: transparent;
	color: var(--tps-ink);
	font-size: 15px;
	line-height: 1.5;
}
.edd_errors::before,
.edd-alert-error::before,
.wpforms-container .wpforms-error-container::before,
.wpforms-container .wpforms-error-alert::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 13px;
	width: 20px;
	height: 20px;
	background: var(--tps-brick);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18zm-1 4h2v7H9zm0 9h2v2H9z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18zm-1 4h2v7H9zm0 9h2v2H9z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.edd_errors p,
.edd-alert-error p {
	margin: 0;
	color: var(--tps-ink);
}
.edd_errors .edd_error + .edd_error {
	margin-top: 6px;
}
/* Field-level errors (WPForms): brick text with the same icon. */
.wpforms-container .wpforms-form label.wpforms-error,
.wpforms-container .wpforms-form em.wpforms-error {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--tps-brick);
	font-size: 14px;
	font-style: normal;
	font-weight: 600;
}
.wpforms-container .wpforms-form label.wpforms-error::before,
.wpforms-container .wpforms-form em.wpforms-error::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: var(--tps-brick);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18zm-1 4h2v7H9zm0 9h2v2H9z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18zm-1 4h2v7H9zm0 9h2v2H9z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wpforms-container .wpforms-form input.wpforms-error,
.wpforms-container .wpforms-form textarea.wpforms-error {
	border-color: var(--tps-brick);
}

/* WPForms (Contact): the submit button is an action, so brick with cream text. */
.wpforms-container .wpforms-form button[type="submit"],
.wpforms-container .wpforms-form .wpforms-submit {
	padding: 14px 22px;
	height: auto;
	border: 0;
	border-radius: 0;
	background: var(--tps-brick);
	color: var(--tps-cream);
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.wpforms-container .wpforms-form button[type="submit"]:hover,
.wpforms-container .wpforms-form .wpforms-submit:hover {
	background: var(--tps-ink);
	color: var(--tps-cream);
}

/* Archive and search cards: the category is a label, not a brick badge
   (brick is for actions only). */
.ast-taxonomy-container.badge a,
.cat-links.badge a {
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: var(--tps-ink);
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.ast-taxonomy-container.badge a:hover,
.cat-links.badge a:hover {
	background: transparent;
	color: var(--tps-brick);
	text-decoration: underline;
}
.ast-taxonomy-container.badge a + a::before {
	content: "· ";
}

/* Flat, like the home page: none of Astra's shadows. Astra puts a soft
   shadow on the post cards of /articles/, category, date and search pages
   (blog layout 4), and a faint one on every button, label link and form
   field. Selectors match Astra's own, so these win by load order. */
.ast-blog-layout-4-grid .ast-article-inner,
button,
.ast-button,
.button,
input[type="button"],
input[type="reset"],
input[type="submit"],
input[type="text"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="date"],
select,
textarea {
	box-shadow: none;
}

/* Post byline and meta: ink text (Astra colors it with the action color),
   links brick on hover like every link. */
.entry-meta,
.entry-meta * {
	color: var(--tps-ink);
}
.entry-meta a,
.posted-by a,
.posted-on a {
	color: var(--tps-ink);
}
.entry-meta a:hover,
.posted-by a:hover,
.posted-on a:hover {
	color: var(--tps-brick);
}


hr,
.wp-block-separator {
	border-color: var(--tps-rule);
	color: var(--tps-rule);
}

/* The label style: Archivo Narrow 700, small capitals with tracking. */
.tps-label {
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.3;
}

/* ==========================================================================
   Stripes (under the header and above the footer).
   ========================================================================== */

.tps-stripes span {
	display: block;
	height: 4px;
}
.tps-stripes span:nth-child(1) { background: var(--tps-brick); }
.tps-stripes span:nth-child(2) { background: var(--tps-sage); }
.tps-stripes span:nth-child(3) { background: var(--tps-ink); }

/* ==========================================================================
   Header.
   ========================================================================== */

.tps-header {
	background: var(--tps-page);
	position: relative;
}
.tps-header__bar {
	max-width: 1160px;
	margin: 0 auto;
	padding: 14px 32px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
}
.tps-logo {
	display: block;
	line-height: 0;
	flex: none;
	max-width: 100%;
}
.tps-logo svg {
	display: block;
	max-width: 100%;
	height: auto;
}
.tps-logo--header {
	--tps-logo-pedal-1: var(--tps-brick);
	--tps-logo-pedal-2: var(--tps-sage);
	--tps-logo-pedal-3: var(--tps-ink);
}
.tps-header__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 26px;
}
.tps-header__nav .tps-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tps-header__nav .tps-menu a,
.tps-cart {
	display: block;
	padding: 12px 0;
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--tps-ink);
}
.tps-cart {
	white-space: nowrap;
}
.tps-header__nav .tps-menu a:hover,
.tps-header__nav .tps-menu .current-menu-item > a,
.tps-cart:hover {
	color: var(--tps-brick);
}
.tps-menu-button {
	display: none;
}

/* Phones and small tablets: logo, Cart (n) and the menu button on one line;
   the links open below them. */
@media (max-width: 767px) {
	.tps-header__bar {
		flex-wrap: nowrap;
		padding: 12px 18px;
		gap: 12px;
	}
	.tps-logo--header {
		width: 230px;
		flex: 0 1 230px;
		min-width: 0;
	}
	.tps-header__nav {
		flex-wrap: nowrap;
		gap: 14px;
	}
	.tps-menu-button {
		display: flex;
		flex: none;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 2px solid var(--tps-ink);
		border-radius: 0;
		background: transparent;
		cursor: pointer;
	}
	.tps-menu-button:hover,
	.tps-menu-button:focus {
		background: transparent;
	}
	.tps-menu-button__bar {
		display: block;
		width: 20px;
		height: 2px;
		background: var(--tps-ink);
	}
	.tps-js .tps-header__links {
		display: none;
	}
	.tps-header.is-menu-open .tps-header__links {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 100;
		background: var(--tps-page);
		border-bottom: 1px solid var(--tps-rule);
		padding: 4px 18px 12px;
	}
	.tps-header.is-menu-open .tps-menu {
		flex-direction: column;
		gap: 0;
	}
	.tps-header.is-menu-open .tps-menu li + li {
		border-top: 1px solid var(--tps-rule);
	}
	.tps-header.is-menu-open .tps-menu a {
		padding: 14px 0;
	}
	/* Without JavaScript the links simply show as a wrapped row. */
	html:not(.tps-js) .tps-header__bar { flex-wrap: wrap; }
	html:not(.tps-js) .tps-menu-button { display: none; }
}

/* ==========================================================================
   Footer.
   ========================================================================== */

.tps-footer {
	background: var(--tps-page);
}
.tps-footer__inner {
	max-width: 1160px;
	margin: 0 auto;
	padding: 22px 32px 32px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
}
.tps-footer__nav .tps-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tps-footer__nav a {
	font-size: 15px;
	font-weight: 600;
	color: var(--tps-ink);
}
.tps-footer__nav a:hover {
	color: var(--tps-brick);
}
.tps-footer__bottom {
	flex-basis: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	font-size: 13px;
}
.tps-footer__bottom a {
	color: var(--tps-ink);
}
@media (max-width: 767px) {
	.tps-footer__inner {
		padding: 20px 18px 28px;
	}
}

/* ==========================================================================
   Shared parts (inc/components.php), used by the home page and song pages:
   headings, buttons, play buttons and clip rows, tiles, quotes, signup band.
   ========================================================================== */

.tps-h2 {
	margin: 0;
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	font-size: 34px;
	line-height: 1.1;
	text-transform: uppercase;
}

/* A 2 px ink rule across the content width above each section heading row
   (song lessons, jam tracks, articles; lesson overview, sample pages, more
   song lessons). Not on the hero or the signup band; the quotes row keeps
   its own 1 px rules. */
.tps-ruled {
	border-top: 2px solid var(--tps-ink);
	padding-top: 12px;
	margin-top: 12px;
}


/* Buttons: brick (solid) and black outline (secondary). */
a.tps-btn,
button.tps-btn,
.tps-btn {
	display: inline-block;
	margin: 0;
	padding: 14px 22px;
	border: 0;
	border-radius: 0;
	background: var(--tps-brick);
	color: var(--tps-cream);
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
}
a.tps-btn:hover,
a.tps-btn:focus,
button.tps-btn:hover,
button.tps-btn:focus {
	background: var(--tps-ink);
	color: var(--tps-cream);
}
a.tps-btn--tile {
	padding: 10px 16px;
	font-size: 15px;
	text-align: center;
}
a.tps-btn--outline {
	padding: 8px 14px;
	border: 2px solid var(--tps-ink);
	background: transparent;
	color: var(--tps-ink);
}
a.tps-btn--outline:hover,
a.tps-btn--outline:focus {
	background: var(--tps-ink);
	color: var(--tps-cream);
}

.tps-play {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tps-brick);
	color: var(--tps-cream);
	cursor: pointer;
}
.tps-play:hover,
.tps-play:focus {
	background: var(--tps-brick);
	filter: brightness(1.12);
}
.tps-play svg {
	fill: var(--tps-cream);
}
.tps-play__pause,
.tps-play.is-playing .tps-play__start {
	display: none;
}
.tps-play.is-playing .tps-play__pause {
	display: inline;
}
.tps-clip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	background: var(--tps-ink);
	color: var(--tps-cream);
}
.tps-clip__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.3;
}
.tps-clip__title {
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.tps-clip__note {
	font-size: 14px;
	color: var(--tps-rule);
}
/* The play button drives the audio; without JavaScript the plain controls show. */
.tps-js .tps-audio {
	display: none;
}
html:not(.tps-js) .tps-play {
	display: none;
}
html:not(.tps-js) .tps-audio {
	flex-basis: 100%;
	width: 100%;
}

.tps-clip__link,
.tps-clip__link:visited {
	flex: none;
	color: var(--tps-cream);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: underline;
}
.tps-clip__link:hover,
.tps-clip__link:focus {
	color: var(--tps-cream);
	text-decoration-thickness: 2px;
}
html:not(.tps-js) .tps-clip .tps-audio {
	order: 3;
}

.tps-price {
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	font-size: 34px;
	line-height: 1.1;
}

/* ---- Purchase block (song pages and jam track pages) --------------------
   "Digital download", the price, and EDD's add-to-cart form as a brick button. */
.tps-purchase {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.tps-purchase__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.tps-song .edd_download_purchase_form,
.tps-purchase .edd_download_purchase_form {
	margin: 0;
}
.tps-song .edd_purchase_submit_wrapper,
.tps-purchase .edd_purchase_submit_wrapper {
	margin: 0;
}
/* EDD prints a script button and a no-script fallback; show only one. */
.tps-js .tps-song .edd-no-js.tps-btn,
.tps-js .tps-purchase .edd-no-js.tps-btn,
html:not(.tps-js) .tps-song button.edd-add-to-cart.tps-btn,
html:not(.tps-js) .tps-purchase button.edd-add-to-cart.tps-btn {
	display: none;
}
.tps-song .edd-submit.tps-btn,
.tps-purchase .edd-submit.tps-btn {
	padding: 14px 26px;
}

/* Section heading row: heading left, "All … →" right. */
.tps-section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
}
.tps-more-link {
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

/* ---- Tiles: songs, jam track sets, coming soon ---------------------------
   Three per row at desktop, two on phones: one setting each. */
.tps-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 24px;
}
.tps-tile {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}
.tps-tile__art {
	position: relative;
	aspect-ratio: 1;
}
.tps-tile__art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tps-play--tile {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
}
/* The type-only square, for a tile with no picture (the coming-soon tile). */
.tps-tile__square {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	background: var(--tps-ink);
	color: var(--tps-cream);
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	text-transform: uppercase;
}
.tps-tile__square-top {
	padding: 12px 15px 0;
	font-size: 11px;
	letter-spacing: 0.06em;
	line-height: 1.25;
}
.tps-tile__square-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 8px 15px 0;
}
.tps-tile__square-kicker {
	font-size: 15px;
	letter-spacing: 0.06em;
	color: var(--tps-rule);
}
.tps-tile__square-title {
	font-size: clamp(17px, 2.4vw, 29px);
	line-height: 1.02;
}
.tps-tile__square-stripes {
	display: block;
	width: 100%;
	height: 32px;
	margin-bottom: 14px;
	fill: none;
	stroke-width: 3.1;
}
.tps-tile__square-stripes polyline:nth-child(1) { stroke: var(--tps-brick); }
.tps-tile__square-stripes polyline:nth-child(2) { stroke: var(--tps-sage); }
.tps-tile__square-stripes polyline:nth-child(3) { stroke: var(--tps-cream); }
.tps-tile__name {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.tps-tile__title {
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	font-size: 19px;
	line-height: 1.2;
	text-decoration: none;
	color: var(--tps-ink);
}
a.tps-tile__title:hover {
	color: var(--tps-brick);
}
.tps-tile__line {
	font-size: 15px;
	line-height: 1.35;
}
.tps-tile__buy {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.tps-price--tile {
	font-size: 20px;
}

/* ---- What players say (synced pattern "What players say") ----------- */

.tps-quotes-section {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.tps-quotes-section > .tps-label {
	margin: 0;
}
.tps-quotes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 48px;
}
.tps-quotes-section .tps-quotes blockquote.wp-block-quote {
	margin: 0;
	padding: 18px 0 0;
	border: 0;
	border-left: 0;
	border-top: 1px solid var(--tps-rule);
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: none;
}
.tps-quotes-section .tps-quotes blockquote.wp-block-quote p {
	margin: 0;
	font-size: 20px;
	line-height: 1.5;
	font-style: italic;
	text-indent: -0.42em;
}
.tps-quotes-section .tps-quotes blockquote.wp-block-quote cite {
	padding: 0;
	margin: 0;
	font-size: 15px;
	font-style: normal;
	color: var(--tps-ink);
}
.tps-quotes-section .tps-quotes blockquote.wp-block-quote cite strong {
	font-weight: 700;
}

/* ---- New song announcements (synced pattern "New song announcements") ----------
   The pattern holds Brevo's embed exactly as Brevo makes it. Its inline
   styles (white box, gray type, gray button) are overridden here, inside
   this band only, to match the board. The same embed elsewhere (the
   Confirmation page) is untouched: every rule starts with .tps-signup, the
   band's own class. !important is needed only because
   Brevo sets these as inline styles. */

.tps-signup {
	background: var(--tps-ink);
	color: var(--tps-cream);
	padding: 32px;
}
.tps-signup .sib-form {
	padding: 0 !important;
	background: transparent !important;
	text-align: left !important;
	font-family: var(--tps-font) !important;
}
.tps-signup .sib-form-container,
.tps-signup #sib-container {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	text-align: left !important;
}
.tps-signup #sib-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
	align-items: center;
	row-gap: 8px;
	margin: 0;
}
/* Brevo wraps each part in a div with 8 px padding: heading, line, field, button. */
.tps-signup #sib-form > div {
	padding: 0 !important;
}
.tps-signup #sib-form > div:nth-of-type(1) { grid-column: 1; grid-row: 1; padding-right: 40px !important; }
.tps-signup #sib-form > div:nth-of-type(2) { grid-column: 1; grid-row: 2; padding-right: 40px !important; }
.tps-signup #sib-form > div:nth-of-type(3) { grid-column: 2; grid-row: 1 / span 2; }
.tps-signup #sib-form > div:nth-of-type(4) { grid-column: 3; grid-row: 1 / span 2; padding-left: 10px !important; }

.tps-signup .sib-form-block {
	padding: 0 !important;
	background: transparent !important;
	text-align: left !important;
}
.tps-signup .sib-form-block p,
.tps-signup .sib-text-form-block p {
	margin: 0 !important;
	line-height: inherit !important;
}
/* Heading: "New song announcements". */
.tps-signup #sib-form > div:nth-of-type(1) .sib-form-block {
	font-family: var(--tps-font-narrow) !important;
	font-weight: 700 !important;
	font-size: 30px !important;
	line-height: 1.1 !important;
	text-transform: uppercase;
	color: var(--tps-cream) !important;
}
/* Line: "One email each time…". */
.tps-signup #sib-form > div:nth-of-type(2) .sib-form-block {
	font-family: var(--tps-font) !important;
	font-size: 17px !important;
	line-height: 1.5 !important;
	color: var(--tps-cream) !important;
}

/* Field: the label stays for screen readers; the field shows "Email address". */
.tps-signup .entry__label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}
.tps-signup .form__entry,
.tps-signup .form__label-row {
	margin: 0 !important;
}
.tps-signup .entry__field {
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}
.tps-signup .sib-form .input,
.tps-signup #EMAIL {
	box-sizing: border-box;
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 13px 14px !important;
	border: 2px solid var(--tps-rule) !important;
	border-radius: 0 !important;
	background: var(--tps-page) !important;
	color: var(--tps-ink) !important;
	font-family: var(--tps-font) !important;
	font-size: 16px !important;
	line-height: 1.25 !important;
}
.tps-signup #EMAIL::placeholder {
	color: #7a766d;
	opacity: 1;
}
.tps-signup #EMAIL:focus {
	outline: 2px solid var(--tps-brick);
	outline-offset: 2px;
}
.tps-signup .entry__error {
	margin: 6px 0 0 !important;
	font-family: var(--tps-font) !important;
	font-size: 14px !important;
}
.tps-signup .entry__error:empty {
	display: none !important;
}

/* Button: brick "Sign up". */
.tps-signup .sib-form-block__button {
	margin: 0 !important;
	padding: 15px 20px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--tps-brick) !important;
	color: var(--tps-cream) !important;
	font-family: var(--tps-font-narrow) !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	line-height: 1.2 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
}
.tps-signup .sib-form-block__button:hover,
.tps-signup .sib-form-block__button:focus {
	background: var(--tps-cream) !important;
	color: var(--tps-ink) !important;
}

/* Brevo's success and error messages keep their own colors, full width. */
.tps-signup .sib-form-message-panel {
	max-width: none !important;
	margin: 0 0 16px !important;
	border-radius: 0 !important;
}


@media (max-width: 767px) {
	.tps-h2 {
		font-size: 28px;
	}
	.tps-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 12px;
	}
	.tps-tile__title { font-size: 17px; }
	.tps-tile__line { font-size: 14px; }
	.tps-tile__buy {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
	.tps-tile__buy .tps-price--tile,
	.tps-tile__buy .tps-tile__status {
		align-self: flex-start;
	}
	a.tps-btn--tile {
		display: block;
		padding: 10px 8px;
	}
	.tps-quotes {
		grid-template-columns: minmax(0, 1fr);
	}
	.tps-quotes-section .tps-quotes blockquote.wp-block-quote p {
		font-size: 18px;
	}
	.tps-clip {
		flex-wrap: wrap;
	}
	.tps-signup {
		padding: 24px 20px;
	}
	.tps-signup #sib-form {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 0;
	}
	.tps-signup #sib-form > div:nth-of-type(n) {
		grid-column: 1;
		grid-row: auto;
		padding: 0 !important;
	}
	.tps-signup #sib-form > div:nth-of-type(2) { padding-top: 8px !important; }
	.tps-signup #sib-form > div:nth-of-type(3) { padding-top: 24px !important; }
	.tps-signup #sib-form > div:nth-of-type(4) { padding-top: 10px !important; }
	.tps-signup #sib-form > div:nth-of-type(1) .sib-form-block {
		font-size: 26px !important;
	}
	.tps-signup .sib-form-block__button {
		width: 100%;
		text-align: center !important;
	}
}

/* ==========================================================================
   Article cards (tps_article_card in inc/components.php): the home page's
   article row and the post lists (Articles page, category and date
   archives, search results). Text sits flush with the photo's left edge.
   ========================================================================== */

.tps-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.tps-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}
.tps-card p,
.tps-card .tps-label {
	margin: 0;
}
.tps-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--tps-ink);
	overflow: hidden;
}
.tps-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tps-card__title {
	margin: 0;
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.2;
	text-transform: none;
}
.tps-card__title a {
	color: var(--tps-ink);
	text-decoration: none;
}
.tps-card__title a:hover {
	color: var(--tps-brick);
}
.tps-card__text {
	font-size: 16px;
	line-height: 1.5;
}
@media (max-width: 767px) {
	.tps-cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

/* Post lists: the card grid takes the place of Astra's post boxes
   (inc/site-pages.php); page numbers follow below it. */
.tps-post-list .tps-cards {
	margin-bottom: 48px;
}

/* ==========================================================================
   Articles page heading and the Account page (inc/site-pages.php).
   ========================================================================== */

.tps-articles-head {
	margin: 0 0 24px;
}
.tps-articles-head .tps-h2 {
	margin: 0;
}

.tps-account__intro {
	margin: 0 0 16px;
}
.tps-account__links {
	margin: 0 0 24px;
	font-size: 15px;
}
.tps-account__links a {
	color: var(--tps-ink);
}
.tps-account__links a:hover {
	color: var(--tps-brick);
}
.tps-account__heading {
	margin: 32px 0 12px;
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.tps-account__links + .tps-account__heading {
	margin-top: 0;
}

/* Category row under the Articles / category heading: plain links in the
   label style, the current one in brick like the header menu. */
.tps-cat-row {
	margin: 14px 0 0;
}
.tps-cat-row ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tps-cat-row li {
	margin: 0;
}
.tps-cat-row a {
	font-family: var(--tps-font-narrow);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--tps-ink);
	white-space: nowrap;
}
.tps-cat-row a:hover,
.tps-cat-row a.is-current {
	color: var(--tps-brick);
}
@media (max-width: 767px) {
	.tps-cat-row ul {
		gap: 4px 18px;
	}
}
