/*
Theme Name:   G2G Astra
Theme URI:    https://www.groomertogroomer.com/
Description:  Astra child theme for Groomer to Groomer. Presentation only; content types live in the g2g-core plugin.
Author:       Barkleigh Productions
Template:     astra
Version:      0.1.0
Text Domain:  g2g-astra
*/

/* Colors come from Astra's global palette (Customizer > Global > Colors). */
:root {
	--g2g-brand: var(--ast-global-color-0, #1e73be);
	--g2g-accent: var(--ast-global-color-1, #10243c);
	--g2g-text: var(--ast-global-color-3, #3a4150);
	--g2g-light: var(--ast-global-color-4, #f2f6fa);
	--g2g-white: var(--ast-global-color-5, #fff);
	/* Text on the brand blue (buttons, the subscribe band): white in both light and dark mode. */
	--g2g-on-brand: #fff;
	--g2g-border: var(--ast-global-color-6, #dfe6ee);
	--g2g-tint: var(--ast-global-color-7, #e6f0f9);
	--g2g-muted: var(--ast-global-color-8, #5f6670);
	--g2g-radius: 6px;
	--g2g-gap: clamp(1rem, 2.5vw, 2rem);
	--g2g-section: clamp(2.5rem, 6vw, 4.5rem);
	--g2g-shadow: 0 1px 2px rgba(16, 36, 60, .08), 0 8px 24px rgba(16, 36, 60, .08);
}

/* ---------- Shared pieces ---------- */

.g2g-eyebrow {
	margin: 0 0 .5rem;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--g2g-brand);
}

.g2g-section {
	margin-top: var(--g2g-section);
}

.g2g-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}

.g2g-section__title {
	margin: 0 0 1.25rem;
	padding-bottom: .6rem;
	font-size: clamp(1.4rem, 2.5vw, 1.9rem);
	border-bottom: 3px solid var(--g2g-brand);
	display: inline-block;
}

.g2g-section__head .g2g-section__title {
	margin-bottom: 0;
}

.g2g-section__more {
	font-weight: 600;
	text-decoration: none;
}

.g2g-button-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
	margin-top: 1.5rem;
}

.g2g-button {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	padding: .75em 1.4em;
	border: 2px solid var(--g2g-brand);
	border-radius: var(--g2g-radius);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s;
}

.g2g-button:focus-visible {
	outline: 3px solid var(--g2g-accent);
	outline-offset: 2px;
}

.g2g-button--primary {
	background: var(--g2g-brand);
	color: var(--g2g-on-brand);
}

.g2g-button--primary:hover,
.g2g-button--primary:focus {
	background: var(--g2g-accent);
	border-color: var(--g2g-accent);
	color: var(--g2g-on-brand);
}

.g2g-button--outline {
	background: transparent;
	color: var(--g2g-brand);
}

.g2g-button--outline:hover,
.g2g-button--outline:focus {
	background: var(--g2g-brand);
	color: var(--g2g-on-brand);
}

.g2g-button--text {
	border-color: transparent;
	padding-inline: .4em;
	color: var(--g2g-brand);
	text-decoration: underline;
	text-underline-offset: .2em;
}

.g2g-button--light {
	background: var(--g2g-on-brand);
	border-color: var(--g2g-on-brand);
	color: var(--g2g-brand);
}

.g2g-button--light:hover,
.g2g-button--light:focus {
	background: transparent;
	color: var(--g2g-on-brand);
}

.g2g-button--outline-light {
	background: transparent;
	border-color: rgba(255, 255, 255, .7);
	color: var(--g2g-on-brand);
}

.g2g-button--outline-light:hover,
.g2g-button--outline-light:focus {
	background: var(--g2g-on-brand);
	color: var(--g2g-accent);
}

.g2g-button__ext {
	font-size: .9em;
}

.g2g-badge {
	display: inline-block;
	padding: .1em .55em;
	border-radius: 999px;
	background: var(--g2g-tint);
	color: var(--g2g-brand);
	font-size: .78rem;
	font-weight: 700;
}

.g2g-notice {
	padding: clamp(1.25rem, 3vw, 2rem);
	border-left: 4px solid var(--g2g-brand);
	border-radius: var(--g2g-radius);
	background: var(--g2g-light);
}

.g2g-notice p {
	margin: 0 0 1rem;
	font-size: 1.1rem;
}

/* ---------- Issue cards ---------- */

.g2g-issue-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr));
	gap: var(--g2g-gap);
}

.g2g-issue-card {
	display: block;
	color: inherit;
	text-decoration: none;
}

.g2g-issue-card__cover {
	display: block;
	aspect-ratio: 8.5 / 11;
	overflow: hidden;
	border-radius: 3px;
	background: var(--g2g-light);
	box-shadow: var(--g2g-shadow);
	transition: transform .2s, box-shadow .2s;
}

.g2g-issue-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.g2g-issue-card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	font-family: 'Roboto Slab', serif;
	font-size: 2rem;
	font-weight: 700;
	color: var(--g2g-brand);
}

.g2g-issue-card:hover .g2g-issue-card__cover,
.g2g-issue-card:focus-visible .g2g-issue-card__cover {
	transform: translateY(-4px);
	box-shadow: 0 2px 4px rgba(16, 36, 60, .1), 0 14px 32px rgba(16, 36, 60, .16);
}

.g2g-issue-card__title {
	margin: .75rem 0 0;
	font-size: 1rem;
	line-height: 1.3;
}

.g2g-issue-card:hover .g2g-issue-card__title {
	color: var(--g2g-brand);
}

@media (min-width: 922px) {
	.g2g-issue-grid--row {
		grid-template-columns: repeat(6, 1fr);
	}
}

/* ---------- Article cards ---------- */

.g2g-article-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
	gap: var(--g2g-gap);
}

