/*
Theme Name:   MPD UK — Chart Room
Theme URI:    https://maritimeprofessionaldevelopment.co.uk/
Description:  A clean, modern child theme of Vantage for Maritime Professional Development UK. Navy header, Archivo + IBM Plex typography, a single accent colour, and an "MPD Homepage" page template. Edit text and colours in Appearance → Customize → MPD Design / MPD Homepage.
Author:       Maritime Professional Development UK
Template:     vantage
Version:      1.9.6
Requires at least: 5.6
Requires PHP: 7.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  mpd-vantage
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--mpd-navy: #0B1F33;
	--mpd-navy-2: #0F2A42;
	--mpd-line-dark: #1E3A52;
	--mpd-line-dark-2: #3B5670;
	--mpd-ink: #0B1F33;
	--mpd-muted: #4A5B6A;
	--mpd-on-dark: #E3EAF0;
	--mpd-on-dark-muted: #C7D3DE;
	--mpd-bg: #F4F6F7;
	--mpd-surface: #FFFFFF;
	--mpd-surface-2: #E9EEF1;
	--mpd-border: #DCE3E8;
	--mpd-teal: #0E6A73;
	--mpd-cyan: #7FD3DB;
	--mpd-accent: #C24A14; /* overridden by Customizer */
	--mpd-radius: 12px;
	--mpd-radius-sm: 6px;
	--mpd-wrap: 1240px;
	--mpd-gutter: clamp(20px, 4vw, 32px);
	--mpd-font-display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
	--mpd-font-body: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
	--mpd-font-mono: "IBM Plex Mono", Menlo, Consolas, monospace;
}

/* ==========================================================================
   2. Base typography (site-wide)
   ========================================================================== */
html body.mpd-theme {
	background: var(--mpd-bg);
	color: var(--mpd-ink);
	font-family: var(--mpd-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.mpd-theme h1,
body.mpd-theme h2,
body.mpd-theme h3,
body.mpd-theme h4,
body.mpd-theme h5,
body.mpd-theme h6,
body.mpd-theme .entry-title {
	font-family: var(--mpd-font-display);
	color: var(--mpd-ink);
	letter-spacing: -0.01em;
	line-height: 1.15;
	font-weight: 700;
}

/* One heading scale for page content on every page (except the homepage).
   Pixel sizes, because Vantage sets a small base size that made rem-based
   headings shrink. Subheadings are the same whatever level (H2 or H3) they
   were given in the editor. */
html body.mpd-theme .entry-content h1 {
	font-size: clamp(28px, 3.6vw, 36px);
	line-height: 1.15;
}
html body.mpd-theme .entry-content h2,
html body.mpd-theme .entry-content h3 {
	font-family: var(--mpd-font-display);
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.005em;
	color: var(--mpd-ink);
	margin: 40px 0 12px;
	padding: 0;
	border: 0;
}
html body.mpd-theme .entry-content h4 {
	font-size: 20px;
	line-height: 1.3;
	margin: 32px 0 10px;
}
html body.mpd-theme .entry-content h5,
html body.mpd-theme .entry-content h6 {
	font-size: 17px;
	line-height: 1.4;
	margin: 28px 0 8px;
}
html body.mpd-theme .entry-content > h2:first-child,
html body.mpd-theme .entry-content > h3:first-child { margin-top: 0; }
/* Product names in shop listings keep their own, smaller size */
html body.mpd-theme .entry-content ul.products h2,
html body.mpd-theme .entry-content ul.products h3,
html body.mpd-theme .entry-content .woocommerce-loop-product__title {
	font-size: 19px;
	line-height: 1.3;
	margin: 12px 0 6px;
	letter-spacing: 0;
}

body.mpd-theme a {
	color: var(--mpd-teal);
	text-underline-offset: 3px;
}
body.mpd-theme a:hover,
body.mpd-theme a:focus {
	color: var(--mpd-accent);
}

body.mpd-theme :focus-visible {
	outline: 3px solid var(--mpd-cyan);
	outline-offset: 2px;
}

body.mpd-theme .entry-content p,
body.mpd-theme .entry-content li {
	font-size: 17px;
	line-height: 1.7;
}

body.mpd-theme .entry-content img,
body.mpd-theme .entry-content .wp-block-image img {
	border-radius: var(--mpd-radius);
	height: auto;
}

body.mpd-theme .entry-content blockquote {
	border-left: 3px solid var(--mpd-accent);
	background: var(--mpd-surface-2);
	border-radius: 0 var(--mpd-radius-sm) var(--mpd-radius-sm) 0;
	padding: 16px 24px;
	font-style: normal;
}

/* ==========================================================================
   3. Header / masthead
   ========================================================================== */
html body.mpd-theme #masthead {
	background: var(--mpd-navy);
	border-bottom: 1px solid var(--mpd-line-dark);
}
html body.mpd-theme #masthead .hgroup {
	padding-top: 22px;
	padding-bottom: 22px;
	align-items: center;
}
html body.mpd-theme #masthead .hgroup h1,
html body.mpd-theme #masthead .hgroup .site-title,
html body.mpd-theme #masthead .logo {
	font-family: var(--mpd-font-display);
	color: #FFFFFF;
	font-weight: 800;
	font-size: 26px;
	letter-spacing: 0.01em;
}
html body.mpd-theme #masthead .hgroup .logo img {
	max-height: 72px;
	width: auto;
	border-radius: var(--mpd-radius-sm);
}
html body.mpd-theme #masthead .hgroup .site-description,
html body.mpd-theme #masthead .hgroup .support-text {
	color: #A9B8C6;
	font-style: normal;
	font-size: 14px;
	letter-spacing: 0.02em;
}
html body.mpd-theme #masthead .hgroup .support-text a { color: var(--mpd-on-dark); }

