diff --git a/nextjs-app/components/SchoolDetailView.tsx b/nextjs-app/components/SchoolDetailView.tsx
index 6b74d24..2e507e3 100644
--- a/nextjs-app/components/SchoolDetailView.tsx
+++ b/nextjs-app/components/SchoolDetailView.tsx
@@ -673,7 +673,7 @@ export function SchoolDetailView({
{admissions.first_preference_offer_pct != null && (
Families who got their first-choice
-
{admissions.first_preference_offer_pct}%
+
{formatPercentage(admissions.first_preference_offer_pct)}
)}
diff --git a/nextjs-app/components/SecondarySchoolDetailView.module.css b/nextjs-app/components/SecondarySchoolDetailView.module.css
index 82ccf46..81e4254 100644
--- a/nextjs-app/components/SecondarySchoolDetailView.module.css
+++ b/nextjs-app/components/SecondarySchoolDetailView.module.css
@@ -2,6 +2,7 @@
.container {
width: 100%;
+ overflow-x: hidden;
}
/* ── Header ──────────────────────────────────────────── */
@@ -32,6 +33,7 @@
margin-bottom: 0.5rem;
line-height: 1.2;
font-family: var(--font-playfair), 'Playfair Display', serif;
+ overflow-wrap: break-word;
}
.badges {
@@ -63,6 +65,7 @@
font-size: 0.875rem;
color: var(--text-muted, #8a847a);
margin: 0 0 0.75rem;
+ overflow-wrap: break-word;
}
.headerDetails {
@@ -245,6 +248,8 @@
align-items: center;
gap: 0.375rem;
flex-wrap: wrap;
+ overflow-wrap: break-word;
+ min-width: 0;
}
.sectionTitle::before {
@@ -325,6 +330,8 @@
align-items: center;
justify-content: center;
gap: 0.25rem;
+ overflow-wrap: break-word;
+ word-break: break-word;
}
.metricHint {
@@ -672,6 +679,10 @@
/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
+ .header {
+ padding: 1rem;
+ }
+
.headerContent {
flex-direction: column;
gap: 1rem;
@@ -688,9 +699,101 @@
.schoolName {
font-size: 1.25rem;
+ word-break: break-word;
+ }
+
+ .badges {
+ gap: 0.25rem;
+ }
+
+ .badge {
+ font-size: 0.75rem;
+ padding: 0.1rem 0.375rem;
+ }
+
+ .headerDetails {
+ flex-direction: column;
+ gap: 0.375rem;
+ }
+
+ .metricsGrid {
+ grid-template-columns: repeat(2, 1fr);
+ }
+
+ .metricValue {
+ font-size: 1rem;
+ }
+
+ .chartContainer {
+ height: 220px;
+ }
+
+ .dataTable {
+ font-size: 0.75rem;
+ }
+
+ .dataTable th,
+ .dataTable td {
+ padding: 0.5rem 0.375rem;
+ }
+
+ .card {
+ padding: 1rem;
+ }
+
+ .sectionTitle {
+ font-size: 1rem;
}
.parentViewLabel {
flex-basis: 10rem;
}
+
+ .ofstedReportLink {
+ margin-left: 0;
+ display: block;
+ margin-top: 0.25rem;
+ }
+
+ .admissionsTypeBadge {
+ font-size: 0.75rem;
+ }
+}
+
+@media (max-width: 480px) {
+ .parentViewRow {
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 0.25rem;
+ }
+
+ .parentViewLabel {
+ flex: none;
+ max-width: 100%;
+ }
+
+ .parentViewBar {
+ width: 100%;
+ }
+
+ .parentViewPct {
+ flex: none;
+ }
+
+ .metricsGrid {
+ grid-template-columns: 1fr 1fr;
+ gap: 0.5rem;
+ }
+
+ .metricCard {
+ padding: 0.5rem;
+ }
+
+ .metricLabel {
+ font-size: 0.625rem;
+ }
+
+ .card {
+ padding: 0.75rem;
+ }
}
diff --git a/nextjs-app/components/SecondarySchoolDetailView.tsx b/nextjs-app/components/SecondarySchoolDetailView.tsx
index 30a6ddd..f432431 100644
--- a/nextjs-app/components/SecondarySchoolDetailView.tsx
+++ b/nextjs-app/components/SecondarySchoolDetailView.tsx
@@ -329,7 +329,7 @@ export function SecondarySchoolDetailView({
{admissions.first_preference_offer_pct != null && (
1st choice offer rate
-
{admissions.first_preference_offer_pct}%
+
{formatPercentage(admissions.first_preference_offer_pct)}
)}
@@ -611,7 +611,7 @@ export function SecondarySchoolDetailView({
{admissions.first_preference_offer_pct != null && (
Families who got their first choice
-
{admissions.first_preference_offer_pct}%
+
{formatPercentage(admissions.first_preference_offer_pct)}
)}