.firm-directory {
    margin: 2rem 0;
}
.firm-search {
    margin: 0 0 2rem 0;
    width: 100%;
    display: block;
}
.firm-search input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.firm-search input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15), 0 10px 24px rgba(15, 23, 42, 0.12);
}
.firm-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.firm-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    background: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.firm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.firm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.firm-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
}
.firm-card-name:hover {
    color: #2563eb;
}
.firm-card-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 0.75rem;
}
.firm-metric {
    display: flex;
    flex-direction: column;
}
.firm-metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.2rem;
}
.firm-metric-value {
    font-size: 1.1rem;
    font-weight: 600;
}
.firm-card-footer {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #475569;
}
.firm-side-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}
.firm-side-petitioner {
    background: #dbeafe;
    color: #1d4ed8;
}
.firm-side-respondent {
    background: #fee2e2;
    color: #b91c1c;
}
.firm-side-both {
    background: #e0f2fe;
    color: #0369a1;
}
.firm-results-summary {
    font-size: 0.95rem;
    color: #475569;
    text-align: center;
    margin: 1rem 0;
}
@media (max-width: 768px) {
    .firm-card-grid {
        grid-template-columns: 1fr;
    }
}
.firm-card a {
    color: inherit;
}