.hd-web-solutions {
    position: relative;
    flex: none;
}

.hd-web-solutions > summary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.42;
    list-style: none;
    cursor: pointer;
}

.hd-web-solutions > summary::-webkit-details-marker { display: none; }
.hd-web-solutions > summary:hover,
.hd-web-solutions > summary.is-current,
.hd-web-solutions[open] > summary {
    color: var(--accent-deep);
    background: var(--accent-soft);
}
.hd-web-solutions[open] > summary svg { transform: rotate(180deg); }
.hd-web-solutions > summary:focus-visible,
.hd-web-menu-panel a:focus-visible {
    outline: 2px solid var(--accent-deep);
    outline-offset: 2px;
}

.hd-web-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1;
    width: 244px;
    padding: 7px;
    border: 1px solid var(--line-brand);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.site-nav .hd-web-menu-panel a {
    display: block;
    border-radius: 10px;
}
.hd-web-menu-panel small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.85em;
    font-weight: 500;
}

@media (max-width: 820px) {
    .site-header .site-nav {
        width: min(calc(100vw - 28px), 360px);
        margin-inline: auto;
        max-height: calc(100vh - 86px);
        max-height: calc(100dvh - 86px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .hd-web-solutions {
        width: min(100%, 280px);
    }
    .hd-web-solutions > summary {
        justify-content: center;
        font-size: 14px;
        line-height: 1.46;
    }
    .hd-web-menu-panel {
        position: static;
        width: auto;
        margin-top: 4px;
        background: var(--surface-warm);
        box-shadow: none;
    }
}
