/*
 * Visicor Group — brand layer (docs/02-design-system.md).
 * Loaded by plg_system_visicor AFTER the Helix/Stratos stylesheets so a template update cannot overwrite it.
 *
 * Contents
 *   1. Tokens          5. Buttons             9. Cards, grid, image placeholders
 *   2. Base type       6. Header + menu      10. Forms
 *   3. Links           7. Footer             11. Error page
 *   4. Focus           8. Sections           12. Reduced motion
 *  13. Stratos overrides (Stratos paints purple gradients with heavy selectors; this layer wins without !important)
 *  14. Page building blocks for SP Page Builder pages (hero, sub-nav, grids, value-add, funds, placeholders)
 */

/* ------------------------------------------------------------------ 1. Tokens */
:root {
	/* Colour — contrast figures are against the surface noted. */
	--vc-black: #000000;     /* headings, primary buttons, dark bands */
	--vc-ink: #1a1714;       /* body text, 17.9:1 on white */
	--vc-tan: #b99f84;       /* icons, hairlines, borders; text on BLACK only (8.4:1). Never text on light (2.5:1) */
	--vc-sand: #e6d8c8;      /* light accent: cards, wheel circles, placeholders */
	--vc-cream: #f6f1ea;     /* alternating section background */
	--vc-tan-deep: #6b5440;  /* tan-coloured text/links on light: 7.1:1 on white, ~5:1 on sand */
	--vc-white: #ffffff;

	/* Type */
	--vc-font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--vc-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--vc-h1: clamp(2.5rem, 1.4rem + 4.4vw, 4.75rem);
	--vc-h2: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
	--vc-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	--vc-small: 0.875rem;
	--vc-measure: 68ch;

	/* Layout */
	--vc-container: 1200px;
	--vc-gutter: 16px;
	--vc-section-y: 56px;
	--vc-radius: 20px;         /* cards and panels (Stratos is rounded) */
	--vc-radius-sm: 12px;      /* fields, small cards, menus */
	--vc-radius-btn: 999px;    /* pill buttons */
	--vc-shadow: 0 1px 2px rgba(26, 23, 20, 0.06), 0 12px 32px rgba(26, 23, 20, 0.08);
	--vc-shadow-lift: 0 2px 4px rgba(26, 23, 20, 0.08), 0 20px 44px rgba(26, 23, 20, 0.14);
	--vc-ink-soft: #4a423b;     /* secondary text on light, 9.6:1 on white */
	--vc-night: #0c0a08;        /* dark bands: near-black with a warm cast */
	--vc-night-2: #17130f;      /* cards on a dark band */
	--vc-header-offset: 96px; /* sticky header height + breathing room, for anchor jumps */
}

@media (min-width: 992px) {
	:root {
		--vc-section-y: 96px;
	}
}

/* ------------------------------------------------------------- 2. Base type */
html {
	scroll-padding-top: var(--vc-header-offset);
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--vc-white);
	color: var(--vc-ink);
	font-family: var(--vc-font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--vc-font-display);
	font-weight: 700;
	color: var(--vc-black);
	line-height: 1.1;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

