/**
 * Virtual Fence global chrome and navigation.
 *
 * Design rule:
 * - RightRisk supplies the color lineage.
 * - Virtual Fence uses a cleaner, contemporary treatment.
 * - Menu structure is managed in WordPress; CSS only controls appearance.
 */

:root {
    --vf-green-900: #25332A;
    --vf-green-800: #33463A;
    --vf-green-700: #405749;
    --vf-gold-600: #A8762A;
    --vf-ink: #1E251D;
    --vf-muted: #5B6056;
    --vf-paper: #F4F4EF;
    --vf-paper-2: #FBFBF8;
    --vf-line: #DBDAD0;
    --vf-white: #FFFFFF;

    --vf-nav-bg: var(--vf-green-800);
    --vf-nav-bg-hover: var(--vf-green-900);
    --vf-nav-text: var(--vf-white);
    --vf-nav-accent: var(--vf-gold-600);
    --vf-nav-submenu-bg: var(--vf-paper-2);
    --vf-nav-submenu-text: var(--vf-ink);

    --vf-content-max: 1180px;
    --vf-focus-ring: 3px solid var(--vf-gold-600);
    --vf-transition: 150ms ease;
}


/* ---------- Kadence masthead simplification ----------
 * The page/site identity is Virtual Fence. The current Kadence masthead
 * carries a second full-size RightRisk identity above a VF mark that already
 * includes RightRisk branding, so the redundant masthead is suppressed.
 * The broader RightRisk identity remains in the resource footer.
 */
.vf-site #masthead.site-header,
.vf-site header#masthead {
    display: none !important;
}

/* ---------- Virtual Fence primary navigation ---------- */
.vf-site-nav {
    position: relative;
    z-index: 90;
    width: 100%;
    background: var(--vf-nav-bg);
    border-bottom: 3px solid var(--vf-nav-accent);
    color: var(--vf-nav-text);
}

.vf-site-nav__inner {
    width: min(100% - 2rem, var(--vf-content-max));
    margin-inline: auto;
}

.vf-site-nav__toggle {
    display: none;
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0;
    border: 0;
    background: transparent;
    color: var(--vf-nav-text);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.vf-site-nav__toggle:focus-visible,
.vf-site-nav a:focus-visible,
.vf-rr-footer a:focus-visible {
    outline: var(--vf-focus-ring);
    outline-offset: 3px;
}

.vf-site-nav__toggle-icon {
    display: inline-grid;
    gap: 4px;
    width: 21px;
    margin-right: 0.6rem;
    vertical-align: middle;
}

.vf-site-nav__toggle-icon span {
    display: block;
    height: 2px;
    background: currentColor;
}

.vf-site-nav__menu,
.vf-site-nav__menu ul,
.vf-rr-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vf-site-nav__menu {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}

.vf-site-nav__menu > li {
    position: relative;
    margin: 0;
}

.vf-site-nav__menu > li > a,
.vf-site-nav__preview-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0.75rem 1.05rem;
    color: var(--vf-nav-text);
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color var(--vf-transition);
}

.vf-site-nav__menu > li > a:hover,
.vf-site-nav__menu > li:focus-within > a,
.vf-site-nav__preview-link:hover,
.vf-site-nav__preview-link:focus {
    background: var(--vf-nav-bg-hover);
    color: var(--vf-nav-text);
}

.vf-site-nav__menu > li.current-menu-item > a,
.vf-site-nav__menu > li.current-menu-ancestor > a,
.vf-site-nav__menu > li.current_page_item > a,
.vf-site-nav__menu > li.current_page_ancestor > a {
    background: var(--vf-nav-bg-hover);
    color: var(--vf-nav-text);
}

.vf-site-nav__menu > li.current-menu-item > a::after,
.vf-site-nav__menu > li.current-menu-ancestor > a::after,
.vf-site-nav__menu > li.current_page_item > a::after,
.vf-site-nav__menu > li.current_page_ancestor > a::after {
    content: "";
    position: absolute;
    right: 1rem;
    bottom: 0;
    left: 1rem;
    height: 4px;
    background: var(--vf-nav-accent);
}

/* Desktop dropdowns: mouse + keyboard. */
.vf-site-nav__menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    width: max-content;
    min-width: 230px;
    max-width: min(360px, 90vw);
    padding: 0.4rem;
    border: 1px solid var(--vf-line);
    border-top: 3px solid var(--vf-nav-accent);
    background: var(--vf-nav-submenu-bg);
    box-shadow: 0 10px 28px rgba(30, 37, 29, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity var(--vf-transition), transform var(--vf-transition), visibility var(--vf-transition);
}

.vf-site-nav__menu li:hover > .sub-menu,
.vf-site-nav__menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vf-site-nav__menu .sub-menu li {
    margin: 0;
}

.vf-site-nav__menu .sub-menu a,
.vf-site-nav__preview-sublink {
    display: block;
    padding: 0.72rem 0.8rem;
    color: var(--vf-nav-submenu-text);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.3;
}

