/*
Theme Name: AWBF
Author: Music Aurora
Description: Block theme for the Aurora Winter Blues Festival, styled to match the Aurora Cultural Centre festival landing page. Colours, fonts and spacing live in theme.json; this file holds the few things theme.json cannot express.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: awbf
*/

:root {
	--awbf-charcoal: var(--wp--preset--color--charcoal);
	--awbf-ink: var(--wp--preset--color--ink);
	--awbf-slate: var(--wp--preset--color--slate);
	--awbf-orange: var(--wp--preset--color--orange);
	--awbf-lime: var(--wp--preset--color--lime);
	--awbf-blue: var(--wp--preset--color--pale-blue);
	--awbf-mist: var(--wp--preset--color--mist);
	--awbf-display: var(--wp--preset--font-family--overpass);
	--awbf-radius: 10px;
	--awbf-line: rgba(255, 255, 255, 0.12);
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

:focus-visible {
	outline: 2px solid var(--awbf-lime);
	outline-offset: 3px;
}

h1, h2, h3, h4 {
	text-wrap: balance;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}
}

/* ------------------------------------------------------------------
   Top bar and header
   ------------------------------------------------------------------ */

.awbf-topbar {
	background: var(--awbf-lime);
	color: var(--awbf-charcoal);
	font-size: 0.875rem;
	padding-block: 0.4rem;
}

.awbf-topbar p {
	margin: 0;
}

.awbf-topbar a {
	color: var(--awbf-charcoal);
}

.awbf-topbar .wp-block-social-links {
	gap: 0.35rem;
	margin: 0;
}

.awbf-topbar .wp-block-social-links .wp-social-link {
	color: var(--awbf-charcoal);
}

.awbf-topbar .wp-block-social-links .wp-social-link svg {
	fill: currentColor;
	height: 1.1em;
	width: 1.1em;
}

.awbf-header {
	background: var(--awbf-charcoal);
	border-bottom: 1px solid var(--awbf-line);
	padding-block: 0.9rem;
}

/* The wordmark is a vector file in the theme (assets/images/wordmark.svg),
   so its size is set here instead of on the block. */
.awbf-logo {
	flex-shrink: 0;
	line-height: 0;
	margin: 0;
}

.awbf-logo img {
	aspect-ratio: 393.2 / 91.38; /* holds the space before the file loads */
	display: block;
	height: auto;
	width: 220px;
}

.awbf-header .wp-block-site-title a {
	color: var(--awbf-blue);
	text-decoration: none;
}

.awbf-header__nav {
	gap: 1.5rem;
}

.awbf-header .wp-block-navigation .wp-block-navigation-item__content {
	padding-block: 0.35rem;
}

.awbf-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--awbf-slate);
	border: 0;
	border-radius: 6px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
	color: #fff;
	min-width: 230px;
	padding: 0.4rem 0;
}

.awbf-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.55rem 1.1rem;
}

.awbf-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	padding: 1.25rem clamp(1.25rem, 5vw, 3rem) 2rem;
}

.awbf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 2.5rem;
}

.awbf-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
.awbf-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item,
.awbf-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
	align-items: flex-start;
}

.awbf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1.1rem;
}

.awbf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	gap: 0.6rem;
	padding: 0.7rem 0 0.3rem 1rem;
}

.awbf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: var(--awbf-mist);
	font-size: 1.0625rem;
	padding: 0;
}

.awbf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent;
	box-shadow: none;
}

.awbf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.25rem;
}

.awbf-header__cta .wp-block-button__link {
	padding: 0.6em 1.1em 0.5em;
	white-space: nowrap;
}

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */

.awbf-section {
	padding-block: var(--wp--preset--spacing--60);
}

.awbf-section--tight {
	padding-block: var(--wp--preset--spacing--50);
}

.awbf-section > :first-child,
.awbf-card__body > :first-child {
	margin-block-start: 0;
}

.awbf-lede {
	color: var(--awbf-mist);
	font-size: var(--wp--preset--font-size--large);
}

