/* ============================================================================
   Laurel Leaf Decorations
   Reusable laurel wreath ornament for branding and herald designations.
   Single left-leaf PNG, right leaf mirrored via CSS transform.
   ============================================================================ */

.laurel-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: var(--spacing-1);
}

.laurel-wrap::before,
.laurel-wrap::after {
    content: '';
    display: inline-block;
    background-image: url('/static/img/laurel-left.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.laurel-wrap::after {
    transform: scaleX(-1);
}

/* Brand size (~28px tall, natural aspect ratio 41:64) */
.laurel-wrap--brand::before,
.laurel-wrap--brand::after {
    height: 28px;
    aspect-ratio: 41 / 64;
    position: relative;
    top: 2px;  /* Shift down so stem aligns with text baseline */
}

/* Navbar brand size (~18px tall, fits mobile navbar) */
.laurel-wrap--navbar::before,
.laurel-wrap--navbar::after {
    height: 22px;
    aspect-ratio: 41 / 64;
    position: relative;
    top: 1px;
}

/* Inline size for herald names (~14px tall) */
.laurel-wrap--inline {
    gap: 2px;               /* Tighter than default 4px to avoid gap doubling */
}

.laurel-wrap--inline::before,
.laurel-wrap--inline::after {
    width: 9px;    /* 14 * (41/64) */
    height: 14px;
}

/* Sidebar post list: wrapper takes flex role from .herald-name */
.post-herald-line .laurel-wrap {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 200px;
}

/* Button laurels - positioned absolutely inside .btn-herald */
.btn-herald-laurels {
    position: relative;
}

.btn-herald-laurels::before,
.btn-herald-laurels::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    aspect-ratio: 41 / 64;
    background-image: url('/static/img/laurel-left-darkbg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.btn-herald-laurels::before {
    left: 8px;
}

.btn-herald-laurels::after {
    right: 8px;
    transform: translateY(-50%) scaleX(-1);
}