.vf-site-nav__menu .sub-menu a:hover,
.vf-site-nav__menu .sub-menu a:focus-visible,
.vf-site-nav__menu .sub-menu .current-menu-item > a,
.vf-site-nav__preview-sublink:hover,
.vf-site-nav__preview-sublink:focus {
    background: #ECECE3;
    color: var(--vf-green-900);
    text-decoration: underline;
    text-decoration-color: var(--vf-nav-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
}

/* ---------- RightRisk footer resource layer ---------- */
.vf-rr-footer {
    width: 100%;
    background: var(--vf-green-900);
    color: var(--vf-paper);
    border-top: 4px solid var(--vf-nav-accent);
}

.vf-rr-footer__inner {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.5fr);
    gap: clamp(2rem, 5vw, 4rem);
    width: min(100% - 2rem, var(--vf-content-max));
    margin-inline: auto;
    padding: clamp(2rem, 4vw, 3.25rem) 0;
}

.vf-rr-footer__eyebrow {
    margin: 0 0 0.55rem;
    color: #C9D2C7;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vf-rr-footer__identity h2 {
    margin: 0 0 0.7rem;
    color: var(--vf-white);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    line-height: 1.2;
}

.vf-rr-footer__identity p:last-child {
    max-width: 44ch;
    margin: 0;
    color: #DDE3DB;
    line-height: 1.55;
}

.vf-rr-footer__menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.15rem 1.75rem;
}

.vf-rr-footer__menu a {
    display: block;
    padding: 0.48rem 0;
    color: var(--vf-white);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
}