h1, .h1 { font-size: var(--vc-h1); }
h2, .h2 { font-size: var(--vc-h2); }
h3, .h3 { font-size: var(--vc-h3); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
h4, .h4 { font-size: 1.25rem; font-weight: 600; }
h5, .h5, h6, .h6 { font-size: 1.0625rem; font-family: var(--vc-font-body); font-weight: 600; }

small, .small { font-size: var(--vc-small); }

/* Readable measure for running text. :where() keeps specificity at zero so SPPB can still override. */
:where(article p, .vc-prose p, .sppb-addon-text-block p, .sppb-addon-content p) {
	max-width: var(--vc-measure);
}

/* Content width: Helix .container, 1200px, 16px gutters on mobile. */
.container,
.sppb-row-container,
.sppb-container-inner {
	max-width: var(--vc-container);
}

.container,
.sppb-row-container {
	padding-inline: var(--vc-gutter);
}

@media (min-width: 768px) {
	.container,
	.sppb-row-container {
		padding-inline: 24px;
	}
}

hr {
	border: 0;
	border-top: 1px solid var(--vc-tan);
	opacity: 1;
}

::selection {
	background: var(--vc-sand);
	color: var(--vc-black);
}

/* Eyebrow label: wide-tracked, echoing the "G R O U P" in the logo. */
.vc-eyebrow {
	display: block;
	margin: 0 0 1rem;
	font-family: var(--vc-font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--vc-tan-deep);
}

:is(.vc-dark, .vc-section--dark) .vc-eyebrow { color: var(--vc-tan); }

.vc-lead {
	font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
	line-height: 1.6;
}

/* --------------------------------------------------------------- 3. Links */
a {
	color: var(--vc-tan-deep);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
	color: var(--vc-black);
	text-decoration-thickness: 2px;
}

/* Links that are components, not running text: no underline. */
.btn, .sppb-btn, .vc-btn,
.sp-megamenu-parent a, .menu a, .offcanvas-menu a,
.logo a, #sp-logo a,
.vc-card--link, .vc-plain,
.sp-scroll-up, .pagination a, .page-link {
	text-decoration: none;
}

.dark-band a,
:is(.vc-dark, .vc-section--dark) a {
	color: var(--vc-tan);
}

:is(.vc-dark, .vc-section--dark) a:hover { color: var(--vc-white); }

/* Skip link (added by plg_system_visicor): hidden until it receives keyboard focus. */
.vc-skip {
	position: absolute;
	top: 0;
	left: 16px;
	z-index: 10000;
	padding: 0.75rem 1.25rem;
	background: var(--vc-black);
	color: var(--vc-white);
	font-weight: 600;
	text-decoration: none;
	border-radius: 0 0 var(--vc-radius-btn) var(--vc-radius-btn);
	transform: translateY(-120%);
}

.vc-skip:focus {
	transform: none;
	color: var(--vc-white);
	outline: 2px solid var(--vc-tan);
	outline-offset: 2px;
}

#sp-component:focus { outline: none; }

/* --------------------------------------------------------------- 4. Focus */
:focus-visible {
	outline: 2px solid var(--vc-black);
	outline-offset: 2px;
}

:is(.vc-dark, .vc-section--dark) :focus-visible { outline-color: var(--vc-white); }

/* Bootstrap sets `.btn:focus-visible { outline: 0 }`, which is more specific than the ring above and left every button
   without a keyboard focus indicator (WCAG 2.4.7). Restate the ring for buttons. */
.btn:focus-visible,
.btn-check:focus-visible + .btn,
.sppb-btn:focus-visible,
.vc-btn:focus-visible,
button:focus-visible {
	outline: 2px solid var(--vc-black) !important; /* beats Stratos `body .btn { outline: none !important }` */
	outline-offset: 2px !important;
}

:is(.vc-dark, .vc-section--dark) :is(.btn, .sppb-btn, .vc-btn, button):focus-visible { outline-color: var(--vc-white) !important; }

/* Remove Bootstrap's glow in favour of the single ring above. */
.btn:focus, .form-control:focus, .form-select:focus, .page-link:focus,
.btn-check:focus + .btn {
	box-shadow: none;
}

/* ------------------------------------------------------------- 5. Buttons */
.btn,
.sppb-btn,
.vc-btn,
button.vc-btn,
.readmore a,
.article-list .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.8rem 1.75rem;
	border: 1px solid var(--vc-black);
	border-radius: var(--vc-radius-btn);
	font-family: var(--vc-font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out;
	background-image: none; /* Stratos paints some buttons with gradients */
	box-shadow: none;
}

/* Primary: black, white label; hover tan, black label. */
.btn-primary,
.btn-success,
.sppb-btn-primary,
.sppb-btn-custom,
.vc-btn--primary,
.vc-btn {
	background: var(--vc-black);
	border-color: var(--vc-black);
	color: var(--vc-white);
}

.btn-primary:hover, .btn-primary:focus-visible,
.btn-success:hover, .btn-success:focus-visible,
.sppb-btn-primary:hover, .sppb-btn-primary:focus-visible,
.sppb-btn-custom:hover, .sppb-btn-custom:focus-visible,
.vc-btn--primary:hover, .vc-btn--primary:focus-visible,
.vc-btn:hover, .vc-btn:focus-visible {
	background: var(--vc-tan);
	border-color: var(--vc-tan);
	color: var(--vc-black);
}

/* Secondary: 1px black outline, black label; hover black fill. */
.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary,
.sppb-btn-default,
.sppb-btn-secondary,
.vc-btn--secondary {
	background: transparent;
	border-color: var(--vc-black);
	color: var(--vc-black);
}

.btn-secondary:hover, .btn-secondary:focus-visible,
.btn-outline-primary:hover, .btn-outline-primary:focus-visible,
.btn-outline-secondary:hover, .btn-outline-secondary:focus-visible,
.sppb-btn-default:hover, .sppb-btn-default:focus-visible,
.sppb-btn-secondary:hover, .sppb-btn-secondary:focus-visible,
.vc-btn--secondary:hover, .vc-btn--secondary:focus-visible {
	background: var(--vc-black);
	border-color: var(--vc-black);
	color: var(--vc-white);
}

/* Buttons placed side by side keep a gap even when the markup has no whitespace between them. */
.vc-btn + .vc-btn,
.sppb-btn + .sppb-btn { margin-inline-start: 0.75rem; }

/* On a dark (black) band the buttons invert so they stay visible. */
:is(.vc-dark, .vc-section--dark) .vc-btn,
:is(.vc-dark, .vc-section--dark) .vc-btn--primary,
:is(.vc-dark, .vc-section--dark) .btn-primary,
:is(.vc-dark, .vc-section--dark) .sppb-btn-primary {
	background: var(--vc-white);
	border-color: var(--vc-white);
	color: var(--vc-black);
}

:is(.vc-dark, .vc-section--dark) .vc-btn:hover, :is(.vc-dark, .vc-section--dark) .vc-btn:focus-visible,
:is(.vc-dark, .vc-section--dark) .vc-btn--primary:hover, :is(.vc-dark, .vc-section--dark) .vc-btn--primary:focus-visible,
:is(.vc-dark, .vc-section--dark) .btn-primary:hover, :is(.vc-dark, .vc-section--dark) .sppb-btn-primary:hover {
	background: var(--vc-tan);
	border-color: var(--vc-tan);
	color: var(--vc-black);
}

:is(.vc-dark, .vc-section--dark) .vc-btn--secondary,
:is(.vc-dark, .vc-section--dark) .btn-secondary,
:is(.vc-dark, .vc-section--dark) .sppb-btn-default {
	background: transparent;
	border-color: var(--vc-white);
	color: var(--vc-white);
}

:is(.vc-dark, .vc-section--dark) .vc-btn--secondary:hover, :is(.vc-dark, .vc-section--dark) .vc-btn--secondary:focus-visible,
:is(.vc-dark, .vc-section--dark) .btn-secondary:hover, :is(.vc-dark, .vc-section--dark) .sppb-btn-default:hover {
	background: var(--vc-white);
	border-color: var(--vc-white);
	color: var(--vc-black);
}

.btn.disabled, .btn:disabled, .vc-btn[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

/* ----------------------------------------------------- 6. Header + main menu */
#sp-header {
	background: var(--vc-white);
	border-bottom: 1px solid var(--vc-sand);
	box-shadow: none;
}

/* Subtle tan hairline once the header sticks. */
body.sticky-header #sp-header.header-sticky,
#sp-header.header-sticky {
	background: var(--vc-white);
	border-bottom-color: var(--vc-tan);
	box-shadow: none;
}

