/* ==========================================================================
   Arbor: styles theme.json cannot express.
   Every value is a theme.json preset or custom property, so child themes
   restyle by changing theme.json values only.
   ========================================================================== */

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

/* An empty template part (e.g. post-after, filled by child themes) takes no space or gap. */
.wp-block-template-part:empty {
	display: none;
}

/* Template-level regions (header, main, footer) sit flush. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

img {
	max-width: 100%;
	height: auto;
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.is-style-section-contrast :focus-visible,
.has-contrast-background-color :focus-visible,
.has-contrast-deep-background-color :focus-visible {
	outline-color: var(--wp--preset--color--on-contrast-accent);
}

/* ---- Breakpoint: hard type steps at 640px (values from theme.json custom) ---- */
@media (max-width: 640px) {
	body {
		--wp--preset--font-size--display: var(--wp--custom--font-size-mobile--display);
		--wp--preset--font-size--heading-2: var(--wp--custom--font-size-mobile--heading-2);
	}
}

/* ---- Buttons ---- */
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--wp--custom--control-height);
	box-sizing: border-box;
	text-decoration: none;
	cursor: pointer;
	transition: filter var(--wp--custom--transition), background-color var(--wp--custom--transition);
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	filter: brightness(0.95);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	filter: none;
	background-color: var(--wp--preset--color--base-alt);
	color: var(--wp--preset--color--contrast);
}

.wp-block-button.has-custom-width .wp-block-button__link {
	width: 100%;
}

/* Text-link button: a link styled like the header phone number. */
.wp-block-button.is-style-plain > .wp-block-button__link {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-weight: 700;
	line-height: inherit;
}

.wp-block-button.is-style-plain > .wp-block-button__link:hover {
	filter: none;
	text-decoration: underline;
}

/* ---- Paragraph styles ---- */
.is-style-lead {
	max-width: var(--wp--custom--lead-width, 620px);
}

.is-style-chip {
	display: inline-block;
}

/* Paragraph styles inside dark sections. */
.is-style-section-contrast .is-style-eyebrow,
.is-style-section-contrast .wp-block-post-terms a {
	color: var(--wp--preset--color--on-contrast-accent);
}

.is-style-section-contrast .is-style-lead,
.is-style-section-contrast .has-muted-color {
	color: var(--wp--preset--color--on-contrast-muted) !important;
}

.is-style-section-contrast .is-style-card,
.is-style-section-contrast .is-style-panel {
	color: var(--wp--preset--color--contrast);
}

.is-style-section-contrast .is-style-panel .has-muted-color,
.is-style-section-contrast .is-style-card .has-muted-color {
	color: var(--wp--preset--color--muted) !important;
}

.is-style-section-contrast .is-style-panel a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--primary);
}

/* ---- Inline list (trust points) ---- */
.wp-block-list.is-style-inline {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--28);
	list-style: none;
	margin-inline: 0;
	margin-block-end: 0;
	padding: 0;
}

.wp-block-list.is-style-inline > li {
	margin: 0;
}

/* ---- Details (FAQ row) ---- */
.wp-block-details summary {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--16);
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 700;
	line-height: 1.55;
	list-style: none;
	cursor: pointer;
	transition: color var(--wp--custom--transition);
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary:hover {
	color: var(--wp--preset--color--primary);
}

/* Chevron that turns as the row opens. */
.wp-block-details summary::after {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 0.25em;
	background-color: var(--wp--preset--color--primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 280ms cubic-bezier(0.2, 0, 0, 1);
}

.wp-block-details[open] summary::after,
.wp-block-details[data-arbor-target="open"] summary::after {
	transform: rotate(180deg);
}

.wp-block-details[data-arbor-target="closed"] summary::after {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-details summary::after {
		transition: none;
	}
}

.wp-block-details > :not(summary) {
	margin-block-start: var(--wp--preset--spacing--12);
	margin-block-end: 0;
	color: var(--wp--preset--color--muted);
}

/* ---- Cards with a whole-card link (query loop post cards) ---- */
.is-style-card-link {
	position: relative;
	overflow: hidden;
	transition: border-color var(--wp--custom--transition);
}

.is-style-card-link:hover {
	border-color: var(--wp--preset--color--primary) !important;
}

.is-style-card-link .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.is-style-card-link .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

/* ---- Pagination pills ---- */
.wp-block-query-pagination {
	gap: var(--wp--preset--spacing--12);
}

.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination-next,
.wp-block-query-pagination-previous {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--wp--custom--control-height);
	min-height: var(--wp--custom--control-height);
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
	text-decoration: none;
}

