/**
 * Site footer interface — relocated out of the site-layout monolith.
 *
 * The footer renders at the very bottom of every template, so it is always below
 * the fold: nothing here paints in the first viewport. Splitting it out of
 * site-layout.css lets the front end defer it off the critical render path via
 * the asset policy's deferred delivery (media="print" + onload). The editor canvas
 * still loads it blocking (the async
 * filter early-returns in wp-admin) so the footer template part stays styled when
 * edited — the same editor-parity contract the other layout sheets follow.
 *
 * Depends on minami-global (design tokens) + minami-motion-core (the --minami-*
 * motion tokens its reveal/hover transitions reference); functions.php declares
 * both so the cascade + tokens resolve wherever this sheet lands.
 */

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

.minami-footer__cols {
	gap: var(--wp--preset--spacing--50);
	align-items: flex-start;
}

.minami-footer__brand {
	flex: 1 1 260px;
	max-width: 340px;
	gap: var(--wp--preset--spacing--20);
}

.minami-footer__col {
	flex: 1 1 160px;
	gap: var(--wp--preset--spacing--20);
}

.minami-footer__news {
	flex: 1 1 300px;
}

.minami-footer__news .minami-newsletter {
	padding: var(--wp--preset--spacing--40);
}

.minami-footer__heading {
	margin: 0 0 0.4rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--contrast-tertiary);
	font-weight: 700;
}

.minami-footer__nav .wp-block-navigation__container {
	flex-direction: column;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.minami-footer__nav a {
	color: var(--wp--preset--color--contrast-secondary);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
}

.minami-footer__nav a:hover {
	color: var(--wp--preset--color--brand);
}

.minami-footer__bottom {
	gap: var(--wp--preset--spacing--30);
}

.minami-backtotop {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md, 8px);
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-decoration: none;
	transition:
		background var(--minami-dur-short, 150ms) var(--minami-ease-emphasized, cubic-bezier(0.2, 0, 0, 1)),
		color var(--minami-dur-short, 150ms) var(--minami-ease-emphasized, cubic-bezier(0.2, 0, 0, 1));
}

.minami-backtotop:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

/* ---- Footer: lean business default ---------------------------------- */

/* A deliberately small editorial footer. Readers rarely browse from the footer,
   so it drops the content sitemap and leads with one "Work with us" ask. */
.minami-footer--gd {
	--minami-footer-tone-1: var(--wp--preset--color--surface-raised);
	--minami-footer-tone-2: color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
	gap: var(--wp--preset--spacing--50);
	background: var(--minami-footer-tone-1);
	border: 0 !important;
	border-radius: 0 !important;
}

/* Split panel: brand statement left, business CTA right. */
.minami-footer--gd .minami-footer__split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr);
	gap: var(--wp--preset--spacing--60);
	align-items: start;
	margin-bottom: var(--wp--preset--spacing--40);
}

.minami-footer__identity {
	gap: var(--wp--preset--spacing--20);
	align-items: flex-start;
}

.minami-footer--gd .minami-footer__logo,
.minami-footer--gd .minami-footer__logo a {
	margin: 0;
	font-size: clamp(2rem, 1.35rem + 2.2vw, 3rem) !important;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.minami-footer__logo a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.minami-footer__rule {
	display: block;
	width: 4.5rem;
	height: 3px;
	border: 0;
	border-radius: var(--wp--custom--radius--pill, 999px);
}

.minami-footer__rule:where(:not(.has-background)) {
	background: var(--minami-ds-border);
}

/* Brand-tinted eyebrow heading ("Work with us"). */
.minami-footer--gd .minami-footer__heading {
	margin: 0 0 0.55rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.minami-footer__tagline {
	margin: 0;
	max-width: 34ch;
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: 0;
}

.minami-footer__tagline:empty::before {
	content: "Independent media for a more informed Asia.";
}

/* "Work with us" — the one ask: a short pitch, an email CTA, quiet links. */
.minami-footer__work {
	gap: var(--wp--preset--spacing--20);
	align-items: flex-start;
	padding-left: 0;
	border-left: 0;
}

.minami-footer__pitch {
	margin: 0;
	max-width: 38ch;
}

.minami-footer__cta {
	margin-top: var(--wp--preset--spacing--10);
}

/* Shared button variants own color, states and explicit editor overrides. */
.minami-footer__cta .wp-element-button {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

/* Business links — a quiet inline row (the corporate pages), not a hero. */
.minami-footer__primary {
	margin-top: var(--wp--preset--spacing--20);
}

.minami-footer__primary .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--40);
	row-gap: var(--wp--preset--spacing--10);
}

.minami-footer__primary a {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--contrast-secondary);
	text-decoration: none;
	transition: color var(--minami-dur-short, 150ms) var(--minami-ease-emphasized, cubic-bezier(0.2, 0, 0, 1));
}

