/* ==========================================================================
   Front end — the accordion itself
   ========================================================================== */

.accrd-accordion {
	--accrd-from: #6366f1; /* indigo */
	--accrd-to: #ec4899; /* pink */
	--accrd-tint: #f8f7ff;

	border: 1px solid #ececf5;
	border-radius: 16px;
	margin: 1.2em 0;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(30, 20, 70, 0.06);
	transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.accrd-accordion:hover {
	border-color: #ddd9f7;
	box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
	transform: translateY(-1px);
}

.accrd-accordion[open] {
	border-color: transparent;
	box-shadow: 0 10px 30px rgba(99, 102, 241, 0.18);
}

.accrd-summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 1em;
	padding: 1.05em 1.3em;
	font-weight: 700;
	font-size: 1.05em;
	line-height: 1.45;
	color: #1e1b3a;
	background: #fff;
	transition: background 0.2s ease;
	position: relative;
}

/* colorful accent bar down the left edge */
.accrd-summary::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 5px;
	background: linear-gradient(180deg, var(--accrd-from), var(--accrd-to));
	opacity: 0;
	transition: opacity 0.2s ease;
}

.accrd-accordion[open] > .accrd-summary::before,
.accrd-summary:hover::before {
	opacity: 1;
}

.accrd-accordion[open] > .accrd-summary {
	background: linear-gradient(90deg, var(--accrd-tint), #fff 65%);
}

.accrd-summary:hover {
	background: #fafaff;
}

.accrd-summary::-webkit-details-marker {
	display: none;
}

.accrd-summary::marker {
	content: "";
}

.accrd-summary-text {
	flex: 1 1 auto;
}

/* the round gradient +/- toggle button */
.accrd-icon {
	position: relative;
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accrd-from), var(--accrd-to));
	box-shadow: 0 3px 8px rgba(99, 102, 241, 0.35);
	transition: transform 0.3s ease, box-shadow 0.2s ease;
}

.accrd-summary:hover .accrd-icon {
	box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.accrd-accordion[open] .accrd-icon {
	transform: rotate(180deg);
}

.accrd-icon::before,
.accrd-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: #fff;
	border-radius: 2px;
}

.accrd-icon::before {
	width: 13px;
	height: 2px;
	transform: translate(-50%, -50%);
}

.accrd-icon::after {
	width: 2px;
	height: 13px;
	transform: translate(-50%, -50%);
	transition: transform 0.25s ease;
}

.accrd-accordion[open] .accrd-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.accrd-body {
	padding: 0.2em 1.3em 1.4em;
	color: #3f3d56;
	line-height: 1.75;
	background: linear-gradient(180deg, var(--accrd-tint), #fff 40%);
	animation: accrd-fade-in 0.25s ease;
}

.accrd-body > *:first-child {
	margin-top: 0;
}

.accrd-body > *:last-child {
	margin-bottom: 0;
}

.accrd-body img {
	border-radius: 10px;
}

.accrd-body a {
	color: var(--accrd-from);
	text-decoration-color: rgba(99, 102, 241, 0.35);
}

@keyframes accrd-fade-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.accrd-accordion,
	.accrd-summary,
	.accrd-icon,
	.accrd-icon::after,
	.accrd-body {
		animation: none !important;
		transition: none !important;
	}
}

/* ==========================================================================
   Editor — colorful, unmistakable, easy to select/delete
   ========================================================================== */

.accrd-editor-marker {
	border-radius: 12px;
	padding: 0.9em 1.15em 1.05em;
	margin: 6px 0;
	cursor: pointer;
	transition: box-shadow 0.15s ease, transform 0.1s ease;
	border: none;
}

.accrd-editor-start {
	background: linear-gradient(135deg, #eef0ff 0%, #fdf2ff 100%);
	box-shadow: inset 0 0 0 1.5px rgba(99, 102, 241, 0.35);
}

.accrd-editor-end {
	background: linear-gradient(135deg, #fff4ed 0%, #fff0f5 100%);
	box-shadow: inset 0 0 0 1.5px rgba(244, 114, 76, 0.35);
	text-align: center;
}

.accrd-editor-marker:hover {
	box-shadow: 0 4px 14px rgba(30, 30, 60, 0.12), inset 0 0 0 1.5px rgba(99, 102, 241, 0.4);
	transform: translateY(-1px);
}

.accrd-editor-end:hover {
	box-shadow: 0 4px 14px rgba(30, 30, 60, 0.12), inset 0 0 0 1.5px rgba(244, 114, 76, 0.45);
}

.accrd-editor-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 4px 12px 4px 8px;
	border-radius: 999px;
	color: #fff;
	background: linear-gradient(135deg, #6366f1, #ec4899);
	box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}

.accrd-editor-end .accrd-editor-badge {
	background: linear-gradient(135deg, #f97316, #ec4899);
	box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35);
}

.accrd-editor-badge .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
}

.accrd-editor-heading-input {
	font-size: 17px;
	font-weight: 700;
	color: #1e1b3a;
	margin-top: 12px;
	min-height: 1.4em;
}

.accrd-editor-hint {
	margin: 10px 0 0;
	font-size: 11.5px;
	font-style: italic;
	color: #6b6b7b;
}
