/**
 * community.memberside.app — design layer.
 *
 * Loaded after skin.css. skin.css brings every plugin (Ultimate Member, BuddyPress,
 * WooCommerce, ForumWP, JobBoardWP, The Events Calendar, Better Messages, myCred,
 * Gravity Forms) onto Twenty Twenty-Five's colour presets; this file decides what those
 * presets are and how the site looks: a marketplace — one green, deep-green ink,
 * green-grey neutrals, Inter, flat bordered cards, pill buttons, no gradients, no glass,
 * no emoji.
 *
 * Written !important-first on purpose. Each plugin ships its own stylesheet, several load
 * after this one, and UM 3 prints its palette inline on <body>; a declaration that can
 * lose to load order is a declaration that will, on some screen.
 *
 * Dark mode is the existing switch: `data-ms-theme="dark|light"` on <html> from the Theme
 * Toggle, falling back to the operating system. Every dark rule is written for both.
 *
 * 1. Font            5. Header              9. Cards and tiles
 * 2. Tokens (light)  6. Sections and bands  10. Chips
 * 3. Tokens (dark)   7. Homepage hero       11. Forms
 * 4. Base type       8. Buttons             12. Plugins, footer, responsive
 */

/* ─── 1. Font ────────────────────────────────────────────────────────────── */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/inter-latin.woff2") format("woff2-variations"), url("fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/inter-latin-ext.woff2") format("woff2-variations"), url("fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ─── 2. Tokens: light ───────────────────────────────────────────────────── */

:root {
	--up-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--up-green: #14a800;
	--up-green-hover: #108a00;
	--up-green-press: #0d6d00;
	--up-on-green: #fff;
	--up-green-soft: #e6f6e2;
	--up-ink: #001e00;
	--up-muted: #5e6d55;
	--up-border: #d5e0d5;
	--up-border-strong: #9aaa97;
	--up-tint: #f2f7f2;
	--up-tint-2: #e4ebe4;
	--up-surface: #fff;
	--up-raised: #f9fbf9;
	--up-deep: #001e00;
	--up-footer: #181818;
	--up-danger: #c4291c;
	--up-star: #14a800;
	--up-focus: rgb(20 168 0 / 32%);
	--up-radius: 16px;
	--up-radius-sm: 8px;

	/* Twenty Twenty-Five's presets, which every block and skin.css read. */
	--wp--preset--color--base: var(--up-surface) !important;
	--wp--preset--color--contrast: var(--up-ink) !important;
	--wp--preset--color--accent-1: var(--up-green) !important;
	--wp--preset--color--accent-2: var(--up-tint) !important;
	--wp--preset--color--accent-3: var(--up-deep) !important;
	--wp--preset--color--accent-4: var(--up-muted) !important;
	--wp--preset--color--accent-5: var(--up-tint) !important;
	--wp--preset--color--accent-6: var(--up-border) !important;

	/* Every font the theme declares resolves to Inter. */
	--wp--preset--font-family--manrope: var(--up-font) !important;
	--wp--preset--font-family--fira-sans: var(--up-font) !important;
	--tec-font-family-sans-serif: var(--up-font) !important;
	--tec-font-family-base: var(--up-font) !important;

	/* skin.css and the community blocks. */
	--ms-accent: var(--up-green) !important;
	--ms-accent-text: var(--up-on-green) !important;
	--ms-radius: var(--up-radius) !important;
	--ms-radius-sm: var(--up-radius-sm) !important;
	--ms-site-shadow: none !important;
	--ms-shadow: none !important;
	--ms-surface: var(--up-surface) !important;
	--ms-text: var(--up-ink) !important;
	--ms-muted: var(--up-muted) !important;
	--ms-border: var(--up-border) !important;
	--ms-raised: var(--up-raised) !important;
	--ms-success: var(--up-green) !important;

	color-scheme: light;
}

/* Ultimate Member 3 prints its palette inline on <body>; `:root body` outranks it. */
:root body {
	--um-primary-25-bg: #f2fbf0 !important;
	--um-primary-50-bg: #e6f6e2 !important;
	--um-primary-100-bg: #ccedc4 !important;
	--um-primary-200-bg: #a3df95 !important;
	--um-primary-300-bg: #73cc5e !important;
	--um-primary-400-bg: #3fb52a !important;
	--um-primary-500-bg: #1eaa0d !important;
	--um-primary-500-a-24: rgb(20 168 0 / 24%) !important;
	--um-primary-600-bg: #14a800 !important;
	--um-primary-600-fg: #fff !important;
	--um-primary-700-bg: #108a00 !important;
	--um-primary-700-fg: #fff !important;
	--um-primary-800-bg: #0d6d00 !important;
	--um-primary-800-fg: #fff !important;
	--um-primary-900-bg: #0a5200 !important;
	--um-primary-900-fg: #fff !important;
}

/* ─── 3. Tokens: dark ────────────────────────────────────────────────────── */

:root[data-ms-theme="dark"] {
	--up-green: #4fc24a;
	--up-green-hover: #6fd36a;
	--up-green-press: #3aa835;
	--up-on-green: #001e00;
	--up-green-soft: #1c2f1b;
	--up-ink: #f2f7f2;
	--up-muted: #a3b29f;
	--up-border: #2e3a2e;
	--up-border-strong: #4a5a48;
	--up-tint: #1a211a;
	--up-tint-2: #263026;
	--up-surface: #121512;
	--up-raised: #171c17;
	--up-deep: #0b130b;
	--up-footer: #0c0e0c;
	--up-danger: #ff6b5e;
	--up-star: #4fc24a;
	--up-focus: rgb(79 194 74 / 35%);
	color-scheme: dark !important;
}

@media (prefers-color-scheme: dark) {

	:root:not([data-ms-theme="light"]) {
		--up-green: #4fc24a;
		--up-green-hover: #6fd36a;
		--up-green-press: #3aa835;
		--up-on-green: #001e00;
		--up-green-soft: #1c2f1b;
		--up-ink: #f2f7f2;
		--up-muted: #a3b29f;
		--up-border: #2e3a2e;
		--up-border-strong: #4a5a48;
		--up-tint: #1a211a;
		--up-tint-2: #263026;
		--up-surface: #121512;
		--up-raised: #171c17;
		--up-deep: #0b130b;
		--up-footer: #0c0e0c;
		--up-danger: #ff6b5e;
		--up-star: #4fc24a;
		--up-focus: rgb(79 194 74 / 35%);
		color-scheme: dark !important;
	}
}

/*
 * skin.css sets its own dark presets on the same selectors; ours are !important and come
 * later, so the presets re-point at the --up-* values above in both themes.
 */
:root[data-ms-theme="dark"] {
	--wp--preset--color--base: var(--up-surface) !important;
	--wp--preset--color--contrast: var(--up-ink) !important;
	--wp--preset--color--accent-1: var(--up-green) !important;
	--wp--preset--color--accent-2: var(--up-tint) !important;
	--wp--preset--color--accent-3: var(--up-deep) !important;
	--wp--preset--color--accent-4: var(--up-muted) !important;
	--wp--preset--color--accent-5: var(--up-tint) !important;
	--wp--preset--color--accent-6: var(--up-border) !important;
	--ms-accent-text: var(--up-on-green) !important;
}

