.ham-card__open {
    position: absolute;
    z-index: 1;
    inset: 0;
}

.ham-card__open:focus-visible {
    outline: 3px solid var(--ham-accent);
    outline-offset: -3px;
}

.ham-card__header,
.ham-card .ham-media,
.ham-card .ham-review a,
.ham-card .ham-tagged-establishment a,
.ham-card .ham-location a,
.ham-card .ham-actions,
.ham-card .ham-comment-form {
    position: relative;
    z-index: 2;
}

.ham-review a,
.ham-tagged-establishment a,
.ham-location a {
    color: inherit;
}

.ham-review a,
.ham-tagged-establishment a,
.ham-review a:hover,
.ham-tagged-establishment a:hover,
.ham-review a:focus-visible,
.ham-tagged-establishment a:focus-visible {
    text-decoration: none;
}

.ham-review__stars {
    color: var(--ham-accent);
}

.ham-author__name {
    display: flex;
    align-items: center;
    gap: .25em;
}

.ham-author__name-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ham-tagged-establishment {
    margin: 0 14px 9px;
    color: var(--ham-soft);
    font-size: .7rem;
    font-weight: 800;
}

.hdsc-news__journal-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    padding: 5px 12px 5px 6px;
    border: 1px solid #efc9dc;
    border-radius: 999px;
    background: #fff8fc;
    color: #b90063;
    font-size: .68rem;
    font-weight: 850;
    text-decoration: none;
}

.hdsc-news__journal-link i {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #ffe5f2;
    color: #d90077;
    font-size: .75rem;
}

.hdsc-news__journal-link:hover,
.hdsc-news__journal-link:focus-visible {
    border-color: var(--hdsc-accent);
    background: #fff0f7;
    color: var(--hdsc-accent-dark);
}

.hdsc-explore-button,
.hdsc-city-button {
    min-height: 52px;
}

.hdsc-city-button {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    padding: 6px 10px;
}

.hdsc-city-button__icon {
    width: 36px;
    height: 36px;
}

@media (max-width: 699px) {
    .ham-type {
        justify-content: center;
        text-align: center;
        line-height: 1;
    }

    .ham-type i,
    .hdsc-explore-button i {
        display: inline-grid;
        place-items: center;
        line-height: 1;
    }

    .ham-type i {
        width: 1em;
        height: 1em;
    }

    .hdsc-explore-button {
        box-sizing: border-box;
        text-align: center;
        line-height: 1;
    }

    .hdsc-city-button {
        box-sizing: border-box;
        min-height: 48px;
        gap: 8px;
        padding: 5px 9px;
    }

    .hdsc-city-button__icon {
        width: 34px;
        height: 34px;
    }

    .hdsc-place-rating {
        background: #fff0f7;
        color: var(--hdsc-accent);
    }
}

@media (max-width: 420px) {
    .hdsc-explore-button {
        min-height: 50px;
        gap: 0;
    }

    .hdsc-explore-button > span {
        display: none;
    }

    .hdsc-explore-button i {
        width: 1em;
        height: 1em;
    }

    .hdsc-city-button {
        min-height: 50px;
        grid-template-columns: 30px minmax(0, 1fr) auto;
        padding: 4px 8px;
    }

    .hdsc-city-button__icon {
        width: 30px;
        height: 30px;
    }

    .ham-type {
        position: relative;
        width: 30px;
        height: 30px;
        min-height: 30px;
        flex: 0 0 30px;
        display: grid;
        place-items: center;
        gap: 0;
        padding: 0;
        border-radius: 50%;
    }

    .ham-type__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        font-size: .65rem;
    }

    .ham-type i {
        width: 1em;
        height: 1em;
        margin: 0;
        text-align: center;
    }
}

.ham-send-person strong.bv-plus-name,
.ham-comment-item strong.bv-plus-name {
    display: flex;
    align-items: center;
    gap: .28em;
    max-width: 100%;
}

.ham-send-person .bv-plus-badge > img,
.ham-comment-item .bv-plus-badge > img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    object-fit: contain;
}
