.gh-promo {
    inline-size: 100%;
    min-inline-size: 0;
    margin-inline: auto;
    container: gh-promotion / inline-size;
}

.gh-promo--hero.gh-promo--contained { max-inline-size: 1120px; }
.gh-promo--story.gh-promo--contained { max-inline-size: 420px; }

.gh-promo__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    border-radius: 26px;
}

.gh-promo__track:focus-visible,
.gh-promo__nav button:focus-visible { outline: 2px solid #3b82f6; outline-offset: 3px; }
.gh-promo.is-ready .gh-promo__track { scrollbar-width: none; }
.gh-promo.is-ready .gh-promo__track::-webkit-scrollbar { display: none; }

.gh-promo__slide {
    --gh-promo-start: #0a1223;
    --gh-promo-end: #172d56;
    --gh-promo-accent: #678bff;
    --gh-promo-ink: #f8faff;
    --gh-promo-muted: #ccd6e8;
    --gh-promo-button: #ffffff;
    --gh-promo-button-ink: #0e1729;
    position: relative;
    box-sizing: border-box;
    display: grid;
    align-items: center;
    justify-items: start;
    min-inline-size: 0;
    min-block-size: var(--gh-promo-height, 380px);
    padding: clamp(22px, 6cqi, 76px);
    overflow: hidden;
    isolation: isolate;
    scroll-snap-align: start;
    background: linear-gradient(120deg, var(--gh-promo-start) 20%, var(--gh-promo-end));
    color: var(--gh-promo-ink);
}

.gh-promo__slide--glacier {
    --gh-promo-start: #f7fbff; --gh-promo-end: #d9e9ff; --gh-promo-accent: #3478fa;
    --gh-promo-ink: #102039; --gh-promo-muted: #344c70; --gh-promo-button: #153b89; --gh-promo-button-ink: #fff;
}
.gh-promo__slide--ember {
    --gh-promo-start: #26132a; --gh-promo-end: #662949; --gh-promo-accent: #ff974f;
    --gh-promo-ink: #fffbf6; --gh-promo-muted: #f0cfdc; --gh-promo-button: #ffd0a3; --gh-promo-button-ink: #31182a;
}
.gh-promo__slide--mono {
    --gh-promo-start: #fefdf9; --gh-promo-end: #eae8df; --gh-promo-accent: #606463;
    --gh-promo-ink: #181b1c; --gh-promo-muted: #434947; --gh-promo-button: #1b2221; --gh-promo-button-ink: #fff;
}
.gh-promo__slide--mint {
    --gh-promo-start: #eafdf3; --gh-promo-end: #bdebd5; --gh-promo-accent: #178968;
    --gh-promo-ink: #112b22; --gh-promo-muted: #2f5648; --gh-promo-button: #0d5340; --gh-promo-button-ink: #fff;
}
.gh-promo__slide--violet {
    --gh-promo-start: #191331; --gh-promo-end: #412a6d; --gh-promo-accent: #b4a0ff;
    --gh-promo-ink: #fbf6ff; --gh-promo-muted: #e2d6f5; --gh-promo-button: #e9dcff; --gh-promo-button-ink: #24163b;
}

.gh-promo__art,
.gh-promo__image { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; }
.gh-promo__image { object-fit: cover; opacity: calc(1 - var(--gh-promo-image-shade, .72)); }

.gh-promo__art {
    opacity: .75;
    background: radial-gradient(ellipse at 86% 48%, color-mix(in srgb, var(--gh-promo-accent) 34%, transparent), transparent 45%);
}

.gh-promo__art::before,
.gh-promo__art::after {
    content: "";
    position: absolute;
    inset-inline-start: 65%;
    inset-block-start: 12%;
    aspect-ratio: 1;
    inline-size: min(480px, 48%);
    border-radius: 42% 58% 55% 45%;
    transform: rotate(-25deg);
    border: 1px solid color-mix(in srgb, var(--gh-promo-accent) 55%, transparent);
    background: repeating-radial-gradient(circle at 60% 42%, transparent 0 22px, color-mix(in srgb, var(--gh-promo-accent) 26%, transparent) 23px 24px);
}
.gh-promo__art::after { inset-inline-start: 72%; inset-block-start: 29%; inline-size: min(300px, 36%); transform: rotate(14deg); }
.gh-promo__slide--mono .gh-promo__art::before { border-radius: 8%; background: repeating-linear-gradient(42deg, transparent 0 16px, #343b3b2f 17px 18px); }
.gh-promo__slide--mint .gh-promo__art::before,
.gh-promo__slide--glacier .gh-promo__art::before {
    border-radius: 14%;
    background: repeating-linear-gradient(0deg, transparent 0 28px, color-mix(in srgb, var(--gh-promo-accent) 27%, transparent) 29px 30px),
        repeating-linear-gradient(90deg, transparent 0 28px, color-mix(in srgb, var(--gh-promo-accent) 27%, transparent) 29px 30px);
}

.gh-promo__content {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 14px;
    max-inline-size: min(61%, 620px);
    min-inline-size: 0;
    overflow-wrap: anywhere;
}
.gh-promo .gh-promo__eyebrow,
.gh-promo .gh-promo__title,
.gh-promo .gh-promo__description { margin: 0; }
.gh-promo .gh-promo__eyebrow { color: var(--gh-promo-muted); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.gh-promo .gh-promo__title { color: var(--gh-promo-ink); font-size: clamp(1.85rem, 5.3cqi, 4.4rem); font-weight: 750; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.gh-promo .gh-promo__description { color: var(--gh-promo-muted); font-size: clamp(.98rem, 1.7cqi, 1.2rem); line-height: 1.55; }
.gh-promo__offer {
    padding: .25rem .7rem;
    border: 1px solid color-mix(in srgb, var(--gh-promo-ink) 36%, transparent);
    border-radius: 999px;
    color: var(--gh-promo-ink);
    font-size: .88rem;
    font-weight: 650;
}
.gh-promo a.gh-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-block-size: 44px;
    max-inline-size: 100%;
    padding: .65rem 1rem;
    border-radius: 12px;
    background-color: var(--gh-promo-button);
    color: var(--gh-promo-button-ink);
    font-weight: 700;
    text-decoration: none;
}
.gh-promo a.gh-promo__cta:hover { background-color: color-mix(in srgb, var(--gh-promo-button) 86%, var(--gh-promo-accent)); }
.gh-promo a.gh-promo__cta:focus-visible { outline: 2px solid var(--gh-promo-ink); outline-offset: 3px; }

.gh-promo--story .gh-promo__slide {
    align-items: end;
    aspect-ratio: var(--gh-promo-ratio, 9 / 16);
    min-block-size: min(110cqi, 380px);
    padding: clamp(18px, 8cqi, 44px);
}
.gh-promo--story .gh-promo__content { max-inline-size: 100%; }
.gh-promo--story .gh-promo__title { font-size: clamp(1.9rem, 12cqi, 4.5rem); }
.gh-promo--story .gh-promo__art { background-position: center; background-image: radial-gradient(ellipse at 68% 20%, color-mix(in srgb, var(--gh-promo-accent) 50%, transparent), transparent 63%); }
.gh-promo--story .gh-promo__art::before { inset-inline-start: 41%; inset-block-start: 7%; inline-size: 72%; }
.gh-promo--story .gh-promo__art::after { inset-inline-start: 55%; inset-block-start: 14%; inline-size: 57%; }

.gh-promo__nav {
    --gh-promo-nav-ink: #101b2c;
    --gh-promo-nav-bg: #f1f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-block-start: 10px;
    color: var(--gh-promo-nav-ink);
}
.gh-promo__nav[hidden] { display: none; }
.gh-promo .gh-promo__nav button {
    display: grid;
    place-items: center;
    min-inline-size: 44px;
    min-block-size: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--gh-promo-nav-bg);
    color: inherit;
    font: inherit;
    font-size: 1.35rem;
    cursor: pointer;
}
.gh-promo .gh-promo__nav .gh-promo__dot { min-inline-size: 28px; background: transparent; }
.gh-promo .gh-promo__nav button[hidden] { display: none; }
.gh-promo__dot::before { content: ""; inline-size: 7px; block-size: 7px; border-radius: 99px; background: currentColor; opacity: .35; }
.gh-promo__dot[aria-current="true"]::before { inline-size: 16px; opacity: 1; }
[dir="rtl"] .gh-promo__nav [data-gh-promo-step] span,
[dir="rtl"] .gh-promo__cta span { transform: scaleX(-1); }

@container gh-promotion (max-width: 540px) {
    .gh-promo--hero .gh-promo__slide { min-block-size: var(--gh-promo-height, 320px); }
    .gh-promo--hero .gh-promo__content { max-inline-size: 100%; }
    .gh-promo--hero .gh-promo__art { opacity: .44; }
}

@media (prefers-reduced-motion: no-preference) {
    .gh-promo[data-motion="yes"].is-in-view .gh-promo__slide.is-current .gh-promo__art::before {
        animation: gh-promo-drift 14s ease-in-out infinite alternate;
    }
}
@keyframes gh-promo-drift {
    to { transform: translate(-8%, 6%) rotate(-11deg) scale(1.08); }
}
