.site-footer-wrap {
    --footer-main-bg: color-mix(in srgb, var(--bg-color-inv) 88%, white 12%);
    --footer-rail-bg: color-mix(in srgb, var(--bg-color-inv) 93%, white 7%);
    --footer-subfooter-bg: #242323;
    --footer-border: color-mix(in srgb, var(--color-text-inv) 16%, transparent);
    --footer-muted-text: var(--color-text-inv);
    --theme-document-body-color: var(--color-text-inv);
    --theme-document-lead-color: var(--color-text-inv);
    --theme-ink: var(--color-text-inv);
    --theme-muted: var(--color-text-inv);
    color: var(--color-text-inv);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: var(--vertical-block-offset);
    font-weight: 300;
}

.site-footer-wrap .page-link {
    color: var(--color-text-inv);
    width: fit-content;
    max-width: 100%;
}

.site-footer-wrap a,
.site-footer-wrap .page-link,
.site-footer-wrap .page-list-link {
    text-decoration: none;
}

.site-footer-wrap .footer-main-shell {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "contact"
        "programs"
        "rail";
    border-radius: 1.5rem 1.5rem 0 0;
    overflow: hidden;
}

.site-footer-wrap .footer-main-shell > * {
    box-sizing: border-box;
}

.site-footer-wrap .footer-panel {
    min-width: 0;
}

.site-footer-wrap .footer-panel-expander {
    --expander-heading-color: var(--color-text-inv);
    color: var(--color-text-inv);
    display: block;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.site-footer-wrap .footer-panel-expander > .expander-toggle {
    align-items: center;
    border: 0;
    box-sizing: border-box;
    color: var(--color-text-inv);
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    width: 100%;
}

.site-footer-wrap .footer-panel-expander > .expander-toggle .expander-toggle-icon {
    min-width: 1.1rem;
    order: 2;
}

.site-footer-wrap .footer-panel-expander > .expander-toggle .expander-icon svg {
    height: 1rem;
    width: 1rem;
}

.site-footer-wrap .footer-panel-expander > .expander-toggle .expander-heading-text {
    flex: 1 1 auto;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.site-footer-wrap .footer-panel-expander > .expander-content {
    width: 100%;
}

.site-footer-wrap .footer-panel-expander > .expander-content > .expander-content-inner {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    min-width: 0;
    padding: clamp(1.75rem, 4vw, 3.5rem);
}

.site-footer-wrap .footer-contact-panel {
    grid-area: contact;
    background: var(--color-accent);
    min-height: 100%;
}

.site-footer-wrap .footer-programs-panel {
    grid-area: programs;
    background: var(--footer-main-bg);
}

.site-footer-wrap .footer-rail-panel {
    grid-area: rail;
    background: var(--footer-rail-bg);
}

.site-footer-wrap .footer-panel-title {
    color: var(--color-text-inv);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.site-footer-wrap .footer-panel-title-offset {
    padding-top: 0.5rem;
}

.site-footer-wrap .footer-copy {
    color: var(--footer-muted-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    max-width: 34rem;
}

.site-footer-wrap .footer-contact-panel .footer-copy,
.site-footer-wrap .footer-contact-panel .page-link {
    color: var(--color-text-inv);
}

.site-footer-wrap .footer-contact-panel > .expander-content > .expander-content-inner {
    gap: clamp(1.35rem, 3vw, 1.75rem);
}

.site-footer-wrap .footer-logo-link {
    display: block;
    width: fit-content;
    max-width: 100%;
}

.site-footer-wrap .footer-logo-link > .page-link__image {
    width: min(13.5rem, 100%);
    max-width: 100%;
}

.site-footer-wrap .footer-address-block {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr);
}

.site-footer-wrap .footer-map-link {
    align-self: start;
    display: block;
    width: fit-content;
}

.site-footer-wrap .footer-map-link > .page-link__image {
    max-width: none;
    width: 1.45rem;
}

.site-footer-wrap .footer-address-body {
    display: flex;
    flex-direction: column;
    gap: 0.275rem;
    min-width: 0;
}

.site-footer-wrap .footer-address,
.sc-crkit .site-footer-wrap [data-crkit-control="text"][data-tag="p"].footer-address {
    margin-block: 0 0.75em;
    max-width: none;
    line-height: 1.7;
}

.site-footer-wrap .footer-contact-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 2rem;
}

.site-footer-wrap .footer-inline-link {
    align-items: center;
    display: inline-flex;
    font-size: 0.95rem;
    text-decoration: none;
}

.site-footer-wrap .footer-contact-link,
.site-footer-wrap .footer-directions-link,
.site-footer-wrap .footer-phone-link {
    font-size: 1rem;
    font-weight: 700;
}

.site-footer-wrap .footer-contact-link.has-image-text,
.site-footer-wrap .footer-phone-link.has-image-text,
.sc-crkit .site-footer-wrap [data-type="link"].page-link.footer-contact-link.has-image-text,
.sc-crkit .site-footer-wrap [data-type="link"].page-link.footer-phone-link.has-image-text {
    gap: 0.5em;
}

.site-footer-wrap .footer-contact-link > .page-link__image,
.site-footer-wrap .footer-phone-link > .page-link__image {
    display: block;
    height: 1.5625rem;
    width: auto;
}

.site-footer-wrap .footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-top: auto;
}

.site-footer-wrap .footer-social-link {
    align-items: center;
    border: 2px solid var(--color-text-inv);
    border-radius: 999px;
    box-sizing: border-box;
    color: var(--color-text-inv);
    display: inline-flex;
    height: 2.125rem;
    justify-content: center;
    overflow: hidden;
    width: 2.125rem;
}

.site-footer-wrap .footer-social-link > .page-link__image {
    display: block;
    height: auto;
    max-height: 1.125rem;
    max-width: 1.125rem;
    width: auto;
}

.site-footer-wrap .footer-logo-link:hover,
.site-footer-wrap .footer-map-link:hover,
.site-footer-wrap .footer-social-link:hover {
    opacity: 0.88;
    text-decoration: none;
}

.site-footer-wrap .footer-programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.75rem, 4vw, 3rem);
}

