/* Docs hub, docs articles, blog index and blog posts (inc/docs-templates.php).
   Everything is scoped under .wpm-docs (plus body.wpm-kb for the page background). Tokens match the
   landing pages, the header and the footer. Content rules use :where() so a post's own scoped CSS
   (the html-block guides) wins over them. */

body.wpm-kb,
body.wpm-kb #wrapper,
body.wpm-kb #main {
	background-color: #FAFAF9;
}

.wpm-docs {
	--wpm-bg: #FAFAF9;
	--wpm-surface: #FFFFFF;
	--wpm-surface-alt: #F5F3F0;
	--wpm-border: #E8E5E1;
	--wpm-border-light: #F0EDEA;
	--wpm-border-strong: #D6D1CB;
	--wpm-text: #1A1918;
	--wpm-text-body: #2B2826;
	--wpm-text-secondary: #6B6560;
	--wpm-text-soft: #4D4843;
	--wpm-primary: #2D7A4F;
	--wpm-primary-dark: #1E5A38;
	--wpm-primary-light: #E8F5EE;
	--wpm-primary-lighter: #F0FAF4;
	--wpm-primary-line: #C8E6D5;
	--wpm-accent: #E8913A;
	--wpm-accent-light: #FFF6EC;
	--wpm-accent-line: #F3D9B8;
	--wpm-accent-text: #8A4A0F;
	--wpm-pro: #5B3FD6;
	--wpm-pro-light: #F3F0FF;
	--wpm-pro-line: #E2DAFF;
	--wpm-radius-sm: 6px;
	--wpm-radius-md: 10px;
	--wpm-radius-lg: 16px;
	--wpm-radius-xl: 24px;
	--wpm-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .05);
	--wpm-focus: 0 0 0 3px rgba(45, 122, 79, .35);
	--wpm-header-h: 72px;
	--wpm-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	font-weight: 400; /* Flatsome's typography sets body to 300 */
	line-height: 1.6;
	color: var(--wpm-text);
	background: var(--wpm-bg);
	text-align: left;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

.wpm-docs *,
.wpm-docs *::before,
.wpm-docs *::after {
	box-sizing: border-box;
}

/* Resets against Flatsome's global element styles. */
.wpm-docs :where(h1, h2, h3, h4, h5, h6) {
	width: auto;
	margin: 0;
	color: var(--wpm-text);
	font-family: inherit;
	font-weight: 700;
	letter-spacing: -.015em;
	text-transform: none;
	text-rendering: optimizeLegibility;
}

.wpm-docs :where(p, ul, ol, dl, figure, blockquote, table) {
	margin: 0;
}

.wpm-docs :where(ul, ol) {
	padding: 0;
	list-style: none;
}

.wpm-docs :where(li) {
	margin: 0;
}

.wpm-docs :where(a) {
	color: var(--wpm-primary-dark);
	text-decoration: none;
}

.wpm-docs :where(a:hover) {
	color: var(--wpm-primary-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wpm-docs :where(strong, b) {
	font-weight: 700;
}

.wpm-docs :where(img) {
	max-width: 100%;
	height: auto;
}

.wpm-docs :where(a, button, input, summary):focus-visible {
	outline: 2px solid var(--wpm-primary);
	outline-offset: 2px;
}

.wpm-docs :where(button) {
	margin: 0;
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: 0;
	line-height: inherit;
	text-transform: none;
	text-shadow: none;
	cursor: pointer;
}

.wpm-docs .wpm-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Links inside running text are underlined, so they read as links without colour alone. */
.wpm-docs :where(p) > a:not([class]),
.wpm-docs .wpm-listing__lead a {
	text-decoration: underline;
	text-decoration-color: rgba(30, 90, 56, .4);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.wpm-docs :where(p) > a:not([class]):hover,
.wpm-docs .wpm-listing__lead a:hover {
	text-decoration-color: currentColor;
}

/* ---- Shared pieces ---- */
.wpm-docs .wpm-wrap {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.wpm-docs .wpm-label {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-label--green,
.wpm-docs .wpm-label--green a {
	color: var(--wpm-primary-dark);
}

.wpm-docs .wpm-dot {
	margin: 0 6px;
	color: #B5AFA8;
}

.wpm-docs .wpm-muted {
	color: var(--wpm-text-secondary);
	font-weight: 400;
}

.wpm-docs .wpm-icon {
	display: inline-block;
	flex: none;
	vertical-align: middle;
}

.wpm-docs .wpm-pill {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0;
	white-space: nowrap;
}

.wpm-docs .wpm-pill--free {
	color: var(--wpm-primary-dark);
	background: var(--wpm-primary-light);
}

.wpm-docs .wpm-pill--pro {
	color: var(--wpm-pro);
	background: var(--wpm-pro-light);
}

.wpm-docs .wpm-pill--accent {
	color: var(--wpm-accent-text);
	background: var(--wpm-accent-light);
}

.wpm-docs .wpm-pill--muted {
	color: var(--wpm-text-secondary);
	background: var(--wpm-surface-alt);
}

.wpm-docs .wpm-pill--todo {
	color: var(--wpm-text-secondary);
	background: var(--wpm-surface);
	border: 1px dashed var(--wpm-border-strong);
}

.wpm-docs .wpm-pill--on-white {
	background: var(--wpm-surface);
}

.wpm-docs .wpm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border-radius: var(--wpm-radius-md);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.wpm-docs .wpm-btn:hover {
	text-decoration: none;
}

.wpm-docs .wpm-btn--primary {
	color: #FFFFFF;
	background: var(--wpm-primary);
}

.wpm-docs .wpm-btn--primary:hover {
	color: #FFFFFF;
	background: var(--wpm-primary-dark);
}

.wpm-docs .wpm-btn--dark {
	color: #FFFFFF;
	background: var(--wpm-text);
}

.wpm-docs .wpm-btn--dark:hover {
	color: #FFFFFF;
	background: #000000;
}

.wpm-docs .wpm-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--wpm-primary-dark);
}

.wpm-docs .wpm-card {
	background: var(--wpm-surface);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-lg);
	padding: 24px 26px;
}

.wpm-docs .wpm-card__title {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 6px;
	font-size: 17px;
	line-height: 1.35;
	letter-spacing: -.005em;
}

.wpm-docs .wpm-card__text {
	margin: 8px 0 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-card__text .wpm-more {
	margin-left: 4px;
}

.wpm-docs .wpm-card--todo {
	background: var(--wpm-surface-alt);
	border-style: dashed;
	border-color: var(--wpm-border-strong);
}

.wpm-docs .wpm-list li a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 10px 0;
	border-top: 1px solid var(--wpm-border-light);
	color: var(--wpm-text);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}

.wpm-docs .wpm-list li:first-child a {
	border-top: 0;
}

.wpm-docs .wpm-list li a:hover {
	color: var(--wpm-primary-dark);
	text-decoration: none;
}

.wpm-docs .wpm-list li a:hover span:first-child {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wpm-docs .wpm-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wpm-docs .wpm-chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--wpm-border);
	border-radius: 100px;
	background: var(--wpm-surface);
	color: var(--wpm-text-soft);
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.2;
}

.wpm-docs a.wpm-chip:hover,
.wpm-docs button.wpm-chip:hover {
	border-color: var(--wpm-border-strong);
	color: var(--wpm-text);
	text-decoration: none;
}

.wpm-docs .wpm-chip.is-on {
	background: var(--wpm-text);
	border-color: var(--wpm-text);
	color: #FFFFFF;
}

.wpm-docs .wpm-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #E8DCCB;
	color: #5C4B35;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .02em;
}

