/* ==========================================================================
   MPD Helpdesk (1.9.0)
   The Helpdesk page ([mpd_helpdesk]) and the article pages.
   Uses the site's tokens from style.css (--mpd-navy, --mpd-teal, …).
   ========================================================================== */

:root {
	--hx-soft: #F6F8FA;
	--hx-teal-soft: #E5F1F2;
	--hx-accent-soft: #FBEDE6;
	--hx-key-border: #CDD6E3;
	--hx-key-shadow: #B9C4D4;
	--hx-shadow: 0 20px 50px rgba(11, 31, 51, 0.10), 0 2px 6px rgba(11, 31, 51, 0.05);
}

/* Wider page for the Helpdesk and its articles */
html body.mpd-help-single #main > .full-container,
html body.mpd-help-hub #main > .full-container {
	max-width: 1240px;
}
html body.mpd-help-single #main,
html body.mpd-help-hub #main {
	background: var(--mpd-bg);
}
/* Articles use the full width (no sidebar column) */
html body.mpd-help-single #primary.mpd-hx-page {
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
}

/* Vantage's page wrapper hides overflow, which stops the chart column
   staying in view; clip sideways only. */
html body.mpd-help-single #page-wrapper {
	overflow: visible;
	overflow-x: clip;
}

/* ---------- Shared bits ---------- */

.mpd-hd-pill,
.mpd-hx-duration {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--hx-teal-soft);
	color: var(--mpd-teal);
	font-family: var(--mpd-font-body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}
.mpd-hd-pill svg,
.mpd-hx-duration svg { flex: 0 0 auto; }

html body .mpd-hx-body code,
html body .mpd-hx-leg__heading {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	margin: 0 1px;
	border: 1px solid var(--hx-key-border);
	border-radius: 5px;
	background: #FFFFFF;
	box-shadow: 0 2px 0 var(--hx-key-shadow);
	color: var(--mpd-ink);
	font-family: var(--mpd-font-body);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	vertical-align: 1px;
	white-space: nowrap;
}

/* ==========================================================================
   The Helpdesk page
   ========================================================================== */

.mpd-hd {
	font-family: var(--mpd-font-body);
	color: var(--mpd-ink);
	padding: 28px 0 48px;
}