/* Homepage logo block in the header of every page (1.8.9) */
html body.mpd-theme #masthead .logo:has(.mpd-brand) {
	display: inline-flex;
	text-decoration: none;
}
html body.mpd-theme #masthead .mpd-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #FFFFFF;
}
html body.mpd-theme #masthead .mpd-brand__mark {
	display: block;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
}
html body.mpd-theme #masthead .mpd-brand__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.1;
}
html body.mpd-theme #masthead .hgroup .mpd-brand .mpd-brand__name {
	margin: 0;
	padding: 0;
	font-family: var(--mpd-font-display);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.02em;
	color: #FFFFFF;
}
html body.mpd-theme #masthead .mpd-brand__sub {
	font-family: var(--mpd-font-body);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.04em;
	color: #A9B8C6;
}
html body.mpd-theme #masthead .mpd-brand__text { text-align: left; }
html body.mpd-theme.mpd-no-support-text #masthead .hgroup .support-text { display: none; }

html body.mpd-header-light #masthead .mpd-brand,
html body.mpd-header-light #masthead .hgroup .mpd-brand .mpd-brand__name { color: var(--mpd-ink); }
html body.mpd-header-light #masthead .mpd-brand__sub { color: var(--mpd-muted); }

/* Light header option (for logos on a white background) */
html body.mpd-header-light #masthead {
	background: var(--mpd-surface);
	border-bottom-color: var(--mpd-border);
}
html body.mpd-header-light #masthead .hgroup h1,
html body.mpd-header-light #masthead .hgroup .site-title,
html body.mpd-header-light #masthead .logo { color: var(--mpd-ink); }
html body.mpd-header-light #masthead .hgroup .site-description,
html body.mpd-header-light #masthead .hgroup .support-text { color: var(--mpd-muted); }

/* ==========================================================================
   4. Main navigation
   ========================================================================== */
