/**
 * AFFDigest Engine — frontend styles (single listing pages).
 *
 * Clean SaaS data-directory look: light background, strong tables, verified
 * badges, minimal animation. Kadence supplies global typography; these styles
 * only cover the aff-* components.
 */

.aff-single__inner {
	max-width: 1160px;
	margin: 0 auto;
	padding: 24px 16px 96px;
}

/* --- Hero ------------------------------------------------------------- */

.aff-hero {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 24px;
	background: #fff;
	border: 1px solid #e3e6ea;
	border-radius: 10px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.aff-hero__logo {
	flex: 0 0 auto;
}

.aff-hero__img {
	width: 96px;
	height: 96px;
	object-fit: contain;
	border-radius: 8px;
	border: 1px solid #eef0f3;
	background: #fff;
}

.aff-hero__body {
	flex: 1 1 320px;
	min-width: 240px;
}

.aff-hero__type {
	margin: 0 0 2px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7280;
}

.aff-hero__title {
	margin: 0 0 6px;
	font-size: 30px;
	line-height: 1.2;
}

.aff-hero__tagline {
	margin: 0 0 10px;
	color: #4b5563;
}

.aff-hero__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	margin-left: auto;
}

.aff-hero__score {
	font-weight: 700;
	font-size: 28px;
	color: #111827;
}

.aff-hero__score-max {
	font-size: 15px;
	color: #6b7280;
	font-weight: 500;
}

/* --- Badges + buttons -------------------------------------------------- */

.aff-hero__badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.aff-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.aff-badge--verified {
	background: #dcfce7;
	color: #166534;
}

.aff-badge--claimed {
	background: #dbeafe;
	color: #1e40af;
}

.aff-badge--sponsored {
	background: #fef3c7;
	color: #92400e;
}

.aff-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.aff-btn--primary {
	background: #2563eb;
	color: #fff;
}

.aff-btn--primary:hover {
	background: #1d4ed8;
	color: #fff;
}

/* --- Layout columns ---------------------------------------------------- */

.aff-single__cols {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.aff-single__main {
	flex: 1 1 auto;
	min-width: 0;
}

.aff-single__sidebar {
	flex: 0 0 300px;
	position: sticky;
	top: 24px;
}

@media (max-width: 880px) {
	.aff-single__cols {
		flex-direction: column;
	}

	.aff-single__sidebar {
		position: static;
		flex-basis: auto;
		width: 100%;
	}
}

/* --- Sections + cards --------------------------------------------------- */

.aff-section,
.aff-card {
	background: #fff;
	border: 1px solid #e3e6ea;
	border-radius: 10px;
	padding: 20px 24px;
	margin-bottom: 20px;
}

.aff-section h2,
.aff-card h2 {
	margin: 0 0 14px;
	font-size: 20px;
}

.aff-section h3 {
	font-size: 15px;
	margin: 14px 0 6px;
}

/* --- Quick facts table --------------------------------------------------- */

.aff-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.aff-table th,
.aff-table td {
	text-align: left;
	padding: 9px 10px;
	border-bottom: 1px solid #f0f2f4;
	vertical-align: top;
}

.aff-table th {
	width: 42%;
	color: #6b7280;
	font-weight: 600;
}

.aff-table tr:last-child th,
.aff-table tr:last-child td {
	border-bottom: 0;
}

/* --- Definition list ----------------------------------------------------- */

.aff-dl {
	margin: 0;
}

.aff-dl__row {
	display: flex;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f2f4;
	font-size: 14px;
}

.aff-dl__row:last-child {
	border-bottom: 0;
}

.aff-dl dt {
	flex: 0 0 42%;
	color: #6b7280;
	font-weight: 600;
}

.aff-dl dd {
	margin: 0;
}

/* --- Best for / pros-cons ------------------------------------------------ */

.aff-best-for__cols,
.aff-pros-cons__cols {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.aff-best-for__col,
.aff-pros-cons__col {
	flex: 1 1 260px;
	border-radius: 8px;
	padding: 14px 16px;
}

.aff-best-for__col--yes,
.aff-pros-cons__col--pros {
	background: #f0fdf4;
}

.aff-best-for__col--no,
.aff-pros-cons__col--cons {
	background: #fef2f2;
}

.aff-best-for__col h3,
.aff-pros-cons__col h3 {
	margin-top: 0;
}

.aff-best-for__col ul,
.aff-pros-cons__col ul {
	margin: 0;
	padding-left: 18px;
}

.aff-best-for__col li,
.aff-pros-cons__col li {
	margin-bottom: 4px;
	font-size: 14px;
}

/* --- Creator fit ---------------------------------------------------------- */

.aff-fit-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.aff-fit-list__item {
	display: flex;
	gap: 8px;
	align-items: center;
	border: 1px solid #e3e6ea;
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 13px;
}

.aff-fit-list__value {
	font-weight: 700;
}

.aff-fit--high .aff-fit-list__value {
	color: #16a34a;
}

.aff-fit--medium .aff-fit-list__value {
	color: #d97706;
}

.aff-fit--low .aff-fit-list__value {
	color: #dc2626;
}

.aff-creator-fit__terms {
	margin: 12px 0 0;
	font-size: 14px;
}

/* --- Steps / FAQs ---------------------------------------------------------- */

.aff-steps {
	margin: 0;
	padding-left: 20px;
}

.aff-steps__item {
	margin-bottom: 10px;
	font-size: 14px;
}

.aff-steps__item p {
	margin: 4px 0 0;
	color: #4b5563;
}

.aff-faq {
	border-bottom: 1px solid #f0f2f4;
	padding: 8px 0;
}

.aff-faq:last-child {
	border-bottom: 0;
}

.aff-faq__q {
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
}

.aff-faq__a {
	padding: 8px 0 4px 16px;
	font-size: 14px;
	color: #4b5563;
}

/* --- Editor take ------------------------------------------------------------ */

.aff-editor-take {
	margin-top: 16px;
	border-left: 4px solid #2563eb;
	background: #eff6ff;
	border-radius: 0 8px 8px 0;
	padding: 12px 16px;
	font-size: 14px;
}

.aff-editor-take h3 {
	margin: 0 0 6px;
}

/* --- Scores sidebar ----------------------------------------------------------- */

.aff-scores__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aff-scores__item {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 13px;
}

.aff-scores__label {
	flex: 0 0 40%;
	color: #4b5563;
}

.aff-scores__bar {
	flex: 1 1 auto;
	height: 8px;
	background: #eef0f3;
	border-radius: 999px;
	overflow: hidden;
}

.aff-scores__fill {
	display: block;
	height: 100%;
	background: #2563eb;
	border-radius: 999px;
}

.aff-scores__value {
	flex: 0 0 30px;
	text-align: right;
	font-weight: 700;
}

/* --- Sources / changelog --------------------------------------------------------- */

.aff-sources__list,
.aff-changelog__list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	font-size: 13px;
}

.aff-sources__list li,
.aff-changelog__list li {
	padding: 5px 0;
	border-bottom: 1px solid #f0f2f4;
}

.aff-sources__list li:last-child,
.aff-changelog__list li:last-child {
	border-bottom: 0;
}

.aff-sources__field {
	font-family: monospace;
	font-size: 12px;
}

.aff-sources__details summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
}

