/* --- Reference trong bài --- */
sup.fn {
    vertical-align: baseline !important; /* bỏ superscript */
    font-size: inherit;                  /* đồng bộ với text */
}

sup.fn > a {
    text-decoration: none;               /* bỏ underline */
    font-weight: normal;
    color: inherit;
}

sup.fn > a::before {
    content: ' [';
}

sup.fn > a::after {
    content: ']';
}

.fn-inline-box a::before,
.fn-inline-box a::after {
    content: none !important;
}


/* --- Footnote list --- */
/* Ẩn footnote gốc */
.wp-block-footnotes {
    display: none !important;
}

/* Khung hiển thị footnote inline */
.fn-inline-box {
    position: relative;
    border: 1px solid color-mix(in srgb, var(--post-fg) 60%, var(--post-bg));
    background: color-mix(in srgb, var(--post-fg) 15%, transparent);
    padding: 0.5em 1em;
    margin: 0.5em 1em;
    border-radius: 15px;
    display: none;
    font-size: 0.95em;
}


.fn-inline-title {
    font-weight: bold;
    display: block;
    margin-bottom: 0.4em;
}