/* list-of-prescribed-books.html: page styles moved out of the HTML (tools/extract-styles.js). Edit here, then bump ?v= in list-of-prescribed-books.html. */
        /* Grade navigation: sticky rail on desktop, scrollable pills on mobile */
        .jhs-books .title-area { margin-bottom: 40px; }
        .jhs-books__nav {
            position: sticky;
            top: 110px;
            background: #fff;
            border: 1px solid #e6ebf5;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 30px -24px rgba(11, 29, 58, .4);
        }
        .jhs-books__nav .list-group-item {
            border: none;
            border-radius: 0;
            border-left: 3px solid transparent;
            background: #fff;
            color: #3d4458;
            font-weight: 600;
            font-size: 15px;
            padding: 13px 18px;
            transition: background .2s ease, color .2s ease, border-color .2s ease;
        }
        .jhs-books__nav .list-group-item + .list-group-item { border-top: 1px solid #f0f3fa; }
        .jhs-books__nav .list-group-item:hover { background: #f6f9ff; color: #001c54; }
        .jhs-books__nav .list-group-item.active {
            background: #001c54;
            color: #ffca06;
            border-left-color: #ffca06;
            font-weight: 700;
        }
        .jhs-books__content h4 {
            color: #001c54;
            font-weight: 700;
            margin-bottom: 18px;
            padding-bottom: 12px;
            border-bottom: 2px solid #ffca06;
            display: inline-block;
        }
        .jhs-books__content .table {
            border-collapse: separate;
            border-spacing: 0;
            border: 1px solid #e6eaf4;
            border-radius: 12px;
            overflow: hidden;
            font-size: 15px;
            margin-bottom: 0;
        }
        .jhs-books__content .table thead tr,
        .jhs-books__content .table thead th {
            background: #001c54 !important;
            color: #fff !important;
            font-size: 12.5px;
            font-weight: 700;
            letter-spacing: .06em;
            text-transform: uppercase;
            border: none;
            padding: 12px 14px;
        }
        .jhs-books__content .table td {
            border: none;
            border-top: 1px solid #eef1f8;
            padding: 11px 14px;
            color: #3d4458;
        }
        .jhs-books__content .table tbody tr:nth-child(even) { background: #fafbfe; }
        .jhs-books__content .table td:nth-child(2) { text-align: left; }
        .jhs-books__content .table th:nth-child(2) { text-align: left; }
        @media (max-width: 991px) {
            .jhs-books__nav {
                position: static;
                display: flex;
                flex-direction: row;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                border-radius: 999px;
                padding: 6px;
                gap: 4px;
                scrollbar-width: none;
            }
            .jhs-books__nav::-webkit-scrollbar { display: none; }
            .jhs-books__nav .list-group-item {
                flex: none;
                width: auto;
                border: none !important;
                border-radius: 999px;
                padding: 9px 18px;
                font-size: 14px;
                white-space: nowrap;
            }
            .jhs-books__nav .list-group-item.active { border-left-color: transparent; }
        }
