/* ComfyOffice Children — cards + section list */

.comfy-child-cards {
	--comfy-cols: 4;
	--comfy-gap: 1.25rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--comfy-gap);
	margin: 1.5rem 0 3rem;
}
.comfy-child-cards > .comfy-child-card {
	flex: 0 1 calc((100% - (var(--comfy-cols) - 1) * var(--comfy-gap)) / var(--comfy-cols));
	max-width: calc((100% - (var(--comfy-cols) - 1) * var(--comfy-gap)) / var(--comfy-cols));
}
@media (max-width: 900px) {
	.comfy-child-cards { --comfy-cols: 3; }
}
@media (max-width: 640px) {
	.comfy-child-cards { --comfy-cols: 2; }
}

.comfy-child-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.comfy-child-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}
.comfy-child-card__img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: #f7f7f5;
	border-radius: 10px 10px 0 0;
}
.comfy-child-card__title {
	display: block;
	padding: 0.7rem 0.85rem 1rem;
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.35;
	color: #1a1a1a;
	text-decoration: none;
	white-space: normal;
	overflow: visible;
	word-break: break-word;
}
.comfy-child-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

/* Section list — same tokens as Comfy Section */
.comfy-child-sections {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
}
.comfy-child-sections .comfy-section {
	--cs-cream: #f8f7f4;
	--cs-sage-soft: #e8ede3;
	--cs-sage-muted: #6b7c5e;
	--cs-heading: #540d5e;
	--cs-text: #3f3f3f;
	--cs-sage-deep: #5f7352;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 5rem 1.5rem;
	background: var(--cs-cream);
	color: var(--cs-text);
}
.comfy-child-sections .comfy-section--bg-cream { background: #f8f7f4; }
.comfy-child-sections .comfy-section--bg-white { background: #ffffff; }
.comfy-child-sections .comfy-section--bg-sage-soft { background: #e8ede3; }
.comfy-child-sections .comfy-section__inner {
	max-width: 1180px;
	margin: 0 auto;
}
.comfy-child-sections .comfy-section__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 3.5rem 5rem;
}
.comfy-child-sections .comfy-section__content {
	flex: 1 1 280px;
	max-width: 48%;
	text-align: left;
}
.comfy-child-sections .comfy-section__media {
	flex: 1 1 300px;
	max-width: 52%;
}
.comfy-child-sections .comfy-section--media-left .comfy-section__content { order: 2; }
.comfy-child-sections .comfy-section--media-left .comfy-section__media { order: 1; }
.comfy-child-sections .comfy-section__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cs-sage-muted);
}
.comfy-child-sections .comfy-section__heading {
	margin: 0 0 0.85rem;
	font-size: clamp(1.75rem, 3vw, 2.4rem);
	font-weight: 600;
	line-height: 1.2;
	color: var(--cs-heading);
	text-align: left;
}
.comfy-child-sections .comfy-section__heading a {
	color: inherit;
	text-decoration: none;
}
.comfy-child-sections .comfy-section__text {
	margin: 0;
	max-width: 42rem;
	text-align: left;
	line-height: 1.65;
}
.comfy-child-sections .comfy-section__actions { margin-top: 1.75rem; }
.comfy-child-sections .comfy-section__button {
	display: inline-block;
	padding: 0.85rem 1.6rem;
	border-radius: 8px;
	background: var(--cs-sage-deep);
	color: #fff;
	text-decoration: none;
	font-weight: 500;
}
.comfy-child-sections .comfy-section__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	object-fit: cover;
}
@media (max-width: 800px) {
	.comfy-child-sections .comfy-section__text {
		font-size: 1.15rem;
		line-height: 1.65;
	}
	.comfy-child-sections .comfy-section__content,
	.comfy-child-sections .comfy-section__media {
		max-width: none;
		flex: 1 1 100%;
	}
	.comfy-child-sections .comfy-section--media-left .comfy-section__content,
	.comfy-child-sections .comfy-section--media-left .comfy-section__media {
		order: unset;
	}
}