@media (prefers-color-scheme: dark) {

	:root:not([data-ms-theme="light"]) {
		--wp--preset--color--base: var(--up-surface) !important;
		--wp--preset--color--contrast: var(--up-ink) !important;
		--wp--preset--color--accent-1: var(--up-green) !important;
		--wp--preset--color--accent-2: var(--up-tint) !important;
		--wp--preset--color--accent-3: var(--up-deep) !important;
		--wp--preset--color--accent-4: var(--up-muted) !important;
		--wp--preset--color--accent-5: var(--up-tint) !important;
		--wp--preset--color--accent-6: var(--up-border) !important;
		--ms-accent-text: var(--up-on-green) !important;
	}
}

:root[data-ms-theme="dark"] body {
	--um-primary-25-bg: #142114 !important;
	--um-primary-50-bg: #1c2f1b !important;
	--um-primary-100-bg: #22401f !important;
	--um-primary-500-a-24: rgb(79 194 74 / 24%) !important;
	--um-primary-600-bg: #4fc24a !important;
	--um-primary-600-fg: #001e00 !important;
	--um-primary-700-bg: #6fd36a !important;
	--um-primary-700-fg: #001e00 !important;
	--um-gray-25: #101310 !important;
	--um-gray-50: #121512 !important;
	--um-gray-100: #1a211a !important;
	--um-gray-200: #222922 !important;
	--um-gray-300: #2e3a2e !important;
	--um-gray-400: #5d6b5a !important;
	--um-gray-500: #a3b29f !important;
	--um-gray-600: #bfcbbb !important;
	--um-gray-700: #d5dfd2 !important;
	--um-gray-800: #e4ebe4 !important;
	--um-gray-900: #f2f7f2 !important;
}

@media (prefers-color-scheme: dark) {

	:root:not([data-ms-theme="light"]) body {
		--um-primary-25-bg: #142114 !important;
		--um-primary-50-bg: #1c2f1b !important;
		--um-primary-100-bg: #22401f !important;
		--um-primary-500-a-24: rgb(79 194 74 / 24%) !important;
		--um-primary-600-bg: #4fc24a !important;
		--um-primary-600-fg: #001e00 !important;
		--um-primary-700-bg: #6fd36a !important;
		--um-primary-700-fg: #001e00 !important;
		--um-gray-25: #101310 !important;
		--um-gray-50: #121512 !important;
		--um-gray-100: #1a211a !important;
		--um-gray-200: #222922 !important;
		--um-gray-300: #2e3a2e !important;
		--um-gray-400: #5d6b5a !important;
		--um-gray-500: #a3b29f !important;
		--um-gray-600: #bfcbbb !important;
		--um-gray-700: #d5dfd2 !important;
		--um-gray-800: #e4ebe4 !important;
		--um-gray-900: #f2f7f2 !important;
	}
}

/* ─── 4. Base type ───────────────────────────────────────────────────────── */

body {
	background: var(--up-surface) !important;
	color: var(--up-ink) !important;
	font-family: var(--up-font) !important;
	font-size: 1rem;
	line-height: 1.55;
	font-feature-settings: "cv11", "ss01";
	text-rendering: optimizelegibility;
}

/*
 * Inherited by the plugin trees. Containers only — never `*` — so icon fonts (UM's,
 * Font Awesome, dashicons) keep their own family on their own elements.
 */
:is(button, input, select, textarea, .wp-element-button, .wp-block-button__link),
:is(.um, .um-modal, .um-popup, .buddypress-wrap, #buddypress, .bp-messages-wrap, .bm-messages-wrap, .fmwp, .jb, .tribe-common, .tribe-events, .woocommerce, .wc-block-components-product-name, .gform_wrapper, .mycred-leaderboard, .ms-megamenu) {
	font-family: var(--up-font) !important;
}

:is(h1, h2, h3, h4, h5, h6, .wp-block-heading, .wp-block-post-title, .wp-block-site-title) {
	font-family: var(--up-font) !important;
	font-weight: 600 !important;
	letter-spacing: -0.025em !important;
	color: inherit;
}

h1,
.wp-block-heading.has-xx-large-font-size {
	font-size: clamp(2rem, 1.25rem + 3vw, 3.5rem) !important;
	line-height: 1.08 !important;
	letter-spacing: -0.035em !important;
}

h2.has-x-large-font-size,
.ms-section-head h2 {
	font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem) !important;
	line-height: 1.15 !important;
}

.ms-lead {
	max-width: 46rem;
	color: var(--up-muted) !important;
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem) !important;
	line-height: 1.55 !important;
}

/*
 * Links in the site's own copy read green. The plugins' trees (profile tabs, forum and
 * job lists, the shop) and any navigation keep their own colours, set further down.
 */
