/*
 * CEE FAQ – inherits the theme's text color so it works on the dark Electro child theme and on light themes.
 * Surfaces and borders are derived from currentColor.
 */
.cee-faq-index,
.cee-faq-article {
	--cee-faq-line: color-mix(in srgb, currentColor 18%, transparent);
	--cee-faq-surface: color-mix(in srgb, currentColor 5%, transparent);
	--cee-faq-muted: color-mix(in srgb, currentColor 68%, transparent);
	--cee-faq-accent: #e3262f;
	line-height: 1.6;
}

.cee-faq-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.cee-faq-index a,
.cee-faq-article a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
	text-underline-offset: 3px;
}

.cee-faq-index a:hover,
.cee-faq-index a:focus-visible,
.cee-faq-article a:hover,
.cee-faq-article a:focus-visible {
	text-decoration-color: var(--cee-faq-accent);
}

.cee-faq-index [hidden],
.cee-faq-article .cee-faq-index__none[hidden] {
	display: none !important;
}

/* Index */
.cee-faq-index__search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.cee-faq-index__search input[type="search"] {
	flex: 1 1 320px;
	max-width: 560px;
	font-size: 16px;
}

.cee-faq-index__count {
	font-size: 14px;
	color: var(--cee-faq-muted);
}

.cee-faq-index__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.cee-faq-index .cee-faq-index__cats a {
	padding: 4px 12px;
	border: 1px solid var(--cee-faq-line);
	border-radius: 999px;
	font-size: 14px;
	text-decoration: none;
}

.cee-faq-cat {
	margin-bottom: 32px;
}

.cee-faq-cat__title {
	font-size: 1.4em;
	margin: 0 0 14px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--cee-faq-accent);
	color: inherit;
}

.cee-faq-topics {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}

.cee-faq-topic {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid var(--cee-faq-line);
	border-radius: 8px;
	background: var(--cee-faq-surface);
}

.cee-faq-topic[hidden] {
	display: none;
}

.cee-faq-index .cee-faq-topic__open {
	align-self: flex-start;
	margin-top: auto;
	padding: 6px 16px;
	border-radius: 4px;
	background: var(--cee-faq-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.cee-faq-index .cee-faq-topic__open:hover,
.cee-faq-index .cee-faq-topic__open:focus-visible {
	background: color-mix(in srgb, var(--cee-faq-accent) 85%, #000);
	color: #fff;
}

.cee-faq-index .cee-faq-topic__title {
	display: block;
	font-weight: 700;
	font-size: 1.1em;
	text-decoration: none;
}

.cee-faq-topic__summary {
	margin: 6px 0 8px;
	font-size: 14px;
	color: var(--cee-faq-muted);
}

/* Topic page */
.cee-faq-crumbs,
.cee-faq-meta {
	font-size: 14px;
	color: var(--cee-faq-muted);
	margin: 0 0 12px;
}

.cee-faq-toc,
.cee-faq-ask {
	margin: 0 0 24px;
	padding: 14px 18px;
	border: 1px solid var(--cee-faq-line);
	border-radius: 8px;
	background: var(--cee-faq-surface);
}

.cee-faq-toc__title,
.cee-faq-related__title {
	font-weight: 700;
	margin: 0 0 6px;
}

.cee-faq-toc ol {
	margin: 0 0 0 20px;
	padding: 0;
}

.cee-faq-toggle-all {
	margin-top: 10px;
}

.cee-faq-intro {
	margin-bottom: 8px;
}

.cee-faq-q {
	scroll-margin-top: 120px;
	border-bottom: 1px solid var(--cee-faq-line);
}

.cee-faq-article .cee-faq-q__title {
	font-size: 1.2em;
	margin: 0;
	padding: 14px 0;
	color: inherit;
}

/* Reset the theme's button styling for the question toggles (the theme's red button rule wins without !important). */
.cee-faq-article .cee-faq-q__button,
.cee-faq-article .cee-faq-q__button:hover,
.cee-faq-article .cee-faq-q__button:focus,
.cee-faq-article .cee-faq-q__button:active {
	display: flex !important;
	width: 100% !important;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
	text-align: left;
	line-height: 1.35;
	cursor: pointer;
}

.cee-faq-article .cee-faq-q__button::after {
	content: "+";
	flex: 0 0 auto;
	font-weight: 400;
	font-size: 1.4em;
	line-height: 0.9;
	color: var(--cee-faq-accent);
}

.cee-faq-article .cee-faq-q.is-open .cee-faq-q__button::after {
	content: "\2212";
}

.cee-faq-article .cee-faq-q__button:focus-visible {
	outline: 2px solid var(--cee-faq-accent);
	outline-offset: 4px;
}

.cee-faq-q__answer {
	padding-bottom: 12px;
}

.cee-faq-q__answer img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	background: #fff;
}

.cee-faq-q__answer table {
	border-collapse: collapse;
	margin: 12px 0;
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.cee-faq-q__answer th,
.cee-faq-q__answer td {
	border: 1px solid var(--cee-faq-line);
	padding: 6px 10px;
	text-align: left;
}

.cee-faq-q__answer pre {
	overflow-x: auto;
	background: var(--cee-faq-surface);
	padding: 10px;
}

/* The theme styles inline code small and red; keep it readable inside answers. */
.cee-faq-article .cee-faq-body code {
	font-size: 0.95em;
	color: inherit;
	background: var(--cee-faq-surface);
	padding: 1px 5px;
	border-radius: 3px;
}

.cee-faq-related {
	margin: 28px 0 20px;
}

.cee-faq-related ul {
	margin: 0 0 0 20px;
	padding: 0;
}

.cee-faq-ask {
	margin-top: 8px;
}
