/* Ярлык — сосед заголовка. Он не участвует в переносах текста и fitHeroTitle. */
.hgci-hero-title-row {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}
.hgci-hero-title-row > .hgci-hero-title-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: max-content;
    max-width: 100%;
    height: 24px;
    margin: 0;
    padding: 0 .42em;
    border: 0;
    border-radius: .25em;
    color: #fff;
    background: var(--hg-pink, var(--hgci-pink, #FF2D87));
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: none;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    visibility: hidden;
}
.hgci-hero-title-row > .hgci-hero-title-badge[hidden] { display: none; }
.hgci-preview-title {
    display: block;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
}
.hg-cat-tree-v6 #hg-tree-hero .hg-tree-hero-copy:has(.hgci-hero-title-row),
.hgci-preview-copy:has(.hgci-hero-title-row) {
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    min-width: 0;
}
.hg-cat-tree-v6 #hg-tree-hero:has(.hgci-hero-title-row),
.hgci-preview-hero-desktop:has(.hgci-hero-title-row) { height: auto; min-height: 118px; }
.hgci-preview-hero-mobile:has(.hgci-hero-title-row) { height: auto; min-height: 150px; }
@media (max-width: 520px) {
    .hg-cat-tree-v6 #hg-tree-hero:has(.hgci-hero-title-row) { min-height: 150px; }
}
#hg-tree-hero-stats:empty,
.hgci-preview-stats:empty {
    display: none;
}