.awbf-date {
	color: var(--awbf-orange);
	font-family: var(--awbf-display);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	margin-block: 0;
}

.awbf-meta {
	font-size: 0.9375rem;
	font-weight: 700;
	margin-block: 0;
}

.awbf-muted {
	color: var(--awbf-mist);
}

.awbf-note {
	border-left: 3px solid var(--awbf-orange);
	color: var(--awbf-mist);
	font-size: 0.9375rem;
	padding: 0.15rem 0 0.15rem 1rem;
}

.awbf-badge {
	background: var(--wp--preset--color--red);
	border-radius: 4px;
	color: #fff;
	font-family: var(--awbf-display);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1;
	margin-block: 0;
	padding: 0.5em 0.7em 0.38em;
	text-transform: uppercase;
	width: fit-content;
}

/* Inner-page title band */

.awbf-page-head {
	background:
		linear-gradient(180deg, rgba(18, 24, 29, 0.55), rgba(18, 24, 29, 0.9)),
		var(--awbf-ink);
	border-bottom: 1px solid var(--awbf-line);
	padding-block: clamp(2.5rem, 6vw, 4.25rem) clamp(1.75rem, 4vw, 2.5rem);
}

.awbf-page-head .wp-block-post-title {
	font-size: clamp(2.25rem, 6vw, 3.75rem);
	margin: 0;
}

.awbf-page-head .wp-block-post-title::after {
	background: var(--awbf-orange);
	content: "";
	display: block;
	height: 5px;
	margin-top: 1rem;
	width: 72px;
}

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

.awbf-hero {
	background-color: var(--awbf-charcoal);
	background-position: center top;
	background-size: cover;
	isolation: isolate;
	padding-block: clamp(2.75rem, 7vw, 5.5rem);
	position: relative;
}

.awbf-hero::before {
	background: linear-gradient(180deg, rgba(29, 37, 44, 0.8) 0%, rgba(29, 37, 44, 0.58) 50%, rgba(29, 37, 44, 0.96) 100%);
	content: "";
	inset: 0;
	position: absolute;
	z-index: -1;
}

/* The headline art ("Blues Fans / Get Ready for the Revival of / wordmark") is
   one centred drawing, so the date and buttons under it are centred too. */
.awbf-hero__copy {
	text-align: center;
}

.awbf-hero__copy .wp-block-buttons {
	justify-content: center;
}

.awbf-hero__lockup {
	margin: 0;
}

.awbf-hero__lockup img {
	aspect-ratio: 497.94 / 211.1; /* holds the space before the file loads */
	display: block;
	height: auto;
	margin-inline: auto;
	width: min(100%, 500px);
}