.aff-changelog__date {
	display: block;
	color: #6b7280;
	font-size: 12px;
}

/* --- Reviews ------------------------------------------------------------------------ */

.aff-reviews__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aff-review-card {
	border: 1px solid #eef0f3;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 10px;
}

.aff-review-card__head {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 6px;
	font-size: 14px;
}

.aff-review-card__role {
	color: #6b7280;
	font-size: 12px;
}

.aff-review-card__rating {
	font-weight: 700;
}

.aff-review-card__text {
	margin: 0;
	font-size: 14px;
	color: #374151;
}

/* --- Similar listings --------------------------------------------------------------- */

.aff-similar__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 12px;
}

.aff-similar__card a {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #e3e6ea;
	border-radius: 8px;
	padding: 10px 12px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease;
}

.aff-similar__card a:hover {
	border-color: #2563eb;
}

.aff-similar__logo {
	width: 36px;
	height: 36px;
	object-fit: contain;
	border-radius: 6px;
}

.aff-similar__name {
	font-size: 14px;
	font-weight: 600;
	flex: 1 1 auto;
}

.aff-similar__score {
	font-size: 12px;
	font-weight: 700;
	color: #2563eb;
}

/* --- Sticky CTA ------------------------------------------------------------------------ */

.aff-sticky-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	background: #fffffff2;
	border-top: 1px solid #e3e6ea;
	backdrop-filter: blur(4px);
}

