/* ------------------------------
 * Sidebar Content Block (2026-09-26)
 * ------------------------------
 */


/*
 * ***************** Sidebar-sticky-icons
 */
aside#sidebar {
    display: flex;
    position: fixed;
    right: 0;
    top: 20vh;
    z-index: 100;
    transform: rotate(270deg) translateY(-1.65em);
    transform-origin: right top;
    column-gap: 1em;
    font-size: 18px;

    &:has(.sidebar-sticky-icons) {
        transform: initial;
        /*display: none;*/
        top: 45vh;

        .sidebar-sticky-icons figure {
            display: flex;
            margin: 0 0 10px 0;

            a {
                color: white;
                background-color: var(--secondary);
                padding: .8em;
                /*transition: color .2s ease-in-out, background-color .2s ease-in-out;*/

                svg {
                    width: var(--size_30-40);
                    height: auto;
                    transition: color 250ms ease-in-out;
                    user-select: none;
                }

                &:hover {
                    svg {
                        color: red;
                    }
                }
            }
        }
    }
}


/*
 * ***************** Sidebar-menu
 */
aside#sidebar {
    display: flex;
    position: fixed;
    right: 0;
    top: 30vh;
    z-index: 100;
    transform: rotate(270deg) translateY(calc(-2em - 2px));
    transform-origin: right top;
    column-gap: 1em;


    .sidebar-menu {
        transition: transform 400ms ease-in-out .1s;

        .sidebar-link {
            display: inline-block;
            font-size: var(--font-size-small_16-18);
            line-height: 1.1;
            text-align: right;
            white-space: nowrap;
            color: white;
            background-color: var(--primary);
            border: 1px solid var(--primary);
            padding: .5em 1em;

            transition: background-color 250ms ease-in-out, border 250ms ease-in-out;

            &:hover {
                background-color: var(--primary);
                border-color: var(--primary);
            }
        }

        &.has-child {
            display: flex;
            flex-direction: column;
            background-color: #ebefef;
            cursor: pointer;

            &:hover {
                transform: translateY(calc(-100% + 39px));
                box-shadow: 0 6px 9px -1px rgba(0, 0, 0, 0.32);

                .sidebar-link {
                    background-color: var(--primary);
                    border-color: var(--primary);
                }
            }
        }
    }

    .sidebar-content {
        display: flex;
        flex-direction: column;
        row-gap: 10px;
        writing-mode: tb;
        width: 100%;
        padding: 10px;
        padding-top: 20px;

        p {
            font-size: 15px;
            line-height: 1.4;
            margin: 0;
            padding: 0;
            margin-bottom: 1em;
            max-height: 40vw;

            a {
                padding: 1.6em .5em;
            }
        }
    }
}