.wpm-docs .wpm-avatar--sm {
	width: 32px;
	height: 32px;
	font-size: 12.5px;
}

.wpm-docs .wpm-byline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

/* ---- Search box ---- */
.wpm-docs .wpm-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	background: var(--wpm-surface);
	border: 1px solid var(--wpm-border-strong);
	border-radius: 12px;
}

.wpm-docs .wpm-search:focus-within {
	border-color: var(--wpm-primary);
	box-shadow: var(--wpm-focus);
}

.wpm-docs .wpm-search__icon {
	flex: none;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-search .wpm-search__input {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--wpm-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	-webkit-appearance: none;
	appearance: none;
}

.wpm-docs .wpm-search .wpm-search__input:focus {
	outline: none;
	box-shadow: none;
	background: transparent;
}

.wpm-docs .wpm-search .wpm-search__input::placeholder {
	color: #7A746E;
	opacity: 1;
}

.wpm-docs .wpm-search__kbd {
	flex: none;
	padding: 2px 8px;
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-sm);
	background: var(--wpm-surface);
	color: var(--wpm-text-secondary);
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	box-shadow: none;
}

.wpm-docs .wpm-search .wpm-search__submit {
	flex: none;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 8px;
	background: var(--wpm-primary);
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 600;
}

.wpm-docs .wpm-search .wpm-search__submit:hover {
	background: var(--wpm-primary-dark);
}

.wpm-docs .wpm-search--hub {
	max-width: 620px;
	height: 56px;
	margin: 0 auto;
	padding: 0 8px 0 20px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 12px rgba(0, 0, 0, .04);
}

.wpm-docs .wpm-search--nav {
	height: 40px;
	padding: 0 4px 0 12px;
	border-color: var(--wpm-border);
	border-radius: var(--wpm-radius-md);
}

.wpm-docs .wpm-search--nav .wpm-search__input {
	font-size: 14px;
}

.wpm-docs .wpm-search--nav .wpm-search__submit {
	position: absolute;
	width: 1px;
	height: 1px;
	min-height: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* ---- Help panel ---- */
.wpm-docs .wpm-help {
	padding-top: 48px;
	padding-bottom: 88px;
}

.wpm-docs .wpm-help__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 28px 32px;
	background: var(--wpm-surface);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-lg);
}

.wpm-docs .wpm-help__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--wpm-primary-light);
	color: var(--wpm-primary-dark);
}

.wpm-docs .wpm-help__body {
	flex: 1 1 auto;
}

.wpm-docs .wpm-help__title {
	font-size: 18px;
	line-height: 1.35;
	letter-spacing: -.005em;
}

.wpm-docs .wpm-help__text {
	font-size: 15px;
	color: var(--wpm-text-secondary);
}

/* ---- Docs hub ---- */
.wpm-docs .wpm-hub__hero {
	background: var(--wpm-primary-lighter);
	border-bottom: 1px solid #DCEFE3;
}

.wpm-docs .wpm-hub__hero-inner {
	padding-top: 64px;
	padding-bottom: 56px;
	text-align: center;
}

.wpm-docs .wpm-hub__hero--compact .wpm-hub__hero-inner {
	padding-top: 48px;
	padding-bottom: 40px;
}

.wpm-docs .wpm-hub__title {
	margin: 10px 0 12px;
	font-size: 44px;
	line-height: 1.15;
	letter-spacing: -.025em;
}

.wpm-docs .wpm-hub__title--sm {
	margin-bottom: 24px;
	font-size: 34px;
}

.wpm-docs .wpm-hub__lead {
	max-width: 560px;
	margin: 0 auto 28px;
	font-size: 18px;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-hub__popular {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 2px 0;
	margin: 18px 0 0;
	font-size: 14px;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-hub__popular > span:first-child {
	margin-right: 6px;
}

.wpm-docs .wpm-hub__popular a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: rgba(30, 90, 56, .35);
	text-underline-offset: 3px;
}

.wpm-docs .wpm-hub__product {
	padding-top: 56px;
}

.wpm-docs .wpm-hub__product-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
}

.wpm-docs .wpm-hub__product-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	height: 44px;
	border-radius: var(--wpm-radius-md);
	background: var(--wpm-primary-light);
	color: var(--wpm-primary-dark);
}

