/**
 * AI Post Creator — front-end styles for generated posts.
 */

.aipc-toc {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px 22px;
	margin: 1.5em 0;
}

.aipc-toc-title {
	font-weight: 700;
	margin: 0 0 8px;
	font-size: 1.05em;
}

.aipc-toc ul {
	margin: 0;
	padding-inline-start: 1.2em;
}

.aipc-toc li {
	margin: 4px 0;
}

.aipc-toc a {
	text-decoration: none;
}

.aipc-toc a:hover {
	text-decoration: underline;
}

/* Dark mode: the theme toggles [data-theme="dark"] on <html> (not just OS
   prefers-color-scheme), and its text color already follows that toggle —
   only the box's fixed light background/border needs to switch too, or
   the theme's light-colored dark-mode text becomes unreadable on it. */
[data-theme="dark"] .aipc-toc {
	background: var(--hb-surface-container, #1f2937);
	border-color: var(--hb-outline-variant, #3f3f46);
}

@media (prefers-color-scheme: dark) {
	.aipc-toc {
		background: var(--hb-surface-container, #1f2937);
		border-color: var(--hb-outline-variant, #3f3f46);
	}
}

/* FAQ accordion — native <details>/<summary>, no JavaScript (v1.35.0). */
.aipc-faq {
	margin: 1.75em 0;
}

.aipc-faq .faq-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.aipc-faq .faq-item {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
}

.aipc-faq .faq-question {
	cursor: pointer;
	font-weight: 700;
	line-height: 1.5;
	list-style: none;
	padding: 14px 46px 14px 18px;
	position: relative;
}

.aipc-faq .faq-question::-webkit-details-marker {
	display: none;
}

.aipc-faq .faq-question::after {
	content: "+";
	font-size: 1.35em;
	font-weight: 400;
	inset-inline-end: 18px;
	line-height: 1;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.aipc-faq .faq-item[open] .faq-question {
	background: #f8fafc;
}

.aipc-faq .faq-item[open] .faq-question::after {
	content: "\2212";
}

.aipc-faq .faq-question:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: -2px;
}

.aipc-faq .faq-answer {
	padding: 0 18px 16px;
}

.aipc-faq .faq-answer > :first-child {
	margin-top: 0;
}

.aipc-faq .faq-answer > :last-child {
	margin-bottom: 0;
}

@media (prefers-color-scheme: dark) {
	.aipc-faq .faq-item {
		background: transparent;
		border-color: #3f3f46;
	}

	.aipc-faq .faq-item[open] .faq-question {
		background: rgba(255, 255, 255, 0.04);
	}
}

/* E-E-A-T editorial verification & sources box (1.40.0) */
.aipc-eeat-box {
	margin: 2rem 0 1.25rem;
	padding: 1rem 1.25rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-inline-start: 4px solid #16a34a;
	border-radius: 10px;
	background: rgba(22, 163, 74, 0.04);
	font-size: 0.92rem;
	line-height: 1.7;
}
.aipc-eeat-badge {
	font-weight: 700;
	color: #15803d;
}
.aipc-eeat-refs {
	margin-top: 0.65rem;
	padding-top: 0.65rem;
	border-top: 1px dashed rgba(0, 0, 0, 0.12);
}
.aipc-eeat-sources {
	margin: 0.35rem 0 0;
	padding-inline-start: 1.25rem;
}

/* Pillar–Cluster navigation box (1.41.0) */
.aipc-cluster-box {
	margin: 2rem 0;
	padding: 1.15rem 1.35rem;
	border: 1px solid rgba(37, 99, 235, 0.22);
	border-inline-start: 4px solid #2563eb;
	border-radius: 10px;
	background: rgba(37, 99, 235, 0.04);
}
.aipc-cluster-title {
	margin: 0 0 0.65rem;
	font-size: 1.05rem;
	font-weight: 700;
}
.aipc-cluster-list {
	margin: 0;
	padding-inline-start: 1.25rem;
}
.aipc-cluster-list li {
	margin: 0.3rem 0;
}