.g2g-article-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--g2g-border);
	border-radius: var(--g2g-radius);
	background: var(--g2g-white);
	transition: box-shadow .2s;
}

.g2g-article-card:hover {
	box-shadow: var(--g2g-shadow);
}

.g2g-article-card__image {
	display: block;
	aspect-ratio: 16 / 10;
	/* Keeps the frame 16:10 for tall images too (a portrait cover would otherwise stretch it). */
	overflow: hidden;
	background: var(--g2g-light);
}

.g2g-article-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Astra's archive and search results set featured images to 16:9 without cropping, which squashes tall ones. */
.ast-article-post .post-thumb-img-content img {
	object-fit: cover;
}

/* Tall images (marked in functions.php) cropped from near the top, where the artwork's subject usually is. */
.g2g-article-card__image img.is-portrait,
.ast-article-post .post-thumb-img-content img.is-portrait {
	object-position: 50% 10%;
}

.g2g-article-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.1rem 1.25rem 1.25rem;
}

.g2g-article-card__title {
	margin: 0 0 .4rem;
	font-size: 1.15rem;
	line-height: 1.3;
}

.g2g-article-card__title a {
	color: var(--g2g-accent);
	text-decoration: none;
}

.g2g-article-card__title a:hover,
.g2g-article-card__title a:focus {
	color: var(--g2g-brand);
	text-decoration: underline;
}

.g2g-article-card__subtitle {
	margin: 0 0 .75rem;
	color: var(--g2g-text);
	font-size: .95rem;
	line-height: 1.45;
}

.g2g-article-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin: auto 0 0;
	padding-top: .5rem;
	color: var(--g2g-muted);
	font-size: .875rem;
}

/* ---------- Single issue ---------- */

/* Astra pads single articles; issue pages handle their own spacing. */
body #primary article.g2g-issue {
	padding: 0;
	margin: 0;
	background: none;
}

.home #primary,
.single-issue #primary,
.post-type-archive-issue #primary {
	margin-top: clamp(1.25rem, 3vw, 2.5rem);
}

.g2g-issue__hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--g2g-gap);
	align-items: center;
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: var(--g2g-radius);
	background: var(--g2g-light);
}

@media (min-width: 768px) {
	.g2g-issue__hero {
		grid-template-columns: minmax(220px, 340px) 1fr;
	}
}

.g2g-issue__cover img {
	display: block;
	width: 100%;
	max-width: 340px;
	height: auto;
	margin-inline: auto;
	border-radius: 3px;
	box-shadow: var(--g2g-shadow);
}

.g2g-issue__title {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.2rem);
	line-height: 1.1;
}

.g2g-issue__volume {
	margin: .5rem 0 0;
	color: var(--g2g-muted);
}

.g2g-issue__summary {
	margin-top: 1rem;
}

.g2g-flipbook iframe {
	max-width: 100%;
	border: 0;
}

.g2g-issue-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 1rem;
	align-items: center;
	margin-top: var(--g2g-section);
	padding: 1.25rem 0;
	border-top: 1px solid var(--g2g-border);
	border-bottom: 1px solid var(--g2g-border);
	font-weight: 600;
}

.g2g-issue-nav a {
	text-decoration: none;
}

.g2g-issue-nav__next {
	text-align: right;
}

@media (max-width: 600px) {
	.g2g-issue-nav {
		grid-template-columns: 1fr 1fr;
	}

	.g2g-issue-nav__all {
		grid-column: 1 / -1;
		grid-row: 2;
		text-align: center;
	}
}

/* ---------- Back issues ---------- */

