/**
 * FAQ page — layout referenced from certified-pep.com/faq/, styled for Sophia.
 */

body.sophia-faq-pro-page .wp-block-post-title,
body.sophia-faq-pro-page .entry-title {
	display: none !important;
}

body.sophia-faq-pro-page {
	background-color: var(--wp--preset--color--body-background, #fdf6f2) !important;
	position: relative;
}

body.sophia-faq-pro-page .wp-site-blocks,
body.sophia-faq-pro-page .wp-site-blocks main {
	background: transparent !important;
}

body.sophia-faq-pro-page .wp-site-blocks main {
	margin-top: 0;
	padding-top: 0 !important;
	padding-bottom: var(--wp--custom--spacing--main-block-gap, clamp(56px, 5.5vw, 91px));
}

body.sophia-faq-pro-page .wp-block-post-content,
body.sophia-faq-pro-page .entry-content.wp-block-post-content {
	max-width: none !important;
	padding-inline: 0 !important;
	width: 100%;
}

body.sophia-faq-pro-page .wp-block-post-content > #cp-faq-page,
body.sophia-faq-pro-page .entry-content.wp-block-post-content > #cp-faq-page {
	box-sizing: border-box;
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

#cp-faq-page {
	--ink: #1a1a1a;
	--muted: #686868;
	--accent: var(--wp--preset--color--tan-brown, #954e26);
	--accent-deep: var(--wp--preset--color--chocolate-dim, #bd6230);
	--line: #eddfd4;
	--soft: var(--wp--preset--color--secondary, #fbede5);
	--card: #ffffff;
	--max: var(--wp--style--global--wide-size, 1320px);
	--pad: var(--wp--preset--spacing--42, 42px);
	--r: 14px;
	font-family: var(--wp--preset--font-family--switzer, Switzer, system-ui, sans-serif);
	background: transparent;
	color: var(--ink);
	overflow-x: hidden;
}

#cp-faq-page * {
	box-sizing: border-box;
}

#cp-faq-page a,
#cp-faq-page a:link,
#cp-faq-page a:visited,
#cp-faq-page a:hover,
#cp-faq-page a:active,
#cp-faq-page a:focus,
#cp-faq-page a:focus-visible {
	text-decoration: none !important;
	background-image: none !important;
	border-bottom: 0 !important;
}

#cp-faq-page .wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 28px var(--pad) 48px;
	width: 100%;
	box-sizing: border-box;
}

#cp-faq-page .heroGrid {
	display: grid;
	grid-template-columns: 1.02fr 0.98fr;
	gap: clamp(32px, 5vw, 56px);
	align-items: start;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 18px;
}

#cp-faq-page .heroGrid h1 {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--merriweather, Merriweather, serif);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.05;
	font-size: clamp(30px, 4vw, 44px);
	color: var(--accent);
}

#cp-faq-page .heroGrid .sub {
	margin: 0;
	font-size: 18px;
	line-height: 1.65;
	color: var(--ink);
	font-weight: 600;
	max-width: 720px;
}

#cp-faq-page .heroGrid .meta {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
	font-weight: 600;
	max-width: 520px;
}

#cp-faq-page .grid {
	display: grid;
	grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 48px);
	align-items: start;
	margin-top: 18px;
}

#cp-faq-page .sidebar {
	position: sticky;
	top: 18px;
}

#cp-faq-page .search {
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 10px 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
}

#cp-faq-page .search input {
	width: 100%;
	border: 0;
	outline: none;
	background: transparent;
	font-size: 16px;
	color: var(--ink);
	padding: 8px 6px;
	min-width: 0;
}

#cp-faq-page .search svg {
	width: 18px;
	height: 18px;
	opacity: 0.75;
	flex: 0 0 auto;
}

#cp-faq-page .side-block {
	margin-top: 14px;
}

#cp-faq-page .side-label {
	font-size: 12px;
	letter-spacing: 0.12em;
	font-weight: 800;
	color: rgba(104, 104, 104, 0.9);
	text-transform: uppercase;
	margin: 0 0 10px;
}