html body.mpd-theme .main-navigation,
html body.mpd-theme .site-header .main-navigation {
	background: var(--mpd-navy);
	border-top: 1px solid var(--mpd-line-dark);
}
html body.mpd-theme .main-navigation ul li {
	font-size: 15px;
}
html body.mpd-theme .main-navigation ul li a,
html body.mpd-theme .main-navigation a {
	font-family: var(--mpd-font-body);
	font-weight: 500;
	color: var(--mpd-on-dark);
	padding: 18px 20px;
	background: transparent;
	position: relative;
}
html body.mpd-theme .main-navigation > .full-container > .main-navigation-container > div > ul > li > a::after,
html body.mpd-theme .main-navigation .menu > li > a::after {
	content: "";
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 10px;
	height: 2px;
	background: var(--mpd-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}
html body.mpd-theme .main-navigation ul li:hover > a,
html body.mpd-theme .main-navigation ul li.focus > a,
html body.mpd-theme .main-navigation ul li.current-menu-item > a,
html body.mpd-theme .main-navigation ul li.current_page_item > a,
html body.mpd-theme .main-navigation ul li.current-menu-ancestor > a {
	background: transparent;
	color: #FFFFFF;
}
html body.mpd-theme .main-navigation .menu > li:hover > a::after,
html body.mpd-theme .main-navigation .menu > li.focus > a::after,
html body.mpd-theme .main-navigation .menu > li.current-menu-item > a::after,
html body.mpd-theme .main-navigation .menu > li.current-menu-ancestor > a::after {
	transform: scaleX(1);
}
html body.mpd-theme .main-navigation [class^="fa fa-"],
html body.mpd-theme .main-navigation .mobile-nav-icon {
	color: var(--mpd-on-dark);
}

/* Drop-downs */
html body.mpd-theme .main-navigation ul ul {
	background: var(--mpd-surface);
	border: 1px solid var(--mpd-border);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(11, 31, 51, 0.16);
	padding: 8px;
}
html body.mpd-theme .main-navigation ul ul ul {
	margin-left: 8px;
	top: -8px;
}
html body.mpd-theme .main-navigation ul ul a,
html body.mpd-theme .main-navigation ul ul li a {
	width: 250px;
	padding: 11px 14px;
	color: var(--mpd-ink);
	font-size: 15px;
	line-height: 1.35;
	border-radius: var(--mpd-radius-sm);
}
html body.mpd-theme .main-navigation ul ul li:hover > a,
html body.mpd-theme .main-navigation ul ul li.focus > a,
html body.mpd-theme .main-navigation ul ul li.current-menu-item > a,
html body.mpd-theme .main-navigation ul ul li.current_page_item > a {
	background: var(--mpd-surface-2);
	color: var(--mpd-ink);
}
/* Sub-menu parents of the page you're on ("How to…", "Purchase…"): keep them
   dark and readable inside the white drop-down, marked with a teal bar. */
html body.mpd-theme .main-navigation ul ul li.current-menu-ancestor > a,
html body.mpd-theme .main-navigation ul ul li.current-menu-parent > a,
html body.mpd-theme .main-navigation ul ul li.current-page-ancestor > a,
html body.mpd-theme .main-navigation ul ul li.current_page_ancestor > a,
html body.mpd-theme .main-navigation ul ul li.current_page_parent > a {
	background: transparent;
	color: var(--mpd-ink);
	font-weight: 600;
	box-shadow: inset 3px 0 0 var(--mpd-teal);
}
html body.mpd-theme .main-navigation ul ul li.current-menu-ancestor:hover > a,
html body.mpd-theme .main-navigation ul ul li.current-menu-ancestor.focus > a,
html body.mpd-theme .main-navigation ul ul li.current-page-ancestor:hover > a,
html body.mpd-theme .main-navigation ul ul li.current_page_ancestor:hover > a {
	background: var(--mpd-surface-2);
}
/* Icons and arrows inside the drop-down follow the text colour */
html body.mpd-theme .main-navigation ul ul a [class^="fa fa-"],
html body.mpd-theme .main-navigation ul ul a .icon,
html body.mpd-theme .main-navigation ul ul a::after {
	color: inherit;
}

/* Search icon */
html body.mpd-theme #search-icon #search-icon-icon {
	background: transparent;
	color: var(--mpd-on-dark);
}
html body.mpd-theme #search-icon #search-icon-icon:hover,
html body.mpd-theme #search-icon #search-icon-icon:focus {
	background: var(--mpd-line-dark);
}

/* Light header variant nav */
html body.mpd-header-light .main-navigation,
html body.mpd-header-light .site-header .main-navigation {
	background: var(--mpd-navy);
}

/* Mobile navigation frame */
html body.mpd-theme .mobile-nav-frame,
html body.mpd-theme .mobile-nav-frame .title {
	background: var(--mpd-navy);
	font-family: var(--mpd-font-body);
}
html body.mpd-theme .mobile-nav-frame .title h3 {
	font-family: var(--mpd-font-display);
	color: #FFFFFF;
}
html body.mpd-theme .mobile-nav-frame ul li a.link {
	color: var(--mpd-on-dark);
	border-color: var(--mpd-line-dark);
	font-size: 16px;
}

/* ==========================================================================
   5. Content area
   ========================================================================== */
html body.mpd-theme #main {
	background: var(--mpd-surface);
}
html body.mpd-theme #main .entry-header .entry-title,
html body.mpd-theme .page-title {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	margin-bottom: 0.4em;
}
html body.mpd-theme .entry-meta,
html body.mpd-theme .entry-meta a {
	color: var(--mpd-muted);
	font-size: 14px;
}

