.manifest-reveal-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    overflow: hidden;
    pointer-events: none;
}

.manifest-reveal {
    --manifest-label-offset: 15px;
    --manifest-screen-x: 0px;
    --manifest-screen-y: 0px;
    position: absolute;
    top: 0;
    left: 0;
    width: max-content;
    max-width: 11rem;
    padding: 0;
    border: 0;
    color: var(--atlas-ink);
    background: transparent;
    font: inherit;
    line-height: 1.25;
    text-align: left;
    text-shadow: 0 1px 0 rgb(251 250 246 / 88%);
    transform:
        translate3d(
            var(--manifest-screen-x),
            var(--manifest-screen-y),
            0
        )
        translate(var(--manifest-label-offset), -50%);
    transform-origin: left center;
    pointer-events: auto;
    transition: opacity 160ms ease;
}

.manifest-reveal::before {
    position: absolute;
    top: 50%;
    left: -15px;
    width: 7px;
    height: 7px;
    border: 1px solid rgb(251 250 246 / 92%);
    border-radius: 50%;
    background: var(--manifest-color, var(--atlas-cobalt));
    box-shadow: 0 0 0 1px rgb(8 45 82 / 12%);
    content: "";
    transform: translate(-50%, -50%);
}

.manifest-reveal strong,
.manifest-reveal small,
.manifest-reveal span {
    display: block;
}

.manifest-reveal strong {
    overflow: hidden;
    color: var(--atlas-ink);
    font-size: 0.78rem;
    font-weight: 620;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manifest-reveal small {
    margin-top: 2px;
    color: rgb(8 45 82 / 58%);
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.025em;
}

.manifest-reveal span {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    color: rgb(8 45 82 / 64%);
    font-size: 0.7rem;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.manifest-reveal[data-tier="near"] img {
    display: block;
    width: 3.75rem;
    aspect-ratio: 1;
    margin-top: 0.4rem;
    border-radius: 3px;
    object-fit: cover;
}

.manifest-reveal:focus-visible {
    outline: 2px solid var(--atlas-cobalt, var(--atlas-blue));
    outline-offset: 5px;
}

.manifest-reveal-access {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 700px) {
    .manifest-reveal {
        --manifest-label-offset: 13px;
        max-width: 8.5rem;
    }

    .manifest-reveal::before {
        left: -13px;
        width: 6px;
        height: 6px;
    }

    .manifest-reveal strong {
        font-size: 0.72rem;
    }

    .manifest-reveal small,
    .manifest-reveal span {
        font-size: 0.64rem;
    }

    .manifest-reveal[data-tier="near"] img {
        width: 3.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .manifest-reveal {
        transition: none;
        animation: none;
    }
}