#cp-faq-page .cats {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#cp-faq-page .cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 16px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--ink);
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--soft);
	border: 1px solid var(--line);
	cursor: pointer;
	user-select: none;
	transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

#cp-faq-page .cat:hover {
	background: #f7e6db;
	border-color: rgba(149, 78, 38, 0.28);
	transform: translateY(-1px);
}

#cp-faq-page .cat.active {
	background: rgba(149, 78, 38, 0.1);
	border-color: rgba(149, 78, 38, 0.3);
	color: var(--ink);
}

#cp-faq-page .cat .dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: rgba(149, 78, 38, 0.22);
	border: 1px solid rgba(149, 78, 38, 0.28);
	flex: 0 0 10px;
}

#cp-faq-page .cat.active .dot {
	background: var(--accent);
	border-color: var(--accent);
}

#cp-faq-page .supportCard {
	margin-top: 14px;
	padding: 16px;
	border-radius: 16px;
	background: var(--soft);
	border: 1px solid var(--line);
}

#cp-faq-page .supportCard p {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
	font-weight: 600;
}

#cp-faq-page .actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 14px;
}

#cp-faq-page .support-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 12px 18px;
	border-radius: 12px;
	font-size: 16px;
	line-height: 1.2;
	font-weight: 700;
	text-decoration: none !important;
	border: 1px solid var(--accent);
	background: var(--accent);
	color: #fff !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

#cp-faq-page .support-btn:hover {
	background: var(--accent-deep);
	border-color: var(--accent-deep);
}

#cp-faq-page .group {
	scroll-margin-top: 18px;
	margin-bottom: 22px;
}

#cp-faq-page .group h2 {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--merriweather, Merriweather, serif);
	font-size: 18px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--accent);
}

#cp-faq-page .faq {
	display: grid;
	gap: 12px;
}

#cp-faq-page .item {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: hidden;
}

#cp-faq-page .btn {
	width: 100%;
	appearance: none;
	border: 0;
	background: transparent;
	text-align: left;
	padding: 16px;
	cursor: pointer;
	display: grid;
	grid-template-columns: 1fr 38px;
	gap: 12px;
	align-items: center;
}

#cp-faq-page .q {
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--ink);
	line-height: 1.25;
}

#cp-faq-page .icon {
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: var(--accent-deep);
	display: flex;
	align-items: center;
	justify-content: center;
}

#cp-faq-page .icon svg {
	width: 16px;
	height: 16px;
	display: block;
}

#cp-faq-page .icon .minus {
	display: none;
}

#cp-faq-page .item.is-open .icon .plus {
	display: none;
}

#cp-faq-page .item.is-open .icon .minus {
	display: block;
}

#cp-faq-page .a {
	display: none;
	padding: 0 16px 16px;
	font-size: 16px;
	line-height: 1.75;
	color: var(--muted);
	font-weight: 600;
}

#cp-faq-page .item.is-open .a {
	display: block;
}

#cp-faq-page .a a {
	color: var(--accent) !important;
	font-weight: 700;
}

#cp-faq-page .faq-empty {
	padding: 24px 18px;
	border: 1px dashed var(--line);
	border-radius: var(--r);
	background: var(--soft);
	color: var(--muted);
	font-weight: 600;
}

@media (max-width: 980px) {
	#cp-faq-page .wrap {
		padding: 18px var(--wp--preset--spacing--24, 24px) 32px;
	}

	#cp-faq-page .heroGrid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	#cp-faq-page .heroGrid h1 {
		font-size: 30px;
		line-height: 1.12;
		margin-bottom: 10px;
	}

	#cp-faq-page .heroGrid .sub {
		font-size: 16px;
		line-height: 1.7;
		max-width: unset;
	}

	#cp-faq-page .heroGrid .meta {
		max-width: unset;
	}

	#cp-faq-page .grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	#cp-faq-page .sidebar {
		position: static;
	}

	#cp-faq-page .btn {
		padding: 16px 14px;
	}

	#cp-faq-page .a {
		padding: 0 14px 16px;
	}
}
