/* ========================= */
/* Scroll container          */
/* ========================= */
.content-container {
    overflow: hidden;
    position: relative;
}

/* ========================= */
/* Superscript Footnote Ref  */
/* ========================= */
sup.footnote-ref-hover {
    position: relative;
    cursor: pointer;
    font-size: 0.8em;
    outline-offset: 2px;
}

sup.footnote-ref-hover:focus {
    outline: 2px solid #007cba;
}

/* ========================= */
/* Mobile Tooltip Container  */
/* ========================= */
#footnote-tooltip {
    background: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 1em;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    box-sizing: border-box;
    max-width: 100vw;
    width: 100vw;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

#footnote-tooltip[hidden] {
    display: none;
}

/* ========================= */
/* Desktop Tooltip Container */
/* ========================= */
.footnote-tooltip.desktop {
    background: #fff;
    border: 1px solid #ccc;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 9999;
    font-size: 14px;
    line-height: 1.4;
    max-width: 320px;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: anywhere;
    position: absolute;
    display: none;
}

/* Images inside footnotes */
.footnote-tooltip img,
#footnote-tooltip img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.5em 0;
}

/* ========================= */
/* Footnote List Styling     */
/* ========================= */
.footnotes {
    margin-top: 40px;
    padding-top: 20px;
}

.footnotes ol {
    list-style: none;
    padding-left: 0;
}

.footnote {
    margin-bottom: 10px;
}