/* Logo: max height 56px desktop / 40px mobile. The artwork has a baked white background, so the header stays white. */
#sp-logo .logo img,
.logo .logo-image,
.logo img {
	max-height: 56px;
	width: auto;
}

@media (max-width: 991.98px) {
	#sp-logo .logo img,
	.logo .logo-image,
	.logo img {
		max-height: 40px;
	}
}

/* Uppercase small navigation labels. */
.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
	font-family: var(--vc-font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--vc-black);
	padding-inline: 14px;
}

.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li:focus-within > a {
	color: var(--vc-tan-deep);
}

.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.current-item > a {
	color: var(--vc-black);
	box-shadow: inset 0 -2px 0 var(--vc-tan);
}

.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
	background: var(--vc-white);
	border: 1px solid var(--vc-sand);
	border-radius: var(--vc-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	padding: 8px 0;
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
	font-family: var(--vc-font-body);
	font-size: 0.9375rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--vc-ink);
	padding: 8px 20px;
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:focus-visible,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a {
	background: var(--vc-cream);
	color: var(--vc-black);
}

/* "Client Login" / "My Vault": outlined button, far right. */
.sp-megamenu-parent > li > a.vc-menu-btn,
.sp-megamenu-parent > li.vc-menu-btn > a,
.offcanvas-menu a.vc-menu-btn,
.offcanvas-menu li.vc-menu-btn > a {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--vc-black);
	border-radius: var(--vc-radius-btn);
	padding: 0.6rem 1.25rem;
	line-height: 1.2;
	color: var(--vc-black);
	background: transparent;
	box-shadow: none;
}

.sp-megamenu-parent > li > a.vc-menu-btn:hover,
.sp-megamenu-parent > li > a.vc-menu-btn:focus-visible,
.sp-megamenu-parent > li.vc-menu-btn:hover > a,
.sp-megamenu-parent > li.vc-menu-btn:focus-within > a,
.offcanvas-menu a.vc-menu-btn:hover {
	background: var(--vc-black);
	color: var(--vc-white);
	border-color: var(--vc-black);
}

.sp-megamenu-parent > li.vc-menu-btn { margin-inline-start: 12px; }

/* Off-canvas (mobile) menu. */
.offcanvas-menu {
	background: var(--vc-white);
	color: var(--vc-ink);
}