.vf-rr-footer__menu a:hover {
    color: var(--vf-white);
    text-decoration: underline;
    text-decoration-color: var(--vf-nav-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
}


/* Administrator-only menu preview. */
.vf-site-nav__preview-note {
    padding: 0.38rem 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    color: #E9E3D5;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
}

.vf-site-nav__preview-link,
.vf-site-nav__preview-sublink {
    cursor: default;
}

/* Submenu disclosure buttons are mobile-only. */
.vf-site-nav__submenu-toggle {
    display: none;
}

/* ---------- Responsive behavior ---------- */
@media (max-width: 900px) {
    .vf-site-nav__toggle {
        display: flex;
        align-items: center;
    }

    .vf-nav-js .vf-site-nav[data-vf-menu-open="false"] .vf-site-nav__menu-wrap {
        display: none;
    }

    .vf-site-nav__menu {
        display: block;
        padding: 0 0 0.6rem;
    }

    .vf-site-nav__menu > li > a,
.vf-site-nav__preview-link {
        min-height: 46px;
        padding: 0.7rem 0.6rem;
        border-top: 1px solid rgba(255,255,255,0.16);
    }

    .vf-site-nav__menu > li.current-menu-item > a::after,
    .vf-site-nav__menu > li.current-menu-ancestor > a::after,
    .vf-site-nav__menu > li.current_page_item > a::after,
    .vf-site-nav__menu > li.current_page_ancestor > a::after {
        top: 0.6rem;
        right: auto;
        bottom: 0.6rem;
        left: 0;
        width: 4px;
        height: auto;
    }

    /* Mobile submenus are collapsed by default and opened individually. */
    .vf-site-nav__menu > li.menu-item-has-children {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px;
        align-items: stretch;
    }

    .vf-site-nav__submenu-toggle {
        display: grid;
        place-items: center;
        min-width: 46px;
        min-height: 46px;
        margin: 0;
        padding: 0;
        border: 0;
        border-top: 1px solid rgba(255,255,255,0.16);
        border-left: 1px solid rgba(255,255,255,0.16);
        background: transparent;
        color: var(--vf-white);
        cursor: pointer;
    }

    .vf-site-nav__submenu-toggle:hover,
    .vf-site-nav__submenu-toggle:focus-visible {
        background: var(--vf-nav-bg-hover);
    }

    .vf-site-nav__submenu-toggle:focus-visible {
        outline: var(--vf-focus-ring);
        outline-offset: -3px;
    }

    .vf-site-nav__submenu-toggle::before {
        content: "";
        width: 0.55rem;
        height: 0.55rem;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-0.15rem) rotate(45deg);
        transition: transform var(--vf-transition);
    }

    .vf-site-nav__submenu-toggle[aria-expanded="true"]::before {
        transform: translateY(0.15rem) rotate(225deg);
    }

    .vf-site-nav__menu .sub-menu {
        position: static;
        grid-column: 1 / -1;
        display: none;
        width: auto;
        max-width: none;
        padding: 0.2rem 0 0.45rem 1rem;
        border: 0;
        border-top: 1px solid rgba(255,255,255,0.10);
        background: rgba(0,0,0,0.08);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .vf-site-nav__menu li.vf-submenu-open > .sub-menu {
        display: block;
    }

    .vf-site-nav__menu .sub-menu a,
    .vf-site-nav__preview-sublink {
        padding: 0.62rem 0.7rem;
        color: #E6ECE4;
        font-size: 0.91rem;
        font-weight: 600;
    }

    .vf-site-nav__menu .sub-menu a:hover,
    .vf-site-nav__menu .sub-menu a:focus-visible,
    .vf-site-nav__menu .sub-menu .current-menu-item > a,
    .vf-site-nav__preview-sublink:hover,
    .vf-site-nav__preview-sublink:focus {
        background: rgba(255,255,255,0.08);
        color: var(--vf-white);
    }

    .vf-rr-footer__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .vf-site-nav__inner,
    .vf-rr-footer__inner {
        width: min(100% - 1.5rem, var(--vf-content-max));
    }

    .vf-rr-footer__menu {
        grid-template-columns: 1fr;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .vf-site-nav *,
    .vf-rr-footer * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ---------- Print ---------- */
@media print {
    .vf-site-nav,
    .vf-rr-footer {
        display: none !important;
    }
}


/* ================================================================
   Virtual Fence producer-page system (v1.3 foundation)
   ================================================================ */

/* One site identity only: suppress the logo bar embedded in the legacy
   Phase 1 homepage while it remains in place during transition. */
.vf-site .vf-rr .logobar { display: none !important; }

.vf-site-brand {
    width: 100%;
    background: var(--vf-paper);
    border-bottom: 1px solid var(--vf-line);
}
.vf-site-brand__inner {
    width: min(100% - 2rem, var(--vf-content-max));
    margin-inline: auto;
    padding: 0.85rem 0;
}
.vf-site-brand__link { display: inline-flex; align-items: center; }
.vf-site-brand__logo {
    display: block;
    width: min(250px, 78vw);
    height: auto;
}
.vf-site-brand__link:focus-visible {
    outline: var(--vf-focus-ring);
    outline-offset: 4px;
}

/* Kadence page-shell neutralization for the new VF pages only. */
.vf-content-page .content-area,
.vf-content-page .site-main,
.vf-content-page .entry-content { margin: 0 !important; padding: 0 !important; }
.vf-content-page .entry-header,
.vf-content-page .entry-hero,
.vf-content-page .page-header { display: none !important; }
.vf-content-page .content-container,
.vf-content-page .site-container,
.vf-content-page .site-content { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.vf-content-page article.page { margin: 0 !important; }

.vf-page {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--vf-paper-2);
    color: var(--vf-ink);
    font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.04rem;
    line-height: 1.66;
}
.vf-page *, .vf-page *::before, .vf-page *::after { box-sizing: border-box; }
.vf-page a { color: var(--vf-green-800); text-underline-offset: 0.18em; }
.vf-page a:hover { color: var(--vf-green-900); }
.vf-page a:focus-visible { outline: var(--vf-focus-ring); outline-offset: 3px; }
.vf-shell {
    width: min(100% - 2rem, var(--vf-content-max));
    margin-inline: auto;
}
.vf-prose { max-width: 72ch; }
.vf-section { padding: clamp(2.4rem, 5vw, 4.5rem) 0; }
.vf-section--paper { background: var(--vf-paper); }
.vf-section--white { background: var(--vf-white); }
.vf-section--dark { background: var(--vf-green-900); color: var(--vf-paper); }
.vf-section--compact { padding: clamp(1.6rem, 3vw, 2.6rem) 0; }
.vf-page h1, .vf-page h2, .vf-page h3 {
    font-family: 'Bitter', Georgia, 'Times New Roman', serif;
    color: var(--vf-green-900);
    line-height: 1.15;
    letter-spacing: -0.015em;
}
.vf-page h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin: 0 0 0.9rem; }
.vf-page h3 { font-size: clamp(1.2rem, 2vw, 1.42rem); margin: 0 0 0.55rem; }
.vf-page p { margin: 0 0 1rem; }
.vf-eyebrow {
    display: flex; align-items: center; gap: 0.55rem;
    margin: 0 0 0.85rem;
    color: var(--vf-muted);
    font-size: 0.76rem; font-weight: 800;
    letter-spacing: 0.12em; text-transform: uppercase;
}
.vf-eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--vf-gold-600); flex: none; }
.vf-section--dark .vf-eyebrow { color: #D7DED4; }
.vf-lede { max-width: 70ch; font-size: clamp(1.12rem, 2vw, 1.3rem); line-height: 1.55; }
.vf-small { font-size: 0.9rem; color: var(--vf-muted); }
.vf-section--dark .vf-small { color: #D7DED4; }

.vf-hero {
    background: var(--vf-green-800);
    color: var(--vf-paper);
    border-bottom: 4px solid var(--vf-gold-600);
    padding: clamp(3rem, 7vw, 5.75rem) 0;
}
.vf-hero h1 {
    max-width: 19ch;
    margin: 0 0 1rem;
    color: var(--vf-white);
    font-size: clamp(2.25rem, 5.4vw, 4rem);
}
.vf-hero p { max-width: 68ch; color: #EDF0EA; }
.vf-hero__actions, .vf-actions {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
    margin-top: 1.45rem;
}
.vf-button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px;
    padding: 0.7rem 1rem;
    border: 2px solid var(--vf-green-800);
    background: var(--vf-green-800);
    color: var(--vf-white) !important;
    text-decoration: none !important;
    font-weight: 800; line-height: 1.2;
}
.vf-button:hover { background: var(--vf-green-900); border-color: var(--vf-green-900); }
.vf-button--gold { background: var(--vf-gold-600); border-color: var(--vf-gold-600); color: #121510 !important; }
.vf-button--gold:hover { background: #936521; border-color: #936521; color: var(--vf-white) !important; }
.vf-button--outline { background: transparent; color: var(--vf-green-800) !important; }
.vf-button--outline:hover { background: var(--vf-green-800); color: var(--vf-white) !important; }
.vf-hero .vf-button--outline { border-color: #DCE3DA; color: var(--vf-white) !important; }
.vf-hero .vf-button--outline:hover { background: var(--vf-white); color: var(--vf-green-900) !important; }

.vf-grid { display: grid; gap: 1rem; }
.vf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vf-card {
    padding: clamp(1.15rem, 2.4vw, 1.55rem);
    border: 1px solid var(--vf-line);
    border-top: 4px solid var(--vf-gold-600);
    background: var(--vf-white);
}
.vf-card p:last-child { margin-bottom: 0; }
.vf-card__kicker { margin: 0 0 0.45rem; color: var(--vf-muted); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.vf-card__link { display: inline-block; margin-top: 0.35rem; font-weight: 800; }
.vf-card--quiet { border-top-color: var(--vf-green-700); }
.vf-card--outcome { border-top-width: 3px; }

.vf-question-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: vf-question; }
.vf-question {
    position: relative; min-height: 100%;
    padding: 1.35rem 1.3rem 1.3rem 4.05rem;
    border: 1px solid var(--vf-line);
    background: var(--vf-white);
    counter-increment: vf-question;
}
.vf-question::before {
    content: counter(vf-question);
    position: absolute; top: 1.25rem; left: 1.25rem;
    display: grid; place-items: center;
    width: 2rem; height: 2rem;
    border-radius: 50%;
    background: var(--vf-green-800); color: var(--vf-white);
    font-weight: 900;
}
.vf-question h3 { margin-top: 0.05rem; }

.vf-callout {
    padding: 1.15rem 1.25rem;
    border-left: 5px solid var(--vf-gold-600);
    background: #EEEDE5;
}
.vf-callout p:last-child { margin-bottom: 0; }
.vf-callout--dark { background: var(--vf-green-900); color: var(--vf-paper); border-left-color: var(--vf-gold-600); }
.vf-callout--dark h2, .vf-callout--dark h3 { color: var(--vf-white); }

.vf-checklist, .vf-plain-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.vf-checklist li, .vf-plain-list li { position: relative; margin: 0 0 0.7rem; padding-left: 1.45rem; }
.vf-checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--vf-green-700); font-weight: 900; }
.vf-plain-list li::before { content: '—'; position: absolute; left: 0; color: var(--vf-gold-600); font-weight: 900; }

.vf-risk-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; }
.vf-risk {
    padding: 1rem;
    border: 1px solid var(--vf-line);
    background: var(--vf-white);
}
.vf-risk strong { display: block; margin-bottom: 0.3rem; color: var(--vf-green-900); }
.vf-risk p { margin: 0; font-size: 0.92rem; line-height: 1.5; }

.vf-outcomes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.7rem; }
.vf-outcome { padding: 1rem; border: 1px solid var(--vf-line); background: var(--vf-white); }
.vf-outcome strong { display: block; margin-bottom: 0.25rem; color: var(--vf-green-900); }
.vf-outcome p { margin: 0; font-size: 0.9rem; line-height: 1.48; }

.vf-alternatives { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-top: 1.2rem; }
.vf-alternative { padding: 1rem; border: 1px solid var(--vf-line); background: var(--vf-white); }
.vf-alternative strong { color: var(--vf-green-900); }

.vf-criteria { columns: 2; column-gap: 2.4rem; margin: 1rem 0 0; padding-left: 1.2rem; list-style: disc; }
.vf-criteria li { break-inside: avoid; margin: 0 0 0.5rem; padding-left: 0.15rem; }

.vf-step-nav {
    display: flex; justify-content: space-between; gap: 1rem; align-items: center;
    padding: 1.1rem 0;
    border-top: 1px solid var(--vf-line);
}
.vf-step-nav a { font-weight: 800; }

.vf-materials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.vf-material { padding: 1rem 1.05rem; border: 1px solid var(--vf-line); background: var(--vf-white); }
.vf-material strong { display: block; margin-bottom: 0.3rem; color: var(--vf-green-900); }
.vf-material p { margin: 0 0 0.45rem; font-size: 0.92rem; }

@media (max-width: 980px) {
    .vf-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vf-grid--3, .vf-question-path, .vf-alternatives, .vf-materials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vf-risk-grid, .vf-outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .vf-page { font-size: 1rem; }
    .vf-grid--2, .vf-grid--3, .vf-grid--4, .vf-question-path, .vf-alternatives, .vf-materials, .vf-risk-grid, .vf-outcomes { grid-template-columns: 1fr; }
    .vf-criteria { columns: 1; }
    .vf-hero__actions, .vf-actions { display: grid; }
    .vf-button { width: 100%; }
    .vf-step-nav { align-items: flex-start; flex-direction: column; }
}
@media print {
    .vf-site-brand { display: none !important; }
    .vf-page { width: auto; max-width: none; margin: 0; background: #fff; color: #000; font-size: 11pt; }
    .vf-hero, .vf-section--dark { background: #fff !important; color: #000 !important; border-color: #777; }
    .vf-hero h1, .vf-section--dark h2, .vf-section--dark h3, .vf-hero p { color: #000 !important; }
    .vf-button { border: 1px solid #444; background: #fff; color: #000 !important; }
}

/* ================================================================
   Virtual Fence visual system (v1.4)
   Licensed contextual photography + publication-led resource cards.
   ================================================================ */

/* Photo heroes are contextual only. Text remains the substantive layer. */
.vf-hero--photo {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--vf-green-900);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.vf-hero--photo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(23, 33, 27, 0.90) 0%, rgba(23, 33, 27, 0.78) 42%, rgba(23, 33, 27, 0.52) 68%, rgba(23, 33, 27, 0.34) 100%);
}
.vf-hero--photo .vf-shell {
    position: relative;
    z-index: 1;
}
.vf-hero--photo .vf-lede { text-shadow: 0 1px 2px rgba(0,0,0,0.18); }

/* JPEG first = broad fallback; image-set prefers WebP where supported. */
.vf-hero--home {
    background-image: url('../images/heroes/home-desktop.jpg');
    background-image: image-set(url('../images/heroes/home-desktop.webp') type('image/webp'), url('../images/heroes/home-desktop.jpg') type('image/jpeg'));
    background-position: center 52%;
}
.vf-hero--start {
    background-image: url('../images/heroes/start-desktop.jpg');
    background-image: image-set(url('../images/heroes/start-desktop.webp') type('image/webp'), url('../images/heroes/start-desktop.jpg') type('image/jpeg'));
    background-position: center 60%;
}
.vf-hero--decision {
    background-image: url('../images/heroes/decision-desktop.jpg');
    background-image: image-set(url('../images/heroes/decision-desktop.webp') type('image/webp'), url('../images/heroes/decision-desktop.jpg') type('image/jpeg'));
    background-position: center 58%;
}
.vf-hero--alternatives {
    background-image: url('../images/heroes/alternatives-desktop.jpg');
    background-image: image-set(url('../images/heroes/alternatives-desktop.webp') type('image/webp'), url('../images/heroes/alternatives-desktop.jpg') type('image/jpeg'));
    background-position: center 52%;
}

/* Make the three-question path read as a connected sequence on wide screens. */
.vf-question-path--connected {
    position: relative;
}
.vf-question-path--connected::before {
    content: '';
    position: absolute;
    top: 2.25rem;
    right: 12%;
    left: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--vf-green-700), var(--vf-gold-600), var(--vf-green-700));
    opacity: 0.35;
}
.vf-question-path--connected .vf-question {
    z-index: 1;
    box-shadow: 0 5px 16px rgba(30, 37, 29, 0.06);
}
.vf-question-path--connected .vf-question::before {
    box-shadow: 0 0 0 5px var(--vf-paper);
}
.vf-section--white .vf-question-path--connected .vf-question::before {
    box-shadow: 0 0 0 5px var(--vf-white);
}

/* Publication cards turn the project's own bulletins/forms into visual entry points. */
.vf-publication-grid {
    display: grid;
    gap: 1.1rem;
    margin-top: 1.4rem;
}
.vf-publication-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vf-publication-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* v1.5.1: Two-up guide cards stack image above copy on desktop.
   Each card already occupies half the content width; splitting that card
   into a second pair of columns made the copy unnecessarily narrow. */
.vf-publication-grid--2 .vf-publication-card,
.vf-publication-grid--2 .vf-publication-card--landscape {
    grid-template-columns: 1fr;
}
.vf-publication-grid--2 .vf-publication-card__cover,
.vf-publication-grid--2 .vf-publication-card--landscape .vf-publication-card__cover {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--vf-line);
    background-size: contain;
    background-position: center;
}
.vf-publication-grid--2 .vf-publication-card__body {
    width: 100%;
    box-sizing: border-box;
}