.wpm-docs .wpm-hub__product-icon--accent {
	flex-basis: 40px;
	height: 40px;
	background: var(--wpm-accent-light);
	color: var(--wpm-accent-text);
}

.wpm-docs .wpm-hub__product-title {
	font-size: 26px;
	line-height: 1.2;
}

.wpm-docs .wpm-hub__product-meta {
	font-size: 15px;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-hub__product-meta a {
	white-space: nowrap;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: rgba(30, 90, 56, .35);
	text-underline-offset: 3px;
}

.wpm-docs .wpm-hub__start {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 20px;
	padding: 24px 28px;
	background: var(--wpm-surface);
	border: 1px solid var(--wpm-primary-line);
	border-radius: var(--wpm-radius-lg);
	color: var(--wpm-text);
}

.wpm-docs .wpm-hub__start:hover {
	border-color: var(--wpm-primary);
	box-shadow: var(--wpm-shadow);
	color: var(--wpm-text);
	text-decoration: none;
}

.wpm-docs .wpm-hub__start-tag {
	flex: none;
	padding: 5px 10px;
	border-radius: var(--wpm-radius-sm);
	background: var(--wpm-primary);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.wpm-docs .wpm-hub__start-body {
	flex: 1 1 auto;
	min-width: 0;
}

.wpm-docs .wpm-hub__start-title {
	display: block;
	font-size: 18px;
	line-height: 1.35;
}

.wpm-docs .wpm-hub__start-text {
	display: block;
	font-size: 15px;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-hub__start-time {
	flex: none;
	font-size: 14px;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-hub__start-arrow {
	color: var(--wpm-primary);
}

.wpm-docs .wpm-hub__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}

.wpm-docs .wpm-hub__others {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 20px;
	align-items: start;
	padding-top: 48px;
}

.wpm-docs .wpm-hub__other-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.wpm-docs .wpm-hub__other-head--split {
	justify-content: space-between;
	margin-bottom: 8px;
}

.wpm-docs .wpm-hub__other-title {
	font-size: 19px;
	line-height: 1.25;
	letter-spacing: -.01em;
}

.wpm-docs .wpm-hub__soon .wpm-card__text {
	margin: 0 0 14px;
}

.wpm-docs .wpm-hub__legacy-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 28px;
}

/* ---- Search results ---- */
.wpm-docs .wpm-results {
	max-width: 820px;
	padding-top: 40px;
}

.wpm-docs .wpm-results__count {
	margin-bottom: 16px;
	font-size: 14px;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-results__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wpm-docs .wpm-result {
	position: relative;
	padding: 20px 24px;
	background: var(--wpm-surface);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-lg);
}

.wpm-docs .wpm-result:hover {
	border-color: var(--wpm-border-strong);
}

.wpm-docs .wpm-result__path {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-result__title {
	margin: 4px 0 6px;
	font-size: 19px;
	line-height: 1.3;
}

.wpm-docs .wpm-result__title a {
	color: var(--wpm-text);
}

.wpm-docs .wpm-result__title a::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.wpm-docs .wpm-result__excerpt {
	font-size: 15px;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-results__none {
	padding: 28px 32px;
	background: var(--wpm-surface);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-lg);
}

.wpm-docs .wpm-results__none-title {
	margin-bottom: 8px;
	font-size: 20px;
}

.wpm-docs .wpm-results__none p {
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-results__none p + p {
	margin-top: 12px;
}

/* ---- Pagination (the_posts_pagination) ---- */
.wpm-docs .wpm-paging {
	padding-top: 32px;
}

.wpm-docs .wpm-paging .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.wpm-docs .wpm-paging .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-md);
	background: var(--wpm-surface);
	color: var(--wpm-text);
	font-weight: 500;
}

.wpm-docs .wpm-paging .page-numbers.current {
	background: var(--wpm-text);
	border-color: var(--wpm-text);
	color: #FFFFFF;
}

.wpm-docs .wpm-paging .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* ---- Article layout ---- */
.wpm-article {
	--wpm-sticky-top: calc(var(--wpm-header-h) + 28px);
}

body.admin-bar .wpm-article {
	--wpm-sticky-top: calc(var(--wpm-header-h) + 60px);
}

.wpm-docs .wpm-article__layout {
	display: grid;
	gap: 48px;
	justify-content: center;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

.wpm-article.has-nav.has-toc .wpm-article__layout {
	grid-template-columns: 240px minmax(0, 1fr) 220px;
}

.wpm-article.has-nav.no-toc .wpm-article__layout {
	grid-template-columns: 240px minmax(0, 1fr);
}

.wpm-article.no-nav.has-toc .wpm-article__layout {
	grid-template-columns: minmax(0, 720px) 220px;
}

.wpm-article.no-nav.no-toc .wpm-article__layout {
	grid-template-columns: minmax(0, 720px);
}

.wpm-docs .wpm-article__main {
	width: 100%;
	max-width: 720px;
	min-width: 0;
	padding: 36px 0 88px;
}

.wpm-docs .wpm-docbar {
	display: none;
}

/* Left nav */
.wpm-docs .wpm-sidenav {
	padding: 36px 20px 48px 0;
	border-right: 1px solid var(--wpm-border);
}

.wpm-docs .wpm-sidenav .wpm-search {
	margin-bottom: 24px;
}

.wpm-docs .wpm-sidenav__product {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px 12px;
	font-size: 14px;
	font-weight: 700;
}

.wpm-docs .wpm-sidenav__swatch {
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: var(--wpm-primary);
}

.wpm-docs .wpm-sidenav__group {
	margin: 18px 0 4px 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-sidenav__product + .wpm-sidenav__group {
	margin-top: 0;
}

.wpm-docs .wpm-sidenav__list a {
	display: block;
	padding: 6px 12px;
	border-radius: 8px;
	color: var(--wpm-text-soft);
	font-size: 14.5px;
	line-height: 1.4;
}

.wpm-docs .wpm-sidenav__list a:hover {
	background: var(--wpm-surface-alt);
	color: var(--wpm-text);
	text-decoration: none;
}

.wpm-docs .wpm-sidenav__list a.is-current {
	background: var(--wpm-primary-light);
	color: var(--wpm-primary-dark);
	font-weight: 600;
}

.wpm-docs .wpm-sidenav__more {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 28px 0 0 12px;
	padding-top: 18px;
	border-top: 1px solid var(--wpm-border);
	font-size: 14px;
}

.wpm-docs .wpm-sidenav__more a {
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-sidenav__more a:hover {
	color: var(--wpm-text);
}

/* Right TOC */
.wpm-docs .wpm-tocside {
	padding: 36px 0;
}

.wpm-docs .wpm-toc--side {
	position: sticky;
	top: var(--wpm-sticky-top);
	max-height: calc(100vh - var(--wpm-sticky-top) - 24px);
	overflow-y: auto;
}

.wpm-docs .wpm-toc__title {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-toc__list a {
	display: block;
	padding: 5px 0 5px 14px;
	border-left: 2px solid var(--wpm-border);
	color: var(--wpm-text-secondary);
	font-size: 13.5px;
	line-height: 1.4;
}

.wpm-docs .wpm-toc__list a:hover {
	color: var(--wpm-text);
	text-decoration: none;
}

.wpm-docs .wpm-toc__list a.is-current {
	border-left-color: var(--wpm-primary);
	color: var(--wpm-primary-dark);
	font-weight: 600;
}

/* Collapsible TOC under the meta row (under 1024px) */
.wpm-docs .wpm-tocbox {
	display: none;
	margin: 0 0 24px;
	background: var(--wpm-surface);
	border: 1px solid var(--wpm-border);
	border-radius: 12px;
}

.wpm-docs .wpm-tocbox summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	padding: 0 16px;
	font-size: 14.5px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.wpm-docs .wpm-tocbox summary::-webkit-details-marker {
	display: none;
}

.wpm-docs .wpm-tocbox__count {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-tocbox[open] .wpm-tocbox__count .wpm-icon {
	transform: rotate(180deg);
}

.wpm-docs .wpm-tocbox .wpm-toc {
	padding: 0 16px 14px;
}

/* Head */
.wpm-docs .wpm-crumbs {
	margin-bottom: 18px;
	font-size: 14px;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-crumbs a {
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-crumbs a:hover {
	color: var(--wpm-text);
}

.wpm-docs .wpm-crumbs__sep {
	margin: 0 6px;
	color: #B5AFA8;
}

.wpm-docs .wpm-article__title {
	margin: 0 0 16px;
	font-size: 40px;
	line-height: 1.15;
	letter-spacing: -.025em;
}

.wpm-docs .wpm-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin-bottom: 28px;
	font-size: 14px;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-meta .wpm-dot {
	margin: 0;
}

.wpm-docs .wpm-meta .wpm-byline strong {
	color: var(--wpm-text);
}

.wpm-docs .wpm-article__hero {
	margin: 0 0 32px;
	overflow: hidden;
	border: 1px solid var(--wpm-border);
	border-radius: 14px;
	background: var(--wpm-surface);
}

.wpm-docs .wpm-article__hero img {
	display: block;
	width: 100%;
}

/* ---- Prose ---- */
.wpm-docs .wpm-prose {
	color: var(--wpm-text-body);
	font-size: 17px;
	line-height: 1.7;
}

.wpm-prose :where(p) {
	margin: 0 0 18px;
	font-size: 17px;
	line-height: 1.7;
}

.wpm-prose :where(h2) {
	margin: 44px 0 14px;
	font-size: 26px;
	line-height: 1.25;
	scroll-margin-top: calc(var(--wpm-header-h) + 24px);
}

.wpm-prose > :where(h2:first-child),
.wpm-prose > :where(hr:first-child + h2) {
	margin-top: 0;
}

.wpm-prose :where(h3) {
	margin: 32px 0 10px;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -.01em;
	scroll-margin-top: calc(var(--wpm-header-h) + 24px);
}

.wpm-prose :where(h4, h5, h6) {
	margin: 24px 0 8px;
	font-size: 17px;
	line-height: 1.4;
	letter-spacing: 0;
}

.wpm-prose :where(ul, ol) {
	margin: 0 0 18px;
	padding-left: 24px;
	font-size: 17px;
	line-height: 1.7;
}

.wpm-prose :where(ul) {
	list-style: disc;
}

.wpm-prose :where(ol) {
	list-style: decimal;
}

.wpm-prose :where(li) {
	margin: 0 0 6px;
	padding-left: 4px;
	font-size: inherit;
}

.wpm-prose :where(li > ul, li > ol) {
	margin: 6px 0 0;
}

.wpm-prose :where(a) {
	color: var(--wpm-primary-dark);
	text-decoration: underline;
	text-decoration-color: rgba(30, 90, 56, .4);
	text-underline-offset: 3px;
}

.wpm-prose :where(a:hover) {
	text-decoration-color: currentColor;
}

.wpm-prose :where(code, kbd) {
	padding: 1px 6px;
	border: 1px solid var(--wpm-border);
	border-radius: 5px;
	background: var(--wpm-surface-alt);
	color: var(--wpm-text);
	font-family: var(--wpm-mono);
	font-size: .84em;
	overflow-wrap: anywhere;
}

.wpm-prose :where(pre) {
	margin: 0 0 18px;
	padding: 14px 18px;
	overflow-x: auto;
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-md);
	background: var(--wpm-surface-alt);
	font-family: var(--wpm-mono);
	font-size: 14px;
	line-height: 1.6;
}

.wpm-prose :where(pre code) {
	padding: 0;
	border: 0;
	background: none;
	font-size: inherit;
}

.wpm-prose :where(hr) {
	margin: 36px 0;
	border: 0;
	border-top: 1px solid var(--wpm-border);
	opacity: 1;
}

.wpm-prose :where(hr.wp-block-separator) {
	margin: 32px 0;
}

.wpm-prose :where(em) {
	font-style: italic;
}

/* Screenshots: a framed card, click to zoom */
.wpm-prose :where(figure) {
	margin: 8px 0 28px;
}

.wpm-prose :where(.wp-block-image) img {
	display: block;
	border: 1px solid var(--wpm-border);
	border-radius: 12px;
	background: var(--wpm-surface);
	box-shadow: var(--wpm-shadow);
}

.wpm-prose :where(figcaption) {
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--wpm-text-secondary);
	text-align: center;
}

.wpm-docs .wpm-zoom {
	display: block;
	cursor: zoom-in;
}

/* Tables */
.wpm-docs .wpm-table {
	max-width: 100%;
	margin: 0 0 18px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.wpm-docs .wpm-table:focus-visible {
	outline: 2px solid var(--wpm-primary);
	outline-offset: 2px;
}

.wpm-prose :where(.wp-block-table) {
	margin: 0 0 18px;
}

.wpm-prose :where(.wp-block-table) .wpm-table {
	margin: 0;
}

.wpm-prose :where(table) {
	width: 100%;
	border: 1px solid var(--wpm-border);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--wpm-radius-md);
	overflow: hidden;
	background: var(--wpm-surface);
	font-size: 15px;
	line-height: 1.5;
}

.wpm-prose :where(th, td) {
	padding: 10px 14px;
	border: 0;
	border-top: 1px solid var(--wpm-border-light);
	color: inherit;
	font-size: inherit;
	line-height: inherit;
	text-align: left;
	vertical-align: top;
	letter-spacing: 0;
	text-transform: none;
}

.wpm-prose :where(thead th, thead td, tr:first-child > th) {
	border-top: 0;
	border-bottom: 1px solid var(--wpm-border);
	background: var(--wpm-surface-alt);
	color: var(--wpm-text);
	font-weight: 600;
}

.wpm-prose :where(thead + tbody tr:first-child > td, tbody:first-child tr:first-child > td) {
	border-top: 0;
}

.wpm-prose :where(.wp-block-table thead) {
	border-bottom: 0;
}

/* Callouts: "What you need", notes, warnings (block styles on core/group; a plain quote is a note) */
.wpm-prose :where(blockquote, .is-style-wpm-note, .is-style-wpm-warning, .is-style-wpm-need) {
	margin: 0 0 18px;
	padding: 14px 18px;
	border: 1px solid var(--wpm-primary-line);
	border-radius: var(--wpm-radius-md);
	background: var(--wpm-primary-lighter);
	color: var(--wpm-text-body);
	font-size: 15px;
	font-style: normal;
	line-height: 1.6;
}

.wpm-prose :where(.is-style-wpm-warning) {
	border-color: var(--wpm-accent-line);
	background: var(--wpm-accent-light);
}

.wpm-prose :where(.is-style-wpm-need) {
	border-color: var(--wpm-border);
	background: var(--wpm-surface);
	padding: 18px 20px;
	border-radius: 12px;
}

.wpm-prose :where(blockquote, .is-style-wpm-note, .is-style-wpm-warning, .is-style-wpm-need) :where(p, ul, ol) {
	margin-bottom: 8px;
	font-size: 15px;
	line-height: 1.6;
}

.wpm-prose :where(blockquote, .is-style-wpm-note, .is-style-wpm-warning, .is-style-wpm-need) > :where(:last-child) {
	margin-bottom: 0;
}

.wpm-prose :where(blockquote, .is-style-wpm-need) :where(ul) {
	padding-left: 18px;
}

.wpm-prose :where(blockquote)::before,
.wpm-prose :where(blockquote)::after {
	content: none;
}

.wpm-prose :where(.wpm-callout__label) {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--wpm-text-secondary);
}

.wpm-prose :where(.is-style-wpm-note .wpm-callout__label) {
	color: var(--wpm-primary-dark);
}

.wpm-prose :where(.wpm-callout-pair) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 8px 0 32px;
}

.wpm-prose :where(.wpm-callout-pair) > * {
	margin: 0;
}

/* ---- Pro panel, feedback, pager, author box ---- */
.wpm-docs .wpm-propanel {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 40px 0 0;
	padding: 22px 24px;
	border: 1px solid var(--wpm-pro-line);
	border-radius: 14px;
	background: var(--wpm-pro-light);
}

.wpm-docs .wpm-propanel__body {
	flex: 1 1 auto;
}

.wpm-docs .wpm-propanel__title {
	margin-top: 8px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}

.wpm-docs .wpm-propanel__text {
	font-size: 15px;
	color: var(--wpm-text-soft);
}

.wpm-docs .wpm-propanel__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	flex: none;
}

.wpm-docs .wpm-propanel__link {
	font-size: 14px;
	font-weight: 500;
	color: var(--wpm-pro);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wpm-docs .wpm-feedback {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin: 36px 0 0;
	padding: 18px 0;
	border-top: 1px solid var(--wpm-border);
	border-bottom: 1px solid var(--wpm-border);
	font-size: 15px;
}

.wpm-docs .wpm-feedback__q {
	font-weight: 600;
}

.wpm-docs .wpm-feedback__choices {
	display: flex;
	gap: 8px;
}

.wpm-docs .wpm-feedback .wpm-chip {
	min-height: 44px;
}

.wpm-docs .wpm-feedback__help {
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-feedback__help a {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(30, 90, 56, .4);
	text-underline-offset: 3px;
}

.wpm-docs .wpm-feedback__thanks {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 100%;
	color: var(--wpm-primary-dark);
	font-weight: 600;
}

.wpm-docs .wpm-feedback__thanks[hidden] {
	display: none;
}

.wpm-docs .wpm-feedback.is-done .wpm-feedback__choices {
	display: none;
}

.wpm-docs .wpm-pager {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.wpm-docs .wpm-pager__link {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 20px;
	background: var(--wpm-surface);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-lg);
	color: var(--wpm-text);
}

.wpm-docs .wpm-pager__link:hover {
	border-color: var(--wpm-border-strong);
	box-shadow: var(--wpm-shadow);
	color: var(--wpm-text);
	text-decoration: none;
}

.wpm-docs .wpm-pager__link--next {
	grid-column: 2;
	align-items: flex-end;
	text-align: right;
}

.wpm-docs .wpm-pager__dir {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-pager__link strong {
	font-size: 16px;
	line-height: 1.35;
}

.wpm-docs .wpm-authorbox {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 40px 0 0;
	padding: 20px 24px;
	background: var(--wpm-surface);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-lg);
}

.wpm-docs .wpm-authorbox__text {
	font-size: 15px;
	line-height: 1.5;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-authorbox__name {
	display: block;
	color: var(--wpm-text);
	font-size: 16px;
}

/* ---- Newsletter card (Fluent Form 4) ---- */
.wpm-docs .wpm-news {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	padding: 32px 36px;
	background: var(--wpm-primary-lighter);
	border: 1px solid var(--wpm-primary-line);
	border-radius: var(--wpm-radius-lg);
}

.wpm-article .wpm-news {
	margin-top: 24px;
}

.wpm-docs .wpm-news__title {
	font-size: 24px;
	line-height: 1.25;
}

.wpm-docs .wpm-news__text {
	font-size: 15.5px;
	color: var(--wpm-text-soft);
}

.wpm-docs .wpm-news__form {
	max-width: 460px;
	margin-top: 4px;
}

.wpm-news .fluentform,
.wpm-news .fluentform form,
.wpm-news #fluentform_4 {
	margin: 0 !important;
	padding: 0;
	font-family: inherit;
}

.wpm-news .fluentform fieldset {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.wpm-news .fluentform .ff-el-group {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.wpm-news .fluentform .ff-el-input--label {
	display: none;
}

.wpm-news .fluentform input.ff-el-form-control[type="email"] {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	background: var(--wpm-surface);
	border: 1px solid var(--wpm-primary-line);
	border-radius: var(--wpm-radius-md);
	box-shadow: none;
	color: var(--wpm-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
}

.wpm-news .fluentform input.ff-el-form-control[type="email"]::placeholder {
	color: #6E6862;
	opacity: 1;
}

.wpm-news .fluentform input.ff-el-form-control[type="email"]:focus {
	border-color: var(--wpm-primary);
	box-shadow: var(--wpm-focus);
	outline: none;
}

.wpm-news .fluentform .ff_submit_btn_wrapper {
	flex: none;
	margin: 0;
	padding: 0;
	text-align: left;
}

.wpm-news form.fluent_form_4 .ff-btn-submit,
.wpm-news form.fluent_form_4 .ff-btn-submit:not(.ff_btn_no_style) {
	height: 46px;
	margin: 0;
	padding: 0 20px;
	background-color: var(--wpm-primary);
	border: 0;
	border-radius: var(--wpm-radius-md);
	box-shadow: none;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 46px;
	letter-spacing: 0;
	text-transform: none;
	opacity: 1;
	cursor: pointer;
}

.wpm-news form.fluent_form_4 .ff-btn-submit:hover {
	background-color: var(--wpm-primary-dark);
}

.wpm-news form.fluent_form_4 .ff-btn-submit:focus-visible {
	outline: 2px solid var(--wpm-primary-dark);
	outline-offset: 2px;
}

.wpm-news .fluentform .error,
.wpm-news .fluentform .text-danger {
	margin-top: 6px;
	color: #B42318;
	font-size: 13px;
}

.wpm-news .ff-message-success {
	margin: 0;
	padding: 12px 14px;
	background: var(--wpm-surface);
	border: 1px solid var(--wpm-primary-line);
	border-radius: var(--wpm-radius-md);
	box-shadow: none;
	color: var(--wpm-primary-dark);
	font-size: 14px;
}

/* ---- Blog index and archives ---- */
.wpm-docs .wpm-listing__head {
	padding-top: 64px;
}

.wpm-docs .wpm-listing__title {
	margin: 8px 0 10px;
	font-size: 44px;
	line-height: 1.15;
	letter-spacing: -.025em;
}

.wpm-docs .wpm-listing__lead {
	max-width: 640px;
	margin: 0 0 28px;
	font-size: 18px;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-listing__lead a {
	font-weight: 600;
}

.wpm-docs .wpm-listing__featured {
	padding-top: 32px;
}

.wpm-docs .wpm-listing__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	padding-top: 24px;
}

.wpm-listing--docs .wpm-listing__grid {
	padding-top: 8px;
}

.wpm-docs .wpm-listing__grid .wpm-news {
	grid-column: span 2;
}

.wpm-docs .wpm-listing__empty {
	padding-top: 24px;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--wpm-surface);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-lg);
	color: var(--wpm-text);
}

.wpm-docs .wpm-post-card:hover {
	border-color: var(--wpm-border-strong);
	box-shadow: var(--wpm-shadow);
}

.wpm-docs .wpm-post-card__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--wpm-surface-alt);
	border-bottom: 1px solid var(--wpm-border);
}

.wpm-docs .wpm-post-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wpm-docs .wpm-post-card__img--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--wpm-primary-lighter) 0%, var(--wpm-surface-alt) 100%);
	color: var(--wpm-primary);
}

.wpm-docs .wpm-post-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px 24px;
}

.wpm-docs .wpm-post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	font-size: 13px;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-post-card__title {
	font-size: 19px;
	line-height: 1.3;
	letter-spacing: -.01em;
}

.wpm-docs .wpm-post-card__title a {
	color: var(--wpm-text);
}

.wpm-docs .wpm-post-card__title a::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.wpm-docs .wpm-post-card__title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wpm-docs .wpm-post-card__title a:focus-visible {
	outline: none;
}

.wpm-docs .wpm-post-card__title a:focus-visible::after {
	outline: 2px solid var(--wpm-primary);
	outline-offset: 2px;
}

.wpm-docs .wpm-post-card__excerpt {
	font-size: 15px;
	line-height: 1.55;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-post-card--wide {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04);
}

.wpm-docs .wpm-post-card--wide .wpm-post-card__media {
	aspect-ratio: auto;
	min-height: 340px;
	border-bottom: 0;
	border-right: 1px solid var(--wpm-border);
}

.wpm-docs .wpm-post-card--wide .wpm-post-card__body {
	justify-content: center;
	gap: 14px;
	padding: 40px;
}

.wpm-docs .wpm-post-card--wide .wpm-post-card__title {
	font-size: 30px;
	line-height: 1.2;
	letter-spacing: -.02em;
}

.wpm-docs .wpm-post-card--wide .wpm-post-card__excerpt {
	font-size: 16.5px;
	line-height: 1.6;
}

.wpm-docs .wpm-post-card__author {
	margin-top: 6px;
	font-size: 14px;
}

.wpm-docs .wpm-post-card--text .wpm-post-card__body {
	padding-top: 22px;
}

.wpm-docs .wpm-newdocs {
	padding-top: 64px;
	padding-bottom: 88px;
}

.wpm-listing--docs {
	padding-bottom: 88px;
}

.wpm-docs .wpm-newdocs__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 22px;
}

