/* One visible note: margin on wide screens, inline disclosure otherwise. */
.post-content.attila-has-sidenotes { position: relative; }
@media screen {
    .post-content .attila-note-original,
    .post-content .attila-endnotes-hidden { display: none !important; }
    .post-content .attila-sidenote {
        display: flex;
        position: relative;
        min-width: 0;
        max-width: none;
        margin: 1.2rem 0 2rem;
        padding: 1.2rem 1.6rem;
        gap: 8px;
        box-sizing: border-box;
        border-left: 2px solid var(--ghost-accent-color);
        font-size: 1.4rem;
        line-height: 1.65;
        color: var(--color-content-secondary);
        overflow-wrap: anywhere;
    }
    .post-content .attila-sidenote.attila-note-margin {
        position: absolute;
        min-width: 0;
        max-width: 240px;
        margin: 0;
        padding: 0;
        border: 0;
        font-size: 1.3rem;
    }
    .attila-sidenote-number {
        flex: 0 0 auto;
        color: var(--ghost-accent-color);
        font-variant-numeric: tabular-nums;
        font-size: 1.1rem;
        line-height: 1.95;
    }
    .attila-sidenote-text { min-width: 0; }
    .post-content .attila-sidenote-text p { margin: 0 0 0.8em; }
    .post-content .attila-sidenote-text p:last-child { margin-bottom: 0; }
    .post-content .attila-sidenote-text li { line-height: 1.65; }
    .post-content .attila-sidenote-text a { color: inherit; }
    .post-content .attila-sidenote-text img { max-width: 100%; margin: 0.5em 0; }
    .post-content .attila-sidenote[hidden] { display: none !important; }
}
@media print {
    .post-content .attila-sidenote { display: none !important; }
}
