/* Finance Function Assessment — Master Class black & gold */

.page-template-page-finance-function-assessment #cfo-premium-body,
body.ffa-body,
body#cfo-premium-body.ffa-body,
body#cfo-premium-body:has(.ffa-page),
html:has(.ffa-page) {
	background: #050505 !important;
	color: #f5f0e6;
	color-scheme: dark;
}

.ffa-page {
	--ffa-navy: #050505;
	--ffa-ink: #f5f0e6;
	--ffa-blue: #b8943f;
	--ffa-blue-dark: #d4bc6e;
	--ffa-sky: #d4bc6e;
	--ffa-orange: #b8943f;
	--ffa-orange-ink: #d4bc6e;
	--ffa-bg: #050505;
	--ffa-panel: #121212;
	--ffa-tint: #171717;
	--ffa-line: rgba(184, 148, 63, 0.22);
	--ffa-body: rgba(245, 240, 230, 0.72);
	--ffa-muted: rgba(245, 240, 230, 0.55);
	--ffa-tint-blue: rgba(184, 148, 63, 0.14);
	--ffa-error: #e8b89a;
	--cs-gold: #b8943f;
	--cs-gold-light: #d4bc6e;
	--cs-cream: #f5f0e6;
	background: #050505;
	color: var(--cs-cream);
	font-family: "Libre Franklin", Arial, sans-serif;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.ffa-page h1,
.ffa-page h2,
.ffa-page h3,
.ffa-page p {
	margin: 0;
}

.ffa-page h1 {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
	line-height: 1.25;
	font-weight: 600;
	color: var(--cs-cream);
	text-wrap: balance;
	letter-spacing: -0.01em;
}

.ffa-page h2 {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.15rem, 1.8vw, 1.35rem);
	line-height: 1.35;
	font-weight: 600;
	color: var(--cs-cream);
	text-wrap: balance;
}

.ffa-page a {
	color: var(--cs-gold-light);
}

.ffa-page a:hover {
	color: var(--cs-gold);
}

.ffa-page button {
	font-family: inherit;
}

.ffa-page :focus-visible {
	outline: 2px solid var(--cs-gold);
	outline-offset: 2px;
}

.ffa-page .cs-explore {
	padding-top: 28px;
}

.ffa-page .cs-mc-explore .cs-explore-inner {
	max-width: none;
	padding: 0;
}

.ffa-top {
	width: 100%;
	background: #0c0c0c;
	color: var(--cs-cream);
	border-top: 1px solid var(--ffa-line);
	border-bottom: 1px solid var(--ffa-line);
}

.ffa-top-in {
	width: 100%;
	margin: 0;
	padding-block: 12px;
	padding-left: max(24px, env(safe-area-inset-left, 0px));
	padding-right: max(24px, env(safe-area-inset-right, 0px));
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	align-items: center;
	justify-content: center;
}

.ffa-brand {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--cs-cream);
	text-decoration: none;
}

.ffa-brand:hover {
	color: var(--cs-gold-light);
}

.ffa-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: center;
	width: 100%;
}

.ffa-nav a {
	color: rgba(245, 240, 230, 0.55);
	text-decoration: none;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 6px 10px;
	border-radius: 4px;
}

.ffa-nav a:hover {
	color: var(--cs-cream);
}

.ffa-nav a[aria-current="page"] {
	color: #0c0c0c;
	background: var(--cs-gold);
}

.ffa-wrap,
.ffa-wrap-wide {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding-block: 1.35rem 4.5rem;
	padding-left: max(2rem, env(safe-area-inset-left, 0px));
	padding-right: max(2rem, env(safe-area-inset-right, 0px));
}

.ffa-pagelabel {
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--cs-gold);
	margin-bottom: 12px;
}

.ffa-card {
	background: var(--ffa-panel);
	border: 1px solid var(--ffa-line);
	border-radius: 8px;
	padding: 1.35rem 1.5rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
}

.ffa-stack {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-width: 0;
}

.ffa-opts {
	gap: 0.5rem;
}

.ffa-eyebrow {
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--cs-gold);
}

.ffa-lead {
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--ffa-body);
	max-width: 68ch;
	font-weight: 300;
}

.ffa-muted {
	font-size: 0.8rem;
	color: var(--ffa-muted);
}

.ffa-progress-meta {
	justify-content: space-between;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.68rem;
	letter-spacing: 0.04em;
	color: var(--ffa-body);
}