.vf-publication-card {
    display: grid;
    grid-template-columns: minmax(170px, 0.72fr) minmax(0, 1.28fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--vf-line);
    border-top: 4px solid var(--vf-gold-600);
    background: var(--vf-white);
    box-shadow: 0 8px 24px rgba(30, 37, 29, 0.08);
}
.vf-publication-card--case {
    grid-template-columns: 1fr;
    border-top-color: var(--vf-green-700);
}
.vf-publication-card--landscape {
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
}
.vf-publication-card__cover,
.vf-feature-split__visual {
    display: block;
    min-height: 290px;
    border-right: 1px solid var(--vf-line);
    background-color: #F7F7F3;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    text-decoration: none;
}
.vf-publication-card--case .vf-publication-card__cover {
    min-height: 0;
    aspect-ratio: 8.5 / 11;
    border-right: 0;
    border-bottom: 1px solid var(--vf-line);
}
.vf-publication-card--landscape .vf-publication-card__cover {
    min-height: 220px;
    background-size: contain;
    background-position: center;
}
.vf-publication-card__cover:hover,
.vf-publication-card__cover:focus-visible,
.vf-feature-split__visual:hover,
.vf-feature-split__visual:focus-visible {
    filter: brightness(0.97);
}
.vf-publication-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.15rem, 2.4vw, 1.55rem);
}
.vf-publication-card__body h3 { margin-top: 0.55rem; }
.vf-publication-card__body p { flex: 1 1 auto; }
.vf-publication-card__body .vf-card__link { margin-top: auto; }