/* Sidebar widgets */
html body.mpd-theme #secondary .widget .widget-title,
html body.mpd-theme #secondary .widget h3 {
	font-family: var(--mpd-font-mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mpd-teal);
	border: 0;
}

/* Buttons and form controls */
html body.mpd-theme .button,
html body.mpd-theme button,
html body.mpd-theme input[type="submit"],
html body.mpd-theme input[type="button"],
html body.mpd-theme input[type="reset"],
html body.mpd-theme .wp-block-button__link,
html body.mpd-theme.woocommerce a.button,
html body.mpd-theme.woocommerce button.button,
html body.mpd-theme.woocommerce input.button,
html body.mpd-theme.woocommerce #respond input#submit,
html body.mpd-theme .woocommerce a.button,
html body.mpd-theme .woocommerce button.button,
html body.mpd-theme .woocommerce input.button {
	background: var(--mpd-accent);
	background-image: none;
	color: #FFFFFF;
	border: 0;
	border-radius: var(--mpd-radius-sm);
	box-shadow: none;
	text-shadow: none;
	font-family: var(--mpd-font-body);
	font-weight: 600;
	font-size: 16px;
	min-height: 44px;
	padding: 12px 22px;
	line-height: 1.2;
	box-sizing: border-box; /* the 44px minimum includes the padding */
	cursor: pointer;
	transition: filter 0.15s ease;
}
/* Link-style buttons (e.g. WooCommerce "Add to basket"): centre the label */
html body.mpd-theme a.button,
html body.mpd-theme .wp-block-button__link,
html body.mpd-theme.woocommerce a.button,
html body.mpd-theme .woocommerce a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	vertical-align: middle;
}
html body.mpd-theme .button:hover,
html body.mpd-theme button:hover,
html body.mpd-theme input[type="submit"]:hover,
html body.mpd-theme .wp-block-button__link:hover,
html body.mpd-theme.woocommerce a.button:hover,
html body.mpd-theme.woocommerce button.button:hover,
html body.mpd-theme .woocommerce a.button:hover,
html body.mpd-theme .woocommerce button.button:hover {
	background: var(--mpd-accent);
	color: #FFFFFF;
	filter: brightness(0.88);
}
/* Mobile nav toggle and search buttons should not look like CTAs */
html body.mpd-theme .main-navigation button,
html body.mpd-theme #search-icon button,
html body.mpd-theme .mobile-nav-frame button {
	background: transparent;
	min-height: 0;
	padding: initial;
	color: inherit;
}

html body.mpd-theme input[type="text"],
html body.mpd-theme input[type="email"],
html body.mpd-theme input[type="url"],
html body.mpd-theme input[type="tel"],
html body.mpd-theme input[type="password"],
html body.mpd-theme input[type="search"],
html body.mpd-theme input[type="number"],
html body.mpd-theme select,
html body.mpd-theme textarea {
	font-family: var(--mpd-font-body);
	font-size: 16px;
	border: 1px solid #B9C5CE;
	border-radius: var(--mpd-radius-sm);
	padding: 10px 12px;
	background: #FFFFFF;
	color: var(--mpd-ink);
	box-shadow: none;
}
html body.mpd-theme input:focus,
html body.mpd-theme select:focus,
html body.mpd-theme textarea:focus {
	border-color: var(--mpd-teal);
	outline: 2px solid var(--mpd-cyan);
	outline-offset: 0;
}

/* Incl./Excl. VAT switch (Tax Switch for WooCommerce): a two-option toggle
   in the site style — white outlined bar, the selected option in navy. */
html body.mpd-theme .wdevs-tax-switch.wdevs-tax-buttons {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	background: #FFFFFF;
	border: 1px solid var(--mpd-border);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(11, 31, 51, 0.04);
}
html body.mpd-theme .wdevs-tax-switch.wdevs-tax-buttons .wdevs-tax-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin: 0;
	padding: 0 18px;
	box-sizing: border-box;
	background: transparent;
	color: var(--mpd-ink);
	border: 0;
	border-radius: 7px;
	box-shadow: none;
	filter: none;
	font-family: var(--mpd-font-body);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
