/* =============================================================
   Tool pages — layout wrapper + responsive rules for the planners.
   Loaded together with tools.css, only on tool pages and the tools hub.
   ============================================================= */

.lhm-tool-page .lhm-section { padding: 0 0 var(--lhm-space-7); background: transparent; }
.lhm-tool-intro { color: #3c4540; font-size: 1.125rem; max-width: 62ch; margin: 0; }
.lhm-tool-body { padding-bottom: var(--lhm-space-6); }
.lhm-tool-aside { max-width: var(--lhm-read-w); margin: 0 auto var(--lhm-space-6); }
.lhm-tool-related { margin-top: var(--lhm-space-6); }

.lhm-medical-disclaimer {
	margin-top: var(--lhm-space-4);
	padding: 14px 18px;
	background: var(--lhm-sage-soft);
	border: 1px solid rgba(168, 185, 161, .6);
	border-radius: var(--lhm-radius-md);
	font-size: .875rem;
	color: #3c4540;
}

@media (max-width: 1024px) {
	.lhm-routine { grid-template-columns: 1fr; }
	.lhm-sleep   { grid-template-columns: 1fr; }
	.lhm-meals-output { grid-template-columns: 1fr; }
	.lhm-nursery {
		grid-template-columns: 1fr;
		grid-template-areas: "palette" "room" "actions" "suggestions";
	}
	.lhm-nursery-palette { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; max-height: none; padding-bottom: 8px; }
	.lhm-nursery-item { flex: 0 0 auto; white-space: nowrap; }
}

@media (max-width: 820px) {
	.lhm-wellness-grid th, .lhm-wellness-grid td { padding: 2px; font-size: .8rem; }
	.lhm-wellness-cell { height: 36px; }
	.lhm-compare-rail { display: none; }
}

@media (max-width: 540px) {
	.lhm-quiz-card, .lhm-tracker, .lhm-meals, .lhm-postpartum, .lhm-wellness, .lhm-nursery, .lhm-sleep, .lhm-milestones, .lhm-compare { padding: var(--lhm-space-4); }
	.lhm-tracker-buttons { grid-template-columns: 1fr 1fr; }
}

/* Printable routines + planners */
@media print {
	.lhm-compare-rail { display: none !important; }
	.lhm-tool-page .lhm-section { padding: 8mm 0; background: #fff !important; }
	.lhm-routine, .lhm-meals, .lhm-wellness, .lhm-tracker { box-shadow: none; }
}