.g2g-page-header {
	max-width: 46rem;
}

.g2g-page-header h1 {
	margin: 0 0 .5rem;
	font-size: clamp(2rem, 5vw, 3rem);
}

.g2g-year-nav {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 1.5rem;
}

.g2g-year-nav a {
	padding: .35em .8em;
	border: 1px solid var(--g2g-border);
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
}

.g2g-year-nav a:hover,
.g2g-year-nav a:focus {
	background: var(--g2g-brand);
	border-color: var(--g2g-brand);
	color: var(--g2g-on-brand);
}

.g2g-year {
	scroll-margin-top: 2rem;
}

.g2g-year .g2g-section__title {
	font-size: 1.5rem;
}

/* ---------- Home ---------- */

.g2g-home-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
	padding: clamp(1.5rem, 5vw, 3.5rem);
	border-radius: var(--g2g-radius);
	background:
		radial-gradient(circle at 15% 15%, rgba(30, 115, 190, .08), transparent 45%),
		var(--g2g-light);
}

/* Cover first: on the left from tablet up, above the headline on phones. */
.g2g-home-hero__cover {
	order: -1;
}

@media (min-width: 768px) {
	.g2g-home-hero {
		grid-template-columns: minmax(240px, 400px) 1fr;
	}
}

/* The current cover, tilted, straightening and lifting on hover (from the old G2G home page). */
.g2g-tilt-cover {
	display: block;
	padding: 1rem;
}

.g2g-home-hero__cover img {
	display: block;
	width: 100%;
	max-width: 400px;
	height: auto;
	margin-inline: auto;
	border-radius: 3px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
	transform: rotate(-6deg);
	transform-origin: center;
	transition: transform .4s cubic-bezier(.25, 1, .5, 1), box-shadow .4s;
}

.g2g-home-hero__cover:hover img,
.g2g-home-hero__cover:focus-visible img {
	transform: rotate(0deg) scale(1.06);
	box-shadow: 0 15px 35px rgba(0, 0, 0, .25);
}

@media (max-width: 767px) {
	.g2g-home-hero__cover img {
		max-width: 260px;
		transform: rotate(-3deg);
	}

	.g2g-home-hero__cover:hover img {
		transform: rotate(0deg) scale(1.03);
	}
}

/*
 * Linked images in a block with the "shows-n-sites" class (the expo, podcast
 * and certification promos): lift on hover like the issue covers. A drop
 * shadow, not a box shadow, so transparent logos get a shadow in their shape.
 */
.shows-n-sites .wp-block-image a img {
	transition: transform .2s, filter .2s;
}

.shows-n-sites .wp-block-image a:hover img,
.shows-n-sites .wp-block-image a:focus-visible img {
	transform: translateY(-4px);
	filter: drop-shadow(0 10px 14px rgba(16, 36, 60, .18));
}

.g2g-home-hero__title {
	margin: 0;
	font-size: clamp(2.1rem, 5.5vw, 3.6rem);
	line-height: 1.05;
}

.g2g-home-hero__lede {
	margin: 1rem 0 0;
	max-width: 34rem;
	font-size: 1.15rem;
	color: var(--g2g-text);
}

/* This issue's summary, from Vertiqul's landing page or written here (the issue's Excerpt). */
.g2g-home-hero__summary,
.g2g-issue__lede {
	margin: 1.25rem 0 0;
	padding-left: 1rem;
	max-width: 36rem;
	border-left: 3px solid var(--g2g-brand);
	color: var(--g2g-accent);
	font-size: 1.05rem;
	line-height: 1.55;
}

.g2g-promo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
	gap: var(--g2g-gap);
}

.g2g-promo {
	display: flex;
	flex-direction: column;
	padding: 1.25rem;
	border: 1px solid var(--g2g-border);
	border-radius: var(--g2g-radius);
	background: var(--g2g-white);
}

.g2g-promo figure {
	display: grid;
	place-items: center;
	height: 110px;
	margin: 0 0 1rem;
}

.g2g-promo figure a {
	display: contents;
}

