/**
 * Vered Meller Suite — Article widgets shared styles
 * Used by: vm-article-hero, vm-article-intro, vm-article-advice,
 *          vm-article-sidebar, vm-article-faq, vm-article-cta
 */

:root {
    --vm-art-primary: #2A3140;
    --vm-art-primary-2: #1D2330;
    --vm-art-text: #0E1217;
    --vm-art-text-2: #454B58;
    --vm-art-text-3: #7B8090;
    --vm-art-accent: #D69600;
    --vm-art-accent-soft: #F4D77A;
    --vm-art-cream: #F6F6EE;
    --vm-art-cream-2: #EFEFE4;
    --vm-art-line: #D6D6CD;
    --vm-art-line-2: #E8E8DC;
    --vm-art-shadow-sm: 0 1px 2px rgba(20,22,28,.04), 0 2px 6px rgba(20,22,28,.04);
    --vm-art-shadow-md: 0 4px 14px rgba(20,22,28,.06), 0 14px 40px rgba(20,22,28,.06);
    /* Scroll offset for TOC anchors — override per site to match sticky header height */
    --vm-toc-scroll-offset: 120px;
}

/* ===== HERO ===== */
.vm-article-hero {
    position: relative;
    display: block;
    width: 100%;
    min-height: 240px;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 16/7;
    background: linear-gradient(120deg, #2A3140, #3a4258);
    box-shadow: var(--vm-art-shadow-md);
    isolation: isolate;
    clear: both;
    z-index: 1;
}
.vm-article-hero-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
}
.vm-article-hero-overlay {
    position: absolute;
    inset: auto 0 0 0;
    height: 60%;
    background: linear-gradient(to top, rgba(20,22,28,.78), rgba(20,22,28,0));
}
.vm-article-hero-meta {
    position: absolute;
    right: 36px;
    bottom: 32px;
    left: 36px;
    color: #fff;
    z-index: 2;
}
.vm-article-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--vm-art-accent);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .5px;
    padding: 7px 14px;
    margin-bottom: 14px;
}
.vm-article-hero-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}
.vm-article-hero-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    text-wrap: balance;
    max-width: 900px;
    color: #fff;
}
.vm-article-hero-stats {
    display: flex;
    gap: 26px;
    margin-top: 18px;
    font-size: 14px;
    color: rgba(255,255,255,.85);
    flex-wrap: wrap;
}
.vm-article-hero-stats span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.vm-article-hero-stats svg {
    width: 16px;
    height: 16px;
    opacity: .9;
}

/* ===== INTRO (LEDE) ===== */
.vm-article-intro {
    font-size: 21px;
    line-height: 1.7;
    color: var(--vm-art-text);
    font-weight: 500;
    padding-inline-start: 18px;
    border-inline-start: 3px solid var(--vm-art-accent);
    margin: 0 0 32px;

}
.vm-article-intro p:first-child {
    margin-top: 0;
}
.vm-article-intro p:last-child {
    margin-bottom: 0;
}

/* ===== PERSONAL ADVICE (PRO-TIP) ===== */
.vm-article-advice {
    margin: 32px 0;
    padding: 26px 28px;
    background: linear-gradient(180deg, var(--vm-art-cream), var(--vm-art-cream-2));
    border: 1px solid var(--vm-art-line);
    position: relative;

}
.vm-article-advice-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--vm-art-accent);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .6px;
    margin-bottom: 8px;
}
.vm-article-advice-label::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--vm-art-accent);
}
.vm-article-advice h2 {
    margin: 0 0 10px;
    font-size: 2rem;
    color: var(--vm-art-primary);
    font-weight: 700;
    line-height: 1.2;
}
.vm-article-advice ul {
    margin: 6px 0 0;
    padding-inline-start: 18px;
}
.vm-article-advice li {
    color: var(--vm-art-text-2);
    margin-bottom: 6px;
}
.vm-article-advice p {
    margin: 0 0 10px;
}
.vm-article-advice p:last-child {
    margin-bottom: 0;
}

