/*
 * Rocket Maps theme — single bundled stylesheet.
 *
 * Sections:
 *   1. Tokens (CSS custom props — light + dark)
 *   2. Reset / base
 *   3. Layout primitives (container, prose)
 *   4. Header + navigation (incl. dropdown + mobile drawer)
 *   5. Footer
 *   6. Engine switcher
 *   7. Page content + features + hero
 *   8. Buttons / forms / utilities
 *   9. Responsive overrides
 */

/* ====================================================
 * 1. Tokens
 * ====================================================*/
:root {
	--rmaps-theme-font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
	--rmaps-theme-font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
	/* Body text font — defaults to the system stack. The Customizer
	 * (Appearance → Customize → Typography) overrides this var with
	 * the admin-selected Google Font via a wp_add_inline_style on
	 * `:root`. The site menu has its own variable
	 * (`--rmaps-theme-menu-font-family`) so a decorative body font
	 * doesn't affect navigation readability. */
	--rmaps-theme-font-family: var(--rmaps-theme-font-sans);
	--rmaps-theme-menu-font-family: var(--rmaps-theme-font-sans);

	--rmaps-theme-bg:           #ffffff;
	--rmaps-theme-bg-soft:      #f6f7f9;
	--rmaps-theme-bg-elev:      #ffffff;
	--rmaps-theme-bg-engine:    #fafbfc;
	--rmaps-theme-fg:           #191e25;
	--rmaps-theme-fg-soft:      #4b5563;
	--rmaps-theme-fg-mute:      #6b7280;
	--rmaps-theme-border:       #e5e7eb;
	--rmaps-theme-border-soft:  #eef0f3;

	/* Heading + brand-name colours — default to the base foreground so
	 * they follow the light/dark theme until an admin overrides them in
	 * the Customizer (Appearance → Customize → Colors). When set there,
	 * a fixed hex is injected on `:root` and applies in BOTH themes. */
	--rmaps-theme-heading-color: var(--rmaps-theme-fg);
	--rmaps-theme-brand-color:   var(--rmaps-theme-fg);

	--rmaps-theme-accent:        #2563eb;
	--rmaps-theme-accent-hover:  #1d4ed8;
	--rmaps-theme-accent-contrast: #ffffff;
	--rmaps-theme-accent-soft:   rgba(37, 99, 235, 0.1);

	--rmaps-theme-danger:          #dc2626;
	--rmaps-theme-danger-hover:    #b91c1c;
	--rmaps-theme-danger-contrast: #ffffff;

	--rmaps-theme-engine-google:   #1a73e8;
	--rmaps-theme-engine-mapbox:   #1f82a5;
	--rmaps-theme-engine-maplibre: #2a9d8f;

	--rmaps-theme-radius-sm: 6px;
	--rmaps-theme-radius-md: 10px;
	--rmaps-theme-radius-lg: 16px;
	--rmaps-theme-radius-pill: 999px;

	--rmaps-theme-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
	--rmaps-theme-shadow-md: 0 4px 14px rgba(15, 23, 42, .08);
	--rmaps-theme-shadow-lg: 0 16px 40px rgba(15, 23, 42, .14);

	--rmaps-theme-container: 1180px;
	--rmaps-theme-header-h:  64px;

	color-scheme: light;
}

html[data-theme="dark"] {
	--rmaps-theme-bg:           #0b0d10;
	--rmaps-theme-bg-soft:      #11141a;
	--rmaps-theme-bg-elev:      #151920;
	--rmaps-theme-bg-engine:    #0f1217;
	--rmaps-theme-fg:           #e9ecf1;
	--rmaps-theme-fg-soft:      #c6cbd6;
	--rmaps-theme-fg-mute:      #8b93a5;
	--rmaps-theme-border:       #232831;
	--rmaps-theme-border-soft:  #1a1e26;

	--rmaps-theme-accent:        #5c9bff;
	--rmaps-theme-accent-hover:  #7eb0ff;
	--rmaps-theme-accent-contrast: #0b0d10;
	--rmaps-theme-accent-soft:   rgba(92, 155, 255, 0.15);

	--rmaps-theme-danger:          #ef4444;
	--rmaps-theme-danger-hover:    #f87171;
	--rmaps-theme-danger-contrast: #0b0d10;

	--rmaps-theme-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	--rmaps-theme-shadow-md: 0 6px 18px rgba(0, 0, 0, .45);
	--rmaps-theme-shadow-lg: 0 16px 40px rgba(0, 0, 0, .55);

	color-scheme: dark;
}

/* ====================================================
 * 2. Reset / base
 * ====================================================*/
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	/* Read from `--rmaps-theme-font-family` so the Customizer-driven
	 * Google Font override (Appearance → Customize → Typography)
	 * applies site-wide. Defaults to the system sans stack via the
	 * fallback chain set on `:root`. */
	font-family: var(--rmaps-theme-font-family);
	font-size: 16px;
	line-height: 1.55;
	color: var(--rmaps-theme-fg);
	background: var(--rmaps-theme-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
	color: var(--rmaps-theme-accent);
	text-decoration: none;
	transition: color .15s ease;
}
a:hover, a:focus-visible { color: var(--rmaps-theme-accent-hover); }

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.18;
	margin: 0 0 1em;
	letter-spacing: -0.01em;
	color: var(--rmaps-theme-heading-color);
}
h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

