.main-aside {
    position: sticky;
    top: var(--islandMargin);
    will-change: top;
    z-index: 2;

    &--offset-top {
        @media (--not-mobile) {
            margin-top: var(--branding-negative-margin);
        }
    }
}


.site-head {
    display: flex;
    line-height: 1.2em;
    font-size: 15px;

    @media (--mobile) {
        line-height: 1.3em;
        font-size: 13px;
    }

    &--in-aside {
        border-bottom: 1px solid var(--lightGrayLine);
        padding: calc(var(--islandPadding) * 0.8) var(--islandPadding);

        @media (--mobile) {
            padding: 12px 15px;
            border-bottom: 0;
            box-shadow: 0 3px 6px rgba(0, 0, 0, .06)
        }
    }

    &__logo {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 50px;
        margin: auto 0;
        margin-right: 25px;
        border-radius: 3px;
        text-align: center;

        @media (--mobile) {
            width: 35px;
            height: 35px;
            margin-right: 15px;
        }

        img {
            width: 100%;
            height: 100%;
            border-radius: 3px;
        }

        &--empty {
            background: #3997de;

            img {
                display: none;
            }

            &::before {
                content: attr(data-placeholder);
                color: #fff;
                line-height: 50px;
                font-size: 22px;
                font-weight: 500;
                letter-spacing: -0.08em;

                @media (--mobile) {
                    line-height: 35px;
                    font-size: 18px;
                }
            }
        }

        &-upload{
            position: absolute;
            display: none;
            left: 50%;
            top: 50%;
            padding: 10px;
            transform: translate(-50%, -45%);
            color: #495365;

            @media (--mobile) {
                padding: 4px;
            }
        }

        &:hover &-upload{
            display: inline-block;
        }

        &--admin{
            &:hover {
                background: #eef2f9;

                &:::before {
                    content: '';
                }

                img {
                    display: none;
                }
            }
        }
    }

    &__title {
        margin: auto 0;
    }
}


.button.logout {
    background: #2d3136;
    color: #606469;
}

.button.logout:hover {
    background: #202328;
}

/**
* Email confirmation
*/
.confirm-reminder {
    display: block;
    box-shadow: inset 3px 0 0 0 var(--redColor);
    padding: 15px 23px 15px 30px;
    border-bottom: 1px solid var(--lightGrayLine);
    font-size: 14px;
    cursor: pointer;
    color: var(--redColor);
}

.confirm-reminder:hover {
    background: var(--lightGrayBackground);
}

.confirm-reminder__attention {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    margin-top: -1px;
}

.confirm-reminder__attention svg {
    width: 18px;
}

.confirm-reminder__arrow svg {
    height: 15px;
}

.aside-section {
    padding: var(--islandPadding);
    border-bottom: 1px solid var(--lightGrayLine);

    .button {
        display: block;
        text-align: center;
    }

    @media (--mobile) {
        padding: 15px;
    }
}

/**
* Mobile menu holder and toggler
*/
.mobile-menu {
    &-toggler {
        display: none;

        @media (--mobile) {
            display: inline-flex;
            padding: 20px;
            margin: -10px -15px -10px auto;
            cursor: pointer;
            z-index: 2;
        }
    }

    &-holder {
        @media (--mobile) {
            display: none;
        }
    }
}

.body--menu-opened {
    .mobile-menu-holder {
        display: block;
        margin-bottom: 15px;
        box-shadow: 0 3px 6px rgba(0, 0, 0, .06)
    }

    .site-head {
        box-shadow: none;
    }
}


/**
 * Codex logo
 */
.codex {
    display: block;
    margin: -10px 0;
    color: var(--color-gray) !important;
    font-size: 11px;
    line-height: 1.4em;
    cursor: pointer;
}

@media (--mobile) {
    .codex {
        margin: 0;
    }
}

.codex:hover {
    color: #3e445d !important;
}

.codex__title {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin: 5px 0 3px;
}

.codex svg {
    height: 56px;
    float: left;
    margin-right: 20px;
    fill: #656e7d;
}

.codex:hover svg {
    fill: #57606f;
}

.codex:hover svg .inner {
    fill: #1d2033;
}
