/*
============================================================
 SHOTUNE WEBINARS — SHARED ISOLATION LAYER
 Standalone webinar CPT shell
============================================================
*/

html {
    scroll-behavior: smooth;
}

/*
 * WordPress itself owns the normal logged-in admin-bar offset
 * on the HTML element.
 *
 * The webinar body must NOT add another top margin, top padding,
 * transform, or positional offset.
 */
body,
body.admin-bar,
body.shotune-webinar-body,
body.admin-bar.shotune-webinar-body {
    margin: 0 !important;
    padding: 0 !important;
    top: auto !important;
    transform: none !important;
}

/*
 * Webinar owns its complete page surface.
 */
.shotune-webinar-page,
body.admin-bar .shotune-webinar-page,
body.shotune-webinar-body .shotune-webinar-page,
body.admin-bar.shotune-webinar-body .shotune-webinar-page {
    margin: 0 !important;
    padding: 0 !important;
    top: auto !important;
    position: relative;
}

.shotune-webinar-page,
.shotune-webinar-page * {
    box-sizing: border-box;
}

.shotune-webinar-page img {
    max-width: 100%;
    height: auto;
}

/*
 * Keep the logged-in WordPress toolbar intact.
 * Do not hide it and do not create another offset beneath it.
 */
#wpadminbar {
    margin: 0 !important;
}

/*
 * No inherited first-child spacing before the webinar hero.
 */
.shotune-webinar-page > :first-child {
    margin-top: 0 !important;
}

/*
 * Standalone shell must not inherit wrapper spacing from
 * a parent WordPress/theme container.
 */
body > .shotune-webinar-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