/* Horizontal rule — full-width divider, 50px vertical breathing room,
 * solid slate (#334155). `border: 0` clears the browser's default
 * bevelled 3D border so only our single top border paints; height 0
 * keeps the element flush to that 1px line. */
hr {
	width: 100%;
	height: 0;
	margin: 50px 0;
	border: 0;
	border-top: 1px solid #334155;
}

code, kbd, pre, samp { font-family: var(--rmaps-theme-font-mono); font-size: .9em; }
code {
	background: var(--rmaps-theme-bg-soft);
	border: 1px solid var(--rmaps-theme-border-soft);
	padding: .15em .4em;
	border-radius: var(--rmaps-theme-radius-sm);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

.rmaps-theme-skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 999;
	background: var(--rmaps-theme-fg);
	color: var(--rmaps-theme-bg);
	padding: 8px 12px;
	border-radius: var(--rmaps-theme-radius-sm);
}
.rmaps-theme-skip-link:focus { top: 16px; outline: 2px solid var(--rmaps-theme-accent); }

/* ====================================================
 * 3. Layout primitives
 * ====================================================*/
.rmaps-theme-container {
	width: 100%;
	max-width: var(--rmaps-theme-container);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 32px);
}

.rmaps-theme-main { min-height: 60vh; }

.rmaps-theme-section { padding: clamp(48px, 6vw, 80px) 0; }

/* ====================================================
 * 4. Header + navigation
 * ====================================================*/
.rmaps-theme-site-header {
	position: sticky;
	top: 0;
	/* Above plugin auto-popups (z 600) and click-popups (z 1000) so
	 * the site nav stays usable while the map's DOM-popup layer is
	 * painting cards near the top of the viewport. Stays well below
	 * the WP admin bar (z 99999) so /wp-admin chrome still wins. */
	z-index: 1500;
	background: color-mix(in srgb, var(--rmaps-theme-bg) 88%, transparent);
	backdrop-filter: saturate(180%) blur(10px);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--rmaps-theme-border-soft);
}

/* WP admin bar offset — `body.admin-bar` is added by core when the
 * toolbar is visible. Desktop bar is `position: fixed; top: 0; height: 32px`,
 * so the sticky header must clear those 32px or it slides UNDER it.
 * On screens ≤782px WP flips the bar to `position: absolute` so it
 * scrolls off naturally — the sticky header returns to `top: 0`. */
body.admin-bar .rmaps-theme-site-header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar .rmaps-theme-site-header {
		top: 0;
	}
}

.rmaps-theme-header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--rmaps-theme-header-h);
}

.rmaps-theme-brand { display: flex; align-items: center; min-width: 0; }
.rmaps-theme-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--rmaps-theme-fg);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
}
.rmaps-theme-brand-link:hover, .rmaps-theme-brand-link:focus-visible { color: var(--rmaps-theme-fg); }
.rmaps-theme-brand-mark {
	display: inline-flex;
	width: 32px;
	height: 32px;
	color: var(--rmaps-theme-accent);
}
.rmaps-theme-brand-mark svg { width: 100%; height: 100%; }
/* Brand (site) name — own colour var so the Customizer can tint just
 * the wordmark without touching the icon mark or the rest of the
 * header. Defaults to the base foreground. */
.rmaps-theme-brand-name { color: var(--rmaps-theme-brand-color); }
.custom-logo-link img { max-height: 40px; width: auto; }

.rmaps-theme-primary-nav {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
}

.rmaps-theme-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
	/* Menu uses its OWN font variable so the body-text Google Font
	 * override (Customizer → Typography) can't replace the
	 * navigation typeface — decorative display fonts hurt menu
	 * readability at the small sizes nav uses. Inherits down to the
	 * <a> children so footer nav (same `.rmaps-theme-menu` class) is
	 * also protected. */
	font-family: var(--rmaps-theme-menu-font-family);
}
.rmaps-theme-menu > li { position: relative; }
.rmaps-theme-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--rmaps-theme-radius-md);
	color: var(--rmaps-theme-fg-soft);
	font-weight: 500;
	font-size: .95rem;
	transition: color .15s ease, background-color .15s ease;
}
.rmaps-theme-menu a:hover,
.rmaps-theme-menu a:focus-visible,
.rmaps-theme-menu .current-menu-item > a,
.rmaps-theme-menu .current-menu-ancestor > a {
	color: var(--rmaps-theme-fg);
	background: var(--rmaps-theme-bg-soft);
}

/* dropdown indicator + submenu */
.rmaps-theme-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-left: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	opacity: .7;
}
.rmaps-theme-menu .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--rmaps-theme-bg-elev);
	border: 1px solid var(--rmaps-theme-border);
	border-radius: var(--rmaps-theme-radius-md);
	box-shadow: var(--rmaps-theme-shadow-md);
	display: flex;
	flex-direction: column;
	gap: 2px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
	z-index: 60;
}
.rmaps-theme-menu .menu-item-has-children:hover > .sub-menu,
.rmaps-theme-menu .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.rmaps-theme-menu .sub-menu a { padding: 8px 10px; border-radius: var(--rmaps-theme-radius-sm); }