/* ===== SIDEBAR (TOC + CTA) ===== */
.vm-article-sidebar {
    position: sticky;
    top: 96px;

}
.vm-article-sidebar-toc {
    background: #fff;
    border: 1px solid var(--vm-art-line-2);
    padding: 22px 22px 18px;
    box-shadow: var(--vm-art-shadow-sm);
}
.vm-article-sidebar-toc-title {
    font-size: 13px;
    letter-spacing: .6px;
    color: var(--vm-art-text-3);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.vm-article-sidebar-toc-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--vm-art-line-2);
}
.vm-article-sidebar-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: vm-toc;
}
.vm-article-sidebar-toc li {
    border-bottom: 1px dashed var(--vm-art-line-2);
    font-size: 14.5px;
    color: var(--vm-art-text-2);
    counter-increment: vm-toc;
}
.vm-article-sidebar-toc li:last-child {
    border-bottom: 0;
}
.vm-article-sidebar-toc-item-text-wrapper {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
}
.vm-article-sidebar-toc-item-text-wrapper::before {
    content: counter(vm-toc, decimal-leading-zero);
    color: var(--vm-art-accent);
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    min-width: 22px;
    letter-spacing: .5px;
}
.vm-article-sidebar-toc a {
    color: inherit;
    text-decoration: none;
    display: block;
    flex: 1;
    line-height: 1.4;
}
.vm-article-sidebar-toc a:hover {
    color: var(--vm-art-primary);
}
.vm-article-sidebar-cta {
    margin-top: 16px;
    background: var(--vm-art-primary);
    color: #fff;
    padding: 18px;
    font-size: 14.5px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vm-article-sidebar-cta strong {
    display: block;
    font-size: 16px;
    margin: 0;
}
.vm-article-sidebar-cta-text {
    display: block;
}
.vm-article-sidebar-cta .vm-art-btn {
    width: 100%;
    margin-top: 6px;
    padding: 11px 0;
    background: var(--vm-art-accent);
    color: #fff;
    border: 0;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: background .15s ease;
}
.vm-article-sidebar-cta .vm-art-btn:hover {
    background: #B68000;
    color: #fff;
}

/* ===== FAQ ===== */
.vm-article-faq-section {

    margin: 72px 0 0;
}
.vm-article-faq-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 0 0 22px;
    gap: 16px;
    flex-wrap: wrap;
}
.vm-article-faq-head .eyebrow {
    color: var(--vm-art-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .7px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.vm-article-faq-head .eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--vm-art-accent);
}
.vm-article-faq-head h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vm-art-primary);
    margin: 8px 0 0;
    line-height: 1.2;
}
.vm-article-faq-head p {
    color: var(--vm-art-text-2);
    margin: 6px 0 0;
    max-width: 560px;
}
.vm-article-faq-list {
    border-top: 1px solid var(--vm-art-line);
}
.vm-article-faq-item {
    border-bottom: 1px solid var(--vm-art-line-2);
}
.vm-article-faq-q {
    width: 100%;
    background: transparent;
    border: 0;
    text-align: start;
    padding: 22px 0;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    cursor: pointer;
    font-family: inherit;
    font-size: 19px;
    font-weight: 700;
    color: var(--vm-art-primary);
    line-height: 1.4;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}
.vm-article-faq-q:focus { outline: none; }
.vm-article-faq-q:focus-visible { outline: 2px solid var(--vm-art-accent); outline-offset: 2px; }
.vm-article-faq-q:hover { background: transparent; }
.vm-article-faq-q:active { background: transparent; }
.vm-article-faq-num {
    color: var(--vm-art-accent);
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
    padding-top: 5px;
    min-width: 36px;
    letter-spacing: .5px;
}
.vm-article-faq-q-text {
    flex: 1;
}
.vm-article-faq-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: var(--vm-art-cream);
    display: grid;
    place-items: center;
    color: var(--vm-art-primary);
    transition: all .25s ease;
    margin-top: 2px;
}
.vm-article-faq-icon svg {
    width: 14px;
    height: 14px;
    transition: transform .3s ease;
}
.vm-article-faq-item.open .vm-article-faq-icon {
    background: var(--vm-art-accent);
    color: #fff;
}
.vm-article-faq-item.open .vm-article-faq-icon svg {
    transform: rotate(45deg);
}
.vm-article-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.vm-article-faq-a-inner {
    padding: 0 54px 26px 0;
    color: var(--vm-art-text-2);
    font-size: 17px;
    line-height: 1.75;
}
.vm-article-faq-item.open .vm-article-faq-a {
    max-height: 800px;
}