.awbf-hero__date {
	color: var(--awbf-orange);
	font-family: var(--awbf-display);
	font-size: clamp(1.15rem, 2.1vw, 1.55rem);
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: 1.1;
	margin: 1.2rem 0 1.6rem;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------
   Lineup circles
   ------------------------------------------------------------------ */

.awbf-lineup {
	align-items: flex-start;
	gap: 1.75rem 1.5rem;
}

.awbf-act {
	flex: 0 1 calc(33.333% - 1rem);
	max-width: 210px;
	text-align: center;
}

.awbf-act > * + * {
	margin-block-start: 0.2rem;
}

.awbf-act .wp-block-image {
	margin: 0 auto 0.8rem;
	max-width: 190px;
}

.awbf-act .awbf-badge {
	margin: 0.45rem auto 0;
}

.awbf-act .wp-block-image img,
.wp-block-image.is-style-awbf-circle img {
	aspect-ratio: 1;
	border-radius: 50%;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.awbf-act .wp-block-image a img {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.awbf-act .wp-block-image a:hover img,
.awbf-act .wp-block-image a:focus-visible img {
	box-shadow: 0 0 0 4px var(--awbf-lime), 0 14px 34px rgba(0, 0, 0, 0.45);
	transform: scale(1.03);
}

.awbf-act h3 {
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	font-weight: 700;
	margin-block: 0;
}

.awbf-act p {
	font-size: 0.875rem;
	margin-block-end: 0;
}

.awbf-act .awbf-date {
	font-size: 0.875rem;
}

/* ------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------ */

.awbf-card {
	background: var(--awbf-slate);
	border-radius: var(--awbf-radius);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.awbf-card > * {
	margin-block: 0;
}

.awbf-card > .wp-block-image img {
	aspect-ratio: 4 / 3;
	display: block;
	height: auto;
	object-fit: cover;
	object-position: 50% 22%;
	width: 100%;
}

.awbf-card__placeholder {
	align-items: center;
	aspect-ratio: 4 / 3;
	background: var(--awbf-ink);
	display: flex;
	justify-content: center;
	padding: 2rem;
}

.awbf-card__placeholder .wp-block-image {
	margin: 0;
	max-width: 240px;
	opacity: 0.85;
	width: 100%;
}

.awbf-card__placeholder .wp-block-image img {
	width: 100%;
}

.awbf-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.3rem 1.4rem 1.5rem;
}

.awbf-card__body > * + * {
	margin-block-start: 0.55rem;
}

.awbf-card__body h3 {
	font-size: 1.4rem;
	margin-block-end: 0;
}

.awbf-card__body p {
	margin-block-end: 0;
}

.awbf-card__body > .wp-block-buttons {
	margin-block-start: auto;
	padding-top: 1rem;
}

.awbf-card--plain .awbf-card__body {
	padding: 1.6rem 1.6rem 1.75rem;
}

/* Concert rows on the Concerts page */

.awbf-concert {
	border-top: 1px solid var(--awbf-line);
	padding-block: 2.25rem;
}

.awbf-concert:first-child {
	border-top: 0;
	padding-top: 0;
}

.awbf-concert .wp-block-image {
	margin: 0;
}

.awbf-concert .wp-block-image img {
	aspect-ratio: 1;
	border-radius: var(--awbf-radius);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.awbf-concert h2 {
	color: #fff;
	margin-block: 0.3rem 0.2rem;
}

.awbf-concert .awbf-card__placeholder {
	aspect-ratio: 1;
	border-radius: var(--awbf-radius);
}

/* Workshops */

.awbf-workshop {
	border-top: 1px solid var(--awbf-line);
	padding-block: 2rem;
}

.awbf-workshop:first-child {
	border-top: 0;
	padding-top: 0;
}

.awbf-workshop h3 {
	font-weight: 400;
	margin-block: 0.3rem 0.45rem;
}

.awbf-workshop .wp-block-image {
	margin: 0 auto;
	max-width: 200px;
}

/* Compact schedule list on the home page */

.awbf-schedule {
	border-top: 1px solid var(--awbf-line);
}

.awbf-schedule__row {
	border-bottom: 1px solid var(--awbf-line);
	gap: 0.35rem 1.5rem;
	padding-block: 0.95rem;
}

.awbf-schedule__row > * {
	margin: 0;
}

.awbf-schedule__row .awbf-date {
	flex: 0 0 15.5rem;
}

.awbf-schedule__row .awbf-schedule__title {
	flex: 1 1 18rem;
	font-weight: 700;
}

.awbf-schedule__row .awbf-schedule__venue {
	color: var(--awbf-mist);
	flex: 0 1 auto;
	font-size: 0.9375rem;
}

/* Memorial callout */

.awbf-memorial .wp-block-image {
	margin: 0;
}

.awbf-memorial .wp-block-image img {
	border-radius: var(--awbf-radius);
	display: block;
	height: auto;
	width: 100%;
}

/* ------------------------------------------------------------------
   Sponsor band
   ------------------------------------------------------------------ */

.awbf-sponsors {
	background: var(--awbf-blue);
	color: var(--awbf-charcoal);
}

.awbf-sponsors h2 {
	color: var(--awbf-charcoal);
	font-size: clamp(1.25rem, 2.4vw, 1.6rem);
	text-align: center;
}

.awbf-sponsors .awbf-note {
	border: 0;
	color: var(--awbf-charcoal);
	opacity: 0.75;
	padding: 0;
	text-align: center;
}

.awbf-tier {
	background: rgba(255, 255, 255, 0.38);
	border: 1px solid rgba(29, 37, 44, 0.1);
	border-radius: 8px;
	height: 100%;
	padding: 1.2rem 1.5rem 1.6rem;
	text-align: center;
}

.awbf-tier h3 {
	color: var(--awbf-charcoal);
	font-size: 1.125rem;
	font-weight: 400;
	margin-block: 0 1rem;
}

.awbf-logos {
	align-items: center;
	gap: 1.4rem 2.6rem;
}

.awbf-logos .wp-block-image {
	margin: 0;
}

.awbf-logos .wp-block-image img {
	display: block;
	height: auto;
	max-height: 72px;
	max-width: min(210px, 100%);
	object-fit: contain;
	width: auto;
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */

.wp-block-button__link {
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):focus-visible {
	background: #fff;
	border-color: #fff;
	color: var(--awbf-charcoal);
}

.awbf-sponsors .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	border-color: var(--awbf-charcoal);
	color: var(--awbf-charcoal);
}

/* ------------------------------------------------------------------
   Content details
   ------------------------------------------------------------------ */

.wp-block-post-content .wp-block-list {
	padding-left: 1.2em;
}

.wp-block-post-content .wp-block-list li + li {
	margin-top: 0.3em;
}

.wp-block-gallery.has-nested-images figure.wp-block-image img {
	border-radius: 6px;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper {
	background: var(--awbf-ink);
	border-radius: var(--awbf-radius);
	overflow: hidden;
}

/* ------------------------------------------------------------------
   Forms (Ninja Forms renders its own markup)
   ------------------------------------------------------------------ */

.nf-form-cont {
	background: var(--awbf-slate);
	border-radius: var(--awbf-radius);
	padding: clamp(1.25rem, 4vw, 2.25rem);
}

.nf-form-cont .nf-form-fields-required {
	color: var(--awbf-mist);
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

.nf-form-cont .nf-field-label label,
.nf-form-cont .nf-field-label .nf-label-span {
	font-family: var(--awbf-display);
	font-size: 1rem;
	font-weight: 700;
}

.nf-form-cont .nf-field-description {
	color: var(--awbf-mist);
	font-size: 0.875rem;
}

.nf-form-cont .nf-form-content {
	max-width: none;
	padding: 0;
}

.nf-form-cont .nf-form-content input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.nf-form-cont .nf-form-content textarea,
.nf-form-cont .nf-form-content select.ninja-forms-field,
.nf-form-cont .nf-form-content .list-select-wrap > div {
	background: #fff;
	border: 2px solid transparent;
	border-radius: 6px;
	color: var(--awbf-charcoal);
	font-family: inherit;
	font-size: 1rem;
}

.nf-form-cont .nf-form-content input:not([type="button"]):not([type="submit"]):focus,
.nf-form-cont .nf-form-content textarea:focus,
.nf-form-cont .nf-form-content select.ninja-forms-field:focus {
	border-color: var(--awbf-lime);
	color: var(--awbf-charcoal);
	outline: 0;
}

.nf-form-cont .nf-form-content input[type="button"],
.nf-form-cont .nf-form-content input[type="submit"],
.nf-form-cont .nf-form-content button {
	background: var(--awbf-lime);
	border: 2px solid var(--awbf-lime);
	border-radius: 6px;
	color: var(--awbf-charcoal);
	cursor: pointer;
	font-family: var(--awbf-display);
	font-size: 1.0625rem;
	font-weight: 800;
	height: auto;
	padding: 0.8em 1.6em 0.7em;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nf-form-cont .nf-form-content input[type="button"]:hover,
.nf-form-cont .nf-form-content input[type="submit"]:hover,
.nf-form-cont .nf-form-content button:hover {
	background: #fff;
	border-color: #fff;
	color: var(--awbf-charcoal);
}

.nf-form-cont .nf-error-msg,
.nf-form-cont .ninja-forms-req-symbol {
	color: #ff8f86;
}

.nf-form-cont .nf-response-msg {
	font-size: var(--wp--preset--font-size--large);
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */

.awbf-footer {
	background: var(--awbf-ink);
	color: var(--awbf-mist);
	font-size: 0.9375rem;
	padding-block: var(--wp--preset--spacing--50);
}

.awbf-footer a {
	color: #fff;
	text-decoration: none;
}

.awbf-footer a:hover,
.awbf-footer a:focus-visible {
	color: var(--awbf-lime);
	text-decoration: underline;
}

.awbf-footer h2 {
	color: var(--awbf-orange);
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	margin-block: 0 0.8rem;
	text-transform: uppercase;
}

.awbf-footer .wp-block-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.awbf-footer .wp-block-list li + li {
	margin-top: 0.4rem;
}

.awbf-footer .wp-block-image {
	margin: 0 0 1rem;
}

.awbf-footer .wp-block-image img {
	height: auto;
	max-width: 250px;
	width: 100%;
}

.awbf-footer .wp-block-social-links .wp-social-link {
	background: transparent;
	color: #fff;
}

.awbf-footer .wp-block-social-links .wp-social-link svg {
	fill: currentColor;
}

.awbf-legal {
	background: var(--awbf-lime);
	color: var(--awbf-charcoal);
	font-size: 0.8125rem;
	padding-block: 0.75rem;
}

.awbf-legal p {
	margin: 0;
}

.awbf-legal a {
	color: var(--awbf-charcoal);
}

/* ------------------------------------------------------------------
   Small screens
   ------------------------------------------------------------------ */

@media (max-width: 781px) {
	.awbf-topbar .wp-block-social-links {
		display: none;
	}

	.awbf-topbar {
		font-size: 0.75rem;
		text-align: center;
	}

	.awbf-topbar .wp-block-group {
		justify-content: center;
	}

	.awbf-hero__lockup img {
		width: min(100%, 420px);
	}

	.awbf-schedule__row .awbf-date {
		flex-basis: 100%;
	}

	.awbf-workshop .wp-block-image {
		max-width: 150px;
	}
}

@media (max-width: 599px) {
	/* Phones: a smaller wordmark leaves room for the menu and Tickets button.
	   On shop pages the account and cart icons join the row, so the Tickets
	   button makes way for them there (it is still in the page and menu). */
	.awbf-header .awbf-logo img {
		width: 160px;
	}

	.awbf-header .awbf-header__nav:has(.wc-block-mini-cart) .awbf-header__cta {
		display: none;
	}

	.awbf-act {
		flex-basis: calc(50% - 0.75rem);
	}

	.awbf-act .wp-block-image {
		max-width: 150px;
	}
}

/* ------------------------------------------------------------------
   Page frame: header, main and footer sit flush against each other
   ------------------------------------------------------------------ */

.wp-site-blocks > *,
.awbf-main > *,
.awbf-home > * {
	margin-block-start: 0;
}

.awbf-page-content {
	padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
}

.awbf-page-content:has(> .alignfull:last-child) {
	padding-bottom: 0;
}

.awbf-page-content > .alignfull:first-child {
	margin-top: calc(var(--wp--preset--spacing--50) * -1);
}

.awbf-posts {
	list-style: none;
	padding: 0;
}

.awbf-posts > li + li {
	border-top: 1px solid var(--awbf-line);
	margin-top: 2rem;
	padding-top: 2rem;
}

/* Very narrow phones (320px): tighten the header row so it still fits */

@media (max-width: 359px) {
	.awbf-header .awbf-logo img {
		width: 132px;
	}

	.awbf-header > .wp-block-group,
	.awbf-header .awbf-header__nav {
		gap: 0.75rem;
	}

	.awbf-header .awbf-header__cta .wp-block-button__link {
		padding-inline: 0.85em;
	}
}

/* Menu: use the slide-over menu until there is room for the full row.
   The widest case is a shop page, where the account and cart icons join the
   row: logo + menu + icons + Tickets button need about 1145px. */

@media (min-width: 600px) and (max-width: 1159px) {
	.awbf-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

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

.awbf-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: var(--awbf-lime);
}

/* ------------------------------------------------------------------
   Page sections built from the patterns
   ------------------------------------------------------------------ */

.awbf-hero__cols {
	gap: 2rem 3rem;
	margin-block: 0;
}

.awbf-hero__copy > :first-child {
	margin-block-start: 0;
}

.awbf-hero__copy > .awbf-hero__lockup {
	margin-block: 0;
}

.awbf-hero__copy > .awbf-hero__date {
	margin-block: 1.15rem 1.6rem;
}

.awbf-hero .wp-block-buttons {
	gap: 0.75rem;
}

.awbf-support {
	color: var(--awbf-mist);
	font-size: 0.9375rem;
	margin-block: 0;
}

.awbf-section > h2:first-child + .awbf-lede {
	margin-block-start: -0.35rem;
}

.awbf-cards {
	margin-block-start: 2rem;
}

.awbf-section__more {
	margin-block-start: 2rem;
}

.awbf-about__cols {
	gap: 2rem 3.5rem;
}

.awbf-about__cols .wp-block-list {
	list-style: none;
	padding: 0;
}

.awbf-about__cols .wp-block-list li + li {
	border-top: 1px solid var(--awbf-line);
	margin-top: 0.7rem;
	padding-top: 0.7rem;
}

/* White concert cards, as on the Cultural Centre page */

.awbf-card--light {
	background: #fff;
	border-top: 5px solid var(--awbf-lime);
	color: var(--awbf-charcoal);
}

.awbf-card--light h3,
.awbf-card--light h3 a {
	color: var(--awbf-charcoal);
}

.awbf-card--light .awbf-date {
	color: #b9500b;
}

.awbf-card--light .awbf-support {
	color: #4a5560;
}

.awbf-card--light .awbf-card__placeholder {
	background: var(--awbf-charcoal);
}

.awbf-card--light .wp-block-button__link:hover,
.awbf-card--light .wp-block-button__link:focus-visible {
	background: var(--awbf-charcoal);
	border-color: var(--awbf-charcoal);
	color: #fff;
}

.awbf-card--light .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	border-color: var(--awbf-charcoal);
	color: var(--awbf-charcoal);
}

.awbf-card--light .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover,
.awbf-card--light .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):focus-visible {
	background: var(--awbf-charcoal);
	color: #fff;
}

.awbf-card--dark {
	background: var(--awbf-ink);
}

.awbf-card--plain h2,
.awbf-card--plain h3,
.awbf-card--dark h3 {
	font-size: 1.4rem;
	margin-block-end: 0;
}

.awbf-card--plain h3:not(:first-child) {
	margin-block-start: 1.5rem;
}

.awbf-hotels .awbf-card > .wp-block-image img {
	aspect-ratio: 16 / 10;
	object-position: center;
}

/* Sponsors */

.awbf-tiers {
	margin-block-start: 1.75rem;
}

.awbf-sponsors > .awbf-tier,
.awbf-sponsors > .awbf-tiers {
	margin-block-start: 1.25rem;
}

.awbf-sponsors > .awbf-tier {
	height: auto;
}

.awbf-tier__name {
	font-family: var(--awbf-display);
	font-size: 1.35rem;
	margin: 0;
}

/* Inner pages */

.awbf-page-content > h2 {
	margin-block-start: 3rem;
}

.awbf-page-content > h2:first-child {
	margin-block-start: 0;
}

.awbf-page-content > h3 {
	margin-block-start: 2rem;
}

.awbf-concerts,
.awbf-workshops {
	margin-block-start: 2.5rem;
}

.awbf-concert .wp-block-columns {
	gap: 1.5rem 2.5rem;
	margin: 0;
}

.awbf-concert .wp-block-column > * {
	margin-block: 0;
}

.awbf-concert .wp-block-column > * + * {
	margin-block-start: 0.6rem;
}

.awbf-concert .wp-block-buttons {
	padding-top: 0.6rem;
}

.awbf-workshop h2 {
	color: #fff;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 400;
	margin-block: 0.3rem 0.45rem;
}

.awbf-workshop .wp-block-columns {
	gap: 1.5rem 2.5rem;
	margin: 0;
}

.awbf-workshop p {
	margin-block: 0.5rem 0;
}

.awbf-workshop .awbf-date {
	font-size: 1.125rem;
}

.awbf-after {
	border-top: 1px solid var(--awbf-line);
	margin-block-start: 3rem;
	padding-top: 2.5rem;
}

.awbf-after h2 {
	margin-block-start: 0;
}

.wp-block-list.awbf-people,
.wp-block-list.awbf-places {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.awbf-places li {
	border-bottom: 1px solid var(--awbf-line);
	margin: 0;
	padding-block: 0.6rem;
}

.awbf-videos {
	row-gap: 2rem;
}

.awbf-video > * {
	margin-block: 0;
}

.awbf-video h3 {
	font-size: 1.125rem;
	margin-block-start: 0.7rem;
}

.wp-block-gallery .wp-element-caption {
	font-size: 0.8125rem;
}

@media (max-width: 781px) {
	.awbf-hero__cols {
		gap: 2.5rem;
	}

	.awbf-workshop .wp-block-columns {
		flex-direction: column-reverse;
	}
}

.awbf-card__placeholder .wp-block-image img,
.awbf-concert .awbf-card__placeholder .wp-block-image img {
	aspect-ratio: auto;
	border-radius: 0;
	object-fit: contain;
}

/* The reading column lines up with the page title; wide blocks run to the full 1200px */

.awbf-page-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	margin-left: 0 !important;
}

.awbf-page-head.is-layout-constrained > *,
.awbf-page-content.is-layout-constrained > .alignwide {
	max-width: 1200px;
}

@media (min-width: 1300px) {
	.awbf-page-head,
	.awbf-page-content {
		padding-left: max(var(--wp--style--root--padding-left), calc((100% - 1200px) / 2)) !important;
		padding-right: max(var(--wp--style--root--padding-right), calc((100% - 1200px) / 2)) !important;
	}

	.awbf-page-content > .alignfull {
		margin-left: calc(max(var(--wp--style--root--padding-left), (100vw - 1200px) / 2) * -1) !important;
		margin-right: calc(max(var(--wp--style--root--padding-right), (100vw - 1200px) / 2) * -1) !important;
	}
}

.awbf-main {
	overflow-x: clip;
}

/* Footer stays at the bottom on short pages */

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > main {
	flex: 1 0 auto;
}

/* The page heading already names the form */

.nf-form-title {
	display: none;
}

/* Cropped gallery photos keep faces in frame */

.wp-block-gallery.has-nested-images figure.wp-block-image img {
	object-position: 50% 22%;
}

/* ------------------------------------------------------------------
   Shop (WooCommerce supplies the templates; this fits them to the dark page)
   ------------------------------------------------------------------ */

.woocommerce-page main:not(.awbf-main) {
	padding-block: 2rem var(--wp--preset--spacing--60);
}

.woocommerce-page .wp-block-post-title,
.woocommerce-page .wp-block-query-title {
	font-size: clamp(2.25rem, 6vw, 3.75rem);
}

.single-product .wp-block-post-title {
	font-size: var(--wp--preset--font-size--xx-large);
}

.woocommerce-breadcrumb,
.wc-block-breadcrumbs {
	color: var(--awbf-mist);
	font-size: 0.875rem;
}

/* Fields are white, so their labels and text need dark ink */

.wc-block-components-text-input label,
.wc-block-components-form .wc-block-components-text-input label,
.wc-blocks-components-select .wc-blocks-components-select__label,
.wc-block-components-combobox .wc-block-components-combobox-control label {
	color: #4a5560;
}

.wc-block-components-text-input input,
.wc-block-components-form .wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-blocks-components-select .wc-blocks-components-select__container,
.wc-block-components-quantity-selector,
.woocommerce form .input-text,
.woocommerce form select,
.woocommerce .quantity .qty,
.woocommerce-ordering select {
	background: #fff;
	border-radius: 6px;
	color: var(--awbf-charcoal);
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input,
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	color: var(--awbf-charcoal);
}

.wc-block-components-order-summary-item__quantity {
	background: var(--awbf-lime);
	border-color: var(--awbf-lime);
	color: var(--awbf-charcoal);
}

.wc-block-components-sidebar .wc-block-components-panel,
.wc-block-components-sidebar .wc-block-components-totals-item,
.wc-block-cart__sidebar .wc-block-components-totals-wrapper,
.wc-block-components-order-summary {
	border-color: var(--awbf-line);
}

.wc-block-checkout__sidebar,
.wc-block-cart__sidebar > .wp-block-woocommerce-cart-order-summary-block,
.wc-block-components-radio-control-accordion-option {
	background: var(--awbf-slate);
	border-radius: var(--awbf-radius);
}

.wc-block-components-radio-control-accordion-option {
	box-shadow: none;
}

.wc-block-components-product-name,
.wc-block-cart-item__product a {
	color: #fff;
}

.wc-block-components-button:not(.is-link),
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: var(--awbf-lime);
	border: 2px solid var(--awbf-lime);
	border-radius: 6px;
	color: var(--awbf-charcoal);
	font-family: var(--awbf-display);
	font-weight: 800;
}

.wc-block-components-button:not(.is-link):hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: #fff;
	border-color: #fff;
	color: var(--awbf-charcoal);
}

/* Messages */

/* WooCommerce colours each kind of notice with two classes, so the kinds are
   listed here to win over its pale backgrounds (white text on white otherwise). */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
body .wc-block-components-notice-banner,
body .wc-block-components-notice-banner.is-info,
body .wc-block-components-notice-banner.is-success,
body .wc-block-components-notice-banner.is-warning,
body .wc-block-components-notice-banner.is-error,
body .wc-block-components-notice-banner.is-default {
	background: var(--awbf-slate);
	border-color: var(--awbf-line);
	border-radius: 6px;
	color: #fff;
}

body .wc-block-components-notice-banner.is-info {
	border-color: var(--awbf-blue);
}

body .wc-block-components-notice-banner.is-success {
	border-color: var(--awbf-lime);
}

body .wc-block-components-notice-banner.is-warning {
	border-color: var(--awbf-orange);
}

body .wc-block-components-notice-banner.is-error {
	border-color: var(--wp--preset--color--red);
}

.wc-block-components-notice-banner a,
.woocommerce-message a,
.woocommerce-info a {
	color: var(--awbf-lime);
}

/* Product grid */

.wc-block-product,
.wp-block-woocommerce-product-template .product,
.woocommerce ul.products li.product {
	text-align: left;
}

.wc-block-components-product-image img,
.woocommerce ul.products li.product img,
.woocommerce div.product div.images img {
	border-radius: var(--awbf-radius);
}

/* My account (classic WooCommerce markup) */

.woocommerce-account .woocommerce {
	margin-top: 0;
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.woocommerce-MyAccount-navigation li + li {
	border-top: 1px solid var(--awbf-line);
}

.woocommerce-MyAccount-navigation a {
	color: #fff;
	display: block;
	padding: 0.6rem 0;
	text-decoration: none;
}

.woocommerce-MyAccount-navigation .is-active a,
.woocommerce-MyAccount-navigation a:hover {
	color: var(--awbf-lime);
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout_coupon {
	background: var(--awbf-slate);
	border: 0;
	border-radius: var(--awbf-radius);
	padding: clamp(1.25rem, 4vw, 2rem);
}

.woocommerce form .form-row label {
	font-family: var(--awbf-display);
	font-weight: 700;
}

.woocommerce form .form-row .input-text {
	border: 2px solid transparent;
	font-size: 1rem;
	padding: 0.7em 0.8em;
	width: 100%;
}

.woocommerce form .form-row .input-text:focus {
	border-color: var(--awbf-lime);
	outline: 0;
}

.woocommerce table.shop_table {
	border-color: var(--awbf-line);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-color: var(--awbf-line);
}