.offcanvas-menu .menu > li > a,
.offcanvas-menu .menu > li > span {
	font-family: var(--vc-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--vc-black);
}

.burger-icon > span { background-color: var(--vc-black); }

/* ----------------------------------------------------------------- 7. Footer */
#sp-footer,
#sp-bottom {
	background: var(--vc-cream);
	color: var(--vc-ink);
	border-top: 1px solid var(--vc-tan);
}

#sp-footer .sp-module,
#sp-footer .sp-module-content {
	margin: 0;
	padding: 0;
}

.vc-footer {
	padding-block: var(--vc-section-y) 0;
	font-size: 1rem;
}

/* Helix wraps #sp-footer in a .container; no nested .container is needed (it would inset the columns). */

.vc-footer__cols {
	display: grid;
	gap: 40px 32px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.vc-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
	.vc-footer__cols { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
}

.vc-footer h2,
.vc-footer .vc-footer__title {
	margin: 0 0 1.1rem;
	font-family: var(--vc-font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--vc-tan-deep);
	line-height: 1.4;
}

/* The logo has a baked white background, so it sits on a white tile on the cream footer. */
.vc-footer__logo {
	display: inline-block;
	padding: 14px 18px;
	background: var(--vc-white);
	border: 1px solid var(--vc-sand);
	border-radius: var(--vc-radius);
	line-height: 0;
}

.vc-footer__logo img {
	display: block;
	width: auto;
	height: 48px;
}

.vc-footer__fsp {
	margin: 1.25rem 0 0;
	font-size: 0.9375rem;
	max-width: 32ch;
}

.vc-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vc-footer li + li { margin-top: 0.55rem; }

.vc-footer address {
	margin: 0;
	font-style: normal;
}

.vc-footer__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: var(--vc-section-y);
	padding-block: 20px;
	border-top: 1px solid var(--vc-sand);
	font-size: var(--vc-small);
}

.vc-footer__bar p { margin: 0; max-width: none; }

/* ------------------------------------------------------------- 8. Sections */
.vc-section,
.sppb-section.vc-section {
	padding-block: var(--vc-section-y);
}

.vc-section--cream { background: var(--vc-cream); }

.vc-section--sand { background: var(--vc-sand); }

/* One black CTA band per page, maximum. */
.vc-section--dark,
.vc-dark {
	background: var(--vc-black);
	color: var(--vc-white);
}

:is(.vc-dark, .vc-section--dark) h1, :is(.vc-dark, .vc-section--dark) h2, :is(.vc-dark, .vc-section--dark) h3, :is(.vc-dark, .vc-section--dark) h4 { color: var(--vc-white); }

/* Thin tan hairlines as dividers instead of heavy boxes. */
.vc-hairline { border-top: 1px solid var(--vc-tan); }

.vc-hero {
	padding-block: calc(var(--vc-section-y) * 1.2);
}

.vc-cta-band {
	text-align: center;
	padding-block: var(--vc-section-y);
}

/* ---------------------------------------------- 9. Cards, grid, placeholders */
.vc-card {
	background: var(--vc-white);
	border: 1px solid var(--vc-sand);
	border-radius: var(--vc-radius);
	padding: 28px;
	box-shadow: none;
}

.vc-section--cream .vc-card { background: var(--vc-white); }

.vc-card h3 { margin-top: 0; }

.vc-card--link:hover { border-color: var(--vc-tan); }

.vc-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.vc-grid--2, .vc-grid--3, .vc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
	.vc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Value-add / feature icon (Font Awesome bundled with Helix). */
.vc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1rem;
	color: var(--vc-tan-deep);
	font-size: 1.5rem;
	border: 1px solid var(--vc-tan);
	border-radius: 50%;
}

/*
 * Image-slot placeholder until licensed photography is supplied (docs/02 "Imagery").
 * Usage: <div class="vc-placeholder" data-slot="hero-home" role="img" aria-label="Image placeholder: hero-home"></div>
 */
.vc-placeholder {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
	background: var(--vc-sand);
	border-radius: var(--vc-radius);
	color: var(--vc-tan-deep);
	font-size: var(--vc-small);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.vc-placeholder::before {
	content: "Image: " attr(data-slot);
}

/* Warm grade so mixed stock reads as one set when text sits over a photo. */
.vc-photo-overlay::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(185, 159, 132, 0.18), rgba(0, 0, 0, 0.25));
	pointer-events: none;
}

/* ------------------------------------------------------------------ 10. Forms */
label, .form-label { font-weight: 600; }