.rmaps-theme-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rmaps-theme-engine-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: var(--rmaps-theme-radius-pill);
	background: var(--rmaps-theme-bg-soft);
	border: 1px solid var(--rmaps-theme-border-soft);
	color: var(--rmaps-theme-fg-soft);
	font-size: .8rem;
	font-weight: 500;
}
.rmaps-theme-engine-dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--rmaps-theme-engine-google);
}
.rmaps-theme-engine-mapbox   .rmaps-theme-engine-dot { background: var(--rmaps-theme-engine-mapbox); }
.rmaps-theme-engine-maplibre .rmaps-theme-engine-dot { background: var(--rmaps-theme-engine-maplibre); }

/* --- Engine switch (header dropdown) ---------------------------
 * The active-engine pill in the header doubles as a hover-popover
 * with the same three engine links `[rmaps-engine-switcher]` emits.
 * CSS-only on desktop (`:hover` + `:focus-within`); `theme.js` adds
 * an `is-open` class on touch / keyboard activation so tap-to-open
 * works on mobile too. */
.rmaps-theme-engine-switch {
	position: relative;
}
.rmaps-theme-engine-switch-trigger {
	border: 1px solid var(--rmaps-theme-border-soft);
	cursor: pointer;
	font: inherit;
	font-size: .8rem;
	font-weight: 500;
	transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.rmaps-theme-engine-switch-trigger:hover,
.rmaps-theme-engine-switch-trigger:focus-visible {
	color: var(--rmaps-theme-fg);
	border-color: var(--rmaps-theme-fg-mute);
	background: var(--rmaps-theme-bg-soft);
	outline: none;
}
.rmaps-theme-engine-switch-caret {
	width: 8px;
	height: 6px;
	opacity: .6;
	transition: transform .15s ease, opacity .15s ease;
}
.rmaps-theme-engine-switch:hover .rmaps-theme-engine-switch-caret,
.rmaps-theme-engine-switch:focus-within .rmaps-theme-engine-switch-caret,
.rmaps-theme-engine-switch.is-open .rmaps-theme-engine-switch-caret {
	transform: rotate(180deg);
	opacity: 1;
}

.rmaps-theme-engine-switch-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 200px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--rmaps-theme-bg);
	border: 1px solid var(--rmaps-theme-border);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
	z-index: 200;
}
.rmaps-theme-engine-switch:hover .rmaps-theme-engine-switch-menu,
.rmaps-theme-engine-switch:focus-within .rmaps-theme-engine-switch-menu,
.rmaps-theme-engine-switch.is-open .rmaps-theme-engine-switch-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 0s;
}
/* Invisible hover bridge so cursor can travel from the trigger
 * down to the menu without dropping the :hover state on the gap. */
.rmaps-theme-engine-switch-menu::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -10px;
	height: 10px;
}
.rmaps-theme-engine-switch-menu li { margin: 0; }
.rmaps-theme-engine-switch-menu .rmaps-theme-engine-button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--rmaps-theme-fg-soft);
	text-decoration: none;
	font-size: .9rem;
	font-weight: 500;
	transition: color .15s ease, background .15s ease;
}
.rmaps-theme-engine-switch-menu .rmaps-theme-engine-button:hover,
.rmaps-theme-engine-switch-menu .rmaps-theme-engine-button:focus-visible {
	color: var(--rmaps-theme-fg);
	background: var(--rmaps-theme-bg-soft);
	outline: none;
}
.rmaps-theme-engine-switch-menu .rmaps-theme-engine-button.is-active {
	color: var(--rmaps-theme-bg);
	background: var(--rmaps-theme-fg);
}
.rmaps-theme-engine-switch-menu .rmaps-theme-engine-button.is-active:hover {
	background: var(--rmaps-theme-fg);
	color: var(--rmaps-theme-bg);
}
.rmaps-theme-engine-switch-menu .rmaps-theme-engine-button-icon {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.rmaps-theme-engine-switch-menu .rmaps-theme-engine-button-icon svg {
	width: 100%;
	height: 100%;
}
.rmaps-theme-engine-switch-menu .rmaps-theme-engine-button-label { flex: 1 1 auto; }

/* Lock + disabled notice — same UX as the shortcode's notice. */
.rmaps-theme-engine-switch.is-locked .rmaps-theme-engine-switch-menu .rmaps-theme-engine-button {
	pointer-events: none;
	opacity: .55;
}
.rmaps-theme-engine-switch-notice-row {
	margin-top: 4px;
	padding: 8px 12px;
	border-top: 1px solid var(--rmaps-theme-border-soft);
}
.rmaps-theme-engine-switch-notice {
	margin: 0;
	font-size: .72rem;
	line-height: 1.4;
	color: var(--rmaps-theme-fg-soft);
}
.rmaps-theme-engine-switch-notice code {
	background: var(--rmaps-theme-bg-soft);
	padding: 1px 5px;
	border-radius: 4px;
	font-size: .68rem;
}

.rmaps-theme-mode-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--rmaps-theme-radius-pill);
	border: 1px solid var(--rmaps-theme-border);
	background: transparent;
	color: var(--rmaps-theme-fg-soft);
	cursor: pointer;
	transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.rmaps-theme-mode-toggle:hover, .rmaps-theme-mode-toggle:focus-visible {
	color: var(--rmaps-theme-fg);
	border-color: var(--rmaps-theme-fg-mute);
	background: var(--rmaps-theme-bg-soft);
}
.rmaps-theme-mode-toggle svg { width: 18px; height: 18px; }
.rmaps-theme-mode-toggle .rmaps-theme-icon-moon { display: none; }
html[data-theme="dark"] .rmaps-theme-mode-toggle .rmaps-theme-icon-sun  { display: none; }
html[data-theme="dark"] .rmaps-theme-mode-toggle .rmaps-theme-icon-moon { display: inline-block; }