.g2g-promo img {
	max-height: 110px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.g2g-promo p {
	margin: 0;
	font-size: .95rem;
	line-height: 1.45;
}

.g2g-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.g2g-chip {
	display: inline-block;
	padding: .55em 1.1em;
	border-radius: 999px;
	background: var(--g2g-tint);
	color: var(--g2g-brand);
	font-weight: 700;
	text-decoration: none;
}

.g2g-chip:hover,
.g2g-chip:focus {
	background: var(--g2g-brand);
	color: var(--g2g-on-brand);
}

/* ---------- Subscribe band ---------- */

.g2g-cta-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: var(--g2g-section);
	padding: clamp(1.5rem, 4vw, 2.75rem);
	border-radius: var(--g2g-radius);
	/* Fixed navy to blue, so it stays the same in dark mode. */
	background: linear-gradient(120deg, #10243c, #155a96);
	color: var(--g2g-on-brand);
}

/* Home page: Astra drops the content's 60px bottom margin on tablets and phones, which left the band on the
   footer line. (Issue and archive pages keep enough space of their own.) */
@media (max-width: 921px) {
	.home .g2g-cta-band {
		margin-bottom: var(--g2g-section);
	}
}

.g2g-cta-band h2 {
	margin: 0 0 .35rem;
	color: var(--g2g-on-brand);
	font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.g2g-cta-band p {
	margin: 0;
	max-width: 36rem;
	opacity: .9;
}

.g2g-cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

/* ---------- Single article ---------- */

.g2g-subtitle {
	margin: .5rem 0 0;
	font-size: clamp(1.1rem, 2.2vw, 1.35rem);
	line-height: 1.4;
	color: var(--g2g-text);
}

.single-post .entry-meta .g2g-meta-byline {
	color: var(--g2g-accent);
	font-weight: 600;
}

/* Pull quotes, e.g. in articles brought over from Vertiqul: a rule above and below, not a boxed card. */
.single-post .entry-content .wp-block-pullquote {
	margin: 2rem 0;
	padding: 1.5rem 0;
	border-top: 3px solid var(--g2g-brand);
	border-bottom: 1px solid var(--g2g-border);
	background: none;
	box-shadow: none;
	text-align: left;
}

.single-post .entry-content .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.single-post .entry-content .wp-block-pullquote blockquote::before {
	content: none;
}

.single-post .entry-content .wp-block-pullquote p {
	margin: 0;
	font-size: clamp(1.2rem, 2.4vw, 1.45rem);
	font-style: normal;
	line-height: 1.45;
	color: var(--g2g-accent);
}

.single-post .entry-content .wp-block-pullquote cite {
	display: block;
	margin-top: .75rem;
	font-size: .9rem;
	font-style: normal;
	color: var(--g2g-muted);
}

.g2g-article-footer {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--g2g-border);
}

.g2g-article-footer__contributors {
	margin: 0 0 1.25rem;
	font-weight: 600;
}

.g2g-issue-callout {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 1rem 1.25rem;
	border-radius: var(--g2g-radius);
	background: var(--g2g-light);
	color: inherit;
	text-decoration: none;
}

.g2g-issue-callout__cover img {
	display: block;
	width: 72px;
	height: auto;
	border-radius: 2px;
	box-shadow: var(--g2g-shadow);
}

.g2g-issue-callout__text {
	display: flex;
	flex-direction: column;
	gap: .15rem;
}

.g2g-issue-callout__text .g2g-eyebrow {
	margin: 0;
}

.g2g-issue-callout strong {
	color: var(--g2g-accent);
	font-size: 1.15rem;
}

.g2g-issue-callout__more {
	color: var(--g2g-brand);
	font-weight: 600;
}

.g2g-issue-callout:hover strong {
	color: var(--g2g-brand);
}

/* ---------- Page content ---------- */

/* Astra insets top-level Columns blocks by ~48px; without a background that only pushes them out of line with the text. */
.entry-content > .wp-block-columns:not(.has-background) {
	padding: 1.5rem 0;
}

/* Astra drops the space above full-width pages below 922px, so titles touch the header on tablets and phones. */
@media (max-width: 921px) {
	.ast-plain-container.ast-no-sidebar #primary {
		margin-top: clamp(1.25rem, 3vw, 2.5rem);
	}
}

/* Search block: Astra's button padding makes the button taller than the field; size both to the field. */
.wp-block-search .wp-block-search__inside-wrapper {
	align-items: stretch;
}

.wp-block-search .wp-block-search__inside-wrapper .wp-block-search__input {
	height: auto;
	margin: 0;
}

.wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 0;
	padding-bottom: 0;
}

/*
 * Show a block only on desktop or only on phones: add "g2g-only-desktop" or
 * "g2g-only-mobile" under the block's Advanced > Additional CSS class(es).
 * The switch is at the same width where Columns blocks stack.
 */
.g2g-only-mobile {
	display: none;
}

@media (max-width: 781px) {
	.g2g-only-desktop {
		display: none !important;
	}

	.g2g-only-mobile {
		display: block;
	}
}


/* ---------- About page (classes set on blocks in the page editor) ---------- */

.g2g-lede {
	max-width: 46rem;
	font-size: clamp(1.1rem, 2vw, 1.3rem);
	line-height: 1.55;
	color: var(--g2g-accent);
}

.g2g-staff {
	gap: 1.5rem 2rem;
}