.form-control,
.form-select,
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="search"], textarea, select {
	font-family: var(--vc-font-body);
	font-size: 1rem;
	color: var(--vc-ink);
	background-color: var(--vc-white);
	/* 3:1 minimum for UI component boundaries (WCAG 1.4.11): tan-deep on white is 7.1:1. */
	border: 1px solid var(--vc-tan-deep);
	border-radius: var(--vc-radius-btn);
}

.form-control:focus, .form-select:focus,
input:focus-visible, textarea:focus-visible, select:focus-visible {
	border-color: var(--vc-black);
	outline: 2px solid var(--vc-black);
	outline-offset: 2px;
}

.invalid-feedback, .form-control-feedback, .vc-error { color: #8a1c1c; font-weight: 600; }

::placeholder { color: #5f564d; opacity: 1; }

/* -------------------------------------------------------------- 11. Error page */
html.error-page,
html.error-page body {
	min-height: 100%;
	background: var(--vc-white); /* the logo artwork has a baked white background */
	color: var(--vc-ink);
	font-family: var(--vc-font-body);
}

html.error-page body {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px var(--vc-gutter);
	text-align: center;
	background-image: none;
}

html.error-page .container {
	max-width: 640px;
}

html.error-page .error-logo {
	display: block;
	margin: 0 auto 2rem;
	max-height: 56px;
	width: auto;
}

html.error-page .error-code {
	margin: 0;
	font-family: var(--vc-font-display);
	font-weight: 500;
	font-size: clamp(5rem, 4rem + 8vw, 9rem);
	line-height: 1;
	color: var(--vc-black);
	background: none;
	-webkit-text-fill-color: currentColor;
}

html.error-page .error-message {
	margin: 0.5rem 0 2rem;
	font-family: var(--vc-font-display);
	font-size: var(--vc-h2);
	color: var(--vc-black);
}

/* ------------------------------------------------------ 12. Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	/* SPPB "wow" entrances start hidden until scrolled into view; show them straight away. */
	.sppb-wow {
		animation: none !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
}

/* ------------------------------------------------------- 13. Stratos overrides */
/*
 * :root:root:root adds (0,3,0) of specificity, enough to beat Stratos selectors such as
 * ".login .btn.btn-primary", "body .sppb-btn.sppb-btn-primary" and "html.error-page .btn.btn-secondary"
 * while still losing to SPPB's per-element "#sppb-addon-… " rules, so page-builder styling keeps working.
 */

/* Page shell: footer sits at the bottom of short pages instead of floating mid-screen. */
.body-innerwrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.body-innerwrapper > #sp-main-body {
	flex: 1 0 auto;
}

/* Active / hovered menu items: Stratos paints the label with a purple gradient clipped to the text. */
:root:root:root .sp-megamenu-parent > li > a,
:root:root:root .sp-megamenu-parent > li > span {
	background-image: none;
	-webkit-background-clip: border-box;
	background-clip: border-box;
	-webkit-text-fill-color: currentColor;
}

:root:root:root .sp-megamenu-parent > li.active > a,
:root:root:root .sp-megamenu-parent > li.current-item > a { color: var(--vc-black); }

:root:root:root .sp-megamenu-parent > li > a.vc-menu-btn:hover,
:root:root:root .sp-megamenu-parent > li > a.vc-menu-btn:focus-visible {
	background: var(--vc-black);
	color: var(--vc-white);
}

/* Mobile burger: drop the gradient ring, keep three black bars (white bars while the off-canvas panel is open). */
:root:root:root .burger-icon::before,
:root:root:root #modal-menu-toggler.active .burger-icon::before { display: none; }

:root:root:root .burger-icon > span,
:root:root:root #modal-menu-toggler.active .burger-icon > span { background-color: var(--vc-black); }

/* Buttons. */
:root:root:root .btn,
:root:root:root .sppb-btn {
	border-radius: var(--vc-radius-btn);
	font-family: var(--vc-font-body);
	font-size: 1rem;
	font-weight: 600;
	text-transform: none;
	background-image: none;
	box-shadow: none;
}

:root:root:root :is(.btn-primary, .btn-success, .sppb-btn-primary, .sppb-btn-custom) {
	background: var(--vc-black);
	border-color: var(--vc-black);
	color: var(--vc-white);
}

:root:root:root :is(.btn-primary, .btn-success, .sppb-btn-primary, .sppb-btn-custom):is(:hover, :focus-visible) {
	background: var(--vc-tan);
	border-color: var(--vc-tan);
	color: var(--vc-black);
}

:root:root:root :is(.btn-secondary, .btn-outline-primary, .btn-outline-secondary, .sppb-btn-default, .sppb-btn-secondary) {
	background: transparent;
	border-color: var(--vc-black);
	color: var(--vc-black);
}

:root:root:root :is(.btn-secondary, .btn-outline-primary, .btn-outline-secondary, .sppb-btn-default, .sppb-btn-secondary):is(:hover, :focus-visible) {
	background: var(--vc-black);
	border-color: var(--vc-black);
	color: var(--vc-white);
}

/* Form controls: crisp corners (Stratos uses 56px pills, in two places with !important). */
:root:root:root .form-control,
:root:root:root .form-select,
:root:root:root input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
:root:root:root textarea,
:root:root:root select {
	border: 1px solid var(--vc-tan-deep);
	border-radius: var(--vc-radius-btn) !important;
	background-color: var(--vc-white);
	color: var(--vc-ink);
}

:root:root:root :is(.vc-dark, .vc-section--dark) :is(.btn-primary, .btn-success, .sppb-btn-primary, .sppb-btn-custom) {
	background: var(--vc-white);
	border-color: var(--vc-white);
	color: var(--vc-black);
}

:root:root:root :is(.vc-dark, .vc-section--dark) :is(.btn-primary, .btn-success, .sppb-btn-primary, .sppb-btn-custom):is(:hover, :focus-visible) {
	background: var(--vc-tan);
	border-color: var(--vc-tan);
	color: var(--vc-black);
}

:root:root:root :is(.vc-dark, .vc-section--dark) :is(.btn-secondary, .btn-outline-primary, .btn-outline-secondary, .sppb-btn-default, .sppb-btn-secondary) {
	background: transparent;
	border-color: var(--vc-white);
	color: var(--vc-white);
}

:root:root:root :is(.vc-dark, .vc-section--dark) :is(.btn-secondary, .btn-outline-primary, .btn-outline-secondary, .sppb-btn-default, .sppb-btn-secondary):is(:hover, :focus-visible) {
	background: var(--vc-white);
	border-color: var(--vc-white);
	color: var(--vc-black);
}

:root:root:root .login,
:root:root:root .reset,
:root:root:root .remind {
	border-radius: var(--vc-radius);
}

/* Article / legal page title band: cream with a tan hairline instead of Stratos dark violet. */
:root:root:root .article-title-wrap,
:root:root:root .view-article #sp-main-body > .container .article-title-wrap,
:root:root:root .view-article #sp-main-body .article-title-wrap {
	background: var(--vc-cream);
	border-bottom: 1px solid var(--vc-tan);
	color: var(--vc-ink);
}

