/* R01 Report Scoped Styles */

.r01-report-wrap {
    --bg: #0A0A0B;
    --card: #16161A;
    --card-2: #1C1C22;
    --border: #2E2E36;
    --text: #F4F4F5;
    --muted: #D4D4D8;
    --dim: #A1A1AA;
    --primary: #0047AB;
    --accent: #007BFF;
    --red: #DC2626;
    --green: #4ADE80;
    --maxw: 1100px;
    
    background: var(--bg);
    color: var(--text);
    font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 901px) {
    .r01-report-wrap {
        padding-top: 130px; /* Only needed on desktop where header is absolute */
    }
}

.r01-report-wrap * {
    box-sizing: border-box;
}

.r01-report-wrap h1, 
.r01-report-wrap h2, 
.r01-report-wrap h3, 
.r01-report-wrap h4 {
    line-height: 1.15;
    margin: 0 0 0.5em;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text); /* Override theme heading color if needed */
    font-family: "Instrument Sans", sans-serif;
}

.r01-report-wrap h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.r01-report-wrap h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-top: 0;
}

.r01-report-wrap h3 {
    font-size: 1.2rem;
}

.r01-report-wrap a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity .15s;
}

.r01-report-wrap a:hover {
    opacity: .75;
    text-decoration: underline;
}

.r01-report-wrap code, 
.r01-report-wrap pre {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.88rem;
}

.r01-report-wrap .container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.r01-report-wrap section {
    padding: 72px 0;
    position: relative;
}

.r01-report-wrap section.alt {
    background: var(--card);
}

.r01-report-wrap section.alt .stat,
.r01-report-wrap section.alt .chart-wrap,
.r01-report-wrap section.alt .data-table-wrap,
.r01-report-wrap section.alt .embed-box {
    background: var(--card-2);
}

/* Custom Dot Rail for Report */
.r01-report-wrap .dot-rail {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 45;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 10px;
    background: rgba(22, 22, 26, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 24px;
}

.r01-report-wrap .dot-rail a {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
}

.r01-report-wrap .dot-rail .dot {
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--dim);
    transition: background .18s, transform .18s, box-shadow .18s;
}

.r01-report-wrap .dot-rail a:hover .dot {
    background: var(--accent);
    transform: scale(1.15);
}

.r01-report-wrap .dot-rail a.active .dot {
    background: var(--accent);
    transform: scale(1.25);
    box-shadow: 0 0 0 4px rgba(0,123,255,0.18);
}

.r01-report-wrap .dot-rail a::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: var(--card);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease, transform .28s ease;
    letter-spacing: 0.02em;
}

.r01-report-wrap .dot-rail a:hover::after,
.r01-report-wrap .dot-rail a.active::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media(max-width:900px){
    .r01-report-wrap .dot-rail{display:none}
}

.r01-report-wrap .hero {
    padding: 80px 0 40px;
}

.r01-report-wrap .eyebrow {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.r01-report-wrap .hero h1 {
    max-width: 900px;
    margin-bottom: 32px;
}

.r01-report-wrap .hero-number-wrap {
    display: flex;
    align-items: baseline;
    gap: 28px;
    margin: 24px 0 16px;
    flex-wrap: wrap;
}

.r01-report-wrap .hero-number {
    font-size: clamp(4.5rem, 13vw, 8rem);
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.06em;
    line-height: 0.9;
    font-variant-numeric: tabular-nums;
}

.r01-report-wrap .hero-number-label {
    color: var(--muted);
    font-size: clamp(.95rem, 2vw, 1.15rem);
    max-width: 400px;
}

.r01-report-wrap .hero-meta {
    color: var(--dim);
    font-size: 0.9rem;
    font-family: "IBM Plex Mono", monospace;
    margin-top: 10px;
}

.r01-report-wrap .hero-meta span {
    margin-right: 18px;
}

.r01-report-wrap .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.r01-report-wrap .btn-report {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    transition: .15s;
}

.r01-report-wrap .btn-report:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.r01-report-wrap .btn-report-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.r01-report-wrap .btn-report-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    opacity: 1;
}

.r01-report-wrap .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media(max-width:768px){
    .r01-report-wrap .stats{grid-template-columns: 1fr}
}

