/* PPA MOBILE HERRAMIENTAS HUB V1 */

/* Home preview is mobile-only. */
.mc-mobile-tools-preview {
    display: none;
}

.mc-mobile-tools-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.mc-mobile-tools-top h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.25;
    color: #173a52;
}

.mc-mobile-tools-all {
    border: 0;
    min-height: 44px;
    padding: 7px 4px;
    background: transparent;
    color: #16804d;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.mc-mobile-tool {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr) 76px;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 62px;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid #d7e9df;
    border-radius: 13px;
    background: #fff;
    color: #173a52;
    text-decoration: none;
}

.mc-mobile-tool:hover,
.mc-mobile-tool:focus-visible {
    background: #f0faf4;
    color: #173a52;
    outline-offset: 2px;
}

.mc-mobile-tool-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: #def3e6;
    border-radius: 12px;
    font-size: 23px;
}

.mc-mobile-tool-text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.mc-mobile-tool-text strong {
    font-size: 14px;
    line-height: 1.25;
}

.mc-mobile-tool-text small {
    font-size: 11px;
    line-height: 1.35;
    color: #678078;
}

.mc-mobile-tool-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    box-sizing: border-box;
    width: 76px;
    min-width: 76px;
    min-height: 40px;
    padding: 6px 7px;
    background: #137f4a;
    color: #fff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
    text-align: center;
}

/* Keep long names in the middle column without shifting the green action. */
.mc-mobile-tool-text strong,
.mc-mobile-tool-text small {
    overflow-wrap: anywhere;
}

/* Full Herramientas page */
.mc-tools-hub-page {
    max-width: 950px;
}

.mc-tools-hub-heading {
    margin: 3px 0 15px;
}

.mc-tools-hub-heading span {
    display: block;
    margin-bottom: 5px;
    color: #167b4b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .065em;
}

.mc-tools-hub-heading h1 {
    margin: 0 0 6px;
    font-size: clamp(25px,4vw,38px);
    line-height: 1.15;
    color: #173a52;
}

.mc-tools-hub-heading p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #60736d;
}

.mc-tools-hub-list {
    padding: 12px;
    background: #f3f9f5;
    border: 1px solid #d4e9dc;
    border-radius: 18px;
}

.mc-tools-hub-item {
    min-height: 76px;
}

.mc-tools-local-note {
    margin: 11px 2px 0;
    color: #627a70;
    font-size: 12px;
    line-height: 1.5;
}

.mc-tools-coming {
    margin: 12px 4px 0;
    color: #677973;
    font-size: 12px;
}

/* Mobile/tablet only: replace oversized promo */
@media screen and (max-width:920px) {

    .mc-shop-promo {
        display: none !important;
    }

    .mc-mobile-tools-preview {
        display: block;
        margin: 12px 0 16px;
        padding: 11px;
        border: 1px solid #cce7d5;
        border-radius: 18px;
        background: linear-gradient(115deg,#fff,#f1faf4);
    }

    .bottom-nav .mc-mobile-tools-nav {
        display: grid;
    }

    /* Single compact layout for guest, member and admin navigation. */
    body #app > .bottom-nav {
        display: flex;
        position: fixed;
        left: 50%;
        right: auto;
        bottom: calc(6px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        width: min(720px, calc(100vw - 12px));
        max-width: none;
        min-width: 0;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 4px 5px;
        gap: 2px;
        align-items: stretch;
        justify-content: space-between;
        box-sizing: border-box;
        overflow: hidden;
        border-radius: 16px;
        z-index: 60; /* Modals (90+) must stay above navigation. */
    }

    body #app > .bottom-nav > .nav-item {
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 0;
        min-width: 0;
        max-width: none;
        min-height: 48px;
        margin: 0;
        padding: 5px 1px 4px;
        gap: 2px;
        border-radius: 11px;
        box-sizing: border-box;
        overflow: hidden;
    }

    body #app > .bottom-nav > .nav-item.hidden {
        display: none !important;
    }

    body #app > .bottom-nav > .nav-item > span {
        display: block;
        flex: 0 0 auto;
        margin: 0;
        font-size: 17px;
        line-height: 1;
    }

    body #app > .bottom-nav > .nav-item > small {
        display: block;
        width: 100%;
        min-width: 0;
        min-height: 0;
        max-height: 2.3em;
        margin: 0;
        padding: 0;
        font-size: clamp(7px, 1.9vw, 9px);
        line-height: 1.12;
        font-weight: 800;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
        overflow: hidden;
    }
}

/* Narrow phones */
@media screen and (max-width:620px) {

    .mc-mobile-tools-preview {
        margin: 10px 0 14px;
        padding: 10px;
    }

    .mc-mobile-tools-top h2 {
        font-size: 18px;
    }

    .mc-mobile-tool {
        grid-template-columns: 40px minmax(0, 1fr) 76px;
        gap: 8px;
        padding: 8px;
        min-height: 60px;
    }

    .mc-mobile-tool-icon {
        width: 39px;
        height: 39px;
        font-size: 21px;
    }

    .mc-mobile-tool-go {
        font-size: 11px;
        min-height: 40px;
        padding: 5px 7px;
    }
}

@media screen and (max-width:360px) {

    body #app > .bottom-nav > .nav-item > small {
        font-size: 7px;
    }

    .mc-mobile-tool {
        grid-template-columns: 39px minmax(0, 1fr) 72px;
        gap: 6px;
    }

    .mc-mobile-tool-text small {
        font-size: 10px;
    }

    .mc-mobile-tool-go {
        width: 72px;
        min-width: 72px;
        padding: 5px 6px;
    }
}

/* PPA 2026-10-26: Equal action placement on the tools hub and home preview.
   Selector scope avoids touching desktop dropdown or other button systems. */
#app .mc-tools-hub-list .mc-mobile-tool,
#app .mc-mobile-tools-preview .mc-mobile-tool {
    grid-template-columns: 43px minmax(0, 1fr) 76px;
    align-items: center;
}

#app .mc-tools-hub-list .mc-mobile-tool-go,
#app .mc-mobile-tools-preview .mc-mobile-tool-go {
    width: 76px;
    min-width: 76px;
    justify-self: end;
}

@media screen and (max-width: 620px) {
    #app .mc-tools-hub-list .mc-mobile-tool,
    #app .mc-mobile-tools-preview .mc-mobile-tool {
        grid-template-columns: 40px minmax(0, 1fr) 76px;
    }
}

@media screen and (max-width: 360px) {
    #app .mc-tools-hub-list .mc-mobile-tool,
    #app .mc-mobile-tools-preview .mc-mobile-tool {
        grid-template-columns: 39px minmax(0, 1fr) 72px;
    }

    #app .mc-tools-hub-list .mc-mobile-tool-go,
    #app .mc-mobile-tools-preview .mc-mobile-tool-go {
        width: 72px;
        min-width: 72px;
    }
}
