/**
 * AFAYR site-wide presentation for the header and footer parts (all pages).
 */

.afayr-wrap {
	width: min(100% - 2 * clamp(1rem, 4.5vw, 4rem), 1280px);
	margin-inline: auto;
}

/* Header additions. */
.afayr-nav-soon {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--silver);
	opacity: 0.75;
}

.afayr-header__listen .wp-block-button__link {
	padding: 0.55em 1.1em;
	white-space: nowrap;
}

/* Header: touch targets, account icon and cart link. */
.afayr-header .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.afayr-header .wp-block-navigation__responsive-container-open,
.afayr-header .wp-block-navigation__responsive-container-close {
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

.afayr-header .wc-block-customer-account a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	color: var(--wp--preset--color--ivory) !important;
}

.afayr-header .wc-block-customer-account a:hover {
	color: var(--wp--preset--color--gold) !important;
}

.afayr-cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	color: var(--wp--preset--color--ivory);
	text-decoration: none;
}

.afayr-cart-link:hover {
	color: var(--wp--preset--color--gold);
}

.afayr-cart-link__count {
	position: absolute;
	top: 3px;
	right: 1px;
	min-width: 1.1rem;
	height: 1.1rem;
	padding: 0 0.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	text-align: center;
	color: var(--wp--preset--color--black);
	background: var(--wp--preset--color--gold);
}

.afayr-cart-link__count[hidden] {
	display: none;
}

.afayr-header__listen .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/*
 * Five links do not fit beside the icons and the gold action below
 * 1024px, so the menu button (core overlay) is used from 600px up.
 * The core block only switches at 600px.
 */
@media (min-width: 600px) and (max-width: 1023px) {

	.afayr-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.afayr-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

.afayr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	min-height: 48px;
}

@media (max-width: 759px) {

	.afayr-nav-soon {
		display: none;
	}

	.afayr-header__right {
		gap: 0.6rem !important;
	}

	.afayr-header__listen .wp-block-button__link {
		padding: 0.55em 0.8em;
		font-size: 0.75rem;
	}
}

/* Footer. */
.afayr-footer {
	padding: 3.5rem 0 2rem;
	border-top: 1px solid var(--wp--preset--color--charcoal);
}

.afayr-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: 2rem;
}

.afayr-footer__cols > * {
	margin: 0 !important;
}

.afayr-footer__brand {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.afayr-footer__brand > * {
	margin: 0 !important;
}

.afayr-footer__emblem {
	width: 48px;
}

.afayr-footer__emblem img {
	display: block;
	width: 48px;
	height: auto;
	object-fit: contain;
}

.afayr-footer__heading.wp-block-heading {
	margin: 0 0 0.8rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}

.afayr-footer__list {
	display: grid;
	gap: 0.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.afayr-footer__list a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: var(--wp--preset--color--ivory);
	text-decoration: none;
}

.afayr-footer__list a:hover {
	color: var(--wp--preset--color--gold);
}

.afayr-muted,
.afayr-small {
	font-size: 0.85rem;
	color: var(--wp--preset--color--silver);
}

/* Footer: official social profiles (core Social Icons, local SVGs). */
.afayr-footer .afayr-social.wp-block-social-links {
	gap: 0.75rem;
	margin: 0;
	padding: 0;
}

.afayr-footer .afayr-social .wp-social-link,
.afayr-footer .afayr-social .wp-social-link:hover {
	transform: none;
}

.afayr-footer .afayr-social .wp-social-link {
	margin: 0;
	color: var(--wp--preset--color--gold);
	background: transparent;
}

.afayr-footer .afayr-social .wp-block-social-link-anchor {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgb(201 165 74 / 0.55);
	border-radius: 50%;
	color: var(--wp--preset--color--gold);
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.afayr-footer .afayr-social .wp-block-social-link-anchor svg {
	width: 20px;
	height: 20px;
	fill: currentcolor;
}

.afayr-footer .afayr-social .wp-block-social-link-anchor:hover {
	border-color: var(--wp--preset--color--royal-blue-light);
	color: var(--wp--preset--color--ivory);
	background: rgb(29 63 160 / 0.35);
}

.afayr-footer .afayr-social .wp-block-social-link-anchor:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

	.afayr-footer .afayr-social .wp-block-social-link-anchor {
		transition: none;
	}
}

.afayr-footer__base {
	margin-top: 2.5rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--charcoal);
}

.afayr-footer__emblem picture {
	display: contents;
}

.afayr-footer .afayr-todo {
	font-style: italic;
}

.afayr-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	font-size: 0.85rem;
}

.afayr-footer__legal a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: var(--wp--preset--color--silver);
	text-decoration: none;
}

.afayr-footer__legal a:hover {
	color: var(--wp--preset--color--gold);
	text-decoration: underline;
}

/* Typographic cover for a release without artwork (CSS only). */
.afayr-cover {
	container-type: inline-size;
	width: 100%;
	margin: 0;
	aspect-ratio: 1;
}

.afayr-cover__tile {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 0.5em;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 9cqi;
	text-align: center;
	color: var(--wp--preset--color--ivory);
	background: linear-gradient(160deg, var(--wp--preset--color--charcoal), var(--wp--preset--color--ink));
	box-shadow: inset 0 0 0 1px rgb(201 165 74 / 0.4);
}

.afayr-cover__tile::before {
	content: "";
	position: absolute;
	inset: 5cqi;
	border: 1px solid rgb(201 165 74 / 0.22);
	pointer-events: none;
}

.afayr-cover__type,
.afayr-cover__mark {
	font-size: max(0.625rem, 4.2cqi);
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.afayr-cover__type {
	color: var(--wp--preset--color--gold);
}

.afayr-cover__mark {
	color: var(--wp--preset--color--silver);
}

.afayr-cover__title {
	align-self: center;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(0.95rem, 11cqi, 2.25rem);
	line-height: 1.1;
	letter-spacing: 0.02em;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

/* Thumbnail tiles (64px): no room for words, so none are shown. */
@container (max-width: 100px) {

	.afayr-cover__title {
		display: none;
	}
}

@container (max-width: 150px) {

	.afayr-cover__type,
	.afayr-cover__mark {
		display: none;
	}

	.afayr-cover__tile {
		grid-template-rows: 1fr;
	}
}

/* Release list titles: a comfortable target. */
.wp-block-post-template .wp-block-post-title a {
	display: inline-block;
	padding-block: 0.2rem;
}

/* Phones: introductory paragraphs use body-size text so they do not crowd a 390px screen. */
@media (max-width: 599px) {

	body .afayr-bio .afayr-bio__intro,
	body .afayr-notes__intro,
	body .afayr-about-hero__roles,
	body .afayr-observant__tagline {
		font-size: var(--wp--preset--font-size--medium);
	}
}

/* Phones: the brand name stays whole; extra words of a long Site Title (the staging label) are hidden. */
@media (max-width: 759px) {

	.afayr-header .wp-block-site-title {
		flex-shrink: 0;
		white-space: nowrap;
	}

	.afayr-header .afayr-site-title__more {
		display: none;
	}
}

/*
 * Cookie consent control: the plugin pins it over the page, where it covers text while scrolling.
 * It stays available (and keyboard accessible) but sits in the normal page flow, after the footer.
 */
html body .cookieadmin_reconsent_wrap button.cookieadmin_re_consent {
	position: static;
	width: 44px;
	height: 44px;
	margin: 0.75rem 1rem 1rem;
	opacity: 1;
}

html body .cookieadmin_re_consent img.cookieadmin_reconsent_img {
	width: 34px;
	height: 34px;
}