.rmaps-theme-cta-buy,
.rmaps-theme-cta-submit {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: var(--rmaps-theme-radius-pill);
	font-weight: 600;
	font-size: .9rem;
	transition: background-color .15s ease, transform .1s ease;
}
.rmaps-theme-cta-buy {
	background: var(--rmaps-theme-accent);
	color: var(--rmaps-theme-accent-contrast);
}
.rmaps-theme-cta-buy:hover, .rmaps-theme-cta-buy:focus-visible {
	background: var(--rmaps-theme-accent-hover);
	color: var(--rmaps-theme-accent-contrast);
	transform: translateY(-1px);
}
/* Submit-marker CTA — same pill shape as Buy plugin but red so the
 * two header actions don't compete for the same visual slot. The
 * red tint also subconsciously signals "contribute / submit", which
 * matches the action it triggers (open the [webmap-submit] form). */
.rmaps-theme-cta-submit {
	background: var(--rmaps-theme-danger);
	color: var(--rmaps-theme-danger-contrast);
}
.rmaps-theme-cta-submit:hover, .rmaps-theme-cta-submit:focus-visible {
	background: var(--rmaps-theme-danger-hover);
	color: var(--rmaps-theme-danger-contrast);
	transform: translateY(-1px);
}

.rmaps-theme-burger {
	display: none;
	width: 40px;
	height: 40px;
	border: 1px solid var(--rmaps-theme-border);
	background: transparent;
	border-radius: var(--rmaps-theme-radius-md);
	cursor: pointer;
	padding: 0;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 4px;
}
.rmaps-theme-burger span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--rmaps-theme-fg);
	transition: transform .2s, opacity .2s;
}
.rmaps-theme-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.rmaps-theme-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rmaps-theme-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.rmaps-theme-menu-fallback { gap: 8px; }
.rmaps-theme-menu-hint { font-size: .85rem; color: var(--rmaps-theme-fg-mute); }

/* ====================================================
 * 5. Footer
 * ====================================================*/
.rmaps-theme-site-footer {
	border-top: 1px solid var(--rmaps-theme-border-soft);
	background: var(--rmaps-theme-bg-soft);
	padding: 48px 0 32px;
}
.rmaps-theme-footer-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 32px;
	align-items: center;
}
.rmaps-theme-footer-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}
.rmaps-theme-footer-brand .rmaps-theme-brand-mark { color: var(--rmaps-theme-accent); width: 28px; height: 28px; }
.rmaps-theme-footer-tagline {
	margin: 0;
	color: var(--rmaps-theme-fg-soft);
	font-size: .95rem;
}
.rmaps-theme-footer-nav .rmaps-theme-menu { gap: 4px; flex-wrap: wrap; }
.rmaps-theme-footer-nav .rmaps-theme-menu a {
	padding: 6px 10px;
	color: var(--rmaps-theme-fg-soft);
	font-size: .9rem;
}
.rmaps-theme-footer-nav .rmaps-theme-menu a:hover { color: var(--rmaps-theme-fg); }
.rmaps-theme-colophon {
	grid-column: 1 / -1;
	margin: 16px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--rmaps-theme-border-soft);
	color: var(--rmaps-theme-fg-mute);
	font-size: .85rem;
}

/* ====================================================
 * 6. Engine switcher
 * ====================================================*/
/* Gutenberg block wrapper (`render_callback` wraps the switcher section
 * in this `.wp-block-rmaps-engine-switcher` div via
 * `get_block_wrapper_attributes()`). Pass 100% height + flex through
 * so the inner section's `height: 100%` resolves against a real height
 * instead of collapsing to auto when the block sits in a fixed-height
 * column / group. */
.wp-block-rmaps-engine-switcher {
	height: 100%;
	display: flex;
	flex-direction: column;
}
.wp-block-rmaps-engine-switcher > .rmaps-theme-engine-switcher {
	flex: 1 1 auto;
	min-height: 0;
}

/* Divider between above-buttons content and the buttons (block /
 * enclosing-shortcode usage). Tighter vertical rhythm than the global
 * `hr` (50px) so it reads as an in-component separator, and tinted to
 * the theme's soft border so it adapts to light/dark. */
.rmaps-theme-engine-switcher-divider {
	width: 100%;
	height: 0;
	margin: 16px 0;
	border: 0;
	border-top: 1px solid var(--rmaps-theme-border);
}

.rmaps-theme-engine-switcher {
	width: 100%;
	height: 100%;
	background: var(--rmaps-theme-bg-engine);
	border-top: 1px solid var(--rmaps-theme-border-soft);
	border-bottom: 1px solid var(--rmaps-theme-border-soft);
	padding: 16px clamp(16px, 4vw, 32px);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}