:root:root:root .view-article #sp-main-body > .container .article-title-wrap .article-header h1,
:root:root:root .view-article .container .article-title-wrap .article-header h1 {
	margin: 0;
	max-width: var(--vc-measure);
	color: var(--vc-black);
	font-family: var(--vc-font-display);
	font-size: var(--vc-h1);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.005em;
}

/* Error page: logo, code and button on the brand scale (Stratos: 340px white Inter on violet). */
:root:root:root.error-page .error-code {
	font-family: var(--vc-font-display);
	font-weight: 500;
	color: var(--vc-black);
}

/* Buttons keep a visible 1px border (Stratos sets border: 0 on some) and icons inherit the label colour. */
:root:root:root .btn,
:root:root:root .sppb-btn {
	border-width: 1px;
	border-style: solid;
}

:root:root:root .btn [class*="fa-"],
:root:root:root .btn .fas,
:root:root:root .btn .far {
	color: inherit;
	-webkit-text-fill-color: currentColor;
	background: none;
}

/* Joomla's show-password toggle sits inside the field: flat icon, no box, 44px touch target (WCAG 2.5.8 needs 24px). */
:root:root:root .password-group .input-password-toggle,
:root:root:root .password-group .input-password-toggle:is(:hover, :focus-visible) {
	border: 0;
	background: transparent;
	color: var(--vc-ink);
	box-shadow: none;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
}

/* Login card: links in the card are real links, so keep them distinguishable. */
:root:root:root .login a,
:root:root:root .reset a,
:root:root:root .remind a {
	color: var(--vc-tan-deep);
	text-decoration: underline;
}

/* Article pages: title and text share the header's content column (Stratos adds its own 15px/45px offsets
   and reserves an empty 1/3 sidebar). --vc-pad matches the .container padding set in section 2. */
:root {
	--vc-pad: var(--vc-gutter);
	--vc-edge: max(var(--vc-pad), calc((100% - var(--vc-container)) / 2 + var(--vc-pad)));
}

@media (min-width: 768px) {
	:root { --vc-pad: 24px; }
}

/* Stratos scopes these under ".view-article #sp-main-body > .container" (an ID), so mirror that scope. */
:root:root .view-article #sp-main-body > .container .article-title-wrap {
	padding-inline: var(--vc-edge);
}

