/* Shared microsite tokens + primitives.
   Prepended to every IA block stylesheet so blocks render correctly
   in the Gutenberg editor too (where the page-level base CSS never
   loads). Safe duplicate of the base layer on the front end. */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Poppins:wght@400;500;600;700&display=swap');

.ps-micro {
    --psm-ink: #1B0B3A;
    --psm-ink-2: #2B2049;
    --psm-purple: #7953FF;
    --psm-purple-soft: #EFEAFF;
    --psm-teal: #80DFD9;
    --psm-mint: #E0FAF9;
    --psm-mint-card: #ECF5F4;
    --psm-gold: #F8BC38;
    --psm-gold-hover: #EFAD1E;
    --psm-body: #4B4560;
    --psm-white: #FFFFFF;
    --psm-serif: 'Libre Baskerville', Georgia, serif;
    --psm-sans: 'Poppins', -apple-system, 'Segoe UI', Roboto, sans-serif;
    --psm-max: 1240px;
    --psm-pad: clamp(20px, 4vw, 48px);
    --psm-radius: 16px;
    font-family: var(--psm-sans);
    color: var(--psm-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.ps-micro *, .ps-micro *::before, .ps-micro *::after { box-sizing: border-box; }
.ps-micro h1, .ps-micro h2, .ps-micro h3, .ps-micro h4 {
    font-family: var(--psm-serif);
    color: var(--psm-ink);
    line-height: 1.22;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    font-weight: 700;
    text-wrap: balance;
}
.ps-micro p { margin: 0 0 1em; }
.ps-micro img { max-width: 100%; height: auto; display: block; }
.ps-micro a { color: var(--psm-purple); text-decoration: none; }
.ps-micro a:hover { text-decoration: none; }
.ps-micro button { font-family: inherit; }
.ps-micro ul, .ps-micro ol { margin: 0; padding: 0; list-style: none; }
.ps-micro .psm-wrap {
    max-width: var(--psm-max);
    margin: 0 auto;
    padding-left: var(--psm-pad);
    padding-right: var(--psm-pad);
}
.ps-micro .psm-h2 { font-size: clamp(26px, 3.2vw, 38px); text-align: center; }
.ps-micro .psm-lede { max-width: 720px; margin: 0 auto 1.5em; text-align: center; font-size: 16px; text-wrap: balance; }
.ps-micro .psm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--psm-sans); font-size: 15px; font-weight: 600; line-height: 1;
    padding: 16px 28px; border-radius: 999px; border: 0; cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.ps-micro .psm-btn--gold { background: var(--psm-gold); color: var(--psm-ink); }
.ps-micro .psm-btn--gold:hover { background: var(--psm-gold-hover); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(27,11,58,.28); }
.ps-micro .psm-btn--ghost { background: var(--psm-white); color: var(--psm-ink); box-shadow: 0 2px 10px rgba(27,11,58,.18); }
.ps-micro .psm-play {
    display: inline-flex; align-items: center; gap: 12px; font-weight: 600;
    color: var(--psm-white); cursor: pointer; background: none; border: 0;
    font-family: var(--psm-sans); font-size: 15px;
}
.ps-micro .psm-play__disc {
    width: 44px; height: 44px; border-radius: 50%; background: var(--psm-white);
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.ps-micro .psm-play__disc svg { margin-left: 3px; }

/* ================= block styles ================= */
/* IA – Implementation */
.ps-micro .psm-impl {
    background: var(--psm-mint-card);
    padding: clamp(56px, 7vw, 96px) 0;
    position: relative;
    overflow: hidden;
}
/* Layered media: bg photo, animated wave, subject cutout.
   Bg and overlay share dimensions and identical cover/position,
   so they stay pixel-aligned; the wave animates between them. */
.ps-micro .psm-impl__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.ps-micro .psm-impl__layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.ps-micro .psm-impl__layer--bg,
.ps-micro .psm-impl__layer--overlay {
    opacity: 1;
    filter: none;
}
.ps-micro .psm-impl__layer--wave {
    height: auto;
    top: 46%;
    bottom: auto;
    transform: translateY(-50%);
    object-fit: unset;
    opacity: 1;
}
.ps-micro .psm-impl .psm-wrap { position: relative; z-index: 1; }
.ps-micro .psm-impl__card {
    background: var(--psm-white);
    border-radius: 20px;
    max-width: 560px;
    padding: clamp(28px, 4vw, 48px);
    box-shadow: 0 30px 70px rgba(27, 11, 58, .18);
}
.ps-micro .psm-impl__heading {
    font-size: clamp(24px, 2.8vw, 31px);
    margin-bottom: 32px;
}

/* Accordion */
.ps-micro .psm-acc__item {
    border-bottom: 1px solid rgba(27, 11, 58, .12);
}
.ps-micro .psm-acc__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: 0;
    padding: 18px 0;
    cursor: pointer;
    font-family: var(--psm-sans);
    text-align: left;
}
.ps-micro .psm-acc__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--psm-ink);
    transition: color .15s ease;
}
.ps-micro .psm-acc__item.is-open .psm-acc__title { color: var(--psm-purple); }

.ps-micro .psm-acc__toggle {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}
.ps-micro .psm-acc__toggle::before,
.ps-micro .psm-acc__toggle::after {
    content: "";
    position: absolute;
    background: var(--psm-ink);
    transition: transform .2s ease, background .15s ease;
}
.ps-micro .psm-acc__toggle::before {
    left: 0; right: 0; top: 7px; height: 2px;
}
.ps-micro .psm-acc__toggle::after {
    top: 0; bottom: 0; left: 7px; width: 2px;
}
.ps-micro .psm-acc__item.is-open .psm-acc__toggle::before { background: var(--psm-purple); }
.ps-micro .psm-acc__item.is-open .psm-acc__toggle::after { transform: scaleY(0); }

.ps-micro .psm-acc__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
}
.ps-micro .psm-acc__body p {
    font-size: 14px;
    padding-bottom: 20px;
    margin: 0;
}

/* Hover state on accordion heads */
.ps-micro .psm-acc__head:hover .psm-acc__title { color: var(--psm-purple); }
.ps-micro .psm-acc__head:hover .psm-acc__toggle::before,
.ps-micro .psm-acc__head:hover .psm-acc__toggle::after { background: var(--psm-purple); }

/* No divider after the final accordion item */
.ps-micro .psm-impl .psm-acc__item:last-child { border-bottom: 0; }

/* Mobile: accordion card full width on white, photo alone below it */
@media (max-width: 900px) {
    .ps-micro .psm-impl {
        display: flex;
        flex-direction: column-reverse;
        background: var(--psm-white);
        padding: 0;
    }
    .ps-micro .psm-impl .psm-wrap {
        max-width: none;
        padding: 0;
        width: 100%;
    }
    .ps-micro .psm-impl__card {
        max-width: none;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: clamp(32px, 8vw, 48px) var(--psm-pad);
    }
    .ps-micro .psm-impl__media { position: static; }
    .ps-micro .psm-impl__layer--bg {
        position: static;
        width: 100%;
        height: auto;
        object-fit: unset;
    }
    .ps-micro .psm-impl__layer--wave,
    .ps-micro .psm-impl__layer--overlay { display: none; }
}