.vf-publication-card__cover--rmf {
    background-image: url('../images/bulletins/rmf-form.jpg');
    background-image: image-set(url('../images/bulletins/rmf-form.webp') type('image/webp'), url('../images/bulletins/rmf-form.jpg') type('image/jpeg'));
}
.vf-publication-card__cover--instructions,
.vf-feature-split__visual.vf-publication-card__cover--instructions {
    background-image: url('../images/bulletins/rmf-instructions.jpg');
    background-image: image-set(url('../images/bulletins/rmf-instructions.webp') type('image/webp'), url('../images/bulletins/rmf-instructions.jpg') type('image/jpeg'));
}
.vf-publication-card__cover--case1 {
    background-image: url('../images/bulletins/case1.jpg');
    background-image: image-set(url('../images/bulletins/case1.webp') type('image/webp'), url('../images/bulletins/case1.jpg') type('image/jpeg'));
}
.vf-publication-card__cover--case2 {
    background-image: url('../images/bulletins/case2.jpg');
    background-image: image-set(url('../images/bulletins/case2.webp') type('image/webp'), url('../images/bulletins/case2.jpg') type('image/jpeg'));
}
.vf-publication-card__cover--case3 {
    background-image: url('../images/bulletins/case3.jpg');
    background-image: image-set(url('../images/bulletins/case3.webp') type('image/webp'), url('../images/bulletins/case3.jpg') type('image/jpeg'));
}

