/*
Theme Name: Spellnora Astra Child
Description: Custom WordPress child theme for Spellnora
Author: Spellnora
Template: astra
Version: 1.0.0
Text Domain: spellnora-astra-child
*/
/* =========================================
   SPELLNORA — FULL WIDTH PAGE LAYOUT
   Desktop, Tablet and Mobile
========================================= */

/* Remove Astra's default content restrictions */
body:not(.wp-admin) .site-content,
body:not(.wp-admin) .site-content > .ast-container,
body:not(.wp-admin) #primary,
body:not(.wp-admin) #main,
body:not(.wp-admin) .site-main,
body:not(.wp-admin) .entry-content {
    width: 100% !important;
    max-width: none !important;
}

/* Remove outer page margins and padding */
body:not(.wp-admin) .site-content > .ast-container,
body:not(.wp-admin) #primary,
body:not(.wp-admin) #main,
body:not(.wp-admin) .site-main {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove Astra boxed page styling */
body:not(.wp-admin) .ast-separate-container #primary,
body.ast-separate-container #primary,
body.ast-separate-container .ast-article-single {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Allow custom Spellnora sections to fill the screen */
.snh,
.snh-hero,
.snh-intro,
.snh-practices,
.snh-story,
.snh-questions,
.snh-process,
.snh-faq,
.snh-journal,
.snh-finale {
    width: 100%;
    max-width: none;
}

/* Keep content readable inside full-width sections */
.snh .snh-container {
    width: min(100% - 48px, 1440px);
    max-width: 1440px;
    margin-inline: auto;
}

/* Mobile spacing */
@media (max-width: 767px) {
    .snh .snh-container {
        width: calc(100% - 32px);
    }
}

/* Prevent accidental horizontal scrolling */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}