/**
 * Contento AI Optimizer — front-end styles.
 *
 * Intentionally restrained and theme-agnostic: neutral surfaces, a single
 * accent, system fonts inherited from the theme. Namespaced under
 * .contento- so it will not collide with theme styles.
 *
 * @package Contento_AI_Optimizer
 */

.contento-block {
	margin: 1.5em 0;
	padding: 1.1em 1.25em;
	border: 1px solid #e4e7ec;
	border-radius: 10px;
	background: #f9fafb;
	color: inherit;
}

.contento-block-title {
	font-size: 0.95em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 0.5em;
	color: #475467;
}

/* ---------------------------------------------------------------
 * TL;DR  (also the default speakable target)
 * --------------------------------------------------------------- */
.contento-tldr {
	border-left: 4px solid #2563eb;
	background: #eff4ff;
}

.contento-tldr p {
	margin: 0;
	font-size: 1.05em;
	line-height: 1.55;
}

/* ---------------------------------------------------------------
 * Key takeaways
 * --------------------------------------------------------------- */
.contento-takeaways ul {
	margin: 0;
	padding-left: 1.2em;
}

.contento-takeaways li {
	margin: 0.3em 0;
	line-height: 1.5;
}

/* ---------------------------------------------------------------
 * FAQ accordion (native <details>)
 * --------------------------------------------------------------- */
.contento-faq {
	padding-bottom: 0.4em;
}

.contento-faq-item {
	border-top: 1px solid #e4e7ec;
	padding: 0.2em 0;
}

.contento-faq-item:first-of-type {
	border-top: none;
}

.contento-faq-q {
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	padding: 0.7em 1.6em 0.7em 0;
	position: relative;
	line-height: 1.4;
}

.contento-faq-q::-webkit-details-marker {
	display: none;
}

.contento-faq-q::after {
	content: "+";
	position: absolute;
	right: 0.2em;
	top: 50%;
	transform: translateY(-50%);
	font-weight: 400;
	font-size: 1.3em;
	color: #667085;
	transition: transform 0.15s ease;
}

.contento-faq-item[open] > .contento-faq-q::after {
	content: "\2013"; /* en dash */
}

.contento-faq-a {
	padding: 0 0 0.9em;
	line-height: 1.6;
}

.contento-faq-a p:first-child {
	margin-top: 0;
}

.contento-faq-a p:last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------
 * Dark-theme courtesy adjustments
 * --------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
	.contento-block {
		background: rgba(255, 255, 255, 0.04);
		border-color: rgba(255, 255, 255, 0.12);
	}

	.contento-tldr {
		background: rgba(37, 99, 235, 0.12);
	}

	.contento-block-title {
		color: #98a2b3;
	}

	.contento-faq-item {
		border-color: rgba(255, 255, 255, 0.12);
	}
}
