@charset "utf-8";

/* ==========================================================================
   생활법률 18대 허브 전용 모던 스타일시트 (목록 & 상세 뷰어 통합)
   ========================================================================== */

.law-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1.88rem 0.94rem 4.38rem;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

/* 1. 18대 대분류 가로 스크롤 탭 바 */
.law-nav-scroll-wrap {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.law-nav-scroll-wrap::-webkit-scrollbar {
    height: 0.25rem;
}

.law-nav-scroll-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 0.25rem;
}

.law-main-nav-tabs {
    display: flex;
    gap: 0.5rem;
    min-width: max-content;
}

.law-nav-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    font-size: 0.81rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.law-nav-item:hover,
.law-nav-item.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

/* 2. 헤더 영역 */
.law-category-header {
    border-bottom: 2px solid #0f172a;
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
}

.law-category-header .header-title-area,
.ds-header-top .header-title-area {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    flex: 1 1 20rem;
    min-width: 16rem;
}

.law-cat-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.94rem;
    margin-bottom: 1.13rem;
}

.law-cat-badge-main {
    display: inline-block;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
}

.law-cat-header-title {
    font-size: 1.63rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.63rem;
}

.law-total-pill {
    font-size: 0.81rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.25rem 0.63rem;
    border-radius: 0.75rem;
}

/* 리스트 상단 선택된 카테고리 헤딩 타이틀 */
.comm-list-selected-heading {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.comm-selected-category-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comm-selected-category-title .title-sep {
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 400;
}

/* 3. 중분류 칩 리스트 */
.law-chips-wrapper {
    margin-bottom: 1.5rem;
}

.law-chips-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.38rem;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
}

.law-chip-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    border-radius: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.law-chip-item:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.law-chip-item.active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    font-weight: 700;
}

/* 4. 카드 그리드 */
.law-cards-list.mode-webzine {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.19rem;
}

.law-cards-list.mode-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.19rem;
}

.law-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.88rem;
    padding: 1.38rem 1.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.law-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    border-color: #0284c7;
}

.law-card-meta {
    display: flex;
    align-items: center;
    gap: 0.63rem;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.law-badge-sub {
    font-weight: 800;
    color: #0284c7;
    background: #e0f2fe;
    padding: 0.19rem 0.5rem;
    border-radius: 0.38rem;
}

.law-badge-official {
    font-weight: 700;
    color: #059669;
    background: #d1fae5;
    padding: 0.19rem 0.5rem;
    border-radius: 0.38rem;
}

.law-meta-hit {
    margin-left: auto;
    font-size: 0.75rem;
    color: #94a3b8;
}

.law-card-title {
    font-size: 1.09rem;
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 0.63rem 0;
}

.law-card-title a {
    color: #0f172a;
    text-decoration: none;
}

.law-card-title a:hover {
    color: #0284c7;
}

.law-card-desc {
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   5. 상세 뷰어 (View.skin.php) 프리미엄 스타일
   ========================================================================== */

.law-view-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 5rem;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: #1e293b;
}

/* 3뎁스 브레드크럼 */
.law-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.81rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.law-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.law-breadcrumb a:hover {
    color: #0284c7;
}

.law-breadcrumb .bc-sep {
    color: #cbd5e1;
    font-size: 0.69rem;
}

.law-current-cat {
    color: #0284c7;
    font-weight: 700;
}

/* 뷰어 2열 그리드 레이아웃 */
.law-view-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 1.75rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .law-view-grid {
        grid-template-columns: 1fr;
    }
}

/* 헤더 배너 (슬릭 블루/다크 그라데이션) */
.law-header-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0369a1 100%);
    border-radius: 1rem;
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
    color: #ffffff;
}

.law-header-badge-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.88rem;
    flex-wrap: wrap;
}

.law-header-badge {
    background: #0284c7;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.63rem;
    border-radius: 0.38rem;
}

.law-header-sub-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.63rem;
    border-radius: 0.38rem;
}

.law-article-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.45;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02rem;
}

.law-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.81rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.law-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

