@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

.vf-header {
    --vf-header-ink: #192820;
    --vf-header-line: #dbe2d9;
    --vf-header-hover: #edf0e8;
    position: relative;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--vf-header-line);
    color: var(--vf-header-ink);
    font: 500 16px/1.55 'DM Sans', system-ui, sans-serif;
}

.vf-header *, .vf-header *::after { box-sizing: border-box; }
.vf-header a { color: inherit; text-decoration: none; }
.vf-header a:hover { text-decoration: underline; text-underline-offset: .2em; }
.vf-header :focus-visible { outline: 3px solid #3a6b51; outline-offset: 3px; }

.vf-header-inner, .vf-nav, .vf-brand {
    display: flex;
    align-items: center;
}

.vf-header-inner {
    width: min(1120px, calc(100% - 64px));
    margin-inline: auto;
    min-height: 72px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 24px;
    padding-block: 8px;
}

.vf-brand {
    gap: 10px;
    min-height: 44px;
    font: 800 21px/1.2 Manrope, system-ui, sans-serif;
    letter-spacing: -.055em;
}

.vf-brand-icon { flex: none; }
.vf-nav { flex-wrap: wrap; gap: 0 clamp(12px, 2vw, 26px); font-size: 14px; font-weight: 700; }
.vf-nav > a, .vf-nav summary { display: flex; min-height: 44px; align-items: center; }
.vf-nav-group { position: relative; }
.vf-nav summary { list-style: none; gap: 7px; cursor: pointer; }
.vf-nav summary::-webkit-details-marker { display: none; }
.vf-nav summary::after {
    content: '';
    width: 6px;
    height: 6px;
    border-bottom: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.vf-nav-group[open] summary::after { transform: translateY(2px) rotate(225deg); }
.vf-nav-group ul {
    position: absolute;
    inset: 100% 0 auto auto;
    width: max-content;
    max-width: 245px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--vf-header-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px #19282020;
}
.vf-nav-group li a { display: block; padding: 11px 12px; }
.vf-nav-group li a:hover { background: var(--vf-header-hover); }

@media (max-width: 640px) {
    .vf-header-inner { width: calc(100% - 32px); justify-content: flex-start; }
    .vf-nav { width: 100%; gap: 0 13px; font-size: 13px; }
    .vf-nav-group { position: static; }
    .vf-nav-group ul {
        inset: 100% 16px auto;
        width: auto;
        max-width: none;
        max-height: 50vh;
        max-height: 50dvh;
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }
    .vf-nav-group li a { display: flex; align-items: center; min-height: 44px; }
}

@media (max-width: 420px) {
    .vf-nav {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0;
    }
    .vf-nav > a { grid-column: span 2; justify-content: center; }
    .vf-nav-group { grid-column: span 3; border-top: 1px solid var(--vf-header-line); }
    .vf-nav summary { justify-content: center; }
}

@media print {
    .vf-header { display: none; }
}
