/*
 * MPD content styling for information pages.
 * Only the page content area changes; header and footer are untouched.
 * Switched on per page: edit the page → "MPD content styling" box.
 * Classes come from inc/content-style.php, which reads how the page is written.
 */

/* ------------------------------------------------------------------
   Page canvas and column
   ------------------------------------------------------------------ */
html body.mpd-content-style #main {
	background: #F4F6F7;
}

body.mpd-content-style #main .entry-content,
body.mpd-content-style #main .entry-header {
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
}

body.mpd-content-style #main .entry-content {
	padding: 64px 0 40px;
	color: #2B3A48;
	font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
	font-size: 17px;
	line-height: 1.75;
}
body.mpd-content-style #main .entry-header + .entry-content {
	padding-top: 20px;
}

body.mpd-content-style #main .entry-content > * {
	margin-top: 0;
	margin-bottom: 0;
}
body.mpd-content-style #main .entry-content > * + * {
	margin-top: 24px;
}

/* ------------------------------------------------------------------
   Page title (in the content, or the page's own title above it)
   ------------------------------------------------------------------ */
body.mpd-content-style #main .entry-header {
	padding: 64px 0 0;
	margin-bottom: 0;
	border: 0;
	background: none;
}
html body.mpd-content-style #main .entry-header .entry-title,
html body.mpd-content-style #main .entry-content .mpd-page-title {
	font-family: "Archivo", "Arial Narrow", sans-serif;
	font-weight: 700;
	font-size: clamp(36px, 4.6vw, 52px);
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: #0B1F33;
	margin: 0;
	padding: 22px 0 0;
	position: relative;
	border: 0;
	text-align: left;
}
body.mpd-content-style #main .entry-header .entry-title::before,
body.mpd-content-style #main .entry-content .mpd-page-title::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 48px;
	height: 4px;
	border-radius: 2px;
	background: var(--mpd-accent, #C24A14);
}
body.mpd-content-style #main .entry-content .mpd-page-title strong { font-weight: inherit; }

/* Introduction */
body.mpd-content-style #main .entry-content .mpd-intro {
	margin-top: 20px;
	font-size: 21px;
	line-height: 1.6;
	color: #0B1F33;
}
body.mpd-content-style #main .entry-content > .mpd-intro:first-child { margin-top: 0; }

/* ------------------------------------------------------------------
   Body copy
   ------------------------------------------------------------------ */
body.mpd-content-style #main .entry-content p {
	font-size: 17px;
	line-height: 1.75;
}
body.mpd-content-style #main .entry-content .mpd-intro { font-size: 21px; line-height: 1.6; }
body.mpd-content-style #main .entry-content a {
	color: #0E6A73;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
body.mpd-content-style #main .entry-content a:hover { color: var(--mpd-accent, #C24A14); }
body.mpd-content-style #main .entry-content h2,
body.mpd-content-style #main .entry-content h3 {
	font-family: "Archivo", "Arial Narrow", sans-serif;
	color: #0B1F33;
	line-height: 1.2;
}

/* ------------------------------------------------------------------
   Photos, video, slideshow and forms: framed cards
   ------------------------------------------------------------------ */
body.mpd-content-style #main .entry-content > .mpd-frame {
	max-width: 100% !important;
	width: 100%;
	margin: 48px 0 !important;
	padding: 10px;
	background: #FFFFFF;
	border: 1px solid #DCE3E8;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(11, 31, 51, 0.04), 0 12px 32px rgba(11, 31, 51, 0.07);
	text-align: left !important;
	box-sizing: border-box;
}
body.mpd-content-style #main .entry-content > .mpd-frame figure {
	margin: 0 !important;
	max-width: none !important;
}
body.mpd-content-style #main .entry-content > .mpd-frame--image img {
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	display: block;
	border-radius: 10px;
	margin: 0 !important;
}
/* Tall photos stay a sensible size */
body.mpd-content-style #main .entry-content > .mpd-frame--portrait {
	max-width: 480px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