.rmaps-theme-engine-switcher-inner {
	width: 100%;
	max-width: var(--rmaps-theme-container);
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	align-items: center;
	justify-content: center;
	gap: 12px 24px;
}
.rmaps-theme-engine-switcher-content {
	width: 100%;
	/* Optional width cap from the block's "Content max width" control,
	 * fed as `--rmaps-esb-content-width` on the section. Defaults to
	 * 100% (full width). `margin-inline: auto` centres the capped
	 * column. The divider + buttons are siblings of this element (not
	 * children), so they stay full width regardless of this cap. */
	max-width: var(--rmaps-esb-content-width, 100%);
	margin-inline: auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.rmaps-theme-engine-switcher-content > *:first-child { margin-top: 0; }
.rmaps-theme-engine-switcher-content > *:last-child  { margin-bottom: 0; }
.rmaps-theme-engine-switcher-label {
	margin: 0;
	font-size: .85rem;
	color: var(--rmaps-theme-fg-mute);
	font-weight: 500;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.rmaps-theme-engine-switcher-buttons {
	display: inline-flex;
	gap: 8px;
	padding: 4px;
	border-radius: var(--rmaps-theme-radius-pill);
	background: var(--rmaps-theme-bg-elev);
	border: 1px solid var(--rmaps-theme-border);
	box-shadow: var(--rmaps-theme-shadow-sm);
}
.rmaps-theme-engine-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: var(--rmaps-theme-radius-pill);
	color: var(--rmaps-theme-fg-soft);
	font-weight: 600;
	font-size: .9rem;
	background: transparent;
	transition: background-color .15s ease, color .15s ease, transform .1s ease;
	white-space: nowrap;
}
.rmaps-theme-engine-button:hover, .rmaps-theme-engine-button:focus-visible {
	background: var(--rmaps-theme-bg-soft);
	color: var(--rmaps-theme-fg);
}
/* Active state — uniform across all three engines. An earlier
 * version painted each active button in its engine brand colour
 * (Google blue / Mapbox teal / MapLibre green), but the inconsistent
 * accents distracted from the actual signal ("which engine is
 * active"). Single `var(--rmaps-theme-fg)` pill matches the rest of the
 * dark-on-light UI and reads cleanly on both themes. The small
 * engine-dot badge in the header still uses the brand colour for
 * quick identification. */
.rmaps-theme-engine-button.is-active {
	background: var(--rmaps-theme-fg);
	color: var(--rmaps-theme-bg);
	box-shadow: var(--rmaps-theme-shadow-sm);
}
.rmaps-theme-engine-button.is-active:hover { background: var(--rmaps-theme-fg); color: var(--rmaps-theme-bg); }
.rmaps-theme-engine-button-icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
}
.rmaps-theme-engine-button-icon svg { width: 100%; height: 100%; }

.rmaps-theme-engine-switcher.is-compact .rmaps-theme-engine-button-label { display: none; }
.rmaps-theme-engine-switcher.is-compact .rmaps-theme-engine-button { padding: 9px 12px; }

.rmaps-theme-engine-switcher-notice {
	flex-basis: 100%;
	margin: 0;
	padding: 10px 14px;
	background: rgba(234, 179, 8, .12);
	border: 1px solid rgba(234, 179, 8, .35);
	color: var(--rmaps-theme-fg-soft);
	border-radius: var(--rmaps-theme-radius-md);
	font-size: .85rem;
	text-align: center;
}
.rmaps-theme-engine-switcher-notice code {
	background: transparent;
	border: 0;
	color: inherit;
	padding: 0;
}

/* --- Prev / next demo navigation -------------------------------
 * Sits directly under the engine buttons inside the switcher. The
 * page sequence comes from the Header (`primary`) menu — see
 * `rmaps_theme_demo_nav()`. Two mirrored pill buttons that reuse the
 * same tokens as the engine buttons, so they adapt to light/dark. */
