/**
 * Affiliate income guide — same content width as home (.fbr-home__contain from home-page.css).
 */

/* Root: mirrors .fbr-home--fx (page-home.php) so layout matches the home landing. */
.fbr-affguide--full {
	max-width: none;
	margin: 0;
	padding: clamp(0.75rem, 2.25vw, 1.5rem) 0 3rem;
	width: 100%;
	box-sizing: border-box;
	background: #f8fafc;
}

.fbr-affguide__hero {
	margin-bottom: 1.75rem;
	padding: 0;
	border-radius: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

.fbr-affguide__hero--wide {
	width: 100%;
	box-sizing: border-box;
}

.fbr-affguide__eyebrow {
	margin: 0 0 0.25rem;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #059669;
}

.fbr-affguide__title {
	margin: 0 0 0.4rem;
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	font-weight: 800;
	line-height: 1.2;
	color: #0f172a;
	letter-spacing: -0.02em;
}

.fbr-affguide__lead {
	margin: 0 0 1rem;
	max-width: none;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: #475569;
}

.fbr-affguide__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.fbr-affguide__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.1rem;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 999px;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.fbr-affguide__btn--primary {
	background: linear-gradient(135deg, #059669 0%, #10b981 100%);
	color: #fff;
	box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.fbr-affguide__btn--primary:hover {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.fbr-affguide__btn--ghost {
	background: #fff;
	color: #047857;
	border: 1px solid rgba(5, 150, 105, 0.35);
}

.fbr-affguide__btn--ghost:hover {
	background: #ecfdf5;
	color: #065f46;
}

/* Visual pipeline */
.fbr-affguide__visual-wrap {
	margin-bottom: 2rem;
	padding: 1.35rem clamp(1rem, 2vw, 1.75rem);
	border-radius: 0.65rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.fbr-affguide__h2--visual {
	margin-top: 0;
}

.fbr-affguide__visual-lead {
	margin: 0 0 1.25rem;
	max-width: none;
	font-size: 1rem;
	line-height: 1.6;
	color: #64748b;
}

.fbr-affguide__pipeline {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 0.5rem 0.35rem;
}

.fbr-affguide__pipe-node {
	flex: 1 1 14rem;
	min-width: 12rem;
	max-width: none;
	padding: 1.35rem 1.1rem;
	border-radius: 0.5rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
}

.fbr-affguide__pipe-node--accent {
	background: linear-gradient(180deg, #eef2ff 0%, #f5f3ff 100%);
	border-color: rgba(99, 102, 241, 0.35);
	box-shadow: 0 2px 12px rgba(99, 102, 241, 0.12);
}

.fbr-affguide__pipe-node--earn {
	background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
	border-color: rgba(16, 185, 129, 0.35);
}

.fbr-affguide__pipe-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 0.5rem;
	background: #fff;
	color: #6366f1;
	border: 1px solid #e2e8f0;
}

.fbr-affguide__pipe-node--accent .fbr-affguide__pipe-icon {
	color: #4f46e5;
	border-color: rgba(99, 102, 241, 0.25);
}

.fbr-affguide__pipe-node--earn .fbr-affguide__pipe-icon {
	color: #059669;
	border-color: rgba(16, 185, 129, 0.3);
}

.fbr-affguide__pipe-label {
	font-size: 0.9375rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.25;
}

.fbr-affguide__pipe-hint {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #64748b;
}

.fbr-affguide__pipe-arrow {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	color: #94a3b8;
	padding: 0.25rem;
}

.fbr-affguide__pipe-arrow svg {
	display: block;
}

@media (min-width: 1024px) {
	.fbr-affguide__pipeline {
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 0.35rem 0.65rem;
	}

	.fbr-affguide__pipe-node {
		flex: 1 1 0;
		min-width: 0;
		max-width: none;
		padding: 1.5rem 1.15rem;
	}

	.fbr-affguide__pipe-label {
		font-size: 1.0625rem;
	}

	.fbr-affguide__pipe-hint {
		font-size: 0.875rem;
	}
}

@media (min-width: 1400px) {
	.fbr-affguide__pipe-node {
		padding: 1.65rem 1.35rem;
	}
}

@media (max-width: 767px) {
	.fbr-affguide__pipeline {
		flex-direction: column;
		align-items: stretch;
	}

	.fbr-affguide__pipe-node {
		max-width: none;
	}

	.fbr-affguide__pipe-arrow {
		transform: rotate(90deg);
		padding: 0.15rem;
		align-self: center;
	}
}

/* TOC */
.fbr-affguide__toc {
	margin-bottom: 2rem;
	padding: 1.15rem 1.35rem;
	border-radius: 0.5rem;
	background: #fff;
	border: 1px solid #e2e8f0;
}

.fbr-affguide__toc-label {
	margin: 0 0 0.5rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #64748b;
}

.fbr-affguide__toc-list {
	margin: 0;
	padding-left: 1.15rem;
	font-size: 0.875rem;
	line-height: 1.7;
	color: #334155;
}

.fbr-affguide__toc-list--columns {
	columns: 2;
	column-gap: 2rem;
	padding-left: 1.25rem;
}

@media (min-width: 900px) {
	.fbr-affguide__toc-list--columns {
		columns: 3;
	}
}

.fbr-affguide__toc-list a {
	color: #4f46e5;
	text-decoration: none;
	font-weight: 500;
}

.fbr-affguide__toc-list a:hover {
	text-decoration: underline;
}

.fbr-affguide__section {
	margin-bottom: 2rem;
}

.fbr-affguide__h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.fbr-affguide__prose {
	font-size: 1rem;
	line-height: 1.7;
	color: #334155;
}

.fbr-affguide__prose--measure {
	max-width: none;
	width: 100%;
}

.fbr-affguide__prose p {
	margin: 0 0 0.85rem;
}

.fbr-affguide__prose p:last-child {
	margin-bottom: 0;
}

.fbr-affguide__bullets {
	margin: 0.5rem 0 0;
	padding-left: 1.2rem;
	line-height: 1.7;
}

.fbr-affguide__bullets li {
	margin-bottom: 0.45rem;
}

.fbr-affguide__bullets--ol {
	list-style: decimal;
}

.fbr-affguide__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

@media (min-width: 900px) {
	.fbr-affguide__steps--grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.15rem;
	}
}

.fbr-affguide__step {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	padding: 1rem 1.15rem;
	border-radius: 0.5rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.fbr-affguide__step-num {
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
}

.fbr-affguide__step-title {
	display: block;
	margin-bottom: 0.2rem;
	color: #0f172a;
	font-size: 0.9375rem;
}

.fbr-affguide__step-text {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #64748b;
}

.fbr-affguide__table-wrap {
	overflow-x: auto;
	margin-top: 0.5rem;
	border-radius: 0.5rem;
	border: 1px solid #e2e8f0;
	background: #fff;
}

.fbr-affguide__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	background: #fff;
}

.fbr-affguide__table th,
.fbr-affguide__table td {
	padding: 0.85rem 1.15rem;
	text-align: left;
	border-bottom: 1px solid #e2e8f0;
	vertical-align: top;
}

.fbr-affguide__table th {
	background: #f1f5f9;
	font-weight: 700;
	color: #0f172a;
}

.fbr-affguide__table tr:last-child td {
	border-bottom: none;
}

.fbr-affguide__cards {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

@media (min-width: 768px) {
	.fbr-affguide__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}
}

.fbr-affguide__card {
	margin: 0;
	padding: 1.15rem 1.25rem;
	border-radius: 0.5rem;
	background: #fff;
	border: 1px solid #e5e5e5;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.fbr-affguide__card-title {
	margin: 0 0 0.35rem;
	font-size: 0.9375rem;
	font-weight: 800;
	color: #0f172a;
}

.fbr-affguide__card-text {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: #525252;
}

.fbr-affguide__callout {
	margin-top: 1rem;
	padding: 1rem 1.15rem;
	border-radius: 0.5rem;
	background: #fffbeb;
	border: 1px solid #fcd34d;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #78350f;
	max-width: none;
	width: 100%;
	box-sizing: border-box;
}

.fbr-affguide__section--legal .fbr-affguide__prose {
	font-size: 0.875rem;
	color: #64748b;
}

.fbr-affguide__section--editor {
	padding-top: 1.5rem;
	border-top: 1px solid #e2e8f0;
}