.minami-footer__primary a:hover {
	color: var(--wp--preset--color--brand);
}

/* Bottom bar: a deeper tone-2 brand band — legal + copyright left, social right. */
.minami-footer--gd .minami-footer__bottom {
	gap: var(--wp--preset--spacing--40);
	margin-top: 0;
	padding-top: var(--wp--preset--spacing--40);
	background: transparent;
	border-top: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
}

.minami-footer__legal {
	gap: var(--wp--preset--spacing--40);
}

.minami-footer__legal p {
	margin: 0;
}

.minami-footer__legal a {
	color: var(--wp--preset--color--contrast-secondary);
	text-decoration: none;
}

.minami-footer__legal a:hover {
	color: var(--wp--preset--color--brand);
}

.minami-footer__social {
	margin: 0;
}

.minami-footer__social .wp-social-link {
	transition:
		transform var(--minami-dur-short, 150ms) var(--minami-ease-emphasized, cubic-bezier(0.2, 0, 0, 1)),
		color var(--minami-dur-short, 150ms) ease;
}

.minami-footer__social .wp-social-link:hover {
	color: var(--wp--preset--color--brand);
	transform: translateY(-2px);
}

/* Footer variants now share the reusable minami/social-links pattern (the
   6-icon row), so these restore each variant's curated presentation the unified
   pattern can't carry per-use: centred alignment + the small icon size. */
.minami-footer--centered .minami-footer__social {
	justify-content: center;
	margin-top: var(--wp--preset--spacing--40);
}

.minami-footer--minimal .minami-footer__social,
.minami-footer--cta .minami-footer__social {
	font-size: 16px;
}

/* "Other profiles" brand glyphs appended after the core social-link row
   (SocialLinksOutput::append_profiles). Sized + hover-matched to the native icons. */
.minami-footer__social .minami-footer__extra-link {
	display: flex;
	transition:
		transform var(--minami-dur-short, 150ms) var(--minami-ease-emphasized, cubic-bezier(0.2, 0, 0, 1)),
		color var(--minami-dur-short, 150ms) ease;
}

.minami-footer__social .minami-footer__extra-link a {
	display: flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	padding: 0;
}

.minami-footer__social .minami-footer__extra-link svg {
	width: 24px;
	height: 24px;
	fill: currentcolor;
}

.minami-footer__social .minami-footer__extra-link:hover {
	color: var(--wp--preset--color--brand);
	transform: translateY(-2px);
}

/* Visible focus ring for the keyboard path (links). */
.minami-footer__primary a:focus-visible,
.minami-footer__legal a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	border-radius: var(--wp--custom--radius--sm, 6px);
}

@media (max-width: 781px) {
	.minami-footer--gd {
		gap: var(--wp--preset--spacing--40);
	}

	/* Clear the fixed bottom-nav so the social/legal bar is never hidden.
	   !important overrides the block's inline padding-bottom. */
	.minami-footer--gd {
		padding-bottom: calc(var(--minami-bottomnav-h, 60px) + var(--wp--preset--spacing--40) + env(safe-area-inset-bottom, 0px)) !important;
	}

	.minami-footer--gd .minami-footer__split {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--40);
		margin-bottom: var(--wp--preset--spacing--40);
	}

	.minami-footer--gd .minami-footer__logo,
	.minami-footer--gd .minami-footer__logo a {
		font-size: clamp(1.5rem, 1.1rem + 2vw, 2rem) !important;
	}

	.minami-footer__work {
		width: 100%;
		padding-left: 0;
		padding-top: 0;
		border-left: 0;
		border-top: 0;
	}

	.minami-footer__primary .wp-block-navigation__container {
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
		align-items: flex-start;
	}

	/* Stack the bottom band: legal first, social row below, both left-aligned. */
	.minami-footer--gd .minami-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--wp--preset--spacing--30);
		padding: var(--wp--preset--spacing--40);
	}

	.minami-footer__social {
		justify-content: flex-start;
	}
}