.wp-block-query-pagination-next,
.wp-block-query-pagination-previous {
	padding: 0 var(--wp--preset--spacing--20);
}

.wp-block-query-pagination .page-numbers.current {
	border-color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--on-contrast);
}

.wp-block-query-pagination-numbers {
	display: flex;
	gap: var(--wp--preset--spacing--12);
}

/* ---- Term chips (categories) ---- */
.is-style-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--8);
	list-style: none;
	margin: 0;
	padding: 0;
}

.is-style-chips li {
	margin: 0;
}

.is-style-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 var(--wp--preset--spacing--16);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-decoration: none;
}

/* ---- Link lists (recent posts, section navigation) ---- */
.is-style-link-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.is-style-link-list li {
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.is-style-link-list a {
	display: block;
	padding: 14px 0;
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
	text-decoration: none;
}

.is-style-link-list .wp-block-latest-posts__post-date {
	padding-bottom: 14px;
	margin-top: -10px;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* ---- Search ---- */
.wp-block-search__label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.wp-block-search__inside-wrapper {
	gap: var(--wp--preset--spacing--8);
}

.wp-block-search__input {
	min-height: var(--wp--custom--control-height);
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--input-border);
	border-radius: var(--wp--custom--radius--input);
	font: inherit;
	color: var(--wp--preset--color--contrast);
}

.wp-block-search__button {
	margin-left: 0;
}

/* ---- Header and navigation ---- */
.wp-block-site-logo img {
	height: var(--wp--custom--logo-height);
	width: auto;
}

.arbor-footer .wp-block-site-logo img,
.arbor-footer .wp-block-image img {
	height: var(--wp--custom--footer-logo-height);
	width: auto;
}

.wp-block-navigation a {
	text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item__content {
	line-height: 1.55;
}

.wp-block-navigation a:hover {
	text-decoration: underline;
}

/* Footer link columns: block links with a 10px rhythm. */
.arbor-footer .wp-block-navigation {
	--navigation-layout-direction: column;
}

.arbor-footer .wp-block-navigation__container {
	gap: 10px;
}

/* ---- Mobile call bar ----
   Sticks to the bottom of the screen when it is the bottom template part;
   anywhere else (e.g. inside the header) it is a mobile-only full-width strip. */
.arbor-call-bar {
	display: none;
}

@media (max-width: 640px) {
	.arbor-call-bar {
		display: block;
	}

	/* The template-part wrapper is what sticks (the bar alone has no room to move). */
	.wp-site-blocks > :has(> .arbor-call-bar, > .arbor-app-bar) {
		position: sticky;
		bottom: 0;
		z-index: 5;
	}
}

.arbor-call-bar .wp-block-button__link {
	width: 100%;
	min-height: 56px;
	border-radius: 0;
}

.arbor-call-bar .wp-block-button__link:hover {
	filter: none;
}

/* ---- Mobile app bar: a group with the "arbor-app-bar" class around a
   core/navigation whose links have icons (Arbor Blocks' link icon setting).
   Below 640px it sticks to the bottom of the screen like an app's tab bar:
   icon above label, the current section highlighted. ---- */
.arbor-app-bar {
	display: none;
}

@media (max-width: 640px) {
	.arbor-app-bar {
		display: block;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		border-top: 1px solid var(--wp--preset--color--border);
		background: var(--wp--preset--color--base);
	}

	.arbor-app-bar .wp-block-navigation,
	.arbor-app-bar .wp-block-navigation__container {
		width: 100%;
	}

	.arbor-app-bar .wp-block-navigation__container {
		flex-wrap: nowrap;
		justify-content: space-around;
		gap: 0;
	}

	.arbor-app-bar .wp-block-navigation-item {
		flex: 1 1 0;
		min-width: 0;
	}

	.arbor-app-bar .wp-block-navigation .wp-block-navigation-item__content {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 2px;
		width: 100%;
		min-height: 60px;
		padding: 8px 2px 6px;
		box-sizing: border-box;
		color: var(--wp--preset--color--muted);
		font-size: var(--wp--preset--font-size--caption);
		font-weight: 600;
		line-height: 1.2;
		text-align: center;
		text-decoration: none;
	}

	.arbor-app-bar .wp-block-navigation-item__label {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.arbor-app-bar .arbor-nav-icon {
		flex: none;
		box-sizing: content-box;
		width: 22px;
		height: 22px;
		padding: 3px 16px;
		border-radius: 999px;
		transition: background-color var(--wp--custom--transition);
	}

	.arbor-app-bar :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content {
		color: var(--wp--preset--color--contrast);
		font-weight: 700;
	}

	.arbor-app-bar :is(.current-menu-item, .current-menu-ancestor) .arbor-nav-icon {
		background: var(--wp--preset--color--tint);
		color: var(--wp--preset--color--primary);
	}

	.arbor-app-bar .wp-block-navigation-item__content:focus-visible {
		outline-offset: -3px;
	}

	/* A submenu (e.g. "More", set to open on click) is a tab whose items open
	   as a panel above the bar, over a dimmed page; Esc or a tap outside
	   closes it (core navigation behaviour). */
	.arbor-app-bar {
		position: relative;
	}

	.arbor-app-bar .wp-block-navigation,
	.arbor-app-bar .wp-block-navigation__container,
	.arbor-app-bar .wp-block-navigation .wp-block-navigation-item.has-child {
		position: static;
	}

	.arbor-app-bar .wp-block-navigation .wp-block-navigation-item.has-child > .wp-block-navigation-submenu__toggle {
		padding: 8px 2px 6px;
		border: 0;
		background: none;
		font-family: inherit;
		cursor: pointer;
	}

	.arbor-app-bar .wp-block-navigation__submenu-icon {
		display: none;
	}

	.arbor-app-bar .has-child:has(> [aria-expanded="true"]) .arbor-nav-icon,
	.arbor-app-bar .has-child:has(.current-menu-item) > .wp-block-navigation-item__content .arbor-nav-icon {
		background: var(--wp--preset--color--tint);
		color: var(--wp--preset--color--primary);
	}

	.arbor-app-bar .has-child:has(> [aria-expanded="true"]) > .wp-block-navigation-item__content,
	.arbor-app-bar .has-child:has(.current-menu-item) > .wp-block-navigation-item__content {
		color: var(--wp--preset--color--contrast);
		font-weight: 700;
	}

	.arbor-app-bar .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
		/* !important: core aligns the last submenu of a justified menu with
		   more specific rules (left: auto); the panel spans the bar. */
		top: auto !important;
		right: 0 !important;
		bottom: 100%;
		left: 0 !important;
		box-sizing: border-box;
		min-width: 0;
		padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--16);
		border: 0;
		border-radius: var(--wp--custom--radius--card) var(--wp--custom--radius--card) 0 0;
		background: var(--wp--preset--color--base);
		box-shadow: var(--wp--preset--shadow--float);
		color: var(--wp--preset--color--contrast);
	}

	.arbor-app-bar .wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
		width: auto;
		min-width: 0;
	}

	.arbor-app-bar .wp-block-navigation__submenu-container .wp-block-navigation-item {
		flex: none;
		width: 100%;
	}

	.arbor-app-bar .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		flex-direction: row;
		justify-content: flex-start;
		gap: var(--wp--preset--spacing--12);
		min-height: 48px;
		padding: var(--wp--preset--spacing--12);
		border-radius: var(--wp--custom--radius--tab);
		color: var(--wp--preset--color--contrast);
		font-size: var(--wp--preset--font-size--body);
		font-weight: 600;
		text-align: left;
	}

	.arbor-app-bar .wp-block-navigation__submenu-container .arbor-nav-icon {
		padding: 0;
		background: none;
		color: var(--wp--preset--color--primary);
	}

	.arbor-app-bar .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
		background: var(--wp--preset--color--tint);
	}

	/* The dimmed page behind an open panel (taps on it close the panel). */
	.arbor-app-bar:has([aria-expanded="true"])::before {
		content: "";
		position: fixed;
		z-index: -1;
		inset: 0;
		background: color-mix(in srgb, var(--wp--preset--color--contrast) 40%, transparent);
	}
}

