.xd-program-snapshot {
    position: relative;
    width: 100%;
    color: var(--xd-ps-text, #1f1b24);
}

.xd-program-snapshot__shell {
    position: relative;
    width: 100%;
}

.xd-program-snapshot__card {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    background: var(--xd-ps-bg, #f3eff9);
    border-radius: 14px;
    box-sizing: border-box;
    padding: 28px 28px 26px;
    box-shadow: 0 18px 40px rgba(35, 23, 51, 0.08);
}

/* The float is native sticky, not a JS-driven transform. The browser runs sticky on the
   compositor, so it tracks scroll exactly — no per-frame main-thread work, and nothing to
   lag behind async scrolling (which is what made the old transform version jitter in
   Firefox). JS only sets --xd-ps-sticky-top and the shell height, and only on resize. */
.xd-program-snapshot.is-sticky .xd-program-snapshot__card {
    position: sticky;
    top: var(--xd-ps-sticky-top, 24px);
}

.xd-program-snapshot__title {
    margin: 0 0 24px;
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--xd-ps-text, #1f1b24);
}

.xd-program-snapshot__rows {
    display: grid;
    gap: 18px;
}

.xd-program-snapshot__row {
    font-size: 18px;
    line-height: 1.45;
    color: var(--xd-ps-text, #1f1b24);
}

.xd-program-snapshot__label {
    font-weight: 800;
    margin-right: 6px;
}

.xd-program-snapshot__value {
    color: var(--xd-ps-text, #1f1b24);
}

a.xd-program-snapshot__value,
a.xd-program-snapshot__value:visited {
    text-decoration: underline;
    cursor: pointer;
}

a.xd-program-snapshot__value:hover,
a.xd-program-snapshot__value:focus-visible {
    color: var(--xd-ps-text, #1f1b24);
    text-decoration: none;
}

.xd-program-snapshot__divider {
    height: 1px;
    margin: 28px 0 24px;
    background: var(--xd-ps-divider, #a8a0b1);
    opacity: 0.9;
}

.xd-program-snapshot__contact {
    margin-bottom: 18px;
}

.xd-program-snapshot__contact-title {
    margin: 0 0 25px 0;
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--xd-ps-text, #1f1b24);
}

.xd-program-snapshot__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.xd-program-snapshot__button,
.xd-program-snapshot__button:visited {
    position: relative;
    isolation: isolate;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 12px 14px;
    box-sizing: border-box;
    font-size: 19px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, border-color 180ms ease;
}

.xd-program-snapshot__button:hover,
.xd-program-snapshot__button:focus-visible {
    color: black !important;
    text-decoration: none !important;
}

.xd-program-snapshot__button--primary,
.xd-program-snapshot__button--primary:visited {
    background-color: var(--xd-ps-primary-bg, #efbb47);
    color: var(--xd-ps-primary-text, #1c140f);
    border: 2px solid var(--xd-ps-primary-bg, #efbb47);
}

.xd-program-snapshot__button--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(45deg, #ffb92a, #fbd179);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.xd-program-snapshot__button--primary:hover::after,
.xd-program-snapshot__button--primary:focus-visible::after {
    opacity: 1;
}

.xd-program-snapshot__button--secondary,
.xd-program-snapshot__button--secondary:visited {
    background: transparent;
    color: var(--xd-ps-secondary-text, #3f2b63);
    border: 2px solid var(--xd-ps-primary-bg, #efbb47);
}

/* Replaces the divider + Contact heading + rows block when the module is set to show a
   button instead, so it takes the same vertical position and full card width. */
.xd-program-snapshot__button--contact {
    width: 100%;
    margin: 28px 0 18px;
}

@media (max-width: 991px) {
    .xd-program-snapshot__card {
        max-width: none;
        margin-left: 0;
        padding: 26px 24px 24px;
        box-shadow: none;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
}

/* Stacked above the content on phones: a rounded card with room above (hero) and below (breadcrumbs). */
@media (max-width: 767px) {
    .xd-program-snapshot__card {
        margin: 32px 0;
        border-radius: 14px;
    }
}

@media (max-width: 575px) {
    .xd-program-snapshot__title {
        margin-bottom: 22px;
        line-height: 1.2;
    }

    .xd-program-snapshot__actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}
