.entity-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 1.25rem;
    margin-bottom: 0.25rem;
}

.entity-summary-separator {
    grid-column: 1 / -1;
    margin: 0.5rem 0 0.15rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-kview);
    font-size: 0.8rem;
    font-weight: 600;
}

.entity-summary-item {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
}

.entity-summary-item--wide {
    grid-column: 1 / -1;
}

.entity-summary-label {
    margin: 0;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.entity-summary-label::after {
    content: ':';
}

.entity-summary-value {
    min-width: 0;
    margin: 0;
    color: var(--color-ink);
    font-size: 0.875rem;
    font-weight: 600;
    word-break: break-word;
    white-space: pre-wrap;
}

.entity-summary-value a {
    color: var(--color-kview-light);
    text-decoration: none;
}

.entity-summary-value a:hover {
    text-decoration: underline;
}

.entity-summary-image {
    display: block;
    width: min(100%, 22rem);
    max-height: 16rem;
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    object-fit: contain;
}

@media (min-width: 768px) {
    .entity-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .entity-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