.site-footer-wrap .footer-link-column,
.site-footer-wrap .footer-link-cluster,
.site-footer-wrap .footer-link-list {
    display: flex;
    flex-direction: column;
}

.site-footer-wrap .footer-link-column,
.site-footer-wrap .footer-link-cluster {
    gap: 1rem;
}

.site-footer-wrap .footer-link-list {
    gap: 0.45rem;
}

.site-footer-wrap .footer-link-list .page-link,
.site-footer-wrap .footer-link-list .page-list-link {
    font-size: 0.95rem;
    line-height: 1.5;
}

.site-footer-wrap .footer-link-list .page-list-block {
    gap: 0.45rem;
}

.site-footer-wrap .page-list-link {
    color: var(--color-text-inv);
    width: fit-content;
    max-width: 100%;
}

.site-footer-wrap .footer-rail-links {
    border-top: 1px solid var(--footer-border);
    gap: 0.85rem;
    padding-top: 1.5rem;
}

.site-footer-wrap .footer-rail-links .page-link {
    font-weight: 700;
    line-height: 1.35;
}

.site-footer-wrap .footer-subfooter {
    align-items: center;
    background: var(--footer-subfooter-bg);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.85em;
}

.site-footer-wrap .footer-subfooter-copy,
.site-footer-wrap .footer-subfooter-separator {
    color: var(--footer-muted-text);
}

.site-footer-wrap .footer-subfooter-link {
    font-size: 0.95rem;
}

.sc-crkit .site-footer-wrap :is([data-type="text"], .footer-copy, .footer-panel-title, .footer-subfooter-copy, .footer-subfooter-separator) {
    color: var(--color-text-inv);
}

.site-footer-wrap .page-link.btn.btn-shape-circle {
    background-color: transparent;
    border: 2px solid var(--color-text-inv);
    color: var(--color-text-inv);
}

.sc-crkit .site-footer-wrap [data-type="container"].page-container {
    overflow: visible;
}

.sc-crkit .site-footer-wrap [data-type="container"].page-container.footer-main-shell {
    display: grid;
    overflow: hidden;
}

.sc-crkit .site-footer-wrap [data-type="container"].page-container.footer-address-block {
    display: grid;
}

.sc-crkit .site-footer-wrap [data-type="container"].page-container.footer-programs-grid {
    display: grid;
}

.sc-crkit .site-footer-wrap [data-type="container"].page-container.footer-address-body,
.sc-crkit .site-footer-wrap [data-type="container"].page-container.footer-contact-links,
.sc-crkit .site-footer-wrap [data-type="container"].page-container.footer-social-links,
.sc-crkit .site-footer-wrap [data-type="container"].page-container.footer-link-column,
.sc-crkit .site-footer-wrap [data-type="container"].page-container.footer-link-cluster,
.sc-crkit .site-footer-wrap [data-type="container"].page-container.footer-link-list,
.sc-crkit .site-footer-wrap [data-type="container"].page-container.footer-subfooter {
    display: flex;
}

.sc-crkit .site-footer-wrap [data-type="link"].page-link {
    color: var(--color-text-inv);
    max-width: 100%;
    text-decoration: none;
    width: fit-content;
}

.sc-crkit .site-footer-wrap [data-type="link"].page-link.footer-logo-link,
.sc-crkit .site-footer-wrap [data-type="link"].page-link.footer-map-link {
    display: block;
}

.sc-crkit .site-footer-wrap [data-type="link"].page-link.footer-inline-link {
    display: inline-flex;
}

.sc-crkit .site-footer-wrap [data-type="link"].page-link.footer-social-link.btn.btn-shape-circle {
    background-color: transparent;
    border: 2px solid var(--color-text-inv);
    block-size: 2.125rem;
    border-radius: 999px;
    color: var(--color-text-inv);
    height: 2.125rem;
    inline-size: 2.125rem;
    min-block-size: 2.125rem;
    min-inline-size: 2.125rem;
    padding: 0;
    width: 2.125rem;
}

@media (min-width: 961px) {
    .site-footer-wrap .footer-panel-expander > .expander-toggle {
        display: none;
    }

    .site-footer-wrap .footer-panel-expander > .expander-content {
        display: flow-root !important;
        height: auto !important;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .site-footer-wrap .footer-main-shell {
        grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
        grid-template-areas:
            "contact programs"
            "rail rail";
    }

    .site-footer-wrap .footer-programs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .site-footer-wrap .footer-main-shell {
        grid-template-columns: minmax(20rem, 24rem) minmax(0, 1fr) minmax(16rem, 20rem);
        grid-template-areas: "contact programs rail";
    }

    .site-footer-wrap .footer-rail-panel {
        min-width: 0;
    }
}
