/* =========================================================
   Solin System Custom Page Mobile Responsiveness
   - ARIA / AtiCore / Open Source Business
   - Desktop layout remains unchanged; overrides are mobile-only.
   ========================================================= */

@media (max-width: 767.98px) {
    /* -----------------------------------------------------
       Shared ARIA / AtiCore product-page fixes
       ----------------------------------------------------- */
    html.page-aria [style*="width: calc(50% - 12px)"][style*="min-width: 250px"],
    html.page-aticore [style*="width: calc(50% - 12px)"][style*="min-width: 250px"] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    /* Comparison rows and flow arrows must grow when text wraps. */
    html.page-aria [style*="height: 52px"],
    html.page-aticore [style*="height: 52px"] {
        height: auto !important;
        min-height: 52px;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    html.page-aria [style*="height: 52px"] > span,
    html.page-aticore [style*="height: 52px"] > span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    /* Wide comparison tables keep their intended width but scroll inside the viewport. */
    html.page-aria .table-responsive,
    html.page-aticore .table-responsive {
        max-width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    html.page-aria .table-responsive.overflow-hidden,
    html.page-aticore .table-responsive.overflow-hidden {
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    /* ARIA procurement/support note was desktop-only nowrap. */
    html.page-aria [style*="white-space: nowrap"] {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    /* Keep decorative 110% browser glows from expanding the mobile scroll area. */
    html.page-aria .position-absolute[style*="width: 110%"],
    html.page-aticore .position-absolute[style*="width: 110%"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Browser mockup title bars need room to shrink beside the window dots. */
    html.page-aria .flex-grow-1.text-center.pe-5,
    html.page-aticore .flex-grow-1.text-center.pe-5 {
        min-width: 0;
        padding-right: 0.5rem !important;
    }

    /* -----------------------------------------------------
       Open Source Business page fixes
       ----------------------------------------------------- */
    html.page-business #business-support-page .business-table-box {
        max-width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    html.page-business #business-support-page .business-table-box .table {
        margin-bottom: 0 !important;
    }

    html.page-business #business-support-page .business-table-box th,
    html.page-business #business-support-page .business-table-box td {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* First support tables use 140px minimum label cells; trim them slightly on phones. */
    html.page-business #business-support-page td[style*="min-width: 140px"],
    html.page-business #business-support-page th[style*="min-width: 140px"] {
        min-width: 118px !important;
    }
}

@media (max-width: 575.98px) {
    html.page-aria [style*="height: 52px"],
    html.page-aticore [style*="height: 52px"] {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    html.page-aria [style*="min-width: 90px"],
    html.page-aticore [style*="min-width: 90px"] {
        min-width: 78px !important;
    }

    html.page-business #business-support-page .business-table-box th,
    html.page-business #business-support-page .business-table-box td {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}
