/* blocks_phase_columns — scoped styles. Split header above ruled phase
   columns. Header type mirrors blocks_card_grid so the two read as one page.
   Plain CSS, not Tailwind utilities: WindPress only JIT-compiles from the
   admin UI, so new utility classes would not be in its cache. */

.blocks-phase-columns {
    position: relative;
    box-sizing: border-box;
}

/* A background breaks out of .site_container so the colour runs edge to edge.
   z-index lifts it over the theme's 1000px .header-shader-overlay tail. */
.blocks-phase-columns--has-bg {
    z-index: 1;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

.bpc__inner {
    box-sizing: border-box;
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 20px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}
@media (min-width: 768px) {
    .bpc__inner {
        padding-top: 88px;
        padding-bottom: 88px;
    }
}
@media (min-width: 1024px) {
    .bpc__inner {
        padding-top: 120px;
        padding-bottom: 120px;
        gap: 64px;
    }
}

/* ---- Header ---- */

.bpc__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
@media (min-width: 1024px) {
    .bpc__header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        gap: 80px;
    }
}

.bpc__heading {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 640px;
    min-width: 0;
}

.bpc__eyebrow {
    margin: 0;
    color: #5e4c92;
    font-weight: 700;
    font-size: 13.75px;
    line-height: 17px;
    letter-spacing: 0.275px;
    text-transform: uppercase;
}

.bpc__h2 {
    margin: 0;
    color: #130041;
    font-weight: 900;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
@media (min-width: 1024px) {
    .bpc__h2 {
        font-size: 50px;
    }
}

.bpc__lede {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    max-width: 480px;
    min-width: 0;
}
@media (min-width: 1024px) {
    .bpc__lede {
        flex: 0 1 480px;
    }
}

.bpc__intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #3d464d;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}
@media (min-width: 768px) {
    .bpc__intro {
        font-size: 16px;
    }
}
.bpc__intro p {
    margin: 0;
    color: inherit; /* the theme colours bare <p>, which beats inheritance */
}
.bpc__intro a {
    color: #5e4c92;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Same pill as blocks_cta_band's light-theme button. */
.bpc__button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #130041;
    color: #ffffff;
    border-radius: 9999px;
    padding: 15px 28px 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow:
        0 20px 25px -5px rgba(19, 0, 65, 0.2),
        0 8px 10px -6px rgba(19, 0, 65, 0.2);
}
.bpc__button:hover,
.bpc__button:focus-visible {
    color: #ffffff;
}
.bpc__button svg,
.bpc__aside-link svg {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.bpc__button:hover svg,
.bpc__aside-link:hover svg {
    transform: translateX(6px);
}

/* ---- Phase columns ---- */

.bpc__phases {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
}
@media (min-width: 900px) {
    .blocks-phase-columns--cols-2 .bpc__phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blocks-phase-columns--cols-3 .bpc__phases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .blocks-phase-columns--cols-4 .bpc__phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
    .blocks-phase-columns--cols-4 .bpc__phases { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.bpc__phase {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 24px;
    border-top: 2px solid #130041;
    min-width: 0;
}

.bpc__phase-head {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 13.75px;
    font-weight: 700;
    line-height: 17px;
    letter-spacing: 0.275px;
    text-transform: uppercase;
    color: #130041;
}
.bpc__phase-num {
    color: #5e4c92;
    font-variant-numeric: tabular-nums;
}

.bpc__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bpc__item-title {
    margin: 0;
    color: #130041;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
@media (min-width: 1180px) {
    .bpc__item-title {
        font-size: 19px;
    }
}
.bpc__item-body {
    margin: 0;
    color: #3d464d;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.6;
}
.bpc__item-body a {
    color: #5e4c92;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- Aside ---- */

.bpc__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e5;
}
.bpc__aside-title {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #484550;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
}
.bpc__aside-tag {
    padding: 3px 8px;
    border: 1px solid #e0e0e5;
    border-radius: 6px;
    background: #ffffff;
    color: #75797c;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}
.bpc__aside-body {
    margin: 0;
    color: #75797c;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.6;
}
.bpc__aside-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: #5e4c92;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.bpc__aside-link:hover {
    color: #29165e;
}

@media (prefers-reduced-motion: reduce) {
    .bpc__button svg,
    .bpc__aside-link svg {
        transition: none;
    }
    .bpc__button:hover svg,
    .bpc__aside-link:hover svg {
        transform: none;
    }
}