html body.mpd-theme .wdevs-tax-switch.wdevs-tax-buttons .wdevs-tax-button:hover {
	background: var(--mpd-surface-2);
	color: var(--mpd-ink);
	filter: none;
}
html body.mpd-theme .wdevs-tax-switch.wdevs-tax-buttons .wdevs-tax-button.wdevs-tax-button-active,
html body.mpd-theme .wdevs-tax-switch.wdevs-tax-buttons .wdevs-tax-button.wdevs-tax-button-active:hover {
	background: var(--mpd-navy);
	color: #FFFFFF;
	font-weight: 600;
}
html body.mpd-theme .wdevs-tax-switch.wdevs-tax-buttons .wdevs-tax-button:focus-visible {
	outline: 3px solid var(--mpd-cyan);
	outline-offset: 2px;
}

/* WooCommerce touch-ups */
html body.mpd-theme.woocommerce ul.products li.product .woocommerce-loop-product__title,
html body.mpd-theme .woocommerce ul.products li.product h2 {
	font-family: var(--mpd-font-display);
	font-size: 19px;
}
html body.mpd-theme.woocommerce ul.products li.product .price,
html body.mpd-theme.woocommerce div.product p.price {
	color: var(--mpd-teal);
	font-weight: 600;
}
html body.mpd-theme .woocommerce-message,
html body.mpd-theme .woocommerce-info {
	border-top-color: var(--mpd-teal);
}

/* ==========================================================================
   6. Footer
   ========================================================================== */
html body.mpd-theme #colophon {
	background: var(--mpd-navy);
	color: var(--mpd-on-dark-muted);
	border-top: 1px solid var(--mpd-line-dark);
	font-size: 15px;
}
html body.mpd-theme #colophon #footer-widgets {
	padding-top: 56px;
	padding-bottom: 24px;
}
html body.mpd-theme #colophon .widget,
html body.mpd-theme #colophon .widget p,
html body.mpd-theme #colophon .widget li {
	color: var(--mpd-on-dark-muted);
}
html body.mpd-theme #colophon .widget-title,
html body.mpd-theme #colophon .widget h3 {
	font-family: var(--mpd-font-display);
	color: #FFFFFF;
	font-size: 17px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
}
html body.mpd-theme #colophon a {
	color: #FFFFFF;
	text-decoration: none;
}
html body.mpd-theme #colophon a:hover,
html body.mpd-theme #colophon a:focus {
	color: var(--mpd-cyan);
	text-decoration: underline;
}
html body.mpd-theme #colophon #site-info,
html body.mpd-theme #colophon #theme-attribution {
	color: #A9B8C6;
	font-size: 14px;
	border-top: 1px solid var(--mpd-line-dark);
	padding-top: 20px;
	padding-bottom: 28px;
}
html body.mpd-theme #scroll-to-top {
	background: var(--mpd-navy);
	border-radius: var(--mpd-radius-sm);
}

/* ==========================================================================
   7. MPD Homepage template
   ========================================================================== */
html body.mpd-home #main {
	background: var(--mpd-bg);
	padding: 0;
}
html body.mpd-home #main > .full-container {
	max-width: none;
	padding: 0;
}
body.mpd-home #page-wrapper {
	overflow-x: clip;
}

/* Full-bleed bands, whatever Vantage's layout (boxed or full) */
.mpd-band {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	box-sizing: border-box;
}
.mpd-page,
.mpd-page * {
	box-sizing: border-box;
}
.mpd-page {
	float: none;
	width: auto;
	margin: 0;
	font-family: var(--mpd-font-body);
	color: var(--mpd-ink);
}
.mpd-wrap {
	max-width: var(--mpd-wrap);
	margin: 0 auto;
	padding: 0 var(--mpd-gutter);
}
.mpd-wrap--narrow { max-width: 900px; }

.mpd-page h1,
.mpd-page h2,
.mpd-page h3 {
	font-family: var(--mpd-font-display);
	margin: 0;
	border: 0;
	padding: 0;
}
.mpd-page p { margin: 0; }
.mpd-page ul,
.mpd-page ol { margin: 0; padding: 0; list-style: none; }

.mpd-eyebrow {
	font-family: var(--mpd-font-mono);
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mpd-teal);
}
.mpd-eyebrow--light { color: var(--mpd-cyan); }