.wpm-docs .wpm-newdocs__title {
	margin: 0 0 6px;
	font-size: 28px;
	letter-spacing: -.02em;
}

.wpm-docs .wpm-newdocs__lead {
	font-size: 16px;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-newdocs__head .wpm-more {
	font-size: 16px;
	white-space: nowrap;
}

.wpm-docs .wpm-newdocs__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.wpm-docs .wpm-doc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 24px;
	background: var(--wpm-surface);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-lg);
}

.wpm-docs .wpm-doc-card:hover {
	border-color: var(--wpm-border-strong);
	box-shadow: var(--wpm-shadow);
}

.wpm-docs .wpm-doc-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--wpm-text-secondary);
}

.wpm-docs .wpm-doc-card__title {
	font-size: 17px;
	line-height: 1.35;
	letter-spacing: -.005em;
}

.wpm-docs .wpm-doc-card__title a {
	color: var(--wpm-text);
}

.wpm-docs .wpm-doc-card__title a::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

/* ---- Fallback screenshot viewer (when Flatsome's lightbox is not on the page) ---- */
.wpm-viewer {
	width: min(96vw, 1600px);
	max-width: none;
	max-height: 94vh;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #FFFFFF;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	overflow: hidden;
}

.wpm-viewer::backdrop {
	background: rgba(26, 25, 24, .78);
}

