/* DWICA Accordion — styles for the native details element.
   Colours are CSS variables so a theme can override them:
   .dwica-faq { --faq-accent: rebeccapurple; }                     */

.dwica-faq {
	--faq-bg: #ffffff;
	--faq-ink: #14282f;
	--faq-body: #37474f;
	--faq-accent: #0f8a80;      /* reef teal  */
	--faq-radius: 12px;
}

.dwica-faq details {
	background: var(--faq-bg);
	color: var(--faq-ink);
	border-radius: var(--faq-radius);
	box-shadow: 0 2px 8px rgba(20, 40, 47, 0.07);
	margin-bottom: 12px;
	overflow: hidden;
}

.dwica-faq summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 1rem;
	padding: 15px 20px;
	list-style: none;               /* remove default marker…      */
	position: relative;
	padding-right: 44px;
}

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

/* …and draw our own chevron */
.dwica-faq summary::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	width: 9px;
	height: 9px;
	border-right: 2.5px solid var(--faq-accent);
	border-bottom: 2.5px solid var(--faq-accent);
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.15s ease;
}

.dwica-faq details[open] summary::after {
	transform: translateY(-30%) rotate(225deg);
}

.dwica-faq summary:hover,
.dwica-faq summary:focus-visible {
	color: var(--faq-accent);
}

.dwica-faq details > *:not(summary) {
	padding: 0 20px 16px;
	color: var(--faq-body);
	line-height: 1.55;
}

.dwica-faq details p { margin: 0 0 0.6em; }
.dwica-faq details p:last-child { margin-bottom: 0; }
