/* IEF.wiki Main Page (TemplateStyles). Full-width modern layout; adapts to tablets, phones and dark mode. */
.ief-mp {
	max-width: 1240px;
	margin: 0 auto;
	line-height: 1.6;
}
.ief-mp p {
	margin: 0.4em 0;
}

/* ---------- Section headings ---------- */
.ief-mp .mw-heading2,
.ief-mp h2 {
	margin: 34px 0 12px;
	padding: 0;
	border: 0;
}
.ief-mp h2 {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 1.55em;
	font-weight: 700;
	line-height: 1.25;
}
.ief-mp-intro {
	margin: -4px 0 14px;
	color: var(--color-subtle, #54595d);
}
.ief-mp-label {
	margin-bottom: 8px;
	color: #2a7189;
	font-size: 0.75em;
	font-weight: bold;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* ---------- Hero: intro + search (left), MRV Assistant (right) ---------- */
.ief-mp-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px 40px;
	margin: 4px 0 0;
	padding: 40px 40px;
	border-radius: 18px;
	background: linear-gradient(120deg, #173f5a 0%, #1d5578 40%, #2a7189 75%, #5ab1a7 100%);
	color: #ffffff;
}
.ief-mp-hero-text {
	flex: 1 1 400px;
	min-width: 0;
}
.ief-mp-kicker {
	margin: 0 0 8px;
	font-size: 0.8em;
	font-weight: bold;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.85;
}
.ief-mp-title {
	margin: 0 0 14px;
	font-family: Georgia, 'Times New Roman', Times, serif;
	font-size: 2.7em;
	font-weight: bold;
	line-height: 1.1;
	color: #ffffff;
}
.ief-mp-lead {
	max-width: 36em;
	margin: 0 0 24px;
	font-size: 1.12em;
	line-height: 1.6;
	color: #ffffff;
	opacity: 0.95;
}
.ief-mp-hero-text a,
.ief-mp-hero-text a:visited,
.ief-mp-cta a,
.ief-mp-cta a:visited {
	color: #ffffff;
}

/* Search box (InputBox) */
.ief-mp-search form,
.ief-mp-search .bodySearchWrap {
	justify-content: flex-start;
	margin: 0;
}
.ief-mp-search .bodySearchWrap {
	gap: 8px;
	width: 100%;
	max-width: 560px;
}
.ief-mp-search .cdx-text-input {
	flex: 1 1 auto;
}
.ief-mp-search .cdx-text-input__input {
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	padding: 0 20px;
	border-radius: 999px;
	font-size: 1em;
}
.ief-mp-search .cdx-button {
	min-height: 46px;
	padding: 0 24px;
	border-color: #ffffff;
	border-radius: 999px;
	background-color: #ffffff;
	color: #1d5578;
	font-weight: bold;
}

/* Buttons */
.ief-mp-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}
.ief-mp-buttons-center {
	justify-content: center;
}
.ief-mp-btn a,
.ief-mp-btn a.external {
	display: inline-block;
	padding: 9px 20px !important;
	border-radius: 999px;
	background-image: none !important;
	font-weight: bold;
	text-decoration: none;
	transition: background-color 0.15s ease, transform 0.15s ease;
}
.ief-mp-btn a.external::after {
	display: none;
}
.ief-mp-btn a:hover {
	text-decoration: none;
	transform: translateY(-1px);
}
.ief-mp-btn-primary a,
.ief-mp-btn-primary a:visited,
.ief-mp-hero-text .ief-mp-btn-primary a,
.ief-mp-cta .ief-mp-btn-primary a {
	background-color: #ffffff;
	color: #1d5578;
}
.ief-mp-btn-ghost a {
	border: 1px solid rgba(255, 255, 255, 0.85);
	background-color: rgba(255, 255, 255, 0.08);
}
.ief-mp-btn-ghost a:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

/* MRV Assistant card */
.ief-mp-assistant {
	flex: 0 1 340px;
	min-width: 0;
	margin: 0 auto;
	padding: 26px 28px;
	border-radius: 16px;
	background-color: #ffffff;
	color: #202122;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}
.ief-mp-badge {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	background-color: #e1f2ef;
	color: #1d5578;
	font-size: 0.74em;
	font-weight: bold;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.ief-mp-assistant-title {
	margin: 12px 0 4px;
	color: #173f5a;
	font-size: 1.55em;
	font-weight: 700;
	line-height: 1.2;
}
.ief-mp-assistant-text {
	color: #54595d;
}
.ief-mp-assistant ul {
	margin: 14px 0 20px;
	padding: 0;
	list-style: none;
}
.ief-mp-assistant li {
	margin: 7px 0;
}
.ief-mp-check {
	display: inline-block;
	width: 1.5em;
	color: #2a7189;
	font-weight: bold;
}
.ief-mp-btn-feature a,
.ief-mp-btn-feature a.external,
.ief-mp-btn-feature a:visited {
	display: block;
	padding: 13px 20px !important;
	background-color: #5ab1a7;
	color: #0e2a3a;
	font-size: 1.08em;
	text-align: center;
	box-shadow: 0 4px 14px rgba(42, 113, 137, 0.3);
}
.ief-mp-btn-feature a:hover {
	background-color: #4ea397;
}
html.skin-theme-clientpref-night .ief-mp-btn-feature a {
	background-color: #7fcdc4;
	color: #0e2a3a;
}
@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .ief-mp-btn-feature a {
		background-color: #7fcdc4;
		color: #0e2a3a;
	}
}
.ief-mp-assistant-note {
	margin-top: 10px;
	color: #72777d;
	font-size: 0.82em;
	text-align: center;
}

/* ---------- Topics: 4 / 3 / 2 / 1 columns (always fills evenly) ---------- */
.ief-mp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}
.ief-mp-topic {
	padding: 18px 20px;
	border: 1px solid var(--border-color-subtle, #c8ccd1);
	border-radius: 14px;
	background-color: var(--background-color-interactive-subtle, #f8f9fa);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ief-mp-topic:hover {
	border-color: #5ab1a7;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}
.ief-mp-topic-title {
	margin-bottom: 4px;
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.35;
}
.ief-mp-topic-desc {
	font-size: 0.9em;
	line-height: 1.5;
	color: var(--color-subtle, #54595d);
}
.ief-mp-browse {
	margin-top: 16px;
	font-size: 0.92em;
	color: var(--color-subtle, #54595d);
}

/* ---------- Latest articles: 3 x 3 editorial grid ---------- */
.ief-mp-articles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px 36px;
}
.ief-mp-article {
	padding: 12px 0 10px;
	border-top: 2px solid var(--border-color-subtle, #c8ccd1);
	transition: border-color 0.15s ease;
}
.ief-mp-article:hover {
	border-top-color: #5ab1a7;
}
.ief-mp-article-title {
	font-size: 1.02em;
	font-weight: 700;
	line-height: 1.35;
}
.ief-mp-more-btn {
	margin-top: 14px;
}
.ief-mp-more-btn a,
.ief-mp-more-btn a:visited {
	display: inline-block;
	padding: 9px 22px;
	border: 2px solid #1d5578;
	border-radius: 999px;
	color: #1d5578;
	font-weight: bold;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.ief-mp-more-btn a:hover {
	background-color: #1d5578;
	color: #ffffff;
	text-decoration: none;
}

/* ---------- All articles archive ---------- */
.ief-mp-archive {
	border-top: 1px solid var(--border-color-subtle, #c8ccd1);
}
.ief-mp-archive-item {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	column-gap: 24px;
	padding: 14px 2px;
	border-bottom: 1px solid var(--border-color-subtle, #c8ccd1);
}
.ief-mp-archive-date {
	padding-top: 2px;
	color: #2a7189;
	font-size: 0.82em;
	font-weight: bold;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.ief-mp-archive .ief-mp-article-desc {
	margin-top: 2px;
}
.ief-mp-article-desc {
	margin-top: 6px;
	font-size: 0.9em;
	line-height: 1.5;
	color: var(--color-subtle, #54595d);
}

/* ---------- About band ---------- */
.ief-mp-about {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 32px 48px;
	padding: 40px 44px;
	border-radius: 18px;
	background-color: #173f5a;
	color: #ffffff;
}
.ief-mp-about .ief-mp-label {
	color: #8fd3ca;
}
.ief-mp-about-statement {
	font-family: Georgia, 'Times New Roman', Times, serif;
	font-size: 1.6em;
	line-height: 1.4;
}
.ief-mp-about-intro {
	margin-top: 20px;
	font-size: 0.95em;
	opacity: 0.8;
}
.ief-mp-about-side {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-left: 32px;
	border-left: 1px solid rgba(255, 255, 255, 0.22);
}

/* ---------- People: team | advisors side by side ---------- */
.ief-mp-people {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 56px;
}
.ief-mp-roster {
	border-top: 1px solid var(--border-color-subtle, #c8ccd1);
}
.ief-mp-person {
	padding: 10px 2px;
	border-bottom: 1px solid var(--border-color-subtle, #c8ccd1);
}
.ief-mp-person-name {
	font-weight: 700;
}
.ief-mp-person-role {
	font-size: 0.92em;
	color: var(--color-subtle, #54595d);
}
.ief-mp-contribute {
	margin-top: 20px;
	padding: 20px 22px;
	border-radius: 14px;
	background-color: rgba(90, 177, 167, 0.14);
}

/* ---------- Closing call to action ---------- */
.ief-mp-cta {
	margin: 38px 0 8px;
	padding: 40px 28px;
	border-radius: 18px;
	background: linear-gradient(120deg, #173f5a 0%, #1d5578 40%, #2a7189 75%, #5ab1a7 100%);
	color: #ffffff;
	text-align: center;
}
.ief-mp-cta-title {
	margin-bottom: 6px;
	font-family: Georgia, 'Times New Roman', Times, serif;
	font-size: 1.9em;
	font-weight: bold;
	line-height: 1.2;
}
.ief-mp-cta-text {
	max-width: 40em;
	margin: 0 auto;
	opacity: 0.92;
}
.ief-mp-cta-contact {
	margin-top: 18px;
	font-size: 0.92em;
	opacity: 0.9;
}
.ief-mp-cta-contact a,
.ief-mp-cta-contact a.external {
	padding-right: 0 !important;
	background-image: none !important;
	text-decoration: underline;
}
.ief-mp-cta-contact a.external::after {
	display: none;
}

/* ---------- Dark mode ---------- */
html.skin-theme-clientpref-night .ief-mp-label,
html.skin-theme-clientpref-night .ief-mp-check,
html.skin-theme-clientpref-night .ief-mp-archive-date,
html.skin-theme-clientpref-night .ief-mp-more-btn a {
	color: #7fcdc4;
}
html.skin-theme-clientpref-night .ief-mp-more-btn a {
	border-color: #7fcdc4;
}
html.skin-theme-clientpref-night .ief-mp-assistant {
	background-color: #1b2228;
	color: #eaecf0;
}
html.skin-theme-clientpref-night .ief-mp-assistant-title {
	color: #e1f2ef;
}
html.skin-theme-clientpref-night .ief-mp-assistant-text,
html.skin-theme-clientpref-night .ief-mp-assistant-note {
	color: #a2a9b1;
}
@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .ief-mp-label,
	html.skin-theme-clientpref-os .ief-mp-check,
	html.skin-theme-clientpref-os .ief-mp-archive-date,
	html.skin-theme-clientpref-os .ief-mp-more-btn a {
		color: #7fcdc4;
	}
	html.skin-theme-clientpref-os .ief-mp-more-btn a {
		border-color: #7fcdc4;
	}
	html.skin-theme-clientpref-os .ief-mp-assistant {
		background-color: #1b2228;
		color: #eaecf0;
	}
	html.skin-theme-clientpref-os .ief-mp-assistant-title {
		color: #e1f2ef;
	}
	html.skin-theme-clientpref-os .ief-mp-assistant-text,
	html.skin-theme-clientpref-os .ief-mp-assistant-note {
		color: #a2a9b1;
	}
}

/* ---------- Tablets ---------- */
@media screen and (max-width: 1000px) {
	.ief-mp-articles,
	.ief-mp-about,
	.ief-mp-people {
		grid-template-columns: minmax(0, 1fr);
	}
	.ief-mp-articles {
		gap: 0;
	}
	.ief-mp-about-side {
		padding: 24px 0 0;
		border-top: 1px solid rgba(255, 255, 255, 0.22);
		border-left: 0;
	}
}

/* ---------- Phones ---------- */
@media screen and (max-width: 720px) {
	.ief-mp-hero {
		padding: 26px 22px;
	}
	.ief-mp-title {
		font-size: 1.9em;
	}
	.ief-mp-about {
		padding: 28px 24px;
	}
	.ief-mp-about-statement {
		font-size: 1.3em;
	}
	.ief-mp-cta {
		padding: 30px 20px;
	}
	.ief-mp-archive-item {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 4px;
	}
}