body.mpd-content-style #main .entry-content > .mpd-frame--video > div,
body.mpd-content-style #main .entry-content > .mpd-frame--slider,
body.mpd-content-style #main .entry-content > .mpd-frame--slider .soliloquy-container {
	max-width: 100% !important;
	width: 100% !important;
}
body.mpd-content-style #main .entry-content > .mpd-frame--video .fluid-width-video-wrapper,
body.mpd-content-style #main .entry-content > .mpd-frame--video > div,
body.mpd-content-style #main .entry-content > .mpd-frame--video iframe,
body.mpd-content-style #main .entry-content > .mpd-frame--slider .soliloquy-container {
	border-radius: 10px;
	overflow: hidden;
}
body.mpd-content-style #main .entry-content > .mpd-frame--slider .soliloquy-container {
	margin: 0 !important;
}
/* Embedded forms (e.g. the enquiry form on Contact us) */
body.mpd-content-style #main .entry-content > .mpd-frame--embed {
	padding: 8px;
}
body.mpd-content-style #main .entry-content > .mpd-frame--embed iframe {
	display: block;
	width: 100% !important;
	border: 0 !important;
	border-radius: 10px;
}
/* Captions */
body.mpd-content-style #main .entry-content figcaption {
	margin: 0;
	padding: 12px 6px 4px;
	font-size: 14px;
	line-height: 1.5;
	color: #4A5B6A;
	text-align: left;
}
body.mpd-content-style #main .entry-content figcaption em,
body.mpd-content-style #main .entry-content figcaption i {
	font-style: normal;
}
/* WordPress lays centred images out as a table, which pushes the caption
   outside the frame; use normal block layout inside frames instead. */
body.mpd-content-style #main .entry-content > .mpd-frame,
body.mpd-content-style #main .entry-content > .mpd-frame figure {
	display: block !important;
}
body.mpd-content-style #main .entry-content > .mpd-frame figcaption {
	display: block !important;
	caption-side: initial;
}
/* Logos and graphics keep their own size, centred */
body.mpd-content-style #main .entry-content > .mpd-graphic {
	margin-top: 32px;
	margin-bottom: 8px;
	text-align: center;
}
body.mpd-content-style #main .entry-content > .mpd-graphic img {
	max-width: 100%;
	height: auto;
}

/* Text beside an image (About) */
body.mpd-content-style #main .entry-content > .mpd-media-text {
	margin: 40px 0 !important;
	padding: 28px;
	gap: 28px;
	background: #FFFFFF;
	border: 1px solid #DCE3E8;
	border-radius: 16px;
	align-items: center;
}
body.mpd-content-style #main .entry-content > .mpd-media-text .wp-block-media-text__content {
	padding: 0;
}
body.mpd-content-style #main .entry-content > .mpd-media-text .wp-block-media-text__content > * + * {
	margin-top: 16px;
}
body.mpd-content-style #main .entry-content > .mpd-media-text .wp-block-media-text__media img {
	border-radius: 10px;
	width: 100%;
	height: auto;
}

/* ------------------------------------------------------------------
   Section lead-ins ("…key features:") act as section headings
   ------------------------------------------------------------------ */
body.mpd-content-style #main .entry-content .mpd-lead-in {
	margin-top: 72px;
	font-family: "Archivo", "Arial Narrow", sans-serif;
	font-weight: 700;
	font-size: clamp(22px, 2.4vw, 28px);
	line-height: 1.25;
	letter-spacing: -0.005em;
	color: #0B1F33;
}
body.mpd-content-style #main .entry-content .mpd-lead-in::before {
	content: "";
	display: block;
	width: 32px;
	height: 3px;
	border-radius: 2px;
	margin-bottom: 16px;
	background: #0E6A73;
}
body.mpd-content-style #main .entry-content .mpd-lead-in--planned::before {
	background: var(--mpd-accent, #C24A14);
}

