/* Public website branding. Account, admin and delivery surfaces keep their styles. */
body.ss-public-brand {
    --ss-brand-ink: #16213e;
    --ss-brand-teal: #075e54;
    --ss-brand-wash: #faf9f6;
    --ss-brand-line: #e3e7e3;
    color-scheme: light;
}

body.ss-public-brand:not([data-funnel-page="school_landing"]),
body.ss-public-brand.light-landing,
body.ss-public-brand:has(.site-header) {
    background: var(--ss-brand-wash) !important;
}

body.ss-public-brand .ss-public-header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    box-sizing: border-box;
    padding-top: 8px;
    padding-bottom: 8px;
    background: #fff;
    border-bottom: 1px solid var(--ss-brand-line);
    text-align: left;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.ss-public-brand .ss-public-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
    flex-shrink: 0;
    width: auto;
    margin: 0;
    min-height: 44px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 3px;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 750;
    line-height: 24px;
    letter-spacing: -0.5px;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
    transform: none;
}

body.ss-public-brand .ss-public-wordmark .ss-public-wordmark-school {
    color: var(--ss-brand-ink);
}

body.ss-public-brand .ss-public-wordmark .ss-public-wordmark-scoop {
    color: var(--ss-brand-teal);
}

body.ss-public-brand .ss-public-wordmark:focus-visible {
    outline: 3px solid var(--ss-brand-teal);
    outline-offset: 5px;
}

/* Existing light public surfaces keep their content and status treatments. */
body.ss-public-brand .state-card,
body.ss-public-brand .suburb-card,
body.ss-public-brand .school-link {
    background: #fff;
    border-color: var(--ss-brand-line);
}

body.ss-public-brand .state-card:hover,
body.ss-public-brand .suburb-card:hover,
body.ss-public-brand .school-link:hover {
    border-color: var(--ss-brand-teal);
    background: #f2f7f4;
}

body.ss-public-brand .count-pill {
    background: #edf5f1;
    border-color: #cddfd8;
    color: var(--ss-brand-teal);
}

body.ss-public-brand.legal-page .ss-public-header {
    padding: 8px 20px !important;
    border: 1px solid var(--ss-brand-line) !important;
    text-align: left !important;
}

body.ss-public-brand.legal-page main .card a,
body.ss-public-brand.legal-page footer a {
    color: var(--ss-brand-teal) !important;
}

body.ss-public-brand.legal-page main a {
    overflow-wrap: anywhere;
}

body.ss-public-brand[data-funnel-page="school_issue"] {
    padding: 0;
}

body.ss-public-brand[data-funnel-page="school_issue"] .ss-public-header {
    padding-inline: max(20px, calc((100% - 720px) / 2));
}

body.ss-public-brand[data-funnel-page="school_issue"] .wrap {
    max-width: 760px;
    padding-inline: 20px;
}

body.ss-public-brand .site-header {
    background: transparent;
    justify-content: space-between;
}

body.ss-public-brand .site-header .dates-link {
    color: var(--ss-brand-teal);
}