.wpm-viewer img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 94vh;
	object-fit: contain;
	cursor: zoom-out;
}

.wpm-viewer__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(26, 25, 24, .8);
	color: #FFFFFF;
	cursor: pointer;
}

/* ---- Under 1200px: the hub grid and listing go to two columns ---- */
@media (max-width: 1199px) {
	.wpm-article.has-nav.has-toc .wpm-article__layout {
		grid-template-columns: 220px minmax(0, 1fr) 200px;
		gap: 36px;
	}
}

/* ---- Under 1024px: the TOC moves under the meta row ---- */
@media (max-width: 1023px) {
	.wpm-docs .wpm-tocside {
		display: none;
	}

	.wpm-docs .wpm-tocbox {
		display: block;
	}

	.wpm-article.has-nav .wpm-article__layout {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 36px;
	}

	.wpm-article.no-nav .wpm-article__layout {
		grid-template-columns: minmax(0, 720px);
	}

	.wpm-docs .wpm-hub__grid,
	.wpm-docs .wpm-listing__grid,
	.wpm-docs .wpm-newdocs__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wpm-docs .wpm-hub__others {
		grid-template-columns: minmax(0, 1fr);
	}

	.wpm-docs .wpm-post-card--wide {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.wpm-docs .wpm-post-card--wide .wpm-post-card__body {
		padding: 28px;
	}

	.wpm-docs .wpm-post-card--wide .wpm-post-card__title {
		font-size: 25px;
	}
}

/* ---- Under 900px: phone layout ---- */
@media (max-width: 899px) {
	.wpm-docs {
		--wpm-header-h: 64px;
	}

	.wpm-docs .wpm-wrap,
	.wpm-docs .wpm-article__layout {
		padding-left: 16px;
		padding-right: 16px;
	}

	.wpm-article.has-nav .wpm-article__layout,
	.wpm-article.no-nav .wpm-article__layout {
		display: block;
	}

	.wpm-docs .wpm-article__main {
		padding: 22px 0 56px;
	}

	.wpm-docs .wpm-docbar {
		display: flex;
		gap: 8px;
		padding: 10px 16px;
		background: var(--wpm-surface);
		border-bottom: 1px solid var(--wpm-border);
	}

	.wpm-docs .wpm-docbar__toggle {
		display: flex;
		flex: 1 1 auto;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		min-width: 0;
		height: 44px;
		padding: 0 14px;
		border: 1px solid var(--wpm-border);
		border-radius: var(--wpm-radius-md);
		font-size: 14.5px;
		font-weight: 600;
		text-align: left;
	}

	.wpm-docs .wpm-docbar__toggle span {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.wpm-docs .wpm-docbar__toggle[aria-expanded="true"] .wpm-icon {
		transform: rotate(180deg);
	}

	.wpm-docs .wpm-docbar__search {
		display: flex;
		flex: 0 0 44px;
		align-items: center;
		justify-content: center;
		height: 44px;
		border: 1px solid var(--wpm-border);
		border-radius: var(--wpm-radius-md);
		color: var(--wpm-text-secondary);
	}

	.wpm-docs .wpm-sidenav {
		display: none;
		margin: 0 -16px;
		padding: 16px 16px 20px;
		border-right: 0;
		border-bottom: 1px solid var(--wpm-border);
		background: var(--wpm-surface);
	}

	.wpm-docs .wpm-sidenav.is-open {
		display: block;
	}

	.wpm-docs .wpm-sidenav .wpm-search {
		margin-bottom: 18px;
	}

	.wpm-docs .wpm-sidenav__list a {
		padding: 10px 12px;
	}

	.wpm-docs .wpm-article__title {
		margin-bottom: 12px;
		font-size: 30px;
		line-height: 1.18;
		letter-spacing: -.02em;
	}

	.wpm-docs .wpm-crumbs {
		margin-bottom: 12px;
		font-size: 13px;
	}

	.wpm-docs .wpm-meta {
		gap: 6px 8px;
		margin-bottom: 18px;
		font-size: 13px;
	}

	.wpm-docs .wpm-prose,
	.wpm-prose :where(p, ul, ol) {
		font-size: 16.5px;
	}

	.wpm-prose :where(h2) {
		margin-top: 32px;
		font-size: 23px;
	}

	.wpm-prose :where(h3) {
		font-size: 19px;
	}

	.wpm-prose :where(.wpm-callout-pair) {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.wpm-docs .wpm-propanel {
		flex-direction: column;
		align-items: flex-start;
	}

	.wpm-docs .wpm-propanel__actions {
		align-items: flex-start;
	}

	.wpm-docs .wpm-feedback {
		flex-direction: column;
		align-items: flex-start;
	}

	.wpm-docs .wpm-pager {
		grid-template-columns: minmax(0, 1fr);
	}

	.wpm-docs .wpm-pager__link--next {
		grid-column: auto;
	}

	.wpm-docs .wpm-hub__hero-inner {
		padding-top: 40px;
		padding-bottom: 36px;
	}

	.wpm-docs .wpm-hub__title,
	.wpm-docs .wpm-listing__title {
		font-size: 32px;
	}

	.wpm-docs .wpm-hub__lead,
	.wpm-docs .wpm-listing__lead {
		font-size: 16.5px;
	}

	.wpm-docs .wpm-search--hub {
		height: 52px;
		padding-left: 14px;
	}

	.wpm-docs .wpm-search__kbd {
		display: none;
	}

	.wpm-docs .wpm-hub__product {
		padding-top: 40px;
	}

	.wpm-docs .wpm-hub__product-title {
		font-size: 22px;
	}

	.wpm-docs .wpm-hub__start {
		flex-wrap: wrap;
		gap: 10px 14px;
		padding: 20px;
	}

	.wpm-docs .wpm-hub__start-body {
		flex-basis: 100%;
		order: 2;
	}

	.wpm-docs .wpm-hub__start-time {
		order: 3;
	}

	.wpm-docs .wpm-hub__start-arrow {
		order: 4;
		margin-left: auto;
	}

	.wpm-docs .wpm-hub__grid,
	.wpm-docs .wpm-listing__grid,
	.wpm-docs .wpm-newdocs__grid,
	.wpm-docs .wpm-hub__legacy-cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.wpm-docs .wpm-hub__legacy-cols .wpm-list + .wpm-list li:first-child a {
		border-top: 1px solid var(--wpm-border-light);
	}

	.wpm-docs .wpm-listing__grid .wpm-news {
		grid-column: auto;
	}

	.wpm-docs .wpm-card,
	.wpm-docs .wpm-news {
		padding: 22px 20px;
	}

	.wpm-docs .wpm-help {
		padding-bottom: 56px;
	}

	.wpm-docs .wpm-help__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		padding: 22px 20px;
	}

	.wpm-docs .wpm-listing__head {
		padding-top: 40px;
	}

	.wpm-docs .wpm-post-card--wide {
		display: flex;
	}

	.wpm-docs .wpm-post-card--wide .wpm-post-card__media {
		aspect-ratio: 16 / 9;
		min-height: 0;
		border-right: 0;
		border-bottom: 1px solid var(--wpm-border);
	}

	.wpm-docs .wpm-post-card--wide .wpm-post-card__body {
		padding: 22px 20px 24px;
	}

	.wpm-docs .wpm-post-card--wide .wpm-post-card__title {
		font-size: 23px;
	}

	.wpm-docs .wpm-newdocs {
		padding-top: 48px;
		padding-bottom: 56px;
	}

	.wpm-docs .wpm-newdocs__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.wpm-news .fluentform fieldset {
		flex-direction: column;
		align-items: stretch;
	}

	.wpm-news .fluentform input.ff-el-form-control[type="email"],
	.wpm-news form.fluent_form_4 .ff-btn-submit,
	.wpm-news form.fluent_form_4 .ff-btn-submit:not(.ff_btn_no_style) {
		width: 100%;
		height: 48px;
		font-size: 16px;
	}

	.wpm-news form.fluent_form_4 .ff-btn-submit {
		line-height: 48px;
	}

	.wpm-docs .wpm-results {
		padding-top: 28px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.wpm-docs .wpm-docbar__toggle .wpm-icon,
	.wpm-docs .wpm-tocbox__count .wpm-icon {
		transition: transform .15s ease;
	}
}

/* Forms embedded in a post (e.g. the series signup, Fluent Form 9): the brand button. */
.wpm-prose .fluentform .ff-btn-submit,
.wpm-prose .fluentform .ff-btn-submit:not(.ff_btn_no_style) {
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: var(--wpm-radius-md);
	background-color: var(--wpm-primary);
	color: #FFFFFF;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	opacity: 1;
}

.wpm-prose .fluentform .ff-btn-submit:hover {
	background-color: var(--wpm-primary-dark);
	color: #FFFFFF;
}
