/* ============================================================
   UL AI Hub — Statute Page CSS
   /landlord-tenant-laws/[state]/ frontend styles
   Color system matches UL design: #AADDFF / #0a3d5f / #E5F3FF
   ============================================================ */

.ul-statute-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    color: #1a1a2e;
}

/* ── Header ── */
.ul-statute-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #E5F3FF 0%, #d4ecff 100%);
    border: 2px solid #AADDFF;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 16px;
}
.ul-statute-logo { height: 44px; width: auto; flex-shrink: 0; }
.ul-statute-title { margin: 0 0 4px; font-size: 26px; font-weight: 800; color: #0a3d5f; }
.ul-statute-subtitle { margin: 0; font-size: 13px; color: #666; }

/* ── Quick links ── */
.ul-statute-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.ul-statute-ql {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #AADDFF;
    color: #0a3d5f;
    background: #E5F3FF;
    transition: all 0.2s;
}
.ul-statute-ql:hover { background: #AADDFF; }
.ul-statute-ql-highlight {
    background: linear-gradient(135deg, #1a3c5e, #2271b1);
    color: #fff;
    border-color: #1a3c5e;
}
.ul-statute-ql-highlight:hover {
    background: linear-gradient(135deg, #2271b1, #1a3c5e);
    color: #fff;
}

/* ── Layout: TOC + Content ── */
.ul-statute-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

/* ── TOC ── */
.ul-statute-toc {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: #fff;
    border: 2px solid #E5F3FF;
    border-radius: 12px;
    padding: 16px;
}
.ul-statute-toc-title {
    font-size: 13px;
    font-weight: 700;
    color: #0a3d5f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E5F3FF;
}
.ul-statute-toc-chapter {
    font-size: 10px;
    font-weight: 700;
    color: #0a3d5f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 14px 0 4px;
    padding: 4px 8px;
    background: #E5F3FF;
    border-radius: 4px;
}
.ul-statute-toc-item {
    display: block;
    padding: 5px 8px;
    font-size: 12px;
    color: #444;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
    line-height: 1.4;
}
.ul-statute-toc-item:hover,
.ul-statute-toc-item.active {
    background: #E5F3FF;
    color: #0a3d5f;
}
.ul-statute-toc-num {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #888;
    margin-right: 4px;
    min-width: 70px;
}

/* ── Content ── */
.ul-statute-content { min-width: 0; }

.ul-statute-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 20px;
    scroll-margin-top: 80px;
}
.ul-statute-section:target {
    border-color: #AADDFF;
    box-shadow: 0 0 0 3px rgba(170,221,255,0.3);
}

.ul-statute-section-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E5F3FF;
}
.ul-statute-section-num {
    font-size: 11px;
    font-weight: 700;
    color: #0a3d5f;
    background: #E5F3FF;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 3px;
}
.ul-statute-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0a3d5f;
    flex: 1;
    line-height: 1.3;
}
.ul-statute-back-top {
    flex-shrink: 0;
    font-size: 12px;
    color: #888;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    margin-top: 2px;
    transition: all 0.2s;
}
.ul-statute-back-top:hover { background: #E5F3FF; color: #0a3d5f; border-color: #AADDFF; }

/* Statute text */
.ul-statute-text {
    font-size: 14px;
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: 16px;
    white-space: pre-wrap;
}

/* Comments */
.ul-statute-comment {
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.7;
}
.ul-statute-state-comment {
    background: #f0f7ff;
    border-left: 3px solid #AADDFF;
}
.ul-statute-general-comment {
    background: #f8f9fa;
    border-left: 3px solid #ddd;
}
.ul-statute-comment-label {
    font-size: 11px;
    font-weight: 700;
    color: #0a3d5f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.ul-statute-comment-body { color: #444; }

/* Citation row */
.ul-statute-citation {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    flex-wrap: wrap;
}
.ul-statute-source-link {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}
.ul-statute-source-link:hover { text-decoration: underline; }
.ul-statute-effective { color: #888; }

/* ── Tenant Screening CTA ── */
.ul-statute-screening-cta {
    background: linear-gradient(135deg, #1a3c5e, #2271b1);
    border-radius: 14px;
    padding: 28px;
    margin: 28px 0;
    color: #fff;
    text-align: center;
}
.ul-statute-screening-cta h3 { margin: 0 0 10px; font-size: 20px; }
.ul-statute-screening-cta p { margin: 0 0 16px; opacity: 0.9; font-size: 14px; line-height: 1.6; }
.ul-statute-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #AADDFF;
    color: #0a3d5f;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
}
.ul-statute-cta-btn:hover { background: #fff; color: #0a3d5f; }

/* ── LawDepot Cards ── */
.ul-statute-lawdepot {
    background: #f8fbff;
    border: 2px solid #E5F3FF;
    border-radius: 14px;
    padding: 24px;
    margin: 28px 0;
}
.ul-statute-ld-title {
    font-size: 16px;
    font-weight: 700;
    color: #0a3d5f;
    margin-bottom: 6px;
}
.ul-statute-ld-sub {
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
}
.ul-statute-ld-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.ul-statute-ld-card {
    background: #fff;
    border: 1px solid #AADDFF;
    border-radius: 10px;
    padding: 14px;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}
.ul-statute-ld-card:hover {
    border-color: #88ccff;
    box-shadow: 0 2px 8px rgba(136,204,255,0.3);
    transform: translateY(-1px);
}
.ul-statute-ld-card-title { font-size: 13px; font-weight: 600; color: #0a3d5f; margin-bottom: 4px; }
.ul-statute-ld-card-price { font-size: 12px; color: #28a745; font-weight: 700; }

/* ── Branding ── */
.ul-statute-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #E5F3FF, #d4ecff);
    border: 2px solid #AADDFF;
    border-radius: 14px;
    margin-top: 28px;
    font-size: 13px;
    font-weight: 700;
    color: #0a3d5f;
}
.ul-statute-branding img { height: 24px; width: auto; }

/* ── Error ── */
.ul-statute-error {
    padding: 16px 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ul-statute-layout { grid-template-columns: 1fr; }
    .ul-statute-toc { position: static; max-height: 300px; margin-bottom: 20px; }
    .ul-statute-header { flex-direction: column; gap: 12px; }
    .ul-statute-ld-grid { grid-template-columns: repeat(2, 1fr); }
    .ul-statute-section { padding: 16px; }
}
@media (max-width: 480px) {
    .ul-statute-ld-grid { grid-template-columns: 1fr; }
}