:root:root .view-article #sp-main-body > .container .article-title-wrap :is(.article-header, .article-category) {
	padding-inline: 0;
	max-width: none;
}

:root:root .view-article #sp-main-body > .container .article-details-wrap {
	max-width: var(--vc-container);
	margin-inline: auto;
	padding-inline: var(--vc-pad);
	padding-block: var(--vc-section-y);
}

:root:root .view-article #sp-main-body > .container .article-details-wrap .row { margin-inline: 0; }

:root:root .view-article #sp-main-body > .container .article-details-wrap .row > .col-md-4:not(:has(*)) { display: none; }

:root:root .view-article #sp-main-body > .container .article-details-wrap .row > [class*="col-md-"] {
	flex: 0 0 100%;
	max-width: 100%;
	padding-inline: 0;
}

:root:root .view-article #sp-main-body > .container .article-details-wrap :is(p, ul, ol) { max-width: var(--vc-measure); }

/* ------------------------------------------ 14. SP Page Builder page blocks */
/* SPPB wraps every addon in .sppb-addon-wrapper; inside our grids those wrappers are the grid items. */
.vc-grid > .sppb-addon-wrapper {
	display: flex;
	margin: 0;
}

.vc-grid > .sppb-addon-wrapper > .sppb-div-addon { flex: 1 1 auto; }

.vc-card .sppb-addon-wrapper { margin-bottom: 0; }

.vc-card > .sppb-addon-wrapper + .sppb-addon-wrapper { margin-top: 0.75rem; }

.vc-card--service {
	display: flex;
	flex-direction: column;
}

.vc-card--service > .sppb-addon-wrapper:last-of-type { margin-top: auto; padding-top: 1rem; }

.vc-card h3,
.vc-card .sppb-addon-title { margin-top: 0; }

.vc-card p,
.vc-card .sppb-addon-text,
.vc-card address { font-size: 1rem; line-height: 1.65; }

.vc-card address { margin: 0 0 1rem; font-style: normal; }

/* Section headings: breathing room before the content that follows. */
.vc-section .sppb-addon-title { margin-top: 0; margin-bottom: 0.6em; }

.vc-section .sppb-addon-wrapper + .sppb-addon-wrapper { margin-top: 0; }

.vc-section .sppb-addon-text-block p:last-child { margin-bottom: 0; }

/* Hero / page header. */
.vc-hero .sppb-addon-title { margin-bottom: 0.4em; }

.vc-hero--compact { padding-block: calc(var(--vc-section-y) * 0.6); }

.vc-pagehead { padding-bottom: 32px; }

.vc-section--tight { padding-block: 32px; }

.vc-disclaimer {
	margin: 0;
	max-width: none;
	font-size: var(--vc-small);
	color: var(--vc-ink);
}

/* Button rows. */
.vc-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 1.5rem;
}

.vc-btn-row > .sppb-addon-wrapper { margin: 0; }

.vc-btn-row--center { justify-content: center; }

.vc-section > .sppb-row-container > .sppb-row > div > .sppb-column-addons > .sppb-addon-wrapper > .sppb-button-wrapper,
.sppb-section > .sppb-row-container .sppb-column-addons > .sppb-addon-wrapper > .sppb-button-wrapper { margin-top: 1.5rem; }

.vc-btn-row .sppb-button-wrapper { margin-top: 0; }

/* Centred call-to-action band. */
.vc-cta-band .sppb-addon-wrapper { text-align: center; }

.vc-cta-band .sppb-button-wrapper { display: flex; justify-content: center; }

.vc-cta-band p { margin-inline: auto; }

/* In-page sub-navigation (About Us). */
.vc-subnav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.vc-subnav a {
	display: inline-block;
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--vc-tan);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--vc-black);
}

.vc-subnav a:hover,
.vc-subnav a:focus-visible {
	border-bottom-color: var(--vc-black);
	color: var(--vc-tan-deep);
}

/* Ruled list (About Us expertise). */
.vc-list {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
	max-width: var(--vc-measure);
}

.vc-list li {
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--vc-sand);
}

.vc-list li:first-child { border-top: 1px solid var(--vc-sand); }

/* Value-add feature boxes (SPPB "Feature Box": icon + heading + text). */
.vc-value .sppb-addon-content { display: block; }

.vc-value .sppb-icon { margin: 0 0 1rem; }

.vc-value .sppb-icon .sppb-icon-container {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid var(--vc-tan);
	border-radius: 50%;
	color: var(--vc-tan-deep);
	font-size: 1.25rem;
}

.vc-value .sppb-feature-box-title {
	margin: 0 0 0.5rem;
	font-size: var(--vc-h3);
}

.vc-value .sppb-addon-text { font-size: 1rem; line-height: 1.65; color: var(--vc-ink); }