/* Lists as a grid of cards with ticks */
body.mpd-content-style #main .entry-content ul.mpd-list-cards {
	list-style: none;
	margin-left: 0;
	padding: 0;
	margin-top: 20px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 12px;
}
body.mpd-content-style #main .entry-content ul.mpd-list-cards > li {
	position: relative;
	margin: 0;
	padding: 16px 18px 16px 52px;
	background: #FFFFFF;
	border: 1px solid #DCE3E8;
	border-radius: 12px;
	font-size: 16px;
	line-height: 1.55;
	color: #2B3A48;
}
body.mpd-content-style #main .entry-content ul.mpd-list-cards > li::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 16px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #E2F2F3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230E6A73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Lists whose items have sub-lists: one full-width card per row */
body.mpd-content-style #main .entry-content ul.mpd-list-cards--wide {
	grid-template-columns: minmax(0, 1fr);
}
body.mpd-content-style #main .entry-content ul.mpd-list-cards > li > ul,
body.mpd-content-style #main .entry-content ul.mpd-list-cards > li > ol {
	margin: 10px 0 0;
}

/* "Later releases" list: planned, so dashed and a clock icon */
body.mpd-content-style #main .entry-content ul.mpd-list-planned > li {
	background: #E9EEF1;
	border-style: dashed;
	border-color: #A9B8C6;
}
body.mpd-content-style #main .entry-content ul.mpd-list-planned > li::before {
	background: #FBE7DC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238A3410' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='5.5'/%3E%3Cpath d='M8 5v3.2l2 1.3'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Other lists: neat teal bullets */
body.mpd-content-style #main .entry-content ul:not(.mpd-list-cards):not(.soliloquy-slider) {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}
body.mpd-content-style #main .entry-content ul:not(.mpd-list-cards):not(.soliloquy-slider) > li {
	position: relative;
	padding-left: 26px;
	margin: 8px 0;
}
body.mpd-content-style #main .entry-content ul:not(.mpd-list-cards):not(.soliloquy-slider) > li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.72em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #0E6A73;
}
body.mpd-content-style #main .entry-content ol {
	padding-left: 1.4em;
}
body.mpd-content-style #main .entry-content ol > li { margin: 8px 0; padding-left: 4px; }
body.mpd-content-style #main .entry-content ol > li::marker {
	color: #0E6A73;
	font-weight: 600;
}

/* ------------------------------------------------------------------
   Articles (News): titles, summaries, quotes, dividers
   ------------------------------------------------------------------ */
body.mpd-content-style #main .entry-content .mpd-article-title {
	font-family: "Archivo", "Arial Narrow", sans-serif;
	font-weight: 700;
	font-size: clamp(26px, 3.2vw, 34px);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: #0B1F33;
	margin-top: 8px;
	border: 0;
	padding: 0;
}
body.mpd-content-style #main .entry-content .mpd-article-title strong { font-weight: inherit; }
body.mpd-content-style #main .entry-content .mpd-standfirst {
	margin-top: 14px;
	font-size: 19px;
	line-height: 1.55;
	color: #0E5A62;
}
body.mpd-content-style #main .entry-content .mpd-standfirst em { font-style: normal; }
body.mpd-content-style #main .entry-content .mpd-quote {
	margin-top: 28px;
	margin-bottom: 8px;
	padding: 24px 28px 24px 64px;
	position: relative;
	background: #FFFFFF;
	border: 1px solid #DCE3E8;
	border-radius: 14px;
	font-family: "Archivo", "Arial Narrow", sans-serif;
	font-size: 19px;
	line-height: 1.5;
	color: #0B1F33;
}
body.mpd-content-style #main .entry-content .mpd-quote em { font-style: normal; }
body.mpd-content-style #main .entry-content .mpd-quote::before {
	content: "\201C";
	position: absolute;
	left: 22px;
	top: 10px;
	font-family: Georgia, serif;
	font-size: 52px;
	line-height: 1;
	color: #0E6A73;
}
body.mpd-content-style #main .entry-content .mpd-note {
	font-size: 14px;
	line-height: 1.5;
	color: #4A5B6A;
	text-align: center;
}
body.mpd-content-style #main .entry-content > hr {
	height: 0;
	margin: 80px 0 64px !important;
	border: 0;
	border-top: 1px solid #C9D3DA;
	background: none;
	opacity: 1;
}

