/* Shared UI components — 15.09.2026
 * Reuse these patterns across informational sections.
 */

/* Common informational-page breadcrumbs. */
.vsh-page-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 18px 0 16px;
    padding: 0 0 0 44px;
    color: #a8662f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.vsh-page-breadcrumbs a {
    color: #70451f;
    text-decoration: none;
}

.vsh-page-breadcrumbs a:hover {
    color: #5b3719;
    text-decoration: none;
}

.vsh-page-breadcrumbs__separator {
    display: inline-block;
    flex: 0 0 42px;
    width: 42px;
    height: 1px;
    overflow: hidden;
    background: #b98755;
    color: transparent;
    font-size: 0;
    line-height: 0;
}

.vsh-page-breadcrumbs__current {
    color: #a8662f;
}

/* A link used as a native site button must keep button styling inside .content. */
.content a.button,
.content a.button:hover {
    text-decoration: none;
}

.content a.button--main,
.content a.button--three,
.content a.button--yellow,
.content a.button--main:hover,
.content a.button--three:hover,
.content a.button--yellow:hover {
    color: #fff;
}

.content a.button--white,
.content a.button--trans,
.content a.button--light {
    color: var(--color-main);
}

.content a.button--white:hover,
.content a.button--trans:hover,
.content a.button--light:hover {
    color: #fff;
}

@media (max-width: 1180px) {
    .vsh-page-breadcrumbs {
        padding-left: 32px;
    }
}

@media (max-width: 781px) {
    .vsh-page-breadcrumbs {
        padding-left: 24px;
    }
}

@media (max-width: 600px) {
    .vsh-page-breadcrumbs {
        gap: 9px;
        margin-top: 12px;
        margin-bottom: 14px;
        font-size: 13px;
        letter-spacing: .035em;
    }

    .vsh-page-breadcrumbs__separator {
        flex-basis: 28px;
        width: 28px;
    }
}

/*
 * Shared page-top rhythm — 16.09.2026
 * Canonical informational-page gap below the site header.
 * Use this instead of adding section-specific top margins.
 */
:root {
    --vsh-page-top-gap: 18px;
    --vsh-page-top-gap-mobile: 14px;
}

/* Breadcrumbs start on the first content row; the outer shell owns the top gap. */
.vsh-page-breadcrumbs {
    margin-top: 0;
}

/* Company pages and the News archive. */
body.vsh-company-section .site-main__page,
body.vsh-company-section .page-default {
    margin-top: 0 !important;
}

body.vsh-company-section .vsh-company-shell {
    margin-top: var(--vsh-page-top-gap) !important;
}

body.category-news .vsh-company-archive-shell {
    padding-top: var(--vsh-page-top-gap) !important;
}

body.vsh-company-section:not(.page-id-347) .vsh-company-sidebar::before {
    margin-top: 0 !important;
}

/* FAQ / Knowledge Base child pages use the same outer top gap. */
body.vsh-faq-sidebar-prototype .site-main__page,
body.vsh-faq-sidebar-prototype .page-default {
    margin-top: 0 !important;
}

body.vsh-faq-sidebar-prototype .page-default__container {
    padding-top: var(--vsh-page-top-gap) !important;
}

body.vsh-faq-sidebar-prototype .page-default__container
> .post-default__content
> .content,
body.vsh-faq-sidebar-prototype .vsh-faq-child-shell {
    margin-top: 0 !important;
}

/* Buyers child pages use the same first-row rhythm. */
body.vsh-buyer-section-area:not(.vsh-buyer-section-root) .vsh-buyer-sidebar::before {
    margin-top: 0 !important;
}

@media (max-width: 900px) {
    body.vsh-company-section .vsh-company-shell {
        margin-top: var(--vsh-page-top-gap-mobile) !important;
    }

    body.category-news .vsh-company-archive-shell {
        padding-top: var(--vsh-page-top-gap-mobile) !important;
    }

    body.vsh-faq-sidebar-prototype .page-default__container {
        padding-top: var(--vsh-page-top-gap-mobile) !important;
    }

    body.vsh-faq-sidebar-prototype .page-default__container
    > .post-default__content
    > .content,
    body.vsh-faq-sidebar-prototype .vsh-faq-child-shell {
        margin-top: 0 !important;
    }
}

@media (max-width: 600px) {
    .vsh-page-breadcrumbs {
        margin-top: 0;
    }
}
