/*
 * page-sidebar.css — the `page_sidebar` block (pageSidebar.js): the column
 * beside the page's rounded frame, and the pills that stand for it on a phone.
 * The card's rules are the pricing page's own, word for word (its <head> still
 * carries them; the same rules twice draw the same thing). What is new is the
 * placing: the column floats in a box of no size (`.cms-page-sidebar` is
 * `display: contents`), and the frame's blocks after it move aside by its
 * width, which is what the authored two-column row did.
 */
.page-sidebar-track { display: none; }
section:has(> .cms-page-sidebar) { display: contents; }

@media (min-width: 768px) {
    .page-sidebar-track { display: block; float: left; width: 256px; }
    :is(.cms-page-sidebar, section:has(> .cms-page-sidebar)) ~ .cms-frame { margin-left: 256px; }
}

.sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    position: relative;
}
.sidebar-item::before { display: none; }
.sidebar-item:hover {
    background: #ede9fe;
    box-shadow: inset 0 0 0 1px rgba(94, 45, 145, 0.06);
}
.sidebar-active {
    background: linear-gradient(90deg, #ede9fe 0%, #f5f3ff 100%) !important;
    box-shadow: inset 0 0 0 1.5px rgba(94, 45, 145, 0.18), 0 2px 10px rgba(94, 45, 145, 0.10);
}
.sidebar-active .sidebar-item-name { color: #3c1c5e !important; font-weight: 700; }
.sidebar-active .sidebar-item-desc { color: #6b7280; }
.sidebar-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.sidebar-item-name { font-size: 0.875rem; font-weight: 600; color: #1e1b4b; }
.sidebar-item-desc { font-size: 0.75rem; color: #6b7280; margin-top: 1px; }

.page-sidebar { display: none; }
@media (min-width: 768px) {
    .page-sidebar {
        display: block;
        width: 240px;
        flex-shrink: 0;
        position: sticky;
        top: 80px;
        height: calc(100vh - 96px);
        overflow-y: auto;
        background: linear-gradient(180deg, #faf9ff 0%, #ffffff 100%);
        border: 1.5px solid rgba(94, 45, 145, 0.18);
        box-shadow: 0 4px 20px rgba(94,45,145,0.08), 0 1px 3px rgba(0,0,0,0.04);
        padding: 20px 12px 24px 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-radius: 16px;
        margin-top: 8px;
        margin-bottom: 30px;
        margin-left: 16px;
    }
}

.mobile-pill-bar {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e5e1f5;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mobile-pill-bar::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
    .mobile-pill-bar { display: none; }
}
.mobile-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #ede9fe;
    color: #4a2373;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid #ddd6fe;
    transition: background 0.15s;
}
.mobile-pill:hover { background: #ddd6fe; }