.g2g-staff-member p {
	margin: 0;
}

.g2g-staff-member .g2g-eyebrow {
	margin-bottom: .25rem;
	letter-spacing: .06em;
}

.g2g-contact-card {
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border-radius: var(--g2g-radius);
	background: var(--g2g-light);
}

.g2g-contact-card h2 {
	margin-top: 0;
}

.g2g-contact-card h3 {
	margin: 1.25rem 0 .25rem;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--g2g-brand);
}

.g2g-contact-card p {
	margin: 0;
}

/* ---------- Forms (Forminator, Design Style: None) ---------- */

/*
 * With its Design Style set to None, Forminator adds only its grid, so the
 * fields are styled here from the palette and follow dark mode.
 */
.forminator-ui[data-design="none"] {
	--g2g-field-pad: .7rem .85rem;
	max-width: 46rem;
	color: var(--g2g-text);
}

/* In dark mode, the browser's own controls (checkboxes, dropdowns) are drawn dark too. */
.astra-dark-mode-enable {
	color-scheme: dark;
}

.forminator-ui[data-design="none"] .forminator-label {
	display: block;
	margin-bottom: .4rem;
	font-weight: 600;
	color: var(--g2g-accent);
}

.forminator-ui[data-design="none"] .forminator-required {
	color: var(--g2g-brand);
}

.forminator-ui[data-design="none"] .forminator-input,
.forminator-ui[data-design="none"] select,
.forminator-ui[data-design="none"] textarea {
	width: 100%;
	padding: var(--g2g-field-pad);
	border: 1px solid var(--g2g-border);
	border-radius: var(--g2g-radius);
	background: var(--g2g-white);
	color: var(--g2g-text);
	font: inherit;
	line-height: 1.4;
	box-shadow: none;
}

.forminator-ui[data-design="none"] .forminator-input:focus,
.forminator-ui[data-design="none"] select:focus,
.forminator-ui[data-design="none"] textarea:focus {
	border-color: var(--g2g-brand);
	outline: 2px solid var(--g2g-tint);
	outline-offset: 0;
}

/* Radio buttons and checkboxes: the browser's own controls in the accent color, in columns. */
.forminator-ui[data-design="none"] [role="radiogroup"],
.forminator-ui[data-design="none"] [role="group"] {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: .5rem 1.5rem;
}

.forminator-ui[data-design="none"] [role="radiogroup"] > .forminator-label,
.forminator-ui[data-design="none"] [role="group"] > .forminator-label,
.forminator-ui[data-design="none"] .forminator-custom-input {
	grid-column: 1 / -1;
	margin-bottom: 0;
}

.forminator-ui[data-design="none"] .forminator-radio,
.forminator-ui[data-design="none"] .forminator-checkbox {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	margin: 0;
	line-height: 1.4;
	cursor: pointer;
}

.forminator-ui[data-design="none"] .forminator-radio input,
.forminator-ui[data-design="none"] .forminator-checkbox input {
	flex: none;
	width: 1.1rem;
	height: 1.1rem;
	margin: .1rem 0 0;
	accent-color: var(--g2g-brand);
}

.forminator-ui[data-design="none"] .forminator-radio-bullet,
.forminator-ui[data-design="none"] .forminator-checkbox-box {
	display: none;
}

/* The section between groups of questions. */
.forminator-ui[data-design="none"] .forminator-field-radio,
.forminator-ui[data-design="none"] .forminator-field-checkbox {
	padding-top: 1.25rem;
	border-top: 1px solid var(--g2g-border);
}

.forminator-ui[data-design="none"] .forminator-button-submit {
	margin-top: .5rem;
	padding: .8rem 2rem;
	border-radius: var(--g2g-radius);
}

/* Validation and the message after sending. */
.forminator-ui[data-design="none"] .forminator-error-message {
	display: block;
	margin-top: .35rem;
	font-size: .9rem;
	color: var(--g2g-brand);
}

.forminator-ui[data-design="none"] .forminator-has_error .forminator-input {
	border-color: var(--g2g-brand);
}

.forminator-ui[data-design="none"] .forminator-response-message:not(:empty) {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--g2g-brand);
	border-radius: var(--g2g-radius);
	background: var(--g2g-tint);
	color: var(--g2g-text);
}

.forminator-ui[data-design="none"] .forminator-response-message.forminator-success:not(:empty) {
	border-left-color: var(--g2g-accent);
	background: var(--g2g-light);
}

/*
 * Forminator's searchable dropdowns (the Subscribe form's Country) are drawn
 * by its Select2 script, with their own grey square box. Styled like Astra's
 * text fields beside them: same height, border, corners, padding and colours,
 * in light and dark mode. !important because Forminator writes these per form
 * under the form's ID (#forminator-module-72544), which a class can't outrank.
 */
