/**
 * @package   Akeeba DocImport
 * @copyright Copyright (c) 2011-2026 Nicholas K. Dionysopoulos / Akeeba Ltd
 * @license   GNU General Public License version 3, or later
 *
 * Badges for DocBook profiling attributes, written by assets/dbxsl/docimport/profile-badges.xsl:
 * <span class="docimport-badge docimport-badge-{attribute} docimport-badge-{attribute}-{value}">.
 * Colors are per attribute (platform, edition, audience), not per value, so any book's values
 * get a sensible look; a site template can add per-value rules if it wants more.
 */

.docimport-badge {
    display: inline-block;
    padding: 0.2em 0.55em;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    vertical-align: middle;
    white-space: nowrap;
    color: #fff;
    background-color: #5c6b7a;
}

/* Headings: keep the badge visually separate from the title text. */
h1 > .docimport-badge,
h2 > .docimport-badge,
h3 > .docimport-badge,
h4 > .docimport-badge,
h5 > .docimport-badge,
h6 > .docimport-badge,
.title > .docimport-badge {
    margin-inline-start: 0.35em;
    font-size: 0.55em;
}

/* Platform (os) */
.docimport-badge-os {
    color: #fff;
    background-color: #2f5b8a;
}

/* Edition (condition) */
.docimport-badge-condition {
    color: #3b2a00;
    background-color: #f2c14e;
}

/* Audience */
.docimport-badge-audience {
    color: #fff;
    background-color: #3c7d5a;
}
