/*
 * Public-facing EMIS statistics styles.
 * Selectors are scoped with pub-* so the public landing page remains isolated
 * from the authenticated admin UI.
 */

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/fraunces-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --pub-primary: #08285f;
    --pub-primary-2: #03194a;
    --pub-ocean: #0f67d8;
    --pub-ocean-light: #5ad8ff;
    --pub-teal: #10b9b4;
    --pub-cyan: #1ee7f0;
    --pub-surface: #ffffff;
    --pub-page: #f5f9fc;
    --pub-panel: #eef6fb;
    --pub-ink: #10213d;
    --pub-slate: #617086;
    --pub-muted: #7d8a9f;
    --pub-line: #dfe8f2;
    --pub-amber: #f8aa28;
    --pub-coral: #f15d82;
    --pub-violet: #7d5df0;
    --pub-radius: 8px;
    --pub-shadow: 0 14px 34px rgba(13, 42, 92, .09), 0 2px 8px rgba(13, 42, 92, .05);
    --pub-shadow-hover: 0 18px 42px rgba(13, 42, 92, .13), 0 6px 16px rgba(13, 42, 92, .08);
    --pub-page-gutter: 24px;
}

.pub-root *,
.pub-root *::before,
.pub-root *::after {
    box-sizing: border-box;
}

.pub-root {
    min-height: 100vh;
    margin: 0;
    color: var(--pub-ink);
    background: linear-gradient(180deg, #f7fbff 0%, #eef6fb 58%, #f8fbff 100%);
    font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
}

.pub-root a {
    color: inherit;
}

.pub-root svg {
    display: block;
}

.pub-root img {
    max-width: 100%;
}

.pub-brand:focus-visible,
.pub-nav-cta:focus-visible,
.pub-dl-tile:focus-visible,
.pub-profile-back:focus-visible,
.pub-link:focus-visible,
.pub-map-open-link:focus-visible {
    outline: 3px solid rgba(30, 231, 240, .9);
    outline-offset: 3px;
}

.pub-hero-shell {
    position: relative;
    min-height: 680px;
    color: #fff;
    background: #061738;
    overflow: hidden;
    isolation: isolate;
}

.pub-hero-media,
.pub-hero-shade {
    position: absolute;
    inset: 0;
}

.pub-hero-media {
    z-index: -2;
}

.pub-hero-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 28%;
}

.pub-hero-shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 12, 32, .9) 0%, rgba(3, 12, 32, .72) 34%, rgba(3, 12, 32, .18) 63%, rgba(3, 12, 32, .38) 100%),
        linear-gradient(180deg, rgba(3, 12, 32, .38) 0%, transparent 40%, rgba(3, 12, 32, .28) 100%);
}

.pub-topbar {
    position: relative;
    z-index: 2;
}

