#masthead .ad-board-header-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    min-height: 2.25rem;
    color: #414141;
}

.ad-board-header-count {
    position: absolute;
    top: -.18rem;
    right: -.42rem;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 .18rem;
    box-sizing: border-box;
    border-radius: 999px;
    background: #e7689b;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.2rem;
    text-align: center;
    white-space: nowrap;
}

.ad-board-header-count[hidden] {
    display: none;
}

#masthead .ad-board-header-link:hover {
    color: #96345b;
}

#masthead .ad-board-header-link:focus-visible {
    outline: 2px solid #96345b;
    outline-offset: 2px;
    border-radius: 3px;
}

.ad-board-header-icon {
    display: block;
    width: 1.2rem;
    height: 1.2rem;
    box-sizing: border-box;
    border: 1.7px solid currentColor;
    border-radius: 2px;
    background:
        linear-gradient(currentColor, currentColor) center / 1px 100%,
        linear-gradient(currentColor, currentColor) center / 100% 1px,
        linear-gradient(135deg, currentColor 50%, transparent 51%) bottom right / 50% 50%;
    background-repeat: no-repeat;
}

@media (max-width: 480px) {
    #masthead .mobile-nav .ad-board-header-item {
        margin-inline: 2px;
    }
}
