/* ============================================================
   Custom Accordion Widget v2 — accordion.css
   Per-item border colours are driven by CSS custom properties
   set inline on each .caw-item — no per-item <style> tags needed.
   ============================================================ */

.caw-wrap {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

/* Item — idle border comes from --caw-border-idle */
.caw-item {
	border: 1px solid #e0e0e0;
	border-left-width: 4px;
	border-left-style: solid;
	border-left-color: var(--caw-border-idle, #e0e0e0);
	border-radius: 12px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
	transition: border-left-color 0.2s ease;
}

/* Active — switch to --caw-border-active */
.caw-item.caw-active {
	border-left-color: var(--caw-border-active, #10b981);
}

/* Header */
.caw-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	cursor: pointer;
	user-select: none;
	background: #ffffff;
	transition: background-color 0.15s ease;
}

.caw-header:hover { background-color: rgba(0,0,0,0.02); }
.caw-header:focus-visible { outline: 2px solid #10b981; outline-offset: -2px; }

/* Number badge */
.caw-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
	transition: background-color 0.2s ease;
}

/* Title */
.caw-title {
	flex: 1;
	font-size: 15px;
	font-weight: 700;
	color: #1a1a2e;
	line-height: 1.4;
}

/* Toggle icon */
.caw-icon {
	font-size: 16px;
	color: #1a1a2e;
	transition: transform 0.25s ease;
	flex-shrink: 0;
}
.caw-item.caw-active .caw-icon { transform: rotate(180deg); }

/* Body */
.caw-body {
	padding: 20px 24px;
	border-top: 1px solid #f0f0f0;
	background: #ffffff;
}
.caw-body[hidden] { display: none; }

/* Subtitle */
.caw-subtitle {
	font-size: 14px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 10px;
	line-height: 1.5;
}

/* Description */
.caw-desc {
	font-size: 13px;
	color: #444;
	line-height: 1.75;
	margin: 0 0 14px;
}
.caw-desc:last-child { margin-bottom: 0; }

/* Focus label */
.caw-focus-label {
	font-size: 13px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 8px;
}

/* Bullets */
.caw-bullets {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.caw-bullet-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: #444;
	line-height: 1.6;
}
.caw-bullet-icon {
	color: #10b981;
	font-weight: 700;
	flex-shrink: 0;
	margin-top: 1px;
}

/* Fade-in animation */
@media (prefers-reduced-motion: no-preference) {
	.caw-body { animation: caw-fade-in 0.2s ease; }
	@keyframes caw-fade-in {
		from { opacity: 0; transform: translateY(-4px); }
		to   { opacity: 1; transform: translateY(0); }
	}
}