/* Hero with search */
html body .mpd-hd .mpd-hd-hero {
	position: relative;
	overflow: hidden;
	margin: 0 0 28px;
	padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 56px);
	border-radius: 20px;
	background: var(--mpd-navy);
	color: #FFFFFF;
}
html body .mpd-hd .mpd-hd-hero::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background:
		radial-gradient(circle, transparent 0 58px, rgba(127, 211, 219, 0.18) 59px 60px, transparent 61px 118px, rgba(127, 211, 219, 0.14) 119px 120px, transparent 121px 178px, rgba(127, 211, 219, 0.10) 179px 180px, transparent 181px);
	pointer-events: none;
}
html body .mpd-hd .mpd-hd-eyebrow {
	margin: 0 0 10px;
	color: var(--mpd-cyan);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
html body.mpd-theme .mpd-hd h1.mpd-hd-title {
	position: relative;
	z-index: 1;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	color: #FFFFFF;
	font-family: var(--mpd-font-display);
	font-size: clamp(30px, 4.2vw, 46px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.015em;
}
html body .mpd-hd .mpd-hd-intro {
	position: relative;
	z-index: 1;
	max-width: 620px;
	margin: 0 0 28px;
	color: #C9D6E1;
	font-size: 18px;
	line-height: 1.55;
}
.mpd-hd-search {
	position: relative;
	z-index: 1;
	max-width: 620px;
}
.mpd-hd-search__icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--mpd-muted);
	display: flex;
	pointer-events: none;
}
html body .mpd-hd input.mpd-hd-search__input {
	width: 100%;
	height: 56px;
	margin: 0;
	padding: 0 18px 0 52px;
	box-sizing: border-box;
	border: 0;
	border-radius: 12px;
	background: #FFFFFF;
	color: var(--mpd-ink);
	font-family: var(--mpd-font-body);
	font-size: 17px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
html body .mpd-hd input.mpd-hd-search__input:focus {
	outline: 3px solid var(--mpd-cyan);
	outline-offset: 2px;
}

/* Product tabs */
.mpd-hd-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 8px;
}
html body .mpd-hd a.mpd-hd-tab {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 240px;
	padding: 14px 20px;
	border: 1px solid var(--mpd-border);
	border-radius: 14px;
	background: #FFFFFF;
	color: var(--mpd-ink);
	text-decoration: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
html body .mpd-hd a.mpd-hd-tab:hover { border-color: var(--mpd-teal); }
.mpd-hd-tab__name {
	font-family: var(--mpd-font-display);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
}
.mpd-hd-tab__count {
	font-size: 13px;
	color: var(--mpd-muted);
}
html body .mpd-hd.is-js a.mpd-hd-tab.is-active {
	border-color: var(--mpd-navy);
	background: var(--mpd-navy);
	color: #FFFFFF;
	box-shadow: 0 8px 20px rgba(11, 31, 51, 0.18);
}
.mpd-hd.is-js .mpd-hd-tab.is-active .mpd-hd-tab__count { color: #A9B8C6; }

/* Panels: with JavaScript only the chosen product shows; while searching, all do */
.mpd-hd.is-js .mpd-hd-panel { display: none; }
.mpd-hd.is-js .mpd-hd-panel.is-current { display: block; }
.mpd-hd.is-searching .mpd-hd-panel { display: block; }
.mpd-hd.is-searching .mpd-hd-tabs { opacity: 0.5; }
.mpd-hd-panel + .mpd-hd-panel { margin-top: 24px; }
.mpd-hd [hidden] { display: none !important; }

/* Groups (sections) */
.mpd-hd-group { margin-top: 36px; }
.mpd-hd-group__head { margin: 0 0 16px; }
html body.mpd-theme .mpd-hd h3.mpd-hd-group__title {
	margin: 0 0 4px;
	padding: 0;
	color: var(--mpd-ink);
	font-family: var(--mpd-font-display);
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 700;
	line-height: 1.2;
}
html body .mpd-hd p.mpd-hd-group__desc {
	margin: 0;
	color: var(--mpd-muted);
	font-size: 16px;
}

html body .mpd-hd ul.mpd-hd-cards,
html body .mpd-hd ul.mpd-hd-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}
html body .mpd-hd ul.mpd-hd-cards > li,
html body .mpd-hd ul.mpd-hd-rows > li {
	margin: 0;
	padding: 0;
	list-style: none;
}
html body .mpd-hd ul.mpd-hd-cards > li::before,
html body .mpd-hd ul.mpd-hd-rows > li::before { display: none; }

/* Exercise cards */
html body .mpd-hd ul.mpd-hd-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 16px;
}
html body .mpd-hd a.mpd-hd-card {
	display: flex;
	gap: 16px;
	height: 100%;
	box-sizing: border-box;
	padding: 20px;
	border: 1px solid var(--mpd-border);
	border-radius: 16px;
	background: #FFFFFF;
	color: var(--mpd-ink);
	text-decoration: none;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
html body .mpd-hd a.mpd-hd-card:hover,
html body .mpd-hd a.mpd-hd-card:focus-visible {
	border-color: var(--mpd-teal);
	box-shadow: 0 10px 26px rgba(11, 31, 51, 0.08);
	transform: translateY(-2px);
}
.mpd-hd-card__num {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--mpd-navy);
	color: #FFFFFF;
	font-family: var(--mpd-font-display);
	font-size: 19px;
	font-weight: 800;
}
.mpd-hd-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
}
.mpd-hd-card__kicker {
	color: var(--mpd-teal);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.mpd-hd-card__title {
	font-family: var(--mpd-font-display);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}
.mpd-hd-card__text {
	color: var(--mpd-muted);
	font-size: 14px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mpd-hd-card .mpd-hd-pill { margin-top: auto; }

/* Article rows */
html body .mpd-hd ul.mpd-hd-rows {
	border: 1px solid var(--mpd-border);
	border-radius: 16px;
	background: #FFFFFF;
	overflow: hidden;
}
html body .mpd-hd ul.mpd-hd-rows > li + li { border-top: 1px solid var(--mpd-border); }
html body .mpd-hd a.mpd-hd-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 22px;
	color: var(--mpd-ink);
	text-decoration: none;
	transition: background-color 0.15s;
}
html body .mpd-hd a.mpd-hd-row:hover,
html body .mpd-hd a.mpd-hd-row:focus-visible { background: var(--hx-soft); }
.mpd-hd-row__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1 1 auto;
	min-width: 0;
}
.mpd-hd-row__title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}
.mpd-hd-row__text {
	color: var(--mpd-muted);
	font-size: 14px;
	line-height: 1.5;
}
.mpd-hd-row__arrow {
	flex: 0 0 auto;
	display: flex;
	color: var(--mpd-teal);
	transition: transform 0.15s;
}
.mpd-hd-row:hover .mpd-hd-row__arrow { transform: translateX(3px); }