/* ---- Mobile utilities: "arbor-hide-mobile" hides a block below 640px (e.g.
   the header menu the app bar replaces); "arbor-show-mobile" shows it only
   below 640px (e.g. a call icon in its place). ---- */
@media (max-width: 640px) {
	.arbor-hide-mobile {
		display: none !important;
	}
}

@media (min-width: 641px) {
	.arbor-show-mobile {
		display: none !important;
	}
}

/* ---- Button pairs on phones: tighter padding and gap so two buttons
   (e.g. a hero's primary + outline) fit on one row. The text size is
   unchanged and the row still wraps when they do not fit (narrow phones,
   larger text), so the buttons then stack. ---- */
@media (max-width: 640px) {
	.wp-block-buttons:has(> .wp-block-button:nth-child(2):last-child) {
		column-gap: var(--wp--preset--spacing--8);
	}

	.wp-block-buttons:has(> .wp-block-button:nth-child(2):last-child) > .wp-block-button > .wp-block-button__link {
		padding-right: var(--wp--preset--spacing--16);
		padding-left: var(--wp--preset--spacing--16);
	}
}

/* ---- Contact Form 7 ---- */
.wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
}

.wpcf7-form p {
	margin: 0;
}

.wpcf7-form label {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.wpcf7-form .wpcf7-form-control-wrap {
	display: block;
	margin-top: var(--wp--preset--spacing--6);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	min-height: var(--wp--custom--control-height);
	box-sizing: border-box;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--input-border);
	border-radius: var(--wp--custom--radius--input);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: var(--wp--preset--font-size--body);
	font-weight: 400;
	line-height: 1.55;
}

