.resources-hero {
    padding: 8rem 2.5rem 3rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary);
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
            transition: transform var(--transition-fast);
        }

        .back-link:hover {
            transform: translateX(-4px);
            color: var(--secondary);
        }

        .resources-hero h1 {
            font-size: 3rem;
            margin-bottom: 0.5rem;
            background: linear-gradient(135deg, var(--text-primary) 40%, #1e3a8a 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .chapter-ref {
            display: inline-block;
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--secondary);
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .resources-hero p {
            font-size: 1.15rem;
            color: var(--text-secondary);
            max-width: 700px;
            margin: 0 auto 3rem;
        }

        .tool-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 6rem;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2.5rem;
    align-items: start;
    box-sizing: border-box;
}

        @media (max-width: 1024px) {
            .tool-container {
                grid-template-columns: 1fr;
            }
        }

        .card-panel {
            background: var(--bg-card);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 2.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
            margin-bottom: 2rem;
        }

        .card-panel h2 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        /* Progress Bar */
        .progress-container {
            margin-bottom: 2rem;
        }

        .progress-bar-bg {
            background: #e2e8f0;
            height: 12px;
            border-radius: 99px;
            overflow: hidden;
            margin-bottom: 0.5rem;
        }

        .progress-bar-fill {
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            height: 100%;
            width: 0%;
            border-radius: 99px;
            transition: width 0.3s ease;
        }

        .progress-text {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text-secondary);
            display: flex;
            justify-content: space-between;
        }

        /* Checklist Styles */
        .audit-category {
            margin-bottom: 2.5rem;
        }

        .category-title {
            font-family: var(--font-heading);
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 1.25rem;
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 0.5rem;
        }

        .audit-slider-block {
            margin-bottom: 1.75rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px dashed var(--border-color);
        }

        .audit-slider-block:last-child {
            border: none;
            padding-bottom: 0;
            margin-bottom: 0;
        }

        .check-title {
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--text-primary);
            margin-bottom: 0.25rem;
        }

        .check-question {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 0.75rem;
            line-height: 1.4;
        }

        /* Sliders */
        .slider-input {
            width: 95%;
            height: 6px;
            background: #e2e8f0;
            border-radius: 99px;
            outline: none;
            accent-color: var(--primary);
            cursor: pointer;
            margin-bottom: 0.5rem;
        }

        .slider-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.7rem;
            color: var(--text-muted);
            font-weight: 600;
            width: 95%;
            margin-bottom: 0.5rem;
        }

        .active-value-label {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--primary);
            background: var(--primary-glow);
            padding: 0.15rem 0.4rem;
            border-radius: 4px;
            display: inline-block;
        }

        /* Danger / Risk block */
        .risk-block {
            text-align: left;
        }

        .risk-meter {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
            font-weight: 700;
            font-size: 0.95rem;
        }

        .risk-level {
            padding: 0.25rem 0.75rem;
            border-radius: 99px;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .risk-high { background: #fee2e2; color: #ef4444; }
        .risk-med { background: #fef3c7; color: #d97706; }
        .risk-low { background: #ecfdf5; color: #10b981; }

        .missing-warning {
            font-size: 0.8rem;
            color: var(--text-secondary);
            line-height: 1.4;
            padding: 0.5rem 0;
            border-bottom: 1px dashed var(--border-color);
        }

        .missing-warning:last-child {
            border: none;
        }

        /* Bibliography block */
        .bibliography-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 6rem;
    padding: 2rem 2.5rem 0;
    border-top: 1px solid var(--border-color);
    box-sizing: border-box;
}

        .bibliography-section h3 {
            font-family: var(--font-heading);
            font-size: 1.1rem;
            color: var(--text-primary);
            margin-bottom: 1rem;
        }

        .bibliography-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .bibliography-list li {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 0.75rem;
            line-height: 1.5;
            text-indent: -1.5rem;
            padding-left: 1.5rem;
        }

        .bibliography-list a {
            color: var(--primary);
            text-decoration: underline;
        }

        /* Printable styles */
        @media print {
            header, footer, .back-link, .progress-container, .results-sidebar, .btn, .slider-input, .slider-labels {
                display: none !important;
            }
            body {
                background: white !important;
                color: black !important;
            }
            .tool-container {
                grid-template-columns: 1fr !important;
                margin: 0 !important;
                padding: 0 !important;
            }
            .card-panel {
                border: none !important;
                box-shadow: none !important;
                background: none !important;
                padding: 0 !important;
            }
            .audit-slider-block {
                page-break-inside: avoid;
                border-bottom: 1px solid #ccc !important;
            }
        }

.card-panel-main { margin-bottom: 0; }
.desc-text { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 2rem; }

.audit-warnings-container { border-top: 1px solid var(--border-color); padding-top: 1rem; margin-top: 1rem; }
.audit-actions-row { margin-top: 1.5rem; display: flex; gap: 0.5rem; }
.btn-audit-action { flex-grow: 1; padding: 0.5rem; font-size: 0.85rem; }
