/* ---------------------------------------------------------------------------
   Illness / absence report -- public page.
   Kept in a real .css file rather than request.pageStyles so hex colors never
   have to be pound-escaped for the CFML parser.
   --------------------------------------------------------------------------- */

.ill-intro p {
	margin: 0 0 1rem;
}

/* --- District summary card ------------------------------------------------ */

.ill-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
	background: #f4f6fa;
	border: 1px solid #d9e0ee;
	border-left: 6px solid #0033A0;
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	margin: 1.75rem 0;
}

.ill-summary-figure {
	font-family: 'Oswald', Arial, sans-serif;
	font-weight: 600;
	color: #0033A0;
	line-height: 1;
	white-space: nowrap;
}

.ill-summary-figure .ill-big {
	font-size: 3.75rem;
	letter-spacing: -0.02em;
}

.ill-summary-figure .ill-unit {
	font-size: 1.75rem;
	margin-left: 0.1rem;
}

.ill-summary-body {
	flex: 1 1 16rem;
}

.ill-summary-label {
	font-family: 'Oswald', Arial, sans-serif;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 1.1rem;
	color: #222;
	margin: 0;
	line-height: 1.25;
}

.ill-summary-date {
	margin: 0.35rem 0 0;
	font-size: 1rem;
	color: #444;
}

.ill-summary-detail {
	margin: 0.15rem 0 0;
	font-size: 0.9rem;
	color: #5a6472;
}

.ill-trend {
	margin: 0.4rem 0 0;
	font-size: 0.9rem;
	color: #5a6472;
}

.ill-trend .ill-trend-value {
	font-weight: 700;
	color: #333;
}

/* --- School groups -------------------------------------------------------- */

.ill-level {
	margin: 2.25rem 0 0;
}

.ill-level h2 {
	font-size: 1.4rem;
	margin: 0 0 0.15rem;
	padding-bottom: 0.35rem;
	border-bottom: 2px solid #e2e6ee;
}

.ill-level-meta {
	margin: 0 0 0.9rem;
	font-size: 0.9rem;
	color: #5a6472;
}

.ill-schools {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
	gap: 0.15rem 2rem;
}

/* A row is just the name and the number. Bars were tried here and dropped:
   at this density they added visual noise without telling you anything the
   percentage did not already say. */
.ill-school {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid #eceff4;
}

.ill-school-name {
	font-size: 0.95rem;
	line-height: 1.35;
}

.ill-school-value {
	font-family: 'Oswald', Arial, sans-serif;
	font-weight: 500;
	font-size: 1.05rem;
	color: #1a1a1a;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.ill-school-value .ill-unit {
	font-size: 0.8em;
	color: #5a6472;
}

/* At or above the Health Department reporting threshold. The badge carries the
   meaning in words -- color alone never conveys it. */
.ill-school.is-flagged .ill-school-value {
	color: #8a3700;
}

.ill-flag {
	display: inline-block;
	font-family: 'Oswald', Arial, sans-serif;
	font-weight: 500;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b2c00;
	background: #ffeedd;
	border: 1px solid #f0cfae;
	border-radius: 3px;
	padding: 0.05rem 0.35rem;
	margin-left: 0.4rem;
	vertical-align: 0.1em;
	white-space: nowrap;
}

/* --- Footnotes / empty states -------------------------------------------- */

.ill-note {
	margin: 2.5rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid #e2e6ee;
	font-size: 0.9rem;
	color: #5a6472;
}

.ill-note p {
	margin: 0 0 0.6rem;
}

.ill-empty {
	background: #f4f6fa;
	border: 1px solid #d9e0ee;
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	max-width: 60ch;
}

.ill-empty p {
	margin: 0;
}

@media (max-width: 640px) {
	.ill-summary {
		gap: 0.75rem 1rem;
		padding: 1rem 1.15rem;
	}
	.ill-summary-figure .ill-big {
		font-size: 3rem;
	}
	.ill-schools {
		grid-template-columns: 1fr;
		gap: 0;
	}
}