main :is(p, li, td, .wp-block-post-excerpt) a:not(.wp-element-button):not(.wp-block-button__link):not([class*="button"]):not(:is(.um, .buddypress-wrap, #buddypress, .fmwp, .jb, .tribe-common, .tribe-events, .woocommerce, .wc-block-components-product-name, nav, .ms-megamenu, .ms-popular) a) {
	color: var(--up-green);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

main :is(p, li, td) a:not(.wp-element-button):not([class*="button"]):not(:is(.um, .buddypress-wrap, #buddypress, .fmwp, .jb, .tribe-common, .woocommerce, nav) a):hover {
	color: var(--up-green-hover);
}

/* List titles in the plugins: ink, no underline, green on hover — the marketplace list. */
:is(.fmwp, .jb, .tribe-common) a:not([class*="button"]):not(.tribe-common-c-btn) {
	text-decoration: none !important;
}

:is(.fmwp, .jb) a:not([class*="button"]):hover {
	color: var(--up-green) !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

::selection {
	background: var(--up-green-soft);
	color: var(--up-ink);
}

:focus-visible {
	outline: 2px solid var(--up-green) !important;
	outline-offset: 2px !important;
}

/* ─── 5. Header ──────────────────────────────────────────────────────────── */

/*
 * Solid, with one hairline under it. The backdrop filter stays declared: it makes the
 * header the containing block for the mega menu's fixed panels (see skin.css), and over
 * an opaque background it draws nothing.
 */
.ms-site-header {
	background: var(--up-surface) !important;
	border-bottom: 1px solid var(--up-border) !important;
	box-shadow: none !important;
}

.ms-site-header .ms-megamenu__trigger,
.ms-site-header .ms-megamenu__item-link {
	font-size: 0.9375rem !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
}

.ms-site-header .ms-megamenu:not([data-ms-mode="mobile"]) :is(.ms-megamenu__trigger, .ms-megamenu__item-link) {
	position: relative;
}

.ms-site-header .ms-megamenu:not([data-ms-mode="mobile"]) :is(.ms-megamenu__trigger, .ms-megamenu__item-link)::after {
	content: "";
	position: absolute;
	left: 0.5rem;
	right: 0.5rem;
	bottom: -0.35rem;
	height: 2px;
	border-radius: 2px;
	background: var(--up-green);
	transform: scaleX(0);
	transition: transform 0.15s ease;
}

.ms-site-header .ms-megamenu:not([data-ms-mode="mobile"]) :is(.ms-megamenu__trigger[aria-expanded="true"], .ms-megamenu__trigger:hover, .ms-megamenu__item-link:hover)::after {
	transform: scaleX(1);
}

.ms-site-header .ms-megamenu {
	--ms-megamenu-trigger-color-hover: var(--up-green) !important;
	--ms-megamenu-panel-radius: var(--up-radius) !important;
	--ms-megamenu-panel-shadow: 0 12px 32px rgb(0 30 0 / 12%) !important;
	--ms-megamenu-link-hover-bg: var(--up-tint) !important;
	--ms-megamenu-accent: var(--up-green) !important;
	--ms-megamenu-on-accent: var(--up-on-green) !important;
}

.ms-site-header .ms-megamenu__link-title {
	font-weight: 600 !important;
}

/*
 * The header search is a round icon that opens into a field. Seven menu items leave no
 * room for a standing field below very wide screens, so the box is 40px at rest and grows
 * leftwards over the menu while it has focus — one tap (or Tab) and you are typing. The
 * input fills the box the whole time, so a click anywhere on the icon focuses it; the
 * submit button only appears once there is a field to submit.
 */
.ms-site-header .ms-header-search {
	position: relative !important;
	flex: none !important;
	width: 2.5rem !important;
	height: 2.5rem !important;
	margin: 0 !important;
}

.ms-site-header .ms-header-search .wp-block-search__inside-wrapper {
	position: absolute !important;
	top: 0;
	right: 0;
	z-index: 5;
	width: 2.5rem !important;
	height: 2.5rem !important;
	padding: 0 !important;
	border: 1px solid var(--up-border) !important;
	border-radius: 999px !important;
	background: var(--up-surface) !important;
	overflow: hidden;
	transition: width 0.2s ease, border-color 0.15s ease;
}

.ms-site-header .ms-header-search .wp-block-search__inside-wrapper::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0.6875rem;
	width: 1.125rem;
	height: 1.125rem;
	background: currentcolor;
	color: var(--up-ink);
	transform: translateY(-50%);
	pointer-events: none;
	-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' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%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' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ms-site-header .ms-header-search .wp-block-search__input {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	height: 100% !important;
	padding: 0 0.75rem 0 2.5rem !important;
	border: 0 !important;
	background: transparent !important;
	color: transparent !important;
	font-size: 0.875rem !important;
	cursor: pointer;
	outline: none !important;
}

.ms-site-header .ms-header-search .wp-block-search__input::placeholder {
	color: transparent !important;
}

.ms-site-header .ms-header-search .wp-block-search__button {
	display: none !important;
}

.ms-site-header .ms-header-search .wp-block-search__inside-wrapper:hover {
	border-color: var(--up-border-strong) !important;
	background: var(--up-tint) !important;
}

.ms-site-header .ms-header-search .wp-block-search__inside-wrapper:focus-within {
	width: min(22rem, calc(100vw - 2rem)) !important;
	border: 2px solid var(--up-green) !important;
	background: var(--up-surface) !important;
	box-shadow: 0 8px 24px rgb(0 30 0 / 12%) !important;
}

.ms-site-header .ms-header-search .wp-block-search__inside-wrapper:focus-within .wp-block-search__input {
	padding-right: 2.75rem !important;
	color: var(--up-ink) !important;
	cursor: text;
}

.ms-site-header .ms-header-search .wp-block-search__inside-wrapper:focus-within .wp-block-search__input::placeholder {
	color: var(--up-muted) !important;
}

.ms-site-header .ms-header-search .wp-block-search__inside-wrapper:focus-within .wp-block-search__button {
	display: grid !important;
	position: absolute;
	top: 50%;
	right: 0.25rem;
	width: 2rem !important;
	height: 2rem !important;
	border: 0 !important;
	background: var(--up-green) !important;
	color: var(--up-on-green) !important;
	transform: translateY(-50%);
}

.ms-site-header .ms-theme-toggle__button {
	border-color: var(--up-border) !important;
}

/* Sign-up in the header is the green pill; signing in is a text link. */
.ms-site-header .ms-user-menu__join {
	display: inline-flex !important;
	align-items: center !important;
	height: 2.5rem !important;
	min-height: 0 !important;
	padding: 0 1.25rem !important;
	font-size: 0.9375rem !important;
	line-height: 1 !important;
	box-sizing: border-box !important;
	white-space: nowrap;
	border-radius: 999px !important;
	background: var(--up-green) !important;
	color: var(--up-on-green) !important;
	font-weight: 500 !important;
}

.ms-site-header .ms-user-menu__join:hover {
	background: var(--up-green-hover) !important;
}

@media (max-width: 600px) {

	.ms-site-header .ms-user-menu__join {
		height: 2.25rem !important;
		padding: 0 1rem !important;
		font-size: 0.875rem !important;
	}

	.ms-site-header .ms-megamenu__toggle {
		min-height: 2.25rem !important;
		font-size: 0.875rem !important;
	}
}

.ms-site-header .ms-user-menu__signin {
	color: var(--up-ink) !important;
	font-weight: 500 !important;
}

.ms-site-header .ms-user-menu__panel,
.ms-site-header .wc-block-mini-cart__drawer .components-modal__content {
	border: 1px solid var(--up-border) !important;
	border-radius: var(--up-radius) !important;
	box-shadow: 0 12px 32px rgb(0 30 0 / 12%) !important;
}

/* ─── 6. Sections and bands ──────────────────────────────────────────────── */

/* No coloured haze behind heroes. */
.ms-hero::before {
	display: none !important;
}

.ms-hero {
	background: var(--up-surface) !important;
	overflow: visible !important;
}

/* A plain line of green text — not a pill with a dot. */
p.ms-eyebrow:not(.ms-center) {
	width: auto !important;
}

.ms-eyebrow {
	display: block !important;
	gap: 0 !important;
	margin-bottom: 0.75rem !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	color: var(--up-green) !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.ms-band {
	background: var(--up-tint) !important;
	border-block: 0 !important;
}

/*
 * The deep-green band (pricing, the closing call to action): the presets re-point on the
 * band itself, so everything inside — cards, buttons, text — reads light on green.
 */
.ms-band--dark:not(.ms-site-footer),
.ms-cta {
	--wp--preset--color--base: #001e00 !important;
	--wp--preset--color--contrast: #fff !important;
	--wp--preset--color--accent-1: #6fda44 !important;
	--wp--preset--color--accent-4: #b7c7b3 !important;
	--wp--preset--color--accent-5: rgb(255 255 255 / 6%) !important;
	--wp--preset--color--accent-6: rgb(255 255 255 / 16%) !important;
	--up-green: #6fda44;
	--up-green-hover: #8de56a;
	--up-on-green: #001e00;
	--up-ink: #fff;
	--up-muted: #b7c7b3;
	--up-border: rgb(255 255 255 / 16%);
	--up-surface: #001e00;
	--up-raised: rgb(255 255 255 / 4%);
	--up-tint: rgb(255 255 255 / 6%);
	--ms-accent: #6fda44 !important;
	--ms-accent-text: #001e00 !important;
	--ms-surface: rgb(255 255 255 / 4%) !important;
	--ms-text: #fff !important;
	--ms-muted: #b7c7b3 !important;
	--ms-border: rgb(255 255 255 / 16%) !important;
	--ms-raised: rgb(255 255 255 / 6%) !important;
	background: #001e00 !important;
	color: #fff !important;
}

:root[data-ms-theme="dark"] :is(.ms-band--dark:not(.ms-site-footer), .ms-cta) {
	background: #0b1f0b !important;
}

@media (prefers-color-scheme: dark) {

	:root:not([data-ms-theme="light"]) :is(.ms-band--dark:not(.ms-site-footer), .ms-cta) {
		background: #0b1f0b !important;
	}
}

.ms-section-head .wp-block-heading {
	margin-top: 0.25rem !important;
}

/*
 * Left-aligned to the wide column, the way a marketplace page reads. Twenty Twenty-Five's
 * constrained layout centres every child at the 760px content width, so a left-aligned
 * heading sat in a centred column, out of line with the cards beneath it. Section heads
 * and page-hero copy take the wide width; long lines are held back with padding, which
 * the layout's auto margins cannot centre.
 */
.is-layout-constrained > .ms-section-head,
.ms-hero:not(.ms-hero--split) > :not(.alignfull):not(.alignwide) {
	max-width: var(--wp--style--global--wide-size, 1240px) !important;
	box-sizing: border-box !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.ms-hero:not(.ms-hero--split) > .ms-lead,
.ms-cta > .ms-lead {
	padding-right: max(0px, calc(100% - 46rem)) !important;
}

.ms-hero:not(.ms-hero--split) > .wp-block-heading {
	padding-right: max(0px, calc(100% - 22ch)) !important;
}

.ms-cta > :not(.alignfull):not(.alignwide) {
	max-width: var(--wp--style--global--wide-size, 1240px) !important;
	box-sizing: border-box !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* ─── 7. Homepage hero ───────────────────────────────────────────────────── */

.ms-hero--split .wp-block-heading {
	max-width: 15ch;
}

.ms-hero--split .ms-lead {
	max-width: 36rem;
}

.ms-hero-search {
	max-width: 36rem;
	margin-top: 1.75rem !important;
}

.ms-hero-search .wp-block-search__inside-wrapper {
	height: 3.5rem !important;
	padding: 0.25rem !important;
	border: 2px solid var(--up-border) !important;
	border-radius: 999px !important;
	background: var(--up-surface) !important;
	transition: border-color 0.15s ease;
}

.ms-hero-search .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--up-green) !important;
	box-shadow: 0 0 0 4px var(--up-focus) !important;
}

.ms-hero-search .wp-block-search__input {
	min-width: 0 !important;
	padding: 0 1rem !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--up-ink) !important;
	font-size: 1rem !important;
	outline: none !important;
}

.ms-hero-search .wp-block-search__button {
	margin: 0 !important;
	padding: 0 1.5rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--up-green) !important;
	color: var(--up-on-green) !important;
	font-weight: 500 !important;
}

.ms-hero-search .wp-block-search__button:hover {
	background: var(--up-green-hover) !important;
}

.ms-popular {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem !important;
	font-size: 0.875rem !important;
}

.ms-popular > span {
	margin-right: 0.25rem;
	color: var(--up-muted);
	font-weight: 500;
}

.ms-popular a {
	display: inline-flex;
	align-items: center;
	height: 2rem;
	padding: 0 0.875rem;
	border: 1px solid var(--up-border);
	border-radius: 999px;
	background: var(--up-surface);
	color: var(--up-ink) !important;
	font-weight: 500;
	text-decoration: none !important;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ms-popular a:hover {
	border-color: var(--up-green);
	background: var(--up-tint);
}

.ms-hero--split .wp-block-buttons {
	margin-top: 1.5rem !important;
}

/* The people card beside the copy: real members, not an illustration. */
.ms-hero__people {
	padding: 1.25rem !important;
	border: 1px solid var(--up-border) !important;
	border-radius: var(--up-radius) !important;
	background: var(--up-raised) !important;
}

.ms-hero__people-title {
	margin: 0 0 1rem !important;
	font-size: 0.9375rem !important;
}

.ms-hero__people .ms-grid {
	gap: 0.75rem !important;
}

@media (max-width: 781px) {

	.ms-hero__people {
		margin-top: 0.5rem;
	}

	.ms-hero-search .wp-block-search__inside-wrapper {
		height: 3.25rem !important;
	}

	.ms-hero-search .wp-block-search__button {
		padding: 0 1.125rem !important;
	}
}

/* The stats strip under the hero: one bordered row of numbers. */
.ms-stats-strip {
	border-block: 1px solid var(--up-border) !important;
	background: var(--up-surface) !important;
}

.ms-stats-strip .ms-stats {
	gap: 0 !important;
}

.ms-stats-strip .ms-stat {
	padding: 0.5rem 1rem !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	text-align: left !important;
}

.ms-stats-strip .ms-stat__value {
	font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem) !important;
	font-weight: 600 !important;
	letter-spacing: -0.02em !important;
}

.ms-stats-strip .ms-stat__label {
	color: var(--up-muted) !important;
	font-size: 0.8125rem !important;
}

/* ─── 8. Buttons ─────────────────────────────────────────────────────────── */

/*
 * One pill, two weights: filled green, and a 2px green outline. 40px tall, 48px in a
 * hero. Every plugin's primary button comes through skin.css on --ms-accent; this fixes
 * the shape, the type and the hover.
 */
.wp-element-button,
.wp-block-button__link,
.wc-block-components-button:not(.is-link):not(.wc-block-components-panel__button),
.woocommerce :is(a.button, button.button, input.button, #respond input#submit),
.buddypress-wrap :is(.button, input[type="submit"], button[type="submit"]):not(.bp-tooltip):not([class*="link"]),
#buddypress :is(input[type="submit"], .button):not([class*="link"]),
.gform_wrapper .gform_footer :is(input[type="submit"], button),
.tribe-common .tribe-common-c-btn {
	min-height: 2.5rem;
	border-radius: 999px !important;
	font-family: var(--up-font) !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
	text-transform: none !important;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link,
.wp-element-button:not(.is-style-outline):not(.wp-block-search__button),
.woocommerce :is(a.button.alt, button.button.alt),
.wc-block-components-button.contained,
.gform_wrapper .gform_footer :is(input[type="submit"], button) {
	border: 2px solid transparent !important;
	background: var(--up-green) !important;
	color: var(--up-on-green) !important;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover,
.wp-element-button:not(.is-style-outline):not(.wp-block-search__button):hover,
.woocommerce :is(a.button.alt, button.button.alt):hover,
.wc-block-components-button.contained:hover,
.gform_wrapper .gform_footer :is(input[type="submit"], button):hover {
	background: var(--up-green-hover) !important;
	color: var(--up-on-green) !important;
}

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline,
.wc-block-components-button.is-style-outline {
	padding: calc(0.6rem - 2px) calc(1.25rem - 2px) !important;
	border: 2px solid var(--up-green) !important;
	background: transparent !important;
	color: var(--up-green) !important;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button__link.is-style-outline:hover,
.wc-block-components-button.is-style-outline:hover {
	border-color: var(--up-green-hover) !important;
	background: var(--up-green-soft) !important;
	color: var(--up-green-hover) !important;
}

.ms-hero .wp-block-button__link,
.ms-cta .wp-block-button__link {
	min-height: 3rem;
	padding-inline: 1.75rem !important;
	font-size: 1rem !important;
}

.ms-hero .wp-block-button.is-style-outline > .wp-block-button__link,
.ms-cta .wp-block-button.is-style-outline > .wp-block-button__link {
	padding-inline: calc(1.75rem - 2px) !important;
}

/* Submit inputs a plugin leaves browser-grey: the green pill. */
main :is(input[type="submit"], input[type="button"]):not([class*="link"]):not(.wp-block-search__button) {
	min-height: 2.5rem;
	padding: 0 1.25rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--up-green) !important;
	color: var(--up-on-green) !important;
	font-family: var(--up-font) !important;
	font-weight: 500 !important;
	cursor: pointer;
}

main :is(input[type="submit"], input[type="button"]):not([class*="link"]):not(.wp-block-search__button):hover {
	background: var(--up-green-hover) !important;
}

/* The community blocks' own buttons. */
.ms-button {
	border-radius: 999px !important;
	font-weight: 500 !important;
	box-shadow: none !important;
}

.ms-button--primary {
	border: 2px solid transparent !important;
	background: var(--up-green) !important;
	color: var(--up-on-green) !important;
}

.ms-button--primary:hover {
	background: var(--up-green-hover) !important;
}

.ms-button--secondary {
	border: 2px solid var(--up-green) !important;
	background: transparent !important;
	color: var(--up-green) !important;
}

/* UM, ForumWP and JobBoardWP primaries already take --ms-accent; match the hover. */
.um input[type="submit"].um-button:hover,
.um :is(a, button).um-button.um-button-primary:hover,
.fmwp-button:hover,
.jb .jb-button:hover {
	background: var(--up-green-hover) !important;
}

/* ─── 9. Cards and tiles ─────────────────────────────────────────────────── */

/* Flat: one hairline, 16px corners, no shadow, no lift. The border darkens on hover. */
.ms-feature-card,
.ms-query-card,
.ms-card,
.ms-group-card,
.ms-member-card,
.ms-review,
.ms-pricing__plan,
.ms-locked-card,
.ms-demo-login__card,
.ms-demo-login__head,
.ms-hub__tile,
.ms-hub__greeting,
.um .um-box,
.um-directory .um-member,
.um-members-wrapper .um-member,
.um-groups-directory .um-group-item,
.fmwp .fmwp-forums-wrapper,
.fmwp .fmwp-topics-wrapper,
.jb .jb-job-list-wrapper,
.wc-block-product,
.wp-block-woocommerce-product-template > li,
.woocommerce ul.products li.product,
.tribe-events-calendar-list__event-row .tribe-events-calendar-list__event,
.buddypress-wrap .item-list > li .list-wrap {
	border-color: var(--up-border) !important;
	border-radius: var(--up-radius) !important;
	box-shadow: none !important;
	transform: none !important;
	backdrop-filter: none !important;
}

.ms-feature-card,
.ms-query-card,
.ms-card,
.ms-group-card,
.ms-member-card,
.ms-review,
.ms-pricing__plan,
.ms-hub__tile {
	border: 1px solid var(--up-border) !important;
	background: var(--up-surface) !important;
}

:is(.ms-feature-card, .ms-query-card, .ms-card--link, .ms-group-card, .ms-member-card, .ms-hub__tile, .um-directory .um-member, .wc-block-product):hover {
	border-color: var(--up-border-strong) !important;
}

/* The gradients the community blocks paint behind a few cards go flat. */
.ms-locked-card,
.ms-demo-login__card--pro,
.ms-hub__greeting {
	background: var(--up-raised) !important;
}

.ms-demo-login__card--pro,
.ms-pricing__plan.is-highlighted {
	border: 2px solid var(--up-green) !important;
	box-shadow: none !important;
}

.ms-group-card__image--empty {
	background: var(--up-green-soft) !important;
	color: var(--up-green) !important;
}

.ms-locked-card__icon {
	box-shadow: none !important;
	background: var(--up-green-soft) !important;
	color: var(--up-green) !important;
}

/* Category tiles: a title, a line, and an arrow — the homepage's "Browse by category". */
.ms-category-tile {
	position: relative;
	padding: 1.25rem 1.5rem !important;
	border-radius: var(--up-radius) !important;
}

.ms-category-tile .wp-block-heading {
	margin: 0 0 0.375rem !important;
	padding-right: 1.5rem;
	font-size: 1.0625rem !important;
	letter-spacing: -0.01em !important;
}

.ms-category-tile .wp-block-heading a {
	color: var(--up-ink) !important;
	text-decoration: none !important;
}

/* The whole tile is the link target. */
.ms-category-tile .wp-block-heading a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.ms-category-tile::after {
	content: "→";
	position: absolute;
	top: 1.15rem;
	right: 1.25rem;
	color: var(--up-muted);
	font-size: 1.125rem;
	transition: transform 0.15s ease, color 0.15s ease;
}

.ms-category-tile:hover::after {
	color: var(--up-green);
	transform: translateX(3px);
}

.ms-category-tile p {
	margin: 0 !important;
	color: var(--up-muted) !important;
	font-size: 0.875rem !important;
	line-height: 1.5 !important;
}

.ms-feature-card .ms-feature-icon {
	display: none !important;
}

.ms-query-card .wp-block-post-title a,
.ms-card__title,
.ms-topic__title {
	color: var(--up-ink) !important;
}

.ms-query-card:hover .wp-block-post-title a,
.ms-card--link:hover .ms-card__title {
	color: var(--up-green) !important;
}

/* Reviews: green stars, the marketplace convention. */
.ms-review__stars,
.um-member-rating .star-on-png,
.um-reviews-avg .star-on-png,
.star-rating span::before,
.wc-block-components-product-rating__stars span::before {
	color: var(--up-star) !important;
}

/* ─── 10. Chips ──────────────────────────────────────────────────────────── */

.ms-chip,
.ms-meta-chip,
.ms-pricing__badge,
.ms-user-menu__badge,
.um .um-member-tagline-tag,
.um .um-user-tag,
.jb .jb-job-type,
.wp-block-post-terms a,
.tag-cloud-link {
	display: inline-flex !important;
	align-items: center;
	padding: 0.2rem 0.65rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--up-tint-2) !important;
	color: var(--up-ink) !important;
	font-size: 0.8125rem !important;
	font-weight: 500 !important;
	text-decoration: none !important;
}

.ms-chip--accent,
.ms-meta-chip {
	background: var(--up-green-soft) !important;
	color: var(--up-green-press) !important;
}

:root[data-ms-theme="dark"] :is(.ms-chip--accent, .ms-meta-chip) {
	color: var(--up-green) !important;
}

@media (prefers-color-scheme: dark) {

	:root:not([data-ms-theme="light"]) :is(.ms-chip--accent, .ms-meta-chip) {
		color: var(--up-green) !important;
	}
}

/* The highlighted plan's ribbon: solid green, after the chip rules so it outranks them. */
.ms-pricing .ms-pricing__plan.is-highlighted .ms-pricing__badge,
.ms-pricing__grid .ms-pricing__plan.is-highlighted .ms-pricing__badge {
	background: var(--up-green) !important;
	color: var(--up-on-green) !important;
}

/* ─── 11. Forms ──────────────────────────────────────────────────────────── */

/*
 * Inputs: 8px corners, a 2px quiet border that turns green with a soft ring on focus.
 * The header and hero searches draw their own boxes and are left out.
 */
.wp-site-blocks :is(input, select, textarea):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="image"]):not(.wp-block-search__input):not([class*="choices__input"]):not(.select2-search__field),
.um :is(input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"], input[type="number"], textarea, select):not([class*="choices__input"]):not(.select2-search__field),
.um .choices__inner,
.um .select2-container .select2-selection,
.gform_wrapper :is(input, select, textarea):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
	min-height: 2.5rem;
	border: 2px solid var(--up-tint-2) !important;
	border-radius: var(--up-radius-sm) !important;
	background-color: var(--up-surface) !important;
	color: var(--up-ink) !important;
	font-family: var(--up-font) !important;
	box-shadow: none !important;
}

.um :is(.choices__input, .select2-search__field) {
	min-height: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.um .choices.is-focused .choices__inner {
	border-color: var(--up-green) !important;
	box-shadow: 0 0 0 3px var(--up-focus) !important;
}

/* Selects size to their text rather than to a fixed line height that clips it. */
.wp-site-blocks select:not([multiple]),
.um select:not([multiple]) {
	height: auto !important;
	min-height: 2.5rem !important;
	padding-top: 0.5rem !important;
	padding-bottom: 0.5rem !important;
	line-height: 1.4 !important;
}

.wp-site-blocks textarea,
.um textarea,
.gform_wrapper textarea {
	min-height: 6rem;
}

.wp-site-blocks :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not(.wp-block-search__input):focus,
.um :is(input, textarea, select):focus,
.gform_wrapper :is(input, select, textarea):focus {
	border-color: var(--up-green) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px var(--up-focus) !important;
}

:is(input[type="checkbox"], input[type="radio"], input[type="range"], progress) {
	accent-color: var(--up-green) !important;
}

:is(.um, .gform_wrapper, .wp-site-blocks) :is(label, .um-field-label, .gfield_label) {
	color: var(--up-ink) !important;
	font-weight: 500 !important;
}

/* ─── 12. Plugins ────────────────────────────────────────────────────────── */

/* Ultimate Member: profile tabs are ink, the current one green and underlined. */
.um .um-tabs-wrapper .um-tab > a.um-link,
.um-profile .um-profile-nav-item a,
.um-profile .um-profile-subnav a {
	color: var(--up-ink) !important;
	font-weight: 500 !important;
	text-decoration: none !important;
}

.um .um-tabs-wrapper .um-tab > a.um-link:hover,
.um .um-tabs-wrapper .um-tab.um-tab-current > a.um-link,
.um-profile .um-profile-subnav a.active {
	color: var(--up-green) !important;
}
.um-profile .um-profile-nav-item.active a,
.um-profile .um-profile-nav-item a:hover {
	background: transparent !important;
	color: var(--up-green) !important;
	box-shadow: inset 0 -2px 0 var(--up-green) !important;
}

.um-account-side li a.current,
.um-account-side li a.current:hover {
	background: var(--up-green-soft) !important;
	color: var(--up-ink) !important;
}

/*
 * Ultimate Member — a single group (/um-groups/<slug>/).
 *
 * UM Groups draws the page as one directory card stretched to full width, inside a
 * second bordered box: the picture flush to the edge, the name at h1 size, the meta as
 * a bare list and the description running edge to edge. Here it is one profile-style
 * card — picture, name and badge, a row of quiet meta, the action top right, the
 * description under a rule — with the tabs and the discussion beneath it.
 */
.um-groups-single {
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	padding: 0 !important;
	box-shadow: none !important;
}

.um-groups-single .um-group-single-header .um-groups-directory {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}

.um-groups-single .um-group-single-header .um-group-item {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: clamp(1rem, 3vw, 1.75rem) !important;
	border: 1px solid var(--up-border) !important;
	border-radius: var(--up-radius) !important;
	background: var(--up-surface) !important;
	box-shadow: none !important;
}

.um-groups-single .um-group-item-columns {
	display: grid !important;
	grid-template-columns: auto minmax(0, 1fr) auto !important;
	align-items: start !important;
	gap: 0 clamp(1rem, 2.5vw, 1.5rem) !important;
}

.um-groups-single a.um-group-image {
	display: block !important;
	width: clamp(4.5rem, 12vw, 7.5rem) !important;
	height: clamp(4.5rem, 12vw, 7.5rem) !important;
	margin: 0 !important;
	overflow: hidden;
	border-radius: 12px !important;
	background: var(--up-tint) !important;
}

.um-groups-single a.um-group-image img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border-radius: 0 !important;
	object-fit: cover !important;
}

.um-groups-single .um-group-info {
	display: contents !important;
}

.um-groups-single .um-group-meta {
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}

.um-groups-single .um-group-name {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.625rem;
	margin: 0 0 0.75rem !important;
	padding: 0 !important;
	font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem) !important;
	line-height: 1.2 !important;
	letter-spacing: -0.02em !important;
	text-align: left !important;
}

.um-groups-single .um-group-name .um-badge {
	padding: 0.15rem 0.6rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--up-tint-2) !important;
	color: var(--up-ink) !important;
	font-size: 0.75rem !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
}

.um-groups-single .um-group-meta > ul {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center;
	gap: 0.5rem 1.25rem;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.um-groups-single .um-group-meta,
.um-groups-single .um-group-meta > ul {
	text-align: left !important;
	justify-content: flex-start !important;
}

.um-groups-single .um-group-meta > ul > li {
	display: inline-flex !important;
	flex: none !important;
	width: auto !important;
	float: none !important;
	align-items: center;
	gap: 0.375rem;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--up-muted) !important;
	font-size: 0.875rem !important;
	line-height: 1.4 !important;
}

.um-groups-single .um-group-meta > ul > li::before {
	content: none !important;
}

.um-groups-single .um-group-meta :is(.um-avatar, .um-avatars-list) {
	margin: 0 !important;
}

.um-groups-single .um-group-meta .um-avatar img {
	width: 1.5rem !important;
	height: 1.5rem !important;
}

.um-groups-single .um-group-meta .um-online-status-dot {
	display: none !important;
}

.um-groups-single .um-groups-members-count,
.um-groups-single .count-posts span {
	color: var(--up-ink) !important;
	font-weight: 500;
}

.um-groups-single .um-group-action-wrap {
	align-self: start;
	margin: 0 !important;
}

.um-groups-single .um-group-action-wrap :is(ul, li) {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.um-groups-single .um-group-action-wrap :is(a, button) {
	white-space: nowrap;
}

.um-groups-single .um-link-button-primary,
.um-groups-single .um-groups-btn-guest {
	display: inline-flex !important;
	align-items: center;
	height: 2.5rem !important;
	padding: 0 1.25rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--up-green) !important;
	color: var(--up-on-green) !important;
	font-weight: 500 !important;
	text-decoration: none !important;
}

.um-groups-single .um-link-button-primary:hover,
.um-groups-single .um-groups-btn-guest:hover {
	background: var(--up-green-hover) !important;
}

.um-groups-single .um-group-description {
	margin: 1.25rem 0 0 !important;
	padding: 1.25rem 0 0 !important;
	border-top: 1px solid var(--up-border) !important;
	color: var(--up-ink) !important;
	font-size: 0.9375rem !important;
	line-height: 1.6 !important;
	text-align: left !important;
}

/* "Please sign up or sign in to see group activity" — the note after the card. */
.um-groups-single > div:not([class]) {
	margin-top: 1rem !important;
	padding: 0.875rem 1.125rem !important;
	border-radius: 12px !important;
	background: var(--up-tint) !important;
	color: var(--up-muted) !important;
	font-size: 0.9375rem !important;
}

.um-groups-single > div:not([class]) a {
	color: var(--up-green) !important;
	font-weight: 600;
}

/*
 * UM 3 tabs without a dropdown (a group's Discussions / Members) stack into a column of
 * tinted rows on a phone. They stay one scrollable row with the green underline, the
 * way the profile tabs read.
 */
.um .um-tabs-wrapper.um-responsive-tabs-no-dropdown .um-tabs-list > ul {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	gap: 1.5rem !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow-x: auto;
	border-bottom: 1px solid var(--up-border) !important;
	scrollbar-width: none;
}

.um .um-tabs-wrapper.um-responsive-tabs-no-dropdown .um-tab {
	flex: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.um .um-tabs-wrapper .um-tab > a.um-link {
	display: inline-flex !important;
	align-items: center;
	gap: 0.375rem;
	padding: 0.75rem 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	font-size: 0.9375rem !important;
	box-shadow: none !important;
}

.um .um-tabs-wrapper .um-tab.um-tab-current > a.um-link {
	box-shadow: inset 0 -2px 0 var(--up-green) !important;
}

.um-groups-single .um-tabs-wrapper {
	margin-top: 1.5rem !important;
}

/*
 * A profile's tabs. Seventeen of them on a busy profile do not fit one underlined row,
 * and with no padding they ran into each other ("AboutPostsComments…"). They are
 * bordered pills that wrap, the current one green — the same chips as the rest of the
 * site. The sub-tabs under a tab (Albums / Photos, Topics / Replies) are a segmented
 * control. Phones keep Ultimate Member's own dropdown for the main tabs.
 */
/* Only where Ultimate Member shows the row; a narrow profile (.um-ui-xs/s) gets its dropdown. */
.um:is(.um-ui-m, .um-ui-l, .um-ui-xl) .um-tabs-wrapper.um-profile-nav .um-tabs-list > ul {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	gap: 0.5rem !important;
	margin: 0 0 1.5rem !important;
	padding: 0 0 1.25rem !important;
	border-bottom: 1px solid var(--up-border) !important;
	list-style: none !important;
}

.um .um-tabs-wrapper.um-profile-nav .um-tab {
	flex: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.um .um-tabs-wrapper.um-profile-nav .um-tab > a.um-link {
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.375rem !important;
	height: 2.25rem !important;
	padding: 0 0.875rem !important;
	border: 1px solid var(--up-border) !important;
	border-radius: 999px !important;
	background: var(--up-surface) !important;
	color: var(--up-ink) !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	white-space: nowrap !important;
	box-shadow: none !important;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.um .um-tabs-wrapper.um-profile-nav .um-tab > a.um-link:hover {
	border-color: var(--up-border-strong) !important;
	background: var(--up-tint) !important;
	color: var(--up-ink) !important;
}

.um .um-tabs-wrapper.um-profile-nav .um-tab.um-tab-current > a.um-link {
	border-color: var(--up-green) !important;
	background: var(--up-green-soft) !important;
	color: var(--up-green-press) !important;
	box-shadow: none !important;
}

:root[data-ms-theme="dark"] .um .um-tabs-wrapper.um-profile-nav .um-tab.um-tab-current > a.um-link {
	color: var(--up-green) !important;
}

@media (prefers-color-scheme: dark) {

	:root:not([data-ms-theme="light"]) .um .um-tabs-wrapper.um-profile-nav .um-tab.um-tab-current > a.um-link {
		color: var(--up-green) !important;
	}
}

/* Counts inside a tab or sub-tab: a small quiet pill. */
.um .um-tabs-wrapper .um-tab .um-badge {
	min-width: 1.25rem;
	height: 1.25rem !important;
	margin: 0 !important;
	padding: 0 0.375rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--up-tint-2) !important;
	color: var(--up-ink) !important;
	font-size: 0.6875rem !important;
	font-weight: 600 !important;
	line-height: 1.25rem !important;
	text-align: center;
}

.um .um-tabs-wrapper .um-tab .um-badge.um-display-none {
	display: none !important;
}

.um .um-tabs-wrapper.um-profile-nav .um-tab.um-tab-current .um-badge {
	background: var(--up-surface) !important;
}

/* Sub-tabs: a segmented control. */
.um .um-tabs-wrapper.um-profile-subnav {
	margin: 0 0 1.25rem !important;
}

.um .um-tabs-wrapper.um-profile-subnav .um-tabs-list > ul {
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	gap: 0.25rem !important;
	margin: 0 !important;
	padding: 0.25rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--up-tint) !important;
	list-style: none !important;
}

.um .um-tabs-wrapper.um-profile-subnav .um-tab {
	flex: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.um .um-tabs-wrapper.um-profile-subnav .um-tab > a.um-link {
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.375rem !important;
	height: 2rem !important;
	padding: 0 1rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--up-muted) !important;
	font-size: 0.8125rem !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	white-space: nowrap !important;
	box-shadow: none !important;
}

.um .um-tabs-wrapper.um-profile-subnav .um-tab > a.um-link:hover {
	color: var(--up-ink) !important;
}

.um .um-tabs-wrapper.um-profile-subnav .um-tab.um-tab-current > a.um-link {
	background: var(--up-surface) !important;
	color: var(--up-ink) !important;
	font-weight: 600 !important;
	box-shadow: 0 1px 2px rgb(0 30 0 / 12%), 0 0 0 1px var(--up-border) !important;
}

/*
 * People lists on a profile (Friends, Followers, Following): a row each — avatar, name in
 * ink, the date quiet — with a compact button that never wraps onto two lines.
 */
.um .um-list .um-list-item {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 0.75rem !important;
	padding: 0.75rem 0 !important;
	border-bottom: 1px solid var(--up-border) !important;
}

.um .um-list .um-list-item .um-small-data {
	min-width: 0;
}

.um .um-list .um-list-item .um-user-display-name {
	color: var(--up-ink) !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	text-decoration: none !important;
}

.um .um-list .um-list-item .um-user-display-name:hover {
	color: var(--up-green) !important;
}

.um .um-list .um-list-item .um-supporting-text {
	color: var(--up-muted) !important;
	font-size: 0.8125rem !important;
}

.um .um-list .um-list-item :is(.um-link-button, .um-button) {
	display: inline-flex !important;
	align-items: center !important;
	height: 2rem !important;
	min-height: 0 !important;
	padding: 0 0.875rem !important;
	border-radius: 999px !important;
	font-size: 0.8125rem !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	white-space: nowrap !important;
}

/* The people search above those lists: field and Clear on one line. */
.um :is(.um-friends-search-wrapper, .um-followers-search-wrapper) {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 0.5rem !important;
	margin: 0 0 0.5rem !important;
}

.um :is(.um-friends-search-wrapper, .um-followers-search-wrapper) input {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: 22rem !important;
}

.um :is(.um-friends-search-wrapper, .um-followers-search-wrapper) .um-button {
	flex: none !important;
	width: auto !important;
	height: 2.5rem !important;
	padding: 0 1rem !important;
}

/* A wall post's head: the name in ink, the date small and quiet. */
.um .um-wall-head .um-small-data,
.um .um-wall-head .um-small-data a {
	color: var(--up-muted) !important;
	font-size: 0.8125rem !important;
	font-weight: 400 !important;
	text-decoration: none !important;
}

.um .um-wall-head .um-small-data a.um-user-display-name {
	color: var(--up-ink) !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
}

.um .um-wall-head .um-small-data a.um-user-display-name:hover {
	color: var(--up-green) !important;
}

.um .um-wall-widget {
	padding: clamp(1rem, 3vw, 1.5rem) !important;
	border: 1px solid var(--up-border) !important;
	border-radius: var(--up-radius) !important;
	background: var(--up-surface) !important;
	box-shadow: none !important;
}

/* Tabs and the discussion, for members. */
.um-groups-single .um-groups-single-tabs {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 0.25rem 1.5rem;
	margin: 1.5rem 0 0 !important;
	padding: 0 !important;
	overflow-x: auto;
	border-bottom: 1px solid var(--up-border) !important;
	background: transparent !important;
	scrollbar-width: none;
}

.um-groups-single .um-groups-single-tabs a {
	display: inline-flex !important;
	align-items: center;
	padding: 0.75rem 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--up-ink) !important;
	font-weight: 500 !important;
	white-space: nowrap;
	text-decoration: none !important;
	box-shadow: none !important;
}

.um-groups-single .um-groups-single-tabs :is(.active, .current, [aria-current]) a,
.um-groups-single .um-groups-single-tabs a:is(.active, .current, [aria-current]),
.um-groups-single .um-groups-single-tabs a:hover {
	color: var(--up-green) !important;
	box-shadow: inset 0 -2px 0 var(--up-green) !important;
}

.um-groups-single .um-group-tab-content-wrap {
	margin-top: 1.5rem !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

@media (max-width: 600px) {

	/* Picture beside the name; the meta and the action drop underneath. */
	.um-groups-single .um-group-item-columns {
		grid-template-columns: auto minmax(0, 1fr) !important;
	}

	.um-groups-single .um-group-action-wrap {
		grid-column: 1 / -1;
		margin-top: 1rem !important;
	}

	.um-groups-single .um-group-action-wrap :is(.actions, ul, li) {
		display: block !important;
		width: 100% !important;
	}

	.um-groups-single .um-group-action-wrap :is(a, button) {
		display: flex !important;
		justify-content: center;
		width: 100% !important;
	}

	.um-groups-single .um-group-meta {
		display: contents !important;
	}

	.um-groups-single .um-group-name {
		align-self: center;
		margin: 0 !important;
	}

	.um-groups-single .um-group-meta > ul {
		grid-column: 1 / -1;
		gap: 0.375rem 1rem;
		margin-top: 1rem !important;
	}
}

/* BuddyPress: a default cover with no picture is a flat tint, not a radial glow. */
.buddypress-wrap #header-cover-image:not([style*="background-image"]) {
	background-image: none !important;
	background-color: var(--up-tint-2) !important;
}

.buddypress-wrap .bp-navs li.selected a,
.buddypress-wrap .bp-navs li.current a {
	background: transparent !important;
	color: var(--up-green) !important;
	box-shadow: inset 0 -2px 0 var(--up-green) !important;
}

/* myCred's top three on the leaderboard: green, not gold gradient. */
.mycred-leaderboard li:nth-child(-n+3)::before {
	background: var(--up-green) !important;
	color: var(--up-on-green) !important;
}

/* WooCommerce: sale badges and prices in the palette. */
.woocommerce span.onsale,
.wc-block-components-product-sale-badge {
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--up-green) !important;
	color: var(--up-on-green) !important;
}