.ffa-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.ffa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 22px;
	font-family: "Libre Franklin", Arial, sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: #0c0c0c;
	background: var(--cs-gold);
	border: 0;
	border-radius: 5px;
	cursor: pointer;
	text-decoration: none;
}

.ffa-btn:hover {
	background: var(--cs-gold-light);
	color: #0c0c0c;
}

.ffa-btn:disabled {
	background: #3a3a3a;
	color: #8a8a8a;
	cursor: not-allowed;
}

.ffa-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 14px;
	font-family: "Libre Franklin", Arial, sans-serif;
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--cs-cream);
	background: transparent;
	border: 1px solid rgba(184, 148, 63, 0.45);
	border-radius: 5px;
	cursor: pointer;
	text-decoration: none;
}

.ffa-ghost:hover {
	background: rgba(184, 148, 63, 0.12);
	color: var(--cs-cream);
	border-color: var(--cs-gold);
}

.ffa-ghost:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.ffa-ghost[aria-pressed="true"] {
	border-color: var(--cs-gold);
	background: rgba(184, 148, 63, 0.18);
	color: var(--cs-gold-light);
	box-shadow: 0 0 0 1px var(--cs-gold);
}

.ffa-opt {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	text-align: left;
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--cs-cream);
	background: #0c0c0c;
	border: 1px solid rgba(184, 148, 63, 0.28);
	border-radius: 5px;
	cursor: pointer;
}

.ffa-opt:hover {
	border-color: var(--cs-gold);
	background: rgba(184, 148, 63, 0.08);
}

.ffa-opt[aria-pressed="true"] {
	border-color: var(--cs-gold);
	background: rgba(184, 148, 63, 0.16);
	box-shadow: 0 0 0 1px var(--cs-gold);
}

.ffa-dot {
	flex: none;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	border: 2px solid rgba(184, 148, 63, 0.5);
	background: transparent;
}

.ffa-opt[aria-pressed="true"] .ffa-dot {
	border-color: var(--cs-gold);
	background: var(--cs-gold);
}

.ffa-tiers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
}

.ffa-tiers .ffa-opt {
	justify-content: center;
	text-align: center;
	font-weight: 500;
}

.ffa-dimrow {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 16px;
	padding: 10px 0;
	border-top: 1px solid var(--ffa-line);
}

.ffa-dimrow:last-child {
	border-bottom: 1px solid var(--ffa-line);
}

.ffa-dimrow b {
	flex: 0 0 210px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--cs-cream);
}

.ffa-dimrow span {
	flex: 1 1 260px;
	min-width: 0;
	font-size: 0.88rem;
	color: var(--ffa-body);
}

.ffa-mock {
	margin-top: 20px;
	background: #0c0c0c;
	border: 1px dashed rgba(184, 148, 63, 0.4);
	border-radius: 6px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ffa-mock .ffa-eyebrow {
	color: var(--cs-gold);
}

.ffa-timepill {
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(184, 148, 63, 0.1);
	border: 1px solid var(--ffa-line);
	border-radius: 999px;
	padding: 4px 10px;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.62rem;
	letter-spacing: 0.04em;
	font-weight: 500;
	color: var(--cs-gold-light);
}

.ffa-track {
	height: 5px;
	background: #2a2a2a;
	border-radius: 4px;
	overflow: hidden;
}

.ffa-fill {
	height: 100%;
	background: var(--cs-gold);
}

.ffa-segs {
	display: flex;
	gap: 6px;
	margin-top: 4px;
}

.ffa-seg {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.58rem;
	line-height: 1.3;
	letter-spacing: 0.02em;
	color: var(--ffa-muted);
	overflow-wrap: anywhere;
}

.ffa-seg i {
	display: block;
	height: 4px;
	border-radius: 2px;
	background: #2a2a2a;
}

.ffa-seg.is-done i {
	background: var(--cs-gold);
}

.ffa-seg.is-cur i {
	background: var(--cs-gold-light);
}

.ffa-seg.is-cur {
	color: var(--cs-gold-light);
	font-weight: 700;
}

.ffa-page label {
	font-size: 13px;
	font-weight: 500;
	color: var(--cs-cream);
}

.ffa-page input[type="text"],
.ffa-page input[type="email"],
.ffa-page select {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	font: 400 16px "Libre Franklin", Arial, sans-serif;
	color: var(--cs-cream);
	background: #0c0c0c;
	border: 1px solid rgba(184, 148, 63, 0.4);
	border-radius: 4px;
}

.ffa-page input:focus,
.ffa-page select:focus {
	border-color: var(--cs-gold);
	outline: none;
}

.ffa-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ffa-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	font-weight: 400;
	color: var(--ffa-body);
	cursor: pointer;
}

