body {
    line-height: 1.5;
}


[id^="toc-section-"], [id^="fn-back-ref-"], [id^="foot-note-"] {
    scroll-margin-top: 3em;
}

.videoWrapper {
    max-width: 50%;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    padding-top: 25px;
    height: 0;
}

.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.copyright-text, .figure-text, .legend-text {
    font-size: 0.85em;
}

.table-caption {
    font-size: 1em;
}


#foot-notes-container p {
    display: inline;
}

/* FOOTNOTES LIST — layout and resets */
#foot-notes-container [id^="foot-note-"] {
    display: grid;
    grid-template-columns: .5em 1fr; /* number | text */
    column-gap: 0.5em;
    align-items: start;
    /* remove the hanging-indent trick here */
    padding-left: 0;
    text-indent: 0;
}

#foot-notes-container [id^="foot-note-"] > :not(.foot-note) {
    grid-column: 2;
}

#foot-notes-container [id^="foot-note-"] p {
    display: block;
    margin: 0;
}

/* Inline references */
.foot-note {
    vertical-align: super;
    font-size: 0.8em;
    margin-left: -5px;
    color: blue;
    cursor: pointer;
    text-decoration: none !important;
}

/* Footnote numbers inside the endnotes list */
#foot-notes-container [id^="foot-note-"] > .foot-note {
    grid-column: 1;
    margin: 0;
    vertical-align: baseline;
    font-size: 0.8em; /* keep them smaller */
    text-decoration: none !important;
}

#footNotes {
    padding-left: 0 !important;
}

/*references section*/
#referencesSection > .col > div {
    position: relative;
    padding-left: 2ch; /* room for the number */
    margin: 0 0 0.75em 0;
}

#referencesSection > .col > div > span:first-child {
    position: absolute;
    left: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.media-item-image {
    max-width: 50%
}

/*table setup*/
div.inner-table {
    margin-bottom: 1em;
}

div.inner-table + p:empty {
    display: none;
}