.vf-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.vf-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.22rem 0.55rem;
    border: 1px solid #C9D2C7;
    border-radius: 999px;
    background: #EEF2EC;
    color: var(--vf-green-900);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.025em;
}
.vf-badge--outcome {
    border-color: #D8C49D;
    background: #F5ECDD;
    color: #604716;
}

.vf-resource-links { margin: 0.65rem 0 0; padding-left: 1.1rem; }
.vf-resource-links li { margin: 0 0 0.35rem; }

.vf-inline-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    margin-top: 1.25rem;
    padding: 1.15rem 1.25rem;
    border-left: 5px solid var(--vf-gold-600);
    background: var(--vf-paper);
}
.vf-inline-route p { margin: 0.25rem 0 0; }

.vf-feature-split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: center;
}
.vf-feature-split__visual {
    min-height: 0;
    aspect-ratio: 8.5 / 11;
    border: 1px solid var(--vf-line);
    box-shadow: 0 8px 24px rgba(30, 37, 29, 0.10);
}

/* Tablet and mobile crops are deliberately supplied as separate derivatives. */
@media (max-width: 980px) {
    .vf-publication-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vf-publication-card,
    .vf-publication-card--landscape { grid-template-columns: 1fr; }
    .vf-publication-card__cover,
    .vf-publication-card--landscape .vf-publication-card__cover {
        min-height: 0;
        aspect-ratio: 8.5 / 11;
        border-right: 0;
        border-bottom: 1px solid var(--vf-line);
        background-size: cover;
        background-position: top center;
    }
    .vf-publication-card--landscape .vf-publication-card__cover--rmf {
        aspect-ratio: 11 / 8.5;
        background-size: contain;
        background-position: center;
    }
}

@media (max-width: 760px) {
    .vf-hero--photo::before {
        background: linear-gradient(180deg, rgba(23, 33, 27, 0.74) 0%, rgba(23, 33, 27, 0.84) 55%, rgba(23, 33, 27, 0.91) 100%);
    }
    .vf-hero--home {
        background-image: url('../images/heroes/home-mobile.jpg');
        background-image: image-set(url('../images/heroes/home-mobile.webp') type('image/webp'), url('../images/heroes/home-mobile.jpg') type('image/jpeg'));
        background-position: center 52%;
    }
    .vf-hero--start {
        background-image: url('../images/heroes/start-mobile.jpg');
        background-image: image-set(url('../images/heroes/start-mobile.webp') type('image/webp'), url('../images/heroes/start-mobile.jpg') type('image/jpeg'));
        background-position: center 58%;
    }
    .vf-hero--decision {
        background-image: url('../images/heroes/decision-mobile.jpg');
        background-image: image-set(url('../images/heroes/decision-mobile.webp') type('image/webp'), url('../images/heroes/decision-mobile.jpg') type('image/jpeg'));
        background-position: center 56%;
    }
    .vf-hero--alternatives {
        background-image: url('../images/heroes/alternatives-mobile.jpg');
        background-image: image-set(url('../images/heroes/alternatives-mobile.webp') type('image/webp'), url('../images/heroes/alternatives-mobile.jpg') type('image/jpeg'));
        background-position: center 54%;
    }
    .vf-question-path--connected::before { display: none; }
    .vf-publication-grid--2,
    .vf-publication-grid--3 { grid-template-columns: 1fr; }
    .vf-publication-card--case .vf-publication-card__cover { aspect-ratio: 8.5 / 10.5; }
    .vf-inline-route { grid-template-columns: 1fr; }
    .vf-feature-split { grid-template-columns: 1fr; }
    .vf-feature-split__visual {
        width: min(100%, 380px);
        justify-self: center;
    }
}

@media print {
    .vf-hero--photo { background-image: none !important; }
    .vf-hero--photo::before { display: none !important; }
    .vf-publication-card__cover,
    .vf-feature-split__visual { display: none !important; }
    .vf-publication-card { display: block; box-shadow: none; }
}

/* Keep the hero eyebrow readable over photography. */
.vf-hero .vf-eyebrow { color: #F0E6D6; }

/* ================================================================
   Update 1 (v1.6): compact RightRisk tool-depth routing on Question 3.
   The website describes when a tool fits and routes outward; it does
   not recreate RightRisk analytic procedures.
   ================================================================ */
.vf-tool-depth {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}
.vf-tool-depth__card {
    min-width: 0;
    padding: clamp(1.15rem, 2.4vw, 1.55rem);
    border: 1px solid var(--vf-line);
    border-top: 4px solid var(--vf-green-700);
    background: var(--vf-white);
}
.vf-tool-depth__card h3 {
    margin-top: 0.6rem;
}
.vf-tool-depth__card p {
    margin-bottom: 0.75rem;
}
.vf-tool-depth__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    align-items: baseline;
}
.vf-tool-depth__links .vf-card__link {
    margin-top: 0;
}
.vf-tool-depth__note {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--vf-line);
}
.vf-publication-card[id] {
    scroll-margin-top: 2rem;
}

