.dge-hn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    max-width: 100%;
    padding: var(--dge-hn-padding-y, 12px) var(--dge-hn-padding-x, 14px);
    margin: var(--dge-hn-margin-y, 13px) 0;
    color: var(--dge-hn-text, #2f3440);
    background: var(--dge-hn-background, #fff);
    border: 1px solid rgba(47, 52, 64, 0.14);
    border-radius: var(--dge-hn-radius, 14px);
    box-shadow: 0 0.35rem 1.2rem rgba(20, 25, 35, 0.06);
    font-family: inherit;
    font-size: var(--dge-hn-instance-font-size, var(--dge-hn-font-size, inherit));
    line-height: 1.45;
    box-sizing: border-box;
}

.dge-hn--style-minimal {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.dge-hn--width-content {
    display: inline-flex;
    width: auto;
}

.dge-hn__list {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 0;
    min-width: 0;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    list-style: none;
    white-space: nowrap;
}

.dge-hn--width-content .dge-hn__list {
    flex: 0 1 auto;
}

.dge-hn__item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.dge-hn__item + .dge-hn__item::before {
    content: "/";
    padding: 0 var(--dge-hn-separator-space, 11px);
    color: var(--dge-hn-accent, #7a1f3d);
    opacity: 0.55;
    font-weight: 700;
}

.dge-hn__link,
.dge-hn__current {
    display: inline-block;
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.dge-hn__link {
    color: var(--dge-hn-text, #2f3440);
    text-decoration: none;
    text-underline-offset: 0.18em;
    transition: color 160ms ease, text-decoration-color 160ms ease;
}

.dge-hn__link:hover {
    color: var(--dge-hn-accent, #7a1f3d);
    text-decoration: underline;
}

.dge-hn__link:focus-visible,
.dge-hn__reset:focus-visible {
    outline: 3px solid rgba(122, 31, 61, 0.34);
    outline-offset: 3px;
}

.dge-hn__current {
    color: var(--dge-hn-accent, #7a1f3d);
    font-weight: 700;
}

.dge-hn__reset {
    flex: 0 0 auto;
    padding: 0.48em 0.7em;
    color: var(--dge-hn-accent, #7a1f3d);
    background: rgba(122, 31, 61, 0.08);
    border: 0;
    border-radius: var(--dge-hn-radius, 14px);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.86em;
    line-height: 1.25;
    font-weight: 650;
}

.dge-hn__reset:hover {
    filter: brightness(0.97);
}

@media (max-width: 640px) {
    .dge-hn {
        align-items: stretch;
        flex-direction: column;
        gap: 0.55rem;
    }

    .dge-hn--width-content {
        display: flex;
        width: 100%;
    }

    .dge-hn__link,
    .dge-hn__current {
        max-width: 13rem;
    }

    .dge-hn__reset {
        align-self: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dge-hn__link {
        transition: none;
    }
}

@supports (color: color-mix(in srgb, #000 50%, #fff)) {
    .dge-hn--style-boxed {
        border-color: color-mix(in srgb, var(--dge-hn-accent, #7a1f3d) 16%, transparent);
    }

    .dge-hn__reset {
        background: color-mix(in srgb, var(--dge-hn-accent, #7a1f3d) 8%, var(--dge-hn-background, #fff));
    }

    .dge-hn__link:focus-visible,
    .dge-hn__reset:focus-visible {
        outline-color: color-mix(in srgb, var(--dge-hn-accent, #7a1f3d) 42%, transparent);
    }
}