/* Visi Portfolios collection cards. */
.vc-funds .sppb-dynamic-content-collection__item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 28px;
	background: var(--vc-white);
	border: 1px solid var(--vc-sand);
	border-radius: var(--vc-radius);
}

.vc-funds .sppb-dynamic-content-collection__item:target {
	outline: 2px solid var(--vc-tan);
	outline-offset: 2px;
}

.vc-funds .sppb-addon-wrapper { margin: 0; }

.vc-funds h3 { margin: 0 0 0.5rem; font-size: var(--vc-h3); }

.vc-funds p { margin: 0; font-size: 1rem; }

.vc-funds .vc-eyebrow { margin-bottom: 0.5rem; }

.vc-funds .sppb-dynamic-content-file__link { margin-top: 0.75rem; }

/* Hidden helper node: plg_system_visicor turns it into the card's #anchor id. */
.vc-anchor { display: none; }

/* Sand placeholders for licensed photography / modules built in later phases. */
.vc-placeholder--hero { min-height: 340px; }

.vc-placeholder--module {
	min-height: 320px;
	padding: 24px;
	text-align: center;
	background: var(--vc-cream);
	border: 1px dashed var(--vc-tan-deep);
}

.vc-section--cream .vc-placeholder--module { background: var(--vc-white); }

.vc-placeholder[data-label]::before { content: attr(data-label); }

/* SPPB writes an inline ".sppb-row-container { max-width: 1350px }" from its global settings; keep the 1200px
   content column so page sections line up with the header logo and footer. */
:root:root:root .sppb-row-container {
	max-width: var(--vc-container);
	margin-inline: auto;
}

.vc-hero--compact .vc-placeholder--hero { min-height: 200px; }

/* Fund fact-sheet download (only rendered when a PDF is attached). */
.vc-factsheet-link {
	display: inline-block;
	margin-top: 0.75rem;
	font-weight: 600;
}

/* ---------------------------------------------------------- 14. QA fixes (phase 10) */

/* Text controls lost their focus ring to a Stratos rule (`outline: none !important` on form controls), leaving only the
   caret. Restate the brand ring. The calculators draw theirs on the wrapper (.vc-calc__control:focus-within). */
:root:root:root :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea, .form-control, .form-select):not(.vc-calc__control *):focus-visible {
	outline: 2px solid var(--vc-black) !important;
	outline-offset: 2px !important;
	border-color: var(--vc-black);
}

/* The mobile menu slides in from the right and, closed, sat off-screen but still focusable and exposed to assistive
   technology. Hidden (not just moved) while closed; the delay lets the closing slide finish. */
body.offcanvas-init:not(.offcanvas-active) .offcanvas-menu {
	visibility: hidden;
	transition: visibility 0s linear 0.5s;
}

body.offcanvas-init.offcanvas-active .offcanvas-menu { visibility: visible; }

/* Menu button focus ring (it is a link styled as a button). */
.offcanvas-toggler-right:focus-visible,
.close-offcanvas:focus-visible { outline: 2px solid var(--vc-black) !important; outline-offset: 4px !important; }

/* Helix prints a second, desktop-only menu button next to Client Login. It has no visible icon until focused, and on
   phones it duplicates the real button, so keyboard users met an invisible "Menu" stop. The inline menu serves desktop. */
.offcanvas-toggler-secondary { display: none !important; }

/* Footer of the bare 404 page. */
.vc-error-footer { max-width: 40rem; margin: 3rem auto 2rem; padding: 1.5rem 16px 0; border-top: 1px solid var(--vc-tan); font-size: var(--vc-small); text-align: center; }
.vc-error-footer p { margin: 0 0 0.75rem; }
.vc-error-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0.5rem; }
.vc-error-footer nav a { display: inline-block; min-height: 2rem; padding: 0.35rem 0.5rem; }

/* Password pages (Forgot your password, the invite link, choosing a password): same narrow, calm column as the sign-in page. */
.vc-pw { max-width: 30rem; margin-inline: auto; padding-block: 2rem 3rem; }
.vc-pw h1 { margin: 0 0 1rem; }
.vc-pw .vc-vault-lead { margin: 0 0 1.5rem; font-size: 1.125rem; }
.vc-pw .control-group { margin-bottom: 1.25rem; }
.vc-pw input[type="text"], .vc-pw input[type="email"], .vc-pw input[type="password"] { width: 100%; padding: 0.625rem 0.75rem; }
.vc-pw .com-users-reset__submit, .vc-pw .com-users-reset-confirm__submit, .vc-pw .com-users-reset-complete__submit, .vc-pw .com-users-remind__submit { text-align: start; }
.vc-pw [class*="__submit"] { text-align: start !important; }