@media (max-width: 680px) {
    .vf-tool-depth {
        grid-template-columns: 1fr;
    }
    .vf-tool-depth__links {
        display: grid;
        gap: 0.4rem;
    }
}

@media print {
    .vf-tool-depth {
        display: block;
    }
    .vf-tool-depth__card {
        margin-bottom: 0.75rem;
        border: 1px solid #777;
    }
}

/* ================================================================
   Update 2 (v1.7): Tools & Cases as the VF-specific integration hub.
   Tool cards contextualize RSP/MTRA for VF and route to RightRisk;
   they do not reproduce analytic procedures or general RR examples.
   ================================================================ */
.vf-tool-jump {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.35rem;
}
.vf-tool-jump > a {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--vf-line);
    border-top: 4px solid var(--vf-green-700);
    background: var(--vf-paper);
    color: var(--vf-ink);
    text-decoration: none;
}
.vf-tool-jump > a:hover,
.vf-tool-jump > a:focus-visible {
    border-top-color: var(--vf-gold-600);
    box-shadow: 0 8px 20px rgba(30, 37, 29, 0.09);
}
.vf-tool-jump strong {
    color: var(--vf-green-900);
    font-size: 1.05rem;
}
.vf-tool-jump > a > span:last-child {
    font-size: 0.92rem;
    line-height: 1.45;
}

.vf-tool-hub {
    scroll-margin-top: 2rem;
}
.vf-tool-hub__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
    gap: clamp(1.25rem, 4vw, 3rem);
    align-items: start;
}
.vf-tool-hub__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
}
.vf-tool-hub__actions:empty {
    display: none;
}
.vf-tool-hub__actions .vf-button {
    width: 100%;
    justify-content: center;
    text-align: center;
}
.vf-tool-hub__guides {
    margin-top: 1.5rem;
}
.vf-tool-hub__examples {
    margin-top: 1.4rem;
    padding: 1rem 1.15rem;
    border-left: 5px solid var(--vf-gold-600);
    background: var(--vf-white);
}
.vf-tool-hub__examples h3 {
    margin-top: 0;
}
.vf-example-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.vf-example-links li {
    margin: 0;
    min-width: 0;
}
.vf-example-links .vf-card__link {
    display: block;
    width: 100%;
    margin-top: 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--vf-line);
    background: var(--vf-paper);
    text-decoration: none;
}
.vf-example-links .vf-card__link:hover,
.vf-example-links .vf-card__link:focus-visible {
    border-color: var(--vf-gold-600);
    background: var(--vf-white);
}
.vf-tool-hub__case {
    width: 100%;
    max-width: none;
    margin-top: 1.45rem;
}
.vf-tool-hub__case .vf-publication-card {
    width: 100%;
}
.vf-tool-hub__case .vf-publication-card {
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
}
.vf-tool-hub__case .vf-publication-card__cover {
    min-height: 0;
    aspect-ratio: 8.5 / 11;
    border-right: 1px solid var(--vf-line);
    border-bottom: 0;
}
/* v1.7.2: Tool/case cards use the full text column.
   The base publication-card body intentionally left-aligns/shrink-wraps
   children. That is useful for compact cards, but on these full-width case
   cards it made copy appear confined to a much narrower column. */
.vf-tool-hub__case .vf-publication-card__body {
    align-items: stretch;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.vf-tool-hub__case .vf-publication-card__body > h3,
.vf-tool-hub__case .vf-publication-card__body > p,
.vf-tool-hub__case .vf-publication-card__body > .vf-badge-row,
.vf-tool-hub__case .vf-publication-card__body > .vf-tool-case__links {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}
.vf-tool-case__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-top: auto;
}
.vf-tool-case__links .vf-card__link {
    margin-top: 0;
}
.vf-tool-case__links > p {
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    margin: 0.15rem 0 0;
}
.vf-tool-hub__future {
    max-width: 760px;
    margin-top: 0.8rem;
    color: var(--vf-muted);
}

@media (max-width: 900px) {
    .vf-tool-jump {
        grid-template-columns: 1fr;
    }
    .vf-tool-hub__header {
        grid-template-columns: 1fr;
    }
    .vf-tool-hub__actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .vf-tool-hub__actions .vf-button {
        width: auto;
    }
}

@media (max-width: 680px) {
    .vf-tool-hub__actions {
        display: grid;
    }
    .vf-tool-hub__actions .vf-button {
        width: 100%;
    }
    .vf-tool-hub__case .vf-publication-card {
        grid-template-columns: 1fr;
    }
    .vf-tool-hub__case .vf-publication-card__cover {
        border-right: 0;
        border-bottom: 1px solid var(--vf-line);
    }
    .vf-tool-case__links {
        display: grid;
        gap: 0.45rem;
    }
}

