/* Cream Toggle Card */
.ctc-card {
	--ctc-bg: #faf6ec;
	--ctc-text: #3b3128;
	--ctc-accent: #8a5a2b;
	--ctc-accent-hover: #5e3a17;
	--ctc-border: rgba(138, 90, 43, 0.18);

	box-sizing: border-box;
	max-width: 760px;
	margin: 1.5em auto;
	padding: 28px 32px 22px;
	background: var(--ctc-bg);
	color: var(--ctc-text);
	border: 1px solid var(--ctc-border);
	border-radius: 14px;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.12);
	font-family: "Open Sans", sans-serif;
	font-size: 1rem;
	line-height: 1.7;
}

.ctc-card *,
.ctc-card *::before,
.ctc-card *::after {
	box-sizing: border-box;
}

.ctc-card .ctc-intro p,
.ctc-card .ctc-panel-inner p {
	margin: 0 0 1.2em !important;
	padding: 0;
	color: inherit;
}

.ctc-card .ctc-intro p:last-child,
.ctc-card .ctc-panel-inner p:last-child {
	margin-bottom: 0 !important;
}

.ctc-intro > :last-child,
.ctc-panel-inner > :last-child {
	margin-bottom: 0;
}

/* Smooth height animation via grid rows (no JS measuring needed) */
.ctc-panel {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.35s ease;
}

.ctc-panel-inner {
	overflow: hidden;
	min-height: 0;
	padding-top: 0;
	transition: padding-top 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.ctc-card.is-open .ctc-panel {
	grid-template-rows: 1fr;
	opacity: 1;
}

.ctc-card.is-open .ctc-panel-inner {
	padding-top: 1em;
}

.ctc-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	color: var(--ctc-accent);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.2s ease;
}

.ctc-toggle:hover,
.ctc-toggle:focus-visible {
	color: var(--ctc-accent-hover);
	background: none;
}

.ctc-toggle:focus-visible {
	outline: 2px solid var(--ctc-accent);
	outline-offset: 4px;
	border-radius: 4px;
}

.ctc-arrow {
	flex: none;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.ctc-toggle:hover .ctc-arrow {
	transform: translateY(2px);
}

.ctc-toggle[aria-expanded="true"]:hover .ctc-arrow {
	transform: rotate(180deg) translateY(2px);
}

@media (max-width: 600px) {
	.ctc-card {
		padding: 22px 20px 18px;
		border-radius: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ctc-panel,
	.ctc-panel-inner,
	.ctc-arrow {
		transition: none;
	}
}
