.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);
        }

        /* Slider styles */
        .slider-block {
            margin-bottom: 2.25rem;
            padding-bottom: 1.75rem;
            border-bottom: 1px solid var(--border-color);
        }

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

        .slider-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }

        .slider-title {
            font-family: var(--font-heading);
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .slider-score {
            font-size: 1rem;
            font-weight: 800;
            color: var(--primary);
            background: var(--primary-glow);
            padding: 0.2rem 0.6rem;
            border-radius: 6px;
        }

        .slider-desc {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 1rem;
            line-height: 1.5;
        }

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

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

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

        /* Sidebar Results */
        .results-sidebar {
            position: sticky;
            top: 7rem;
        }

        .score-circle {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            background: radial-gradient(circle, white 50%, #f8fafc 100%);
            border: 8px solid var(--border-color);
            margin: 0 auto 1.5rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
            transition: border-color var(--transition-normal);
        }

        .score-val {
            font-family: var(--font-heading);
            font-size: 3rem;
            font-weight: 800;
            color: var(--text-primary);
            line-height: 1;
        }

        .score-lbl {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 600;
            text-transform: uppercase;
        }

        .score-badge {
            display: inline-block;
            padding: 0.35rem 1rem;
            border-radius: 99px;
            font-size: 0.85rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 1.5rem;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        .badge-green { background: #ecfdf5; color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
        .badge-orange { background: #fef3c7; color: #d97706; border: 1px solid rgba(217, 119, 6, 0.2); }
        .badge-red { background: #fee2e2; color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }

        .diagnostics-block {
            text-align: left;
            border-top: 1px solid var(--border-color);
            padding-top: 1.5rem;
        }

        .diagnostics-block h3 {
            font-size: 1rem;
            margin-bottom: 1rem;
            font-family: var(--font-heading);
        }

        .diagnostic-item {
            display: flex;
            gap: 0.5rem;
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 0.75rem;
            line-height: 1.4;
        }

        .diagnostic-item svg {
            color: var(--primary);
            flex-shrink: 0;
            margin-top: 0.15rem;
        }

        /* 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;
        }

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

.card-panel-center { text-align: center; }
