/**
 * Design Compass Knowledge Hub front-end styles.
 * Neutral, inherits the theme's Inter font and colours. Answer-first layout.
 */

.dc-aeo-hub__inner,
.dc-aeo-answer {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}

.dc-aeo-hub__inner {
	padding: 48px 20px 72px;
}

.dc-aeo-hub__header h1 {
	margin: 0 0 12px;
}

.dc-aeo-hub__lead {
	font-size: 1.125rem;
	line-height: 1.6;
	opacity: 0.85;
	margin: 0 0 8px;
}

.dc-aeo-section {
	margin-top: 56px;
}

.dc-aeo-section > h2 {
	margin: 0 0 20px;
	padding-bottom: 8px;
	border-bottom: 2px solid currentColor;
	border-image: linear-gradient(90deg, #f08c00, transparent) 1;
}

.dc-aeo-ring {
	margin: 28px 0 12px;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.7;
}

/* Card grid */
.dc-aeo-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.dc-aeo-card {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	padding: 16px 18px;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.dc-aeo-card:hover {
	border-color: #f08c00;
	transform: translateY(-2px);
}

.dc-aeo-card__title {
	display: block;
	font-weight: 600;
	text-decoration: none;
	margin-bottom: 6px;
}

.dc-aeo-card__answer {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	opacity: 0.78;
}

/* FAQ accordion */
.dc-aeo-faq__item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	padding: 6px 0;
}

.dc-aeo-faq__item summary {
	cursor: pointer;
	font-weight: 600;
	padding: 12px 0;
	list-style: none;
}

.dc-aeo-faq__item summary::-webkit-details-marker {
	display: none;
}

.dc-aeo-faq__item summary::before {
	content: "+";
	display: inline-block;
	width: 1.2em;
	color: #f08c00;
	font-weight: 700;
}

.dc-aeo-faq__item[open] summary::before {
	content: "\2212"; /* minus */
}

.dc-aeo-faq__answer {
	padding: 0 0 16px 1.2em;
	line-height: 1.6;
}

.dc-aeo-faq__lead {
	font-weight: 600;
}

.dc-aeo-faq__more a {
	font-size: 0.9rem;
}

/* Enclose single entries in a centred, fixed-width column with the normal
   site header/footer chrome, matching the hub archive and the standard
   content pages (privacy, terms). Without this the theme's full-width
   .site-main lets the title, answer block, and body text run edge-to-edge. */
.single-dcaeo_entry .site-main {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
	padding: 48px 20px 72px;
	box-sizing: border-box;
}

.single-dcaeo_entry .page-header {
	margin: 0 0 8px;
}

/* Answer-first block on single entries */
.dc-aeo-answer {
	background: rgba(240, 140, 0, 0.08);
	border-left: 4px solid #f08c00;
	border-radius: 0 8px 8px 0;
	padding: 16px 20px;
	margin: 0 0 28px;
}

.dc-aeo-answer__lead {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.6;
	font-weight: 500;
}

.dc-aeo-question {
	margin: 0 0 6px;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.65;
}

/* Tables inside comparisons */
.dc-aeo-hub table,
.entry-content table {
	border-collapse: collapse;
	width: 100%;
	margin: 20px 0;
}

.dc-aeo-hub th,
.dc-aeo-hub td,
.entry-content table th,
.entry-content table td {
	border: 1px solid rgba(0, 0, 0, 0.15);
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}

/* Dark theme support (project convention) */
[data-theme="dark"] .dc-aeo-card,
[data-theme="dark"] .dc-aeo-faq__item,
[data-theme="dark"] .dc-aeo-hub th,
[data-theme="dark"] .dc-aeo-hub td {
	border-color: rgba(255, 255, 255, 0.18);
}
