/*
 * EEPAC Week 1 2.8.1 — canonical immersive application boundary.
 * Loaded after wp_head() so the managed Week 1 pages remain independent of
 * the active WordPress theme while WordPress and Platform hooks still run.
 */
html.bepact-week1-immersive-document {
    width: 100%;
    min-width: 320px;
    min-height: 100%;
    background: #f4efe5;
    overflow-x: clip;
}
body.bepact-week1-immersive {
    --bepact-week1-adminbar-height: 0px;
    width: 100% !important;
    min-width: 320px !important;
    min-height: calc(100dvh - var(--bepact-week1-adminbar-height)) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f4efe5 !important;
    overflow-x: clip !important;
}
body.admin-bar.bepact-week1-immersive {
    --bepact-week1-adminbar-height: 32px;
}
.bepact-week1-immersive-skip {
    position: fixed;
    z-index: 100000;
    top: -120px;
    left: 8px;
    transform: none;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    color: #092d3e;
    font: 700 14px/1.2 system-ui, sans-serif;
    box-shadow: 0 4px 18px rgba(0,0,0,.2);
}
.bepact-week1-immersive-skip:focus {
    top: calc(var(--bepact-week1-adminbar-height) + 8px);
}
.bepact-week1-immersive-app {
    width: 100%;
    min-width: 0;
    min-height: calc(100dvh - var(--bepact-week1-adminbar-height));
    margin: 0;
    padding: 0;
    outline: 0;
}
.bepact-week1-immersive-app > .bepact-w1 {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100dvh - var(--bepact-week1-adminbar-height));
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}
.bepact-week1-immersive-app .bepact-w1-shell {
    width: 100%;
    min-height: calc(100dvh - var(--bepact-week1-adminbar-height));
}
.bepact-week1-immersive-app .bepact-w1-rail {
    position: sticky;
    top: var(--bepact-week1-adminbar-height);
    align-self: start;
    height: calc(100dvh - var(--bepact-week1-adminbar-height));
    max-height: calc(100dvh - var(--bepact-week1-adminbar-height));
    overflow-y: auto;
    overscroll-behavior: contain;
}
.bepact-week1-immersive-app .bepact-w1-workspace {
    min-height: calc(100dvh - var(--bepact-week1-adminbar-height));
}
.bepact-week1-immersive-app .bepact-w1-rail,
.bepact-week1-immersive-app .bepact-w1-topbar {
    border-radius: 0 !important;
}
.bepact-week1-immersive-app .bepact-w1-topbar {
    top: var(--bepact-week1-adminbar-height);
}
.bepact-week1-immersive-app .bepact-w1-current-idea {
    top: calc(var(--bepact-week1-adminbar-height) + 96px);
}
.bepact-week1-immersive-app > .bepact-w1-login,
.bepact-week1-immersive-app > .bepact-w1-alert {
    width: min(720px, calc(100% - 32px));
    margin: clamp(24px, 8vh, 90px) auto;
}
/* The facilitator workspace also owns the full application viewport. */
body.bepact-week1-immersive-facilitator .bepact-week1-immersive-app > .bepact-w1 {
    min-height: calc(100dvh - var(--bepact-week1-adminbar-height));
}
@media (max-width: 782px) {
    body.admin-bar.bepact-week1-immersive {
        --bepact-week1-adminbar-height: 46px;
    }
}
@media (max-width: 900px) {
    .bepact-week1-immersive-app .bepact-w1-rail {
        position: static;
        height: auto;
        max-height: none;
        overflow-y: visible;
    }
    .bepact-week1-immersive-app .bepact-w1-topbar {
        border-radius: 0 !important;
    }
}
@media print {
    html.bepact-week1-immersive-document,
    body.bepact-week1-immersive,
    .bepact-week1-immersive-app,
    .bepact-week1-immersive-app > .bepact-w1 {
        min-height: 0 !important;
        background: #fff !important;
    }
    .bepact-week1-immersive-skip {
        display: none !important;
    }
}
