/*
Theme Name: SMF Capital 2026
Theme URI: https://www.smfcapital.co.uk/
Author: SMF Capital
Description: Interim theme for smfcapital.co.uk that moves the site towards the new SMF Capital design (pill buttons, light hero, soft cards, black footer) while keeping every page's text, URLs, menus and footer links exactly as they are.
Version: 1.1.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smf-capital-interim
*/

:root {
	--smfx-blue: #306BEA;
	--smfx-blue-dark: #2457C9;
	--smfx-blue-soft: #E8F0FE;
	--smfx-navy: #001525;
	--smfx-navy-2: #0B2238;
	--smfx-ink: #0A1628;
	--smfx-text: #475467;
	--smfx-muted: #667085;
	--smfx-line: #E3E9F2;
	--smfx-pale: #F2F8FE;
	--smfx-pale-2: #F7FAFF;
	--smfx-white: #FFFFFF;
	--smfx-r: 16px;
	--smfx-r-lg: 24px;
	--smfx-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px -12px rgba(16, 24, 40, .12);
	--smfx-shadow-lg: 0 24px 60px -24px rgba(0, 21, 37, .28);
	--smfx-font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--smfx-wrap: 1180px;
	--smfx-gutter: 24px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }

body.smfx {
	margin: 0;
	background: var(--smfx-white);
	color: var(--smfx-text);
	font-family: var(--smfx-font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--smfx-blue); text-underline-offset: 3px; }
a:hover { color: var(--smfx-blue-dark); }

:focus-visible { outline: 2px solid var(--smfx-blue); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px;
	background: #fff; color: var(--smfx-ink); border-radius: 8px;
}

