/* Sidebar hit areas: move the gaps between items into link padding so every point between items is clickable */

/* Chapter items: the stock 0.6em top margin becomes 0.3em of padding above and below each link */
.chapter li.chapter-item {
    margin-block-start: 0;
}

.chapter li.chapter-item > .chapter-link-wrapper > a {
    padding-block: 0.3em;
}

/* Part titles are not links; keep their stock 0.6em separation from the links around them */
.chapter li.part-title {
    margin-block: 0.3em;
}

/* In-page headings: the stock 0.5em bottom margin becomes 0.25em of padding above and below each link */
.chapter li.header-item {
    margin-block-end: 0;
}

.chapter li.header-item > .chapter-link-wrapper > a {
    padding-block: 0.25em;
}

/* Stretch each link across the row up to its fold chevron */
.chapter-link-wrapper > a:not(.chapter-fold-toggle) {
    flex-grow: 1;
}