.forminator-ui .forminator-select .selection .select2-selection--single[role="combobox"] {
	display: flex !important;
	align-items: center;
	height: 40px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--ast-global-color-7) !important;
	border-radius: 4px !important;
	background: var(--ast-global-color-5) !important;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
}

.forminator-ui .forminator-select .selection .select2-selection--single[role="combobox"] .select2-selection__rendered {
	padding: 0 8px 0 16px !important;
	line-height: 38px !important;
	color: var(--ast-form-input-text, #475569) !important;
}

.forminator-ui .forminator-select .selection .select2-selection--single[role="combobox"] .select2-selection__arrow {
	margin-right: 12px;
	color: var(--ast-form-input-text, #475569) !important;
}

/* "Select country": the same grey as the other fields' placeholders. */
.forminator-ui .forminator-select .selection .select2-selection--single[role="combobox"] .select2-selection__placeholder {
	color: #9ca3af !important;
}

/* The row under the mouse or arrow keys: a light blue tint (Forminator's is a fixed light grey that
   white dark-mode text disappears on). The chosen country keeps a solid blue. */
.forminator-select-dropdown-container--open .forminator-select-dropdown .select2-results__option.select2-results__option--highlighted:not(.select2-results__option--selected) {
	background: rgba(30, 115, 190, .12) !important;
	color: var(--ast-form-input-text, #475569) !important;
}

.astra-dark-mode-enable .forminator-select-dropdown-container--open .forminator-select-dropdown .select2-results__option.select2-results__option--highlighted:not(.select2-results__option--selected) {
	background: rgba(30, 115, 190, .35) !important;
	color: var(--ast-global-color-2) !important;
}

.forminator-select-dropdown-container--open .forminator-select-dropdown .select2-results__option.select2-results__option--selected {
	background: var(--ast-global-color-0) !important;
	color: #fff !important;
}

/* Dark mode: Astra's text fields switch to palette colour 2 (via the body class its switcher adds). */
.astra-dark-mode-enable .forminator-ui .forminator-select .selection .select2-selection--single[role="combobox"] .select2-selection__rendered,
.astra-dark-mode-enable .forminator-ui .forminator-select .selection .select2-selection--single[role="combobox"] .select2-selection__arrow,
.astra-dark-mode-enable .forminator-select-dropdown-container--open .forminator-select-dropdown .select2-results__option,
.astra-dark-mode-enable .forminator-select-dropdown-container--open .forminator-select-dropdown .select2-search input {
	color: var(--ast-global-color-2) !important;
}

.forminator-ui .forminator-select.select2-container--open .selection .select2-selection--single[role="combobox"],
.forminator-ui .forminator-select.select2-container--focus .selection .select2-selection--single[role="combobox"] {
	border-color: var(--ast-global-color-0) !important;
}

/* The open list, which Select2 adds at the end of the page. */
.forminator-select-dropdown-container--open .forminator-select-dropdown {
	border: 1px solid var(--ast-global-color-7) !important;
	border-radius: 4px !important;
	background: var(--ast-global-color-5) !important;
}

.forminator-select-dropdown-container--open .forminator-select-dropdown .select2-results__option {
	color: var(--ast-form-input-text, #475569) !important;
}

.forminator-select-dropdown-container--open .forminator-select-dropdown .select2-search input {
	border: 1px solid var(--ast-global-color-7) !important;
	border-radius: 4px !important;
	background: var(--ast-global-color-5) !important;
	color: var(--ast-form-input-text, #475569) !important;
}

/* ---------- Search boxes (GroomerTV archive, slide-out menu) ---------- */

.g2g-archive-search {
	max-width: 46rem;
	margin: 1.5rem auto 2.5rem;
}

/* Slide-out menu: the search box under the links, on the menu's background. */
.ast-mobile-header-content .header-widget-area {
	padding: .75rem 20px 1.25rem;
	background: var(--ast-global-color-4);
}

.g2g-archive-search .wp-block-search__input,
.g2g-menu-search .wp-block-search__input {
	background: var(--ast-global-color-5);
	color: var(--g2g-text);
	border-color: var(--g2g-border);
}

.g2g-archive-search .wp-block-search__button,
.g2g-menu-search .wp-block-search__button {
	background: var(--g2g-brand);
	color: var(--g2g-on-brand);
}

/* ---------- Calendar of Events ([g2g_events]) ---------- */

/* .entry-content too: Astra indents lists in page content, which pushed the grid in from its heading. */
.g2g-events,
.entry-content ul.g2g-events {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 921px) {
	.g2g-events,
	.entry-content ul.g2g-events {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 544px) {
	.g2g-events,
	.entry-content ul.g2g-events {
		grid-template-columns: minmax(0, 1fr);
	}
}

.g2g-event {
	margin: 0;
	padding: 1.25rem 1rem;
	border-radius: var(--g2g-radius);
	background: var(--g2g-light);
	text-align: center;
}

.g2g-event__title {
	margin: 0 0 .5rem;
	font-size: 1.15rem;
	line-height: 1.3;
}

.g2g-events .g2g-event__title a {
	color: var(--g2g-brand);
	text-decoration: none;
}

.g2g-events .g2g-event__title a:hover,
.g2g-events .g2g-event__title a:focus {
	color: var(--g2g-accent);
	text-decoration: underline;
}

.g2g-event__when {
	margin: 0;
	font-size: .95rem;
	color: var(--g2g-text);
}

/* The Home page's own content (Upcoming Shows, Calendar of Events). */
.g2g-home__content > .wp-block-columns {
	gap: var(--g2g-gap);
}

.g2g-home__content .wp-block-image img {
	border-radius: var(--g2g-radius);
}

/* ---------- Dark mode switch ---------- */

/*
 * Astra Pro's color switcher, drawn as the old site's sun/moon toggle (WP Night
 * Mode's style 2): a yellow sun on the left; in dark mode a white-edged track
 * with a crescent moon. Astra marks the second icon .ast-current when dark.
 */
.g2g-footer-switcher .ast-color-switcher-wrapper,
.g2g-footer-switcher .ast-builder-color-switcher {
	display: inline-flex;
	vertical-align: middle;
}

.ast-builder-color-switcher .ast-switcher-button,
.ast-builder-color-switcher .ast-switcher-button:hover,
.ast-builder-color-switcher .ast-switcher-button:focus {
	position: relative;
	box-sizing: content-box;
	width: 2.5em;
	height: 1.5em;
	padding: 0;
	font-size: 18px;
	border: .125em solid #ffb200;
	border-radius: 1em;
	background: rgba(255, 255, 255, .15);
	cursor: pointer;
	transition: background .4s ease-in-out, border-color .4s ease-in-out;
}

/*
 * The switch is shown in the footer only, as on the old site. It stays in the
 * header builder, hidden, because Astra loads the switcher's script only when
 * the header has one.
 */
.site-header .ast-header-color-switcher-element {
	display: none !important;
}

.ast-builder-color-switcher .ast-switcher-button:focus-visible {
	outline: 3px solid var(--g2g-brand);
	outline-offset: 2px;
}

/* Astra's own icons; Astra's rule for them would otherwise win. */
.ast-builder-color-switcher .ast-switcher-button .ast-switcher-icon {
	display: none !important;
}

/* The sun; in dark mode its offset shadow becomes the moon. */
.ast-builder-color-switcher .ast-switcher-button::before {
	content: "";
	position: absolute;
	top: .25em;
	left: .25em;
	width: 1em;
	height: 1em;
	border-radius: 50%;
	background: #ffb200;
	box-shadow: 0 0 .625em #fff;
	transform: rotate(-45deg);
	transition: .4s ease-in-out;
}

.ast-builder-color-switcher .ast-switcher-button:has(.ast-switcher-icon:last-child.ast-current) {
	border-color: #fff;
	background: rgba(0, 0, 0, .15);
}

.ast-builder-color-switcher .ast-switcher-button:has(.ast-switcher-icon:last-child.ast-current)::before {
	left: .6em;
	background: transparent;
	box-shadow: .3125em .3125em 0 0 #eee;
}

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

/* Laid out like the old site: More links and the switch, Barkleigh Shows in two columns, then search and contact. */
#colophon .site-primary-footer-wrap {
	border-top: 3px solid #eee;
	background: var(--ast-global-color-5);
}

@media (max-width: 921px) {
	#colophon .site-primary-footer-wrap {
		padding-inline: 20px;
	}
}

#colophon .widget-title {
	margin-bottom: .75em;
	font-size: 1.3rem;
	font-weight: 400;
	color: var(--ast-global-color-2);
}

#colophon .widget ul.menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

#colophon .widget ul.menu li {
	margin: 0;
	padding: 0;
	line-height: 1.65;
}

#colophon .widget a,
#colophon .ast-footer-copyright a {
	color: var(--g2g-text);
	font-size: .95rem;
	text-decoration: none;
}

#colophon .widget a:hover,
#colophon .widget a:focus,
#colophon .ast-footer-copyright a:hover,
#colophon .ast-footer-copyright a:focus {
	color: var(--g2g-brand);
}