/* ===== CTA ===== */
.vm-article-cta {

    margin: 72px 0 0;
    background: var(--vm-art-primary);
    color: #fff;
    padding: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--vm-art-shadow-md);
}
.vm-article-cta::before {
    content: "";
    position: absolute;
    inset: auto -120px -120px auto;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(214,150,0,.35), transparent 65%);
    pointer-events: none;
}
.vm-article-cta::after {
    content: "";
    position: absolute;
    inset: -60px auto auto -60px;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255,255,255,.08);
    pointer-events: none;
}
.vm-article-cta-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
}
.vm-article-cta-eyebrow {
    color: var(--vm-art-accent-soft);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.vm-article-cta-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--vm-art-accent);
}
.vm-article-cta h2 {
    margin: 0 0 14px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: #fff;
}
.vm-article-cta p {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 17px;
    line-height: 1.7;
    max-width: 520px;
}
.vm-article-cta-trust {
    display: flex;
    gap: 18px;
    margin-top: 18px;
    color: rgba(255,255,255,.65);
    font-size: 13px;
    flex-wrap: wrap;
}
.vm-article-cta-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.vm-article-cta-trust svg {
    width: 14px;
    height: 14px;
    color: var(--vm-art-accent-soft);
}
.vm-article-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}
.vm-article-cta-actions .vm-art-btn {
    padding: 16px 22px;
    font-size: 16px;
    justify-content: center;
    background: var(--vm-art-accent);
    color: #fff;
    border: 0;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all .18s ease;
    line-height: 1;
}
.vm-article-cta-actions .vm-art-btn:hover {
    background: #B68000;
    color: #fff;
}
.vm-article-cta-actions .vm-art-btn-wa {
    background: #25D366;
}
.vm-article-cta-actions .vm-art-btn-wa:hover {
    background: #1FBA59;
}
.vm-article-cta-actions .vm-art-btn-ghost {
    background: rgba(255,255,255,.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
}
.vm-article-cta-actions .vm-art-btn-ghost:hover {
    background: rgba(255,255,255,.12);
}

/* ===== COMPARISON TABLE ===== */
.vm-compare-table-wrap {
    margin: 24px 0 36px;
    border: 1px solid var(--vm-art-line-2);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--vm-art-shadow-sm);
}
.vm-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;

}
.vm-compare-table th {
    background: var(--vm-art-cream);
    color: var(--vm-art-primary);
    font-weight: 700;
    text-align: start;
    padding: 14px 18px;
    font-size: 13px;
    letter-spacing: .4px;
    border-bottom: 1px solid var(--vm-art-line-2);
}
.vm-compare-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--vm-art-line-2);
    color: var(--vm-art-text-2);
}
.vm-compare-table tr:last-child td {
    border-bottom: 0;
}
.vm-compare-table td:first-child {
    font-weight: 700;
    color: var(--vm-art-primary);
}
.vm-price-pill {
    display: inline-block;
    background: rgba(214,150,0,.10);
    color: #9D6E00;
    font-weight: 700;
    font-size: 13px;
    padding: 3px 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    .vm-article-sidebar { display: none !important; }
}

