/* Shared footer: enlarge the hit area while retaining existing text and URLs. */
#Footer #block-17 p a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 48px;
    min-height: 48px;
    max-width: calc(100% - 12px);
    padding: 6px 8px;
    margin: 4px 6px;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Betheme's shared social lists, including responsive header/side-menu copies. */
:is(#Footer, #Side_slide, #Header, #Top_bar, .mfn-header-tmpl) ul.social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

:is(#Footer, #Side_slide, #Header, #Top_bar, .mfn-header-tmpl) ul.social > li {
    display: block;
    margin: 0;
    padding: 0;
}

:is(#Footer, #Side_slide, #Header, #Top_bar, .mfn-header-tmpl) ul.social > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    margin: 0;
    line-height: 1;
}

/* The biography's heading inherited a dark grey intended for light surfaces.
   Match its existing paragraph grey on the unchanged #19222b background. */
body.home .mcb-section-649861e6a h2.desc_wrappper_title {
    color: #a8a8a8;
}

/* Retain the header's warm accent while making the cart amount readable. */
#Wrapper .mfn-header-tmpl p.header-cart-total {
    color: #6b6250;
}

/* Reserve the biography portrait before Betheme assigns its lazy image src.
   The padding box also works in browsers without CSS aspect-ratio support. */
body.home .mcb-item-a0daeccd5 .image_frame.photo .image_wrapper {
    position: relative;
    width: 500px;
    max-width: 100%;
}

body.home .mcb-item-a0daeccd5 .image_frame.photo .image_wrapper::before {
    content: "";
    display: block;
    padding-top: 100%;
}

body.home .mcb-item-a0daeccd5 .image_frame.photo .image_wrapper > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

/* Betheme moves its relative desktop header out of flow while adding body
   padding. Reserve the same space inside Wrapper to keep Wrapper stationary. */
.baron-header-spacer {
    display: none;
}

@media (min-width: 768px) {
    body.baron-header-spacer-ready.mfn-header-scrolled {
        padding-top: 0 !important;
    }

    body.baron-header-spacer-ready.mfn-header-scrolled #Wrapper > .baron-header-spacer {
        display: block;
    }

    /* Same 0.5s slide from -100% of the viewport; transform avoids the native
       top animation's repeated layout shifts. Native duration overrides remain. */
    body.baron-header-spacer-ready.mfn-header-scrolled #mfn-header-template.mfn-hasSticky {
        animation-name: baronHeaderSlide;
    }
}

@keyframes baronHeaderSlide {
    from { transform: translateY(-100vh); }
    to { transform: translateY(0); }
}