@media print {
    .vf-tool-jump {
        display: block;
    }
    .vf-tool-jump > a,
    .vf-tool-hub__examples {
        margin-bottom: 0.6rem;
        box-shadow: none;
    }
    .vf-tool-hub__header,
    .vf-tool-hub__case .vf-publication-card {
        display: block;
    }
}

/* v1.7.3 / Update 2.3
 * Tools & Cases rendered-grid correction.
 * The page is authored as structured HTML. With wpautop disabled for this
 * page, the publication card has exactly two grid children: media + body.
 * Keep the media column compact and give the body all remaining width.
 */
@media (min-width: 681px) {
    .vf-tool-hub__case .vf-publication-card.vf-publication-card--case.vf-tool-case {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        width: 100%;
        max-width: none;
    }

    .vf-tool-hub__case .vf-publication-card.vf-publication-card--case.vf-tool-case > .vf-publication-card__cover {
        width: 100%;
        min-width: 0;
        align-self: stretch;
    }

    .vf-tool-hub__case .vf-publication-card.vf-publication-card--case.vf-tool-case > .vf-publication-card__body {
        width: auto;
        min-width: 0;
        max-width: none;
        align-items: stretch;
    }

    .vf-tool-hub__case .vf-publication-card__body > * {
        max-width: none;
    }
}

@media (max-width: 680px) {
    .vf-tool-hub__case .vf-publication-card.vf-publication-card--case.vf-tool-case {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* v1.8.4: Worked-example image consistency.
 * Case 1 (MTRA), Case 2 (RSP), and Case 3 (RMF-only) intentionally use the
 * same case-card geometry. RSP/MTRA-specific thumbnail-size overrides from
 * v1.8.2/v1.8.3 were removed so all three cards inherit the v1.7.3
 * 280px + remaining-width desktop grid and the same mobile stacking rules.
 */

/* v1.8.5: Keep all worked-example bulletin thumbnails at identical geometry.
 * Case 1 and Case 2 have taller text bodies than Case 3. The previous
 * align-self: stretch rule caused their media panels to grow vertically with
 * the grid row, even though all three cards used the same 280px media column.
 * Pin the cover to its native portrait ratio so Case 1, Case 2, and Case 3
 * render with the same thumbnail width and height.
 */
@media (min-width: 681px) {
    .vf-tool-hub__case .vf-publication-card.vf-publication-card--case.vf-tool-case > .vf-publication-card__cover {
        align-self: start;
        aspect-ratio: 8.5 / 11;
        min-height: 0;
        height: auto;
        background-size: cover;
        background-position: center top;
    }
}

/* v1.8.6: Exact worked-example thumbnail geometry.
 * Case 1, Case 2, and Case 3 use source images with the same 520x673 ratio.
 * Do not let grid row height, content height, or aspect-ratio negotiation alter
 * the media panel. Use one explicit desktop box for all three examples.
 */
@media (min-width: 681px) {
    .vf-tool-hub__case .vf-publication-card.vf-publication-card--case.vf-tool-case {
        grid-template-columns: 280px minmax(0, 1fr);
        align-items: start;
    }

    .vf-tool-hub__case .vf-publication-card.vf-publication-card--case.vf-tool-case > .vf-publication-card__cover {
        width: 280px;
        height: 362px;
        min-width: 280px;
        min-height: 362px;
        max-width: 280px;
        max-height: 362px;
        aspect-ratio: auto;
        align-self: start;
        justify-self: start;
        background-size: contain;
        background-position: center top;
        background-repeat: no-repeat;
    }
}

/* v1.9.3: Preserve complete bulletin-page thumbnails.
 * Case visuals are rendered bulletin covers, not photographic crops.
 * Keep the complete 8.5 x 11 page visible at every breakpoint.
 */
.vf-publication-card--case .vf-publication-card__cover {
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
}

@media (max-width: 760px) {
    .vf-publication-card--case .vf-publication-card__cover {
        aspect-ratio: 8.5 / 11;
    }
}

/* v1.9.4: Home case-cover direct selector correction.
 * Target the actual case background classes rather than relying on the parent
 * case-card class. This prevents a more general cover rule or altered live
 * markup from cropping Case 1 / Case 2 / Case 3 bulletin-page thumbnails.
 */
.vf-publication-grid--3 .vf-publication-card__cover--case1,
.vf-publication-grid--3 .vf-publication-card__cover--case2,
.vf-publication-grid--3 .vf-publication-card__cover--case3 {
    width: 100%;
    min-height: 0 !important;
    aspect-ratio: 8.5 / 11 !important;
    background-size: contain !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
}

/* ================================================================
   v1.9.5: Render worked-case bulletin covers as real images.
   The case covers are document-page thumbnails, not photographic crops.
   Their intrinsic 520x673 dimensions now control height, eliminating
   background-size/aspect-ratio interactions that previously caused
   inconsistent cropping and oversizing across Home and Tools & Cases.
   ================================================================ */
.vf-publication-card--case .vf-publication-card__cover {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    background-image: none !important;
    background-size: auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
}

.vf-publication-card--case .vf-publication-card__cover > .vf-case-cover__img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Tools & Cases keeps the established 280px media column on desktop,
   but the image height now follows its intrinsic 520x673 ratio. */
@media (min-width: 681px) {
    .vf-tool-hub__case .vf-publication-card.vf-publication-card--case.vf-tool-case > .vf-publication-card__cover {
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        align-self: start;
        justify-self: start;
        background-image: none !important;
    }
}