/* Coming soon / no results */
.mpd-hd-soon {
	margin-top: 32px;
	padding: 40px 32px;
	border: 1px dashed var(--hx-key-border);
	border-radius: 16px;
	background: #FFFFFF;
	text-align: center;
}
html body.mpd-theme .mpd-hd .mpd-hd-soon h3 {
	margin: 0 0 8px;
	font-family: var(--mpd-font-display);
	font-size: 22px;
	font-weight: 700;
}
html body .mpd-hd .mpd-hd-soon p {
	max-width: 560px;
	margin: 0 auto 20px;
	color: var(--mpd-muted);
}
html body .mpd-hd p.mpd-hd-noresults {
	margin: 32px 0 0;
	padding: 24px;
	border-radius: 12px;
	background: #FFFFFF;
	border: 1px solid var(--mpd-border);
	color: var(--mpd-muted);
	text-align: center;
}
.mpd-hd-empty {
	padding: 16px 20px;
	border-left: 4px solid var(--mpd-accent);
	background: #FFFFFF;
}

/* ==========================================================================
   Article pages
   ========================================================================== */

.mpd-hx-page {
	padding: 28px 0 64px;
	font-family: var(--mpd-font-body);
	color: var(--mpd-ink);
}

.mpd-hx-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	color: var(--mpd-muted);
	font-size: 14px;
}
html body .mpd-hx-crumbs a {
	color: var(--mpd-teal);
	font-weight: 600;
	text-decoration: none;
}
html body .mpd-hx-crumbs a:hover { text-decoration: underline; }
.mpd-hx-crumbs span[aria-hidden] { color: var(--hx-key-border); }

.mpd-hx-article {
	background: #FFFFFF;
	border: 1px solid var(--mpd-border);
	border-radius: 18px;
	box-shadow: var(--hx-shadow);
}

/* Title bar */
.mpd-hx-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 20px;
	padding: 20px 28px;
	border-bottom: 1px solid var(--mpd-border);
}
html body.mpd-theme .mpd-hx-header h1.mpd-hx-title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--mpd-ink);
	font-family: var(--mpd-font-display);
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.005em;
}
html body.mpd-theme .mpd-hx-header h1.mpd-hx-title::before {
	content: "";
	flex: 0 0 auto;
	align-self: stretch;
	width: 6px;
	min-height: 24px;
	border-radius: 3px;
	background: var(--mpd-accent);
}

/* Charts left, text right */
.mpd-hx-layout { display: block; }
.mpd-hx-article--charts .mpd-hx-layout {
	display: grid;
	grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
}
.mpd-hx-charts {
	border-right: 1px solid var(--mpd-border);
	background: var(--hx-soft);
}
.mpd-hx-charts__inner {
	position: sticky;
	top: 72px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
}
html body .mpd-hx-charts p.mpd-hx-charts__hint,
html body .mpd-hx-charts figcaption {
	margin: 0;
	color: var(--mpd-muted);
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
}
.mpd-hx-chart { margin: 0 0 8px; }
html body .mpd-hx-chart button.mpd-hx-zoom {
	position: relative;
	display: block;
	width: 100%;
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: none;
	box-shadow: none;
	cursor: zoom-in;
	min-height: 0;
}
.mpd-hx-chart img,
.mpd-hx-figure img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--mpd-border);
	border-radius: 10px;
	background: #FFFFFF;
	transition: box-shadow 0.15s;
}
.mpd-hx-zoom:hover img,
.mpd-hx-zoom:focus-visible img { box-shadow: 0 6px 18px rgba(11, 31, 51, 0.16); }
.mpd-hx-zoom:focus-visible { outline: 3px solid var(--mpd-cyan); outline-offset: 3px; }
.mpd-hx-zoom__icon {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: rgba(11, 31, 51, 0.78);
	color: #FFFFFF;
}

