.afsp-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
	width: 100%;
}

.afsp-card {
	padding: 28px;
	border: 1px solid #e5e1e4;
	border-top: 3px solid #eebd94;
	border-radius: 8px;
	background: #fbf8fa;
	box-shadow: 0 18px 45px rgba(11, 31, 58, 0.06);
}

.afsp-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 16px;
	border-radius: 10px;
	background: #0b1f3a;
	color: #eebd94;
	font-weight: 700;
}

.afsp-card h3 {
	margin: 0 0 12px;
	color: #1b1b1d;
	font-size: 24px;
	line-height: 1.25;
}

.afsp-card p {
	margin: 0 0 12px;
	color: #44474d;
	line-height: 1.65;
}

.afsp-price {
	color: #0b1f3a;
	font-size: 28px;
	font-weight: 700;
}

.afsp-button {
	display: inline-flex;
	margin-top: 12px;
	padding: 10px 16px;
	border: 1px solid #0b1f3a;
	border-radius: 4px;
	color: #0b1f3a;
	text-decoration: none;
}

.afsp-list {
	display: grid;
	gap: 18px;
	margin: 0;
	padding-left: 1.25rem;
	color: #44474d;
	line-height: 1.65;
}

.afsp-list strong {
	color: #000;
}

.afsp-faq {
	display: grid;
	gap: 18px;
}

.afsp-faq-item {
	padding: 24px;
	border: 1px solid #e5e1e4;
	border-radius: 8px;
	background: #fff;
}

.afsp-faq-item summary {
	cursor: pointer;
	color: #1b1b1d;
	font-size: 22px;
	font-weight: 700;
}

.afsp-table-wrap {
	overflow-x: auto;
}

.afsp-comparison-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.afsp-comparison-table th,
.afsp-comparison-table td {
	padding: 16px;
	border: 1px solid #e5e1e4;
	text-align: left;
}

.afsp-comparison-table th {
	background: #0b1f3a;
	color: #fff;
}

.afsp-state-directory {
	--afsp-ink: #161514;
	--afsp-muted: #5f6673;
	--afsp-navy: #061b34;
	--afsp-copper: #d8905f;
	--afsp-teal: #1f8a8a;
	--afsp-paper: #fbf8f6;
	--afsp-line: rgba(6, 27, 52, 0.12);
	position: relative;
	width: 100%;
	padding: clamp(56px, 7vw, 96px) clamp(16px, 4vw, 42px);
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(251, 248, 246, 0.96), rgba(255, 255, 255, 0.98) 54%, rgba(238, 245, 244, 0.92)),
		#fff;
	color: var(--afsp-ink);
	overflow: hidden;
}

.afsp-state-directory::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(6, 27, 52, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(6, 27, 52, 0.045) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
}

.afsp-state-directory-header {
	position: relative;
	z-index: 1;
	max-width: 920px;
	margin: 0 auto clamp(34px, 5vw, 58px);
	text-align: center;
}

.afsp-state-directory-eyebrow {
	display: inline-flex;
	align-items: center;
	margin: 0 0 14px;
	padding: 6px 12px;
	border: 1px solid rgba(216, 144, 95, 0.42);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.74);
	color: #81481f;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0;
}

.afsp-state-directory-header h2 {
	margin: 0;
	color: var(--afsp-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(34px, 5vw, 68px);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: 0;
}

.afsp-state-directory-description {
	max-width: 760px;
	margin: 18px auto 0;
	color: var(--afsp-muted);
	font-size: clamp(16px, 1.6vw, 21px);
	line-height: 1.65;
}

.afsp-state-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	max-width: 1240px;
	margin: 0 auto;
}