/* Footer reveal: the panel rises into place as it scrolls into view, its three
   bands staggering in. view() timeline is scrub-free of JS and degrades to
   fully-visible where unsupported (no FOUC). */
@keyframes minami-footer-reveal {
	from {
		opacity: 0;
		transform: translateY(28px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@supports (animation-timeline: view()) {
	.minami-footer--gd {
		animation: minami-footer-reveal var(--minami-dur-long) var(--minami-ease-emphasized-decelerate) both;
		animation-timeline: view();
		animation-range: entry 0% entry 60%;
	}

	.minami-footer__split,
	.minami-footer__bottom {
		animation: minami-footer-reveal var(--minami-dur-medium) var(--minami-ease-spring) both;
		animation-timeline: view();
		animation-range: entry 5% entry 55%;
	}

	.minami-footer__split {
		animation-range: entry 12% entry 62%;
	}

	.minami-footer__bottom {
		animation-range: entry 18% entry 68%;
	}
}

/* Callout icon: gentle pop when the reader hovers the panel. */
.minami-callout {
	transition: transform var(--minami-dur-medium) var(--minami-ease-spring);
}

.minami-callout__icon {
	transition: transform var(--minami-dur-medium) var(--minami-ease-spring-expressive);
}

.minami-callout:hover .minami-callout__icon {
	transform: scale(1.1) rotate(4deg);
}

/* ---- Footer variants (swappable patterns) --------------------------- */

/* Five footer layouts ship as patterns registered to the footer template-part
   area (minami/footer-columns|minimal|centered|mega|cta-band). parts/footer.html
   stays the live default; these modifiers style the alternates. */

/* Inline nav — minimal / centered / cta-band put footer links on one wrapping
   row, so override the default vertical column list. */
.minami-footer__nav.is-inline .wp-block-navigation__container {
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
}

.minami-footer__fineprint {
	margin-bottom: 0;
}

/* Minimal — one tidy row over a centred fineprint line. */
.minami-footer--minimal .minami-footer__row {
	gap: var(--wp--preset--spacing--40);
}

/* Centered — symmetric editorial stack. */
.minami-footer--centered .wp-block-social-links {
	justify-content: center;
}

.minami-footer__bottom.is-centered {
	justify-content: center;
	gap: var(--wp--preset--spacing--40);
}

/* Mega — newsletter band, five columns, legal bar. */
.minami-footer__band {
	gap: var(--wp--preset--spacing--50);
	align-items: center;
}

.minami-footer__band-copy {
	flex: 1 1 280px;
	gap: var(--wp--preset--spacing--10);
}

.minami-footer__band-copy h2 {
	margin: 0;
}

.minami-footer__band-form {
	flex: 1 1 360px;
	max-width: 480px;
}

.minami-footer__cols.is-mega {
	gap: var(--wp--preset--spacing--50);
}

.minami-footer__cols.is-mega .minami-footer__col {
	flex: 1 1 140px;
}

.minami-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.minami-footer__links li {
	margin: 0;
}

.minami-footer__links a,
.minami-footer__legal a {
	color: var(--wp--preset--color--contrast-secondary);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
}

.minami-footer__links a:hover,
.minami-footer__legal a:hover {
	color: var(--wp--preset--color--brand);
}

.minami-footer__legal {
	gap: var(--wp--preset--spacing--30);
}

.minami-footer__legal p {
	margin: 0;
}

.minami-footer__legal a {
	color: var(--wp--preset--color--contrast-tertiary);
}

/* CTA band — brand-gradient panel leading with a subscribe ask. */
.minami-footer--cta .minami-footer__cta {
	box-shadow: var(--wp--preset--shadow--lg);
}

.minami-footer--cta .minami-footer__cta h2 {
	margin-top: 0;
}

/* Invert the submit so it reads on the brand gradient. */
.minami-footer--cta .minami-footer__cta .minami-newsletter__submit:where(:not(.has-text-color)) {
	color: var(--minami-tonal-ink);
}

.minami-footer--cta .minami-footer__cta .minami-newsletter__submit:where(:not(.has-background)) {
	background: var(--minami-tonal-fill);
}

.minami-footer--cta .minami-footer__cta .minami-newsletter__submit:hover:where(:not(.has-text-color)) {
	color: var(--minami-tonal-ink);
}

.minami-footer--cta .minami-footer__cta .minami-newsletter__submit:hover:where(:not(.has-background)) {
	background: var(--minami-tonal-hover);
}

.minami-footer__bar {
	gap: var(--wp--preset--spacing--40);
}

/* Stack the dense variants on narrow viewports. */
@media (max-width: 781px) {
	.minami-footer__band {
		flex-direction: column;
		align-items: flex-start;
	}

	.minami-footer__band-form {
		width: 100%;
		max-width: none;
	}
}

/* ---- Footer: magazine masthead -------------------------------------- */

/* Oversized editorial site title, then a compact utility row + legal ribbon. */

.minami-footer--masthead {
	--minami-footer-tone-1: var(--wp--preset--color--surface);
	--minami-footer-tone-2: color-mix(in srgb, var(--wp--preset--color--contrast) 5%, var(--wp--preset--color--surface));
	gap: var(--wp--preset--spacing--50);
	background: var(--minami-footer-tone-1);
}

/* Specificity intentionally raised past WP's per-block layout class
   (.wp-container-…{align-items:flex-start}) so the masthead actually centres. */
.minami-footer .minami-footer__masthead {
	gap: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--40);
	align-items: center;
	text-align: center;
}

.minami-footer__masthead-title,
.minami-footer__masthead-title a {
	margin: 0;
	font-size: clamp(1.4rem, 0.9rem + 1.5vw, 2rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.minami-footer__masthead-rule {
	display: block;
	width: min(100%, 8rem);
	height: 3px;
	margin: var(--wp--preset--spacing--20) auto var(--wp--preset--spacing--10);
	border: 0;
	border-radius: var(--wp--custom--radius--pill, 999px);
}

.minami-footer__masthead-rule:where(:not(.has-background)) {
	background: var(--minami-ds-border);
}

.minami-footer__masthead-tagline {
	margin: 0 auto;
	max-width: 48ch;
	font-size: clamp(1rem, 0.9rem + 0.35vw, 1.25rem);
	font-weight: 500;
	line-height: 1.45;
}

.minami-footer--masthead .minami-footer__heading {
	margin: 0 0 0.55rem;
}

.minami-footer--gd .minami-footer__heading:where(:not(.has-text-color)),
.minami-footer--masthead .minami-footer__heading:where(:not(.has-text-color)) {
	color: var(--minami-ds-link);
}

.minami-footer__utility {
	gap: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--40);
	align-items: flex-end;
}

.minami-footer--masthead .minami-footer__work {
	flex: 1 1 22rem;
	max-width: 36rem;
}

.minami-footer--masthead .minami-footer__primary {
	margin-top: var(--wp--preset--spacing--20);
}

.minami-footer--masthead .minami-footer__ribbon {
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	background: var(--minami-footer-tone-2);
	border-radius: var(--wp--custom--radius--lg, 12px);
}

@media (max-width: 781px) {
	.minami-footer--masthead {
		gap: var(--wp--preset--spacing--40);
		padding-bottom: calc(var(--minami-bottomnav-h, 60px) + var(--wp--preset--spacing--40) + env(safe-area-inset-bottom, 0px)) !important;
	}

	.minami-footer__masthead {
		margin-bottom: var(--wp--preset--spacing--30);
	}

	.minami-footer__utility {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--wp--preset--spacing--30);
	}

	.minami-footer--masthead .minami-footer__work {
		width: 100%;
		max-width: none;
	}

	.minami-footer--masthead .minami-footer__ribbon {
		flex-direction: column;
		align-items: flex-start;
		padding: var(--wp--preset--spacing--40);
	}

	.minami-footer__social {
		justify-content: flex-start;
	}
}

@supports (animation-timeline: view()) {
	.minami-footer--masthead {
		animation: minami-footer-reveal var(--minami-dur-long) var(--minami-ease-emphasized-decelerate) both;
		animation-timeline: view();
		animation-range: entry 0% entry 60%;
	}

	.minami-footer--masthead .minami-footer__masthead,
	.minami-footer--masthead .minami-footer__utility,
	.minami-footer--masthead .minami-footer__ribbon {
		animation: minami-footer-reveal var(--minami-dur-medium) var(--minami-ease-spring) both;
		animation-timeline: view();
		animation-range: entry 5% entry 55%;
	}

	.minami-footer--masthead .minami-footer__utility {
		animation-range: entry 14% entry 62%;
	}

	.minami-footer--masthead .minami-footer__ribbon {
		animation-range: entry 18% entry 68%;
	}
}

.minami-footer--masthead .minami-footer__primary a:focus-visible,
.minami-footer--masthead .minami-footer__legal a:focus-visible,
.minami-footer--masthead .minami-backtotop:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	border-radius: var(--wp--custom--radius--sm, 6px);
}

/* Shared appearance adapter; local geometry and motion remain authoritative. */

.minami-footer--cta .minami-footer__cta .minami-newsletter__submit:not(.has-background):not(:disabled):active {
	background-color: var(--minami-tonal-pressed);
}

/* GamingDose composition: business navigation under the identity, contact at
   right, then a legal row and configured social profiles. The existing page
   sampler owns both hues, readiness and intensity; this surface only paints. */
.minami-footer--gd {
	--minami-tone: var(--minami-ambient, var(--minami-ds-primary-hue));
	position: relative;
	isolation: isolate;
	animation: none;
}

.minami-footer--gd::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(ellipse at 10% 80%, color-mix(in srgb, var(--minami-ambient) var(--minami-ambient-strength), transparent), transparent 65%),
		radial-gradient(ellipse at 95% 65%, color-mix(in srgb, var(--minami-ambient-2) var(--minami-ambient-strength-2), transparent), transparent 65%);
	opacity: 1;
	transition: opacity var(--minami-dur-long) var(--minami-ease-standard);
}