/* ------------------------------------------------------------------
   Contact call-out
   ------------------------------------------------------------------ */
body.mpd-content-style #main .entry-content .mpd-callout {
	margin: 56px 0 !important;
	padding: 32px 36px;
	border-radius: 16px;
	background: #0B1F33;
	color: #E3EAF0;
	font-size: 19px;
	line-height: 1.55;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
}
body.mpd-content-style #main .entry-content .mpd-callout a.mpd-callout__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	flex-shrink: 0;
	padding: 0 24px;
	border-radius: 6px;
	background: var(--mpd-accent, #C24A14);
	color: #FFFFFF;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}
body.mpd-content-style #main .entry-content .mpd-callout a.mpd-callout__link::after {
	content: "";
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.8'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.mpd-content-style #main .entry-content .mpd-callout a.mpd-callout__link:hover {
	color: #FFFFFF;
	filter: brightness(0.9);
}
body.mpd-content-style #main .entry-content .mpd-callout a.mpd-callout__link:focus-visible {
	outline: 3px solid #7FD3DB;
	outline-offset: 2px;
}

/* ------------------------------------------------------------------
   Panel (e.g. System requirements)
   ------------------------------------------------------------------ */
body.mpd-content-style #main .entry-content .mpd-panel {
	margin-top: 72px;
	padding: 32px 36px;
	background: #FFFFFF;
	border: 1px solid #DCE3E8;
	border-radius: 16px;
}
body.mpd-content-style #main .entry-content .mpd-panel .mpd-section-title {
	margin: 0 0 8px;
	padding: 0;
	font-size: clamp(22px, 2.4vw, 28px); /* same as every other subheading */
	font-weight: 700;
	border: 0;
}
body.mpd-content-style #main .entry-content .mpd-panel p {
	margin: 0;
	padding: 14px 0;
	font-size: 16px;
	line-height: 1.65;
	border-top: 1px solid #E5EBEF;
}
body.mpd-content-style #main .entry-content .mpd-panel .mpd-section-title + p {
	border-top: 0;
}

/* ------------------------------------------------------------------
   Small screens
   ------------------------------------------------------------------ */
@media (max-width: 680px) {
	html body.mpd-content-style #main { padding-left: 20px; padding-right: 20px; }
	body.mpd-content-style #main .entry-content { padding-top: 36px; }
	body.mpd-content-style #main .entry-header { padding-top: 36px; }
	body.mpd-content-style #main .entry-content .mpd-intro { font-size: 19px; }
	body.mpd-content-style #main .entry-content > .mpd-frame { margin: 36px 0 !important; padding: 6px; border-radius: 12px; }
	body.mpd-content-style #main .entry-content > .mpd-frame--portrait { margin-left: auto !important; margin-right: auto !important; }
	body.mpd-content-style #main .entry-content .mpd-lead-in,
	body.mpd-content-style #main .entry-content .mpd-panel { margin-top: 56px; }
	body.mpd-content-style #main .entry-content .mpd-callout,
	body.mpd-content-style #main .entry-content .mpd-panel,
	body.mpd-content-style #main .entry-content > .mpd-media-text { padding: 24px 22px; }
	body.mpd-content-style #main .entry-content .mpd-quote { padding: 20px 20px 20px 52px; font-size: 17px; }
	body.mpd-content-style #main .entry-content > hr { margin: 56px 0 48px !important; }
}
