/* ================================================
   Småland Medlem – Frontend-stilar
   ================================================ */

.sm-memberlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.sm-member-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sm-member-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

.sm-member-logo {
    width: 100%;
    max-height: 120px;
    overflow: hidden;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}

.sm-member-logo img.sm-logga {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.sm-member-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sm-member-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.sm-member-name a {
    color: inherit;
    text-decoration: none;
}

.sm-member-name a:hover {
    text-decoration: underline;
}

.sm-member-desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.sm-member-link {
    display: inline-block;
    font-size: 0.85rem;
    color: #1d6fa4;
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
}

.sm-member-link:hover {
    text-decoration: underline;
}

.sm-inga-medlemmar {
    color: #9ca3af;
    font-style: italic;
}

/* ── Mobilanpassning ── */
@media (max-width: 600px) {
    .sm-memberlist {
        grid-template-columns: 1fr;
    }
}
