body.mobile-guide-page { --page-background: url('../../20_ASSETS/00_IMAGES/background_4k_v2.webp'); }
.mobile-guide-step { --guide-card-height: max(328px,calc(100svh - var(--header-height,92px) - 32px)); height: calc(var(--guide-card-height) + 32px); display: grid; place-items: center; padding: 16px; scroll-margin-top: 0; }

body.mobile-guide-page:not(.watch-guide-page) .mobile-guide-step {
    height: auto;
    min-height: calc(var(--guide-card-height) + 32px);
}
body.mobile-guide-page:not(.watch-guide-page) padelaf-guide-detail-card {
    width: min(100%,max(280px,calc((var(--guide-card-height) * .7 - 110px) * .675 + 67.2px)));
    max-width: 816px;
    grid-template-rows: auto max(100px,calc((var(--guide-card-height) * .7 - 116px) * 1.2)) auto;
}
body.mobile-guide-page:not(.watch-guide-page) .mobile-guide-step-landscape padelaf-guide-detail-card {
    width: min(100%,max(280px,calc((var(--guide-card-height) * .7 - 116px) * 1.2 * 16 / 9 + 48px)));
    max-width: 1200px;
    grid-template-rows: auto auto auto;
}
.mobile-guide-step-landscape .guide-detail-card-image {
    height: auto;
    max-height: max(100px,calc((var(--guide-card-height) * .7 - 116px) * 1.2));
    object-fit: contain;
}

/* Full-height mobile-app guide panels, below the menu. */
html:has(body.mobile-guide-page:not(.watch-guide-page)) {
    scroll-snap-type: y proximity;
    scroll-padding-top: var(--header-height,92px);
}
body.mobile-guide-page:not(.watch-guide-page) .guide-return-row { position: fixed; top: var(--header-height,92px); right: 0; left: 0; height: auto; }
body.mobile-guide-page:not(.watch-guide-page) .mobile-guide-step {
    --guide-card-height: max(328px,calc(100svh - var(--header-height,92px) - 24px));
    height: calc(var(--guide-card-height) + 24px);
    min-height: 0;
    padding: 12px 16px;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    scroll-margin-top: 0;
}
body.mobile-guide-page:not(.watch-guide-page) .mobile-guide-step padelaf-guide-detail-card {
    height: var(--guide-card-height);
    grid-template-rows: auto minmax(0,1fr) auto;
}
body.mobile-guide-page:not(.watch-guide-page) .mobile-guide-step .guide-detail-card-image {
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}
body.mobile-guide-page:not(.watch-guide-page) .back-to-top { right: 16px; width: 52px; height: 52px; min-height: 52px; font-size: 28px; }
@media (max-width: 600px) {
    body.mobile-guide-page:not(.watch-guide-page) .mobile-guide-step { padding-inline: 12px; }
    body.mobile-guide-page:not(.watch-guide-page) .guide-detail-card-title { font-size: clamp(18px,5vw,24px); }
    body.mobile-guide-page:not(.watch-guide-page) .guide-detail-card-description { font-size: clamp(16px,4.5vw,20px); line-height: 1.35; }
    body.mobile-guide-page:not(.watch-guide-page) .back-to-top { right: 12px; width: 30px; height: 30px; min-height: 30px; font-size: 16px; }
    body.mobile-guide-page:not(.watch-guide-page) .guide-return-row .Comp_10_Button_Cercle_Icon_Style_1 { width: 30px; height: 30px; font-size: 18px; border-width: 2px; }
    body.mobile-guide-page:not(.watch-guide-page) .guide-return-row .Comp_10_Button_Cercle_Icon_Style_1 svg { width: 16px; height: 16px; }
}
body.mobile-guide-page:not(.watch-guide-page) .guide-return-row { left: auto; right: 6px; width: auto; max-width: none; margin-inline: 0; padding-inline: 0; }
