/* Keep the live guide beside the introduction and directly below the scanner. */
.hero-layout.rubysees-guide-layout {
    grid-template-areas: "intro detector" "intro guide";
    grid-template-rows: auto auto;
    row-gap: 18px;
    align-items: start;
}

.rubysees-guide-layout > div:first-child {
    grid-area: intro;
    align-self: start;
}

.rubysees-guide-layout > #detectorPanel {
    grid-area: detector;
}

.rubysees-guide-layout > #guide {
    grid-area: guide;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 16px 0 0 !important;
    border-top: 1px solid var(--line) !important;
    align-self: start !important;
}

.rubysees-guide-layout > #guide h2,
.rubysees-guide-layout > #guide .guide-copy {
    max-width: 100% !important;
}

.rubysees-guide-layout > #guide .guide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px 20px !important;
    margin-top: 12px !important;
}

.rubysees-guide-layout > #guide.hidden {
    overflow: hidden !important;
    padding-top: 0 !important;
    border-top-width: 0 !important;
}

@media (min-width: 1001px) and (max-height: 850px) {
    .hero.rubysees-guide-hero {
        padding-top: calc(var(--nav-h) + var(--notice-h) + 12px);
    }
}

@media (min-width: 1001px) and (max-height: 750px) {
    .hero-layout.rubysees-guide-layout {
        row-gap: 12px;
    }
    .rubysees-guide-layout > #guide {
        display: grid !important;
        grid-template-columns: max-content minmax(0, 1fr);
        grid-template-areas: "kicker title" "copy copy" "steps steps" "status status";
        column-gap: 10px;
        align-items: center;
        padding-top: 12px !important;
    }
    .rubysees-guide-layout > #guide .guide-kicker {
        grid-area: kicker;
    }
    .rubysees-guide-layout > #guide h2 {
        grid-area: title;
        margin: 0 !important;
    }
    .rubysees-guide-layout > #guide .guide-copy {
        grid-area: copy;
        margin-top: 6px !important;
    }
    .rubysees-guide-layout > #guide .guide-list {
        grid-area: steps;
        gap: 5px 20px !important;
        margin-top: 9px !important;
    }
    .rubysees-guide-layout > #guide #fedoraGuideStatus {
        grid-area: status;
        min-height: 0 !important;
        margin-top: 8px !important;
        padding-top: 6px !important;
    }
}

@media (max-width: 1000px) {
    .hero-layout.rubysees-guide-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "intro" "detector" "guide";
        grid-template-rows: auto auto auto;
        row-gap: 22px;
    }
    .rubysees-guide-layout > #detectorPanel {
        margin-top: 12px;
    }
}

@media (max-width: 420px) {
    .rubysees-guide-layout > #guide .guide-list {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 5px !important;
    }
}

/* Keep the site's original state transitions in normal motion mode. */
@media (prefers-reduced-motion: reduce) {
    .rubysees-guide-layout > #guide,
    .rubysees-guide-layout > #guide .guide-step,
    .rubysees-guide-layout > #guide .guide-step .guide-icon {
        animation: none !important;
        transition: none !important;
    }
}