.afsp-state-card {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	min-height: 118px;
	padding: 18px;
	border: 1px solid var(--afsp-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.86);
	box-shadow: 0 18px 42px rgba(6, 27, 52, 0.08);
	color: var(--afsp-ink);
	text-decoration: none;
	transform: translateY(0);
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

@media (prefers-reduced-motion: no-preference) {
	.afsp-state-directory {
		animation: afsp-directory-in 420ms ease both;
	}

	.afsp-state-card {
		animation: afsp-state-card-in 320ms ease both;
	}
}

@keyframes afsp-directory-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes afsp-state-card-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.afsp-state-card::after {
	content: "";
	position: absolute;
	right: 16px;
	bottom: 14px;
	width: 30px;
	height: 1px;
	background: var(--afsp-copper);
	transform: scaleX(0.45);
	transform-origin: right;
	opacity: 0.78;
	transition: transform 180ms ease, opacity 180ms ease;
}

.afsp-state-card:hover,
.afsp-state-card:focus-visible {
	border-color: rgba(31, 138, 138, 0.42);
	background: #fff;
	box-shadow: 0 24px 60px rgba(6, 27, 52, 0.14);
	color: var(--afsp-ink);
	transform: translateY(-4px);
	outline: none;
}

.afsp-state-card:hover::after,
.afsp-state-card:focus-visible::after {
	transform: scaleX(1);
	opacity: 1;
}

.afsp-state-card-abbr {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: var(--afsp-navy);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	box-shadow: inset 0 -2px 0 rgba(216, 144, 95, 0.55);
}

.afsp-state-card-content {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.afsp-state-card-content strong {
	color: var(--afsp-ink);
	font-size: 18px;
	font-weight: 750;
	line-height: 1.15;
}

.afsp-state-card-content em {
	color: var(--afsp-muted);
	font-size: 13px;
	font-style: normal;
	line-height: 1.25;
}

.afsp-state-card-cta {
	grid-column: 1 / -1;
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin-top: 2px;
	color: #8a4d25;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}

.afsp-state-card-cta::after {
	content: ">";
	margin-left: 7px;
	transition: transform 180ms ease;
}

.afsp-state-card:hover .afsp-state-card-cta::after,
.afsp-state-card:focus-visible .afsp-state-card-cta::after {
	transform: translateX(3px);
}

.afsp-state-directory-compact .afsp-state-grid {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

.afsp-state-directory-compact .afsp-state-card {
	grid-template-columns: minmax(0, 1fr) auto;
	min-height: 72px;
	padding: 16px 18px;
}

.afsp-state-directory-compact .afsp-state-card-abbr,
.afsp-state-directory-compact .afsp-state-card-cta {
	display: none;
}

.afsp-state-directory-compact .afsp-state-card-content strong {
	font-size: 17px;
}

@media (max-width: 1180px) {
	.afsp-state-grid,
	.afsp-state-directory-compact .afsp-state-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.afsp-state-grid,
	.afsp-state-directory-compact .afsp-state-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.afsp-state-directory {
		padding-inline: 18px;
	}
}

@media (max-width: 680px) {
	.afsp-state-directory {
		padding: 42px 12px;
		border-radius: 0;
	}

	.afsp-state-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.afsp-state-directory-compact .afsp-state-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.afsp-state-card {
		grid-template-columns: 1fr;
		min-height: 132px;
		padding: 15px;
	}

	.afsp-state-card-abbr {
		width: 42px;
		height: 42px;
	}

	.afsp-state-card-content strong {
		font-size: 16px;
	}

	.afsp-state-directory-compact .afsp-state-directory-header {
		margin-bottom: 22px;
	}

	.afsp-state-directory-compact .afsp-state-directory-eyebrow {
		margin-bottom: 10px;
		padding: 5px 9px;
		font-size: 10px;
	}

	.afsp-state-directory-compact .afsp-state-directory-header h2 {
		font-size: clamp(28px, 9vw, 38px);
		line-height: 1.05;
	}

	.afsp-state-directory-compact .afsp-state-directory-description {
		margin-top: 10px;
		font-size: 14px;
		line-height: 1.45;
	}

	.afsp-state-directory-compact .afsp-state-card {
		grid-template-columns: minmax(0, 1fr) auto;
		min-height: 58px;
		padding: 11px 12px;
		border-radius: 7px;
		box-shadow: 0 8px 20px rgba(6, 27, 52, 0.07);
	}

	.afsp-state-directory-compact .afsp-state-card::after {
		content: ">";
		position: static;
		width: auto;
		height: auto;
		align-self: center;
		background: transparent;
		color: var(--afsp-copper);
		font-size: 14px;
		font-weight: 800;
		line-height: 1;
		opacity: 1;
		transform: none;
	}

	.afsp-state-directory-compact .afsp-state-card:hover,
	.afsp-state-directory-compact .afsp-state-card:focus-visible {
		transform: translateY(-2px);
	}

	.afsp-state-directory-compact .afsp-state-card-content {
		gap: 0;
	}

	.afsp-state-directory-compact .afsp-state-card-content strong {
		font-size: 14px;
		line-height: 1.15;
	}

	.afsp-state-directory-compact .afsp-state-card-content em {
		display: none;
	}
}

@media (max-width: 420px) {
	.afsp-state-grid {
		grid-template-columns: 1fr;
	}

	.afsp-state-card {
		grid-template-columns: auto minmax(0, 1fr);
		min-height: 96px;
	}

	.afsp-state-directory-compact .afsp-state-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.afsp-state-directory-compact .afsp-state-card {
		grid-template-columns: minmax(0, 1fr) auto;
		min-height: 56px;
	}
}

@media (max-width: 340px) {
	.afsp-state-directory-compact .afsp-state-card {
		padding: 10px;
	}

	.afsp-state-directory-compact .afsp-state-card-content strong {
		font-size: 13px;
	}
}