.r01-report-wrap .stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

.r01-report-wrap .stat-value {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.r01-report-wrap .stat-label {
    color: var(--muted);
    margin-top: 10px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.r01-report-wrap .chart-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

.r01-report-wrap .chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 640px) {
    .r01-report-wrap .chart-wrap {
        padding: 12px;
    }
}

.r01-report-wrap .chart-caption {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 14px;
    font-style: italic;
}

.r01-report-wrap .chart-legend-row {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.r01-report-wrap #map {
    width: 100%;
    height: 560px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #E8E4D9;
}

.r01-report-wrap .map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.88rem;
}

.r01-report-wrap .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.r01-report-wrap .legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.r01-report-wrap .embed-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 22px;
}

.r01-report-wrap .embed-box h3 {
    margin-top: 0;
}

.r01-report-wrap .embed-code {
    background: #050506;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    color: #D4D4D8;
    white-space: pre;
    margin: 12px 0;
}

.r01-report-wrap .data-table-wrap {
    overflow-x: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.r01-report-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.r01-report-wrap th, 
.r01-report-wrap td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
}

.r01-report-wrap th {
    background: #09090B;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.r01-report-wrap td:first-child, 
.r01-report-wrap th:first-child {
    padding-left: 24px;
}

.r01-report-wrap td:last-child, 
.r01-report-wrap th:last-child {
    padding-right: 24px;
}

.r01-report-wrap tr:last-child td {
    border-bottom: none;
}

.r01-report-wrap tr:hover td {
    background: #131316;
}

.r01-report-wrap .rate-high {
    color: var(--accent);
    font-weight: 700;
}

.r01-report-wrap .method ul {
    padding-left: 20px;
    list-style: disc;
}

.r01-report-wrap .method li {
    margin-bottom: 10px;
    color: var(--muted);
}

.r01-report-wrap .method li strong {
    color: var(--text);
}

.r01-report-wrap .about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: start;
}

@media(max-width:768px){
    .r01-report-wrap .about-grid{grid-template-columns: 1fr; gap: 40px}
}

.r01-report-wrap .quote {
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--text);
    border-left: 3px solid var(--primary);
    padding: 8px 0 8px 24px;
    margin: 0 0 16px;
}

.r01-report-wrap .quote-attr {
    color: var(--muted);
    font-size: 0.9rem;
}

.r01-report-wrap .attorney-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.r01-report-wrap .attorney-portrait {
    width: 100%;
    max-width: 460px;
    height: auto;
    display: block;
    border-radius: 14px;
    background: var(--card-2);
    box-shadow: 0 14px 36px rgba(0,0,0,0.45);
}

.r01-report-wrap .attorney-byline {
    margin: 22px 0 0;
    padding: 18px 0 0;
    border-top: 2px solid var(--primary);
    max-width: 460px;
    width: 100%;
}

.r01-report-wrap .attorney-byline h3 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    color: var(--text);
}

.r01-report-wrap .attorney-byline .role {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    letter-spacing: 0.02em;
    font-family: "IBM Plex Mono", monospace;
}

.r01-report-wrap .copy-ok {
    color: var(--green);
    font-size: 0.85rem;
    margin-left: 10px;
    display: none;
}

.r01-report-wrap .copy-ok.show {
    display: inline;
}

/* Leaflet Overrides */
.r01-report-wrap .leaflet-container {
    background: #E8E4D9;
}

.r01-report-wrap .leaflet-popup-content-wrapper {
    background: #FFFFFF;
    color: #0F172A;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
}

.r01-report-wrap .leaflet-popup-tip {
    background: #FFFFFF;
}

.r01-report-wrap .leaflet-popup-content h4 {
    color: var(--primary);
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
}

.r01-report-wrap .leaflet-popup-content table {
    font-size: 0.82rem;
    border-collapse: collapse;
}

.r01-report-wrap .leaflet-popup-content td {
    padding: 3px 10px;
    border: none;
    color: #475569;
    background: transparent;
}

.r01-report-wrap .leaflet-popup-content td:last-child {
    color: #0F172A;
    font-weight: 600;
    text-align: right;
}
