#chapterContent {
    padding: 1rem;
}
#chapterContent > div {
    margin-bottom: 1rem;
}
#chapterContent > div:last-child {
    margin-bottom: 0;
}
#chapterContent h2 {
    font-weight: 600;
    font-size: 1.75rem;
}
#chapterContent .chapter-title {
    font-size: 2rem;
}
#chapterContent h2:not(:first-child) {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ccc;
}
#chapterContent h3 {
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}
#chapterContent h4 {
    margin: 1.5rem 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}
#chapterContent h5 {
    font-size: 1.125rem;
    font-weight: 600;
}
#chapterContent figure img {
    box-shadow: 0 0 0 1px var(--ca-light-grey-colour);
}
#chapterContent .img-fluid {
    max-height: 90vh;
    width: auto;
    height: auto;
    max-width: 100%;
}
#chapterContent figcaption {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.5rem 0 1.5rem;
}
#chapterContent table {
    font-size: 0.875rem;
}
#chapterContent .table-responsive {
    margin-bottom: 1rem;
}
#chapterContent .table-responsive table:last-child {
    margin-bottom: 0;
}
#chapterContent table caption {
    font-size: 0.875rem;
    color: #212529;
    font-weight: 600;
    caption-side: top;
}
.figure-number,
.table-number {
    padding-right: 1.25em;
}
#chapterContent th > *:last-child,
#chapterContent td > *:last-child {
    margin-bottom: 0;
}
#chapterContent a {
    text-decoration: underline;
}
#chapterContent a span {
    color: inherit !important;
}
#chapterContent p u:has(span) {
    text-decoration: none;
}
#chapterContent p u span {
    color: inherit !important;
}

@media (min-width: 992px) {
    .toc-column {
        border-right: 1rem solid var(--ca-lighter-grey-colour);
    }
}
#tocList {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}
.toc-item {
    margin-bottom: 0.25rem;
}
.toc-item .active {
    font-weight: 600;
}
.toc-h2 ul {
    display: none;
}
.toc-h2 a.active + ul, .toc-h2 ul:has(.active) {
    display: block;
}
#chapterContent th,
#chapterContent th b,
#chapterContent th p,
#chapterContent th strong {
    font-weight: 700;
}

.toc-toggle.btn-secondary:hover {
    background-color: var(--ca-primary-colour);
    color: #ffffff;
}
.ca-columns.toc-collapse {
    position: relative;
}
.ca-columns.toc-collapsed .ca-column:first-child {
    display: none;
}
#tocToggleShow {
    display: none;
}
.ca-columns.toc-collapsed #tocToggleShow {
    display: block;
    position: sticky;
    top: 1rem;
    margin-top: 1.5rem;
    margin-left: 1rem;
}
.ca-columns.toc-collapsed .ca-column:last-child {
    max-width: 100%;
    flex: 0 0 100%;
}



.chapter-accessibility-info {
    margin: 1.5rem 0.5rem 1rem 1rem;
    background: #f8f9fa;
    border-color: #e1e4e7;
    color: #000;
}
.chapter-accessibility-info .alert-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
}
.chapter-accessibility-info a {
    text-decoration: underline;
    color: var(--ca-primary-colour);
}
.chapter-accessibility-info a:hover {
    color: var(--ca-secondary-colour);
}
@media (max-width: 991px) {
    #tocToggleHide, #tocToggleShow, .toc-wrapper + hr, #tocCustomTooltip {
        display: none !important;
    }
}


.MsoFootnoteReference {
    vertical-align: super;
    font-size: smaller;
}
.MsoFootnoteText {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.MsoFootnoteText .MsoFootnoteReference {
    vertical-align: inherit;
    font-size: 1em;
}

.is-bullet-item-processed:empty {
    display: none;
}

.ca-chapter-dropdown {
    flex: 1;
}
.ca-chapter-dropdown:has([aria-expanded="true"]) {
    position: relative;
    z-index: 1020;
}
.chapter-dropdown-menu {
    z-index: 1000;
    font-size: 0.875rem;
    width: 400px;
    max-width: 90vw;
}
.chapter-dropdown-menu .dropdown-item {
    padding: 0.5rem;
    color: #212529;
    white-space: wrap;
    border-top: 1px solid #e9ecef;
}
.chapter-dropdown-menu li:first-child .dropdown-item {
    border-top: none;
}
.chapter-dropdown-menu .dropdown-item.active,
.chapter-dropdown-menu .dropdown-item:active {
    background-color: var(--ca-primary-colour);
    color: #ffffff;
}

.mfp-content figure .mfp-img {
    max-height: none !important;
}
a[data-ca-modal="image"] {
    display: block;
}
a[data-ca-modal="image"]:hover {
    cursor: zoom-in;
}

#backToTop {
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    display: none; 
    z-index: 2; 
    background: var(--ca-lighter-grey-colour);
}
#backToTop:hover {
    background: var(--ca-secondary-colour);
}

.MsoFootnoteText a {
    /* Allow links to wrap */
    word-break: break-all;
}

.toc-alert {
    font-size: 0.875rem;
    padding: 0.5rem;
    margin: 0.5rem 0 0;
}

.custom-indented-numbered-list {
    display: flex;
    gap: 0.5rem;
}

.in-table-note,
.post-table-note {
    font-size: 0.875em;
}
.post-table-note {
    margin-top: 0.25rem;
    font-style: italic;
    margin-bottom: 0;
}
ol.post-table-note {
    margin-bottom: 2rem;
}

.table-10-1 i span {
    font-style: normal;
}

td ul {
    padding-inline-start: 1.5em;
}

.table-wider {
    width: 1078px;
}

#chapterContent h5 {
    font-size: 1rem;
    font-style: italic;
    margin: 1.25rem 0 1rem;
}
#chapterContent .option-heading {
    font-style: italic;
    margin-top: 2rem;
    margin-bottom: 0;
}

#chapterContent th,
#chapterContent td {
    text-wrap-mode: wrap;
}

#chapterContent .valign-middle {
    vertical-align: middle;
}

.table-secondary p,
.table-secondary p strong,
.table-secondary p b {
    font-weight: 700;
}
