/* Shared responsive layout adjustments for the site. */
.search-section .search-bar form {
    height: 100%;
    margin: 0;
    position: relative;
    width: 100%;
}

.search-section .search-bar input {
    box-sizing: border-box;
    padding-right: 42px;
}

.search-clear,
.search-cancel {
    background: transparent;
    border: 0;
    color: #6e6e80;
    cursor: pointer;
    font: inherit;
}

.search-clear {
    font-size: 22px;
    height: 32px;
    line-height: 28px;
    padding: 0 8px;
    position: absolute;
    right: 1px;
    top: 0;
}

.search-cancel {
    display: none;
    flex: 0 0 auto;
    padding: 0 4px;
}

.visually-hidden {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.article-search {
    display: none;
}

@media (max-width: 1100px) {
    .article_body {
        box-sizing: border-box;
        width: 100%;
    }

    .article_right {
        min-width: 240px;
        width: 240px;
    }
}

@media (max-width: 767px) {
    html,
    body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
    }

    #root,
    .route-container,
    .page-wrapper {
        height: auto;
        min-height: 100%;
    }

    #root {
        overflow: visible;
    }

    .page-wrapper {
        min-height: 100vh;
    }

    .app-header {
        box-sizing: border-box;
        height: 56px;
        padding: 0 12px;
    }

    .app-header .menu-container {
        margin-left: 14px;
    }

    .app-header .right-menu {
        flex: 0 1 58vw;
        max-width: 58vw;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .app-header .right-menu::-webkit-scrollbar {
        display: none;
    }

    .app-header .right-menu .user-section {
        display: block;
        margin-left: 6px;
    }

    .app-header .right-menu .header-support {
        flex: 0 0 auto;
    }

    .app-header .right-menu .header-support-btn {
        padding-left: 4px;
        padding-right: 4px;
    }

    .page-body.examples-page {
        box-sizing: border-box;
        padding: 24px 16px 32px;
        width: 100%;
    }

    .examples-page .page-heading {
        margin-bottom: 24px;
    }

    .examples-page .text-title {
        font-size: 28px;
        line-height: 36px;
    }

    .examples-page .text-tagline {
        font-size: 16px;
    }

    .search-section {
        align-items: center;
        flex-flow: row nowrap;
        gap: 8px;
        margin-bottom: 24px;
    }

    .search-section .search-bar {
        flex: 1 1 0%;
        height: 44px;
        margin: 0;
        min-width: 0;
        max-width: 100%;
    }

    .search-section .search-bar form {
        min-width: 0;
    }

    .search-section .search-bar input {
        font-size: 16px;
        height: 44px;
        line-height: 24px;
    }

    .search-section .search-bar svg.search-icon {
        height: 44px;
    }

    .search-clear {
        height: 44px;
        line-height: 40px;
    }

    .search-cancel {
        align-items: center;
        background: #f3f4f6;
        border-radius: 6px;
        color: #4b5563;
        display: inline-flex;
        justify-content: center;
        min-height: 44px;
        padding: 0 8px;
    }

    .icon-item {
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
    }

    .icon-item-right {
        box-sizing: border-box;
        flex: 1 1 0;
        max-width: calc(100% - 70px);
        min-width: 0;
        width: 0;
    }

    .icon-item-title {
        display: block;
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
        word-break: normal;
    }

    .article-search {
        box-sizing: border-box;
        display: block;
        margin: 0 auto;
        max-width: 872px;
        padding: 16px 16px 0;
        width: 100%;
    }

    .article-search .search-section {
        margin-bottom: 12px;
    }

    .docs-page {
        display: block;
        height: auto;
    }

    .docs-body {
        height: auto;
        overflow: visible;
    }

    .article_body {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        margin: 8px auto 24px;
        max-width: 872px;
        padding: 8px 16px;
        width: 100%;
    }

    .article_left {
        box-sizing: border-box;
        min-width: 0;
        padding-right: 0;
        width: 100%;
    }

    .article_left div {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .article_left h2 {
        font-size: 23px;
        line-height: 1.4;
        margin-top: 8px;
        overflow-wrap: anywhere;
    }

    .article_right {
        border-left: 0;
        border-top: 1px solid #ececf1;
        box-sizing: border-box;
        margin-top: 20px;
        min-width: 0;
        overflow-wrap: anywhere;
        padding: 16px 0 0;
        width: 100%;
    }

    .article_left .js_p {
        line-height: 1.75;
        overflow-wrap: anywhere;
    }

    .article_left .js_p img,
    .article_left .js_p video,
    .article_left .js_p iframe {
        height: auto;
        max-width: 100%;
    }

    .article_left .js_p table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        width: max-content;
    }

    .friends {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .friend {
        flex: 0 0 45px;
    }

    .pagination {
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .ovr-footer-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media (max-width: 380px) {
    .app-header {
        padding-left: 8px;
        padding-right: 8px;
    }

    .app-header .right-menu {
        flex-basis: 54vw;
        max-width: 54vw;
    }

    .app-header .menu-container {
        margin-left: 8px;
    }

    .page-body.examples-page,
    .article-search,
    .article_body {
        padding-left: 12px;
        padding-right: 12px;
    }
}