.aff-sticky-cta__inner {
	max-width: 1160px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.aff-sticky-cta__name {
	font-weight: 600;
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aff-sticky-cta__score {
	color: #2563eb;
	margin-left: 8px;
}

/* =========================================================================
 * Directory archives
 * ========================================================================= */

.aff-archive__inner {
	max-width: 1160px;
	margin: 0 auto;
	padding: 24px 16px 64px;
}

.aff-archive__header {
	margin-bottom: 24px;
}

.aff-archive__header h1 {
	margin: 0 0 8px;
}

.aff-archive__intro {
	max-width: 760px;
	color: #4b5563;
	margin: 0;
}

.aff-archive__cols {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

/* --- Filters sidebar ---------------------------------------------------- */

.aff-archive__filters {
	flex: 0 0 260px;
	background: #fff;
	border: 1px solid #e3e6ea;
	border-radius: 10px;
	padding: 16px;
	position: sticky;
	top: 24px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
}

.aff-archive__filters-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.aff-archive__filters-head h2 {
	font-size: 16px;
	margin: 0;
}

.aff-filters-close {
	display: none;
	background: none;
	border: 0;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
}

.aff-facet {
	padding: 10px 0;
	border-bottom: 1px solid #f0f2f4;
	font-size: 14px;
}

.aff-facet:last-child {
	border-bottom: 0;
}

.aff-facet .facetwp-facet {
	margin-bottom: 0;
}

/* --- Toolbar -------------------------------------------------------------- */

.aff-archive__main {
	flex: 1 1 auto;
	min-width: 0;
}

.aff-archive__toolbar {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.aff-archive__count {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
}

.aff-archive__sort {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.aff-archive__sort select {
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 6px 10px;
	background: #fff;
}

.aff-filters-toggle {
	display: none;
}

.aff-btn--ghost {
	background: #fff;
	color: #1f2937;
	border: 1px solid #d1d5db;
}

.aff-btn--ghost:hover {
	border-color: #2563eb;
	color: #2563eb;
}

/* --- Card grid ---------------------------------------------------------------- */

.aff-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 16px;
}

.aff-card-item {
	background: #fff;
	border: 1px solid #e3e6ea;
	border-radius: 10px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aff-card-item:hover {
	border-color: #93c5fd;
	box-shadow: 0 4px 14px rgb(37 99 235 / 8%);
}

.aff-card-item--sponsored {
	border-color: #fcd34d;
}

.aff-card-item__head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.aff-card-item__logo img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 8px;
	border: 1px solid #eef0f3;
}

.aff-card-item__titlebox {
	flex: 1 1 auto;
	min-width: 0;
}

.aff-card-item__title {
	margin: 0 0 4px;
	font-size: 16px;
	line-height: 1.3;
}

.aff-card-item__title a {
	text-decoration: none;
	color: inherit;
}

.aff-card-item__score {
	flex: 0 0 auto;
	background: #eff6ff;
	color: #1d4ed8;
	font-weight: 700;
	border-radius: 8px;
	padding: 4px 10px;
	font-size: 15px;
}

.aff-card-item__facts {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	font-size: 13px;
}

.aff-card-item__fact dt {
	color: #6b7280;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.aff-card-item__fact dd {
	margin: 2px 0 0;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aff-card-item__verticals {
	margin: 0;
	color: #6b7280;
	font-size: 12px;
}

.aff-card-item__actions {
	margin-top: auto;
	display: flex;
	gap: 10px;
}

.aff-card-item__actions .aff-btn {
	flex: 1 1 50%;
	text-align: center;
	padding: 8px 12px;
	font-size: 14px;
}

.aff-cards__empty {
	background: #fff;
	border: 1px dashed #d1d5db;
	border-radius: 10px;
	padding: 40px 20px;
	text-align: center;
	color: #6b7280;
}

/* --- Pagination ------------------------------------------------------------------ */

.aff-archive__pagination {
	margin-top: 24px;
}

.aff-archive__pagination .page-numbers {
	display: inline-block;
	padding: 7px 13px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	margin-right: 6px;
	text-decoration: none;
	font-size: 14px;
	background: #fff;
}

.aff-archive__pagination .page-numbers.current {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

/* --- Methodology / hub links -------------------------------------------------------- */

.aff-archive__methodology,
.aff-archive__faqs,
.aff-hub-links {
	margin-top: 24px;
}

.aff-hub-links__group {
	margin-bottom: 18px;
}

.aff-hub-links__group h2 {
	font-size: 17px;
	margin: 0 0 10px;
}

.aff-hub-links__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.aff-hub-links__list a {
	display: inline-block;
	border: 1px solid #e3e6ea;
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 13px;
	text-decoration: none;
	color: #1f2937;
	background: #fff;
}

.aff-hub-links__list a:hover {
	border-color: #2563eb;
	color: #2563eb;
}

.aff-hub-links__count {
	color: #9ca3af;
	margin-left: 4px;
}

/* --- Mobile filter drawer --------------------------------------------------------------- */

@media (max-width: 880px) {
	.aff-archive__cols {
		flex-direction: column;
	}

	.aff-filters-toggle {
		display: inline-block;
	}

	.aff-archive__filters {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 999;
		border-radius: 0;
		max-height: none;
		overflow-y: auto;
		padding: 20px;
	}

	.aff-archive__filters.is-open {
		display: block;
	}

	.aff-filters-close {
		display: block;
	}

	body.aff-filters-locked {
		overflow: hidden;
	}

	.aff-card-item__facts {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* =========================================================================
 * Breadcrumbs
 * ========================================================================= */

.aff-breadcrumbs {
	margin-bottom: 14px;
	font-size: 13px;
}

.aff-breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.aff-breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 4px;
	color: #9ca3af;
}

.aff-breadcrumbs a {
	color: #6b7280;
	text-decoration: none;
}

.aff-breadcrumbs a:hover {
	color: #2563eb;
}

.aff-breadcrumbs span[aria-current="page"] {
	color: #111827;
	font-weight: 600;
}

/* =========================================================================
 * Compare pages + best pages
 * ========================================================================= */

.aff-compare__scroll {
	overflow-x: auto;
}

.aff-compare__table thead th {
	font-size: 15px;
}

.aff-compare__table thead a {
	text-decoration: none;
	color: #2563eb;
}

.aff-compare__cta-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.aff-compare__cta-card {
	flex: 1 1 260px;
	border: 1px solid #e3e6ea;
	border-radius: 8px;
	padding: 14px 16px;
	text-align: center;
}

.aff-compare__cta-card h3 {
	margin: 0 0 10px;
}

.aff-compare__verdict ul {
	margin: 8px 0 0;
	padding-left: 18px;
	font-size: 14px;
}

.aff-best__cards {
	margin-bottom: 20px;
}

.aff-similar__compare {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	color: #2563eb;
	text-decoration: none;
}

/* =========================================================================
 * Review form, votes, claims, featured strip, calculator
 * ========================================================================= */

.aff-hp-field {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	overflow: hidden;
}

.aff-form-notice {
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 12px;
}

.aff-form-notice--ok {
	background: #dcfce7;
	color: #166534;
}

.aff-form-notice--err {
	background: #fee2e2;
	color: #991b1b;
}

.aff-review-form {
	margin-top: 14px;
}

.aff-review-form > summary {
	cursor: pointer;
	list-style: none;
	display: inline-block;
}

.aff-review-form__form {
	margin-top: 14px;
	border-top: 1px solid #f0f2f4;
	padding-top: 14px;
	font-size: 14px;
}

.aff-review-form__form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.aff-review-form__form input[type="text"],
.aff-review-form__form input[type="number"],
.aff-review-form__form select,
.aff-review-form__form textarea {
	width: 100%;
	max-width: 420px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 7px 10px;
}

.aff-review-form__categories {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.aff-review-form__categories p {
	flex: 1 1 120px;
}

.aff-review-card__vote {
	margin: 8px 0 0;
}

.aff-review-card__vote-btn {
	background: none;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	padding: 3px 12px;
	font-size: 12px;
	cursor: pointer;
}

.aff-review-card__vote-btn:hover {
	border-color: #2563eb;
	color: #2563eb;
}

.aff-claim input[type="email"] {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 7px 10px;
}

.aff-featured {
	margin-bottom: 20px;
}

.aff-featured__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #92400e;
	margin: 0 0 8px;
}

.aff-cards--featured .aff-card-item {
	border-color: #fcd34d;
	background: #fffbeb;
}

.aff-calc {
	background: #fff;
	border: 1px solid #e3e6ea;
	border-radius: 10px;
	padding: 20px 24px;
	max-width: 640px;
}

.aff-calc__grid {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.aff-calc__grid p {
	flex: 1 1 150px;
}

.aff-calc label {
	font-size: 13px;
	font-weight: 600;
}

.aff-calc input {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 7px 10px;
	margin-top: 4px;
}

.aff-calc__result {
	font-size: 16px;
	margin: 8px 0 0;
}

.aff-calc__result strong {
	color: #16a34a;
	font-size: 20px;
}

/* =========================================================================
 * Design system v1.1 — homepage components, monograms, refinements
 * ========================================================================= */

:root {
	--aff-primary: #2563eb;
	--aff-primary-dark: #1e40af;
	--aff-ink: #0f172a;
	--aff-muted: #64748b;
	--aff-border: #e2e8f0;
	--aff-surface: #f8fafc;
}

/* --- Monogram (logo fallback) ------------------------------------------- */

.aff-monogram {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	font-weight: 800;
	font-size: 20px;
	color: #fff;
	background: linear-gradient(135deg, hsl(var(--aff-mono-h, 220) 65% 52%), hsl(var(--aff-mono-h, 220) 70% 38%));
	user-select: none;
}

.aff-hero__logo .aff-monogram,
.aff-monogram.aff-hero__img {
	width: 96px;
	height: 96px;
	font-size: 40px;
	border-radius: 14px;
}

.aff-similar__logo.aff-monogram {
	width: 36px;
	height: 36px;
	font-size: 15px;
	border-radius: 8px;
}

/* --- Homepage hero -------------------------------------------------------- */

.aff-hero-home {
	background:
		radial-gradient(1100px 420px at 85% -10%, rgb(37 99 235 / 14%), transparent 60%),
		radial-gradient(800px 380px at 5% 110%, rgb(29 78 216 / 10%), transparent 55%),
		linear-gradient(180deg, #eef4ff 0%, #f8fafc 100%);
	border-bottom: 1px solid var(--aff-border);
	margin-bottom: 40px;
}

.aff-hero-home__inner {
	max-width: 880px;
	margin: 0 auto;
	padding: 72px 20px 56px;
	text-align: center;
}

.aff-hero-home__eyebrow {
	display: inline-block;
	margin: 0 0 14px;
	padding: 5px 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--aff-border);
	color: var(--aff-primary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.aff-hero-home__title {
	margin: 0 0 14px;
	font-size: clamp(30px, 5vw, 46px);
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--aff-ink);
	font-weight: 800;
}

.aff-hero-home__subtitle {
	margin: 0 auto 26px;
	max-width: 640px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--aff-muted);
}

.aff-hero-home__search {
	display: flex;
	gap: 10px;
	max-width: 560px;
	margin: 0 auto 22px;
}

.aff-hero-home__search input[type="search"] {
	flex: 1 1 auto;
	border: 1px solid var(--aff-border);
	border-radius: 10px;
	padding: 13px 18px;
	font-size: 15px;
	background: #fff;
	box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
}

.aff-hero-home__search input[type="search"]:focus {
	outline: 2px solid var(--aff-primary);
	outline-offset: 1px;
	border-color: var(--aff-primary);
}

.aff-hero-home__stats {
	list-style: none;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	font-size: 14px;
	color: var(--aff-muted);
}

.aff-hero-home__stats strong {
	color: var(--aff-ink);
	font-size: 16px;
}

/* --- Homepage sections ------------------------------------------------------ */

.aff-home-section {
	max-width: 1160px;
	margin: 0 auto 44px;
	padding: 0 16px;
}

.aff-home-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.aff-home-section__head h2 {
	margin: 0;
	font-size: 24px;
	letter-spacing: -0.01em;
	color: var(--aff-ink);
}

.aff-home-section__more {
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	color: var(--aff-primary);
	white-space: nowrap;
}

/* --- Hub tiles ----------------------------------------------------------------- */

.aff-hub-tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}

.aff-hub-tiles a {
	display: block;
	background: #fff;
	border: 1px solid var(--aff-border);
	border-radius: 12px;
	padding: 16px 18px;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.aff-hub-tiles a:hover {
	border-color: var(--aff-primary);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgb(37 99 235 / 10%);
}

.aff-hub-tiles__name {
	display: block;
	font-weight: 700;
	color: var(--aff-ink);
	margin-bottom: 2px;
}

.aff-hub-tiles__count {
	font-size: 13px;
	color: var(--aff-muted);
}

/* --- Best links ------------------------------------------------------------------- */

.aff-best-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 12px;
}

.aff-best-links a {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--aff-border);
	border-radius: 12px;
	padding: 16px 18px;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aff-best-links a:hover {
	border-color: var(--aff-primary);
	box-shadow: 0 8px 20px rgb(37 99 235 / 10%);
}

.aff-best-links__badge {
	font-size: 22px;
}

.aff-best-links__title {
	flex: 1 1 auto;
	font-weight: 700;
	color: var(--aff-ink);
}

.aff-best-links__cta {
	font-size: 13px;
	font-weight: 600;
	color: var(--aff-primary);
	white-space: nowrap;
}

/* --- Trust band --------------------------------------------------------------------- */

.aff-trust-band {
	max-width: 1160px;
	margin: 0 auto 48px;
	padding: 0 16px;
}

.aff-trust-band__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	background: linear-gradient(180deg, #ffffff, #f8fafc);
	border: 1px solid var(--aff-border);
	border-radius: 16px;
	padding: 28px;
}

.aff-trust-band__icon {
	font-size: 26px;
	display: block;
	margin-bottom: 8px;
}

.aff-trust-band__col h3 {
	margin: 0 0 6px;
	font-size: 16px;
	color: var(--aff-ink);
}

.aff-trust-band__col p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--aff-muted);
}

/* --- Component refinements (cascade overrides) ---------------------------------------- */

.aff-btn {
	border-radius: 10px;
	letter-spacing: 0.01em;
}

.aff-btn--primary {
	box-shadow: 0 2px 6px rgb(37 99 235 / 25%);
}

.aff-btn--primary:hover {
	box-shadow: 0 4px 12px rgb(37 99 235 / 30%);
	transform: translateY(-1px);
}

.aff-card-item,
.aff-section,
.aff-card {
	border-color: var(--aff-border);
	border-radius: 12px;
}

.aff-card-item {
	box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}

.aff-card-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgb(37 99 235 / 10%);
}

.aff-card-item__title a:hover {
	color: var(--aff-primary);
}

.aff-hero {
	box-shadow: 0 1px 3px rgb(15 23 42 / 5%);
}

.aff-archive__header h1,
.aff-hero__title {
	letter-spacing: -0.02em;
	color: var(--aff-ink);
}

@media (max-width: 640px) {
	.aff-hero-home__inner {
		padding: 48px 16px 40px;
	}

	.aff-hero-home__search {
		flex-direction: column;
	}
}

/* =========================================================================
 * Design v1.2 — premium layer: dark hero, stat tiles, card redesign,
 * score ring, richer sections. Overrides earlier layers by cascade order.
 * ========================================================================= */

/* --- Eyebrow micro-labels ------------------------------------------------ */

.aff-eyebrow {
	margin: 0 0 4px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--aff-primary);
}

.aff-home-section__subtitle {
	margin: 6px 0 0;
	color: var(--aff-muted);
	font-size: 15px;
}

/* --- Dark homepage hero ---------------------------------------------------- */

.aff-hero-home {
	position: relative;
	background:
		radial-gradient(900px 400px at 80% -20%, rgb(59 130 246 / 28%), transparent 60%),
		radial-gradient(700px 360px at 10% 120%, rgb(99 102 241 / 22%), transparent 55%),
		linear-gradient(150deg, #0b1120 0%, #0f1b3d 55%, #12234f 100%);
	border-bottom: 0;
	overflow: hidden;
}

.aff-hero-home::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgb(255 255 255 / 7%) 1px, transparent 1px);
	background-size: 26px 26px;
	mask-image: linear-gradient(180deg, rgb(0 0 0 / 90%), transparent 85%);
	pointer-events: none;
}

.aff-hero-home__inner {
	position: relative;
	max-width: 960px;
	padding: 84px 20px 64px;
}

.aff-hero-home__eyebrow {
	background: rgb(255 255 255 / 8%);
	border: 1px solid rgb(255 255 255 / 18%);
	color: #93c5fd;
}

.aff-hero-home__title {
	color: #fff;
	font-size: clamp(32px, 5.4vw, 52px);
	text-shadow: 0 2px 24px rgb(37 99 235 / 25%);
}

.aff-hero-home__title::after {
	content: "";
	display: block;
	width: 72px;
	height: 4px;
	margin: 18px auto 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.aff-hero-home__subtitle {
	color: #a5b4cf;
	font-size: 17.5px;
}

.aff-hero-home__search {
	max-width: 620px;
	background: rgb(255 255 255 / 6%);
	border: 1px solid rgb(255 255 255 / 14%);
	padding: 8px;
	border-radius: 14px;
	backdrop-filter: blur(6px);
	margin-bottom: 34px;
}

.aff-hero-home__search input[type="search"] {
	border: 0;
	box-shadow: none;
	background: transparent;
	color: #fff;
	font-size: 16px;
}

.aff-hero-home__search input[type="search"]::placeholder {
	color: #7d8cb0;
}

.aff-hero-home__search input[type="search"]:focus {
	outline: none;
	border: 0;
}

.aff-hero-home__search .aff-btn--primary {
	padding: 12px 26px;
	border-radius: 10px;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Stat tiles */

.aff-hero-home__stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	max-width: 760px;
	margin: 0 auto;
}

.aff-hero-home__stats > li {
	display: contents;
}

.aff-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 16px 10px 14px;
	background: rgb(255 255 255 / 5%);
	border: 1px solid rgb(255 255 255 / 12%);
	border-radius: 14px;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

a.aff-stat:hover {
	background: rgb(255 255 255 / 10%);
	border-color: rgb(147 197 253 / 45%);
	transform: translateY(-2px);
}

.aff-stat__icon {
	font-size: 18px;
	margin-bottom: 2px;
}

.aff-stat__num {
	font-size: 26px;
	font-weight: 800;
	color: #fff;
	line-height: 1.1;
}

.aff-stat__label {
	font-size: 12px;
	font-weight: 600;
	color: #8fa3c8;
	letter-spacing: 0.02em;
	text-align: center;
}

@media (max-width: 640px) {
	.aff-hero-home__stats {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* --- Card redesign ------------------------------------------------------------ */

.aff-card-item {
	position: relative;
	padding: 18px 18px 16px;
	border-radius: 14px;
	border: 1px solid var(--aff-border);
	background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
	box-shadow: 0 1px 2px rgb(15 23 42 / 5%), 0 8px 24px -18px rgb(15 23 42 / 18%);
	overflow: hidden;
}

.aff-card-item::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, #3b82f6, #8b5cf6 60%, #ec4899);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.aff-card-item:hover::before {
	opacity: 1;
}

.aff-card-item:hover {
	border-color: #bfdbfe;
	box-shadow: 0 18px 40px -20px rgb(37 99 235 / 30%);
	transform: translateY(-3px);
}

.aff-card-item__kicker {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #94a3b8;
}

.aff-card-item__head {
	margin-top: 6px;
	align-items: center;
}

.aff-card-item__logo img,
.aff-card-item__logo .aff-monogram {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	box-shadow: 0 2px 6px rgb(15 23 42 / 10%);
}

.aff-card-item__title {
	font-size: 17px;
	font-weight: 700;
}

.aff-card-item__score {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	padding: 7px 12px;
	border-radius: 10px;
	font-size: 16px;
	line-height: 1;
}

.aff-card-item__score small {
	font-size: 11px;
	font-weight: 600;
	opacity: 0.7;
}

/* Grade bands: green 8+, amber 6–8, muted slate below 6 */

.aff-score--high {
	background: #dcfce7;
	color: #15803d;
}

.aff-score--good {
	background: #fef3c7;
	color: #b45309;
}

.aff-score--mid {
	background: #f1f5f9;
	color: #475569;
}

/* Fact chips */

.aff-card-item__facts {
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin: 2px 0 0;
}

.aff-card-item__fact {
	background: var(--aff-surface);
	border: 1px solid #eef2f7;
	border-radius: 10px;
	padding: 8px 10px;
	text-align: center;
	min-width: 0;
}

.aff-card-item__fact dt {
	font-size: 10px;
	letter-spacing: 0.06em;
	color: #94a3b8;
	font-weight: 700;
}

.aff-card-item__fact dd {
	font-size: 13px;
	font-weight: 700;
	color: var(--aff-ink);
	margin-top: 3px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Tag pills */

.aff-tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.aff-tags a,
.aff-tags__more {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: #eef2ff;
	color: #4338ca;
	font-size: 11.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.aff-tags a:hover {
	background: #e0e7ff;
}

.aff-tags__more {
	background: #f1f5f9;
	color: #64748b;
}

.aff-card-item__actions .aff-btn {
	border-radius: 10px;
	font-size: 13.5px;
	padding: 9px 12px;
}

/* Sponsored cards keep their amber identity on the new base */

.aff-card-item--sponsored {
	background: linear-gradient(180deg, #fffdf5 0%, #fffaeb 100%);
	border-color: #fcd34d;
}

/* --- Score ring (single hero) ---------------------------------------------------- */

.aff-score-ring {
	--aff-p: 0;
	width: 104px;
	height: 104px;
	border-radius: 50%;
	background: conic-gradient(#2563eb calc(var(--aff-p) * 1%), #e2e8f0 0);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgb(37 99 235 / 18%);
}

.aff-score-ring__inner {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1.1;
}

.aff-score-ring__inner strong {
	font-size: 26px;
	font-weight: 800;
	color: var(--aff-ink);
}

.aff-score-ring__inner small {
	font-size: 10px;
	font-weight: 600;
	color: var(--aff-muted);
	letter-spacing: 0.03em;
}

/* --- Single listing hero polish ----------------------------------------------------- */

.aff-hero {
	background:
		radial-gradient(600px 200px at 95% 0%, rgb(37 99 235 / 7%), transparent 60%),
		#fff;
	border-radius: 14px;
	padding: 28px;
}

.aff-hero__img,
.aff-hero__logo .aff-monogram {
	border-radius: 16px;
	box-shadow: 0 4px 12px rgb(15 23 42 / 10%);
}

/* Score bars: gradient fill */

.aff-scores__fill {
	background: linear-gradient(90deg, #60a5fa, #2563eb);
}

/* Quick facts: zebra rows */

.aff-quick-facts .aff-table tr:nth-child(even) {
	background: #fafcff;
}

/* --- Section + archive polish ---------------------------------------------------------- */

.aff-home-section {
	margin-bottom: 56px;
}

.aff-home-section__head h2 {
	font-size: 26px;
	font-weight: 800;
}

.aff-home-section__more {
	padding: 7px 14px;
	border: 1px solid var(--aff-border);
	border-radius: 999px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aff-home-section__more:hover {
	border-color: var(--aff-primary);
	box-shadow: 0 4px 12px rgb(37 99 235 / 12%);
}

.aff-archive__header {
	padding: 34px 28px;
	background:
		radial-gradient(500px 180px at 90% -20%, rgb(37 99 235 / 10%), transparent 60%),
		linear-gradient(180deg, #ffffff, #f8fafc);
	border: 1px solid var(--aff-border);
	border-radius: 16px;
	margin-bottom: 26px;
}

.aff-archive__header h1 {
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 800;
}

.aff-archive__toolbar {
	background: #fff;
	border: 1px solid var(--aff-border);
	border-radius: 12px;
	padding: 10px 14px;
}

.aff-archive__filters {
	border-radius: 14px;
	box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}

/* Trust band accent */

.aff-trust-band__cols {
	border-radius: 18px;
	padding: 34px;
	background:
		radial-gradient(400px 160px at 100% 0%, rgb(37 99 235 / 7%), transparent 60%),
		linear-gradient(180deg, #ffffff, #f8fafc);
}

.aff-trust-band__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: #eef2ff;
	font-size: 22px;
	margin-bottom: 12px;
}

/* Hub tiles: arrow affordance */

.aff-hub-tiles a {
	position: relative;
	padding-right: 34px;
}

.aff-hub-tiles a::after {
	content: "→";
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #cbd5e1;
	font-weight: 700;
	transition: color 0.15s ease, transform 0.15s ease;
}

.aff-hub-tiles a:hover::after {
	color: var(--aff-primary);
	transform: translateY(-50%) translateX(3px);
}

/* Best links */

.aff-best-links a {
	padding: 18px 20px;
	border-radius: 14px;
}

.aff-best-links__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #fef3c7;
	font-size: 20px;
}

/* Calculator polish */

.aff-calc {
	max-width: 1128px;
	margin: 0 auto 56px;
	border-radius: 16px;
	padding: 28px 32px;
	box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}

/* Sticky CTA */

.aff-sticky-cta {
	background: rgb(255 255 255 / 96%);
	box-shadow: 0 -6px 24px rgb(15 23 42 / 8%);
}

/* =========================================================================
 * Design v1.3 — professional refinement: SVG iconography, unified brand
 * gradient (blue -> indigo only), hub-links redesign, mega footer.
 * ========================================================================= */

/* --- Unified gradient (kill the rainbow) --------------------------------- */

.aff-card-item::before {
	background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.aff-hero-home__title::after {
	background: linear-gradient(90deg, #3b82f6, #6366f1);
}

/* --- SVG icon sizing -------------------------------------------------------- */

.aff-stat__icon,
.aff-trust-band__icon,
.aff-best-links__badge {
	color: var(--aff-primary);
}

.aff-stat__icon svg {
	width: 22px;
	height: 22px;
}

.aff-stat__icon {
	color: #93c5fd;
	margin-bottom: 6px;
}

.aff-trust-band__icon svg {
	width: 22px;
	height: 22px;
}

.aff-best-links__badge {
	background: #eef2ff;
	color: #4f46e5;
}

.aff-best-links__badge svg {
	width: 20px;
	height: 20px;
}

/* --- Hub-links redesign (archive bottoms) ------------------------------------- */

.aff-hub-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 28px 32px;
	padding: 26px 28px;
}

.aff-hub-links__group {
	margin-bottom: 0;
}

.aff-hub-links__group h2 {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--aff-muted);
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--aff-border);
}

.aff-hub-links__list a {
	background: var(--aff-surface);
	border-color: transparent;
	color: #334155;
	font-weight: 600;
}

.aff-hub-links__list a:hover {
	background: #eef2ff;
	border-color: transparent;
	color: #4338ca;
}

.aff-hub-links__count {
	color: #94a3b8;
	font-weight: 500;
}

/* Kadence copyright bar: dark footer top border */

#colophon,
.site-footer {
	border-top: 1px solid #1e293b;
}

/* --- Micro-refinements --------------------------------------------------------------- */

/* Search page + generic content on brand background. Scoped so Kadence's
   Content Vertical Padding control still wins when it removes top space. */
body.search:not(.content-vertical-padding-hide):not(.content-vertical-padding-bottom) .content-area,
body.archive:not(.content-vertical-padding-hide):not(.content-vertical-padding-bottom) .content-area {
	padding-top: 24px;
}

/* Focus visibility site-wide (accessibility = professionalism) */
.aff-btn:focus-visible,
.aff-tags a:focus-visible,
.aff-hub-tiles a:focus-visible,
.aff-best-links a:focus-visible {
	outline: 2px solid var(--aff-primary);
	outline-offset: 2px;
}

/* FacetWP controls: match the design system */
.facetwp-facet select,
.facetwp-facet input[type="text"],
.facetwp-facet .facetwp-search {
	border: 1px solid var(--aff-border);
	border-radius: 8px;
	padding: 7px 10px;
	width: 100%;
	background: #fff;
	font-size: 13.5px;
}

.facetwp-facet .facetwp-checkbox {
	font-size: 13.5px;
	color: #334155;
}

.facetwp-facet .facetwp-counter {
	color: #94a3b8;
}

.facetwp-type-search .facetwp-btn {
	top: 8px;
}

/* =========================================================================
 * Design v1.4 — competitor-informed social proof layer: star ratings,
 * category-score chips, card descriptions, segmented sort, review scores.
 * ========================================================================= */

/* --- Star ratings ---------------------------------------------------------- */

.aff-stars {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	line-height: 1;
}

.aff-stars__base {
	position: relative;
	display: inline-block;
	font-size: 15px;
	letter-spacing: 1.5px;
	color: #e2e8f0;
	white-space: nowrap;
}

.aff-stars__fill {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
	color: #f59e0b;
	white-space: nowrap;
}

.aff-stars__label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--aff-muted);
}

/* --- Card: meta row + description ------------------------------------------- */

.aff-card-item__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 3px;
}

.aff-card-item__meta .aff-stars__base {
	font-size: 13px;
}

.aff-card-item__desc {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: #475569;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* --- Hero: dimension chips ------------------------------------------------------ */

.aff-hero__badges {
	align-items: center;
}

.aff-hero__dims {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 0;
	padding: 0;
}

.aff-hero__dims li {
	display: flex;
	align-items: center;
	gap: 7px;
	background: var(--aff-surface);
	border: 1px solid #eef2f7;
	border-radius: 10px;
	padding: 7px 12px;
}

.aff-hero__dim-label {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #94a3b8;
}

.aff-hero__dim-value {
	font-size: 14px;
	font-weight: 800;
	color: var(--aff-primary);
}

/* --- Segmented sort control -------------------------------------------------------- */

.aff-segmented {
	display: inline-flex;
	background: var(--aff-surface);
	border: 1px solid var(--aff-border);
	border-radius: 10px;
	padding: 3px;
	gap: 2px;
	margin-left: auto;
}

.aff-segmented__item {
	padding: 7px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.aff-segmented__item:hover {
	color: var(--aff-primary);
}

.aff-segmented__item.is-active {
	background: #fff;
	color: var(--aff-ink);
	box-shadow: 0 1px 3px rgb(15 23 42 / 12%);
}

/* --- Review cards: category mini-scores ----------------------------------------------- */

.aff-review-card {
	border-radius: 12px;
	padding: 16px 18px;
}

.aff-review-card__cats {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
	padding: 0;
}

.aff-review-card__cats li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--aff-surface);
	border: 1px solid #eef2f7;
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 11px;
}

.aff-review-card__cats span {
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #94a3b8;
	font-size: 10px;
}

.aff-review-card__cats strong {
	color: var(--aff-primary);
}

/* --- Sponsored featured strip: match card meta ------------------------------------------ */

.aff-cards--featured .aff-card-item__desc {
	color: #713f12;
}

/* ==========================================================================
 * Verified payment proofs — structured review facts, source labels, the
 * editor-verified badge, the private-proof upload, and the listing trust stat.
 * Dark-ink + cyan data language, v5.x card surfaces.
 * ========================================================================== */

/* --- Source label chips (editor / verified publisher / unverified user) ----- */

.aff-review-card__src {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border: 1px solid transparent;
}

.aff-review-card__src--editor {
	background: #eef2ff;
	color: #3730a3;
	border-color: #c7d2fe;
}

.aff-review-card__src--verified {
	background: #ecfdf5;
	color: #065f46;
	border-color: #a7f3d0;
}

.aff-review-card__src--user {
	background: #f1f5f9;
	color: #475569;
	border-color: #e2e8f0;
}

/* --- Editor-verified payment badge ----------------------------------------- */

.aff-badge--paid {
	background: linear-gradient(135deg, #059669, #10b981);
	color: #fff;
	box-shadow: 0 6px 16px -8px rgb(5 150 105 / 60%);
}

/* --- Structured self-reported facts + payment line ------------------------- */

.aff-review-card__facts {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 8px;
	padding: 0;
}

.aff-review-card__facts li {
	display: inline-flex;
	align-items: center;
	background: #f6f9fc;
	border: 1px solid #e9eef4;
	border-radius: 8px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
}

.aff-review-card__payment {
	margin: 0 0 10px;
	padding: 8px 12px;
	border-radius: 10px;
	background: #ecfdf5;
	border: 1px solid #bbf7d0;
	color: #065f46;
	font-size: 13px;
}

.aff-review-card__payment strong {
	color: #064e3b;
	font-variant-numeric: tabular-nums;
}

/* --- Listing trust stat: "N verified payments reported" -------------------- */

.aff-hero__paystat {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 7px 13px;
	border-radius: 12px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	max-width: 100%;
}

.aff-hero__paystat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	border-radius: 999px;
	background: linear-gradient(135deg, #059669, #10b981);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}

.aff-hero__paystat-text {
	font-size: 13px;
	line-height: 1.25;
	color: #065f46;
}

.aff-hero__paystat-text strong {
	font-weight: 800;
	color: #064e3b;
	font-variant-numeric: tabular-nums;
}

/* --- Review form: structured field groups ---------------------------------- */

.aff-review-form__group {
	margin: 16px 0 0;
	padding: 14px 16px 4px;
	border: 1px solid var(--aff-border);
	border-radius: 12px;
	background: #fcfdfe;
}

.aff-review-form__group legend {
	padding: 0 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--aff-ink);
}

.aff-review-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}

.aff-review-form__grid p {
	margin: 0 0 10px;
}

.aff-review-form__grid select,
.aff-review-form__grid input {
	max-width: 100%;
}

.aff-review-form__radios {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin: 0 0 12px;
}

.aff-review-form__radios-q {
	font-weight: 600;
	flex: 1 0 100%;
	margin-bottom: 2px;
}

.aff-review-form__radio {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	font-weight: 500 !important;
	margin: 0 !important;
	cursor: pointer;
}

.aff-review-form__radio input {
	width: auto !important;
	margin: 0;
}

.aff-review-form__proof {
	margin: 4px 0 8px;
}

.aff-review-form__proof input[type="file"] {
	display: block;
	width: 100%;
	max-width: 420px;
	font-size: 13px;
	margin-bottom: 6px;
}

.aff-review-form__proof-note {
	display: block;
	max-width: 480px;
	padding: 9px 12px;
	border-radius: 10px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	color: #075985;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
}
