/*
 * Premium FAQ & Post Navigation - frontend styles (compact).
 * Everything is scoped under .pfpn so it cannot clash with the active theme.
 * Fonts are inherited from the theme; colors come from two CSS variables.
 */
.pfpn {
	--pfpn-accent: #0d9488;
	--pfpn-button: #0f172a;
	--pfpn-ink: #0f172a;
	--pfpn-body: #475569;
	--pfpn-muted: #64748b;
	--pfpn-line: #e2e8f0;
	--pfpn-open-bg: #f6f9fa;
	box-sizing: border-box;
	clear: both;
	max-width: 100%;
	margin: 2.5rem 0 1rem;
	font-family: inherit;
	color: var(--pfpn-ink);
	line-height: 1.5;
}

.pfpn *,
.pfpn *::before,
.pfpn *::after {
	box-sizing: border-box;
}

.pfpn__header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
}

.pfpn__eyebrow {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--pfpn-accent) 12%, #ffffff);
	color: color-mix(in srgb, var(--pfpn-accent) 70%, #000000);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
}

.pfpn .pfpn__title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--pfpn-ink);
}

.pfpn .pfpn__subtitle {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--pfpn-muted);
}

.pfpn__card {
	overflow: hidden;
	border: 1px solid var(--pfpn-line);
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.14);
}

.pfpn__item + .pfpn__item {
	border-top: 1px solid var(--pfpn-line);
}

.pfpn__item.is-open {
	background: var(--pfpn-open-bg);
}

.pfpn .pfpn__q {
	margin: 0 !important;
	padding: 0 !important;
	font-family: inherit;
	font-size: 0.96875rem;
	font-weight: 600;
	line-height: 1.3 !important;
	letter-spacing: -0.005em;
}

.pfpn .pfpn__trigger {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	min-height: 40px !important;
	height: auto !important;
	margin: 0 !important;
	padding-top: 0.5rem !important;
	padding-bottom: 0.5rem !important;
	padding-left: 1.125rem;
	padding-right: 1.125rem;
	line-height: 1.3 !important;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--pfpn-ink);
	font: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.pfpn .pfpn__trigger:hover {
	background: rgba(15, 23, 42, 0.025);
	color: var(--pfpn-ink);
}

.pfpn .pfpn__trigger:focus-visible,
.pfpn .pfpn__more:focus-visible {
	outline: 2px solid var(--pfpn-accent);
	outline-offset: -3px;
}

.pfpn__num {
	flex: none;
	width: 1.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #94a3b8;
}

.pfpn__item.is-open .pfpn__num {
	color: color-mix(in srgb, var(--pfpn-accent) 70%, #000000);
}

.pfpn__qtext {
	flex: 1;
	min-width: 0;
	line-height: 1.3;
}

.pfpn__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: 1px solid #cbd5e1;
	border-radius: 50%;
	background: #ffffff;
	color: var(--pfpn-ink);
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pfpn__icon svg {
	width: 13px;
	height: 13px;
}

.pfpn__item.is-open .pfpn__icon {
	border-color: var(--pfpn-ink);
	background: var(--pfpn-ink);
	color: #ffffff;
	transform: rotate(180deg);
}

.pfpn__panel {
	padding: 0 3rem 0.875rem 3.375rem;
}

.pfpn__panel[hidden] {
	display: none;
}

.pfpn__answer {
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--pfpn-body);
}

.pfpn__answer > :first-child {
	margin-top: 0;
}

.pfpn__answer > :last-child {
	margin-bottom: 0;
}

.pfpn__answer p,
.pfpn__answer ul,
.pfpn__answer ol {
	margin: 0 0 0.75em;
}

.pfpn__answer ul,
.pfpn__answer ol {
	padding-left: 1.25em;
}

.pfpn__answer a {
	color: color-mix(in srgb, var(--pfpn-accent) 75%, #000000);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* View More: a compact bar that belongs to the card. */
.pfpn .pfpn__more {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 52px !important;
	padding: 0 1.125rem;
	background: var(--pfpn-button);
	color: #ffffff;
	text-decoration: none;
	box-shadow: none;
	border: 0;
	transition: filter 0.2s ease;
}

.pfpn__item + .pfpn__more {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pfpn .pfpn__more:hover,
.pfpn .pfpn__more:focus {
	color: #ffffff;
	text-decoration: none;
	filter: brightness(1.25);
}

.pfpn__more-label {
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.pfpn__more-arrow {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #2dd4bf;
	background: color-mix(in srgb, var(--pfpn-accent) 55%, #ffffff);
	color: #0f172a;
	transition: transform 0.2s ease;
}

.pfpn__more-arrow svg {
	width: 16px;
	height: 16px;
}

.pfpn .pfpn__more:hover .pfpn__more-arrow {
	transform: translateX(3px);
}

/* Button alone (no FAQ questions): still a rounded, self-contained bar. */
.pfpn__card--solo {
	box-shadow: none;
}

.pfpn__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 782px) {
	.pfpn {
		margin-top: 2rem;
	}

	.pfpn .pfpn__q {
		font-size: 0.9375rem;
	}

	.pfpn .pfpn__trigger {
		gap: 0.625rem;
		padding-left: 0.875rem;
		padding-right: 0.875rem;
	}

	.pfpn__num {
		width: 1.25rem;
	}

	.pfpn__panel {
		padding: 0 0.875rem 1rem;
	}

	.pfpn__answer {
		font-size: 0.9rem;
		line-height: 1.6;
	}

	.pfpn .pfpn__more {
		min-height: 48px;
		padding: 0 0.875rem;
	}

	.pfpn__more-label {
		font-size: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pfpn__icon,
	.pfpn__more-arrow,
	.pfpn .pfpn__more {
		transition: none;
	}
}
