/* ============================================================
 * 0. HEADER, MOBILE DRAWER & FOOTER RESPONSIVE FIXES (AUDIT P0-P3)
 * ============================================================ */
.ds-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    max-width: 100% !important;
    overflow-x: clip !important;
}
@media (max-width: 1023px) {
    .ds-header-actions .ds-auth-guest,
    .ds-header-actions .ds-auth-logged-in,
    .ds-header-actions .ds-btn-ghost,
    .ds-header-actions .ds-btn-red { display: none !important; }
    .ds-hamburger {
        display: inline-flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .ds-hamburger .ds-bar,
    .ds-hamburger span {
        width: 20px !important;
        height: 2px !important;
        border-radius: 2px !important;
        display: block !important;
    }
    .ds-drawer-close {
        min-width: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}
.ds-mobile-drawer .ds-drawer-actions,
.tcm-drawer .ds-drawer-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
}
.ds-mobile-drawer .ds-drawer-actions a,
.ds-mobile-drawer .ds-drawer-actions button,
.ds-mobile-drawer .ds-btn,
.ds-mobile-drawer .ds-btn-ghost,
.ds-mobile-drawer .ds-btn-red {
    width: 100% !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}
@media (max-width: 1023px) {
    .ds-footer a, .ds-back-to-top {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
    }
}
.ds-logo-link img { height: auto !important; }

/* ============================================================
 * 1. UNIVERSAL FULL-WIDTH & DIVI SIDEBAR ELIMINATOR
 * Eliminates Divi / WordPress theme empty sidebars and white
 * margins on wide desktop viewports (1920px+, 1080p, 4K).
 * ============================================================ */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
#page-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding-top: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
#et-main-area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
#main-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
#main-content .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
}
#main-content .container:before {
    display: none !important;
    content: none !important;
}
#content-area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}
#left-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
#sidebar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.et_pb_section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.et_pb_row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.et-db #et-boc .et-l {
    width: 100% !important;
    max-width: 100% !important;
}

/* ============================================================
 * 2. HOMEPAGE FULL-BLEED SECTIONS & AUTO-CENTERING
 * ============================================================ */
.ds-home-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.ds-h-hero,
.ds-h-sec,
.ds-h-stats,
.ds-h-mca-strip {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.ds-h-container {
    max-width: 1320px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* ============================================================
 * 3. DIRECTORY SUBPAGES: 1320px AUTO-CENTERED ON WIDE SCREENS
 * ============================================================ */
.dirsuite-directory,
.dirsuite-profile,
.dirsuite-dashboard,
.dirsuite-wizard,
.dirsuite-industries-grid-wrap,
.dirsuite-states-grid-wrap,
.dirsuite-industry-archive-inner,
.dirsuite-state-archive-inner,
.dirsuite-pricing-wrap,
.dirsuite-rfq-container {
    max-width: 1320px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* ============================================================
 * 4. GLOBAL HEADER & FOOTER FULL-WIDTH
 * ============================================================ */
#ds-global-header,
#ds-global-footer {
    width: 100% !important;
    max-width: 100% !important;
}
.ds-header-container,
.ds-footer-container {
    max-width: 1320px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 1024px) {
    .dirsuite-directory,
    .dirsuite-dashboard,
    .dirsuite-industries-grid-wrap,
    .dirsuite-states-grid-wrap,
    .dirsuite-industry-archive-inner,
    .dirsuite-state-archive-inner,
    .dirsuite-pricing-wrap,
    .dirsuite-rfq-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}
@media (max-width: 640px) {
    .dirsuite-directory,
    .dirsuite-dashboard,
    .dirsuite-industries-grid-wrap,
    .dirsuite-states-grid-wrap,
    .dirsuite-industry-archive-inner,
    .dirsuite-state-archive-inner,
    .dirsuite-pricing-wrap,
    .dirsuite-rfq-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* v2 Audit Polish: Keep .ds-header-actions flex on mobile/tablet so .ds-hamburger stays visible, and prevent drawer button wrapping */
@media (max-width: 1023px) {
    .ds-header-actions {
        display: flex !important;
        align-items: center !important;
    }
}
.ds-mobile-drawer .ds-drawer-actions a,
.ds-mobile-drawer .ds-drawer-actions button,
.tcm-drawer .ds-drawer-actions a,
.tcm-drawer .ds-drawer-actions button {
    white-space: nowrap !important;
}