.wpcf7-form textarea {
	padding: 12px 14px;
	resize: vertical;
}

.wpcf7-form input:focus-visible,
.wpcf7-form select:focus-visible,
.wpcf7-form textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.wpcf7-form .wpcf7-submit {
	width: 100%;
	min-height: var(--wp--custom--control-height);
	padding: 0 26px;
	border: 2px solid transparent;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: filter var(--wp--custom--transition);
}

.wpcf7-form .wpcf7-submit:hover {
	filter: brightness(0.95);
}

.wpcf7-form .wpcf7-spinner {
	display: none;
}

.wpcf7-form.submitting .wpcf7-spinner {
	display: inline-block;
}

.wpcf7-not-valid-tip {
	margin-top: var(--wp--preset--spacing--6);
	font-size: var(--wp--preset--font-size--small);
}

.wpcf7 form .wpcf7-response-output {
	margin: 0;
	padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--16);
	border-radius: var(--wp--custom--radius--input);
	font-size: var(--wp--preset--font-size--small);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ---- Sidebar layouts (blog, posts, documents) ---- */
.arbor-sidebar-layout {
	align-items: flex-start;
}

/* Reverse: when the columns stack, the sidebar comes first. Wrap-reverse
   flips the cross axis, so flex-end is what keeps both columns at the top. */
.arbor-sidebar-layout.is-reverse {
	flex-wrap: wrap-reverse !important;
	align-items: flex-end;
}

.arbor-sidebar-layout > .arbor-col-main {
	flex: 999 1 640px;
	min-width: 0;
}

.arbor-sidebar-layout > .arbor-col-side {
	flex: 1 1 300px;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--28);
}

/* Phones: a search box's input would otherwise keep the sidebar wider than
   the screen. (On wider screens it sets the sidebar's width, as designed.) */
@media (max-width: 640px) {
	.arbor-sidebar-layout > .arbor-col-side {
		min-width: 0;
	}

	.arbor-sidebar-layout .wp-block-search__input {
		min-width: 0;
	}
}

