/* =============================================
   Modify Heading — Styles
   ============================================= */

/* Base */
.mh-heading {
    display: flex;
    flex-direction: column;
}

.mh-overtitle,
.mh-title,
.mh-subtitle {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.mh-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mh-link:hover {
    color: inherit;
}


/* =============================================
   DECORATORS (overtitle)
   ============================================= */

/* Line before text */
.mh-decorator-line {
    display: flex;
    align-items: center;
}

.mh-decorator-line::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: currentColor;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Dot before text */
.mh-decorator-dot {
    display: flex;
    align-items: center;
}

.mh-decorator-dot::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Slash before text */
.mh-decorator-slash {
    display: flex;
    align-items: center;
}

.mh-decorator-slash::before {
    content: '//';
    display: inline-block;
    margin-right: 8px;
    font-weight: 700;
    color: currentColor;
    flex-shrink: 0;
}

/* Left border */
.mh-decorator-border {
    border-left-style: solid;
    border-left-width: 3px;
    border-left-color: currentColor;
    padding-left: 8px;
}


/* =============================================
   SEPARATOR
   ============================================= */
.mh-separator {
    display: block;
    width: 60px;
    height: 2px;
    background-color: #E0E0E0;
    margin: 12px 0;
    border-radius: 1px;
}

/* Alignment-aware separator positioning */
.mh-heading[style*="text-align: center"] .mh-separator,
.mh-heading[style*="text-align:center"] .mh-separator {
    margin-left: auto;
    margin-right: auto;
}

.mh-heading[style*="text-align: right"] .mh-separator,
.mh-heading[style*="text-align:right"] .mh-separator {
    margin-left: auto;
    margin-right: 0;
}

/* Alignment-aware decorator positioning */
.mh-heading[style*="text-align: center"] .mh-decorator-line,
.mh-heading[style*="text-align: center"] .mh-decorator-dot,
.mh-heading[style*="text-align: center"] .mh-decorator-slash,
.mh-heading[style*="text-align:center"] .mh-decorator-line,
.mh-heading[style*="text-align:center"] .mh-decorator-dot,
.mh-heading[style*="text-align:center"] .mh-decorator-slash {
    justify-content: center;
}

.mh-heading[style*="text-align: right"] .mh-decorator-line,
.mh-heading[style*="text-align: right"] .mh-decorator-dot,
.mh-heading[style*="text-align: right"] .mh-decorator-slash,
.mh-heading[style*="text-align:right"] .mh-decorator-line,
.mh-heading[style*="text-align:right"] .mh-decorator-dot,
.mh-heading[style*="text-align:right"] .mh-decorator-slash {
    justify-content: flex-end;
}


/* =============================================
   HIGHLIGHT
   ============================================= */
.mh-highlight {
    display: inline;
}

/* Underline style */
.mh-highlight-underline .mh-highlight {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: none;
}

/* Italic style */
.mh-highlight-italic {
    font-style: italic;
}

/* Strikethrough style */
.mh-highlight-strike {
    text-decoration: line-through;
}
