/* Extracted from style.css: cards styles */

/* =========================================================
   CALCULATOR LIST + SEARCH RESULT CARDS
   ========================================================= */

.calculator-list-card,
.search-result-card {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border-color: #dee2e6 !important;
    border-radius: .75rem !important;
    background: #fff;
    cursor: pointer;
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}

.calculator-list-card::before,
.search-result-card::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: #198754;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .15s ease;
}

.calculator-list-card:hover,
.calculator-list-card:focus-visible,
.search-result-card:hover,
.search-result-card:focus,
.search-result-card:focus-within {
    transform: translateY(-3px);
    border-color: #adb5bd !important;
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .09) !important;
    outline: none;
}

.calculator-list-card:hover::before,
.calculator-list-card:focus-visible::before,
.search-result-card:hover::before,
.search-result-card:focus::before,
.search-result-card:focus-within::before {
    transform: scaleY(1);
}

.calculator-list-arrow,
.search-result-arrow {
    width: 38px;
    height: 38px;
    color: #198754;
    transition:
        background-color .15s ease,
        color .15s ease,
        transform .15s ease;
}

.calculator-list-card:hover .calculator-list-arrow,
.calculator-list-card:focus-visible .calculator-list-arrow,
.search-result-card:hover .search-result-arrow,
.search-result-card:focus .search-result-arrow,
.search-result-card:focus-within .search-result-arrow {
    background: #198754 !important;
    border-color: #198754 !important;
    color: #fff;
    transform: translateX(2px);
}

.search-result-breadcrumb {
    font-size: .78rem;
}

.search-result-breadcrumb a {
    color: #6c757d;
    text-decoration: none;
}

.search-result-breadcrumb a:hover {
    color: #198754;
}

.search-result-title:hover {
    color: #198754 !important;
}

@media (max-width: 575.98px) {
    .calculator-list-card,
    .search-result-card {
        min-height: auto;
    }
}

