/* ==========================================================================
   Single post: two column layout, table of contents and side card
   ========================================================================== */
.oqa-single {
	padding: 60px 0 80px;
	background: #fcfaf6;
}

.oqa-single__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
	gap: 60px;
	max-width: calc(1180px + (var(--oqa-gutter) * 2));
}

.oqa-single__article {
	min-width: 0;
}

.oqa-single__side {
	position: sticky;
	top: calc(var(--oqa-header-h) + 24px);
	display: grid;
	gap: 22px;
}

/* Table of contents */
.oqa-toc {
	padding: 22px 22px 18px;
	background: var(--oqa-white);
	border: 1px solid rgba(69, 47, 95, 0.08);
	border-radius: 20px;
	box-shadow: 0 10px 26px rgba(42, 29, 58, 0.06);
}

.oqa-toc__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	font-family: var(--oqa-font-heading);
	font-size: 18px;
	font-weight: 700;
	color: var(--oqa-green-900);
}

.oqa-toc__title > .oqa-icon {
	font-size: 18px;
	color: var(--oqa-gold-600);
}

.oqa-toc__list {
	display: grid;
	gap: 2px;
	max-height: 50vh;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	counter-reset: toc;
}

.oqa-toc__item a,
.oqa-toc__item a:visited {
	display: block;
	padding: 8px 12px;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--oqa-muted);
	text-decoration: none;
	border-left: 2px solid rgba(69, 47, 95, 0.1);
	transition: color 0.2s var(--oqa-ease), border-color 0.2s var(--oqa-ease), background 0.2s var(--oqa-ease);
}

.oqa-toc__item--h3 a {
	padding-left: 26px;
	font-size: 13.5px;
}

.oqa-toc__item a:hover {
	color: var(--oqa-green-800);
	background: #f8f4ea;
}

.oqa-toc__item a.is-active {
	font-weight: 700;
	color: var(--oqa-green-900);
	border-left-color: var(--oqa-gold-500);
	background: #fbf6ea;
}

.oqa-toc--inline {
	display: none;
	margin-bottom: 30px;
}

.oqa-toc--inline .oqa-toc__title {
	margin: 0;
	list-style: none;
	cursor: pointer;
}

.oqa-toc--inline .oqa-toc__title::-webkit-details-marker {
	display: none;
}

.oqa-toc__chev {
	display: inline-flex;
	margin-left: auto;
	font-size: 16px;
	transition: transform 0.25s var(--oqa-ease);
}

.oqa-toc--inline[open] .oqa-toc__chev {
	transform: rotate(180deg);
}

.oqa-toc--inline[open] .oqa-toc__list {
	margin-top: 12px;
	max-height: none;
}

/* Side call to action */
.oqa-sidecta {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 26px 24px 22px;
	color: var(--oqa-white);
	background:
		radial-gradient(ellipse at 20% 0%, rgba(88, 61, 118, 0.55) 0%, rgba(88, 61, 118, 0) 60%),
		linear-gradient(160deg, var(--oqa-green-800) 0%, var(--oqa-green-950) 100%);
	border: 1px solid rgba(232, 196, 118, 0.35);
	border-radius: 20px;
}

.oqa-single .oqa-sidecta__mandala {
	position: absolute;
	right: -90px;
	top: -90px;
	width: 220px;
	height: 220px;
	color: rgba(232, 196, 118, 0.2);
}

.oqa-sidecta > *:not(.oqa-sidecta__mandala) {
	position: relative;
}

.oqa-sidecta__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	margin-bottom: 14px;
	font-size: 24px;
	color: var(--oqa-green-900);
	background: linear-gradient(180deg, var(--oqa-gold-300) 0%, var(--oqa-gold-500) 100%);
	border-radius: 16px;
}

.oqa-sidecta strong {
	font-family: var(--oqa-font-heading);
	font-size: 20px;
	line-height: 1.25;
}

.oqa-sidecta p {
	margin: 8px 0 18px;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
}

.oqa-sidecta__wa,
.oqa-sidecta__wa:visited {
	display: inline-flex;
	align-items: center;
	align-self: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--oqa-white);
	text-decoration: none;
}

.oqa-sidecta__wa .oqa-icon {
	font-size: 18px;
	color: var(--oqa-whatsapp);
}

.oqa-sidecta__wa:hover {
	color: var(--oqa-gold-400);
}

@media (max-width: 1080px) {
	.oqa-single__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
		max-width: 820px;
	}

	.oqa-single__side {
		position: static;
	}

	.oqa-toc--side {
		display: none;
	}

	.oqa-toc--inline {
		display: block;
	}
}

@media (max-width: 767px) {
	.oqa-single {
		padding: 40px 0 60px;
	}
}