.minami-ambient-content:not(.is-ambient-ready) .minami-footer--gd::before {
	opacity: 0;
}

.minami-footer--gd.has-background::before,
.minami-ambient-off .minami-footer--gd::before {
	content: none;
}

.minami-footer--gd .minami-footer__split {
	grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
	column-gap: var(--wp--preset--spacing--60);
	margin-bottom: var(--wp--preset--spacing--50);
	animation: none;
}

.minami-footer--gd .minami-footer__identity {
	min-width: 0;
	gap: var(--wp--preset--spacing--10);
}

.minami-footer--gd .minami-footer__logo a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.minami-footer--gd .minami-footer__tagline {
	max-width: 42ch;
	font-size: var(--wp--preset--font-size--small);
}

.minami-footer--gd .minami-footer__primary {
	width: 100%;
	margin-top: var(--wp--preset--spacing--30);
}

.minami-footer--gd .minami-footer__primary .wp-block-navigation__container {
	width: 100%;
	margin: 0;
	padding: 0;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--10);
}

.minami-footer--gd .minami-footer__primary .wp-block-navigation-item {
	width: auto;
}

.minami-footer--gd .minami-footer__primary a {
	display: flex;
	align-items: center;
	min-height: 44px;
	width: auto;
	box-sizing: border-box;
	padding: 0.5rem 0.75rem;
	border-radius: var(--wp--custom--radius--md);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: uppercase;
}

