/* Jolixo — Theme toggle and the expandable side rail. */

/* theme toggle */
.theme-toggle {
    width:42px;
    height:42px;
    flex:none;
    border-radius:50%;
    border:1px solid var(--border);
    background:var(--surface);
    color:var(--ink);
    display:grid;
    place-items:center;
    transition:background .18s;
}

.theme-toggle:hover {
    background:var(--soft);
}

.theme-toggle .i-moon {
    display:none;
}

[data-theme=light] .theme-toggle .i-sun {
    display:none;
}

[data-theme=light] .theme-toggle .i-moon {
    display:block;
}

/* expandable rail */
.app-shell {
    transition:grid-template-columns .25s ease;
}

.rail-head {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:14px;
    width:100%;
}

/* The orange square at the top of the side menu opens and closes the menu labels */
.menu-toggle {
    width:49px;
    height:49px;
    flex:none;
    display:grid;
    place-items:center;
    border:0;
    border-radius:17px;
    background:var(--coral);
    color:#fff;
    box-shadow:0 14px 22px #ff775728;
    transition:background .18s,transform .18s;
}

.menu-toggle:hover {
    background:var(--coral-dark);
    transform:translateY(-1px);
}

.menu-toggle:focus-visible {
    outline:3px solid #56b8eb;
    outline-offset:3px;
}

.menu-toggle .i-close,
[data-rail=open] .menu-toggle .i-menu {
    display:none;
}

[data-rail=open] .menu-toggle .i-close {
    display:block;
}

.rail-label {
    display:none;
    font-weight:700;
    font-size:14px;
    white-space:nowrap;
}

.rail-promo {
    display:none;
}

[data-rail=open] .app-shell {
    grid-template-columns:232px minmax(0,1fr);
}

[data-rail=open] .rail {
    align-items:stretch;
    padding:28px 18px;
}

[data-rail=open] .rail-head {
    flex-direction:row;
    justify-content:flex-start;
}

[data-rail=open] .rail-items {
    align-items:stretch;
}

[data-rail=open] .rail-link,[data-rail=open] .rail-bottom {
    width:100%;
    display:flex;
    justify-content:flex-start;
    align-items:center;
    gap:14px;
    padding:0 15px;
    height:46px;
    border-radius:14px;
}

[data-rail=open] .rail-link:hover,[data-rail=open] .rail-bottom:hover {
    transform:none;
}

[data-rail=open] .rail-label {
    display:inline;
}

[data-rail=open] .rail-promo {
    display:flex;
    flex-direction:column;
    gap:6px;
    margin-top:auto;
    padding:18px;
    border-radius:18px;
    color:#fff;
    background:linear-gradient(140deg,#ff7757,#e83f6f);
}

[data-rail=open] .rail-promo strong {
    font-size:16px;
    letter-spacing:-.02em;
}

[data-rail=open] .rail-promo span {
    font-size:12px;
    opacity:.85;
    line-height:1.4;
}

[data-rail=open] .rail-promo a {
    margin-top:8px;
    background:#14182a;
    color:#fff;
    border-radius:11px;
    padding:10px;
    text-align:center;
    font-weight:800;
    font-size:12px;
}

[data-rail=open] .rail-bottom {
    margin-top:0;
}