@media (max-width: 880px) {
    /* Hero */
    .vm-article-hero {
        aspect-ratio: 4/5;
        min-height: 500px;
        margin-bottom: 32px;
    }
    
    /* Utility: apply this class to a content column that overlaps the hero on mobile.
       Adds 500px of padding-top so the content sits below the hero. */
    .vm-article-content-mobile-offset {
        padding-top: 500px !important;
    }
    .vm-article-hero-meta { right: 20px; left: 20px; bottom: 20px; }
    .vm-article-hero-label { font-size: 11px; padding: 6px 10px; margin-bottom: 10px; }
    .vm-article-hero-title { font-size: 24px; line-height: 1.2; }
    .vm-article-hero-stats { gap: 14px; font-size: 12px; margin-top: 12px; }
    .vm-article-hero-stats svg { width: 13px; height: 13px; }
    
    /* Intro */
    .vm-article-intro { font-size: 18px; padding-inline-start: 14px; margin-bottom: 24px; }
    
    /* Advice */
    .vm-article-advice { padding: 20px 18px; margin: 24px 0; }
    .vm-article-advice h4 { font-size: 18px; }
    
    /* FAQ */
    .vm-article-faq-section { margin-top: 48px; }
    .vm-article-faq-head { margin-bottom: 18px; }
    .vm-article-faq-head h2 { font-size: 24px; }
    .vm-article-faq-head p { font-size: 15px; }
    .vm-article-faq-q { font-size: 16px; padding: 18px 0; gap: 12px; }
    .vm-article-faq-num { min-width: 26px; font-size: 12px; }
    .vm-article-faq-icon { width: 28px; height: 28px; }
    .vm-article-faq-icon svg { width: 12px; height: 12px; }
    .vm-article-faq-a-inner { padding: 0 38px 22px 0; font-size: 15.5px; }
    
    /* CTA */
    .vm-article-cta { margin-top: 48px; padding: 32px 24px; }
    .vm-article-cta-grid { grid-template-columns: 1fr; gap: 24px; }
    .vm-article-cta-eyebrow { font-size: 11px; }
    .vm-article-cta h2 { font-size: 24px; }
    .vm-article-cta p { font-size: 15px; }
    .vm-article-cta-actions .vm-art-btn { padding: 14px 18px; font-size: 15px; }
    .vm-article-cta-trust { gap: 10px; font-size: 12px; margin-top: 14px; }
    
    /* Compare table → stacked cards (clean white background like desktop zebra parity row) */
    .vm-compare-table-wrap {
        background: #fff;
        border: 1px solid var(--vm-art-line-2);
        box-shadow: var(--vm-art-shadow-sm);
        padding: 8px;
    }
    .vm-compare-table thead { display: none; }
    .vm-compare-table {
        background: #fff;
    }
    .vm-compare-table, .vm-compare-table tbody, .vm-compare-table tr, .vm-compare-table td {
        display: block; width: 100%;
    }
    .vm-compare-table tr {
        background: #fff !important;
        border: 1px solid var(--vm-art-line-2);
        margin-bottom: 10px;
        padding: 14px 16px;
    }
    .vm-compare-table tr:nth-child(even),
    .vm-compare-table tr:nth-child(odd) {
        background: #fff !important;
    }
    .vm-compare-table tr:last-child {
        margin-bottom: 0;
    }
    .vm-compare-table td {
        background: transparent !important;
        border: 0;
        padding: 4px 0;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        font-size: 14px;
    }
    .vm-compare-table td:first-child {
        font-size: 17px;
        font-weight: 800;
        padding-bottom: 8px;
        margin-bottom: 6px;
        border-bottom: 1px solid var(--vm-art-line-2);
        display: block;
    }
    .vm-compare-table td:not(:first-child)::before {
        content: attr(data-label);
        color: var(--vm-art-text-3);
        font-weight: 600;
        font-size: 12px;
        letter-spacing: .3px;
    }
}

@media (max-width: 480px) {
    .vm-article-hero-title { font-size: 22px; }
    .vm-article-hero-stats span:nth-child(n+3) { display: none; }
    .vm-article-faq-head h2 { font-size: 22px; }
    .vm-article-cta h2 { font-size: 22px; }
}

