/* ── 컨테이너 ── */
.la-wrap {
    font-family: 'Noto Sans KR', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #dde3ee;
    border-radius: 10px;
    overflow: hidden;
}

/* ── 탭 ── */
.la-tabs {
    display: flex;
    background: #f4f6fb;
    border-bottom: 1px solid #dde3ee;
}
.la-tab {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: .2s;
}
.la-tab:hover     { background: #e8ecf8; color: #333; }
.la-tab.is-active { background: #fff; color: #2563eb; border-bottom-color: #2563eb; font-weight: 700; }

/* ── 패널 ── */
.la-panel          { display: none; padding: 24px; }
.la-panel.is-active{ display: block; }

/* ── 헤더 ── */
.la-law-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.la-law-title { margin: 0; font-size: 18px; color: #1e293b; }

/* ── 뱃지 ── */
.la-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 12px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}
.la-badge--date { background: #e2e8f0; color: #64748b; }

/* ── 버튼 ── */
.la-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.la-btn--link             { margin-left: auto; color: #2563eb; background: none; }
.la-btn--dl               { background: #2563eb; color: #fff; }
.la-btn--dl:hover         { background: #1d4ed8; color: #fff; }
.la-btn--view             { border: 1px solid #2563eb; color: #2563eb; background: #fff; }
.la-btn--view:hover       { background: #eff6ff; }
.la-btn--pdf              { background: #dc2626; color: #fff; }
.la-btn--pdf:hover        { background: #b91c1c; color: #fff; }

/* ── 그룹 ── */
.la-group       { margin-bottom: 24px; }
.la-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    margin: 0 0 10px;
    color: #374151;
}

/* ── 리스트 ── */
.la-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.la-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: .15s;
}
.la-item:hover         { background: #eff6ff; border-color: #bfdbfe; }
.la-item-text          { flex: 1; min-width: 0; }
.la-item-text strong   { display: block; font-size: 14px; color: #111827; }
.la-item-desc {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.la-item-actions { flex-shrink: 0; margin-left: 12px; }

/* ── 기타 ── */
.la-error {
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    color: #92400e;
    font-size: 14px;
}
.la-empty { text-align: center; color: #9ca3af; font-size: 14px; padding: 24px 0; }

/* ── 반응형 ── */
/* ══════════════════════════════
   법령해석 검색 UI
══════════════════════════════ */
.la-interp-wrap { font-family: 'Noto Sans KR', sans-serif; max-width: 860px; margin: 0 auto; }

/* 검색 폼 */
.la-interp-form       { margin-bottom: 20px; }
.la-interp-search-row { display: flex; gap: 8px; }
.la-interp-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
}
.la-interp-input:focus  { border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.la-interp-search-btn {
    padding: 10px 24px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.la-interp-search-btn:hover { background: #1d4ed8; }

/* 결과 메타 */
.la-interp-meta { font-size: 13px; color: #6b7280; margin-bottom: 12px; }

/* 결과 목록 */
.la-interp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.la-interp-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
    transition: .15s;
}
.la-interp-item:hover { background: #eff6ff; border-color: #bfdbfe; }
.la-interp-item-top   { flex: 1; min-width: 0; }
.la-interp-title      { display: block; font-size: 14px; color: #111827; font-weight: 600; margin-bottom: 6px; }
.la-interp-meta-row   { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.la-interp-tag        { font-size: 11px; padding: 2px 8px; background: #dbeafe; color: #1d4ed8; border-radius: 10px; }
.la-tag--org          { background: #f0fdf4; color: #15803d; }
.la-interp-date { font-size: 11px; color: #9ca3af; }
.la-interp-law  { font-size: 11px; color: #6b7280; }
.la-interp-item-actions { flex-shrink: 0; }

/* 페이지네이션 */
.la-interp-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.la-pager-btn    {
    padding: 8px 18px;
    border: 1px solid #2563eb;
    color: #2563eb;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}
.la-pager-btn:hover { background: #eff6ff; }
.la-pager-info   { font-size: 13px; color: #6b7280; }

@media (max-width: 600px) {
    .la-tabs { flex-direction: column; }
    .la-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .la-item-actions { margin-left: 0; }
}
