/*
Theme Name: Golden Gate Events
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: golden-gate-events
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

:root {
	--gg-navy: var(--wp--preset--color--background);
	--gg-cream: var(--wp--preset--color--text);
	--gg-gold: var(--wp--preset--color--primary);
	--gg-panel: var(--wp--preset--color--panel);
	--gg-muted: var(--wp--preset--color--muted);
	--gg-rule: var(--wp--preset--color--rule);
	--gg-paper: var(--wp--preset--color--paper);
	--gg-ink: var(--wp--preset--color--ink);
	--gg-slate: var(--wp--preset--color--slate);
	--gg-white: var(--wp--preset--color--white);
	--gg-line: color-mix(in srgb, var(--gg-ink) 19%, transparent);
}

/* Shared layout */
.gg-header,
.gg-facts,
.gg-light,
.gg-resources,
.gg-exhibit,
.gg-footer {
	margin-block-start: 0 !important;
}

.wp-site-blocks main:not(.is-flush) {
	padding-block: var(--wp--preset--spacing--xl);
}

.gg-header {
	background: var(--gg-navy);
	border-bottom: 1px solid var(--gg-rule);
}

.gg-header-inner {
	min-height: 78px;
	gap: 1rem 2rem;
}

.gg-brand {
	gap: 0.7rem;
}

.gg-brand-mark img {
	display: block;
	width: 46px;
	height: 32px;
	object-fit: cover;
	object-position: left center;
}