/* ===== CAROUSEL FOR PROPERTY ARCHIVE (Task 2) ===== */
.vm-archive-carousel-wrap {
    position: relative;

    margin: 24px 0;
}
.vm-archive-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 16px;
}
.vm-archive-carousel-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--vm-art-primary);
    line-height: 1.2;
}
.vm-archive-carousel-nav {
    display: flex;
    gap: 8px;
}
.vm-archive-carousel-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--vm-art-line);
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all .15s ease;
    padding: 0;
}
.vm-archive-carousel-btn:hover {
    background: var(--vm-art-primary);
    color: #fff;
    border-color: var(--vm-art-primary);
}
.vm-archive-carousel-btn svg {
    width: 18px;
    height: 18px;
}
.vm-archive-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;        /* Firefox: hide scrollbar */
    -ms-overflow-style: none;     /* IE/Edge: hide scrollbar */
}
.vm-archive-carousel-track::-webkit-scrollbar {
    display: none;                /* Chrome/Safari: hide scrollbar */
}
.vm-archive-carousel-track > * {
    flex: 0 0 calc((100% - 40px) / 3);
    scroll-snap-align: start;
    min-width: 0;
    height: auto;
}
/* Clone wrapper is a flex item like original cards */
.vm-carousel-clone {
    display: block;
}
.vm-carousel-clone > * {
    width: 100%;
}
.vm-archive-carousel-track > * .vm-archive-card,
.vm-archive-carousel-track > .vm-archive-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
/* Image: cards use <div style="background-image:url(...)"> (not <img>) so we override background sizing */
.vm-archive-carousel-track .vm-archive-card-image {
    width: 100%;
    height: 200px;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #f5f5f5;
    aspect-ratio: auto;
}
/* Defensive: in case any cards use <img> too */
.vm-archive-carousel-track .vm-archive-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Title: fixed 2-line height regardless of content (44px ≈ 2 lines @ 0.95em) */
.vm-archive-carousel-track .vm-archive-card-title {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: clip !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}
@media (max-width: 991px) {
    .vm-archive-carousel-track > * { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 767px) {
    .vm-archive-carousel-track > * { flex: 0 0 100%; }
    .vm-archive-carousel-nav { display: none; }
}

/* ===== SHARE BUTTONS ===== */
.vm-article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--vm-art-text-3);
    flex-wrap: wrap;
}
.vm-article-share-label {
    font-weight: 500;
}
.vm-article-share-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.vm-article-share-btn {
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid var(--vm-art-line);
    display: grid;
    place-items: center;
    color: var(--vm-art-text-2);
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    position: relative;
}
.vm-article-share-btn:hover {
    background: var(--vm-art-primary);
    color: #fff;
    border-color: var(--vm-art-primary);
    text-decoration: none;
}
.vm-article-share-btn svg {
    width: 15px;
    height: 15px;
}
/* Copy feedback — checkmark on success */
.vm-article-share-btn.vm-copied {
    background: var(--vm-art-accent);
    border-color: var(--vm-art-accent);
    color: #fff;
}
.vm-article-share-btn.vm-copied::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
    background: var(--vm-art-accent);
}
@media (max-width: 480px) {
    .vm-article-share-btn { width: 40px; height: 40px; }
    .vm-article-share-btn svg { width: 17px; height: 17px; }
}

/* ===== SCROLL OFFSET FOR STICKY HEADER ===== */
/* When TOC links jump to a heading, push it down so the sticky header doesn't cover it.
   Override --vm-toc-scroll-offset (default 120px) to match your site's sticky header height. */
.vm-article-content h2[id],
.vm-article-content h3[id],
article h2[id],
article h3[id],
main h2[id],
main h3[id],
.entry-content h2[id],
.entry-content h3[id],
.vm-article-advice h2,
.vm-article-faq-head h2,
.vm-article-cta h2,
[id]:target {
    scroll-margin-top: var(--vm-toc-scroll-offset, 120px);
}

/* Also apply at document level for older browsers / smooth scrolling */
html {
    scroll-padding-top: var(--vm-toc-scroll-offset, 120px);
}
