/*
 * FAQ child pages — reusable layout
 * Loaded only for descendants of /faq/ via vsh-faq-child-assets.php.
 * Keep page content structural: typography, spacing, cards and responsive rules live here.
 */

body.parent-pageid-4729 .vsh-faq-child-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 1380px;
    margin: 34px auto 72px;
    padding: 0 24px;
}

/* Hero */
body.parent-pageid-4729 .vsh-faq-child-hero {
    margin: 0 0 24px;
    overflow: hidden;
    border: 1px solid #eadfd4;
    border-radius: 18px;
    background: #fffdf9;
}

body.parent-pageid-4729 .vsh-faq-child-hero > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 38px;
    min-height: 360px;
    padding: 42px 0 42px 46px;
}

body.parent-pageid-4729 .vsh-faq-child-hero > .wp-block-group__inner-container::after {
    content: "";
    grid-column: 2;
    grid-row: 1 / 5;
    align-self: stretch;
    min-width: 0;
    margin: -42px 0;
    border-radius: 120px 0 0 120px;
    background: #faf4ee url('/wp-content/uploads/faq-assets/faq-bg-01.jpg') 78% center / cover no-repeat;
}

body.parent-pageid-4729 .vsh-faq-child-eyebrow {
    grid-column: 1;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a8662f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .045em;
    text-transform: uppercase;
}

body.parent-pageid-4729 .vsh-faq-child-eyebrow a {
    color: #70451f;
    text-decoration: none;
}

body.parent-pageid-4729 .vsh-faq-child-eyebrow a:hover {
    color: #5b3719;
}

body.parent-pageid-4729 .vsh-faq-child-eyebrow-separator {
    display: inline-block;
    width: 42px;
    height: 1px;
    background: #b98755;
}

body.parent-pageid-4729 .vsh-faq-child-title {
    grid-column: 1;
    margin: 0;
    color: #3f2518;
    font-size: clamp(38px, 3vw, 54px);
    line-height: 1.08;
}

body.parent-pageid-4729 .vsh-faq-child-lead {
    grid-column: 1;
    max-width: 760px;
    margin: 18px 0 0;
    color: #5c5148;
    font-size: 17px;
    line-height: 1.6;
}

body.parent-pageid-4729 .vsh-faq-child-actions {
    grid-column: 1;
    margin: 24px 0 0;
}

body.parent-pageid-4729 .vsh-faq-child-actions .wp-block-button,
body.parent-pageid-4729 .vsh-faq-child-actions .wp-block-buttons {
    margin: 0;
}

body.parent-pageid-4729 .vsh-faq-child-cta .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border: 1px solid #70451f;
    border-radius: 7px;
    background: #70451f;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
}

body.parent-pageid-4729 .vsh-faq-child-cta .wp-block-button__link:hover {
    border-color: #5b3719;
    background: #5b3719;
    color: #fff;
}

/* Shared section card */
body.parent-pageid-4729 .vsh-faq-child-section {
    box-sizing: border-box;
    margin: 0 0 24px;
    padding: 34px 38px 38px;
    border: 1px solid #eadfd4;
    border-radius: 16px;
    background: #fffdf9;
}

body.parent-pageid-4729 .vsh-faq-child-section h2 {
    margin: 0 0 14px;
    color: #3f2518;
    font-size: clamp(29px, 2.1vw, 36px);
    line-height: 1.18;
}

body.parent-pageid-4729 .vsh-faq-child-section p {
    margin: 0 0 18px;
    color: #4f463f;
    font-size: 16px;
    line-height: 1.65;
}

/* Requirements */
body.parent-pageid-4729 .vsh-faq-child-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 12px 22px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

body.parent-pageid-4729 .vsh-faq-child-checklist li {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    height: 100%;
    margin: 0;
    padding: 12px 16px 12px 48px;
    border-radius: 10px;
    background: #faf4ee;
    color: #2f2924;
    line-height: 1.45;
    list-style: none;
    box-sizing: border-box;
}