.mpd-h2 {
	font-size: clamp(2rem, 3.4vw, 2.875rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
	font-weight: 700;
	color: var(--mpd-ink);
}
.mpd-lede {
	color: var(--mpd-muted);
	max-width: 26rem;
}

/* Buttons */
.mpd-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
body.mpd-theme .mpd-btn {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 26px;
	border-radius: var(--mpd-radius-sm);
	font-family: var(--mpd-font-body);
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
body.mpd-theme .mpd-btn--accent {
	background: var(--mpd-accent);
	color: #FFFFFF;
}
body.mpd-theme .mpd-btn--accent:hover,
body.mpd-theme .mpd-btn--accent:focus {
	color: #FFFFFF;
	filter: brightness(0.88);
}
body.mpd-theme .mpd-btn--ghost {
	border: 1px solid #4A6680;
	color: #FFFFFF;
	font-weight: 500;
}
body.mpd-theme .mpd-btn--ghost:hover,
body.mpd-theme .mpd-btn--ghost:focus {
	color: #FFFFFF;
	border-color: #FFFFFF;
	background: rgba(255, 255, 255, 0.06);
}

/* Hero */
.mpd-hero {
	background: var(--mpd-navy);
	color: #FFFFFF;
}
.mpd-hero__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: 56px;
	align-items: center;
	padding-top: clamp(56px, 8vw, 88px);
	padding-bottom: clamp(64px, 9vw, 104px);
}
.mpd-hero__copy {
	display: flex;
	flex-direction: column;
	gap: 28px;
}
body.mpd-theme .mpd-hero__title {
	color: #FFFFFF;
	font-size: clamp(2.5rem, 5vw, 4.25rem);
	line-height: 1.04;
	letter-spacing: -0.015em;
	font-weight: 700;
}
.mpd-hero__text {
	font-size: 19px;
	color: var(--mpd-on-dark-muted);
	max-width: 34rem;
}
.mpd-proof {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin-top: 8px;
	padding-top: 24px;
	border-top: 1px solid var(--mpd-line-dark);
	font-size: 14px;
	color: var(--mpd-on-dark-muted);
}
.mpd-proof li {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.mpd-proof strong {
	font-family: var(--mpd-font-display);
	font-size: 16px;
	color: #FFFFFF;
}
.mpd-hero__visual {
	display: flex;
	justify-content: center;
}
.mpd-radar {
	width: 100%;
	max-width: 500px;
	height: auto;
	display: block;
}
.mpd-radar__sweep {
	transform-origin: 240px 240px;
	animation: mpd-sweep 7s linear infinite;
}
@keyframes mpd-sweep {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
	.mpd-radar__sweep { animation: none; }
}

/* Generic section */
.mpd-section {
	padding-top: clamp(64px, 9vw, 104px);
	padding-bottom: clamp(64px, 9vw, 104px);
}
.mpd-section--flush-top { padding-top: 0; }
.mpd-section--white {
	background: var(--mpd-surface);
	border-top: 1px solid var(--mpd-border);
	border-bottom: 1px solid var(--mpd-border);
}
.mpd-section__head {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 40rem;
	margin-bottom: 48px;
}
.mpd-section__head--split {
	max-width: none;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}
.mpd-section__head--split > div {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 40rem;
}

/* Product cards */
.mpd-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
	gap: 20px;
}
.mpd-card {
	background: var(--mpd-surface);
	border: 1px solid var(--mpd-border);
	border-radius: var(--mpd-radius);
	padding: 30px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mpd-card:hover {
	border-color: #B9C5CE;
	box-shadow: 0 10px 28px rgba(11, 31, 51, 0.08);
}
.mpd-card--soon {
	background: var(--mpd-surface-2);
	border-style: dashed;
	border-color: #A9B8C6;
}
.mpd-card__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 26px;
}
.mpd-card__num {
	font-family: var(--mpd-font-mono);
	font-size: 13px;
	color: var(--mpd-muted);
}
.mpd-badge {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	background: #E2F2F3;
	color: #0E5A62;
}
.mpd-badge--soon {
	background: #FBE7DC;
	color: #8A3410;
}
body.mpd-theme .mpd-card__title {
	font-size: 23px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--mpd-ink);
}
.mpd-card__text {
	color: var(--mpd-muted);
	font-size: 16px;
	flex-grow: 1;
}
.mpd-card__text strong {
	display: block;
	margin-top: 8px;
	color: #8A3410;
	font-weight: 600;
}
body.mpd-theme .mpd-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 600;
	text-decoration: none;
	color: var(--mpd-ink);
}
body.mpd-theme .mpd-link:hover,
body.mpd-theme .mpd-link:focus { color: var(--mpd-accent); }
.mpd-link .mpd-arrow { transition: transform 0.15s ease; }
.mpd-link:hover .mpd-arrow { transform: translateX(3px); }

