, this is roughly the line containing
the sidenote reference, giving correct vertical alignment without JS.
On narrow viewports the is hidden and the
's automatic numbers would disagree
with the in-text letter refs.
============================================================ */
section.footnotes .footnotes-list {
list-style: none;
margin: 0;
padding: 0;
}
.footnote-item {
position: relative;
padding-left: 1.5rem;
margin-bottom: 0.85rem;
font-size: 0.85rem;
line-height: 1.6;
color: var(--text-muted);
}
.footnote-label {
position: absolute;
left: 0;
top: 0.15em;
font-family: var(--font-sans);
font-size: 0.75em;
color: var(--text-faint);
}
/* First paragraph flows on the label's line; later ones stack. */
.footnote-item > p {
margin: 0 0 0.5em;
}
.footnote-item > p:first-of-type {
display: inline;
}
.footnote-back {
margin-left: 0.35em;
text-decoration: none;
font-family: var(--font-sans);
color: var(--text-faint);
transition: color var(--transition-fast);
}
.footnote-back:hover {
color: var(--text-muted);
}
/* ============================================================
MOBILE SIDENOTE POPUP
Bottom sheet shown when tapping a sidenote ref on narrow
viewports (where .sidenote is hidden). The overlay is
display:none by default; sidenotes.js adds .is-open to show it.
No media query needed — JS only opens the popup when the
sidenote span is hidden, so it never fires on wide viewports.
============================================================ */
.sidenote-popup-overlay {
display: none;
position: fixed;
inset: 0;
z-index: 500;
background: rgba(0, 0, 0, 0.45);
align-items: flex-end;
}
.sidenote-popup-overlay.is-open {
display: flex;
}
.sidenote-popup {
background: var(--bg);
border-top: 1px solid var(--border);
border-radius: 0.75rem 0.75rem 0 0;
padding: 1.25rem 1.25rem 2.75rem;
width: 100%;
max-height: 65vh;
overflow-y: auto;
position: relative;
font-family: var(--font-serif);
font-size: 0.9rem;
line-height: 1.6;
color: var(--text);
outline: none;
}
.sidenote-popup-close {
position: absolute;
top: 0.7rem;
right: 0.9rem;
background: none;
border: none;
font-size: 1.5rem;
line-height: 1;
color: var(--text-faint);
cursor: pointer;
padding: 0.1rem 0.35rem;
}
.sidenote-popup-close:hover {
color: var(--text);
}
/* Preserve sidenote-num badge style inside the popup */
.sidenote-popup .sidenote-num {
display: inline-block;
}