/* Keep mobile layout independent of the desktop navigation overrides. */
@media (max-width: 991px) {
    html.pvds-mobile-menu-open {
        overflow: hidden;
    }

    #tie-body {
        --pvds-surface: #ffffff;
        --pvds-soft: #f4f7fc;
        --pvds-text: #253045;
        --pvds-muted: #5a687a;
        --pvds-line: #dce4f0;
        --pvds-link: #1051bf;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .dark-skin #tie-body {
        --pvds-surface: #1c1c21;
        --pvds-soft: #25252d;
        --pvds-text: #edf0f6;
        --pvds-muted: #b4bfce;
        --pvds-line: #3a3d47;
        --pvds-link: #8db7ff;
    }

    #tie-body #tie-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    #tie-body #tie-wrapper .container {
        width: 100%;
        max-width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }

    #tie-body #tie-wrapper .main-content,
    #tie-body #tie-wrapper .sidebar {
        min-width: 0;
    }

    #tie-body #tie-wrapper #theme-header #main-nav {
        background: var(--pvds-surface) !important;
        border: 0 !important;
        line-height: normal !important;
        width: 100% !important;
    }

    #tie-body #tie-wrapper #theme-header #main-nav > .container {
        padding: 0 !important;
    }

    #tie-body #tie-wrapper #theme-header #main-nav .main-menu-wrapper {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        grid-template-areas: "menu brand tools" "search search search";
        align-items: center;
        gap: 12px 8px;
        direction: rtl;
        width: 100%;
        min-height: 0;
        padding: 12px 16px !important;
        border: 0 !important;
        border-bottom: 1px solid var(--pvds-line) !important;
        background: var(--pvds-surface) !important;
        box-shadow: none !important;
    }

    #tie-body #tie-wrapper #theme-header #main-nav .main-menu-wrapper:after,
    #tie-body #tie-wrapper #theme-header #main-nav .header-layout-1-logo,
    #tie-body #tie-wrapper #theme-header #main-nav #menu-components-wrap,
    #tie-body #tie-wrapper #theme-header #mobile-header-components-area_2 {
        display: none !important;
    }

    #tie-body #tie-wrapper #theme-header #mobile-header-components-area_1 {
        grid-area: menu;
        display: block;
        float: none;
        width: 44px;
        height: 44px;
        padding: 0;
    }

    #tie-body #tie-wrapper #theme-header #mobile-header-components-area_1 .components {
        margin: 0;
    }

    #tie-body #tie-wrapper #theme-header #mobile-menu-icon,
    #tie-body #tie-wrapper #theme-header .pvds-mobile-tools .change-skin {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid var(--pvds-line) !important;
        border-radius: 8px !important;
        background: var(--pvds-soft) !important;
        color: var(--pvds-text) !important;
        line-height: 1 !important;
    }

    #tie-body #tie-wrapper #theme-header #mobile-menu-icon .menu-text {
        display: none;
    }

    #tie-body #tie-wrapper #theme-header #mobile-menu-icon .nav-icon {
        margin: 0;
        top: auto;
        right: auto;
        left: auto;
        position: relative;
    }

    #tie-body #tie-wrapper #theme-header #mobile-menu-icon .nav-icon,
    #tie-body #tie-wrapper #theme-header #mobile-menu-icon .nav-icon:before,
    #tie-body #tie-wrapper #theme-header #mobile-menu-icon .nav-icon:after {
        background: #1051bf !important;
    }

    #tie-body #tie-wrapper #theme-header .pvds-mobile-brand {
        grid-area: brand;
        display: block;
        color: var(--pvds-text);
        font-size: 14px;
        font-weight: 800;
        line-height: 1.8;
        text-align: center;
        overflow-wrap: anywhere;
    }

    #tie-body #tie-wrapper #theme-header .pvds-mobile-tools {
        grid-area: tools;
        display: block;
    }

    #tie-body #tie-wrapper #theme-header .pvds-mobile-search {
        grid-area: search;
        display: flex;
        align-items: center;
        position: relative;
        width: 100%;
        min-width: 0;
        height: 48px;
        margin: 0;
        border: 1px solid var(--pvds-line);
        border-radius: 8px;
        background: var(--pvds-soft);
    }

    #tie-body #tie-wrapper #theme-header .pvds-mobile-search:focus-within {
        border-color: #1051bf;
        box-shadow: 0 0 0 3px rgba(16, 81, 191, 0.12);
    }

    #tie-body #tie-wrapper #theme-header #pvds-mobile-search-input {
        width: 100%;
        min-width: 0;
        height: 46px;
        padding: 0 48px 0 12px;
        border: 0;
        background: transparent;
        color: var(--pvds-text);
        box-shadow: none;
        font-size: 16px;
        text-align: right;
    }

    #tie-body #tie-wrapper #theme-header #pvds-mobile-search-input::placeholder {
        color: var(--pvds-muted);
        opacity: 1;
    }

    #tie-body #tie-wrapper #theme-header .pvds-mobile-search button {
        position: absolute;
        inset: 1px 1px auto auto;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        color: var(--pvds-link);
        border: 0;
        font-size: 20px;
    }

    #tie-body #tie-wrapper #theme-header #top-nav {
        display: none;
    }

    #tie-body .side-aside {
        width: min(350px, calc(100vw - 24px));
        max-width: 100%;
        height: 100%;
        height: 100dvh;
        background: var(--pvds-surface);
        color: var(--pvds-text);
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        transition: transform 0.25s ease;
    }

    #tie-body .side-aside .side-aside-wrapper {
        padding-top: 60px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    #tie-body .side-aside .close-side-aside {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        top: 8px;
        line-height: 44px;
        color: var(--pvds-text);
    }

    #tie-body .side-aside .close-side-aside:before {
        color: var(--pvds-text);
    }

    #tie-body #mobile-container {
        padding: 8px 16px 24px;
    }

    #tie-body #mobile-search .search-field {
        width: 100%;
        height: 48px;
        padding: 0 48px 0 12px;
        border: 1px solid var(--pvds-line);
        border-radius: 8px;
        background: var(--pvds-soft);
        color: var(--pvds-text);
        font-size: 16px;
    }

    #tie-body #mobile-search .search-field::placeholder {
        color: var(--pvds-muted);
        opacity: 1;
    }

    #tie-body #mobile-search .search-form:after,
    #tie-body #mobile-search .search-submit {
        top: 2px;
        right: 2px;
        left: auto;
        width: 44px;
        height: 44px;
        line-height: 44px;
        color: var(--pvds-link);
    }

    #tie-body #mobile-menu .menu > li {
        border-color: var(--pvds-line);
    }

    #tie-body #mobile-menu li a {
        min-height: 48px;
        padding: 13px 0 13px 48px;
        color: var(--pvds-text);
        font-size: 15px;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

    #tie-body #mobile-menu li .menu-sub-content {
        width: 100%;
        max-width: 100%;
        position: static;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    #tie-body #mobile-menu li li {
        padding: 0 12px 0 0;
        border-right: 1px solid var(--pvds-line);
    }

    #tie-body #mobile-menu li ul a {
        font-size: 14px;
    }

    #tie-body #mobile-menu .mobile-arrows {
        display: grid;
        place-items: center;
        width: 44px;
        height: 48px;
        right: auto;
        left: 0;
        padding: 0;
        color: var(--pvds-muted);
    }

    #tie-body #mobile-menu .current-menu-item > a {
        color: var(--pvds-link);
    }

    #tie-body #tie-wrapper .section-item {
        padding-top: 20px;
        padding-bottom: 0;
    }

    #tie-body #tie-wrapper .mag-box {
        margin-bottom: 24px;
    }

    #tie-body #tie-wrapper .wide-post-box > .container-wrapper {
        padding: 0;
        border: 0;
        background: transparent;
    }

    #tie-body #tie-wrapper .mag-box-title.the-global-title h3 {
        min-height: 48px !important;
        padding: 12px 14px !important;
        line-height: 1.6 !important;
    }

    #tie-body #tie-wrapper .mag-box-title.the-global-title h3:before {
        margin: 0 !important;
    }

    #tie-body #tie-wrapper .mag-box .posts-list-container {
        gap: 16px !important;
    }

    #tie-body #tie-wrapper .mag-box .posts-list-container > li.post-item {
        background: var(--pvds-surface) !important;
        border-color: var(--pvds-line) !important;
        box-shadow: 0 3px 12px rgba(22, 37, 59, 0.05) !important;
        transform: none !important;
    }

    #tie-body #tie-wrapper .mag-box .posts-list-container > li.post-item .post-thumb {
        align-self: flex-start;
        display: block !important;
        overflow: hidden;
    }

    #tie-body #tie-wrapper .mag-box .posts-list-container > li.post-item .post-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    #tie-body #tie-wrapper .mag-box .posts-list-container > li.post-item .post-title {
        overflow-wrap: anywhere;
    }

    #tie-body #tie-wrapper .mag-box .posts-list-container > li.post-item .post-title a {
        color: var(--pvds-text) !important;
    }

    #tie-body #tie-wrapper .mag-box .posts-list-container > li.post-item .post-excerpt {
        color: var(--pvds-muted) !important;
        font-size: 14px !important;
        text-align: right !important;
    }

    #tie-body #tie-wrapper .mag-box .posts-list-container > li.post-item .post-meta a,
    #tie-body #tie-wrapper .mag-box .posts-list-container > li.post-item .post-meta span {
        color: var(--pvds-muted) !important;
    }

    #tie-body #tie-wrapper .mag-box .posts-list-container > li.post-item .more-link.button {
        min-height: 44px !important;
        line-height: 44px !important;
        border-radius: 6px !important;
        color: var(--pvds-link) !important;
    }

    #tie-body #tie-wrapper .pages-numbers {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    #tie-body #tie-wrapper .pages-numbers li {
        margin: 0;
    }

    #tie-body #tie-wrapper .pages-nav-item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    #tie-body.single-post #tie-wrapper #content.site-content.container {
        margin-top: 20px !important;
    }

    #tie-body.single-post #tie-wrapper #content.site-content.container #the-post.post-content {
        padding: 18px 14px !important;
        background: var(--pvds-surface) !important;
        border-color: var(--pvds-line) !important;
        box-shadow: none !important;
    }

    #tie-body.single-post #tie-wrapper .entry-title {
        font-size: 24px;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

    #tie-body.single-post #tie-wrapper #breadcrumb {
        white-space: normal;
        font-size: 12px;
        line-height: 2;
        overflow-wrap: anywhere;
    }

    #tie-body.single-post #tie-wrapper #content .entry-content.entry,
    #tie-body.single-post #tie-wrapper #content .entry-content.entry p {
        font-size: 16px !important;
        line-height: 2 !important;
        color: var(--pvds-text) !important;
        text-align: right !important;
        overflow-wrap: anywhere;
    }

    #tie-body.single-post #tie-wrapper #content .entry-content.entry {
        padding: 0 !important;
    }

    #tie-body.single-post #tie-wrapper #content .entry-content.entry :is(a, code) {
        color: var(--pvds-link) !important;
    }

    #tie-body.single-post #tie-wrapper #content .entry-content.entry pre code {
        color: inherit !important;
    }

    #tie-body.single-post #tie-wrapper #content .entry-content.entry :is(h2, h3, h4, strong, b) {
        color: var(--pvds-text) !important;
    }

    #tie-body.single-post #tie-wrapper #content .entry-content.entry :is(ul, ol, blockquote, figure, .wp-caption) {
        background: var(--pvds-soft) !important;
        border-color: var(--pvds-line) !important;
        color: var(--pvds-text) !important;
        text-align: right;
    }

    #tie-body.single-post #tie-wrapper #content .entry-content.entry :is(ul, ol) :is(ul, ol) {
        margin: 8px 0 !important;
        padding: 0 18px 0 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    #tie-body.single-post #tie-wrapper #content .entry-content.entry :is(img, video, iframe, pre, table) {
        max-width: 100% !important;
    }

    #tie-body.single-post #tie-wrapper #content .entry-content.entry pre {
        min-width: 0;
        padding: 14px !important;
        font-size: 13px !important;
        overflow-wrap: normal;
        -webkit-overflow-scrolling: touch;
    }

    #tie-body.single-post #tie-wrapper #content .entry-content.entry pre code {
        white-space: inherit;
        overflow-wrap: normal;
    }

    #tie-body.single-post #tie-wrapper #content .entry-content.entry table {
        display: block;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #tie-body.single-post #tie-wrapper #content .entry-content.entry td {
        min-width: 100px;
    }

    #tie-body.single-post #tie-wrapper #content .entry-content.entry :is(.alignleft, .alignright) {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }

    #tie-body #tie-wrapper :is(input, textarea, select) {
        max-width: 100%;
    }

    #tie-body #tie-wrapper #commentform :is(input, textarea) {
        font-size: 16px;
    }

    #tie-body #tie-wrapper .footer-menu .menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    #tie-body #tie-wrapper .footer-menu a {
        display: block;
        min-height: 44px;
        padding: 10px;
        line-height: 24px;
    }

    #tie-body :is(a, button, input, textarea, [role="button"]):focus-visible {
        outline: 2px solid #1051bf;
        outline-offset: 3px;
    }
}

@media (max-width: 767px) {
    #tie-body #tie-wrapper .mag-box .posts-list-container > li.post-item {
        display: flex !important;
        flex-direction: column;
        gap: 0 !important;
        padding: 12px !important;
    }

    #tie-body #tie-wrapper .mag-box .posts-list-container > li.post-item .post-thumb {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    #tie-body #tie-wrapper .mag-box .posts-list-container > li.post-item .post-details {
        width: 100%;
        padding-top: 14px !important;
    }
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
    #tie-body :is(.side-aside, .mobile-arrows, .post-item) {
        transition: none !important;
    }
}