/* 🛡️ 코라이브 생활법률 안심 가이드 카드 (wr_4) */
.law-safety-guide-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid #86efac;
    border-radius: 0.88rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.08);
}

.law-safety-guide-header {
    display: flex;
    align-items: flex-start;
    gap: 0.88rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #bbf7d0;
    padding-bottom: 0.88rem;
}

.law-safety-icon {
    width: 2.63rem;
    height: 2.63rem;
    border-radius: 0.63rem;
    background: #16a34a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.law-safety-title {
    font-size: 1.06rem;
    font-weight: 800;
    color: #15803d;
    margin-bottom: 0.25rem;
}

.law-safety-desc {
    font-size: 0.81rem;
    color: #334155;
    line-height: 1.4;
}

.law-safety-guide-body {
    font-size: 0.91rem;
    color: #1e293b;
    line-height: 1.8;
    font-weight: 500;
    background: #ffffff;
    border-radius: 0.63rem;
    padding: 1.13rem 1.38rem;
    border: 1px solid #dcfce7;
}

/* 아티클 메인 카드 */
.law-content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem 2.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.law-content-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 0.88rem;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.15s;
}

.law-content-header-bar:hover {
    opacity: 0.85;
}

.law-content-heading-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.law-content-heading {
    font-size: 1.13rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.law-toggle-hint {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.19rem 0.5rem;
    border-radius: 0.38rem;
}

.btn-law-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 0.81rem;
    font-weight: 700;
    padding: 0.38rem 0.88rem;
    border-radius: 1.25rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-law-toggle:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.law-body-content-wrap {
    transition: all 0.3s ease;
}

.law-body-content-wrap.is-collapsed {
    display: none !important;
}

/* 본문 상세 텍스트 서식 */
.law-body-content {
    font-size: 0.97rem;
    line-height: 1.85;
    color: #334155;
}

.law-body-content .law-sub-heading,
.law-body-content .cnpClsTitle {
    font-size: 1.19rem;
    font-weight: 800;
    color: #0f172a;
    margin: 1.75rem 0 0.88rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.law-body-content .law-sub-heading i,
.law-body-content .cnpClsTitle i {
    color: #0284c7;
}

.law-body-content .law-point-heading,
.law-body-content .plv1a,
.law-body-content .plv1b {
    font-size: 1.03rem;
    font-weight: 800;
    color: #0369a1;
    margin: 1.38rem 0 0.63rem;
    display: flex;
    align-items: center;
    gap: 0.38rem;
}

.law-body-content .law-sub-point-title,
.law-body-content .plv2a,
.law-body-content .plv2b {
    font-size: 0.97rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1.13rem 0 0.5rem 0.5rem;
    line-height: 1.6;
}

.law-body-content .law-bullet {
    color: #0284c7;
    font-size: 0.75rem;
    vertical-align: middle;
    margin-right: 0.38rem;
}

.law-body-content .law-paragraph-sub,
.law-body-content .plv3a,
.law-body-content .plv3b {
    font-size: 0.94rem;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 0.88rem;
}
.law-paragraph-sub a,
.plv3a a,
.plv3b a {
    text-decoration: underline;
    color: #0284c7;
    font-weight: 600;
}
.law-body-content .law-paragraph-detail,
.law-body-content .plv4a,
.law-body-content .plv4b {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.75;
    margin-bottom: 0.75rem;
    padding-left: 0.88rem;
    border-left: 2px solid #cbd5e1;
}

.law-body-content .law-notice-card,
.law-body-content .cnpClsNt {
    background: #fffbeb;
    border-left: 0.25rem solid #f59e0b;
    padding: 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 1.25rem 0;
    font-size: 0.91rem;
    line-height: 1.75;
    color: #78350f;
}

/* 본문 내 반응형 표 서식 */
.law-table-responsive {
    overflow-x: auto;
    margin: 1.25rem 0;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.law-styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.law-styled-table th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 700;
    padding: 0.75rem 0.88rem;
    border-bottom: 1px solid #cbd5e1;
    border-right: 1px solid #e2e8f0;
}

.law-styled-table td {
    padding: 0.75rem 0.88rem;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    color: #334155;
}

.law-styled-table th:first-child,
.law-styled-table td:first-child {
    width: auto !important;
}

.law-styled-table tr:hover td {
    background: #f8fafc;
}

/* 🏛️ 법제처 원문 다이렉트 출처 박스 */
.law-origin-source-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.13rem 1.38rem;
    margin-top: 2.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.law-origin-source-left {
    display: flex;
    align-items: center;
    gap: 0.88rem;
    flex: 1;
    min-width: 16.25rem;
}

.law-origin-source-left i {
    font-size: 1.63rem;
    color: #0284c7;
}

.law-origin-source-left strong {
    font-size: 0.88rem;
    color: #0f172a;
    display: block;
    margin-bottom: 0.25rem;
}

.law-origin-source-left p {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.btn-law-origin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0284c7;
    color: #ffffff;
    padding: 0.63rem 1.13rem;
    border-radius: 0.5rem;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.btn-law-origin-link:hover {
    background: #0369a1;
}

/* 소셜 액션 바 */
.law-social-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.25rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
    gap: 0.88rem;
}

.btn-law-like {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fee2e2;
    color: #e11d48;
    border: 1px solid #fca5a5;
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-law-like:hover {
    background: #fecdd3;
}

.law-share-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-label {
    font-size: 0.81rem;
    font-weight: 600;
    color: #64748b;
    margin-right: 0.25rem;
}

.btn-law-share-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.94rem;
    color: #ffffff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
}

.btn-law-share-icon:hover {
    opacity: 0.85;
}

.btn-link-copy { background: #64748b; }
.btn-fb { background: #1877f2; }
.btn-tw { background: #0f172a; }

/* 하단 버튼 */
.law-bottom-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.btn-law-list {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0f172a;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-law-list:hover {
    background: #1e293b;
}

/* 8. 사이드바 영역 */
.law-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.law-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.88rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.law-sidebar-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.88rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.63rem;
}

.law-top-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.law-top-list li {
    margin-bottom: 0.63rem;
}

.law-top-list li:last-child {
    margin-bottom: 0;
}

.law-top-list a {
    display: flex;
    align-items: flex-start;
    gap: 0.63rem;
    text-decoration: none;
    color: #334155;
    font-size: 0.81rem;
    line-height: 1.4;
    transition: color 0.15s;
}

.law-top-list a:hover {
    color: #0284c7;
}

.law-top-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.69rem;
    font-weight: 700;
    flex-shrink: 0;
}

.law-top-num.top3 {
    background: #fee2e2;
    color: #ef4444;
}

.law-top-subject {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.law-guide-card {
    background: #f8fafc;
}

.law-sidebar-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 0.88rem 0;
}

.law-btn-full {
    display: block;
    text-align: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 0.56rem;
    border-radius: 0.38rem;
    font-size: 0.81rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
}

.law-btn-full:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.law-sidebar-ad-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.88rem;
    padding: 1rem;
}

.law-ad-label {
    font-size: 0.63rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}
.law-ad-container {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 0.5rem;
    padding: 1.5rem 1rem;
    text-align: center;
}

.law-ad-fallback i {
    font-size: 1.5rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.law-ad-fallback p {
    font-size: 0.81rem;
    font-weight: 700;
    color: #64748b;
    margin: 0 0 0.25rem 0;
}

.law-ad-fallback span {
    font-size: 0.69rem;
    color: #94a3b8;
}

/* ==========================================================================
   Etertech 스타일 LNB 서브 네비게이션 드롭다운 바 (생활법률 표준)
   ========================================================================== */
.lnb-wrap {
    margin: 0.75rem 0 0 0;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #ffffff;
    position: relative;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lnb-inner {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    min-height: 2.625rem;
    padding: 0 0.25rem;
}

.lnb-home-btn {
    display: none !important;
}

.lnb-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.81rem;
    font-weight: 700;
    padding: 0 0.38rem;
    user-select: none;
}

.lnb-depth {
    position: relative;
    flex: 0 1 auto;
    min-width: 10rem;
    height: 2.625rem;
}

.lnb-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 0.88rem;
    text-align: left;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 0.38rem;
    font-size: 0.84rem;
    color: #1e293b;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: all 0.15s ease;
}
.lnb-toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.lnb-toggle::after {
    content: '\f107';
    font-family: 'FontAwesome', 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.81rem;
    color: #64748b;
    transition: transform 0.2s ease;
    margin-left: 0.5rem;
}

.lnb-depth.open .lnb-toggle::after {
    transform: rotate(180deg);
    color: #ff007f;
}

.lnb-list {
    display: none;
    position: absolute;
    top: 2.625rem;
    left: 0;
    width: auto;
    min-width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    max-height: 20rem;
    overflow-y: auto;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.12);
    border-radius: 0 0 0.38rem 0.38rem;
}

.lnb-depth.open .lnb-list {
    display: block;
}

.lnb-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lnb-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.88rem;
    font-size: 0.81rem;
    color: #334155;
    text-decoration: none;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.15s ease;
    white-space: nowrap;
    gap: 1rem;
}

.lnb-list li:last-child a {
    border-bottom: none;
}

.lnb-list li.is-parent a {
    background: #f8fafc;
    font-weight: 700;
    color: #1e293b;
}

.lnb-list li.is-child a {
    padding-left: 1.5rem;
    color: #64748b;
}

.lnb-list li a:hover,
.lnb-list li.active a {
    background: #fff5f8;
    color: #ff007f;
    font-weight: 700;
}

.lnb-list li a .cat-num {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}
.lnb-list li.active a .cat-num {
    color: #ff007f;
}

.lnb-right-info {
    margin-left: auto;
    padding-right: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: #64748b;
}
.lnb-right-info .active-badge {
    color: #ff007f;
    font-weight: 700;
    background: #fff0f6;
    padding: 0.25rem 0.63rem;
    border-radius: 0.38rem;
    border: 1px solid #fed7e2;
}
.lnb-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #ef4444;
    background: #fee2e2;
    padding: 0.25rem 0.63rem;
    border-radius: 0.38rem;
    text-decoration: none;
    transition: all 0.15s;
}
.lnb-reset-btn:hover {
    background: #fecaca;
    color: #dc2626;
}
.lnb-total-hint {
    color: #94a3b8;
}
.lnb-total-hint strong {
    color: #0f172a;
}