/* Why MPD */
.mpd-why {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
	gap: 64px;
	align-items: center;
}
.mpd-why__figure {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.mpd-why__figure img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--mpd-radius);
	border: 1px solid var(--mpd-border);
	display: block;
}
.mpd-why__figure figcaption {
	font-size: 14px;
	color: var(--mpd-muted);
}
.mpd-why__copy {
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.mpd-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px 32px;
}
.mpd-feature {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--mpd-teal);
}
body.mpd-theme .mpd-feature h3 {
	font-size: 19px;
	font-weight: 700;
	color: var(--mpd-ink);
}
.mpd-feature p {
	font-size: 16px;
	color: var(--mpd-muted);
}

/* Steps */
.mpd-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 20px;
}
.mpd-step {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 24px;
	border-top: 2px solid var(--mpd-navy);
}
.mpd-step__num {
	font-family: var(--mpd-font-display);
	font-weight: 800;
	font-size: 40px;
	line-height: 1;
	color: var(--mpd-accent);
}
body.mpd-theme .mpd-step h3 {
	font-size: 21px;
	font-weight: 700;
	color: var(--mpd-ink);
}
.mpd-step p {
	color: var(--mpd-muted);
	font-size: 16px;
}
body.mpd-theme .mpd-step a {
	font-weight: 600;
	font-size: 15px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	color: var(--mpd-ink);
}
body.mpd-theme .mpd-step a:hover { color: var(--mpd-accent); }

/* Team */
.mpd-team {
	display: flex;
	flex-direction: column;
	gap: 28px;
	align-items: flex-start;
}
.mpd-team__quote {
	font-family: var(--mpd-font-display);
	font-weight: 600;
	font-size: clamp(1.5rem, 2.6vw, 2.125rem);
	line-height: 1.3;
	color: var(--mpd-ink);
}
.mpd-team__sig {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 15px;
	line-height: 1.35;
	color: var(--mpd-muted);
}
.mpd-team__sig strong { color: var(--mpd-ink); }
.mpd-team__avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--mpd-border);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--mpd-font-display);
	font-weight: 700;
	color: var(--mpd-ink);
	flex-shrink: 0;
}

/* Optional editor content */
.mpd-editor-content > * + * { margin-top: 1em; }

/* CTA */
.mpd-cta {
	background: var(--mpd-navy);
	color: #FFFFFF;
	border-radius: 16px;
	padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}
.mpd-cta > div:first-child {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 36rem;
}
body.mpd-theme .mpd-cta__title {
	color: #FFFFFF;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.15;
	font-weight: 700;
}
.mpd-cta p { color: var(--mpd-on-dark-muted); }

/* ==========================================================================
   8. Small screens
   ========================================================================== */
@media (max-width: 680px) {
	html body.mpd-theme { font-size: 16px; }
	html body.mpd-theme #masthead .hgroup { padding-top: 16px; padding-bottom: 16px; }
	.mpd-hero__grid { gap: 40px; }
	.mpd-hero__visual { order: -1; }
	.mpd-hero .mpd-radar { max-width: 280px !important; }
	.mpd-actions .mpd-btn { width: 100%; justify-content: center; }
	.mpd-card { padding: 24px; }
	.mpd-why { gap: 40px; }
}

/* ==========================================================================
   9. Radar shortcode [mpd_radar]
   ========================================================================== */
.mpd-radar-block { margin: 1.5em 0; }
.mpd-radar-block .mpd-radar { width: 100%; height: auto; display: block; }
.mpd-radar-block--navy {
	background: var(--mpd-navy);
	border-radius: var(--mpd-radius);
	padding: clamp(24px, 5vw, 48px);
}
.mpd-radar--center { margin-left: auto; margin-right: auto; }
.mpd-radar--right { margin-left: auto; }
.mpd-radar--left { margin-right: auto; }
.mpd-radar--still .mpd-radar__sweep { animation: none; }
body.mpd-theme .entry-content svg.mpd-radar { border-radius: 0; height: auto; }