.wc-block-components-product-price,
.woocommerce .price {
	color: var(--up-ink) !important;
	font-weight: 600 !important;
}

/* Tables: one hairline grid, tinted head. */
.wp-site-blocks table:not(.ms-ignore) :is(th, td) {
	border-color: var(--up-border) !important;
}

.wp-site-blocks table:not(.ms-ignore) thead th {
	background: var(--up-tint) !important;
	color: var(--up-ink) !important;
	font-weight: 600 !important;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.ms-site-footer {
	--wp--preset--color--base: var(--up-footer) !important;
	--wp--preset--color--contrast: #fff !important;
	--wp--preset--color--accent-4: #a9b4a6 !important;
	--wp--preset--color--accent-6: rgb(255 255 255 / 14%) !important;
	--ms-accent: #6fda44 !important;
	--ms-accent-text: #001e00 !important;
	background: var(--up-footer) !important;
	color: #e9eee8 !important;
}

.ms-site-footer a:hover {
	color: #6fda44 !important;
}

.ms-site-footer .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: #6fda44 !important;
	color: #6fda44 !important;
}

.ms-site-footer .ms-footer-bottom {
	border-top: 1px solid rgb(255 255 255 / 14%);
	padding-top: 1.5rem;
	color: #a9b4a6;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

/* A short page still ends with the footer on the floor, not halfway up the screen. */
.wp-site-blocks {
	display: flex !important;
	flex-direction: column !important;
	min-height: 100vh;
	min-height: 100dvh;
}

.wp-site-blocks > main {
	flex: 1 0 auto;
}

/* 16px gutters on a phone, growing to 32px. */
:root body {
	--wp--style--root--padding-left: clamp(1rem, 4vw, 2rem) !important;
	--wp--style--root--padding-right: clamp(1rem, 4vw, 2rem) !important;
}

img,
video,
iframe {
	max-width: 100%;
}

.wp-site-blocks :is(.wp-block-table, .woocommerce-cart-form, .shop_table_responsive) {
	max-width: 100%;
	overflow-x: auto;
}

@media (max-width: 781px) {

	/* Category tiles: two to a row on a tablet, one on a phone. */
	.ms-hero ~ .wp-block-group .is-layout-grid:has(> .ms-category-tile) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.ms-stats-strip .ms-stats {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		row-gap: 0.75rem !important;
	}

	.ms-stats-strip .ms-stat {
		padding: 0.25rem 0.5rem !important;
	}
}

@media (max-width: 600px) {

	.ms-hero ~ .wp-block-group .is-layout-grid:has(> .ms-category-tile) {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.ms-category-tile {
		padding: 1rem 1.25rem !important;
	}

	.ms-stats-strip .ms-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.wp-block-buttons > .wp-block-button {
		flex: 1 1 auto;
	}

	.wp-block-buttons > .wp-block-button > .wp-block-button__link {
		width: 100%;
		justify-content: center;
		text-align: center;
	}

	.ms-hero .wp-block-buttons,
	.ms-cta .wp-block-buttons {
		flex-direction: column;
		align-items: stretch !important;
	}
}

@media (prefers-reduced-motion: reduce) {

	* {
		transition: none !important;
	}
}