.gg-brand-name {
	color: var(--gg-cream);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.gg-brand-name a,
.gg-nav a,
.gg-footer a {
	color: inherit;
}

.gg-brand-caption {
	display: block;
	margin-top: 0.24rem;
	color: var(--gg-muted);
	font-size: 0.72rem;
	font-weight: 400;
	letter-spacing: 0.025em;
}

.gg-nav,
.gg-footer-links {
	gap: 0.15rem 1.5rem;
	color: var(--gg-muted);
	font-size: 0.9rem;
	font-weight: 600;
}

.gg-nav a,
.gg-footer a {
	display: inline-block;
	padding-block: 0.3rem;
}

.gg-nav-register a {
	color: var(--gg-gold);
}

.gg-footer {
	padding-block: 1.8rem;
	border-top: 1px solid var(--gg-rule);
	color: var(--gg-muted);
	font-size: 0.87rem;
}

.gg-footer-inner {
	gap: 0.8rem 2rem;
}

.gg-footer-name {
	color: var(--gg-cream);
	font-weight: 700;
}

.gg-kicker {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: 0.13em;
	line-height: 1.45;
	text-transform: uppercase;
}

.gg-gold,
.gg-kicker-on-dark {
	color: var(--gg-gold);
}

.gg-buttons {
	gap: 0.65rem;
}

.gg-buttons .wp-element-button {
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.gg-buttons .is-style-outline .wp-element-button {
	padding: 12px 20px;
	border: 1px solid currentColor;
	color: var(--gg-cream);
}

.gg-buttons .is-style-outline .wp-element-button:hover {
	background-color: var(--gg-cream);
	color: var(--gg-ink);
}

:where(.wp-site-blocks, .editor-styles-wrapper) a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 5px;
}

/* Featured event */
.gg-hero.wp-block-cover {
	min-height: clamp(520px, 70vh, 720px);
	padding-inline: var(--wp--style--root--padding-left);
	background-color: var(--gg-navy);
}

.gg-hero .wp-block-cover__image-background {
	object-position: 70% center;
	filter: contrast(1.05) saturate(0.9);
}

.gg-hero.wp-block-cover > span.wp-block-cover__background.has-background-dim {
	opacity: 1 !important;
	background-color: transparent;
	background-image: linear-gradient(
		90deg,
		var(--gg-navy) 1%,
		color-mix(in srgb, var(--gg-navy) 95%, transparent) 32%,
		color-mix(in srgb, var(--gg-navy) 69%, transparent) 54%,
		color-mix(in srgb, var(--gg-navy) 13%, transparent) 100%
	);
}

.gg-hero .wp-block-cover__inner-container {
	color: var(--gg-cream);
}

.gg-hero-copy {
	width: min(100%, 42rem);
	padding-block: clamp(2.65rem, 6vw, 5.5rem);
}

.gg-hero-title {
	margin-block-start: 1rem !important;
	font-size: clamp(3.35rem, 7.35vw, 7.6rem);
	line-height: 0.93;
	letter-spacing: -0.065em;
}

.gg-hero-title strong {
	color: var(--gg-gold);
	font-weight: inherit;
}

.gg-hero-description {
	max-width: 32rem;
	color: var(--gg-muted);
	font-size: clamp(1rem, 2vw, 1.2rem);
	line-height: 1.5;
}

.gg-hero .gg-buttons {
	margin-block-start: 1.65rem !important;
}

.gg-featured-brand.wp-block-group {
	width: min(100%, 23rem);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1px;
	overflow: hidden;
	border: 1px solid var(--gg-rule);
	border-radius: var(--wp--custom--rounded--sm);
	background: var(--gg-rule);
}

.gg-featured-brand .wp-block-image {
	min-width: 0;
	margin: 0;
	border-block-start: 4px solid var(--gg-gold);
	background: var(--gg-white);
	color: var(--gg-ink);
}

.gg-featured-brand .gg-brand-plate-sonex {
	border-color: var(--wp--preset--color--sonex-green);
	background: var(--wp--preset--color--sonex-paper);
	color: var(--wp--preset--color--sonex-green);
}

.gg-featured-brand a {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	place-items: center;
	min-height: 7.35rem;
	overflow: hidden;
	color: inherit;
}

.gg-featured-brand a:focus-visible {
	outline-offset: -5px;
}

.gg-featured-brand img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.gg-brand-plate-jimex img {
	width: 108%;
	max-width: none;
}

@media (max-width: 781px) {
	.gg-hero.wp-block-cover {
		min-height: clamp(490px, 65vh, 620px);
	}

	.gg-hero .wp-block-cover__image-background {
		object-position: 77% center;
	}

	.gg-hero.wp-block-cover > span.wp-block-cover__background.has-background-dim {
		background-image: linear-gradient(90deg, var(--gg-navy), color-mix(in srgb, var(--gg-navy) 77%, transparent) 62%, color-mix(in srgb, var(--gg-navy) 33%, transparent));
	}
}

@media (max-width: 535px) {
	.gg-featured-brand.wp-block-group {
		width: min(100%, 19rem);
	}

	.gg-featured-brand a {
		min-height: 6.2rem;
	}

	.gg-hero-title {
		font-size: clamp(2.95rem, 11.6vw, 4.5rem);
	}
}

.gg-facts {
	padding-block: clamp(1.05rem, 2.75vw, 1.9rem);
	background: var(--gg-panel);
	border-block-start: 1px solid var(--gg-rule);
}

.gg-facts-inner.wp-block-group {
	gap: clamp(0.62rem, 1.55vw, 1rem);
}

.is-style-gg-event-fact {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-content: center;
	align-items: center;
	column-gap: clamp(0.55rem, 1.5vw, 0.95rem);
	row-gap: 0.22rem;
	min-width: 0;
	padding: clamp(0.7rem, 1.55vw, 1rem);
	border: 1px solid var(--gg-rule);
	border-radius: var(--wp--custom--rounded--md);
	background: color-mix(in srgb, var(--gg-navy) 52%, var(--gg-panel));
}

.gg-fact-dates {
	--gg-icon: "\f508";
	border-color: color-mix(in srgb, var(--gg-gold) 48%, var(--gg-rule));
}

.gg-fact-venue {
	--gg-icon: "\f231";
}

.gg-fact-admission {
	--gg-icon: "\f524";
}

.gg-resource-exhibitors {
	--gg-icon: "\f307";
}

.gg-resource-sponsors {
	--gg-icon: "\f313";
}

.gg-resource-forum {
	--gg-icon: "\f125";
}

.is-style-gg-event-fact::before,
.gg-resource-card h3::before {
	content: var(--gg-icon) / "";
	display: grid;
	place-items: center;
	flex: none;
	border-radius: var(--wp--custom--rounded--sm);
	background: color-mix(in srgb, var(--gg-gold) 12%, var(--gg-navy));
	color: var(--gg-gold);
	font: normal 1.18rem/1 dashicons;
}

.is-style-gg-event-fact::before {
	grid-row: 1 / span 2;
	width: clamp(2.1rem, 4.2vw, 3rem);
	aspect-ratio: 1;
	border: 1px solid color-mix(in srgb, var(--gg-gold) 22%, var(--gg-rule));
}

.is-style-gg-event-fact p {
	grid-column: 2;
	margin: 0 !important;
}

.is-style-gg-event-fact .gg-kicker {
	color: var(--gg-muted);
	font-size: 0.7rem;
}

.gg-fact-value {
	color: var(--gg-cream);
	font-size: clamp(1rem, 1.7vw, 1.25rem);
	font-weight: 700;
	letter-spacing: -0.022em;
	line-height: 1.22;
}

.gg-fact-dates .gg-fact-value strong {
	color: var(--gg-gold);
	font-size: clamp(1.25rem, 2.63vw, 1.92rem);
	line-height: 1;
	white-space: nowrap;
}

.gg-fact-value a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--gg-cream) 24%, transparent);
	text-underline-offset: 0.2em;
}

