.ema-detail-path ol {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font: 13px/1.5 "Inter", system-ui, sans-serif;
    gap: 5px 11px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ema-detail-path li {
    color: #475c51;
    margin: 0;
}

.ema-detail-path li + li::before {
    color: #667d70;
    content: "›" / "";
    margin-inline-end: 11px;
}

.ema-detail-path a {
    color: #265343;
    text-underline-offset: 3px;
}

.ema-detail-path [aria-current="page"] {
    font-weight: 600;
}

.ast-article-single > .ema-detail-path {
    margin-block-end: 12px;
}

.ast-page-builder-template .ast-article-single > .ema-detail-path {
    margin-inline: auto;
    max-width: 1220px;
    padding: 12px clamp(12px, 3vw, 26px) 0;
}

.ema-detail-path--masthead {
    background: #f2f6ef;
    border-block-start: 1px solid #dce6de;
}

.ema-detail-path--masthead .ema-detail-path-inner {
    align-items: center;
    display: flex;
    gap: 11px;
    padding-inline: calc(15px + clamp(12px, 3vw, 26px));
    width: min(100%, 1200px);
}

.ema-detail-path--masthead ol {
    min-height: 34px;
}

.ema-detail-path-back {
    align-items: center;
    border: 1px solid #cbd9ce;
    border-radius: 6px;
    display: inline-flex;
    flex: 0 0 30px;
    font-size: 18px;
    height: 28px;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
}

.ema-detail-path-back:is(:hover, :focus-visible) {
    background: #e0ebe0;
    color: #183e2e;
}

@media (min-width: 768px) {
    #page:has(> #masthead > .ema-detail-path--masthead) {
        --ema-listing-background: linear-gradient(to right, #f5f1e4, #e8f1e9);
    }

    #page > #masthead:has(> .ema-detail-path--masthead),
    #page > #masthead:has(> .ema-detail-path--masthead) ~ #content {
        background: var(--ema-listing-background);
    }

    #page > #masthead:has(> .ema-detail-path--masthead) ~ #content {
        padding-block-start: 32px;
    }

    .ema-detail-path--masthead {
        background: transparent;
        border-block-start-color: transparent;
    }

    html:has(#masthead > .ema-detail-path--masthead) {
        scrollbar-gutter: stable;
    }

    body.page-id-4753 #page > #masthead:has(> .ema-detail-path--masthead) {
        background: var(--ema-listing-background);
        border-block-end-color: transparent;
    }

    body.page-id-4753 #page > #masthead:has(> .ema-detail-path--masthead) :is(#ast-desktop-header, #ast-mobile-header) {
        background: #152f27;
    }

    body.page-id-4753 #page > #masthead:has(> .ema-detail-path--masthead) .ast-primary-header-bar {
        margin-block-start: 10px;
    }

    #masthead:has(> .ema-detail-path--masthead) ~ #content :is(#primary, .ema-rewards):has(.ema-rewards-hero) {
        margin-block-start: 0;
    }

    #masthead:has(> .ema-detail-path--masthead) ~ #content #main > .ast-article-single:has(.ema-rewards-hero),
    #masthead:has(> .ema-detail-path--masthead) ~ #content .e-con-inner:has(> .elementor-widget-shortcode .ema-rewards-hero) {
        padding-block-start: 0;
    }

    #page > #masthead:has(> .ema-detail-path--masthead) ~ #content .ast-article-single:has(.ema-rewards-hero) {
        background: transparent;
    }

    #masthead:has(> .ema-detail-path--masthead) ~ #content .ema-rewards-hero {
        padding-block-start: clamp(12px, 1.5vw, 20px);
    }
}

@media (max-width: 767px) {
    .ema-detail-path--masthead {
        background: inherit;
        border-block-start: 0;
    }

    .ema-detail-path--masthead .ema-detail-path-inner {
        display: block;
        max-width: none;
        padding-inline: 20px 12px;
    }

    .ema-detail-path-back {
        display: none;
    }

    .ema-detail-path--masthead ol {
        flex-wrap: nowrap;
        font-size: clamp(11px, 3.1vw, 12px);
        gap: 4px;
        min-height: 30px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .ema-detail-path--masthead ol::-webkit-scrollbar {
        display: none;
    }

    .ema-detail-path--masthead li {
        align-items: center;
        color: #f7edd6;
        display: flex;
        flex: none;
        white-space: nowrap;
    }

    .ema-detail-path--masthead li + li::before {
        color: #d3b77f;
        margin-inline-end: 4px;
    }

    .ema-detail-path--masthead a {
        color: inherit;
    }

    .ema-detail-path--masthead [aria-current="page"] {
        color: #ffdf9a;
    }

    .ema-detail-path .ema-detail-path-number {
        display: none;
    }

    #masthead:has(> .ema-detail-path--masthead) ~ #content .ema-mobile-listing :is(.ema-mobile-listing-options, .emanette-archive-filter, .ema-mobile-listing-search) {
        scroll-margin-top: calc(120px + var(--wp-admin--admin-bar--height, 0px));
    }
}