.minami-footer--gd .minami-footer__work {
	min-width: 0;
	margin-top: calc(3rem + var(--wp--preset--spacing--10));
	gap: var(--wp--preset--spacing--10);
}

.minami-footer--gd .minami-footer__heading {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.1em;
}

.minami-footer--gd .minami-footer__heading:where(:not(.has-text-color)) {
	color: var(--minami-ds-muted-foreground);
}

.minami-footer--gd .minami-footer__cta {
	max-width: 100%;
	margin-top: 0;
}

.minami-footer--gd .minami-footer__cta-btn {
	min-width: 0;
	max-width: 100%;
}

.minami-footer--gd .minami-footer__cta .wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20);
	min-height: 44px;
	box-sizing: border-box;
	max-width: 100%;
	border-radius: var(--wp--custom--radius--md);
	font-weight: 600;
	text-align: start;
	overflow-wrap: anywhere;
	transform: none;
}

.minami-footer--gd .minami-footer__cta .wp-element-button::after {
	content: "";
	width: 1rem;
	height: 1rem;
	flex: 0 0 1rem;
	background: currentcolor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17 17 7M7 7h10v10' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		center / contain no-repeat;
}

.minami-footer--gd .minami-footer__cta .wp-element-button:focus:not(:focus-visible):not(:active):where(:not(.has-background)) {
	background-color: var(--minami-tonal-fill);
}

.minami-footer--gd .minami-footer__bottom {
	width: 100%;
	box-sizing: border-box;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--10);
	padding: var(--wp--preset--spacing--30) 0 0;
	animation: none;
}

.minami-footer--gd .minami-footer__legal {
	width: 100%;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20);
}