.gg-fact-value a:hover {
	color: var(--gg-gold);
}

.gg-fact-admission strong {
	color: var(--gg-gold);
}

@media (max-width: 630px) {
	.gg-facts-inner.wp-block-group {
		grid-template-columns: minmax(0, 1fr);
	}

	.is-style-gg-event-fact::before {
		width: 2.5rem;
	}
}

/* Calendar and event resources */
.gg-light {
	background: var(--gg-paper);
	color: var(--gg-ink);
}

.gg-light a:not(.wp-element-button) {
	color: inherit;
}

.gg-band {
	padding-block: clamp(3.75rem, 8vw, 7.25rem);
}

.gg-band-heading {
	align-items: end;
	gap: 0.8rem 2rem;
}

.gg-band-title {
	font-size: clamp(2.4rem, 5vw, 4rem);
	line-height: 1;
	letter-spacing: -0.06em;
}

.gg-band-heading p {
	margin-block-start: 0.55rem;
}

.gg-schedule-intro {
	color: var(--gg-slate);
}

.gg-show-grid.wp-block-group {
	gap: clamp(0.85rem, 2vw, 1.5rem);
	margin-block-start: clamp(1.65rem, 4vw, 2.6rem) !important;
}

.is-style-gg-event-card {
	display: grid;
	grid-template-rows: auto 1fr;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--gg-line);
	border-radius: var(--wp--custom--rounded--md);
	background: var(--gg-white);
}

.gg-show-art.wp-block-image {
	position: relative;
	display: grid;
	place-items: center;
	min-height: clamp(8.5rem, 16vw, 12.5rem);
	margin: 0;
	padding: 1.5rem;
	overflow: hidden;
	isolation: isolate;
	background: linear-gradient(137deg, var(--gg-white) 28%, var(--gg-paper));
	border-block-end: 1px solid var(--gg-line);
}

.gg-show-art::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: repeating-linear-gradient(135deg, transparent 0 13px, var(--gg-line) 13px 14px);
	mask-image: linear-gradient(115deg, transparent 53%, #000 100%);
	content: "";
}

.gg-show-art img {
	width: min(100%, 10.8rem);
	height: clamp(3.9rem, 8vw, 6rem);
	object-fit: contain;
}

.gg-show-card-body {
	display: flex;
	flex-direction: column;
	align-items: start;
	gap: 0.66rem;
	min-width: 0;
	margin-block: 0 !important;
	padding: clamp(1.05rem, 2.1vw, 1.55rem);
}

.gg-show-card-body > * {
	margin: 0 !important;
}

.gg-show-date {
	padding: 0.24rem 0.53rem;
	background: color-mix(in srgb, var(--gg-gold) 29%, var(--gg-white));
	border-radius: var(--wp--custom--rounded--sm);
	color: var(--gg-ink);
	font-size: 0.73rem;
	font-weight: 700;
	letter-spacing: 0.055em;
	text-transform: uppercase;
}

.gg-show-title {
	font-size: clamp(1.3rem, 2.4vw, 1.75rem);
	letter-spacing: -0.037em;
}

.gg-show-description {
	color: var(--gg-slate);
	font-size: 0.95rem;
	line-height: 1.48;
}

