/*
 * School Age Calculator — Fallback styles
 * Only takes effect when Tailwind / daisyUI is not loaded.
 * Scoped to #age-calc-wrap so it won't leak into the rest of the site.
 */

/* Layout fallback (flex, grid, spacing) */
#age-calc-wrap {
	margin: 0 auto;
	padding: 2.5rem 1rem;
}

/* Optional outer card wrapper */
#age-calc-wrap.sac-card-wrap {
	background: #f9fafb;
	border-radius: 0.75rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#age-calc-wrap .flex {
	display: flex;
	gap: 1rem;
}
#age-calc-wrap .flex-col { flex-direction: column; }

#age-calc-wrap .grid {
	display: grid;
	gap: 1rem;
}

#age-calc-wrap select {
	width: 100%;
	height: 2.75rem;
	padding: 0.25rem 0.5rem 0.35rem;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	font-size: 1rem;
	background: #fff;
	overflow: visible;
}

/* Result cards fallback */
#age-calc-wrap .dui-card {
	display: flex;
	flex-direction: column;
	background: #f3f4f6;
	border-radius: 0.5rem;
	text-align: center;
}

#age-calc-wrap .dui-card-body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	flex: 1;
	padding: 1.5rem;
}

#age-calc-wrap .dui-card p:first-child {
	font-size: 0.875rem;
	opacity: 0.7;
}

/* Circle badge */
#age-calc-wrap .sac-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	margin-bottom: 0.5rem;
	background: #570df8;
	color: #fff;
}

#age-calc-wrap .dui-card .block {
	display: block;
	font-size: 2.25rem;
}

/* Responsive: stack on small screens */
@media (min-width: 640px) {
	#age-calc-wrap .flex { flex-direction: row; }
}
@media (min-width: 768px) {
	#age-calc-wrap .grid { grid-template-columns: repeat(3, 1fr); }
}
