/* AltCodeWP — Accordion List Content Widget */

.alc-accordion {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
}

.alc-item {
	border: 1px solid transparent;
	border-radius: 8px;
	overflow: hidden;
}

/* ── Header ───────────────────────────────────────────── */
.alc-header-tag {
	margin: 0;
	padding: 0;
	font: inherit;
}

.alc-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 14px 20px;
	background-color: #e8eef7;
	color: #16294d;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	text-align: left;
	font: inherit;
	transition: background-color 0.18s ease;
}

.alc-header:focus { outline: none; }

.alc-header:focus-visible {
	outline: 2px solid #16294d;
	outline-offset: 2px;
}

.alc-header-left {
	font-size: 1rem;
	font-weight: 700;
	color: #16294d;
	flex: 1 1 auto;
	min-width: 0;
}

.alc-header-right {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #16294d;
	flex: 0 0 auto;
	white-space: nowrap;
}

.alc-header-arrow {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	color: #16294d;
	transition: transform 0.25s ease;
}

.alc-header[aria-expanded="true"] .alc-header-arrow {
	transform: rotate(180deg);
}

/* ── Panel (animated height shell) ────────────────────── */
.alc-panel {
	width: 100%;
	height: 0;
	overflow: hidden;
	box-sizing: border-box;
	transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alc-panel[hidden] { display: none; }

.alc-panel-inner {
	padding: 6px 20px;
	background: #ffffff;
	box-sizing: border-box;
}

/* ── Content rows ─────────────────────────────────────── */
.alc-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #eef0f4;
}

.alc-row:last-child { border-bottom: none; }

.alc-row-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	font-size: 18px;
	line-height: 1.5;
	color: #16294d;
	margin-top: 1px;
}

.alc-row-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.alc-row-content {
	flex: 1 1 auto;
	min-width: 0;
	color: #374151;
	line-height: 1.6;
}

.alc-row-content > :first-child { margin-top: 0; }
.alc-row-content > :last-child  { margin-bottom: 0; }

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
	.alc-panel { transition: none; }
	.alc-header-arrow { transition: none; }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 480px) {
	.alc-header {
		flex-wrap: wrap;
		gap: 0.25rem 0.75rem;
	}
	.alc-header-right { order: 3; width: 100%; }
}
