/* Netfontes - navegacao compartilhada entre fontes vizinhas. */

.font-neighbor-nav.font-neighbor-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    clear: both;
    width: auto;
    height: auto;
    margin: 22px 0 26px;
    padding: 0;
    overflow: visible;
    text-align: initial;
}

.font-neighbor-card {
    display: grid;
    grid-template-rows: auto 96px auto;
    gap: 9px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #cfd9de;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    color: #39464c;
    text-decoration: none;
    text-shadow: none;
    box-shadow: 0 1px 2px rgba(57, 70, 76, .05);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.font-neighbor-card:hover,
.font-neighbor-card:focus {
    border-color: #8faab5;
    box-shadow: 0 4px 12px rgba(0, 88, 116, .12);
    color: #39464c;
    transform: translateY(-1px);
}

.font-neighbor-card:focus-visible {
    outline: 2px solid #005874;
    outline-offset: 2px;
}

.font-neighbor-direction {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.font-neighbor-next .font-neighbor-direction {
    justify-content: flex-end;
}

.font-neighbor-label {
    overflow: hidden;
    color: #65747b;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.font-neighbor-arrow {
    flex: 0 0 auto;
    color: #005874;
    font-size: 22px;
    font-weight: normal;
    line-height: 1;
}

.font-neighbor-preview {
    display: flex;
    align-items: center;
    justify-content: left;
    min-width: 0;
    height: 96px;
    overflow: hidden;
}

.font-neighbor-preview img {
    display: block;
    object-fit: contain;
}

.font-neighbor-name {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #005874;
    font-size: 14px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.font-neighbor-next .font-neighbor-name {
    text-align: right;
}

.font-neighbor-card:only-child {
    grid-column: 1 / -1;
}

@media only screen and (max-width: 640px) {
    .font-neighbor-nav.font-neighbor-nav {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 18px 0 22px;
    }

    .font-neighbor-card,
    .font-neighbor-card:only-child {
        grid-column: 1;
        grid-template-rows: auto 82px auto;
        padding: 10px;
    }

    .font-neighbor-preview {
        height: 82px;
    }

    .font-neighbor-label {
        font-size: 10px;
    }

    .font-neighbor-name {
        font-size: 13px;
    }

    .font-neighbor-arrow {
        font-size: 20px;
    }
}
