
/* ============================================================
   RUTSS MOBILE CLEAN SYSTEM
   This file intentionally loads LAST.
   Desktop is untouched.
   ============================================================ */

@media (max-width: 600px) {

    /* --------------------------------------------------------
       GLOBAL MOBILE PAGE FOUNDATION
       -------------------------------------------------------- */

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body {
        margin: 0 !important;
        background: #f3f7fb !important;
    }

    body main {
        position: relative !important;
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 14px !important;

        left: auto !important;
        right: auto !important;

        transform: none !important;
        translate: none !important;

        overflow: visible !important;

        box-sizing: border-box !important;
    }

    body main * {
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    /* No ugly wide side shadow in mobile */
    body main,
    body main section,
    body main article {
        box-shadow: none !important;
        filter: none !important;
    }

    /* --------------------------------------------------------
       NORMAL MOBILE TYPOGRAPHY
       -------------------------------------------------------- */

    body main h1,
    body main h2,
    body main h3,
    body main h4 {
        color: #071d39 !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        writing-mode: horizontal-tb !important;
        white-space: normal !important;
    }

    body main h1 {
        font-size: 29px !important;
        line-height: 1.15 !important;
        font-weight: 500 !important;
        letter-spacing: -.4px !important;
    }

    body main h2 {
        font-size: 22px !important;
        line-height: 1.25 !important;
        font-weight: 500 !important;
    }

    body main h3 {
        font-size: 17px !important;
        line-height: 1.3 !important;
        font-weight: 500 !important;
    }

    body main p,
    body main li,
    body main label {
        color: #52708f !important;
        font-weight: 400 !important;
        line-height: 1.6 !important;

        word-break: normal !important;
        overflow-wrap: break-word !important;
        writing-mode: horizontal-tb !important;
    }

    /* --------------------------------------------------------
       FULL-WIDTH CONTENT SYSTEM
       -------------------------------------------------------- */

    body main > section,
    body main > article,

    body.page-tools main > *,
    body.page-features main > *,
    body.page-resources main > *,
    body.page-profile main > *,
    body.page-intelligence main > * {

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        left: auto !important;
        right: auto !important;

        transform: none !important;
    }


    /* ========================================================
       TOOLS PAGE
       ======================================================== */

    body.page-tools main {
        padding: 14px !important;
    }

    body.page-tools main > section {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.page-tools .hero,
    body.page-tools [class*="hero"] {
        background: #ffffff !important;

        border: 1px solid #dce6ef !important;
        border-radius: 18px !important;

        padding: 22px 18px !important;
        margin-bottom: 14px !important;

        height: auto !important;
        min-height: 0 !important;

        overflow: visible !important;

        box-shadow: none !important;
    }

    body.page-tools .hero *,
    body.page-tools [class*="hero"] * {
        color: inherit;
    }

    body.page-tools .hero h1,
    body.page-tools [class*="hero"] h1 {
        color: #071d39 !important;
    }

    body.page-tools .hero p,
    body.page-tools [class*="hero"] p {
        color: #52708f !important;
    }

    body.page-tools [class*="tool"] {
        max-width: 100% !important;
    }

    body.page-tools input[type="search"],
    body.page-tools input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
    }


    /* ========================================================
       FEATURES PAGE
       ======================================================== */

    body.page-features main {
        padding: 14px !important;
    }

    body.page-features main > section,
    body.page-features main article {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.page-features .hero,
    body.page-features [class*="hero"] {
        display: block !important;

        background: #ffffff !important;

        border: 1px solid #dce6ef !important;
        border-radius: 18px !important;

        padding: 22px 18px !important;
        margin-bottom: 14px !important;

        height: auto !important;
        min-height: 0 !important;

        box-shadow: none !important;
    }

    body.page-features .hero h1,
    body.page-features [class*="hero"] h1 {
        color: #071d39 !important;
    }

    body.page-features .hero p,
    body.page-features [class*="hero"] p {
        color: #52708f !important;
    }

    body.page-features [class*="grid"] {
        display: grid !important;
        grid-template-columns: 1fr !important;

        width: 100% !important;
        max-width: 100% !important;

        gap: 12px !important;
    }

    body.page-features [class*="grid"] > * {
        width: 100% !important;
        max-width: 100% !important;

        background: #fff !important;

        border: 1px solid #dce6ef !important;
        border-radius: 16px !important;

        padding: 18px !important;

        box-shadow: none !important;
    }


    /* ========================================================
       RESOURCES PAGE
       ======================================================== */

    body.page-resources main {
        padding: 14px !important;
    }

    body.page-resources main > section,
    body.page-resources main article {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.page-resources .hero,
    body.page-resources [class*="hero"] {
        display: block !important;

        width: 100% !important;

        background: #ffffff !important;

        border: 1px solid #dce6ef !important;
        border-radius: 18px !important;

        padding: 22px 18px !important;
        margin-bottom: 14px !important;

        height: auto !important;
        min-height: 0 !important;

        box-shadow: none !important;
    }

    body.page-resources .hero h1,
    body.page-resources [class*="hero"] h1 {
        color: #071d39 !important;
    }

    body.page-resources .hero p,
    body.page-resources [class*="hero"] p {
        color: #52708f !important;
    }

    body.page-resources [class*="grid"] {
        display: grid !important;
        grid-template-columns: 1fr !important;

        width: 100% !important;

        gap: 12px !important;
    }

    body.page-resources [class*="grid"] > * {
        width: 100% !important;
        max-width: 100% !important;
    }


    /* ========================================================
       PROFILE PAGE
       Exactly the clean red-box width you marked.
       ======================================================== */

    body.page-profile main {
        padding: 14px !important;
    }

    body.page-profile main > section,
    body.page-profile main > div {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.page-profile main article,
    body.page-profile main [class*="card"],
    body.page-profile main [class*="panel"] {

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        margin: 0 0 12px !important;
        padding: 18px !important;

        background: #ffffff !important;

        border: 1px solid #dce6ef !important;
        border-radius: 16px !important;

        box-shadow: none !important;
    }

    body.page-profile main [class*="grid"] {
        width: 100% !important;
        max-width: 100% !important;
    }


    /* ========================================================
       INTELLIGENCE PAGE
       Rebuild mobile layout cleanly.
       ======================================================== */

    body.page-intelligence main {
        padding: 14px !important;
    }

    body.page-intelligence .suite-page,
    body.page-intelligence .suite-hub-page,
    body.page-intelligence .intel-v8 {

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
    }

    /* Intelligence hero */

    body.page-intelligence .intel-mobile-hero,
    body.page-intelligence [class*="hero"] {

        display: block !important;

        position: static !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        margin: 0 0 12px !important;
        padding: 20px !important;

        background: #ffffff !important;

        border: 1px solid #dce6ef !important;
        border-radius: 18px !important;

        transform: none !important;

        overflow: visible !important;

        box-shadow: none !important;
    }

    /* Workspace coverage */

    body.page-intelligence .intel-fixed-coverage,
    body.page-intelligence .intel-mobile-coverage {

        position: static !important;

        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 12px 0 !important;
        padding: 18px !important;

        inset: auto !important;

        transform: none !important;
        translate: none !important;

        overflow: visible !important;

        background: #102c4b !important;

        border-radius: 15px !important;

        box-shadow: none !important;
    }

    body.page-intelligence .intel-fixed-coverage p,
    body.page-intelligence .intel-mobile-coverage p,
    body.page-intelligence .intel-fixed-coverage span,
    body.page-intelligence .intel-mobile-coverage span {
        color: #c9dcf0 !important;
    }

    /* THE 3 CARDS MUST BE VERTICAL */

    body.page-intelligence .intel-fixed-three,
    body.page-intelligence .intel-mobile-principles {

        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        max-width: 100% !important;

        gap: 12px !important;

        margin: 0 0 18px !important;
    }

    body.page-intelligence .intel-fixed-principle,
    body.page-intelligence .intel-mobile-principle-card {

        display: block !important;

        position: static !important;

        flex: 0 0 auto !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 18px !important;

        background: #ffffff !important;

        border: 1px solid #dce6ef !important;
        border-radius: 15px !important;

        transform: none !important;

        overflow: visible !important;

        box-shadow: none !important;
    }

    body.page-intelligence .intel-fixed-principle *,
    body.page-intelligence .intel-mobile-principle-card * {

        width: auto !important;
        max-width: 100% !important;

        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;

        writing-mode: horizontal-tb !important;
    }

    /* Intelligence modules */

    body.page-intelligence [class*="grid"] {
        display: grid !important;
        grid-template-columns: 1fr !important;

        width: 100% !important;
        max-width: 100% !important;

        gap: 12px !important;
    }

    body.page-intelligence [class*="grid"] > * {

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        grid-column: 1 !important;
    }

    body.page-intelligence .intel-mobile-module {

        position: static !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 0 12px !important;
        padding: 18px !important;

        background: #ffffff !important;

        border: 1px solid #dce6ef !important;
        border-radius: 15px !important;

        transform: none !important;

        box-shadow: none !important;
    }


    /* --------------------------------------------------------
       MOBILE FORMS / BUTTONS
       -------------------------------------------------------- */

    body main input,
    body main select,
    body main textarea {
        width: 100% !important;
        max-width: 100% !important;
    }

    body main img,
    body main svg,
    body main table {
        max-width: 100% !important;
    }

}

