/* Info Pages layout */

.cip-wrap {
	display: flex;
	align-items: flex-start;
	max-width: 1100px;
	margin: 0 auto;
	font-family: inherit;
	box-sizing: border-box;
	/* gap, background, radius, padding, shadow are set dynamically from Settings */
}

.cip-wrap * {
	box-sizing: border-box;
}

/* ---------- Sidebar (sticky, divider list, underline-style active state) ---------- */

.cip-sidebar {
	flex: 0 0 auto;
	position: sticky;
	top: 32px; /* fallback; JS sets this dynamically to sit below any sticky header */
	align-self: flex-start;
}

.cip-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cip-sidebar-item {
	margin: 0 0 14px 0;
	padding-bottom: 14px;
	/* border-bottom (divider) color is set dynamically from Settings */
}

.cip-sidebar-item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
}

.cip-sidebar-item a {
	display: inline-block;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	padding-bottom: 6px;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.cip-sidebar-item.cip-active a {
	font-weight: 700;
}

/* ---------- Content (vertical divider from sidebar set dynamically) ---------- */

.cip-content {
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
}

.cip-tab-panel {
	display: none;
}

.cip-tab-panel.cip-panel-active {
	display: block;
	animation: cip-fade-in 0.15s ease;
}

@keyframes cip-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.cip-featured-image {
	margin-bottom: 24px;
}

.cip-featured-image img {
	width: 100%;
	height: auto;
	display: block;
	/* max-width and border-radius are set dynamically from Settings (default 320px) */
}

.cip-title {
	margin: 0 0 16px 0;
	font-size: 22px;
	font-weight: 700;
}

.cip-description {
	line-height: 1.75;
	margin-bottom: 28px;
}

.cip-description p {
	margin: 0 0 16px 0;
}

.cip-description ul,
.cip-description ol {
	margin: 0 0 16px 24px;
}

.cip-button {
	display: inline-block;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* ---------- Responsive ---------- */

@media (max-width: 782px) {
	.cip-wrap {
		flex-direction: column;
	}
	.cip-sidebar {
		position: static;
		width: 100% !important;
	}
	.cip-sidebar-list {
		display: flex;
		flex-wrap: wrap;
		gap: 12px 20px;
	}
	.cip-sidebar-item {
		margin: 0;
		padding-bottom: 0;
		border-bottom: none !important;
	}
}
