/* AKHBARONA MOBILE HEADER V1 */

.mh-site-header,
.mh-site-header *,
.mh-site-header *::before,
.mh-site-header *::after {
    box-sizing: border-box;
}

.topbar.mh-site-header {
    --mh-header-navy: #203f5f;
    --mh-header-red: #d61f34;

    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    color: #fff;
    background: var(--mh-header-navy);
    box-shadow: 0 2px 8px rgba(9, 27, 45, .16);
    direction: ltr;
    font-family: "Cairo", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
}

.mh-site-header::after {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, .18);
    content: "";
}

.mh-site-header__bar {
    display: grid;
    grid-template-columns: minmax(82px, 1fr) auto minmax(82px, 1fr);
    min-height: 63px;
    padding:
        max(6px, env(safe-area-inset-top, 0px))
        max(13px, env(safe-area-inset-right, 0px))
        6px
        max(13px, env(safe-area-inset-left, 0px));
    align-items: center;
}

.mh-site-header__menu {
    position: static;
    margin: 0;
    justify-self: start;
}

.mh-site-header__menu > summary {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    color: #fff;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    list-style: none;
    place-items: center;
    -webkit-tap-highlight-color: transparent;
}

.mh-site-header__menu > summary::-webkit-details-marker {
    display: none;
}

.mh-site-header__menu > summary::marker {
    content: "";
}

.mh-site-header__menu > summary:focus-visible,
.mh-site-header__social-link:focus-visible,
.mh-site-header__brand:focus-visible,
.mh-site-nav a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.mh-site-header__hamburger {
    position: relative;
    display: block;
    width: 29px;
    height: 20px;
    border-top: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
}

.mh-site-header__hamburger::after {
    position: absolute;
    top: 6px;
    right: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    content: "";
}

.mh-site-header__brand {
    display: grid;
    min-width: 112px;
    min-height: 46px;
    margin: 0;
    justify-self: center;
    place-items: center;
}

.mh-site-header__brand img {
    display: block;
    width: 112px;
    max-width: none;
    height: auto;
    margin: 0;
}

.mh-site-header__social {
    display: flex;
    gap: 8px;
    margin: 0;
    direction: ltr;
    justify-self: end;
}

.mh-site-header__social-link {
    display: grid;
    width: 35px;
    height: 35px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    place-items: center;
    -webkit-tap-highlight-color: transparent;
}

.mh-site-header__social-link img {
    display: block;
    width: 35px;
    height: 35px;
    margin: 0;
    object-fit: contain;
}

.mh-site-header__panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    padding:
        6px
        max(15px, env(safe-area-inset-right, 0px))
        max(16px, env(safe-area-inset-bottom, 0px))
        max(15px, env(safe-area-inset-left, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    color: #152a3c;
    background: #fff;
    border-top: 3px solid var(--mh-header-red);
    border-bottom: 1px solid #d8e0e6;
    box-shadow: 0 10px 22px rgba(7, 24, 40, .2);
    direction: rtl;
}

.mh-site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mh-site-nav li {
    min-width: 0;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #dce3e8;
    list-style: none;
}

.mh-site-nav li:nth-child(odd) {
    border-left: 1px solid #dce3e8;
}

.mh-site-nav a {
    display: flex;
    min-height: 44px;
    padding: 10px 14px 10px 8px;
    color: #193a55;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: right;
    text-decoration: none;
}

.mh-site-nav a::before {
    width: 3px;
    height: 16px;
    margin-left: 8px;
    background: var(--mh-header-red);
    content: "";
    flex: 0 0 3px;
}

.mh-site-nav a:active {
    background: #eef3f6;
}

.mh-header-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 350px) {
    .mh-site-header__bar {
        grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
        padding-right: 8px;
        padding-left: 8px;
    }

    .mh-site-header__brand,
    .mh-site-header__brand img {
        width: 102px;
        min-width: 102px;
    }

    .mh-site-header__social {
        gap: 6px;
    }

    .mh-site-header__social-link,
    .mh-site-header__social-link img {
        width: 33px;
        height: 33px;
    }
}

@supports (overflow-x: clip) {
    .mh-site-header,
    .mh-site-header__bar,
    .mh-site-header__panel {
        overflow-x: clip;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mh-site-header *,
    .mh-site-header *::before,
    .mh-site-header *::after {
        scroll-behavior: auto !important;
    }
}
