2026-08-07 18:05:49 +01:00
|
|
|
|
/*
|
|
|
|
|
|
* Header and mobile tab bar, on the schoolcompare brand.
|
|
|
|
|
|
*
|
|
|
|
|
|
* The header is a white card band closed by a single hairline rule — no
|
|
|
|
|
|
* shadow. The guideline's chrome is quiet; the colour on this surface is the
|
|
|
|
|
|
* wordmark and the one active nav item, and nothing else.
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
2026-02-02 20:34:35 +00:00
|
|
|
|
.header {
|
|
|
|
|
|
position: sticky;
|
|
|
|
|
|
top: 0;
|
2026-02-04 12:06:48 +00:00
|
|
|
|
z-index: 1000;
|
2026-08-06 12:13:04 +01:00
|
|
|
|
background: var(--bg-card);
|
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
2026-02-02 20:34:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.container {
|
2026-03-25 20:28:03 +00:00
|
|
|
|
max-width: 1400px;
|
2026-02-02 20:34:35 +00:00
|
|
|
|
margin: 0 auto;
|
2026-05-19 09:47:13 +01:00
|
|
|
|
/* Add the safe-area inset to horizontal padding so the header content
|
|
|
|
|
|
clears the notch in landscape on iPhones. */
|
|
|
|
|
|
padding-inline: max(1.5rem, env(safe-area-inset-left)) max(1.5rem, env(safe-area-inset-right));
|
2026-02-02 20:34:35 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
2026-08-07 18:05:49 +01:00
|
|
|
|
gap: 2rem;
|
|
|
|
|
|
/* 64px desktop / 56px mobile is load-bearing: the school detail page's
|
|
|
|
|
|
sticky section nav docks against it with a hardcoded `top` in
|
|
|
|
|
|
SchoolDetailShell.module.css and schoolSections.module.css, and the
|
|
|
|
|
|
scroll-spy observers use it as a rootMargin. Change it in all four
|
|
|
|
|
|
places or not at all. */
|
2026-02-02 20:34:35 +00:00
|
|
|
|
height: 64px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-08-07 18:05:49 +01:00
|
|
|
|
gap: 0.625rem;
|
2026-05-18 15:26:01 +01:00
|
|
|
|
/* Padded hit area so the logo link is ≥44×44 on touch */
|
|
|
|
|
|
margin: -0.375rem -0.5rem;
|
|
|
|
|
|
padding: 0.375rem 0.5rem;
|
2026-02-02 20:34:35 +00:00
|
|
|
|
text-decoration: none;
|
2026-08-06 12:13:04 +01:00
|
|
|
|
color: var(--text-primary);
|
2026-08-07 18:05:49 +01:00
|
|
|
|
transition: color var(--transition);
|
2026-05-18 15:26:01 +01:00
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
2026-02-02 20:34:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.logo:hover {
|
2026-08-07 18:05:49 +01:00
|
|
|
|
color: var(--brand-stronger);
|
2026-02-02 20:34:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-07 18:05:49 +01:00
|
|
|
|
/*
|
|
|
|
|
|
* The mark colours itself — pin in var(--brand), leaf knocked out in
|
|
|
|
|
|
* var(--bg-card), which is this header's own ground. It takes no colour from
|
|
|
|
|
|
* currentColor, so there is deliberately no `color` here.
|
|
|
|
|
|
*/
|
2026-02-02 20:34:35 +00:00
|
|
|
|
.logoIcon {
|
2026-05-18 15:26:01 +01:00
|
|
|
|
display: inline-flex;
|
2026-08-07 18:05:49 +01:00
|
|
|
|
flex: 0 0 auto;
|
|
|
|
|
|
width: 36px;
|
|
|
|
|
|
height: 36px;
|
2026-02-02 20:34:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-18 15:26:01 +01:00
|
|
|
|
.logoIcon svg {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-07 18:05:49 +01:00
|
|
|
|
/*
|
|
|
|
|
|
* "schoolcompare", one word, lower case. Manrope 700 pulled tight — the
|
|
|
|
|
|
* negative tracking is what makes the two halves read as a single word rather
|
|
|
|
|
|
* than as two.
|
|
|
|
|
|
*/
|
2026-02-02 20:34:35 +00:00
|
|
|
|
.logoText {
|
2026-08-06 12:13:04 +01:00
|
|
|
|
font-family: var(--font-display);
|
2026-08-07 18:05:49 +01:00
|
|
|
|
font-size: var(--step-2);
|
2026-02-02 20:34:35 +00:00
|
|
|
|
font-weight: 700;
|
2026-08-07 18:05:49 +01:00
|
|
|
|
line-height: 1;
|
|
|
|
|
|
letter-spacing: -0.035em;
|
2026-08-06 12:13:04 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.logoTextAccent {
|
|
|
|
|
|
color: var(--brand);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.logo:hover .logoTextAccent {
|
2026-08-07 18:05:49 +01:00
|
|
|
|
color: var(--brand-stronger);
|
2026-02-02 20:34:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav {
|
|
|
|
|
|
display: flex;
|
2026-08-07 18:05:49 +01:00
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.125rem;
|
2026-02-02 20:34:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.navLink {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-08-07 18:05:49 +01:00
|
|
|
|
gap: 0.4375rem;
|
|
|
|
|
|
padding: 0.5rem 0.875rem;
|
|
|
|
|
|
font-family: var(--font-ui);
|
|
|
|
|
|
font-size: var(--step--1);
|
2026-02-02 20:34:35 +00:00
|
|
|
|
font-weight: 500;
|
2026-08-06 12:13:04 +01:00
|
|
|
|
color: var(--text-secondary);
|
2026-02-02 20:34:35 +00:00
|
|
|
|
text-decoration: none;
|
2026-08-07 18:05:49 +01:00
|
|
|
|
border-radius: var(--radius-md);
|
|
|
|
|
|
transition: color var(--transition), background-color var(--transition);
|
2026-02-03 14:12:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-02 20:34:35 +00:00
|
|
|
|
.navLink:hover {
|
2026-08-06 12:13:04 +01:00
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
|
background: var(--bg-secondary);
|
2026-02-02 20:34:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-07 18:05:49 +01:00
|
|
|
|
/* The current page is marked twice — brand hue and a heavier weight — so the
|
|
|
|
|
|
state never rests on colour alone. */
|
2026-02-02 20:34:35 +00:00
|
|
|
|
.navLink.active {
|
2026-08-07 18:05:49 +01:00
|
|
|
|
color: var(--brand);
|
2026-08-06 12:13:04 +01:00
|
|
|
|
background: var(--brand-bg);
|
2026-08-07 18:05:49 +01:00
|
|
|
|
font-weight: 600;
|
2026-02-03 14:12:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-02 20:34:35 +00:00
|
|
|
|
.badge {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
2026-08-07 18:05:49 +01:00
|
|
|
|
min-width: 1.125rem;
|
|
|
|
|
|
height: 1.125rem;
|
2026-02-02 20:34:35 +00:00
|
|
|
|
padding: 0 0.375rem;
|
2026-08-07 18:05:49 +01:00
|
|
|
|
font-family: var(--font-ui);
|
|
|
|
|
|
font-size: var(--step--2);
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
line-height: 1;
|
2026-08-06 12:13:04 +01:00
|
|
|
|
color: var(--brand-on);
|
|
|
|
|
|
background: var(--brand);
|
2026-02-02 20:34:35 +00:00
|
|
|
|
border-radius: 9999px;
|
2026-02-03 14:12:48 +00:00
|
|
|
|
animation: badgePop 0.3s ease-out;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@keyframes badgePop {
|
|
|
|
|
|
0% {
|
|
|
|
|
|
transform: scale(0.6);
|
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
50% {
|
|
|
|
|
|
transform: scale(1.2);
|
|
|
|
|
|
}
|
|
|
|
|
|
100% {
|
|
|
|
|
|
transform: scale(1);
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
}
|
2026-02-02 20:34:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-18 15:26:01 +01:00
|
|
|
|
/* ─── Bottom tab bar (mobile only) ──────────────────────────────── */
|
|
|
|
|
|
|
|
|
|
|
|
.bottomBar {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tab {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
2026-08-07 18:05:49 +01:00
|
|
|
|
gap: 0.25rem;
|
2026-05-18 15:26:01 +01:00
|
|
|
|
flex: 1;
|
|
|
|
|
|
min-height: 56px;
|
|
|
|
|
|
padding: 0.375rem 0.25rem;
|
2026-08-07 18:05:49 +01:00
|
|
|
|
font-family: var(--font-ui);
|
2026-08-06 12:13:04 +01:00
|
|
|
|
color: var(--text-secondary);
|
2026-05-18 15:26:01 +01:00
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
letter-spacing: 0.01em;
|
2026-08-07 18:05:49 +01:00
|
|
|
|
transition: color var(--transition);
|
2026-05-18 15:26:01 +01:00
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tabActive {
|
2026-08-07 18:05:49 +01:00
|
|
|
|
color: var(--brand);
|
|
|
|
|
|
font-weight: 600;
|
2026-05-18 15:26:01 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tabIconWrap {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
width: 24px;
|
|
|
|
|
|
height: 24px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-07 18:05:49 +01:00
|
|
|
|
/* The active tab's icon sits in a brand-tinted stadium — the same rounded
|
|
|
|
|
|
geometry as the rest of the system, and a second cue beyond hue. Drawn as a
|
|
|
|
|
|
pseudo-element so it can bleed wider than the 24px icon box without moving
|
|
|
|
|
|
the badge's anchor. */
|
|
|
|
|
|
.tabIconWrap::before {
|
|
|
|
|
|
content: '';
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
inset: -2px -9px;
|
|
|
|
|
|
border-radius: var(--radius-xl);
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
transition: background-color var(--transition);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tabActive .tabIconWrap::before {
|
|
|
|
|
|
background: var(--brand-bg);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tab:active .tabIconWrap::before {
|
|
|
|
|
|
background: var(--brand-bg);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-18 15:26:01 +01:00
|
|
|
|
.tabIcon {
|
2026-08-07 18:05:49 +01:00
|
|
|
|
position: relative;
|
2026-05-18 15:26:01 +01:00
|
|
|
|
width: 22px;
|
|
|
|
|
|
height: 22px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tabLabel {
|
|
|
|
|
|
line-height: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tabBadge {
|
|
|
|
|
|
position: absolute;
|
2026-08-07 18:05:49 +01:00
|
|
|
|
top: -7px;
|
|
|
|
|
|
right: -7px;
|
2026-05-18 15:26:01 +01:00
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
min-width: 18px;
|
|
|
|
|
|
height: 18px;
|
|
|
|
|
|
padding: 0 5px;
|
2026-08-07 18:05:49 +01:00
|
|
|
|
font-family: var(--font-ui);
|
2026-05-18 15:26:01 +01:00
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
|
font-weight: 700;
|
2026-08-07 18:05:49 +01:00
|
|
|
|
line-height: 1;
|
2026-08-06 12:13:04 +01:00
|
|
|
|
color: var(--brand-on);
|
|
|
|
|
|
background: var(--brand);
|
|
|
|
|
|
border: 2px solid var(--bg-card);
|
2026-05-18 15:26:01 +01:00
|
|
|
|
border-radius: 9999px;
|
|
|
|
|
|
animation: badgePop 0.3s ease-out;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-02 20:34:35 +00:00
|
|
|
|
@media (max-width: 640px) {
|
|
|
|
|
|
.container {
|
|
|
|
|
|
padding: 0 1rem;
|
2026-05-18 15:26:01 +01:00
|
|
|
|
height: 56px;
|
2026-02-02 20:34:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-18 15:26:01 +01:00
|
|
|
|
/* Hide the top text nav; the bottom bar takes over */
|
|
|
|
|
|
.nav {
|
2026-02-02 20:34:35 +00:00
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-18 15:26:01 +01:00
|
|
|
|
.logoIcon {
|
2026-08-07 18:05:49 +01:00
|
|
|
|
width: 34px;
|
|
|
|
|
|
height: 34px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.logoText {
|
|
|
|
|
|
font-size: var(--step-1);
|
2026-02-02 20:34:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-18 15:26:01 +01:00
|
|
|
|
.bottomBar {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
z-index: 1000;
|
2026-08-06 12:13:04 +01:00
|
|
|
|
background: var(--bg-card);
|
|
|
|
|
|
border-top: 1px solid var(--border);
|
|
|
|
|
|
box-shadow: 0 -2px 12px rgba(var(--shadow-rgb), 0.06);
|
2026-05-19 09:47:13 +01:00
|
|
|
|
/* Respect iPhone home-indicator (bottom) and notch (left/right in
|
|
|
|
|
|
landscape) insets so the tab content never sits under system UI. */
|
2026-05-18 15:26:01 +01:00
|
|
|
|
padding-bottom: env(safe-area-inset-bottom, 0);
|
2026-05-19 09:47:13 +01:00
|
|
|
|
padding-inline: env(safe-area-inset-left, 0) env(safe-area-inset-right, 0);
|
2026-05-18 15:38:28 +01:00
|
|
|
|
/* Compensate for iOS Chrome's auto-hiding URL bar — Navigation.tsx
|
|
|
|
|
|
writes the offset based on the Visual Viewport API. translate3d
|
|
|
|
|
|
(instead of translateY) forces hardware compositing so the bar
|
|
|
|
|
|
doesn't lag/flicker during the toolbar animation. */
|
|
|
|
|
|
transform: translate3d(0, var(--mobile-bar-offset, 0px), 0);
|
2026-02-02 20:34:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|