/* Python Editor content and navigation for the upstream LaunchKit theme. */
.launchkit {
    position: relative;
    isolation: isolate;
    --color-on-accent: #fff;
    --color-accent: var(--site-accent);
    --color-accent-hover: var(--site-accent-hover);
    --color-text-primary: var(--site-ink);
    --color-text-secondary: var(--site-muted);
}
.launchkit .background-gradient {
    z-index: -1;
    pointer-events: none;
}
.launchkit [id] {
    scroll-margin-top: 126px;
}
.skip {
    position: absolute;
    top: 8px;
    left: 16px;
    z-index: 1100;
    padding: 10px 14px;
    background: var(--color-background);
    transform: translateY(-160%);
}
.skip:focus { transform: none; }

.kit-hero .heading {
    max-width: 850px;
    padding-bottom: 12px;
}
.kit-hero h1, .editorial-intro h1 { letter-spacing: -.035em; }
.kit-hero .paragraph.l { max-width: 650px; margin-inline: auto; }
.kit-hero .button-group { flex-wrap: wrap; }
.kit-hero .button { min-height: 44px; }
.app-window {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-l);
    background: #171d26;
    box-shadow: 0 22px 64px #102d5329;
}
.app-window img { display: block; width: 100%; height: auto; }
.kit-hero [data-enter] { animation: intro .4s ease-out both; }
@keyframes intro {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.edition-grid { gap: 16px; }
.edition { min-width: 0; }
.edition h3, .edition p { margin-bottom: 0; }
.edition .feature-heading { min-height: 72px; }
.edition-media {
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius-m);
    background: #e2eaf6;
}
.edition-media img { width: 100%; height: 100%; object-fit: contain; }
.edition-media-ipad { background: #f9edd2; }
.edition .button { margin-top: auto; min-height: 44px; }

#tour .section-heading h2 { margin-top: 0; }
#tour .section-heading .lead { color: var(--color-text-secondary); }
.device-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 16px;
}
.device-videos article { min-width: 0; }
.device-videos video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-m);
    background: #151c27;
}
.device-videos .text-link { display: block; width: fit-content; padding-block: 8px; }

@media (max-width: 767px) {
    .kit-hero .heading { padding-block: 10px; }
    .edition .feature-heading { min-height: 0; }
    .device-videos { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .kit-hero [data-enter] { animation: none; }
}

.editorial-intro { padding-bottom: 16px; }
.editorial-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}
.editorial-jumps a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
}
.editorial-content p,
.editorial-content ol { max-width: 70ch; line-height: 1.65; }
.editorial-content { max-width: 760px; }
.editorial-content > section,
.editorial-content > article {
    padding-block: 28px;
    border-top: 1px solid var(--color-border-level-2);
}
.editorial-content h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    line-height: 1.14;
    margin-top: 0;
}
.editorial-content li { padding-inline-start: 6px; }
.editorial-content .button { display: inline-flex; }
.editorial-content code,
.editorial-content kbd { font-family: ui-monospace, monospace; font-size: .92em; }
.editorial-post img {
    width: 100%;
    height: auto;
    border: 1px solid var(--color-border-level-2);
    border-radius: var(--radius-l);
}
.editorial-content:has(.guide-layout) { max-width: none; }
.guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(18px, 4vw, 44px);
}
.guide-layout ol { margin-top: 0; padding-inline-start: 24px; }
.guide-screen { display: block; }
.guide-screen img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    border-radius: var(--radius-l);
    background: var(--color-surface);
}
@media (max-width: 700px) {
    .guide-layout { grid-template-columns: 1fr; }
    .guide-screen { max-width: 420px; }
}

.workflow-videos { margin-bottom: 24px; }
.recorded-demos video { aspect-ratio: 180 / 113; }
.portrait-videos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 280px)); }
.portrait-videos video { aspect-ratio: 9 / 16; }
