.text-black {
    color: black
}

/* ── Menu flags ────────────────────────────────────────────────────────────
   Usage in any .rst heading:   My Section Title :new:`\``
   The :new: / :updated: roles (flagged.py) inject a <span class="menu-flag
   menu-flag-new"> which Sphinx carries into the sidebar TOC links.
   ──────────────────────────────────────────────────────────────────────── */

.menu-flag {
    display: inline-block;
    font-size: 0.6em;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #5a5a6e;
    padding: 2px 6px 2px 9px;
    border-radius: 2px 3px 3px 2px;
    clip-path: polygon(9px 0%, 100% 0%, 100% 100%, 9px 100%, 0% 50%);
    box-shadow: 1px 1px 3px rgba(0,0,0,0.12);
    vertical-align: middle;
    margin-left: 6px;
    white-space: nowrap;
    line-height: 1.8;
}

/* Colour variants */
.menu-flag-new {
    background: linear-gradient(135deg, #a8f0c0, #c5f7d8);
}
.menu-flag-new::before { content: "NEW"; }

.menu-flag-updated {
    background: linear-gradient(135deg, #a8c8f9, #c5daf7);
}
.menu-flag-updated::before { content: "UPD"; }