@media (max-width: 992px) {
    .lnb-depth {
        flex: 1;
        width: auto;
        min-width: 0;
    }
    .lnb-right-info {
        display: none;
    }
}

@media (max-width: 768px) {
    .lnb-home-btn {
        width: 3rem;
        height: 3rem;
    }
    .lnb-depth {
        height: 3rem;
    }
    .lnb-toggle {
        padding: 0 0.75rem;
        font-size: 0.81rem;
    }
    .lnb-list {
        top: 3rem;
    }
    .lnb-list li a {
        padding: 0.63rem 0.88rem;
        font-size: 0.81rem;
    }
}

/* ==========================================================================
   생활법률 AI 핵심 법령 요약 & 실무 가이드 카드 디자인 시스템
   ========================================================================== */
.law-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 0.25rem solid #0284c7;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.law-summary-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.law-summary-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.law-summary-badge {
    display: inline-flex;
    align-items: center;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
}

.law-summary-section {
    margin-bottom: 1rem;
}

.law-summary-section:last-child {
    margin-bottom: 0;
}

.law-summary-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 0.38rem;
    margin-bottom: 0.38rem;
}

.law-summary-text {
    font-size: 0.94rem;
    line-height: 1.8;
    color: #334155;
    margin: 0;
    word-break: keep-all;
}

.law-summary-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.88rem;
    border-top: 1px dashed #cbd5e1;
    font-size: 0.81rem;
    line-height: 1.6;
    color: #64748b;
    word-break: keep-all;
}

.law-summary-disclaimer i {
    color: #0284c7;
    margin-top: 0.18rem;
    flex-shrink: 0;
}