body.parent-pageid-4729 .vsh-faq-child-checklist li::before {
    content: "✓";
    position: absolute;
    left: 14px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #f3e2d0;
    color: #70451f;
    font-size: 13px;
    font-weight: 700;
}

body.parent-pageid-4729 .vsh-faq-child-note {
    margin: 24px 0 0 !important;
    padding: 16px 18px 16px 20px;
    border-left: 3px solid #b98755;
    border-radius: 0 9px 9px 0;
    background: #fbf5ef;
}

/* Process */
body.parent-pageid-4729 .vsh-faq-child-process-intro {
    margin-bottom: 22px !important;
}

body.parent-pageid-4729 .vsh-faq-child-process-list {
    counter-reset: faq-step;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.parent-pageid-4729 .vsh-faq-child-process-list li {
    counter-increment: faq-step;
    position: relative;
    min-height: 112px;
    margin: 0;
    padding: 20px 20px 20px 66px;
    border: 1px solid #eee2d6;
    border-radius: 12px;
    background: #fffaf5;
    color: #4f463f;
    line-height: 1.55;
    list-style: none;
}

body.parent-pageid-4729 .vsh-faq-child-process-list li::before {
    content: counter(faq-step);
    position: absolute;
    left: 18px;
    top: 19px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3e2d0;
    color: #70451f;
    font-size: 15px;
    font-weight: 700;
}

body.parent-pageid-4729 .vsh-faq-child-process-list strong {
    color: #3f2518;
}

/* Two supporting cards */
body.parent-pageid-4729 .vsh-faq-child-info-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin: 0 0 24px;
}

body.parent-pageid-4729 .vsh-faq-child-info-grid > .wp-block-column {
    display: flex;
    min-width: 0;
    width: auto;
    flex: none;
}

body.parent-pageid-4729 .vsh-faq-child-info-card {
    width: 100%;
    margin: 0;
    padding: 30px 32px;
    border: 1px solid #eadfd4;
    border-radius: 16px;
    background: #fffdf9;
}

body.parent-pageid-4729 .vsh-faq-child-info-card h2 {
    margin: 0 0 14px;
    color: #3f2518;
    font-size: 28px;
    line-height: 1.2;
}

body.parent-pageid-4729 .vsh-faq-child-info-card p {
    margin: 0 0 16px;
    color: #4f463f;
    line-height: 1.65;
}

body.parent-pageid-4729 .vsh-faq-child-info-card p:last-child {
    margin-bottom: 0;
}

/* Related materials */
body.parent-pageid-4729 .vsh-faq-child-related {
    margin-bottom: 0;
}

body.parent-pageid-4729 .vsh-faq-child-related-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

body.parent-pageid-4729 .vsh-faq-child-related-list li {
    margin: 0;
    list-style: none;
}

body.parent-pageid-4729 .vsh-faq-child-related-list a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 14px 18px 14px 54px;
    border: 1px solid #eadfd4;
    border-radius: 11px;
    background: #fffaf5;
    color: #70451f;
    font-size: 16px;
    line-height: 1.4;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

body.parent-pageid-4729 .vsh-faq-child-related-list a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: auto;
    top: 50%;
    display: block;
    width: 23px;
    height: 23px;
    transform: translateY(-50%);
    border-radius: 50%;
    background-color: #f3e2d0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12'%3E%3Cpath d='M2 2l4 4-4 4' fill='none' stroke='%2370451f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px 12px;
}

body.parent-pageid-4729 .vsh-faq-child-related-list a:hover {
    border-color: #d7bd9f;
    background: #fdf6ef;
    transform: translateY(-1px);
}

body.parent-pageid-4729 .vsh-faq-child-back {
    margin: 22px 0 0;
    text-align: center;
}

body.parent-pageid-4729 .vsh-faq-child-back a {
    color: #70451f;
    text-decoration: none;
}

body.parent-pageid-4729 .vsh-faq-child-back a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1050px) {
    body.parent-pageid-4729 .vsh-faq-child-hero > .wp-block-group__inner-container {
        grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
        column-gap: 24px;
        padding-left: 34px;
    }

    body.parent-pageid-4729 .vsh-faq-child-title {
        font-size: clamp(36px, 4vw, 46px);
    }
}