.smfx-wrap {
	width: 100%;
	max-width: calc(var(--smfx-wrap) + var(--smfx-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--smfx-gutter);
}
.smfx-wrap--narrow { max-width: calc(860px + var(--smfx-gutter) * 2); }

/* ---------- Buttons & pills ---------- */

.smfx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 24px;
	border-radius: 999px; border: 0;
	font: 500 16px/1.2 var(--smfx-font);
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.smfx-btn--blue { background: var(--smfx-blue); color: #fff; }
.smfx-btn--blue:hover { background: var(--smfx-blue-dark); color: #fff; }
.smfx-btn--white { background: #fff; color: var(--smfx-ink); box-shadow: inset 0 0 0 1px var(--smfx-line); }
.smfx-btn--white:hover { color: var(--smfx-blue); box-shadow: inset 0 0 0 1px var(--smfx-blue); }

.smfx-pill {
	display: inline-flex; align-items: center;
	padding: 5px 12px; border-radius: 999px;
	background: #fff; color: var(--smfx-blue);
	font: 600 12px/1.2 var(--smfx-font);
	letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}
.smfx-pill--sm { font-size: 11px; padding: 4px 10px; background: var(--smfx-blue-soft); box-shadow: none; }

.smfx-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.smfx-arrow svg { transition: transform .2s; }
.smfx-arrow:hover svg { transform: translateX(3px); }

/* ---------- Top bar ---------- */

.smfx-topbar { background: var(--smfx-navy); color: rgba(255, 255, 255, .9); font-size: 13.5px; }
.smfx-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; max-width: 1328px; }
.smfx-topbar__tag { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smfx-topbar__links { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.smfx-topbar a, .smfx-search-toggle { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.smfx-topbar a:hover { color: #A9C4FA; }
.smfx-search-toggle { background: none; border: 0; padding: 4px; cursor: pointer; }
.smfx-search { background: var(--smfx-navy-2); padding: 14px 0; }

.smfx-searchform { display: flex; gap: 10px; width: 100%; max-width: 640px; }
.smfx-searchform input[type=search] {
	flex: 1; min-width: 0; min-height: 48px; padding: 10px 20px;
	border-radius: 999px; border: 1px solid var(--smfx-line);
	font: 400 16px var(--smfx-font); color: var(--smfx-ink); background: #fff;
}
.smfx-search .smfx-searchform { margin-left: auto; }

/* ---------- Header ---------- */

.smfx-header {
	position: sticky; top: 0; z-index: 60;
	background: #fff;
	border-bottom: 1px solid transparent;
	transition: box-shadow .2s, border-color .2s;
}
.admin-bar .smfx-header { top: 32px; }
.smfx-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(16, 24, 40, .18); border-color: var(--smfx-line); }
.smfx-header__inner { display: flex; align-items: center; gap: 20px; min-height: 84px; max-width: 1328px; }

.smfx-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.smfx-logo__img { height: 46px; width: auto; display: block; }

.smfx-nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; align-self: stretch; }
.smfx-nav__extra { display: none; }

.smfx-menu, .smfx-menu ul { list-style: none; margin: 0; padding: 0; }
.smfx-menu { display: flex; align-items: stretch; gap: 2px; }
.smfx-menu > li { position: relative; display: flex; align-items: center; }
.smfx-menu a {
	display: block; color: var(--smfx-ink); text-decoration: none;
	font-size: 15px; font-weight: 500; line-height: 1.3;
}
.smfx-menu > li > a { padding: 10px 10px; border-radius: 999px; }
.smfx-menu > li.menu-item-has-children > a { padding-right: 2px; }
.smfx-menu > li > a:hover,
.smfx-menu > li.current-menu-item > a,
.smfx-menu > li.current-menu-ancestor > a { color: var(--smfx-blue); }

.smfx-sub-toggle {
	width: 22px; height: 30px; padding: 0; margin-right: 4px;
	background: none; border: 0; cursor: pointer; color: var(--smfx-ink);
	display: inline-flex; align-items: center; justify-content: center;
}
.smfx-sub-toggle span {
	width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
	transform: translateY(-2px) rotate(45deg); transition: transform .2s;
}
.smfx-menu li.is-open > .smfx-sub-toggle span { transform: translateY(2px) rotate(225deg); }

.smfx-menu .sub-menu {
	position: absolute; top: calc(100% - 10px); left: 0; z-index: 70;
	min-width: 300px; max-height: 70vh; overflow-y: auto;
	padding: 8px; background: #fff; border-radius: 16px;
	border: 1px solid var(--smfx-line); box-shadow: var(--smfx-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.smfx-menu .sub-menu .sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; opacity: 1; visibility: visible; transform: none; max-height: none; min-width: 0; }
.smfx-menu .sub-menu li { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.smfx-menu .sub-menu a { flex: 1; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 400; color: var(--smfx-text); }
.smfx-menu .sub-menu a:hover { background: var(--smfx-pale); color: var(--smfx-blue); }
.smfx-menu .sub-menu .smfx-sub-toggle { display: none; }
.smfx-menu .sub-menu .sub-menu { flex-basis: 100%; }

@media (min-width: 1201px) {
	.smfx-menu { height: 100%; }
	.smfx-menu > li:hover > .sub-menu,
	.smfx-menu > li:focus-within > .sub-menu,
	.smfx-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
	.smfx-menu > li:nth-last-child(-n+3) > .sub-menu { left: auto; right: 0; }
}

.smfx-header__cta { flex: 0 0 auto; }

.smfx-burger {
	display: none; flex: 0 0 auto; width: 46px; height: 46px; margin-left: auto;
	border: 1px solid var(--smfx-line); border-radius: 999px; background: #fff; cursor: pointer;
	flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.smfx-burger span { width: 18px; height: 2px; background: var(--smfx-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.smfx-nav-open .smfx-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.smfx-nav-open .smfx-burger span:nth-child(2) { opacity: 0; }
.smfx-nav-open .smfx-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1200px) {
	.smfx-burger { display: inline-flex; }
	.smfx-header__cta { margin-left: auto; }
	.smfx-header__cta + .smfx-burger { margin-left: 0; }
	.smfx-nav {
		position: fixed; left: 0; right: 0; top: var(--smfx-nav-top, 126px); bottom: 0;
		display: block; overflow-y: auto; background: #fff;
		padding: 12px var(--smfx-gutter) 40px; border-top: 1px solid var(--smfx-line);
		opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
		transition: opacity .2s, transform .2s, visibility 0s .2s;
	}
	.smfx-nav-open .smfx-nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .2s, transform .2s; }
	.smfx-nav-open { overflow: hidden; }
	.smfx-menu { display: block; }
	.smfx-menu > li { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--smfx-line); }
	.smfx-menu > li > a { flex: 1; padding: 16px 4px; font-size: 17px; border-radius: 0; }
	.smfx-sub-toggle { width: 46px; height: 46px; margin: 0; }
	.smfx-menu .sub-menu {
		position: static; flex-basis: 100%; display: none; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; border-radius: 12px; background: var(--smfx-pale); margin: 0 0 14px; max-height: none;
	}
	.smfx-menu li.is-open > .sub-menu { display: block; }
	.smfx-nav__extra { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
}
@media (max-width: 782px) { .admin-bar .smfx-header { top: 0; } }
@media (max-width: 640px) {
	:root { --smfx-gutter: 18px; }
	.smfx-hide-sm { display: none; }
	.smfx-topbar__tag { display: none; }
	.smfx-topbar__inner { justify-content: flex-end; }
	.smfx-header__inner { min-height: 72px; }
	.smfx-logo__img { height: 38px; }
	.smfx-header__cta { display: none; }
	.smfx-burger { margin-left: auto !important; }
}

/* ---------- Page heading band (pages without their own H1) ---------- */

.smfx-pagehead {
	position: relative; overflow: hidden;
	padding: 72px 0 60px;
	background:
		radial-gradient(900px 380px at 90% -10%, rgba(178, 224, 250, .75), transparent 65%),
		linear-gradient(180deg, #E4F1FC 0%, #F2F8FE 70%, #fff 100%);
}
.smfx-pagehead__title {
	margin: 18px 0 0; color: var(--smfx-ink);
	font-size: clamp(34px, 4.4vw, 58px); font-weight: 400; line-height: 1.08; letter-spacing: -.025em;
	max-width: 22ch;
}
.smfx-pagehead__meta { margin: 18px 0 0; color: var(--smfx-muted); font-size: 15px; }
.smfx-pagehead__intro { margin-top: 18px; max-width: 680px; }
.smfx-pagehead .smfx-searchform { margin-top: 28px; }
.smfx-404-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.smfx-featured { margin-top: -20px; margin-bottom: 8px; }
.smfx-featured img { width: 100%; border-radius: var(--smfx-r-lg); display: block; }

/* ---------- Prose (pages written without the house HTML) ---------- */

.smfx-content--prose { padding-top: 40px; padding-bottom: 72px; }
.smfx-content--prose > :first-child { margin-top: 0; }
.smfx-content--prose h1,
.smfx-content--prose h2,
.smfx-content--prose h3,
.smfx-content--prose h4 { color: var(--smfx-ink); line-height: 1.2; }
.smfx-content--prose h1 { font-size: clamp(32px, 4vw, 50px); font-weight: 400; letter-spacing: -.02em; }
.smfx-content--prose h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 400; letter-spacing: -.02em; margin: 52px 0 16px; }
.smfx-content--prose h3 { font-size: 21px; font-weight: 600; margin: 34px 0 10px; }
.smfx-content--prose p, .smfx-content--prose li { font-size: 17.5px; }
.smfx-content--prose ul, .smfx-content--prose ol { padding-left: 22px; }
.smfx-content--prose li { margin-bottom: 8px; }
.smfx-content--prose li::marker { color: var(--smfx-blue); }
.smfx-content--prose p.intro { font-size: 21px; color: var(--smfx-ink); line-height: 1.5; }
.smfx-content--prose blockquote {
	margin: 32px 0; padding: 22px 26px; border-left: 3px solid var(--smfx-blue);
	background: var(--smfx-pale); border-radius: 0 var(--smfx-r) var(--smfx-r) 0; color: var(--smfx-ink); font-size: 19px;
}
.smfx-content--prose img { border-radius: var(--smfx-r); }
.smfx-content--prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 24px 0; display: block; overflow-x: auto; }
.smfx-content--prose th { background: var(--smfx-navy); color: #fff; text-align: left; padding: 12px 14px; font-weight: 600; }
.smfx-content--prose td { padding: 12px 14px; border-bottom: 1px solid var(--smfx-line); vertical-align: top; }
.smfx-content--prose hr { border: 0; border-top: 1px solid var(--smfx-line); margin: 40px 0; }

/* ======================================================================
   House HTML pages (.smf-home, .smf-post, .smf-loc, .smf-ev …)
   These rules restyle the panels already on each page – no content edits.
   ====================================================================== */

body.smfx .smfx-content--designed {
	width: 100%;
	max-width: calc(var(--smfx-wrap) + var(--smfx-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--smfx-gutter) 40px;
	font-family: var(--smfx-font);
	color: var(--smfx-text);
	font-size: 17px;
	line-height: 1.65;
}
body.smfx .smfx-content--designed > div[class^="smf-"],
body.smfx .smfx-content--designed > article {
	max-width: none; margin: 0; padding: 0;
	font-family: inherit; color: inherit; font-size: inherit; line-height: inherit;
}

/* Typography */
body.smfx .smfx-content--designed h1,
body.smfx .smfx-content--designed .hero-title {
	font-family: var(--smfx-font); color: var(--smfx-ink);
	font-size: clamp(36px, 5vw, 64px); font-weight: 400; line-height: 1.06; letter-spacing: -.03em;
	margin: 0 0 22px;
}
body.smfx .smfx-content--designed h2 {
	font-family: var(--smfx-font); color: var(--smfx-ink);
	font-size: clamp(28px, 3.3vw, 46px); font-weight: 400; line-height: 1.1; letter-spacing: -.025em;
	margin: 88px 0 20px; max-width: 22ch;
}
body.smfx .smfx-content--designed h3 {
	font-family: var(--smfx-font); color: var(--smfx-ink);
	font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin: 34px 0 10px;
}
body.smfx .smfx-content--designed h4 { font-family: var(--smfx-font); color: var(--smfx-ink); font-weight: 600; }
body.smfx .smfx-content--designed p { margin: 0 0 18px; }
body.smfx .smfx-content--designed > div > p,
body.smfx .smfx-content--designed > p { max-width: 860px; }
body.smfx .smfx-content--designed a { color: var(--smfx-blue); }
body.smfx .smfx-content--designed strong { color: var(--smfx-ink); font-weight: 600; }
body.smfx .smfx-content--designed ul,
body.smfx .smfx-content--designed ol { padding-left: 22px; margin: 0 0 20px; }
body.smfx .smfx-content--designed li { margin-bottom: 8px; }
body.smfx .smfx-content--designed li::marker { color: var(--smfx-blue); }
body.smfx .smfx-content--designed .lead { font-size: 19px; color: var(--smfx-text); max-width: 760px; }

/* Eyebrow labels become pills */
body.smfx .smfx-content--designed .eyebrow {
	display: inline-flex; width: auto; align-items: center;
	padding: 5px 11px; margin: 0 0 14px; border-radius: 999px;
	background: var(--smfx-blue-soft); color: var(--smfx-blue);
	font: 600 11px/1.2 var(--smfx-font); letter-spacing: .09em; text-transform: uppercase;
}

/* Buttons inside content */
body.smfx .smfx-content--designed .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
body.smfx .smfx-content--designed .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 14px 26px; border-radius: 999px; border: 0;
	font: 500 16px/1.2 var(--smfx-font); text-decoration: none;
	transition: background-color .2s, color .2s, box-shadow .2s;
}
body.smfx .smfx-content--designed .btn-light { background: var(--smfx-blue); color: #fff !important; box-shadow: 0 8px 20px -10px rgba(48, 107, 234, .7); }
body.smfx .smfx-content--designed .btn-light::after { content: "→"; font-size: 17px; }
body.smfx .smfx-content--designed .btn-light:hover { background: var(--smfx-blue-dark); }
body.smfx .smfx-content--designed .btn-ghost { background: #fff; color: var(--smfx-ink) !important; box-shadow: inset 0 0 0 1px var(--smfx-line), 0 2px 6px rgba(16, 24, 40, .05); }
body.smfx .smfx-content--designed .btn-ghost:hover { color: var(--smfx-blue) !important; box-shadow: inset 0 0 0 1px var(--smfx-blue); }

/* Hero: light, full width */
body.smfx .smfx-content--designed .hero {
	position: relative;
	margin: 0 calc(50% - 50vw) 0;
	padding: 96px max(var(--smfx-gutter), calc(50vw - var(--smfx-wrap) / 2)) 104px;
	border-radius: 0;
	color: var(--smfx-text);
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' fill='none'%3E%3Cpath d='M-20 380C120 300 260 140 620 60' stroke='%23306BEA' stroke-opacity='.18' stroke-width='38'/%3E%3Cpath d='M-20 400C150 330 300 190 620 120' stroke='%23306BEA' stroke-opacity='.10' stroke-width='18'/%3E%3C/svg%3E") left bottom / 620px auto no-repeat,
		radial-gradient(1000px 520px at 88% 0%, rgba(158, 212, 248, .85), transparent 62%),
		radial-gradient(700px 400px at 5% 100%, rgba(232, 240, 254, .9), transparent 70%),
		linear-gradient(180deg, #DCEEFB 0%, #EEF6FD 55%, #F8FBFF 100%);
	overflow: hidden;
}
body.smfx .smfx-content--designed .hero > * { position: relative; max-width: 780px; }
body.smfx .smfx-content--designed .hero h1,
body.smfx .smfx-content--designed .hero .hero-title { color: var(--smfx-ink); }
body.smfx:not(.home) .smfx-content--designed .hero h1 { font-size: clamp(32px, 3.9vw, 54px); max-width: 920px; }
body.smfx .smfx-content--designed .hero p,
body.smfx .smfx-content--designed .hero .lead { color: var(--smfx-text); font-size: 18.5px; max-width: 680px; }
body.smfx .smfx-content--designed .hero a:not(.btn) { color: var(--smfx-blue); }
body.smfx .smfx-content--designed .hero .eyebrow { background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }

/* Hero photo from the page's Featured Image, faded in from the left (as on FD Capital) */
body.smfx.smfx-has-photo .smfx-article > .smfx-content--designed:first-child .hero,
body.smfx.smfx-has-photo .smfx-pagehead {
	background:
		linear-gradient(90deg, #EEF6FD 0%, rgba(238, 246, 253, .97) 38%, rgba(238, 246, 253, .7) 52%, rgba(238, 246, 253, .18) 64%, rgba(238, 246, 253, 0) 74%),
		linear-gradient(0deg, rgba(248, 251, 255, .9) 0%, rgba(248, 251, 255, 0) 22%),
		var(--smfx-hero-img) right center / cover no-repeat,
		#EEF6FD;
}
body.smfx.smfx-has-photo .smfx-article > .smfx-content--designed:first-child .hero { min-height: 560px; }
body.smfx.smfx-has-photo .smfx-pagehead { min-height: 380px; display: flex; align-items: center; }
body.smfx.smfx-has-photo .smfx-pagehead > .smfx-wrap { max-width: calc(var(--smfx-wrap) + var(--smfx-gutter) * 2); }
body.smfx.smfx-has-photo .smfx-pagehead__title, body.smfx.smfx-has-photo .smfx-pagehead__intro { max-width: 620px; }
body.smfx.smfx-has-photo .smfx-content--designed .hero > *:not(.smfx-founder-card) { max-width: 620px; }
body.smfx.smfx-has-photo:not(.home) .smfx-content--designed .hero h1 { max-width: 660px; font-size: clamp(32px, 3.4vw, 48px); }
body.smfx.smfx-has-photo.home .smfx-content--designed .hero > h1,
body.smfx.smfx-has-photo.home .smfx-content--designed .hero > p.hero-title { max-width: 720px; }
body.smfx .smfx-content--designed .hero .hero-title + .lead,
body.smfx .smfx-content--designed .hero > h1 + .hero-title { margin-top: 0; }
body.smfx .smfx-content--designed .hero p.hero-title { font-size: 19px; font-weight: 600; letter-spacing: 0; line-height: 1.4; margin: 0 0 18px; color: var(--smfx-ink); }
body.smfx.smfx-has-photo .smfx-content--designed .hero.smfx-has-card { min-height: 640px; }
@media (max-width: 900px) {
	body.smfx.smfx-has-photo .smfx-article > .smfx-content--designed:first-child .hero,
	body.smfx.smfx-has-photo .smfx-pagehead {
		background:
			linear-gradient(180deg, rgba(238, 246, 253, .55) 0%, rgba(238, 246, 253, .9) 45%, #EEF6FD 100%),
			var(--smfx-hero-img) center top / cover no-repeat,
			#EEF6FD;
	}
	body.smfx.smfx-has-photo .smfx-content--designed .hero { min-height: 0; }
}

/* Founder card in the homepage hero (added by the theme) */
body.smfx .smfx-content--designed .hero.smfx-has-card { min-height: 640px; }
.smfx-founder-card {
	position: absolute !important; right: max(var(--smfx-gutter), calc(50vw - var(--smfx-wrap) / 2)); bottom: 72px;
	width: 340px; padding: 26px 26px 22px; display: block;
	background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, .9); border-radius: 22px;
	box-shadow: 0 20px 50px -24px rgba(0, 21, 37, .35);
	color: var(--smfx-text) !important; text-decoration: none;
}
.smfx-founder-card img {
	position: absolute; top: -34px; right: -26px; width: 96px; height: 96px;
	border-radius: 50%; border: 4px solid #fff; box-shadow: 0 10px 24px -10px rgba(0, 21, 37, .45);
}
.smfx-founder-card strong { display: block; font-size: 21px; font-weight: 500; color: var(--smfx-ink); letter-spacing: -.01em; padding-right: 48px; white-space: nowrap; }
.smfx-founder-card span { display: block; font-size: 14.5px; line-height: 1.45; margin: 10px 0 30px; max-width: 240px; }
.smfx-founder-card small { display: block; font-size: 13.5px; color: var(--smfx-muted); }
.smfx-founder-card:hover strong { color: var(--smfx-blue); }

/* Trust strip under the homepage hero */
.smfx-trust {
	margin: 0 calc(50% - 50vw);
	background: var(--smfx-navy);
	padding: 22px max(var(--smfx-gutter), calc(50vw - var(--smfx-wrap) / 2));
}
.smfx-trust__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.smfx-trust span { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 15px; }
.smfx-trust span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--smfx-blue); box-shadow: 0 0 0 4px rgba(48, 107, 234, .25); }

/* Pale full-width sections */
body.smfx .smfx-content--designed .panel {
	margin: 88px calc(50% - 50vw);
	padding: 88px max(var(--smfx-gutter), calc(50vw - var(--smfx-wrap) / 2));
	border-radius: 0;
	background: var(--smfx-pale);
}
body.smfx .smfx-content--designed .panel + .panel { margin-top: -88px; padding-top: 24px; }
body.smfx .smfx-content--designed .panel > h2 { margin: 0 auto 18px; text-align: center; }
body.smfx .smfx-content--designed .panel > h3:first-child { margin-top: 0; }
body.smfx .smfx-content--designed .panel-intro { text-align: center; color: var(--smfx-muted); max-width: 720px; margin: 0 auto 40px; font-size: 17px; }
body.smfx .smfx-content--designed .panel > p:not(.panel-intro) { margin-left: auto; margin-right: auto; }

/* Cards */
body.smfx .smfx-content--designed .cards,
body.smfx .smfx-content--designed .grid {
	display: grid; gap: 20px; margin: 28px 0;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
body.smfx .smfx-content--designed .card,
body.smfx .smfx-content--designed .tile {
	position: relative; display: flex; flex-direction: column;
	padding: 28px 26px; text-align: left;
	background: #fff; border: 1px solid var(--smfx-line); border-radius: var(--smfx-r);
	box-shadow: var(--smfx-shadow);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
body.smfx .smfx-content--designed .card:hover,
body.smfx .smfx-content--designed .tile:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -24px rgba(16, 24, 40, .25); border-color: #CFDCF5; }
body.smfx .smfx-content--designed .grid .tile { background: var(--smfx-pale-2); border-color: #E2EBFA; box-shadow: none; }
body.smfx .smfx-content--designed .panel .tile,
body.smfx .smfx-content--designed .panel .card { background: #fff; box-shadow: var(--smfx-shadow); }
body.smfx .smfx-content--designed .card .eyebrow,
body.smfx .smfx-content--designed .tile .eyebrow { align-self: flex-start; }
body.smfx .smfx-content--designed .card h3,
body.smfx .smfx-content--designed .tile h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; }
body.smfx .smfx-content--designed .card h3 a,
body.smfx .smfx-content--designed .tile h3 a { color: var(--smfx-ink); text-decoration: none; }
body.smfx .smfx-content--designed .card h3 a:hover,
body.smfx .smfx-content--designed .tile h3 a:hover { color: var(--smfx-blue); }
body.smfx .smfx-content--designed .card p,
body.smfx .smfx-content--designed .tile p { color: var(--smfx-muted); font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
body.smfx .smfx-content--designed .tile p { flex-grow: 1; }
body.smfx .smfx-content--designed .card hr { border: 0; border-top: 1px solid var(--smfx-line); margin: 14px 0; width: 100%; }
body.smfx .smfx-content--designed .card a { display: block; margin: 5px 0; font-size: 15px; font-weight: 500; color: var(--smfx-blue); text-decoration: none; }
body.smfx .smfx-content--designed .card a:hover,
body.smfx .smfx-content--designed .tile .more:hover { text-decoration: underline; }
body.smfx .smfx-content--designed .tile .more { font-size: 15px; font-weight: 500; color: var(--smfx-blue); text-decoration: none; }

body.smfx .smfx-content--designed .rule { border: 0; border-top: 1px solid #D5DEEC; margin: 36px 0 0; }
body.smfx .smfx-content--designed .founder-line { text-align: center; color: var(--smfx-ink); font-weight: 500; margin: 26px auto 0; }

/* Link chips */
body.smfx .smfx-content--designed .chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
body.smfx .smfx-content--designed .chips a {
	display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px;
	background: #fff; border: 1px solid var(--smfx-line); color: var(--smfx-ink);
	font-size: 15px; font-weight: 500; text-decoration: none; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	transition: border-color .2s, color .2s;
}
body.smfx .smfx-content--designed .chips a:hover { border-color: var(--smfx-blue); color: var(--smfx-blue); }

/* Quote */
body.smfx .smfx-content--designed .quote {
	margin: 36px 0; padding: 26px 30px;
	background: var(--smfx-pale); border: 0; border-left: 3px solid var(--smfx-blue);
	border-radius: 0 var(--smfx-r) var(--smfx-r) 0;
	color: var(--smfx-ink); font-size: 20px; line-height: 1.5; letter-spacing: -.005em;
}
body.smfx .smfx-content--designed .quote p:last-child { margin-bottom: 0; }

/* Numbered steps become cards */
body.smfx .smfx-content--designed .steps {
	counter-reset: s; list-style: none; padding: 0; margin: 32px 0;
	display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 960px) { body.smfx .smfx-content--designed .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { body.smfx .smfx-content--designed .steps { grid-template-columns: 1fr; } }
body.smfx .smfx-content--designed .steps li {
	counter-increment: s; position: relative; margin: 0;
	padding: 28px 26px; background: #fff; border: 1px solid var(--smfx-line); border-radius: var(--smfx-r);
	box-shadow: var(--smfx-shadow); font-size: 15.5px; color: var(--smfx-muted); line-height: 1.6;
}
body.smfx .smfx-content--designed .steps li::before {
	content: counter(s, decimal-leading-zero);
	position: static; display: block; width: auto; height: auto; margin: 0 0 18px;
	background: none; border-radius: 0; color: var(--smfx-ink);
	font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: -.03em;
}
body.smfx .smfx-content--designed .steps li strong { display: block; color: var(--smfx-ink); font-size: 18px; font-weight: 600; margin-bottom: 6px; }

/* Three columns */
body.smfx .smfx-content--designed .three { display: grid; gap: 24px; margin: 28px 0; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
body.smfx .smfx-content--designed .three > div { border-top: 2px solid var(--smfx-blue); padding-top: 20px; }
body.smfx .smfx-content--designed .three h3 { margin-top: 0; }

/* Tables */
body.smfx .smfx-content--designed .tbl,
body.smfx .smfx-content--designed .table-wrap {
	width: 100%; overflow-x: auto; margin: 24px 0 32px;
	border: 1px solid var(--smfx-line); border-radius: var(--smfx-r); background: #fff; box-shadow: var(--smfx-shadow);
}
body.smfx .smfx-content--designed table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; margin: 0; }
body.smfx .smfx-content--designed th { background: var(--smfx-navy); color: #fff; text-align: left; padding: 14px 16px; font-weight: 600; border: 0; }
body.smfx .smfx-content--designed td { padding: 13px 16px; border: 0; border-bottom: 1px solid var(--smfx-line); vertical-align: top; color: var(--smfx-text); }
body.smfx .smfx-content--designed tr:last-child td { border-bottom: 0; }
body.smfx .smfx-content--designed tr:nth-child(even) td { background: var(--smfx-pale-2); }

/* Checklist */
body.smfx .smfx-content--designed .check {
	margin: 28px 0; padding: 28px 30px; background: var(--smfx-pale); border-radius: var(--smfx-r);
}
body.smfx .smfx-content--designed .check ul { list-style: none; padding-left: 0; margin: 0; }
body.smfx .smfx-content--designed .check li { position: relative; padding-left: 34px; margin-bottom: 12px; }
body.smfx .smfx-content--designed .check li::before {
	content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px;
	background: var(--smfx-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
	font-size: 0; color: transparent;
}

/* Scenario boxes */
body.smfx .smfx-content--designed .scenario {
	margin: 28px 0; padding: 24px 28px; background: #fff;
	border: 1px solid var(--smfx-line); border-left: 3px solid var(--smfx-blue); border-radius: 0 var(--smfx-r) var(--smfx-r) 0;
	box-shadow: var(--smfx-shadow);
}

/* Download boxes */
body.smfx .smfx-content--designed .dlbox,
body.smfx .smfx-content--designed .dl,
body.smfx .smfx-content--designed .dl2 { border-radius: var(--smfx-r); }

/* Founder panel */
body.smfx .smfx-content--designed .founder {
	display: block; margin: 88px 0; padding: 48px;
	background: var(--smfx-pale); border: 0; border-radius: var(--smfx-r-lg);
}
body.smfx .smfx-content--designed .founder::before {
	content: ""; float: right; width: 112px; height: 112px; margin: 0 0 20px 28px;
	border-radius: 50%; border: 4px solid #fff; box-shadow: 0 10px 24px -12px rgba(0, 21, 37, .45);
	background: #fff var(--smfx-photo) center / cover no-repeat;
}
body.smfx .smfx-content--designed .founder h2 { margin-top: 0; }
body.smfx .smfx-content--designed .founder::after { content: ""; display: block; clear: both; }

/* Call to action block */
body.smfx .smfx-content--designed .cta {
	position: relative; overflow: hidden; margin: 88px 0 40px; padding: 72px 48px;
	text-align: center; border-radius: var(--smfx-r-lg); color: #C9D4E5;
	background:
		radial-gradient(600px 300px at 15% 0%, rgba(48, 107, 234, .45), transparent 70%),
		radial-gradient(500px 300px at 100% 100%, rgba(48, 107, 234, .3), transparent 70%),
		var(--smfx-navy);
}
body.smfx .smfx-content--designed .cta h2 { color: #fff; margin: 0 auto 18px; }
body.smfx .smfx-content--designed .cta p { color: #C9D4E5; max-width: 680px; margin: 0 auto 18px; }
body.smfx .smfx-content--designed .cta a:not(.btn) { color: #fff; }
body.smfx .smfx-content--designed .cta .btns { justify-content: center; }
body.smfx .smfx-content--designed .cta .btn-ghost { background: rgba(255, 255, 255, .08); color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
body.smfx .smfx-content--designed .cta .btn-ghost:hover { background: rgba(255, 255, 255, .16); }
body.smfx .smfx-content--designed .cta .eyebrow { background: rgba(255, 255, 255, .1); color: #fff; }

/* FAQ accordion (built by site.js from the existing questions) */
.smfx-faq { display: grid; gap: 12px; margin: 28px 0 40px; max-width: 900px; }
body.smfx .smfx-content--designed .smfx-faq__item {
	background: #fff; border: 1px solid var(--smfx-line); border-radius: var(--smfx-r);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: box-shadow .2s, border-color .2s;
}
body.smfx .smfx-content--designed .smfx-faq__item.is-open { border-color: #CFDCF5; box-shadow: var(--smfx-shadow); }
body.smfx .smfx-content--designed .smfx-faq__item h3 { margin: 0; font-size: 18px; font-weight: 500; }
.smfx-faq__q {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
	padding: 20px 22px; background: none; border: 0; cursor: pointer; text-align: left;
	font: inherit; color: var(--smfx-ink);
}
.smfx-faq__icon {
	position: relative; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
	background: var(--smfx-navy); transition: background-color .2s, transform .2s;
}
.smfx-faq__icon::before,
.smfx-faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: #fff; transform: translate(-50%, -50%); border-radius: 2px; }
.smfx-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.is-open .smfx-faq__icon { background: var(--smfx-blue); }
.is-open .smfx-faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.smfx-faq__a { display: none; padding: 0 22px 8px; font-size: 16px; color: var(--smfx-muted); }
.is-open > .smfx-faq__a { display: block; }
.smfx-faq__a > :last-child { margin-bottom: 14px; }
body.smfx .smfx-content--designed .panel .smfx-faq { margin-left: auto; margin-right: auto; }

/* Contact / other bits */
body.smfx .smfx-content--designed .contact-card,
body.smfx .smfx-content--designed .credentials {
	background: #fff; border: 1px solid var(--smfx-line); border-radius: var(--smfx-r); box-shadow: var(--smfx-shadow); padding: 28px;
}
body.smfx .smfx-content--designed .contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Forms inside content */
body.smfx .smfx-content input[type=text],
body.smfx .smfx-content input[type=email],
body.smfx .smfx-content input[type=tel],
body.smfx .smfx-content input[type=url],
body.smfx .smfx-content input[type=number],
body.smfx .smfx-content select,
body.smfx .smfx-content textarea {
	width: 100%; min-height: 50px; padding: 12px 18px;
	border: 1px solid var(--smfx-line); border-radius: 14px; background: var(--smfx-pale-2);
	font: 400 16px var(--smfx-font); color: var(--smfx-ink);
}
body.smfx .smfx-content textarea { min-height: 140px; }
body.smfx .smfx-content input[type=submit],
body.smfx .smfx-content button[type=submit] {
	min-height: 52px; padding: 14px 30px; border-radius: 999px; border: 0;
	background: var(--smfx-blue); color: #fff; font: 500 16px var(--smfx-font); cursor: pointer;
}
body.smfx .smfx-content input[type=submit]:hover,
body.smfx .smfx-content button[type=submit]:hover { background: var(--smfx-blue-dark); }

/* Plugins: related posts and author box */
body.smfx .smfx-content .relpost-thumb-wrapper { margin: 72px 0 0; }
body.smfx .smfx-content .relpost-thumb-container > h3 {
	margin: 0 0 22px; font-family: var(--smfx-font); font-size: 26px; font-weight: 400; letter-spacing: -.02em; color: var(--smfx-ink);
}
body.smfx .smfx-content .relpost-block-container { gap: 20px; }
body.smfx .smfx-content a.relpost-block-single {
	display: block; margin: 0 !important; overflow: hidden; text-decoration: none;
	background: #fff !important; border: 1px solid var(--smfx-line) !important; border-radius: var(--smfx-r);
	box-shadow: var(--smfx-shadow); transition: transform .2s, box-shadow .2s;
}
body.smfx .smfx-content a.relpost-block-single:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -24px rgba(16, 24, 40, .25); }
body.smfx .smfx-content .relpost-custom-block-single { height: auto !important; overflow: visible !important; }
body.smfx .smfx-content .relpost-block-single-image {
	width: 100% !important; height: auto !important; aspect-ratio: 16 / 10 !important; margin: 0 !important;
	background-size: cover !important; background-position: center !important; background-color: var(--smfx-pale) !important;
}
body.smfx .smfx-content .relpost-block-single-text {
	height: auto !important; overflow: visible !important; padding: 18px 20px 22px; text-align: left !important;
	font-family: var(--smfx-font) !important; font-size: 16px !important; color: var(--smfx-ink) !important;
}
body.smfx .smfx-content .relpost-block-single-text .relpost_card_title {
	display: block; max-width: none; margin: 0 !important; padding: 0;
	font-family: var(--smfx-font) !important; font-size: 17px !important; line-height: 1.35 !important;
	font-weight: 500 !important; letter-spacing: -.005em !important; color: var(--smfx-ink) !important;
}
body.smfx .smfx-content a.relpost-block-single:hover .relpost_card_title { color: var(--smfx-blue) !important; }
body.smfx .smfx-content .saboxplugin-wrap {
	border: 1px solid var(--smfx-line) !important; border-radius: var(--smfx-r) !important;
	background: var(--smfx-pale-2) !important; overflow: hidden; margin-top: 48px;
}
body.smfx .smfx-content .saboxplugin-wrap .saboxplugin-gravatar img { border-radius: 50%; }

@media (max-width: 900px) {
	body.smfx .smfx-content--designed .hero { padding-top: 64px; padding-bottom: 72px; }
	body.smfx .smfx-content--designed .hero.smfx-has-card { min-height: 0; padding-bottom: 40px; }
	.smfx-founder-card { position: relative !important; right: auto; bottom: auto; margin-top: 44px; width: auto; max-width: 400px; }
	.smfx-founder-card img { right: 18px; }
	.smfx-trust__inner { justify-content: flex-start; flex-direction: column; }
	body.smfx .smfx-content--designed h2 { margin-top: 64px; }
	body.smfx .smfx-content--designed .panel { margin-top: 64px; margin-bottom: 64px; padding-top: 64px; padding-bottom: 64px; }
	body.smfx .smfx-content--designed .founder { padding: 32px 24px; }
	body.smfx .smfx-content--designed .founder::before { width: 84px; height: 84px; margin: 0 0 12px 16px; }
	body.smfx .smfx-content--designed .cta { padding: 52px 24px; }
}

/* ---------- Blog listing ---------- */

.smfx-listing { padding: 56px 0 96px; }
.smfx-cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.smfx-card {
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid var(--smfx-line); border-radius: var(--smfx-r-lg); box-shadow: var(--smfx-shadow);
	transition: transform .2s, box-shadow .2s;
}
.smfx-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -24px rgba(16, 24, 40, .25); }
.smfx-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--smfx-pale); }
.smfx-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.smfx-card:hover .smfx-card__img img { transform: scale(1.03); }
.smfx-card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #DCEEFB, #F2F8FE 60%, #E8F0FE); }
.smfx-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 26px 28px; flex: 1; }
.smfx-card__title { margin: 0; font-size: 21px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.smfx-card__title a { color: var(--smfx-ink); text-decoration: none; }
.smfx-card__title a:hover { color: var(--smfx-blue); }
.smfx-card__excerpt { margin: 0; font-size: 15.5px; color: var(--smfx-muted); flex: 1; }
.smfx-pagination { margin-top: 48px; }
.smfx-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.smfx-pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; border: 1px solid var(--smfx-line); color: var(--smfx-ink); text-decoration: none; font-weight: 500;
}
.smfx-pagination .page-numbers.current { background: var(--smfx-blue); border-color: var(--smfx-blue); color: #fff; }
.smfx-empty { max-width: 640px; }

.smfx-postnav { padding-bottom: 64px; }
.smfx-postnav .nav-links { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.smfx-postnav a {
	display: block; padding: 20px 22px; border: 1px solid var(--smfx-line); border-radius: var(--smfx-r);
	color: var(--smfx-ink); text-decoration: none; font-weight: 500; line-height: 1.4;
}
.smfx-postnav a:hover { border-color: var(--smfx-blue); color: var(--smfx-blue); }
.smfx-postnav span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--smfx-muted); margin-bottom: 6px; font-weight: 600; }
.smfx-postnav .nav-next { text-align: right; }

.smfx-comments { padding: 0 0 64px; }

/* ---------- Footer ---------- */

.smfx-footer { background: #000; color: #C5CBD6; padding: 64px 0 36px; font-size: 14px; }
.smfx-footer a { color: #C5CBD6; text-decoration: none; }
.smfx-footer a:hover { color: #fff; }
.smfx-footer__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; padding-bottom: 48px; }
.smfx-footer__brand .smfx-logo__img { height: 62px; }
.smfx-footer__brand p { margin: 14px 0 0; color: #fff; font-size: 15px; }
.smfx-footer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.smfx-footer__social { display: flex; align-items: center; gap: 18px; margin-right: 8px; }
.smfx-footer__social a { color: #fff; display: inline-flex; }
.smfx-footer__social a:hover { color: #A9C4FA; }
.smfx-footer .smfx-btn { min-height: 56px; padding: 14px 26px; font-size: 16px; }
.smfx-footer .smfx-btn--white { color: var(--smfx-ink); box-shadow: none; text-decoration: underline; text-underline-offset: 3px; }
.smfx-footer .smfx-btn--white:hover { color: var(--smfx-blue); }
.smfx-footer .smfx-btn--blue { color: #fff; }

.smfx-footer__cols {
	display: grid; gap: 40px 32px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	padding-bottom: 44px;
}
.smfx-footer__col { display: contents; }
.smfx-footer .widget { margin: 0; min-width: 0; }
.smfx-footer .widget:has(> p:only-child:empty),
.smfx-footer .widget:empty { display: none; }
.smfx-footer .widget p:empty { display: none; }
.smfx-footer .widget-title,
.smfx-footer .widget h2,
.smfx-footer .widget h3 { margin: 0 0 18px; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.smfx-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.smfx-footer .widget li { margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; }
.smfx-footer .widget li:not(:has(a)) { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.smfx-footer .widget li:not(:has(a)):not(:first-child) { margin-top: 34px; }
.smfx-footer .widget p { margin: 0 0 12px; }

.smfx-footer__bottom {
	display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
	padding-top: 28px; border-top: 1px solid #2B313B; color: #98A2B3; font-size: 13px;
}
.smfx-footer__legal { max-width: 860px; margin: 0 auto; }
.smfx-footer__legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.smfx-footer__legal a:hover { color: #A9C4FA; }
.smfx-footer__legal p { margin: 0 0 6px; }
.smfx-footer__privacy { color: #fff !important; font-size: 15px; }

@media (max-width: 1100px) { .smfx-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
	.smfx-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
	.smfx-footer__actions .smfx-btn { flex: 1 1 100%; }
}

/* ---------- WordPress core alignment helpers ---------- */

.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--smfx-muted); margin-top: 8px; }
.sticky, .bypostauthor { }
.gallery-caption { font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Design artwork (from the new SMF Capital design) ---------- */

/* Sector cards with illustrations behind the text */
body.smfx .smfx-content--designed .grid .tile.smfx-illus {
	min-height: 440px;
	background:
		linear-gradient(180deg, rgba(247, 250, 255, .98) 0%, rgba(247, 250, 255, .93) 36%, rgba(247, 250, 255, .45) 60%, rgba(247, 250, 255, 0) 80%),
		var(--smfx-illus) center bottom / cover no-repeat,
		#EEF5FE;
	border-color: #DCE8FB;
	overflow: hidden;
}
body.smfx .smfx-content--designed .grid .tile.smfx-illus p { flex-grow: 1; }
body.smfx .smfx-content--designed .grid .tile.smfx-illus .more {
	align-self: flex-start; padding: 9px 16px; border-radius: 999px;
	background: rgba(255, 255, 255, .92); box-shadow: 0 6px 18px -8px rgba(0, 21, 37, .35);
}
body.smfx .smfx-content--designed .grid .tile.smfx-illus .eyebrow { background: #fff; }

/* Soft blue swoosh in the corner of the pale sections */
body.smfx .smfx-content--designed .panel {
	background:
		var(--smfx-swoosh) right -50px top -20px / 300px auto no-repeat,
		var(--smfx-pale);
}
@media (max-width: 900px) {
	body.smfx .smfx-content--designed .panel { background: var(--smfx-swoosh) right -90px top -30px / 220px auto no-repeat, var(--smfx-pale); }
	body.smfx .smfx-content--designed .grid .tile.smfx-illus { min-height: 380px; }
}

/* Blog page: intro above the post cards and related content below */
body.smfx .smfx-blog-above { padding-bottom: 0; }
body.smfx .smfx-blog-above > div > h2:last-child { margin-bottom: 0; }
.smfx-blog-above + .smfx-listing { padding-top: 28px; }
body.smfx .smfx-blog-below { padding-top: 8px; }