.arbor-sidebar-layout.is-document > .arbor-col-main {
	flex-basis: 600px;
	max-width: 760px;
}

.arbor-sidebar-layout.is-document > .arbor-col-side {
	flex-basis: 260px;
}

/* Long-form document content: section rhythm and headings. */
.arbor-document > * + * {
	margin-block-start: var(--wp--preset--spacing--12);
}

.arbor-document > h2 {
	margin-block-start: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--heading-legal);
	line-height: 1.2;
	letter-spacing: 0;
}

.arbor-document > h2:first-child {
	margin-block-start: 0;
}

.arbor-document > p {
	color: var(--wp--preset--color--muted);
}

/* ---- Brand stripe (core groups with a background get default padding) ---- */
.arbor-stripe > .wp-block-group {
	padding: 0;
}

/* ---- Footer navigation links ---- */
.arbor-footer .wp-block-navigation {
	font-weight: 400;
}

.arbor-footer .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--wp--preset--color--on-contrast-muted);
}

.arbor-footer .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--on-contrast);
}

/* ---- Grid helpers ---- */
.wp-block-group.is-vertically-aligned-center {
	align-items: center;
}

.wp-block-group.is-vertically-aligned-start {
	align-items: start;
}

/* ---- Placeholder (photos and embeds not supplied yet) ---- */
.is-style-placeholder {
	box-sizing: border-box;
	text-align: center;
}

.is-style-placeholder > * {
	margin: 0;
}

/* ---- Logo images (core/image with the "arbor-logo" class) ---- */
.wp-block-image.arbor-logo {
	margin: 0;
}

.wp-block-image.arbor-logo img {
	display: block;
	height: var(--wp--custom--logo-height);
	width: auto;
}

.arbor-footer .wp-block-image.arbor-logo img {
	height: var(--wp--custom--footer-logo-height);
}

/* ---- Footer link rows (arbor/card row variant) ---- */
.arbor-footer .arbor-card.is-variant-row {
	color: var(--wp--preset--color--on-contrast-muted);
	font-size: var(--wp--preset--font-size--nav);
}

.arbor-footer .arbor-card.is-variant-row a:hover {
	color: var(--wp--preset--color--on-contrast);
}

.wp-block-image.arbor-logo a {
	display: block;
}

.wp-block-navigation .wp-block-navigation-item__content {
	display: block;
}

.arbor-document > .wp-block-group {
	margin-block-start: var(--wp--preset--spacing--40);
}

/* Headings inside light panels/cards on a dark section keep the dark ink. */
.is-style-section-contrast :is(.is-style-panel, .is-style-card) :is(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--contrast);
}

/* Post cards without a featured image keep the image area (tinted). */
.is-style-card-link:not(:has(.wp-block-post-featured-image))::before {
	content: "";
	display: block;
	flex: none;
	height: 168px;
	background: var(--wp--preset--color--tint);
}

/* Cards inside a Query Loop grid fill their cell. */
.wp-block-post-template > li > .arbor-card {
	height: 100%;
}

/* ---- Group "Slider on mobile": below 640px the items sit in one row that
   swipes sideways (each about 85% wide, so the next one peeks in). ---- */
@media (max-width: 640px) {
	.wp-block-group.is-style-slider-mobile {
		display: flex;
		flex-wrap: nowrap;
		align-items: stretch;
		/* Bleed to the screen edges (!important beats the constrained layout's auto margins). */
		margin-right: calc(-1 * var(--wp--style--root--padding-right, 0px)) !important;
		margin-left: calc(-1 * var(--wp--style--root--padding-left, 0px)) !important;
		max-width: none !important;
		padding: 0 var(--wp--style--root--padding-right, 0px) 4px var(--wp--style--root--padding-left, 0px);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-padding-left: var(--wp--style--root--padding-left, 0px);
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.wp-block-group.is-style-slider-mobile::-webkit-scrollbar {
		display: none;
	}

	.wp-block-group.is-style-slider-mobile > * {
		flex: 0 0 85%;
		min-width: 0;
		margin: 0 !important;
		scroll-snap-align: start;
	}
}