@media (max-width: 781px) {
    body.parent-pageid-4729 .vsh-faq-child-page {
        margin-top: 22px;
        margin-bottom: 48px;
        padding: 0 16px;
    }

    body.parent-pageid-4729 .vsh-faq-child-hero > .wp-block-group__inner-container {
        display: block;
        min-height: 0;
        padding: 28px 24px;
    }

    body.parent-pageid-4729 .vsh-faq-child-hero > .wp-block-group__inner-container::after {
        display: block;
        height: 190px;
        margin: 26px -24px -28px;
        border-radius: 72px 0 0 0;
        background-position: 72% center;
    }

    body.parent-pageid-4729 .vsh-faq-child-title {
        font-size: 34px;
        line-height: 1.12;
    }

    body.parent-pageid-4729 .vsh-faq-child-lead {
        font-size: 16px;
    }

    body.parent-pageid-4729 .vsh-faq-child-section {
        padding: 26px 24px 28px;
    }

    body.parent-pageid-4729 .vsh-faq-child-section h2,
    body.parent-pageid-4729 .vsh-faq-child-info-card h2 {
        font-size: 26px;
    }

    body.parent-pageid-4729 .vsh-faq-child-checklist,
    body.parent-pageid-4729 .vsh-faq-child-process-list,
    body.parent-pageid-4729 .vsh-faq-child-info-grid,
    body.parent-pageid-4729 .vsh-faq-child-related-list {
        grid-template-columns: 1fr;
    }

    body.parent-pageid-4729 .vsh-faq-child-checklist {
        grid-auto-rows: auto;
    }

    body.parent-pageid-4729 .vsh-faq-child-checklist li {
        min-height: 52px;
    }

    body.parent-pageid-4729 .vsh-faq-child-info-grid {
        gap: 14px;
    }

    body.parent-pageid-4729 .vsh-faq-child-info-card {
        padding: 26px 24px;
    }
}

/* Cleanup: Gutenberg sometimes leaves empty list items after block rewrites. */
body.parent-pageid-4729 .vsh-faq-child-page li:empty,
body.parent-pageid-4729 .vsh-faq-child-page li:has(> br:only-child),
body.parent-pageid-4729 .vsh-faq-child-page ul:empty,
body.parent-pageid-4729 .vsh-faq-child-page ol:empty {
    display: none !important;
}

/* VSH LINK SYSTEM — FAQ CHILD */
body.parent-pageid-4729 .vsh-faq-child-section p a:not(.wp-block-button__link),
body.parent-pageid-4729 .vsh-faq-child-info-card p a:not(.wp-block-button__link),
body.parent-pageid-4729 .vsh-faq-answer p a:not(.wp-block-button__link) {
    color: var(--vsh-link-color, #a8662f);
    text-decoration-line: underline;
    text-decoration-thickness: var(--vsh-link-underline-thickness, 1px);
    text-underline-offset: var(--vsh-link-underline-offset, 3px);
    transition: var(--vsh-link-transition, color .18s ease);
}

body.parent-pageid-4729 .vsh-faq-child-section p a:not(.wp-block-button__link):hover,
body.parent-pageid-4729 .vsh-faq-child-info-card p a:not(.wp-block-button__link):hover,
body.parent-pageid-4729 .vsh-faq-answer p a:not(.wp-block-button__link):hover {
    color: var(--vsh-link-hover-color, #70451f);
}

body.parent-pageid-4729 .vsh-faq-child-eyebrow a,
body.parent-pageid-4729 .vsh-faq-child-back a {
    color: var(--vsh-link-quiet-color, #70451f);
    text-decoration: none;
    transition: var(--vsh-link-transition, color .18s ease);
}

body.parent-pageid-4729 .vsh-faq-child-eyebrow a:hover,
body.parent-pageid-4729 .vsh-faq-child-back a: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);
}