.rmaps-theme-demo-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	width: 100%;
	max-width: 520px;
}
.rmaps-theme-demo-nav-btn {
	flex: 1 1 0;
	min-width: 0;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	border-radius: var(--rmaps-theme-radius-pill);
	background: var(--rmaps-theme-bg-elev);
	border: 1px solid var(--rmaps-theme-border);
	box-shadow: var(--rmaps-theme-shadow-sm);
	color: var(--rmaps-theme-fg-soft);
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.rmaps-theme-demo-nav-btn:hover,
.rmaps-theme-demo-nav-btn:focus-visible {
	background: var(--rmaps-theme-bg-soft);
	color: var(--rmaps-theme-fg);
	border-color: var(--rmaps-theme-fg-soft);
	transform: translateY(-1px);
}
.rmaps-theme-demo-nav-prev { justify-content: flex-start; }
.rmaps-theme-demo-nav-next { justify-content: flex-end; }
.rmaps-theme-demo-nav-arrow {
	flex: none;
	font-size: 1.1rem;
	line-height: 1;
	opacity: .7;
}
.rmaps-theme-demo-nav-labels {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}
.rmaps-theme-demo-nav-next .rmaps-theme-demo-nav-labels { align-items: flex-end; }
.rmaps-theme-demo-nav-kicker {
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--rmaps-theme-fg-mute);
}
.rmaps-theme-demo-nav-title {
	font-size: .9rem;
	font-weight: 600;
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* ====================================================
 * 7. Page content, features, hero
 * ====================================================*/
.rmaps-theme-page-header {
	padding-top: clamp(32px, 5vw, 56px);
	padding-bottom: clamp(16px, 3vw, 24px);
}
.rmaps-theme-page-title {
	margin: 0 0 50px;
	text-align: center;
}
/* No global content-width constraint — children flow at whatever
 * width their parent gives them: `.rmaps-theme-container` (1180px) on the
 * standard page template, full viewport on the full-width template.
 * Opt into a narrower reading column anywhere by wrapping a chunk
 * in `<div class="rmaps-theme-prose">…</div>` (760px + centered). */
.rmaps-theme-prose {
	max-width: 760px;
	margin-inline: auto;
}
.rmaps-theme-page-content-full > .rmaps-react-mount,
.rmaps-theme-page-content-full > .rmaps-map-frontend-wrap,
.rmaps-theme-page-content-full .rmaps-react-mount,
.rmaps-theme-page-content-full .rmaps-map-frontend-wrap {
	max-width: 100%;
	padding-inline: 0;
}

.rmaps-theme-page-content h2 { margin-top: 1.5em; }
.rmaps-theme-page-content ul, .rmaps-theme-page-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.rmaps-theme-page-content blockquote {
	margin: 1.5em 0;
	padding: 12px 18px;
	border-left: 3px solid var(--rmaps-theme-accent);
	color: var(--rmaps-theme-fg-soft);
	font-style: italic;
}

/* Front page has no page-header/title in the content case, so its
 * content would butt up against the site header. Add a small top
 * offset — only the content variant; the hero variant (shown when
 * there's no editor content) already carries its own generous padding. */
.rmaps-theme-front-page > .rmaps-theme-page-content {
	padding-top: clamp(20px, 3vw, 32px);
}

/* Hero */
.rmaps-theme-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.rmaps-theme-hero-title { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.rmaps-theme-hero-tagline {
	font-size: clamp(1.05rem, .95rem + .3vw, 1.25rem);
	color: var(--rmaps-theme-fg-soft);
	max-width: 640px;
	margin: 0 auto 28px;
}
.rmaps-theme-hero-cta {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Buttons */
.rmaps-theme-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: var(--rmaps-theme-radius-pill);
	font-weight: 600;
	font-size: .95rem;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.rmaps-theme-button-primary {
	background: var(--rmaps-theme-accent);
	color: var(--rmaps-theme-accent-contrast);
}
.rmaps-theme-button-primary:hover, .rmaps-theme-button-primary:focus-visible {
	background: var(--rmaps-theme-accent-hover);
	color: var(--rmaps-theme-accent-contrast);
	transform: translateY(-1px);
}
.rmaps-theme-button-ghost {
	background: transparent;
	color: var(--rmaps-theme-fg);
	border: 1px solid var(--rmaps-theme-border);
}
.rmaps-theme-button-ghost:hover, .rmaps-theme-button-ghost:focus-visible {
	color: var(--rmaps-theme-fg);
	border-color: var(--rmaps-theme-fg-mute);
	background: var(--rmaps-theme-bg-soft);
}

/* Feature grid */
.rmaps-theme-features { background: var(--rmaps-theme-bg-soft); }
.rmaps-theme-feature-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.rmaps-theme-feature-card {
	background: var(--rmaps-theme-bg-elev);
	border: 1px solid var(--rmaps-theme-border-soft);
	border-radius: var(--rmaps-theme-radius-lg);
	padding: 24px;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.rmaps-theme-feature-card:hover {
	border-color: var(--rmaps-theme-border);
	box-shadow: var(--rmaps-theme-shadow-md);
	transform: translateY(-2px);
}
.rmaps-theme-feature-icon {
	display: inline-flex;
	width: 38px;
	height: 38px;
	padding: 8px;
	background: var(--rmaps-theme-accent-soft);
	color: var(--rmaps-theme-accent);
	border-radius: var(--rmaps-theme-radius-md);
	margin-bottom: 14px;
}
.rmaps-theme-feature-icon svg { width: 100%; height: 100%; }
.rmaps-theme-feature-title { margin: 0 0 6px; font-size: 1.05rem; }
.rmaps-theme-feature-body { margin: 0; color: var(--rmaps-theme-fg-soft); font-size: .95rem; }

/* Post list (blog / archive) */
.rmaps-theme-post-list {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	margin-top: 24px;
}
.rmaps-theme-post-card {
	background: var(--rmaps-theme-bg-elev);
	border: 1px solid var(--rmaps-theme-border-soft);
	border-radius: var(--rmaps-theme-radius-lg);
	padding: 18px;
}
.rmaps-theme-post-thumb img { border-radius: var(--rmaps-theme-radius-md); }
.rmaps-theme-post-title { font-size: 1.15rem; margin: 12px 0 6px; }
.rmaps-theme-post-title a { color: var(--rmaps-theme-fg); }
.rmaps-theme-post-meta { color: var(--rmaps-theme-fg-mute); font-size: .85rem; display: flex; gap: 8px; }
.rmaps-theme-post-excerpt { color: var(--rmaps-theme-fg-soft); font-size: .95rem; }

/* Search form */
.rmaps-theme-search-form {
	display: inline-flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}
.rmaps-theme-search-field {
	padding: 10px 14px;
	border-radius: var(--rmaps-theme-radius-pill);
	border: 1px solid var(--rmaps-theme-border);
	background: var(--rmaps-theme-bg);
	color: var(--rmaps-theme-fg);
	font: inherit;
	min-width: 220px;
}
.rmaps-theme-search-submit {
	padding: 10px 18px;
	border-radius: var(--rmaps-theme-radius-pill);
	border: 0;
	background: var(--rmaps-theme-accent);
	color: var(--rmaps-theme-accent-contrast);
	font-weight: 600;
	cursor: pointer;
}

/* 404 */
.rmaps-theme-section-404 { text-align: center; padding: 96px 0; }
.rmaps-theme-404-code {
	font-size: clamp(4rem, 8vw, 7rem);
	margin: 0 0 8px;
	color: var(--rmaps-theme-accent);
	letter-spacing: -0.04em;
}

/* Comments */
.rmaps-theme-comments { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rmaps-theme-border-soft); }

/* ====================================================
 * 8. Map shortcode wrappers — let `[webmap]` breathe
 * inside both standard and full-width layouts.
 * ====================================================*/
/* Map wrap previously got `margin: 24px auto`, border-radius,
 * shadow and border — removed. Map renders raw, host page decides
 * its own framing. */

/* `[webmap-listings]` standalone renders the same `MapSidebar`
 * component the in-map listings use — `.rmaps-react-sidebar` with
 * `position: absolute` + `top:0; left:0; bottom:0`. In-map that
 * works because the map wrapper has a known height; standalone
 * the bare mount div has no height of its own and the absolute
 * sidebar would stretch to the viewport.
 *
 * `StandaloneListings.tsx` now mirrors what `map_controller.php`
 * does for `[webmap]`: pulls the map's metabox `height` setting
 * out of the loaded config and writes it inline (along with
 * `position: relative`) on the mount. We keep the inner wrapper +
 * empty-paragraph cleanup here so the absolute sidebar lays out
 * correctly inside the JS-applied height and the listings column
 * starts flush with the map column's top edge.
 *
 * Scoped to `.wp-block-column >` so a page with just
 * `[webmap-listings]` standing alone (no Columns wrapper) keeps
 * whatever sizing the host gives it. */
.rmaps-react-listings-mount > .rmaps-react-listings-standalone {
	position: relative;
	height: 100%;
}
/* Plugin's `rmaps-react.css` (around line 1483) re-styles
 * `.rmaps-react-listings-standalone .rmaps-react-sidebar` to
 * `position: static; height: auto; max-height: none` with
 * `!important` — that's the standalone flow mode, intended for
 * "drop `[webmap-listings]` on a page with no Columns wrapper".
 * In OUR Columns layout (listings as a fixed-height column next
 * to a map column) the static-flow mode means the sidebar grows
 * with the card count and escapes the mount.
 *
 * Re-enable the absolute-positioned scroll mode but only inside a
 * `.wp-block-column` — pages that use `[webmap-listings]` standalone
 * still get the plugin's default flow behaviour. `!important` is
 * needed to beat the plugin's own `!important`; later in the
 * cascade (theme.css loads after rmaps-react.css) at same
 * specificity, ours wins. */
.wp-block-column > .rmaps-react-listings-mount {
	overflow: hidden;
}
.wp-block-column > .rmaps-react-listings-mount .rmaps-react-listings-standalone .rmaps-react-sidebar {
	position: absolute !important;
	top: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	height: auto !important;
	max-height: none !important;
}
/* Plugin's `.rmaps-react-sidebar__scroll` brings two defaults
 * that fight the column layout:
 *   - `padding: 10px` — pushes the first card down off the map
 *     column's top edge. Drop the vertical part; horizontal 10 px
 *     stays so cards keep a breathing gap from the column edges.
 *   - `max-height: 80vh` (the standalone-mode cap, sensible for a
 *     loose listings block on a long page, breaking for our
 *     fixed-height-from-map approach) — when the map is e.g.
 *     800 px on a 700 px viewport, the scroll stops growing past
 *     ~560 px and visually "ends early". Lift the cap so the
 *     scroll matches whatever height we set on the mount. */
.wp-block-column > .rmaps-react-listings-mount .rmaps-react-sidebar__scroll {
	padding-block: 0;
	max-height: none;
}
/* Gutenberg's column editor leaves stray empty `<p></p>` blocks
 * around any shortcode that produces non-text output. They take
 * ~30 px each and visually shift the listings column down relative
 * to the map column starting edge — so the cards line up below the
 * map's top, not flush with it. Collapsing them brings both column
 * contents to the same Y. */
.wp-block-column > p:empty {
	display: none;
	margin: 0;
}

/* ====================================================
 * 9. Responsive
 * ====================================================*/
@media (max-width: 1024px) {
	.rmaps-theme-burger { display: inline-flex; }

	.rmaps-theme-primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 16px clamp(16px, 4vw, 32px) 24px;
		background: var(--rmaps-theme-bg);
		border-bottom: 1px solid var(--rmaps-theme-border-soft);
		box-shadow: var(--rmaps-theme-shadow-md);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		/* Block pointer interaction when the drawer is closed. Without
		 * this, the sub-menu links (which re-enable themselves with
		 * `visibility: visible` further below so they expand inline when
		 * the parent IS open) stay hit-testable on top of page content
		 * even with the drawer invisible — the user moves the cursor
		 * across what looks like the in-map search form and the status
		 * bar shows random menu link URLs. Toggling `pointer-events` on
		 * the .is-open state is the cleanest gate. */
		pointer-events: none;
		transition: opacity .15s ease, transform .15s ease, visibility .15s;
	}
	.rmaps-theme-primary-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: auto;
	}
	.rmaps-theme-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}
	.rmaps-theme-menu a { padding: 12px 14px; font-size: 1rem; }
	.rmaps-theme-menu .menu-item-has-children > a::after {
		float: right;
		margin-top: 4px;
	}
	.rmaps-theme-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		background: var(--rmaps-theme-bg-soft);
		padding: 4px;
		margin: 4px 0 4px 16px;
	}
	.rmaps-theme-header-actions {
		flex-wrap: wrap;
		justify-content: flex-start;
		padding-top: 8px;
		border-top: 1px solid var(--rmaps-theme-border-soft);
	}

	/* Engine-switch on mobile — the desktop popover (position:absolute;
	 * right:0; min-width:200px) overflows or covers the drawer body when
	 * it drops from the small pill trigger. Flatten it: keep the pill as
	 * the tap target, but render the open menu as a full-width inline
	 * panel below the pill so the three engine buttons sit cleanly
	 * inside the drawer's content flow. */
	.rmaps-theme-engine-switch {
		flex: 0 0 100%;
	}
	.rmaps-theme-engine-switch-menu {
		position: static;
		min-width: 0;
		width: 100%;
		margin-top: 6px;
		box-shadow: none;
		border-radius: var(--rmaps-theme-radius-md);
		transform: none;
		/* `display: none` when closed so the inline-flow menu doesn't
		 * reserve layout space inside the drawer between taps. The
		 * desktop popover used `visibility: hidden + opacity: 0` to
		 * keep the box reflow-stable for transitions, but on mobile
		 * the menu is `position: static` (in flow) — visibility:hidden
		 * would leave an empty gap between the pill and the CTAs
		 * below until the user taps to open. */
		display: none;
	}
	.rmaps-theme-engine-switch.is-open .rmaps-theme-engine-switch-menu {
		display: block;
	}
	.rmaps-theme-engine-switch-menu::before { display: none; }
	.rmaps-theme-engine-switch-menu .rmaps-theme-engine-button {
		font-size: 1rem;
		padding: 12px 14px;
	}

	.rmaps-theme-footer-inner {
		grid-template-columns: 1fr;
		text-align: left;
	}
}

