.ref-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-1);
    text-decoration: none;
    overflow: hidden;
    transition: background 0.15s;
}

.ref-card:hover {
    background: var(--bg-2);
}

.ref-card-img {
    width: 120px;
    min-height: 80px;
    align-self: stretch;
    object-fit: cover;
    flex-shrink: 0;
}

.ref-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 12px 36px 12px 16px;
    flex: 1;
    min-width: 0;
}

.ref-card-title {
    color: var(--text-0);
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ref-card-domain {
    color: var(--text-1);
    font-size: 0.8em;
}

.ref-card-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--text-1);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .ref-card {
        flex-direction: column;
    }

    .ref-card-img {
        width: 100%;
        min-height: unset;
        height: 160px;
    }
}
