:root {
    --lmb-orange: #F0821A;
    --lmb-dark: #000;
    --lmb-card-bg: #fff;
}

/* The wrapper carries the dark look so the page works on any Kadence page
   without theme changes. */
.lmb-bank {
    background: var(--lmb-dark);
    color: #fff;
    padding: 2rem 1.5rem;
}

/* Label text to the left of the search pill. */
.lmb-searchbar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.lmb-search-label {
    color: #fff;
    font-weight: 700;
    font-size: 2rem;
}

/* Search box: the container is the pill; icon + input sit side-by-side. */
.lmb-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    max-width: 420px;
    padding: 0.65rem 1.25rem;
    padding-left: 0.2rem;
}

.lmb-search-icon {
    flex: none;
    color: #fff;
}

.lmb-search-input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: 0;
    padding: 0;
    color: #fff;
    font-size: 0.95rem;
}

.lmb-search-input:focus {
    outline: none;
}

.lmb-search:focus-within {
    border-color: var(--lmb-orange);
}

.lmb-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Shown by the script when a search matches no cards */
.lmb-empty {
    text-align: center;
    margin: 1rem 0 0;
}

/* Card grid */
.lmb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lmb-card {
    display: flex;
    flex-direction: column;
    background: var(--lmb-card-bg);
    color: var(--lmb-dark);
    border-radius: 8px;
    padding: 1.25rem;
}

/* Grid display on the parent would otherwise override the hidden attribute. */
.lmb-card[hidden] {
    display: none;
}

.lmb-card-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.lmb-card-preview {
    display: flex;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.lmb-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Download links pinned to the card bottom so cards align in a row */
.lmb-card-links {
    list-style: none;
    margin: auto 0 0;
    padding: 0;
}

.lmb-card-links li + li {
    margin-top: 0.5rem;
}

.lmb-card-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lmb-dark);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.lmb-card-links a:hover {
    color: var(--lmb-orange);
}
