/* Homepage alignment. Loaded only by the public home route. */
body.ci2ma-wonapde-v2.page-home .wonapde-home-intro__body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "kicker" "title" "actions" "copy" "facts" !important;
    align-items: start !important;
    gap: 20px !important;
    width: 100% !important;
    min-width: 0 !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-home-intro__left,
body.ci2ma-wonapde-v2.page-home .wonapde-home-intro__right {
    display: contents !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-home-intro .wonapde-section-kicker {
    grid-area: kicker !important;
    justify-self: center !important;
    margin: 0 !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-home-intro h2 {
    grid-area: title !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-home-intro h2 > .wpe-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-home-intro h2 .wonapde-home-date,
body.ci2ma-wonapde-v2.page-home .wonapde-home-intro h2 .wonapde-home-venue,
body.ci2ma-wonapde-v2.page-home .wonapde-home-intro h2 .wonapde-home-city {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
    line-height: 1.22 !important;
    white-space: normal !important;
    text-wrap: wrap !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-home-intro h2 .wonapde-home-date {
    font-size: clamp(1.5rem, 5.8vw, 1.8rem) !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-home-intro h2 .wonapde-home-venue,
body.ci2ma-wonapde-v2.page-home .wonapde-home-intro h2 .wonapde-home-venue > span {
    font-size: clamp(1.4rem, 5.4vw, 1.65rem) !important;
    line-height: 1.22 !important;
    text-align: center !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-home-intro h2 .wonapde-home-city {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-home-actions {
    grid-area: actions !important;
    justify-self: center !important;
    width: min(100%, 300px) !important;
    margin: 0 !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-home-actions a {
    min-height: 48px !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-home-intro__left > p.wonapde-home-blurb {
    grid-area: copy !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-home-intro__left > p.wonapde-home-blurb .wpe-text,
body.ci2ma-wonapde-v2.page-home .wonapde-home-intro__left > p.wonapde-home-blurb .wpe-text * {
    text-align: inherit !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-home-facts {
    grid-area: facts !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    gap: 10px !important;
    position: static !important;
}

/* Override the legacy nth-of-type selector that fixes this block at 370px. */
body.ci2ma-wonapde-v2.page-home div.wonapde-main-column:nth-of-type(1) > section.wonapde-home-intro:nth-of-type(1) > div.wonapde-home-intro__body > div.wonapde-home-intro__right:nth-of-type(2) > .wonapde-home-facts {
    width: 100% !important;
    max-width: 100% !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-home-facts > div {
    min-width: 0 !important;
    padding: 14px 10px !important;
    gap: 8px !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-home-facts > div > strong,
body.ci2ma-wonapde-v2.page-home .wonapde-home-facts > div > span {
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-home-facts > div .wpe-text,
body.ci2ma-wonapde-v2.page-home .wonapde-home-facts > div .wpe-text * {
    font-size: inherit !important;
    line-height: inherit !important;
    text-align: inherit !important;
    margin: 0 !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-grid .wonapde-feature-card--call {
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 18px 20px !important;
}

body.ci2ma-wonapde-v2.page-home .wonapde-grid .wonapde-feature-card--call h3 {
    margin: 0 !important;
    line-height: 1.4 !important;
}

@media (min-width: 1200px) {
    body.ci2ma-wonapde-v2.page-home .wonapde-home-intro__body {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
        grid-template-areas: "kicker kicker" "title copy" "actions facts" !important;
        column-gap: 28px !important;
    }
}

@media (min-width: 1100px) {
    body.ci2ma-wonapde-v2.page-home.wonapde-editor-active .wonapde-modern-nav__menu {
        flex-wrap: wrap !important;
        column-gap: 4px !important;
        row-gap: 0 !important;
    }

    body.ci2ma-wonapde-v2.page-home.wonapde-editor-active .wonapde-modern-nav__link {
        min-height: 48px !important;
        padding: 14px 10px !important;
    }
}

@media (max-width: 600px) {
    body.ci2ma-wonapde-v2.page-home .wonapde-home-intro {
        padding: 22px 18px !important;
    }

    body.ci2ma-wonapde-v2.page-home .wonapde-home-intro__body {
        gap: 18px !important;
    }

    body.ci2ma-wonapde-v2.page-home .wonapde-home-facts {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.ci2ma-wonapde-v2.page-home .wonapde-home-facts > div {
        display: grid !important;
        grid-template-columns: 28px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        column-gap: 12px !important;
        row-gap: 3px !important;
        align-items: center !important;
        padding: 12px 16px !important;
        text-align: left !important;
    }

    body.ci2ma-wonapde-v2.page-home .wonapde-home-facts > div::before {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
        justify-self: center !important;
        margin: 0 !important;
    }

    body.ci2ma-wonapde-v2.page-home .wonapde-home-facts > div > strong,
    body.ci2ma-wonapde-v2.page-home .wonapde-home-facts > div > span {
        grid-column: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        font-size: 0.9375rem !important;
        text-align: left !important;
    }
}
