/* ============================================
   Live Search - Laws (compact list layout)
   ============================================ */

.lsl-wrap {
    font-family: 'Open Sans', sans-serif;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    color: #1f2937;
}

/* Header */
.lsl-head {
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}
.lsl-summary { font-size: 13px; color: #6b7280; }
.lsl-summary strong { color: #111827; font-weight: 600; }

/* List wrapper */
.lsl-list {
    max-height: 70vh;
    overflow-y: auto;
}

/* Year headers */
.lsl-year-hd {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 7px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}
.lsl-year-hd span { color: #9ca3af; font-weight: 500; }

/* Rows */
.lsl-row {
    display: flex;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background .12s ease;
    align-items: flex-start;
}
.lsl-row:hover { background: #f9fafb; text-decoration: none; color: inherit; }
.lsl-row:last-child { border-bottom: 0; }

/* Number/year block on the left */
.lsl-row-num {
    flex-shrink: 0;
    min-width: 76px;
    padding: 6px 10px;
    background: #eef2ff;
    border-radius: 6px;
    text-align: center;
    line-height: 1.2;
}
.lsl-num {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #3730a3;
}
.lsl-year {
    display: block;
    font-size: 11px;
    color: #6366f1;
    font-weight: 500;
}

/* Body */
.lsl-row-body { flex: 1; min-width: 0; }
.lsl-row-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}
.lsl-row-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}
.lsl-row-date {
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
    white-space: nowrap;
}
.lsl-row-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.lsl-row-fek {
    margin-top: 6px;
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 4px;
}

.lsl-noresults {
    padding: 16px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* Scrollbar */
.lsl-list::-webkit-scrollbar { width: 8px; }
.lsl-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.lsl-list::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ============================================
   Tablet (≤900px)
   ============================================ */
@media ( max-width: 900px ) {
    .lsl-list { max-height: 65vh; }
}

/* ============================================
   Mobile (≤640px)
   ============================================ */
@media ( max-width: 640px ) {
    .lsl-head { padding: 10px 12px; }
    .lsl-summary { font-size: 12px; }

    .lsl-list { max-height: 70vh; }

    .lsl-year-hd { padding: 8px 12px; font-size: 10px; }

    /* Rows: bigger touch targets, vertical stacking */
    .lsl-row {
        gap: 12px;
        padding: 14px 12px;
        align-items: flex-start;
    }
    .lsl-row-num {
        min-width: 64px;
        padding: 6px 8px;
    }
    .lsl-num { font-size: 15px; }
    .lsl-year { font-size: 10px; }

    /* Title + date stack vertically on mobile */
    .lsl-row-top {
        flex-direction: column;
        gap: 3px;
        align-items: flex-start;
    }
    .lsl-row-title {
        font-size: 14px;
        line-height: 1.35;
        -webkit-line-clamp: 3;
    }
    .lsl-row-date {
        font-size: 11px;
        order: 2;
    }
    .lsl-row-sub {
        font-size: 12px;
        line-height: 1.45;
        -webkit-line-clamp: 3;
        margin-top: 4px;
    }
    .lsl-row-fek {
        font-size: 10px;
        padding: 2px 7px;
        margin-top: 5px;
    }
}

/* ============================================
   Very small screens (≤380px)
   ============================================ */
@media ( max-width: 380px ) {
    .lsl-row { padding: 12px 10px; gap: 10px; }
    .lsl-row-num { min-width: 58px; padding: 5px 7px; }
    .lsl-num { font-size: 14px; }
    .lsl-row-title { font-size: 13px; }
}
