/*
Theme Name: Eduma Child - School Management
Theme URI: https://eduma.thimpress.com/
Description: Child theme for Eduma providing full-width page templates, layout containment, and design integration for School Management Core.
Author: School Management Engineering Team
Author URI: https://github.com/school-management
Template: eduma
Version: 1.0.0
Text Domain: eduma-child
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* -------------------------------------------------------------------------
 * Layout Integration: Full-Width Container for School Management Portal
 * ------------------------------------------------------------------------- */
body.has-school-management-portal #main-content .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.has-school-management-portal .site-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Suppress redundant theme page titles when portal renders its own header */
body.has-school-management-portal .top_site_main {
    display: none !important;
}

/* Suppress sidebars on School Management portal pages */
body.has-school-management-portal .sidebar,
body.has-school-management-portal #sidebar,
body.has-school-management-portal aside.widget-area {
    display: none !important;
}

body.has-school-management-portal .content-area {
    width: 100% !important;
    float: none !important;
}

/* -------------------------------------------------------------------------
 * Portal Root Scope & Typography Harmonization
 * ------------------------------------------------------------------------- */
.sm-portal-root {
    width: 100%;
    margin: 0 auto;
    font-family: var(--thim-font-body-font-family, 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    color: var(--thim-font-body-color, #333333);
}

.sm-portal-root h1,
.sm-portal-root h2,
.sm-portal-root h3,
.sm-portal-root h4,
.sm-portal-root h5,
.sm-portal-root h6 {
    font-family: var(--thim-font-title-font-family, 'Roboto Slab', Georgia, serif);
    color: var(--thim-font-title-color, #273044);
}

/* Prevent nested scrollbars in theme content area */
.school-portal-fullwidth {
    width: 100%;
    min-height: 80vh;
    padding: 0;
    margin: 0;
}