@media (min-width: 768px) {
	#colophon [data-section="sidebar-widgets-footer-widget-2"] ul.menu {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 2rem;
	}
}

#colophon .wp-block-search__input {
	background: var(--ast-global-color-5);
	color: var(--g2g-text);
	border-color: var(--g2g-border);
}

#colophon .ast-footer-copyright {
	width: 100%;
	color: var(--g2g-text);
	font-size: .95rem;
	text-align: left;
}

.g2g-social {
	display: flex;
	gap: .75rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.g2g-social a {
	display: block;
	color: var(--ast-global-color-2);
}

.g2g-social a:hover,
.g2g-social a:focus {
	color: var(--g2g-brand);
}

.g2g-social svg {
	display: block;
	width: 36px;
	height: 36px;
	fill: currentColor;
}

/* ---------- Header ---------- */

/* Header Button (Subscribe): colors and text are set in the Customizer; this only keeps it on one line on phones. */
.ast-header-button-1 .ast-custom-button {
	white-space: nowrap;
}

@media (max-width: 544px) {
	.ast-header-button-1 .ast-custom-button {
		padding: .55em .9em;
	}
}

/* Small phones: logo, Subscribe and the menu toggle all need to fit. */
@media (max-width: 400px) {
	#ast-mobile-header .site-logo-img img,
	#ast-mobile-header .site-logo-img #gtg-logo {
		max-width: 140px;
	}

	.ast-header-button-1 .ast-custom-button {
		padding: .5em .7em;
		font-size: 13px;
	}

	#ast-mobile-header .site-header-primary-section-right {
		gap: .25rem;
	}
}

