/* =========================================================
   McHome is a phone app. On wider screens, show it as a
   centred phone-width column instead of stretching it.
   Loaded last on every page so it can override page styles.
   ========================================================= */
/* body is the "screen" the page styles measure against
   (their @container rules and cqw sizes), so they behave the
   same on a real phone and inside the desktop column */
body {
    container-type: inline-size;
}

@media (min-width: 600px) {
    html {
        min-height: 100%;
        background: #1f1f1f;
    }

    body {
        position: relative;
        max-width: 480px;
        min-height: 100vh;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow-x: hidden;
        box-shadow: 0 0 80px rgb(0 0 0 / .5);
    }

    /* things pinned to the screen follow the column */
    .navbar,
    .container-pop {
        left: 50% !important;
        right: auto !important;
        width: 100% !important;
        max-width: 480px;
        transform: translateX(-50%);
    }
}
