{# inside the label for a section/group item #}
{% if nav_item.is_section %}
  {% set icon = config.extra.icons.navigation[nav_item.title] %}
  {% if icon %}
    <span class="md-nav__icon md-icon">
      {% include "partials/icon.html" with context %}
    </span>
  {% endif %}
{% endif %}
/* Sidebar "NEW" pill */
.md-sidebar--primary .md-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-left: .4rem;
    padding: .12em .45em;
    border-radius: .4rem;
    font-size: 1em;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    background: #0c0c0c;   /* badge bg */
    color: #fff;           /* badge text */
    box-shadow: 0 0 0 1px rgba(0,0,0,.05); /* subtle edge in light mode */
  }
  
  /* keep the same colors for the “primary” variant */
  .md-sidebar--primary .md-badge--primary {
    background: #0c0c0c !important;
    color: #fff !important;
  }
  
  /* optional: ensure good contrast in dark mode too */
  [data-md-color-scheme="dark"] .md-sidebar--primary .md-badge {
    box-shadow: none;
  }
  