.datalumo-search-summary {
    margin-bottom: 2em;
}

.datalumo-search-summary__heading {
    font-weight: 700;
    margin-bottom: 0.5em;
}

.datalumo-search-summary__loading {
    color: #666;
    font-style: italic;
}

.datalumo-search-summary__content a {
    background: rgba(0, 0, 0, .05);
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
}

.datalumo-search-summary__skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}

.datalumo-search-summary__skeleton-line {
    height: 1em;
    border-radius: 4px;
    background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
    background-size: 200% 100%;
    animation: datalumo-shimmer 1.5s infinite;
}

@keyframes datalumo-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.datalumo-search-summary__body {
    max-height: 240px;
    overflow: hidden;
    position: relative;
}

.datalumo-search-summary__body--expanded {
    max-height: none;
}

.datalumo-search-summary__body--capped::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--datalumo-bg, #fff));
    pointer-events: none;
}

.datalumo-search-summary__body--expanded.datalumo-search-summary__body--capped::after {
    display: none;
}

.datalumo-search-summary__toggle {
    display: none;
    margin-top: 0.5em;
    background: none;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 0.4em 1.5em;
    cursor: pointer;
    font-size: 0.9em;
    color: inherit;
    width: 100%;
    text-align: center;
}

.datalumo-search-summary__toggle:hover {
    border-color: #999;
}

.datalumo-search-summary__toggle--visible {
    display: block;
}

.datalumo-search-summary a.datalumo-citation {
    text-decoration: none;
    font-size: 0.85em;
    vertical-align: super;
}

.datalumo-search-summary a.datalumo-citation:hover {
    text-decoration: underline;
}

.datalumo-search-summary__references {
    margin: 1em 0 0;
    padding: 0;
    font-size: 0.85em;
    list-style: none;
}

.datalumo-search-summary__references li {
    margin-bottom: 0.25em;
}

.datalumo-search-summary__references a {
    text-decoration: none;
}

.datalumo-search-summary__references a:hover {
    text-decoration: underline;
}
