/*
 * FAQ child sidebar — 12.09.2026
 * Admin-managed navigation for internal /faq/ pages.
 * .page-default__container remains the single site-wide wrapper.
 */

body.vsh-faq-sidebar-prototype .page-default__container
> .post-default__content
> .content {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    width: 100%;
    margin: 34px 0 72px;
}

body.vsh-faq-sidebar-prototype .page-default__container
> .post-default__content
> .content
> .vsh-faq-child-page {
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.vsh-faq-sidebar-prototype .vsh-faq-child-shell {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 28px;
    width: 100%;
    max-width: none;
    margin: 34px 0 72px;
    padding: 0;
    align-items: start;
}

body.vsh-faq-sidebar-prototype .vsh-faq-child-main,
body.vsh-faq-sidebar-prototype .vsh-faq-child-main > .vsh-faq-child-page {
    min-width: 0;
}

body.vsh-faq-sidebar-prototype .vsh-faq-child-main > .vsh-faq-child-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    width: 100%;
    transition: top .3s ease;
}

body.vsh-faq-sidebar-prototype:has(.site-header__inner.nav-down) .vsh-faq-sidebar {
    top: calc(8.5rem + 16px);
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    /* 15px card inset + 48px icon + 12px gap = text column */
    padding: 0 2px 0 75px;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-title {
    margin: 0;
    color: #70451f;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .045em;
    text-transform: uppercase;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-all {
    color: #a8662f;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-all:hover {
    color: #70451f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-sections {
    display: grid;
    gap: 10px;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-section {
    overflow: hidden;
    border: 1px solid #eadfd4;
    border-radius: 13px;
    background: #fffdf9;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-heading {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    gap: 12px;
    align-items: center;
    min-height: 74px;
    padding: 12px 14px 12px 15px;
    color: #3f2518;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-heading:hover {
    background: #fff8f1;
    color: #70451f;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-index {
    position: relative;
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f3e2d0;
    color: #70451f;
    font-size: 0;
    line-height: 1;
}

/* Large pictograms: absolute centring avoids any baseline/grid optical shift. */
body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-index::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%);
    background: #8b552a;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: 50% 50%;
    -webkit-mask-size: 36px 36px;
    mask-repeat: no-repeat;
    mask-position: 50% 50%;
    mask-size: 36px 36px;
}

/* These two SVGs contain more whitespace in their own viewBox, so enlarge them optically. */
body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-section:nth-child(1) .vsh-faq-sidebar-index::before,
body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-section:nth-child(6) .vsh-faq-sidebar-index::before {
    width: 41px;
    height: 41px;
    -webkit-mask-size: 41px 41px;
    mask-size: 41px 41px;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-section:nth-child(1) .vsh-faq-sidebar-index::before {
    -webkit-mask-image: url('/wp-content/uploads/2026/08/02_corporate_orders.svg');
    mask-image: url('/wp-content/uploads/2026/08/02_corporate_orders.svg');
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-section:nth-child(2) .vsh-faq-sidebar-index::before {
    -webkit-mask-image: url('/wp-content/uploads/2026/08/05_custom_design_tools.svg');
    mask-image: url('/wp-content/uploads/2026/08/05_custom_design_tools.svg');
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-section:nth-child(3) .vsh-faq-sidebar-index::before {
    -webkit-mask-image: url('/wp-content/uploads/2026/08/03_urgent_timer.svg');
    mask-image: url('/wp-content/uploads/2026/08/03_urgent_timer.svg');
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-section:nth-child(4) .vsh-faq-sidebar-index::before {
    -webkit-mask-image: url('/wp-content/uploads/2026/09/05-atr-tastes.svg');
    mask-image: url('/wp-content/uploads/2026/09/05-atr-tastes.svg');
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-section:nth-child(5) .vsh-faq-sidebar-index::before {
    -webkit-mask-image: url('/wp-content/uploads/2026/09/04-atr-package.svg');
    mask-image: url('/wp-content/uploads/2026/09/04-atr-package.svg');
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-section:nth-child(6) .vsh-faq-sidebar-index::before {
    -webkit-mask-image: url('/wp-content/uploads/2026/08/04_delivery_russia_truck.svg');
    mask-image: url('/wp-content/uploads/2026/08/04_delivery_russia_truck.svg');
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-chevron {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f7eadc;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-chevron::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid #70451f;
    border-bottom: 1.5px solid #70451f;
    transform: translate(-62%, -50%) rotate(-45deg);
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-section.is-active {
    border-color: #d8bea2;
    background: #fffaf5;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-section.is-active .vsh-faq-sidebar-heading {
    border-left: 3px solid #a8662f;
    padding-left: 12px;
    background: #f3e2d0;
    color: #70451f;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-section.is-active .vsh-faq-sidebar-chevron::after {
    transform: translate(-50%, -64%) rotate(45deg);
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-links {
    display: grid;
    gap: 3px;
    padding: 9px 12px 12px 48px;
    border-top: 1px solid #eadfd4;
    background: #fffdf9;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-links a {
    position: relative;
    display: block;
    padding: 7px 8px 7px 12px;
    border-radius: 7px;
    color: #6b5b4e;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-links a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    margin-top: -2px;
    border-radius: 50%;
    background: #c8a27c;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-links a:hover {
    color: #70451f;
    background: #faf2e9;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-links a.is-current {
    color: #70451f;
    font-weight: 600;
    background: #f7eadc;
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-links a.is-current::before {
    content: none;
    display: none;
}

@media (max-width: 1439px) {
    body.vsh-faq-sidebar-prototype:has(.site-header__inner.nav-down) .vsh-faq-sidebar {
        top: calc(7.5rem + 16px);
    }
}

@media (max-width: 1279px) {
    body.vsh-faq-sidebar-prototype:has(.site-header__inner.nav-down) .vsh-faq-sidebar {
        top: calc(5rem + 16px);
    }
}

@media (max-width: 1180px) {
    body.vsh-faq-sidebar-prototype .page-default__container
    > .post-default__content
    > .content,
    body.vsh-faq-sidebar-prototype .vsh-faq-child-shell {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 20px;
    }

    body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-heading {
        font-size: 14px;
    }

    body.vsh-faq-sidebar-prototype .vsh-faq-child-hero > .wp-block-group__inner-container {
        grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr);
        column-gap: 22px;
        padding-left: 32px;
    }
}

@media (max-width: 900px) {
    body.vsh-faq-sidebar-prototype .page-default__container
    > .post-default__content
    > .content,
    body.vsh-faq-sidebar-prototype .vsh-faq-child-shell {
        display: block;
        margin-top: 22px;
        margin-bottom: 48px;
        padding: 0;
    }

    body.vsh-faq-sidebar-prototype .vsh-faq-sidebar,
    body.vsh-faq-sidebar-prototype:has(.site-header__inner.nav-down) .vsh-faq-sidebar {
        position: static;
        top: auto;
        margin: 0 0 20px;
        transition: none;
    }

    body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-head {
        padding-left: 0;
    }

    body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-section.is-active {
        grid-column: 1 / -1;
    }

    body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-left: 18px;
    }
}

@media (max-width: 600px) {
    body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-sections,
    body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-links {
        grid-template-columns: 1fr;
    }

    body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-heading {
        min-height: 64px;
    }
}

/* VSH LINK SYSTEM — FAQ SIDEBAR */
body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-all {
    color: var(--vsh-link-quiet-color, #70451f);
    text-decoration: none;
    transition: var(--vsh-link-transition, color .18s ease);
}

body.vsh-faq-sidebar-prototype .vsh-faq-sidebar-all:hover {
    color: var(--vsh-link-quiet-hover-color, #5b3719);
    text-decoration-line: underline;
    text-decoration-thickness: var(--vsh-link-underline-thickness, 1px);
    text-underline-offset: var(--vsh-link-underline-offset, 3px);
}
