/*
 ASEMANEEHA PHASE 818B
 MARTYR MOBILE HEADER ONLY
 NO JAVASCRIPT / NO REACT DOM MOVEMENT
*/

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

    /*
      The original martyr-specific header has:
      1. Menu
      2. Dark organization-title bar
      3. Extra turquoise search bar

      The shared header above it already provides
      both search options.
    */

    /* Original turquoise strip becomes height zero. */

    .asem-martyr-legacy-816
    div[dir="rtl"][class*="bg-[#0693A4]"] {
        position: relative !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        overflow: visible !important;
        z-index: 80 !important;
    }

    /*
      Hide only the old input/search controls.
      Do not hide the hamburger or its click handler.
    */

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

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

    /*
      Move the visual position of the original
      hamburger group upward without moving DOM nodes.
    */

    .asem-martyr-legacy-816
    div[dir="rtl"][class*="bg-[#0693A4]"]
    > div:first-child {
        position: absolute !important;
        top: -48px !important;
        right: 9px !important;
        left: auto !important;
        width: auto !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 100 !important;
    }

    .asem-martyr-legacy-816
    div[dir="rtl"][class*="bg-[#0693A4]"]
    > div:first-child > button {
        display: inline-flex !important;
        position: relative !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    /*
      Title bar aligned next to the hamburger.
    */

    .asem-martyr-legacy-816
    div[class*="bg-[#1D4E55]"]:has(
        + div[dir="rtl"][class*="bg-[#0693A4]"]
    ) {
        box-sizing: border-box !important;
        padding-right: 60px !important;
        padding-left: 8px !important;
        text-align: right !important;
        min-height: 48px !important;
    }

    .asem-martyr-legacy-816
    div[class*="bg-[#1D4E55]"]:has(
        + div[dir="rtl"][class*="bg-[#0693A4]"]
    ) p {
        text-align: right !important;
        line-height: 1.6 !important;
    }
}