.pub-topbar-inner {
    width: 100%;
    min-height: 86px;
    margin: 0 auto;
    padding: 26px var(--pub-page-gutter) 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.pub-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.pub-brand:hover,
.pub-brand:focus {
    color: #fff;
    text-decoration: none;
}

.pub-emblem,
.pub-foot-emblem {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 28px rgba(0, 17, 63, .24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.pub-emblem img,
.pub-foot-emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pub-wordmark {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.pub-wordmark b {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
}

.pub-wordmark span {
    color: rgba(235, 248, 255, .9);
    font-size: 11.5px;
    line-height: 1.35;
}

.pub-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.pub-nav-cta {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(119, 202, 255, .66);
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(180deg, rgba(39, 116, 255, .96), rgba(13, 55, 162, .94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .36), 0 14px 30px rgba(0, 20, 80, .24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pub-nav-cta:hover,
.pub-nav-cta:focus {
    color: #fff;
    border-color: rgba(180, 242, 255, .95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 18px 34px rgba(0, 28, 100, .34);
    text-decoration: none;
    transform: translateY(-1px);
}

.pub-hero {
    position: relative;
    z-index: 1;
}

.pub-hero-inner {
    width: 100%;
    min-height: 594px;
    margin: 0 auto;
    padding: 116px var(--pub-page-gutter) 86px;
    display: flex;
    align-items: center;
}

.pub-hero-copy {
    max-width: 720px;
}

.pub-eyebrow {
    margin: 0 0 14px;
    color: var(--pub-cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.pub-hero-title {
    max-width: 14.8ch;
    margin: 0;
    color: #fff;
    font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 64px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
    text-shadow: 0 4px 18px rgba(0, 12, 42, .45);
}

.pub-hero-title span {
    color: var(--pub-cyan);
}

.pub-hero-lead {
    max-width: 56ch;
    margin: 18px 0 0;
    color: rgba(245, 251, 255, .96);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 15, 54, .34);
}

.pub-content {
    width: 100%;
    margin: 0 auto;
    padding: 38px var(--pub-page-gutter) 56px;
    flex: 1 0 auto;
}

.pub-content--landing {
    overflow: visible;
}

.pub-landing-band {
    padding: 0;
}

.pub-landing-band + .pub-landing-band {
    margin-top: 42px;
}

.pub-preview-banner {
    margin: 0 0 16px;
    padding: 11px 14px;
    border: 1px solid #f9c74f;
    border-radius: var(--pub-radius);
    color: #6a4500;
    background: #fff7d8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.pub-note-box {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: var(--pub-radius);
    font-size: 14px;
    font-weight: 700;
}

.pub-note-box--error {
    border: 1px solid #fac1c8;
    color: #8a1f2b;
    background: #fff0f2;
}

.pub-section-header {
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.pub-section-header h2 {
    margin: 0;
    color: #0643a6;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
}

.pub-section-header > span,
.pub-card-head > span {
    color: var(--pub-slate);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    text-align: right;
}

.pub-data-pill {
    margin-top: 0;
    padding: 8px 12px;
    border: 1px solid rgba(11, 92, 220, .18);
    border-radius: 999px;
    color: #0751c4;
    background: rgba(232, 244, 255, .78);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
}

.pub-data-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pub-ocean);
    flex: 0 0 auto;
}

.pub-section-icon,
.pub-card-icon {
    color: #0b5cdc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.pub-section-icon {
    width: 22px;
    height: 22px;
}

.pub-section-icon svg,
.pub-card-icon svg,
.pub-kpi-icon svg,
.pub-dl-tile-icon svg {
    width: 100%;
    height: 100%;
}

.pub-section-icon path,
.pub-card-icon path,
.pub-kpi-icon path,
.pub-dl-tile-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pub-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.pub-kpi {
    min-height: 118px;
    padding: 22px 18px;
    border: 1px solid rgba(221, 232, 242, .92);
    border-left-width: 3px;
    border-radius: var(--pub-radius);
    color: #1f6eea;
    background: #fff;
    box-shadow: var(--pub-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
}

.pub-kpi--schools {
    color: #1f6eea;
    border-left-color: #1f6eea;
}

.pub-kpi--enrolment {
    color: #0eaaa4;
    border-left-color: #0eaaa4;
}

.pub-kpi--staff {
    color: #f39b13;
    border-left-color: #f39b13;
}

.pub-kpi--ratio {
    color: #7954ee;
    border-left-color: #7954ee;
}

.pub-kpi-icon {
    width: 48px;
    height: 48px;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, currentColor 10%, #fff 90%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.pub-kpi-icon svg {
    width: 24px;
    height: 24px;
}

.pub-kpi-text {
    min-width: 0;
    display: grid;
}

.pub-kpi-label {
    color: #1f2c43;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.pub-kpi-num {
    margin-top: 7px;
    color: currentColor;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 31px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.pub-kpi-sub {
    margin-top: 9px;
    color: var(--pub-slate);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.pub-chart-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.pub-card {
    position: relative;
    border: 1px solid rgba(221, 232, 242, .96);
    border-radius: var(--pub-radius);
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--pub-shadow);
    overflow: hidden;
}

.pub-card--chart {
    min-width: 0;
    min-height: 392px;
}

.pub-card--wide {
    grid-column: 1 / -1;
    min-height: 430px;
}

.pub-card-head {
    min-height: 54px;
    padding: 18px 18px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pub-card-head h3 {
    min-width: 0;
    margin: 0;
    color: #0a3c94;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
}

.pub-card-head > span {
    max-width: 48%;
}

.pub-card-icon {
    width: 17px;
    height: 17px;
}

.pub-card-body {
    padding: 8px 14px 16px;
}

.pub-chart-canvas {
    position: relative;
    width: 100%;
    min-height: 300px;
}

.pub-chart-canvas--trend {
    min-height: 300px;
}

.pub-chart-canvas--geographic {
    min-height: 360px;
}

.pub-chart-empty {
    position: absolute;
    inset: 0;
    padding: 22px;
    border: 1px dashed rgba(11, 92, 220, .22);
    border-radius: calc(var(--pub-radius) - 2px);
    color: var(--pub-slate);
    background: linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(236, 247, 255, .64));
    display: flex;
    flex-direction: column;
    gap: 11px;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.pub-chart-empty-icon {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(30, 231, 240, .28);
    border-radius: 50%;
    color: #0b5cdc;
    background: rgba(232, 244, 255, .9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pub-chart-empty-icon svg {
    width: 21px;
    height: 21px;
}

.pub-chart-empty-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pub-dl-grid {
    display: grid;
    gap: 22px;
}

.pub-dl-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pub-dl-tile {
    position: relative;
    min-height: 198px;
    padding: 24px 26px;
    border: 1px solid rgba(221, 232, 242, .96);
    border-left: 3px solid #285fff;
    border-radius: var(--pub-radius);
    color: var(--pub-ink);
    background: #fff;
    box-shadow: var(--pub-shadow);
    display: flex;
    align-items: center;
    text-decoration: none;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pub-dl-tile--map {
    border-left-color: var(--pub-coral);
}

.pub-dl-tile:hover,
.pub-dl-tile:focus {
    color: var(--pub-ink);
    border-color: rgba(70, 137, 255, .48);
    box-shadow: var(--pub-shadow-hover);
    text-decoration: none;
    transform: translateY(-2px);
}

.pub-dl-tile[aria-disabled="true"] {
    cursor: not-allowed;
}

.pub-dl-copy {
    position: relative;
    z-index: 2;
    max-width: 62%;
    display: grid;
}

.pub-dl-tile-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.pub-dl-tile-icon--report {
    color: var(--pub-violet);
    background: rgba(125, 93, 240, .13);
}

.pub-dl-tile-icon--map {
    color: var(--pub-coral);
    background: rgba(241, 93, 130, .13);
}

.pub-dl-tile-label {
    color: #31405a;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
}

.pub-dl-tile-title {
    margin-top: 8px;
    color: #063b96;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.2;
}

.pub-dl-tile-sub {
    margin-top: 8px;
    color: var(--pub-slate);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
}

.pub-dl-action {
    width: fit-content;
    margin-top: 15px;
    padding: 7px 10px;
    border: 1px solid rgba(11, 92, 220, .16);
    border-radius: 999px;
    color: #063b96;
    background: rgba(239, 247, 255, .82);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.pub-dl-tile[aria-disabled="true"] .pub-dl-action {
    color: var(--pub-slate);
    background: rgba(226, 234, 244, .72);
}

.pub-dl-art {
    position: absolute;
    right: 26px;
    bottom: 18px;
    z-index: 1;
    width: 34%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.pub-foot {
    margin-top: auto;
    color: #d6e7ff;
    background: #03143f;
}

.pub-foot-inner {
    width: 100%;
    min-height: 120px;
    margin: 0 auto;
    padding: 28px var(--pub-page-gutter);
    display: flex;
    align-items: center;
    gap: 28px;
}

.pub-foot-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.pub-foot-emblem {
    width: 54px;
    height: 54px;
}

.pub-foot-org {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.pub-foot-org b {
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.pub-foot-note {
    max-width: 50ch;
    color: #d6e7ff;
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.5;
}

.pub-foot-powered {
    margin-left: auto;
    color: #c9ddf7;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.7;
    text-align: right;
}

.pub-foot-powered b {
    color: var(--pub-cyan);
    font-weight: 900;
}

/* School map */

.pub-content--map-page {
    padding-top: 32px;
    padding-bottom: 48px;
}

.pub-map-section {
    position: relative;
    z-index: 1;
    margin-top: 42px;
    scroll-margin-top: 18px;
}

.pub-content--map-page .pub-map-section {
    margin-top: 0;
}

.pub-map-section-head {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.pub-section-header--map {
    flex: 1 1 auto;
    margin: 0;
}

.pub-map-open-link {
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(18, 111, 218, .22);
    border-radius: var(--pub-radius);
    color: #063b96;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 10px 24px rgba(13, 42, 92, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pub-map-open-link:hover,
.pub-map-open-link:focus {
    color: #063b96;
    border-color: rgba(18, 111, 218, .42);
    box-shadow: var(--pub-shadow-hover);
    text-decoration: none;
    transform: translateY(-1px);
}

.pub-map-panel {
    position: relative;
    padding: 10px;
    border: 1px solid rgba(221, 232, 242, .96);
    border-radius: var(--pub-radius);
    background: #fff;
    box-shadow: var(--pub-shadow);
    overflow: hidden;
}

.pub-school-map {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 470px;
    min-height: 470px;
    border-radius: calc(var(--pub-radius) - 2px);
    background: #dfeef6;
    overflow: hidden;
}

.pub-map-fallback {
    min-height: 240px;
    padding: 24px;
    color: var(--pub-slate);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.leaflet-container {
    font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.leaflet-popup-content-wrapper {
    border-radius: var(--pub-radius);
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}

.leaflet-popup-content {
    margin: 12px 14px;
    line-height: 1.5;
}

.leaflet-popup-tip {
    border-radius: 3px;
    background: #fff;
}

.school-popup-name {
    margin-bottom: 4px;
    color: var(--pub-primary);
    font-size: .95rem;
    font-weight: 800;
}

.school-popup-detail {
    margin: 2px 0;
    color: #444;
    font-size: .82rem;
}

.school-popup-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--pub-primary);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

.school-popup-link:hover {
    text-decoration: underline;
}

.school-popup-contact {
    color: var(--pub-primary);
    text-decoration: none;
}

.school-popup-contact:hover {
    text-decoration: underline;
}

/* In-canvas filter overlay (homepage map). */
.pub-map-filters {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 220px;
    max-width: calc(100% - 36px);
    padding: 14px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(221, 232, 242, .96);
    border-radius: var(--pub-radius);
    box-shadow: var(--pub-shadow);
}

.pub-map-filters .pub-map-filter {
    display: flex;
    flex-direction: column;
}

.pub-map-filters label {
    margin-bottom: 4px;
    font-size: .78rem;
    font-weight: 800;
    color: var(--pub-slate);
}

.pub-map-filters select,
.pub-map-filters input {
    padding: 8px 10px;
    border: 1px solid #cbd9e6;
    border-radius: 8px;
    font-size: .85rem;
}

.pub-map-filters .pub-map-filter-count {
    font-size: .76rem;
    font-weight: 700;
    color: var(--pub-slate);
}

/* Fullscreen toggle for the in-canvas map (native Fullscreen API + class fallback). */
.pub-map-panel.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 100000;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: #fff;
}

.pub-map-panel.is-fullscreen .pub-school-map {
    height: 100% !important;
    min-height: 0;
    border-radius: 0;
}

.pub-map-panel:fullscreen {
    padding: 0;
    border-radius: 0;
    background: #fff;
}

.pub-map-panel:fullscreen .pub-school-map {
    height: 100% !important;
    min-height: 0;
    border-radius: 0;
}

.pub-map-panel:-webkit-full-screen {
    padding: 0;
    border-radius: 0;
    background: #fff;
}

.pub-map-panel:-webkit-full-screen .pub-school-map {
    height: 100% !important;
    min-height: 0;
    border-radius: 0;
}

.pub-map-fs-control a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 4px;
    box-sizing: border-box;
    color: var(--pub-primary);
    background: #fff;
    cursor: pointer;
}

.pub-map-fs-control a svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pub-map-fs-control a:hover {
    background: #f3f7fb;
}

.school-marker-fa {
    width: 34px !important;
    height: 34px !important;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-marker-school {
    position: relative;
    width: 30px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #20bdf7 0%, #1565d8 62%, #073c98 100%);
    box-shadow: 0 10px 20px rgba(4, 34, 96, .26), inset 0 1px 0 rgba(255, 255, 255, .42);
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-marker-school svg {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
}

.school-marker-school path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* School profile (/schools/{id}) */

.pub-profile-wrap {
    max-width: 820px;
    margin: 36px auto 60px;
    padding: 0 24px;
}

.pub-profile-back {
    margin-bottom: 20px;
    color: var(--pub-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .87rem;
    font-weight: 800;
    text-decoration: none;
}

.pub-profile-back:hover {
    text-decoration: underline;
}

.pub-profile-card {
    overflow: hidden;
    border: 1px solid #dde3ed;
    border-radius: var(--pub-radius);
    background: #fff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
}

.pub-profile-header {
    padding: 24px 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--pub-primary), var(--pub-ocean));
}

.pub-profile-header h1 {
    margin: 0 0 4px;
    font-size: 1.45rem;
    font-weight: 800;
}

.pub-profile-header .pub-profile-code {
    font-size: .85rem;
    opacity: .8;
}

.pub-profile-body {
    padding: 28px;
}

.pub-profile-section {
    margin-bottom: 28px;
}

.pub-profile-section:last-child {
    margin-bottom: 0;
}

.pub-profile-section-title {
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid #f0f2f5;
    color: var(--pub-amber);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.pub-profile-row {
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    font-size: .9rem;
}

.pub-profile-row:last-child {
    margin-bottom: 0;
}

.pub-profile-label {
    min-width: 170px;
    color: #6b7280;
    flex-shrink: 0;
    font-weight: 700;
}

.pub-profile-value {
    color: #111827;
    overflow-wrap: anywhere;
}

.pub-profile-badge {
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
    font-size: .8rem;
    font-weight: 800;
}

.pub-badge-yes {
    color: #065f46;
    background: #d1fae5;
}

.pub-badge-no {
    color: #991b1b;
    background: #fee2e2;
}

.pub-link {
    color: var(--pub-primary);
    text-decoration: none;
}

.pub-link:hover {
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .pub-dl-tile,
    .pub-map-open-link,
    .pub-nav-cta {
        transition: none;
    }
}

@media (min-width: 1025px) {
    :root {
        --pub-page-gutter: 56px;
    }
}

@media (min-width: 1440px) {
    :root {
        --pub-page-gutter: 88px;
    }

    .pub-hero-shell {
        min-height: 740px;
    }

    .pub-hero-inner {
        min-height: 654px;
        padding-top: 130px;
        padding-bottom: 92px;
    }

    .pub-hero-media img {
        object-position: center 24%;
    }
}

@media (min-width: 1900px) {
    :root {
        --pub-page-gutter: 128px;
    }

    .pub-hero-shell {
        min-height: 820px;
    }

    .pub-hero-inner {
        min-height: 734px;
        padding-top: 150px;
        padding-bottom: 104px;
    }

    .pub-hero-media img {
        object-position: center 18%;
    }
}

@media (max-width: 1024px) {
    .pub-hero-shell {
        min-height: 600px;
    }

    .pub-hero-media img {
        object-position: 58% center;
    }

    .pub-hero-inner {
        min-height: 514px;
        padding-top: 92px;
        padding-bottom: 70px;
    }

    .pub-hero-title {
        font-size: 52px;
    }

    .pub-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 840px) {
    .pub-chart-grid,
    .pub-dl-grid--2 {
        grid-template-columns: 1fr;
    }

    .pub-card--wide {
        grid-column: auto;
    }

    .pub-chart-canvas,
    .pub-chart-canvas--trend,
    .pub-chart-canvas--geographic {
        min-height: 330px;
    }
}

@media (max-width: 760px) {
    .pub-hero-shell {
        min-height: 560px;
    }

    .pub-hero-shade {
        background:
            linear-gradient(90deg, rgba(3, 12, 32, .92) 0%, rgba(3, 12, 32, .76) 58%, rgba(3, 12, 32, .4) 100%),
            linear-gradient(180deg, rgba(3, 12, 32, .32) 0%, transparent 42%, rgba(3, 12, 32, .28) 100%);
    }

    .pub-topbar-inner {
        min-height: 72px;
        padding: 18px 16px 0;
        gap: 12px;
    }

    .pub-emblem {
        width: 44px;
        height: 44px;
    }

    .pub-wordmark b {
        font-size: 15px;
    }

    .pub-wordmark span {
        font-size: 10.5px;
    }

    .pub-nav-cta {
        min-height: 38px;
        padding: 0 14px;
        font-size: 13px;
    }

    .pub-hero-inner {
        min-height: 488px;
        padding: 86px 16px 62px;
    }

    .pub-eyebrow {
        font-size: 11px;
    }

    .pub-hero-title {
        max-width: 13.6ch;
        font-size: 38px;
    }

    .pub-hero-lead {
        max-width: 40ch;
        font-size: 15px;
    }

    .pub-content {
        padding: 30px 16px 42px;
    }

    .pub-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .pub-section-header > span,
    .pub-card-head > span {
        max-width: 100%;
        text-align: left;
    }

    .pub-kpi-grid {
        grid-template-columns: 1fr;
    }

    .pub-card-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .pub-dl-tile {
        min-height: 184px;
        padding: 22px;
    }

    .pub-dl-copy {
        max-width: 72%;
    }

    .pub-dl-art {
        right: 8px;
        bottom: 8px;
        width: 42%;
        opacity: .9;
    }

    .pub-map-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .pub-map-open-link {
        width: 100%;
    }

    .pub-school-map {
        height: 420px;
        min-height: 420px;
    }

    .pub-foot-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .pub-foot-powered {
        margin-left: 0;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .pub-topbar-inner {
        gap: 10px;
    }

    .pub-wordmark {
        max-width: 180px;
    }

    .pub-hero-media img {
        object-position: 63% center;
    }

    .pub-hero-title {
        font-size: 34px;
    }

    .pub-kpi {
        min-height: 104px;
        align-items: flex-start;
        gap: 14px;
    }

    .pub-kpi-icon {
        width: 46px;
        height: 46px;
    }

    .pub-kpi-num {
        font-size: 29px;
    }

    .pub-dl-tile {
        min-height: 204px;
        padding: 20px;
    }

    .pub-dl-copy {
        max-width: 100%;
        padding-right: 88px;
    }

    .pub-dl-art {
        width: 58%;
        opacity: .72;
    }

    .pub-profile-row {
        flex-direction: column;
        gap: 2px;
    }

    .pub-profile-label {
        min-width: 0;
    }
}