.ema-number-search-menu {
    position: relative;
}

.ema-number-search-bar {
    align-items: center;
    background: #edf3ed;
    border: 1px solid #9db6a7;
    border-radius: 7px;
    color: #245743;
    display: flex;
    gap: 5px;
    inset-block-start: 50%;
    inset-inline-end: calc(100% + 10px);
    margin: 0;
    padding: 0 3px 0 7px;
    position: absolute;
    transform: translateY(-50%);
    width: clamp(145px, 16vw, 210px);
    z-index: 1;
}

.home .ema-number-search-bar {
    background: #233b31;
    border-color: #789480;
    color: #f8e3b2;
}

.ema-number-search-bar input {
    background: transparent;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit;
    flex: 1 1 0;
    font: 13px/1.2 system-ui, sans-serif;
    height: 30px;
    min-width: 0;
    padding: 0;
    width: 100%;
}

.ema-number-search-bar input:focus {
    outline: none;
}

.ema-number-search-bar:focus-within {
    border-color: #163e2e;
}

.home .ema-number-search-bar:focus-within {
    border-color: #f8e3b2;
}

.ema-number-search-bar input::placeholder {
    color: inherit;
    opacity: .9;
}

.ema-number-search-bar button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: inherit;
    display: flex;
    flex: 0 0 27px;
    height: 27px;
    justify-content: center;
    padding: 0;
    position: relative;
}

.ema-number-search-bar button:hover {
    background: rgb(121 155 138 / 24%);
}

.ema-number-search-bar button::before {
    border: 2px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
    content: "";
    height: 12px;
    margin: -3px 3px 0 0;
    width: 12px;
}

.ema-number-search-bar button::after {
    background: currentColor;
    border-radius: 2px;
    content: "";
    height: 2px;
    left: calc(50% + 2px);
    position: absolute;
    top: calc(50% + 5px);
    transform: rotate(45deg);
    width: 7px;
}

@media (max-width: 620px) {
    .ema-number-search-bar {
        gap: 2px;
        inset-inline-end: 78px;
        padding-inline-start: 5px;
        width: min(106px, 26vw);
    }

    .ema-number-search-bar input {
        font-size: 11px;
        height: 25px;
    }

    .ema-number-search-bar button {
        flex-basis: 23px;
        height: 23px;
    }
}

.ema-number-search-inline {
    background: #fff;
    border: 1px solid #cbd9ce;
    border-radius: 12px;
    box-sizing: border-box;
    color: #193b31;
    padding: 18px 20px;
}

.ema-number-search-form > div {
    align-items: center;
    display: flex;
    gap: 9px;
}

.ema-number-search-inline h2 {
    color: #193b31;
    font-size: 19px;
    line-height: 1.25;
    margin: 0;
}

.ema-number-search-form {
    margin: 0;
}

.ema-number-search-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0 5px;
}

.ema-number-search-form input {
    border: 1px solid #9aafa2;
    border-radius: 6px;
    flex: 1;
    min-width: 0;
    padding: 8px;
    width: auto;
}

.ema-number-search-form button {
    background: #245743;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    padding: 9px 13px;
    white-space: nowrap;
}

.ema-number-search-form button:hover {
    background: #163e2e;
}

.ema-number-search-inline {
    margin: 0 0 16px;
    max-width: 490px;
}

.ema-number-search-inline p {
    margin: 8px 0;
}

.ema-category-page {
    margin: 0 auto;
    max-width: 1200px;
    padding: 24px clamp(12px, 3vw, 30px) 38px;
}

.ema-category-heading {
    background: #f1f6f0;
    border: 1px solid #dce6de;
    border-radius: 12px;
    margin-bottom: 18px;
    padding: clamp(14px, 3vw, 24px);
}

.ema-category-heading a {
    color: #245743;
    font-size: 14px;
}

.ema-category-heading h1 {
    color: #193b31;
    font-size: clamp(25px, 3vw, 36px);
    margin: 7px 0 0;
}

.ema-category-heading p {
    margin: 8px 0 0;
}

.ema-category-results .directorist-listings-header {
    border-radius: 10px;
}