/* Text column */
.mpd-hx-body {
	padding: 28px 32px 32px;
	min-width: 0;
}
.mpd-hx-article--single .mpd-hx-body {
	max-width: 820px;
	margin: 0 auto;
	padding: 32px clamp(20px, 4vw, 40px) 40px;
}
.mpd-hx-section { margin: 0 0 28px; }
.mpd-hx-section:last-child { margin-bottom: 0; }

html body.mpd-theme .mpd-hx-body h2.mpd-hx-section-title {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	color: var(--mpd-teal);
	font-family: var(--mpd-font-body);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.mpd-hx-article--single .mpd-hx-section { margin-bottom: 36px; }
html body.mpd-theme .mpd-hx-article--single .mpd-hx-body h2.mpd-hx-section-title {
	color: var(--mpd-ink);
	font-family: var(--mpd-font-display);
	font-size: clamp(20px, 2.2vw, 24px);
	letter-spacing: 0;
	text-transform: none;
}
html body.mpd-theme .mpd-hx-body h3.mpd-hx-subtitle {
	margin: 24px 0 10px;
	padding: 0;
	color: var(--mpd-ink);
	font-family: var(--mpd-font-display);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

html body .mpd-hx-body p,
html body .mpd-hx-body li {
	color: var(--mpd-ink);
	font-size: 16px;
	line-height: 1.65;
}
html body .mpd-hx-body p { margin: 0 0 10px; }
html body .mpd-hx-body p:last-child { margin-bottom: 0; }
html body .mpd-hx-body a {
	color: var(--mpd-teal);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
html body .mpd-hx-body a:hover { color: var(--mpd-accent); }

/* Summary */
html body .mpd-hx-summary {
	padding: 16px 18px;
	border-left: 4px solid var(--mpd-teal);
	border-radius: 8px;
	background: var(--hx-teal-soft);
}
html body .mpd-hx-summary p {
	font-size: 17px;
	line-height: 1.6;
}

/* Lists with dots */
html body .mpd-hx-body ul.mpd-hx-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}
html body .mpd-hx-body ul.mpd-hx-list:last-child { margin-bottom: 0; }
html body .mpd-hx-body ul.mpd-hx-list > li {
	position: relative;
	margin: 0;
	padding: 0 0 0 22px;
	list-style: none;
}
html body .mpd-hx-body ul.mpd-hx-list > li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 0.68em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mpd-teal);
}
html body .mpd-hx-body ul.mpd-hx-list--sub {
	gap: 4px;
	margin: 10px 0 12px;
	padding: 12px 16px;
	border-radius: 8px;
	background: var(--hx-soft);
}

/* Numbered steps */
html body .mpd-hx-body ol.mpd-hx-steps {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	counter-reset: mpd-step;
}
html body .mpd-hx-body ol.mpd-hx-steps > li {
	position: relative;
	margin: 0;
	padding: 0 0 0 40px;
	min-height: 28px;
	list-style: none;
	counter-increment: mpd-step;
}
html body .mpd-hx-body ol.mpd-hx-steps > li::before {
	content: counter(mpd-step);
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--hx-teal-soft);
	color: var(--mpd-teal);
	font-size: 13px;
	font-weight: 700;
}

/* Legs */
.mpd-hx-leg {
	margin: 0 0 12px;
	padding: 16px 18px;
	border: 1px solid var(--mpd-border);
	border-radius: 12px;
}
.mpd-hx-leg:last-child { margin-bottom: 0; }
.mpd-hx-leg__head:last-child { margin-bottom: 0; }
.mpd-hx-leg + p,
.mpd-hx-leg + ul { margin-top: 12px; }
.mpd-hx-leg__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 8px;
}
html body.mpd-theme .mpd-hx-body h3.mpd-hx-leg__name {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	color: var(--mpd-ink);
	font-family: var(--mpd-font-display);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}
.mpd-hx-leg__wp {
	display: block;
	margin-top: 2px;
	color: var(--mpd-muted);
	font-family: var(--mpd-font-body);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
}
html body .mpd-hx-leg__heading {
	flex: 0 0 auto;
	height: auto;
	padding: 4px 9px;
	border-radius: 7px;
	background: var(--hx-soft);
}

