/* =============================================
   Advanced Heading — Base Styles
   ============================================= */

.adv-heading-wrapper {
    display: block;
}

.adv-heading-link {
    text-decoration: none;
    color: inherit;
}

.adv-heading-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Inner heading tag */
.adv-heading-inner {
    margin: 0;
}

/* Inline: natural text flow — parts wrap as regular inline elements */
.adv-heading--inline {
    /* No flex — inline children flow and wrap naturally */
}

/* Stack: flex column */
.adv-heading--stack {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.3em;
}

/* Parts */
.adv-heading-part {
    display: inline;
}

.adv-heading-part--block {
    display: block;
    width: 100%;
}

/* Parts with background get box-decoration treatment */
.adv-heading-part[data-has-bg="1"] {
    padding: 0.05em 0.25em;
    border-radius: 0.15em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* =============================================
   Variants
   ============================================= */

.adv-heading-part--bold strong {
    font-weight: inherit;
}

.adv-heading-part--bold {
    font-weight: 700;
}

.adv-heading-part--slim {
    font-weight: 400;
}
