.summary-card {
    background: #fff;
    border-top: 3px solid var(--legu-orange, #C94C19);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 0.75rem;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.summary-card__cover-link {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.summary-card__link-label {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    z-index: 1;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--legu-orange, #C94C19);
    pointer-events: none;
}

.summary-card__title-col {
    display: flex;
    flex-direction: column;
    flex: 0 0 9rem;
    width: 9rem;
    overflow: hidden;
}

.summary-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: break-word;
    hyphens: auto;
}

.summary-card__unit-label {
    font-size: 0.68rem;
    opacity: 0.55;
    font-weight: 400;
    margin-top: 0.2rem;
}

.summary-card__sparkline {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.summary-card__sparkline > div {
    width: 100% !important;
}

.summary-card__sparkline * {
    pointer-events: none !important;
}

.summary-card__indicators {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    flex: 0 0 15rem;
    width: 15rem;
    padding-top: 1.6rem;
}

.summary-card__row {
    display: grid;
    grid-template-columns: 1fr 4rem 4.5rem;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
}

.summary-card__label {
    font-size: 0.73rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-card__value {
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
    text-align: right;
}

.summary-card__badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15em 0.45em;
    border-radius: 0.4rem;
    white-space: nowrap;
    text-align: right;
}

.badge--up {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
}

.badge--down {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.badge--flat {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
}

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

    .summary-card__title-col,
    .summary-card__indicators {
        flex: none;
        width: 100%;
    }
}