/* ==========================================================================
   10. Smart footer
   ========================================================================== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.mpd-footer__wrap {
	max-width: var(--mpd-wrap);
	margin: 0 auto;
	padding-left: var(--mpd-gutter);
	padding-right: var(--mpd-gutter);
	box-sizing: border-box;
}

/* CTA strip above the footer (hidden on the MPD Homepage, which has its own) */
.mpd-footer-cta {
	background: var(--mpd-surface);
	border-top: 1px solid var(--mpd-border);
	font-family: var(--mpd-font-body);
}
.mpd-footer-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	padding-top: 48px;
	padding-bottom: 48px;
}
.mpd-footer-cta__eyebrow {
	margin: 0 0 8px;
	font-family: var(--mpd-font-mono);
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mpd-teal);
}
body.mpd-theme .mpd-footer-cta__title {
	margin: 0;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.15;
	color: var(--mpd-ink);
	border: 0;
	padding: 0;
}
.mpd-footer-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
body.mpd-theme .mpd-btn--outline {
	border: 1px solid var(--mpd-navy);
	color: var(--mpd-navy);
	font-weight: 500;
}
body.mpd-theme .mpd-btn--outline:hover,
body.mpd-theme .mpd-btn--outline:focus {
	background: var(--mpd-navy);
	color: #FFFFFF;
}

/* Footer body — same layout and content as the homepage footer, in navy */
html body.mpd-theme #colophon.mpd-footer {
	background: var(--mpd-navy);
	color: var(--mpd-on-dark-muted);
	border-top: 0;
	padding: 0;
	margin: 0;
	font-family: var(--mpd-font-body);
	font-size: 15px;
	line-height: 1.6;
	text-align: left;
}
.mpd-footer__widgets {
	padding-top: 48px;
	padding-bottom: 0;
}
.mpd-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 32px;
	padding-top: 64px;
	padding-bottom: 48px;
}
.mpd-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
html body.mpd-theme #colophon .mpd-footer__name {
	font-family: var(--mpd-font-display);
	font-weight: 800;
	font-size: 20px;
	color: #FFFFFF;
	text-decoration: none;
}
.mpd-footer__tagline {
	margin: 0;
	font-size: 15px;
	color: var(--mpd-on-dark-muted);
}
.mpd-footer__logos {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}
.mpd-footer__logos li { margin: 0; padding: 0; display: flex; align-items: center; }
.mpd-footer__logos a { display: inline-flex; line-height: 0; }
.mpd-footer__logos img {
	display: block;
	height: 64px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
}
/* Logos without a ready-made white version are tinted white */
.mpd-footer__logos--white img.mpd-logo-mono { filter: brightness(0) invert(1); }

/* Link columns */
html body.mpd-theme #colophon .mpd-footer__heading {
	margin: 0 0 4px;
	padding: 0;
	border: 0;
	font-family: var(--mpd-font-body);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: #FFFFFF;
}
.mpd-footer__col { display: flex; flex-direction: column; gap: 6px; }
.mpd-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 15px;
}
.mpd-footer__links li { margin: 0; padding: 0; }
html body.mpd-theme #colophon .mpd-footer__links a {
	color: var(--mpd-on-dark);
	text-decoration: none;
}
html body.mpd-theme #colophon .mpd-footer__links a:hover,
html body.mpd-theme #colophon .mpd-footer__links a:focus {
	color: #FFFFFF;
	text-decoration: underline;
	text-decoration-color: var(--mpd-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* Bottom bar */
.mpd-footer__bottom {
	padding-top: 24px;
	padding-bottom: 40px;
	background: linear-gradient(var(--mpd-line-dark), var(--mpd-line-dark)) center top / calc(100% - 2 * var(--mpd-gutter)) 1px no-repeat;
	font-size: 14px;
	color: #A9B8C6;
}
.mpd-footer__legal { margin: 0; }

/* Keep Vantage's floating back-to-top clear of the footer bar */
body.mpd-theme #scroll-to-top { bottom: 24px; }

@media (max-width: 600px) {
	.mpd-footer-cta__actions { width: 100%; }
	.mpd-footer-cta__actions .mpd-btn { flex: 1 1 100%; justify-content: center; }
}

/* ==========================================================================
   11. Breadcrumbs hidden (Customize → MPD Design → Show breadcrumbs)
   ========================================================================== */
body.mpd-no-breadcrumbs #yoast-breadcrumbs,
body.mpd-no-breadcrumbs #breadcrumbs,
body.mpd-no-breadcrumbs .breadcrumbs,
body.mpd-no-breadcrumbs .breadcrumb-trail,
body.mpd-no-breadcrumbs .rank-math-breadcrumb,
body.mpd-no-breadcrumbs .aioseo-breadcrumbs,
body.mpd-no-breadcrumbs .woocommerce-breadcrumb,
body.mpd-no-breadcrumbs .so-widget-sow-breadcrumbs {
	display: none !important;
}