.minami-footer--gd .minami-footer__legal a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.5rem;
	border-radius: var(--wp--custom--radius--md);
}

.minami-footer--gd .minami-footer__social {
	gap: var(--wp--preset--spacing--10);
	flex-wrap: wrap;
}

.minami-footer--gd .minami-footer__social :is(.wp-social-link, .minami-footer__extra-link) {
	background: transparent;
	transform: none;
	transition: none;
}

.minami-footer--gd .minami-footer__social a {
	--minami-duotone-accent: var(--minami-ds-muted-foreground);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	box-sizing: border-box;
	padding: 0;
	border-radius: var(--wp--custom--radius--pill);
}

.minami-footer--gd .minami-footer__social a:where(:not(.has-background)) {
	background-color: var(--minami-tonal-fill);
}

.minami-footer--gd .minami-footer__social a:where(:not(.has-text-color)) {
	color: var(--minami-tonal-ink);
}

.minami-footer--gd :is(.minami-footer__primary, .minami-footer__legal, .minami-footer__social) a:where(:not(.has-text-color)) {
	color: var(--minami-ds-foreground);
}

.minami-footer--gd :is(.minami-footer__primary, .minami-footer__legal, .minami-footer__social, .minami-footer__cta) a {
	transition:
		background-color var(--minami-dur-short) var(--minami-ease-standard),
		color var(--minami-dur-short) var(--minami-ease-standard);
}

.minami-footer--gd :is(.minami-footer__primary, .minami-footer__legal, .minami-footer__social, .minami-footer__cta) a:focus-visible {
	outline: 2px solid var(--minami-ds-ring);
	outline-offset: 2px;
}

.minami-footer--gd
	:is(.minami-footer__primary, .minami-footer__legal, .minami-footer__social, .minami-footer__cta)
	a:focus-visible:where(:not(.has-background)) {
	background-color: var(--minami-tonal-hover);
}

@media (hover: hover) and (pointer: fine) {
	.minami-footer--gd :is(.minami-footer__primary, .minami-footer__legal, .minami-footer__social, .minami-footer__cta) a:hover:where(:not(.has-background)) {
		background-color: var(--minami-tonal-hover);
	}
}

.minami-footer--gd :is(.minami-footer__primary, .minami-footer__legal, .minami-footer__social, .minami-footer__cta) a:active:where(:not(.has-background)) {
	--minami-dur-short: var(--minami-dur-x-short);
	background-color: var(--minami-tonal-pressed);
}

@media (max-width: 781px) {
	.minami-footer--gd {
		padding-bottom: calc(var(--minami-bottomnav-h, 60px) + var(--wp--preset--spacing--20) + env(safe-area-inset-bottom, 0px)) !important;
	}

	.minami-footer--gd .minami-footer__split {
		grid-template-columns: minmax(0, 1fr);
	}

	.minami-footer--gd .minami-footer__work {
		margin-top: 0;
	}

	.minami-footer--gd .minami-footer__primary {
		width: min(100%, 18rem);
	}

	.minami-footer--gd .minami-footer__primary .wp-block-navigation__container {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.minami-footer--gd .minami-footer__primary .wp-block-navigation-item,
	.minami-footer--gd .minami-footer__primary a {
		width: 100%;
	}

	.minami-footer--gd .minami-footer__logo,
	.minami-footer--gd .minami-footer__logo a {
		font-size: clamp(2rem, 1.35rem + 2.2vw, 3rem) !important;
	}

	.minami-footer--gd .minami-footer__legal {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* The native canvas has no frontend site-layout ancestor to provide intensity. */
.editor-styles-wrapper.minami-ambient-on-background .minami-footer--gd {
	--minami-ambient-strength: var(--mn-glow-1, 0%);
	--minami-ambient-strength-2: var(--mn-glow-2, 0%);
}

@media (forced-colors: active), (prefers-reduced-transparency: reduce) {
	.minami-footer--gd::before {
		content: none;
	}
}

@media (forced-colors: active) {
	.minami-footer--gd .minami-footer__social a:where(:not(.has-background)) {
		background-color: ButtonFace;
	}
	.minami-footer--gd .minami-footer__social a:where(:not(.has-text-color)) {
		color: ButtonText;
	}

	.minami-footer--gd :is(.minami-footer__primary, .minami-footer__legal, .minami-footer__social, .minami-footer__cta) a:focus-visible {
		outline-color: Highlight;
	}
}