/* Stretch options: dashed box */
.mpd-hx-note {
	padding: 16px 18px;
	border: 1px dashed var(--hx-key-border);
	border-radius: 12px;
}

/* Call-outs (notes, "Important", "Remember") */
html body .mpd-hx-body p.mpd-hx-callout {
	margin: 14px 0;
	padding: 14px 16px;
	border-left: 4px solid var(--mpd-accent);
	border-radius: 8px;
	background: var(--hx-accent-soft);
	font-size: 15px;
	line-height: 1.6;
}

/* Images inside the text (single-column articles) */
html body .mpd-hx-body figure.mpd-hx-figure {
	margin: 20px 0 24px;
	padding: 0;
}
html body .mpd-hx-body figure.mpd-hx-figure img {
	cursor: zoom-in;
	max-width: 100%;
}
html body .mpd-hx-body figure.mpd-hx-figure img:hover { box-shadow: 0 6px 18px rgba(11, 31, 51, 0.16); }
html body .mpd-hx-body figure.mpd-hx-figure figcaption {
	margin: 8px 0 0;
	color: var(--mpd-muted);
	font-size: 14px;
	line-height: 1.45;
	text-align: center;
}

/* Tables */
html body .mpd-hx-body .mpd-hx-table,
html body .mpd-hx-body table.mpd-hx-table {
	width: 100%;
	margin: 16px 0;
	border-collapse: collapse;
	font-size: 15px;
}
html body .mpd-hx-body .mpd-hx-table th,
html body .mpd-hx-body .mpd-hx-table td {
	padding: 10px 12px;
	border: 1px solid var(--mpd-border);
	text-align: left;
	vertical-align: top;
}
html body .mpd-hx-body .mpd-hx-table th { background: var(--hx-soft); }

/* Buttons block (e.g. "Download the presentation") */
html body .mpd-hx-body .wp-block-buttons { margin: 16px 0 20px; }

