﻿.jail-stats-page {
    padding: 24px 0 40px;
    background: #f4f5f5;
    color: #252b28;
}

.jail-stats-page a {
    color: #173b2a;
}

.js-heading {
    margin-bottom: 20px;
}

.js-heading h1 {
    margin: 0 0 12px;
    padding-left: 18px;
    border-left: 5px solid #efb544;
    color: #173b2a;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
}

.js-heading p {
    margin: 0;
    line-height: 1.6;
}

.js-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: stretch;
    gap: 18px;
}

/* Embedded report */
.js-report {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce1dd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgb(0 0 0 / 6%);
}

.js-report iframe {
    display: block;
    width: 100%;
    height: 80vh;
    min-height: 650px;
    border: 0;
}

.js-report-footer {
    padding: 12px 16px;
    border-top: 1px solid #e2e6e3;
    text-align: right;
    font-size: 14px;
}

/* Information sidebar */
.js-sidebar {
    min-width: 0;
    padding: 16px;
    background: #e2e9de;
    border-radius: 10px;
}

.js-sidebar-section + .js-sidebar-section {
    margin-top: 28px;
}

.js-sidebar-section h2 {
    margin: 0 0 12px;
    padding: 10px 12px;
    background: #46535e;
    border-radius: 5px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.js-sidebar-section p {
    margin: 0 0 12px;
    padding: 0 8px;
    font-size: 15px;
    line-height: 1.55;
}

.js-sidebar-section p:last-child {
    margin-bottom: 0;
}

/* Numbered instructions */
.js-instructions {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0 8px;
    list-style: none;
    counter-reset: report-step;
}

.js-instructions li {
    position: relative;
    padding-left: 36px;
    font-size: 15px;
    line-height: 1.5;
    counter-increment: report-step;
}

.js-instructions li::before {
    content: counter(report-step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    background: #efb544;
    border-radius: 50%;
    color: #173b2a;
    font-weight: 700;
}

/* Related links */
.js-resources {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 28px;
    font-size: 15px;
}

.js-resources a {
    text-underline-offset: 3px;
}

.js-resources a:hover,
.js-report-footer a:hover {
    color: #35414b;
}

/* Place sidebar below report on smaller screens */
@media (max-width: 991.98px) {
    .js-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .js-sidebar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
        gap: 20px;
    }

    .js-sidebar-section + .js-sidebar-section {
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .js-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .js-report iframe {
        height: 70vh;
        min-height: 500px;
    }
}