.gg-show-card-body .gg-link {
	margin-block-start: auto !important;
	padding-block-start: 0.3rem;
}

.gg-link {
	font-size: 0.92rem;
	font-weight: 700;
}

.gg-resources {
	background: var(--gg-panel);
	color: var(--gg-cream);
}

.gg-resources .gg-band-heading p:not(.gg-kicker),
.gg-resource-card > p:not(.gg-link) {
	color: var(--gg-muted);
}

.gg-visit-layout.wp-block-group {
	grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
	gap: clamp(1rem, 3vw, 2.25rem);
	margin-block-start: clamp(1.65rem, 4vw, 2.6rem) !important;
}

.gg-visit-feature {
	display: grid;
	grid-template-rows: 1fr auto;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--gg-rule);
	border-radius: var(--wp--custom--rounded--md);
	background: var(--gg-navy);
}

.gg-visit-image.wp-block-image {
	display: grid;
	margin: 0;
	min-height: 0;
}

.gg-visit-image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 15rem;
	max-height: 28rem;
	object-fit: cover;
	object-position: 50% 58%;
}

.gg-visit-directions {
	gap: 0.4rem 0.8rem;
	margin-block-start: 0 !important;
	padding: 0.85rem clamp(0.9rem, 2.2vw, 1.35rem);
	border-block-start: 1px solid var(--gg-rule);
}

.gg-visit-venue {
	font-size: 0.92rem;
	font-weight: 700;
}

.gg-visit-links {
	display: grid;
	gap: 0.65rem;
	min-width: 0;
}

.is-style-gg-resource {
	min-width: 0;
	margin-block-start: 0 !important;
	padding: 0.9rem clamp(0.95rem, 2.4vw, 1.35rem);
	border: 1px solid var(--gg-rule);
	border-inline-start: 2px solid color-mix(in srgb, var(--gg-gold) 65%, var(--gg-rule));
	border-radius: var(--wp--custom--rounded--sm);
	background: color-mix(in srgb, var(--gg-navy) 56%, var(--gg-panel));
}

.gg-resource-card h3 {
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	letter-spacing: -0.025em;
}

.gg-resource-card p {
	margin-block-start: 0.32rem !important;
	font-size: 0.91rem;
	line-height: 1.45;
}

.gg-resource-card p.gg-link {
	margin-block-start: 0.44rem !important;
}