/* Previous / next */
.mpd-hx-footer {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 16px 20px;
	border-top: 1px solid var(--mpd-border);
	background: var(--hx-soft);
	border-radius: 0 0 18px 18px;
}
html body a.mpd-hx-pager {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	max-width: 48%;
	padding: 10px 14px;
	border-radius: 10px;
	color: var(--mpd-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}
html body a.mpd-hx-pager:hover { background: #FFFFFF; color: var(--mpd-teal); }
.mpd-hx-pager svg { flex: 0 0 auto; color: var(--mpd-teal); }
.mpd-hx-pager small {
	display: block;
	color: var(--mpd-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.mpd-hx-pager--next { margin-left: auto; text-align: right; }

/* Lightbox */
.mpd-hx-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	background: rgba(11, 31, 51, 0.88);
	cursor: zoom-out;
}
.mpd-hx-lightbox[hidden] { display: none; }
.mpd-hx-lightbox img {
	max-width: 100%;
	max-height: calc(100% - 48px);
	border-radius: 12px;
	background: #FFFFFF;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.mpd-hx-lightbox__caption {
	margin: 0;
	color: #E6EDF3;
	font-family: var(--mpd-font-body);
	font-size: 15px;
	text-align: center;
}
html body button.mpd-hx-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #FFFFFF;
	color: var(--mpd-ink);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
body.mpd-hx-noscroll { overflow: hidden; }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
	.mpd-hx-article--charts .mpd-hx-layout { grid-template-columns: minmax(0, 1fr); }
	.mpd-hx-charts {
		border-right: 0;
		border-bottom: 1px solid var(--mpd-border);
	}
	.mpd-hx-charts__inner {
		position: static;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		gap: 12px 16px;
		padding: 20px;
	}
	.mpd-hx-charts__hint { grid-column: 1 / -1; }
	.mpd-hx-body { padding: 24px 20px 28px; }
	.mpd-hx-header { padding: 18px 20px; }
	html body a.mpd-hx-pager { max-width: 100%; }
}
@media (max-width: 600px) {
	html body.mpd-help-single #main,
	html body.mpd-help-hub #main {
		padding-left: 12px;
		padding-right: 12px;
	}
	.mpd-hd { padding-top: 16px; }
	.mpd-hx-leg { padding: 14px; }
	.mpd-hx-page { padding-top: 16px; }
	html body .mpd-hd a.mpd-hd-tab { min-width: 0; flex: 1 1 100%; }
	html body .mpd-hd a.mpd-hd-row { padding: 16px; }
	.mpd-hx-footer { flex-direction: column; }
	.mpd-hx-pager--next { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.mpd-hd a, .mpd-hx-zoom img, .mpd-hd-row__arrow { transition: none !important; }
}

/* Keep card and row titles dark whatever the theme's link colour is */
html body .mpd-hd a.mpd-hd-card .mpd-hd-card__title,
html body .mpd-hd a.mpd-hd-row .mpd-hd-row__title,
html body .mpd-hd a.mpd-hd-tab .mpd-hd-tab__name { color: inherit; }
html body .mpd-hd a.mpd-hd-card:visited,
html body .mpd-hd a.mpd-hd-row:visited { color: var(--mpd-ink); }

/* Vantage styles every article.post: extra bottom padding/border and a
   narrow floated footer. Undo that for Helpdesk articles. */
html body article.mpd-hx-article {
	margin: 0;
	padding: 0;
	border: 1px solid var(--mpd-border);
}
html body article.mpd-hx-article footer.mpd-hx-footer {
	float: none;
	width: auto;
}

/* ---------- PDF download bar (1.9.2) ---------- */
.mpd-hx-download {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 20px;
	padding: 18px 28px;
	border-top: 1px solid var(--mpd-border);
	background: #FFFFFF;
}
.mpd-hx-download__info {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}
.mpd-hx-download__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 52px;
	border-radius: 6px;
	background: var(--hx-accent-soft);
	color: var(--mpd-accent);
	font-family: var(--mpd-font-body);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
}
.mpd-hx-download__title {
	display: block;
	color: var(--mpd-ink);
	font-family: var(--mpd-font-display);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}
.mpd-hx-download__meta {
	display: block;
	margin-top: 2px;
	color: var(--mpd-muted);
	font-size: 13px;
	line-height: 1.4;
}
html body a.mpd-hx-download__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 8px;
	background: var(--mpd-accent);
	color: #FFFFFF;
	font-family: var(--mpd-font-body);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
html body a.mpd-hx-download__btn:hover,
html body a.mpd-hx-download__btn:focus-visible {
	background: var(--mpd-navy);
	color: #FFFFFF;
}
@media (max-width: 600px) {
	.mpd-hx-download { padding: 16px 20px; }
	html body a.mpd-hx-download__btn { width: 100%; justify-content: center; }
}

/* 1.9.4 – keep link text visible after clicking. The site's
   "a:focus / a:active" rule turns link text orange, which hid the white
   text on the orange Download PDF button once it had been clicked. */
html body.mpd-theme a.mpd-hx-download__btn,
html body.mpd-theme a.mpd-hx-download__btn:visited,
html body.mpd-theme a.mpd-hx-download__btn:focus,
html body.mpd-theme a.mpd-hx-download__btn:active {
	color: #FFFFFF;
}
html body.mpd-theme a.mpd-hx-download__btn:focus-visible {
	background: var(--mpd-navy);
	outline: 3px solid var(--mpd-cyan);
	outline-offset: 2px;
}
html body.mpd-theme .mpd-hd a.mpd-hd-card:focus,
html body.mpd-theme .mpd-hd a.mpd-hd-card:active,
html body.mpd-theme .mpd-hd a.mpd-hd-row:focus,
html body.mpd-theme .mpd-hd a.mpd-hd-row:active {
	color: var(--mpd-ink);
}
html body.mpd-theme .mpd-hd a.mpd-hd-tab:focus,
html body.mpd-theme .mpd-hd a.mpd-hd-tab:active { color: var(--mpd-ink); }
html body.mpd-theme .mpd-hd.is-js a.mpd-hd-tab.is-active:focus,
html body.mpd-theme .mpd-hd.is-js a.mpd-hd-tab.is-active:active { color: #FFFFFF; }
html body.mpd-theme a.mpd-hx-pager:focus,
html body.mpd-theme a.mpd-hx-pager:active { color: var(--mpd-ink); }
html body.mpd-theme .mpd-hd a .mpd-hd-row__title,
html body.mpd-theme .mpd-hd a .mpd-hd-card__title { color: var(--mpd-ink); }
html body.mpd-theme .mpd-hd.is-js a.mpd-hd-tab.is-active .mpd-hd-tab__name { color: #FFFFFF; }
