.uhm-meta-wrap,
.uhm-meta-wrap * {
    box-sizing: border-box;
}

.uhm-meta-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: var(--uhm-meta-max-width, none);
    margin: 12px 0 24px;
    color: #444;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
}

.uhm-meta-wrap[style] {
    margin-right: auto;
    margin-left: auto;
}

.uhm-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    font-weight: 600;
}

.uhm-meta-wrap .uhm-meta-avatar,
.uhm-meta-wrap img.uhm-meta-avatar {
    display: inline-block;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: none;
}

.uhm-meta-author-name,
.uhm-meta-date,
.uhm-meta-category {
    white-space: nowrap;
}

.uhm-meta-date {
    color: #666;
}

.uhm-meta-category {
    color: inherit;
    text-decoration: none;
}

.uhm-meta-category:hover,
.uhm-meta-category:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.uhm-meta-separator {
    color: #b8b8b8;
    font-weight: 700;
}

.uhm-meta-mobile-separator {
    display: none;
}

.uhm-meta-disclosure {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.uhm-meta-disclosure-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    margin: -4px 0;
    padding: 4px 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #707070;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    appearance: none;
}

.uhm-meta-disclosure-button:hover {
    color: #111;
}

.uhm-meta-disclosure-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.uhm-meta-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.uhm-meta-tooltip {
    position: absolute;
    z-index: 99999;
    top: calc(100% + 8px);
    right: 0;
    width: min(310px, calc(100vw - 32px));
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #fff;
    color: #374151;
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 12%), 0 8px 10px -6px rgb(0 0 0 / 10%);
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
}

.uhm-meta-tooltip[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .uhm-meta-wrap {
        gap: 6px;
        font-size: 13px;
    }

    .uhm-meta-disclosure {
        position: static;
        margin-left: 0;
    }

    .uhm-meta-mobile-separator {
        display: inline;
    }

    .uhm-meta-tooltip {
        top: calc(100% + 5px);
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uhm-meta-disclosure-button {
        scroll-behavior: auto;
    }
}