/*
 * The logo (an inline SVG, see functions.php) cycles through the brand
 * colors. The SVG file's own fill (#1e73be) matches the first keyframe, so
 * there's no flash before the animation starts. For a holiday version, swap
 * the colors here (old sets: Halloween #F4831B #902EBB #63C328 #EEEB27;
 * Thanksgiving #C1311C #EBBA38 #623004 #BDB850; winter #48B8BE #233E6B #E63982 #4E1891).
 */
.site-logo-img #gtg-logo {
	display: block;
	width: 260px;
	max-width: 100%;
	height: auto;
}

.site-logo-img #gtg-logo,
.site-logo-img #gtg-logo * {
	fill: currentColor;
	animation: g2g-logo-colour 40s linear infinite;
	transition: none !important;
}

@keyframes g2g-logo-colour {
	0% { fill: #1e73be; }
	25% { fill: #de3e35; }
	50% { fill: #f7c233; }
	75% { fill: #1b9a59; }
	100% { fill: #1e73be; }
}

/* ---------- Contributors ---------- */

.g2g-article-column {
	margin-bottom: .75rem;
}

.g2g-article-column a {
	color: inherit;
	text-decoration: none;
}

.g2g-article-footer__authors {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--g2g-border);
}

.g2g-article-footer__title {
	margin: 0 0 1rem;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--g2g-brand);
}

.g2g-contributor {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	margin-bottom: 1.5rem;
}

.g2g-contributor__photo img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid var(--g2g-border);
}

.g2g-contributor__name {
	margin: 0 0 .35rem;
	font-size: 1.2rem;
}

.g2g-contributor__name a {
	text-decoration: none;
}

.g2g-contributor__bio p {
	margin: 0 0 .6rem;
}

.g2g-contributor__links {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem 1.25rem;
	margin: 0;
	font-weight: 600;
	font-size: .95rem;
}

.g2g-contributor__links a {
	text-decoration: none;
}

@media (max-width: 544px) {
	.g2g-contributor {
		flex-direction: column;
		gap: .75rem;
	}
}

/* A contributor's own page: photo beside the bio. */
.g2g-contributor-archive__photo {
	float: left;
	width: 120px;
	height: 120px;
	margin: 0 1.25rem .75rem 0;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid var(--g2g-border);
}

.ast-archive-description::after {
	content: "";
	display: table;
	clear: both;
}

/* ---------- Old articles ---------- */

/* Responsive Issuu flipbooks in old ebook embeds. */
.g2g-flipbook iframe[src*="issuu.com"] {
	width: 100% !important;
	min-height: 500px;
}

/* Floated images in pre-block articles. */
.entry-content .alignright {
	margin-left: 1.5em;
}

.entry-content .alignleft {
	margin-right: 1.5em;
}

@media (prefers-reduced-motion: reduce) {
	.site-logo-img #gtg-logo,
	.site-logo-img #gtg-logo * {
		animation: none;
	}

	.g2g-issue-card__cover,
	.g2g-home-hero__cover img,
	.shows-n-sites .wp-block-image a img,
	.g2g-button {
		transition: none;
	}

	.g2g-home-hero__cover img,
	.shows-n-sites .wp-block-image a:hover img {
		transform: none;
	}
}
