/* Labor Law KB — tool-specific styles */

/* Matrix table */
.matrix-table {
    font-size: 0.85rem;
}

.matrix-table th {
    vertical-align: middle;
}

.sticky-col {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
}

.matrix-cell {
    padding: 0 !important;
    width: 70px;
    height: 38px;
    vertical-align: middle;
}

.matrix-cell a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Matrix cell confidence colors (light background for table cells) */
.matrix-cell-a { background-color: #d4edda !important; color: #155724 !important; }
.matrix-cell-a a { color: #155724 !important; }
.matrix-cell-bplus { background-color: #cce5ff !important; color: #004085 !important; }
.matrix-cell-bplus a { color: #004085 !important; }
.matrix-cell-b { background-color: #fff3cd !important; color: #856404 !important; }
.matrix-cell-b a { color: #856404 !important; }
.matrix-cell-c { background-color: #f8f9fa !important; color: #adb5bd !important; }

/* Confidence badges on detail page (solid background for badges) */
.confidence-badge-a { background-color: #28a745 !important; color: #fff !important; }
.confidence-badge-bplus { background-color: #007bff !important; color: #fff !important; }
.confidence-badge-b { background-color: #ffc107 !important; color: #212529 !important; }

/* Region header row */
.region-header td {
    border-bottom: 2px solid #dee2e6;
}

/* Content body — rendered markdown */
.content-body h1 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #dee2e6;
}

.content-body h2 {
    font-size: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.content-body h3 {
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.content-body table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.content-body table th,
.content-body table td {
    padding: 0.4rem 0.6rem;
    border: 1px solid #dee2e6;
    font-size: 0.875rem;
}

.content-body table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.content-body blockquote {
    border-left: 4px solid #dee2e6;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    background-color: #f8f9fa;
    font-size: 0.9rem;
}

.content-body code {
    padding: 0.15rem 0.35rem;
    background-color: #f1f3f5;
    border-radius: 3px;
    font-size: 0.85em;
}

.content-body pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

.content-body ul, .content-body ol {
    padding-left: 1.5rem;
}

.content-body li {
    margin-bottom: 0.25rem;
}

.content-body hr {
    margin: 1.5rem 0;
    border-color: #dee2e6;
}

/* HR Insight card */
.insight-card {
    border-width: 2px;
}

.insight-card h6 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.insight-card li::before {
    content: "\2022";
    color: #6c757d;
    margin-right: 0.4rem;
}

/* Topic comparison page */
.content-body .compare-table th {
    white-space: nowrap;
}

/* Inner tables in comparison cells */
.inner-table {
    font-size: 0.78rem;
    margin-top: 0.25rem;
}
.inner-table th,
.inner-table td {
    padding: 0.15rem 0.35rem;
    vertical-align: top;
}
.inner-table thead th {
    background-color: #f0f0f0;
    font-weight: 600;
    white-space: nowrap;
}
.inner-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Inline confidence markers (🟢🟡🟠🔴) collapsed from "🟢 STATUTE" — small dot, tooltip on hover. */
.conf-mark {
    font-size: 0.8em;
    cursor: help;
    vertical-align: 1px;
    margin: 0 1px;
}

/* Anchor TOC: offset jump target so the fixed navbar doesn't cover section headings. */
.content-body h2[id^="sec-"] {
    scroll-margin-top: 70px;
}
