/*
 ASEMANEEHA PHASE 818C
 MARTYR DETAIL HEADER - MOBILE ONLY

 Keep original React event handlers.
 Keep hamburger and shared search.
*/

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

    /*
       Hide only the user/profile icon in the
       old martyr-specific mobile toolbar.

       The hamburger is a button and remains.
    */

    .asem-martyr-legacy-816
    div[dir="rtl"][class*="bg-[#0693A4]"]
    > div:first-child
    > a {
        display: none !important;
    }

    /*
       Match the compact organization-title
       appearance of other public pages.
    */

    .asem-martyr-legacy-816
    div[class*="bg-[#1D4E55]"]:has(
        + div[dir="rtl"][class*="bg-[#0693A4]"]
    ) {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        min-height: 43px !important;
        padding-top: 3px !important;
        padding-bottom: 3px !important;
        padding-right: 53px !important;
        padding-left: 5px !important;
        overflow: hidden !important;
    }

    .asem-martyr-legacy-816
    div[class*="bg-[#1D4E55]"]:has(
        + div[dir="rtl"][class*="bg-[#0693A4]"]
    ) > p {
        display: block !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 100% !important;

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

        direction: rtl !important;
        text-align: right !important;
        white-space: nowrap !important;
        word-break: normal !important;

        font-family: Tahoma, sans-serif !important;
        font-size: clamp(8px, 2.35vw, 11px) !important;
        font-weight: 500 !important;
        line-height: 1.5 !important;
        letter-spacing: -0.15px !important;

        text-shadow: none !important;
    }

    /*
       Keep hamburger at the right edge and
       vertically centered beside the title.
    */

    .asem-martyr-legacy-816
    div[dir="rtl"][class*="bg-[#0693A4]"]
    > div:first-child {
        top: -42px !important;
        right: 5px !important;
        left: auto !important;
        height: 38px !important;
        width: 41px !important;
        gap: 0 !important;
    }

    .asem-martyr-legacy-816
    div[dir="rtl"][class*="bg-[#0693A4]"]
    > div:first-child > button {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        margin: 0 !important;
    }
}

@media screen and (max-width: 359px) {
    .asem-martyr-legacy-816
    div[class*="bg-[#1D4E55]"]:has(
        + div[dir="rtl"][class*="bg-[#0693A4]"]
    ) > p {
        font-size: 8px !important;
        letter-spacing: -0.25px !important;
    }
}