.ffa-check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--cs-gold);
}

.ffa-err {
	font-size: 14px;
	font-weight: 500;
	color: var(--ffa-error);
}

.ffa-pill {
	display: inline-block;
	font-size: 12px;
	font-weight: 500;
	padding: 3px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.ffa-rcard {
	background: var(--ffa-panel);
	border: 1px solid var(--ffa-line);
	border-radius: 8px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	color: var(--cs-cream);
}

.ffa-lab {
	font-family: "IBM Plex Mono", monospace;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cs-gold);
}

.ffa-res {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
	padding: 10px 0;
	border-top: 1px solid var(--ffa-line);
}

.ffa-res .ffa-k {
	flex: 0 0 112px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cs-gold);
}

.ffa-res .ffa-n {
	flex: 1 1 160px;
	min-width: 0;
	font-weight: 500;
	color: var(--cs-cream);
}

.ffa-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 14px;
}

.ffa-step {
	background: var(--ffa-panel);
	border: 1px solid var(--ffa-line);
	border-radius: 8px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.ffa-step .ffa-n {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--cs-gold);
	color: #0c0c0c;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ffa-step h3 {
	font-size: 20px;
	font-weight: 700;
	color: var(--cs-cream);
}

.ffa-step p {
	font-size: 15px;
	color: var(--ffa-body);
}

.ffa-step.is-dark {
	background: #0c0c0c;
	border-color: var(--cs-gold);
}

.ffa-step.is-dark .ffa-n {
	background: var(--cs-gold);
	color: #0c0c0c;
}

.ffa-step.is-dark h3 {
	color: var(--cs-cream);
}

.ffa-step.is-dark p {
	color: var(--ffa-body);
}

.ffa-tbl {
	background: var(--ffa-panel);
	border: 1px solid var(--ffa-line);
	border-radius: 8px;
	overflow: hidden;
}

.ffa-tr {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 8px 24px;
	padding: 16px 22px;
	border-top: 1px solid var(--ffa-line);
	font-size: 15px;
	color: var(--cs-cream);
}

.ffa-tr.is-th {
	background: #0c0c0c;
	border-top: 0;
	font-family: "IBM Plex Mono", monospace;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cs-gold);
}

.ffa-tr b {
	font-weight: 700;
	color: var(--cs-cream);
}

.ffa-tr span {
	color: var(--ffa-body);
}

.ffa-note {
	border-radius: 8px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	color: var(--cs-cream);
}

.ffa-score-panel {
	flex: 1 1 280px;
	min-width: 0;
	background: #0c0c0c;
	color: var(--cs-cream);
	border: 1px solid var(--ffa-line);
	border-radius: 8px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ffa-email-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: stretch;
}

.ffa-how-wrap {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

@media (max-width: 700px) {
	.ffa-page h1 {
		font-size: 1.35rem;
	}

	.ffa-wrap,
	.ffa-wrap-wide {
		padding-left: 1.15rem;
		padding-right: 1.15rem;
	}

	.ffa-card {
		padding: 1.1rem 1.15rem 1.25rem;
	}

	.ffa-tr {
		grid-template-columns: 1fr;
	}

	.ffa-tr.is-th {
		display: none;
	}

	.ffa-dimrow b {
		flex-basis: 100%;
	}
}

.diag-hub .diag-ffa-banner {
	margin: 0 0 36px;
	padding: 28px;
	border: 1px solid rgba(184, 148, 63, 0.22);
	border-radius: 8px;
	background: #121212;
	display: flex;
	flex-wrap: wrap;
	gap: 18px 28px;
	align-items: center;
	justify-content: space-between;
}

.diag-hub .diag-ffa-banner h2 {
	margin: 0 0 8px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 24px;
	color: #f5f0e6;
}

.diag-hub .diag-ffa-banner p {
	margin: 0;
	color: rgba(245, 240, 230, 0.65);
	max-width: 62ch;
}

.diag-hub .diag-ffa-banner .diag-ffa-kicker {
	font-family: "IBM Plex Mono", monospace;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #b8943f;
	margin-bottom: 8px;
}

.diag-hub .diag-ffa-banner a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 22px;
	background: #b8943f;
	color: #0c0c0c;
	font-weight: 700;
	text-decoration: none;
	border-radius: 6px;
	white-space: nowrap;
}

.diag-hub .diag-ffa-banner a:hover {
	filter: brightness(1.08);
}