@media (max-width: 730px) {
	.gg-show-grid.wp-block-group,
	.gg-visit-layout.wp-block-group {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (min-width: 521px) and (max-width: 730px) {
	.is-style-gg-event-card {
		grid-template-columns: minmax(9rem, 31%) minmax(0, 1fr);
		grid-template-rows: 1fr;
	}

	.gg-show-art.wp-block-image {
		border-block-end: 0;
		border-inline-end: 1px solid var(--gg-line);
	}
}

@media (max-width: 730px) {
	.gg-visit-image img {
		height: clamp(15rem, 61vw, 25rem);
	}
}

/* Registration and confirmation */
.gg-internal-hero {
	padding-block: clamp(3rem, 7vw, 6rem);
	background: var(--gg-navy);
	color: var(--gg-cream);
}

.gg-internal-hero h1 {
	font-size: clamp(2.8rem, 7vw, 5.5rem);
	line-height: 0.98;
	letter-spacing: -0.063em;
}

.gg-internal-hero .gg-intro {
	max-width: 43rem;
	color: var(--gg-muted);
	font-size: clamp(1.03rem, 2.2vw, 1.21rem);
}

.gg-internal-body {
	padding-block: clamp(3rem, 7vw, 5.65rem);
}

.gg-registration-panel {
	padding: clamp(1.5rem, 5vw, 3rem);
	border: 1px solid var(--gg-line);
	background: var(--gg-white);
}

.gg-registration-panel h2 {
	font-size: clamp(1.55rem, 3.4vw, 2.25rem);
}

.gg-registration-panel > p {
	color: var(--gg-slate);
}

.gg-registration-panel .gg-link a {
	color: var(--gg-ink);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.gg-registration-panel .tribe-tickets__rsvp-wrapper,
.gg-registration-panel .tribe-common {
	max-width: 100%;
}

.gg-registration-panel :is(input, select, textarea) {
	max-width: 100%;
}

.gg-internal-note {
	color: var(--gg-slate);
	font-size: 0.9rem;
}

.gg-confirmation-date {
	color: var(--gg-gold);
	font-size: 1.025rem;
	font-weight: 700;
}

@media (max-width: 781px) {
	.gg-header-inner {
		min-height: 70px;
	}

}

@media (max-width: 535px) {
	.gg-header-inner {
		padding-block: 0.95rem 0.55rem;
		gap: 0.28rem;
	}

	.gg-brand,
	.gg-nav {
		width: 100%;
	}

	.gg-nav {
		gap: 0.15rem 1.15rem;
		font-size: 0.84rem;
	}

}

@media (prefers-reduced-motion: reduce) {
	.gg-buttons .wp-element-button {
		transition: none;
	}
}

.gg-brand-text p,
.gg-footer-brand p {
	margin-block: 0;
}

.gg-brand-text .gg-brand-caption,
.gg-footer-brand p + p {
	margin-block-start: 0.2rem;
}



.gg-internal-note a {
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

@media (max-width: 480px) {
	body .cookieadmin_law_container .cookieadmin_consent_btns > button.cookieadmin_btn {
		flex: 1 1 auto;
		min-width: 0;
		min-height: 40px;
		padding-inline: 7px;
		font-size: 0.78rem;
	}

	body .cookieadmin_law_container p#cookieadmin_notice {
		font-size: 0.8125rem;
		line-height: 1.45;
	}
}

.gg-resource-card h3 {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.gg-resource-card h3::before {
	width: 1.85rem;
	aspect-ratio: 1;
	font-size: 1.02rem;
}

/* Exhibitor feature and inquiry */
.gg-exhibit {
	background: var(--gg-navy);
	border-block: 1px solid var(--gg-rule);
}

.gg-exhibit-grid.wp-block-group,
.gg-stand-layout.wp-block-group {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.7rem, 5vw, 4rem);
	align-items: center;
}

.gg-exhibit-image.wp-block-image {
	overflow: hidden;
	border: 1px solid var(--gg-rule);
	border-radius: var(--wp--custom--rounded--md);
}

.gg-exhibit-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.gg-exhibit-copy .gg-band-title {
	margin-block-start: 0.65rem;
}

.gg-exhibit-copy p:not(.gg-kicker) {
	max-width: 32rem;
	color: var(--gg-muted);
}

.gg-stand-hero {
	padding-block: clamp(2.7rem, 6vw, 5rem);
}

.gg-stand-layout.wp-block-group {
	grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
	align-items: start;
}

.gg-stand-form,
.gg-stand-aside {
	min-width: 0;
	padding: clamp(1.1rem, 3.4vw, 2.45rem);
	border: 1px solid var(--gg-line);
	border-radius: var(--wp--custom--rounded--md);
	background: var(--gg-white);
}

.gg-stand-aside {
	background: var(--gg-paper);
}

.gg-stand-aside h2 {
	font-size: clamp(1.3rem, 2.4vw, 1.65rem);
}

.gg-stand-aside p,
.gg-stand-privacy {
	color: var(--gg-slate);
	font-size: 0.94rem;
}

.gg-stand-aside a,
.gg-stand-privacy a {
	text-decoration: underline;
	text-underline-offset: 0.18em;
	overflow-wrap: anywhere;
}

.gg-stand-form :is(.grunion-field-label, .wp-block-jetpack-label) {
	color: var(--gg-ink);
	font-weight: 700;
}

.gg-stand-form :is(input:not([type=hidden]), select, textarea) {
	border-color: var(--gg-line);
	border-radius: var(--wp--custom--rounded--sm);
	background-color: var(--gg-white);
	color: var(--gg-ink);
}

.gg-stand-form :is(input, select, textarea):focus-visible {
	outline: 2px solid var(--gg-ink);
	outline-offset: 2px;
}

.gg-stand-form .wp-element-button {
	font-size: 0.94rem;
}

@media (max-width: 730px) {
	.gg-exhibit-grid.wp-block-group,
	.gg-stand-layout.wp-block-group {
		grid-template-columns: minmax(0, 1fr);
	}

	.gg-exhibit-image img {
		aspect-ratio: 16 / 10;
	}
}