@media (max-width: 540px) {
	/* Scope label-hide to the STANDALONE `[rmaps-engine-switcher]`
	 * shortcode container — the header pill's dropdown menu lives in
	 * its own drawer with plenty of horizontal space, so labels stay
	 * visible there. Without this scoping the dropdown showed three
	 * icons and no engine names on narrow phones. */
	.rmaps-theme-engine-switcher .rmaps-theme-engine-button-label { display: none; }
	.rmaps-theme-engine-switcher .rmaps-theme-engine-button { padding: 9px 12px; }
	.rmaps-theme-cta-buy,
	.rmaps-theme-cta-submit { padding: 9px 14px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ====================================================
 * Gutenberg Columns — responsive stacking
 *
 * WordPress on this install lazy-loads block CSS per-block, and on
 * pages where the Columns block isn't auto-detected the structural
 * `wp-block-library-css` stylesheet (which carries the "Stack on
 * mobile" + flex-basis rules) doesn't get enqueued. Re-declare the
 * essentials here so the editor toggle actually does something on
 * the front-end regardless of what core decides to ship.
 *
 * Two markup variants are handled:
 *   - Modern Gutenberg (>= WP 5.7): stacking is the DEFAULT — the
 *     opt-out is `.is-not-stacked-on-mobile`.
 *   - Legacy Gutenberg: stacking is opt-IN via `.is-stacked-on-mobile`.
 *     The metabox toggle in the editor (the one labelled "Stack on
 *     mobile") writes whichever variant the user's block version uses.
 * ====================================================*/
.wp-block-columns {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--style--block-gap, 24px);
}
.wp-block-columns > .wp-block-column {
	flex-basis: 0;
	flex-grow: 1;
	min-width: 0;
	word-break: break-word;
	overflow-wrap: break-word;
}
@media (max-width: 781px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column,
	.wp-block-columns.is-stacked-on-mobile        > .wp-block-column {
		flex-basis: 100% !important;
	}

	/* Force stacking for Columns blocks that host any plugin mount,
	 * even when the block has `is-not-stacked-on-mobile` set. A 200px-
	 * wide map column is unreadable; the listings sidebar's inline
	 * `width: 300px` overflows past it. Stacking puts each mount on
	 * its own row at full viewport width, which is what every mobile
	 * demo page actually wants. */
	.wp-block-columns:has(.rmaps-react-mount),
	.wp-block-columns:has(.rmaps-react-listings-mount),
	.wp-block-columns:has(.rmaps-react-search-mount) {
		flex-wrap: wrap !important;
	}
	.wp-block-columns:has(.rmaps-react-mount) > .wp-block-column,
	.wp-block-columns:has(.rmaps-react-listings-mount) > .wp-block-column,
	.wp-block-columns:has(.rmaps-react-search-mount) > .wp-block-column {
		flex-basis: 100% !important;
		margin-left: 0 !important;
	}

	/* MapSidebar applies `width: 300px` inline (set by React from the
	 * metabox `sidebar_size` setting). On a < 300 px column the
	 * sidebar would overflow into the next column / off-screen.
	 * Override to the full column width on mobile — the absolute
	 * positioning + `top:0; bottom:0` already handle height. */
	.wp-block-column .rmaps-react-listings-mount .rmaps-react-sidebar {
		width: 100% !important;
		max-width: 100% !important;
	}
}
@media (min-width: 782px) {
	.wp-block-columns { flex-wrap: nowrap; }
	.wp-block-columns > .wp-block-column[style*="flex-basis"] { flex-grow: 0; }
}
