.sfmh-directory,
.sfmh-single {
    --sfmh-navy: #0f2447;
    --sfmh-border: #ebe1ce;
    --sfmh-muted: #5f6b78;
    --sfmh-soft: #FCFAF6;
    width: 100%;
    max-width: var(--sfmh-content-width, 1375px);
    margin: 0 auto;
    color: #172033;
    box-sizing: border-box;
}
.sfmh-directory *, .sfmh-single * { box-sizing: border-box; }
.sfmh-directory .screen-reader-text,
.sfmh-single .screen-reader-text {
    position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}
.sfmh-filters { margin-bottom: 24px; }
.sfmh-search-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; margin-bottom: 14px; }
.sfmh-search { position: relative; }
.sfmh-directory .sfmh-search input {
    width:100%; min-height:52px; border:1px solid var(--sfmh-border)!important; border-radius:8px!important; background:#fff!important; padding:10px 16px 10px 48px!important; font-size:16px!important; color:#172033!important; box-shadow:none!important;
}
.sfmh-search__icon { position:absolute; left:16px; top:50%; transform:translateY(-50%); width:20px; height:20px; color:#22334d; pointer-events:none; }
.sfmh-search__icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; }
.sfmh-clear { border:0!important; background:transparent!important; color:#26ACE2!important; font-weight:600!important; padding:10px!important; cursor:pointer; white-space:nowrap; }
.sfmh-filter-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.sfmh-filter, .sfmh-select-wrap select { min-height:46px; }
.sfmh-filter { position:relative; }
.sfmh-filter summary,
.sfmh-directory .sfmh-select-wrap select {
    width:100%; min-height:46px; border:1px solid var(--sfmh-border)!important; border-radius:7px!important; background:#fff!important; color:#172033!important; font-size:14px!important; line-height:1.25!important; padding:12px 38px 12px 14px!important; box-shadow:none!important;
}
.sfmh-filter summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:8px; position:relative; }
.sfmh-filter summary::-webkit-details-marker { display:none; }
.sfmh-filter summary:after { content:'⌄'; position:absolute; right:14px; top:50%; transform:translateY(-55%); font-size:18px; color:#52606d; }
.sfmh-filter__count { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; border-radius:99px; background:#FCFAF6; color:#26ACE2; font-size:11px; font-weight:700; }
.sfmh-filter__panel { position:absolute; z-index:30; top:calc(100% + 6px); left:0; width:max(100%,260px); max-height:320px; overflow:auto; background:#fff; border:1px solid var(--sfmh-border); border-radius:8px; box-shadow:0 16px 36px rgba(26,45,37,.14); padding:8px; }
.sfmh-check { display:flex; gap:9px; align-items:flex-start; padding:8px 9px; border-radius:5px; cursor:pointer; font-size:14px; }
.sfmh-check:hover { background:#f5f8f6; }
.sfmh-check input { margin:3px 0 0!important; }
.sfmh-select-wrap { display:block; }
.sfmh-select-wrap select { appearance:auto; }
.sfmh-results-head { display:flex; justify-content:space-between; align-items:center; margin:24px 0 12px; }
.sfmh-results-count { color:#536170; font-size:14px; }
.sfmh-results { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; transition:opacity .2s ease; }
.sfmh-directory.is-loading .sfmh-results { opacity:.55; }
.sfmh-card { display:flex; flex-direction:column; min-width:0; padding:18px; border:1px solid var(--sfmh-border); border-radius:9px; background:#fff; box-shadow:0 2px 10px rgba(17,31,24,.025); }
.sfmh-tags { display:flex; flex-wrap:wrap; gap:7px; align-items:center; margin-bottom:14px; }
.sfmh-tag { display:inline-flex; align-items:center; gap:6px; min-height:29px; border:0; border-radius:999px; padding:5px 10px; font-size:12px; line-height:1.1; font-weight:600; white-space:nowrap; text-decoration:none!important; }
.sfmh-tag--service { cursor:pointer; transition:filter .15s ease, box-shadow .15s ease, transform .15s ease; }
.sfmh-tag--service:hover { color:var(--sfmh-tag-color)!important; filter:saturate(1.08) brightness(.98); box-shadow:0 1px 4px rgba(17,31,24,.12); text-decoration:none!important; }
.sfmh-tag--service:focus-visible { outline:2px solid var(--sfmh-tag-color); outline-offset:2px; }
.sfmh-tag--service,.sfmh-tag--agriculture { color:var(--sfmh-tag-color)!important; background:var(--sfmh-tag-bg); }
.sfmh-tag__icon { width:17px; height:17px; display:inline-flex; align-items:center; justify-content:center; color:var(--sfmh-tag-color); }
.sfmh-tag__icon svg { width:16px; height:16px; color:inherit; }
.sfmh-tag__icon svg:not(.sfmh-custom-svg) { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.sfmh-tag__icon svg,.sfmh-tag__icon svg * { opacity:1!important; fill-opacity:1!important; stroke-opacity:1!important; }
.sfmh-tag__icon svg:not(.sfmh-custom-svg) path[d*="M9 3h6"] { fill:currentColor; stroke:none; }
.sfmh-tag--more { background:#eef1f4!important; color:#39485a!important; cursor:pointer; }
.sfmh-tag--hidden { display:none; }
.sfmh-tag--hidden.sfmh-tag--revealed { display:inline-flex; }
.sfmh-card__title { margin:0 0 10px!important; font-size:21px!important; line-height:1.15!important; color:var(--sfmh-navy)!important; font-weight:700!important; }
.sfmh-card__title a { color:inherit!important; text-decoration:none!important; }
.sfmh-card__title a:hover { text-decoration:underline!important; }
.sfmh-card__meta { display:grid; gap:7px; margin-bottom:18px; color:#344355; font-size:14px; }
.sfmh-meta-line { display:flex; gap:9px; align-items:flex-start; min-width:0; }
.sfmh-meta-line a { color:#344355!important; text-decoration:none!important; overflow-wrap:anywhere; }
.sfmh-meta-line a:hover { text-decoration:underline!important; }
.sfmh-meta-icon { flex:0 0 18px; width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center; color:var(--sfmh-navy); margin-top:0; }
.sfmh-meta-icon svg { display:block; width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.sfmh-card__button { display:flex!important; justify-content:center; align-items:center; gap:12px; margin-top:auto; min-height:40px; border:1px solid var(--sfmh-navy); border-radius:6px; color:var(--sfmh-navy)!important; background:#fff; text-decoration:none!important; font-size:14px; font-weight:600; transition:background-color .2s ease,border-color .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease; }
.sfmh-card__button:hover { background:#26ACE2; border-color:#26ACE2; color:#fff!important; }
.sfmh-load-wrap { display:flex; justify-content:center; margin-top:22px; }
.sfmh-load-more { min-width:240px; border:1px solid #7d8b84!important; border-radius:7px!important; background:#fff!important; color:#172033!important; min-height:44px; padding:8px 20px!important; cursor:pointer; display:flex; gap:16px; align-items:center; justify-content:center; }
.sfmh-load-more[hidden] { display:none!important; }
.sfmh-load-more:disabled { opacity:.5; cursor:wait; }
.sfmh-empty { grid-column:1/-1; border:1px dashed #cad4cf; border-radius:8px; padding:34px; text-align:center; color:#64716d; background:#fafcfb; }
.sfmh-notice { max-width:var(--sfmh-content-width,1375px); margin:20px auto; padding:14px 18px; background:#fff4d6; border-left:4px solid #d8a317; }

/* Single resource template */
.sfmh-single-wrap { padding:50px 20px 70px; background:#fff; }
.sfmh-back { display:inline-block; margin-bottom:22px; color:var(--sfmh-navy)!important; text-decoration:none!important; font-weight:600; }
.sfmh-single__header { padding-bottom:28px; border-bottom:1px solid var(--sfmh-border); }
.sfmh-single__header h1 { margin:0 0 8px!important; color:var(--sfmh-navy)!important; font-size:clamp(34px,4vw,54px)!important; line-height:1.05!important; }
.sfmh-parent { margin:0 0 18px; color:var(--sfmh-muted); font-size:16px; }
.sfmh-tags--single { margin:18px 0 0; }
.sfmh-single__grid { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:48px; padding-top:34px; align-items:start; }
.sfmh-single__content { font-size:17px; line-height:1.7; margin-bottom:34px; }
.sfmh-section { padding:24px 0; border-top:1px solid var(--sfmh-border); }
.sfmh-section:first-child { border-top:0; padding-top:0; }
.sfmh-section h2,.sfmh-contact-card h2 { margin:0 0 14px!important; color:var(--sfmh-navy)!important; font-size:24px!important; }
.sfmh-programs { display:grid; gap:10px; }
.sfmh-program { padding:12px 14px; background:#f7f9f8; border-radius:6px; }
.sfmh-contact-card { position:sticky; top:30px; padding:24px; border:1px solid var(--sfmh-border); border-radius:10px; background:#f8faf9; }
.sfmh-detail { display:grid; gap:4px; padding:14px 0; border-top:1px solid #dfe6e2; }
.sfmh-detail:first-of-type { border-top:0; }
.sfmh-detail strong { color:#263548; font-size:13px; text-transform:uppercase; letter-spacing:.04em; }
.sfmh-detail span,.sfmh-detail a { color:#344355!important; overflow-wrap:anywhere; }

@media (max-width: 1050px) {
    .sfmh-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .sfmh-results { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .sfmh-single__grid { grid-template-columns:1fr 320px; gap:28px; }
}
@media (max-width: 700px) {
    .sfmh-search-row { grid-template-columns:1fr; }
    .sfmh-clear { justify-self:start; padding-left:0!important; }
    .sfmh-filter-grid { grid-template-columns:1fr; }
    .sfmh-results { grid-template-columns:1fr; }
    .sfmh-filter__panel { width:100%; }
    .sfmh-single-wrap { padding:30px 16px 50px; }
    .sfmh-single__grid { grid-template-columns:1fr; }
    .sfmh-contact-card { position:static; }
}

/* Hide selected-filter count badges until at least one option is selected. */
.sfmh-filter__count[hidden] {
    display: none !important;
}

/* Resource post type and taxonomy archives */
.sfmh-archive-wrap {
    width: 100%;
    padding: 48px 20px 72px;
    background: #fff;
}
.sfmh-archive__header {
    margin: 0 0 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--sfmh-border);
}
.sfmh-archive__title {
    margin: 0 !important;
    color: var(--sfmh-navy) !important;
    font-size: clamp(34px, 4vw, 52px) !important;
    line-height: 1.08 !important;
    font-weight: 700 !important;
}
.sfmh-archive__description {
    max-width: 850px;
    margin-top: 14px;
    color: var(--sfmh-muted);
    font-size: 16px;
    line-height: 1.6;
}
.sfmh-archive__description > :last-child {
    margin-bottom: 0;
}
.sfmh-results-head--archive {
    margin-top: 0;
}
.sfmh-pagination {
    margin-top: 32px;
}
.sfmh-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.sfmh-pagination ul.page-numbers > li {
    margin: 0 !important;
    padding: 0 !important;
}
.sfmh-pagination .page-numbers a,
.sfmh-pagination .page-numbers span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 7px 12px;
    border: 1px solid var(--sfmh-border);
    border-radius: 6px;
    background: #fff;
    color: #344355 !important;
    text-decoration: none !important;
    line-height: 1;
}
.sfmh-pagination .page-numbers span.current {
    border-color: #26ACE2;
    background: #FCFAF6;
    color: #26ACE2 !important;
    font-weight: 700;
}
.sfmh-pagination .page-numbers a:hover {
    border-color: #a8b8b0;
    background: #f7faf8;
}

@media (max-width: 700px) {
    .sfmh-archive-wrap {
        padding: 30px 16px 50px;
    }
}

/* Legacy archive compatibility styles retained for the centralized directory. */
.sfmh-archive-wrap--directory > .sfmh-archive__header {
    max-width: var(--sfmh-content-width, 1375px);
    margin-left: auto;
    margin-right: auto;
}


/* Isolate plugin-owned link states from theme-level anchor colours. */
.sfmh-directory a.sfmh-tag--service,
.sfmh-directory a.sfmh-tag--service:visited,
.sfmh-directory a.sfmh-tag--service:active,
.sfmh-single a.sfmh-tag--service,
.sfmh-single a.sfmh-tag--service:visited,
.sfmh-single a.sfmh-tag--service:active,
.sfmh-archive-wrap a.sfmh-tag--service,
.sfmh-archive-wrap a.sfmh-tag--service:visited,
.sfmh-archive-wrap a.sfmh-tag--service:active {
    color: var(--sfmh-tag-color) !important;
    text-decoration: none !important;
}
.sfmh-directory a.sfmh-tag--service:hover,
.sfmh-directory a.sfmh-tag--service:focus,
.sfmh-single a.sfmh-tag--service:hover,
.sfmh-single a.sfmh-tag--service:focus,
.sfmh-archive-wrap a.sfmh-tag--service:hover,
.sfmh-archive-wrap a.sfmh-tag--service:focus {
    color: var(--sfmh-tag-color) !important;
}
.sfmh-directory .sfmh-card__title a,
.sfmh-directory .sfmh-card__title a:visited,
.sfmh-archive-wrap .sfmh-card__title a,
.sfmh-archive-wrap .sfmh-card__title a:visited {
    color: var(--sfmh-navy) !important;
}
.sfmh-directory .sfmh-meta-line a,
.sfmh-directory .sfmh-meta-line a:visited,
.sfmh-archive-wrap .sfmh-meta-line a,
.sfmh-archive-wrap .sfmh-meta-line a:visited {
    color: #344355 !important;
}
.sfmh-directory a.sfmh-card__button,
.sfmh-directory a.sfmh-card__button:visited,
.sfmh-archive-wrap a.sfmh-card__button,
.sfmh-archive-wrap a.sfmh-card__button:visited {
    color: var(--sfmh-navy) !important;
    border-color: var(--sfmh-navy) !important;
}
.sfmh-single a.sfmh-back,
.sfmh-single a.sfmh-back:visited {
    color: var(--sfmh-navy) !important;
}
.sfmh-single .sfmh-detail a,
.sfmh-single .sfmh-detail a:visited {
    color: #344355 !important;
}
.sfmh-single .sfmh-single__content a,
.sfmh-single .sfmh-single__content a:visited,
.sfmh-single .sfmh-section a,
.sfmh-single .sfmh-section a:visited,
.sfmh-single .sfmh-program a,
.sfmh-single .sfmh-program a:visited {
    color: var(--sfmh-navy, #0D537F) !important;
}
.sfmh-pagination .page-numbers a:visited {
    color: #344355 !important;
}


/* v0.4.1 sidebar directory layout */
.sfmh-directory__layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:28px;align-items:start}
.sfmh-sidebar{position:sticky;top:24px;align-self:start}
.sfmh-sidebar__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.sfmh-sidebar__title{margin:0!important;color:var(--sfmh-navy)!important;font-size:22px!important;line-height:1.15!important}
.sfmh-filters--sidebar{margin-bottom:0}
.sfmh-filters--sidebar .sfmh-filter{margin-bottom:12px}
.sfmh-filters--sidebar .sfmh-filter summary{background:#FCFAF6!important;font-weight:700}
.sfmh-filters--sidebar .sfmh-filter__panel--static{position:static;width:100%;max-height:none;overflow:visible;box-shadow:none;border:0;border-radius:0;padding:10px 0 0;background:transparent}
.sfmh-filters--sidebar .sfmh-check{padding:6px 0}
.sfmh-check--service{align-items:center}
.sfmh-filter-chip{display:inline-flex;align-items:center;gap:6px;min-height:29px;border-radius:999px;padding:5px 10px;color:var(--sfmh-tag-color);background:var(--sfmh-tag-bg);font-size:12px;font-weight:600;line-height:1.1}
.sfmh-check--service input{margin-top:0!important}
.sfmh-main{min-width:0}
.sfmh-main .sfmh-search-row{grid-template-columns:minmax(0,1fr);margin-bottom:18px}
@media(max-width:1050px){.sfmh-directory__layout{grid-template-columns:1fr}.sfmh-sidebar{position:static}}


/* v0.4.2 warm filters, static simple filters, active-filter chips */
.sfmh-filters--sidebar .sfmh-filter summary,
.sfmh-static-filter__title {
    background:#FCFAF6 !important;
    border:1px solid #ebe1ce !important;
}
.sfmh-static-filter { margin-bottom:12px; }
.sfmh-static-filter__title {
    min-height:46px;
    border-radius:7px;
    padding:12px 14px;
    color:#172033;
    font-size:14px;
    line-height:1.25;
    font-weight:700;
    display:flex;
    align-items:center;
}
.sfmh-static-filter__options { padding:8px 0 0; }
.sfmh-static-filter__options .sfmh-check { padding:6px 0; }
.sfmh-active-filters {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:0 0 16px;
}
.sfmh-active-filters[hidden] { display:none !important; }
.sfmh-active-chip {
    display:inline-flex;
    align-items:center;
    gap:7px;
    min-height:32px;
    padding:5px 7px 5px 11px;
    border:1px solid #ebe1ce;
    border-radius:999px;
    background:#FCFAF6;
    color:#344355;
    font-size:12px;
    font-weight:600;
    line-height:1.1;
}
.sfmh-active-chip--service {
    border-color:transparent;
    background:var(--sfmh-tag-bg);
    color:var(--sfmh-tag-color);
}
.sfmh-active-chip__content { display:inline-flex; align-items:center; gap:6px; }
.sfmh-active-chip__content .sfmh-tag__icon { color:inherit; }
.sfmh-active-chip__remove {
    width:20px;
    height:20px;
    min-width:20px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    border-radius:50%;
    background:transparent !important;
    color:currentColor !important;
    font-size:18px;
    font-weight:400;
    line-height:1;
    cursor:pointer;
}
.sfmh-active-chip__remove:hover,
.sfmh-active-chip__remove:focus {
    background:rgba(0,0,0,.06) !important;
    color:currentColor !important;
}

/* v0.4.3 sidebar polish */
.sfmh-filters--sidebar .sfmh-filter summary {
    padding-right:42px !important;
}
.sfmh-filters--sidebar .sfmh-filter summary:after {
    content:'';
    width:12px;
    height:12px;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    background-repeat:no-repeat;
    background-position:center;
    background-size:12px 12px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cpath fill='%2352606d' d='m64 88c-1.023 0-2.047-.391-2.828-1.172l-40-40c-1.563-1.563-1.563-4.094 0-5.656s4.094-1.563 5.656 0L64 78.344l37.172-37.172c1.563-1.563 4.094-1.563 5.656 0s1.563 4.094 0 5.656l-40 40C66.047 87.609 65.023 88 64 88z'/%3E%3C/svg%3E");
    transition:transform .18s ease;
}
.sfmh-filters--sidebar .sfmh-filter[open] summary:after {
    transform:translateY(-50%) rotate(180deg);
}

.sfmh-filters--sidebar .sfmh-check,
.sfmh-static-filter__options .sfmh-check {
    display:flex;
    align-items:center;
    gap:10px;
    min-height:30px;
    padding:5px 0;
    line-height:1.3;
}
.sfmh-directory .sfmh-check input[type="checkbox"] {
    -webkit-appearance:none !important;
    appearance:none !important;
    flex:0 0 18px;
    width:18px !important;
    height:18px !important;
    min-width:18px !important;
    margin:0 !important;
    border:1.5px solid #cbbfa9 !important;
    border-radius:4px !important;
    background:#fff !important;
    box-shadow:none !important;
    cursor:pointer;
    background-repeat:no-repeat !important;
    background-position:center !important;
    background-size:11px 11px !important;
    transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.sfmh-directory .sfmh-check input[type="checkbox"]:checked {
    border-color:#26ACE2 !important;
    background-color:#26ACE2 !important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.25' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.2 4.2L19 7'/%3E%3C/svg%3E") !important;
}
.sfmh-directory .sfmh-check input[type="checkbox"]:focus-visible {
    outline:none !important;
    box-shadow:0 0 0 3px rgba(38,172,226,.18) !important;
}
.sfmh-directory .sfmh-check > span:not(.sfmh-filter-chip) {
    line-height:1.35;
}

.sfmh-check--service {
    align-items:center !important;
}
.sfmh-check--service .sfmh-filter-chip {
    min-height:29px;
    display:inline-flex;
    align-items:center;
}
.sfmh-filter-chip,
.sfmh-filter-chip .sfmh-tag__icon,
.sfmh-filter-chip .sfmh-tag__icon svg {
    color:var(--sfmh-tag-color) !important;
}
.sfmh-filter-chip .sfmh-tag__icon svg,
.sfmh-filter-chip .sfmh-tag__icon svg * {
    opacity:1 !important;
    fill-opacity:1 !important;
    stroke-opacity:1 !important;
}
.sfmh-filter-chip .sfmh-tag__icon svg.sfmh-custom-svg,
.sfmh-filter-chip .sfmh-tag__icon svg.sfmh-custom-svg * {
    color:var(--sfmh-tag-color) !important;
}

.sfmh-static-filter__title,
.sfmh-filters--sidebar .sfmh-filter summary {
    border-color:#ebe1ce !important;
    background:#FCFAF6 !important;
}


/* v0.4.4 hover refinements */
.sfmh-directory .sfmh-check:hover,
.sfmh-filters--sidebar .sfmh-check:hover,
.sfmh-static-filter__options .sfmh-check:hover {
    background: transparent !important;
}
.sfmh-directory .sfmh-card__button:hover,
.sfmh-directory .sfmh-card__button:focus,
.sfmh-directory .sfmh-card__button:active {
    background:#26ACE2 !important;
    border-color:#26ACE2 !important;
    color:#fff !important;
    text-decoration:none !important;
}
.sfmh-directory .sfmh-card__button:hover span,
.sfmh-directory .sfmh-card__button:focus span,
.sfmh-directory .sfmh-card__button:active span {
    color:#fff !important;
}


/* v0.4.6 brand cleanup and card alignment */
.sfmh-filter__count { background:#FCFAF6 !important; color:#26ACE2 !important; border:1px solid #ebe1ce; }
.sfmh-meta-line {
    display:grid !important;
    grid-template-columns:18px minmax(0,1fr);
    column-gap:9px;
    align-items:center !important;
    min-height:20px;
}
.sfmh-meta-icon {
    color:var(--sfmh-navy) !important;
    margin:0 !important;
    align-self:center;
}
.sfmh-meta-line > span:last-child,
.sfmh-meta-line > a {
    line-height:1.35;
}
.sfmh-directory .sfmh-card__button,
.sfmh-archive-wrap .sfmh-card__button {
    color:var(--sfmh-navy) !important;
    border-color:var(--sfmh-navy) !important;
    background:#fff !important;
    transition:background-color .2s ease,border-color .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease !important;
}
.sfmh-directory .sfmh-card__button span,
.sfmh-archive-wrap .sfmh-card__button span {
    color:inherit !important;
    transition:transform .2s ease,color .2s ease;
}
.sfmh-directory .sfmh-card__button:hover,
.sfmh-directory .sfmh-card__button:focus,
.sfmh-directory .sfmh-card__button:active,
.sfmh-archive-wrap .sfmh-card__button:hover,
.sfmh-archive-wrap .sfmh-card__button:focus,
.sfmh-archive-wrap .sfmh-card__button:active {
    background:#26ACE2 !important;
    border-color:#26ACE2 !important;
    color:#fff !important;
    box-shadow:0 3px 10px rgba(38,172,226,.18);
}
.sfmh-directory .sfmh-card__button:hover span,
.sfmh-directory .sfmh-card__button:focus span,
.sfmh-archive-wrap .sfmh-card__button:hover span,
.sfmh-archive-wrap .sfmh-card__button:focus span {
    color:#fff !important;
    transform:translateX(2px);
}
.sfmh-pagination .page-numbers span.current {
    border-color:#26ACE2 !important;
    background:#FCFAF6 !important;
    color:#26ACE2 !important;
}
.sfmh-single .sfmh-back,
.sfmh-single .sfmh-back:visited { color:var(--sfmh-navy) !important; }
.sfmh-single .sfmh-single__content a,
.sfmh-single .sfmh-single__content a:visited,
.sfmh-single .sfmh-section a,
.sfmh-single .sfmh-section a:visited,
.sfmh-single .sfmh-program a,
.sfmh-single .sfmh-program a:visited { color:var(--sfmh-navy, #0D537F) !important; }


/* v0.4.7 keep visited card CTAs identical to unvisited CTAs */
.sfmh-directory a.sfmh-card__button:visited,
.sfmh-archive-wrap a.sfmh-card__button:visited {
    color:var(--sfmh-navy) !important;
    border-color:var(--sfmh-navy) !important;
    background:#fff !important;
}
.sfmh-directory a.sfmh-card__button:hover,
.sfmh-directory a.sfmh-card__button:focus,
.sfmh-directory a.sfmh-card__button:active,
.sfmh-directory a.sfmh-card__button:visited:hover,
.sfmh-directory a.sfmh-card__button:visited:focus,
.sfmh-directory a.sfmh-card__button:visited:active,
.sfmh-archive-wrap a.sfmh-card__button:hover,
.sfmh-archive-wrap a.sfmh-card__button:focus,
.sfmh-archive-wrap a.sfmh-card__button:active,
.sfmh-archive-wrap a.sfmh-card__button:visited:hover,
.sfmh-archive-wrap a.sfmh-card__button:visited:focus,
.sfmh-archive-wrap a.sfmh-card__button:visited:active {
    background:#26ACE2 !important;
    border-color:#26ACE2 !important;
    color:#fff !important;
    text-decoration:none !important;
    box-shadow:0 3px 10px rgba(38,172,226,.18);
}
.sfmh-directory a.sfmh-card__button:hover span,
.sfmh-directory a.sfmh-card__button:focus span,
.sfmh-directory a.sfmh-card__button:visited:hover span,
.sfmh-directory a.sfmh-card__button:visited:focus span,
.sfmh-archive-wrap a.sfmh-card__button:hover span,
.sfmh-archive-wrap a.sfmh-card__button:focus span,
.sfmh-archive-wrap a.sfmh-card__button:visited:hover span,
.sfmh-archive-wrap a.sfmh-card__button:visited:focus span {
    color:#fff !important;
}

/* v0.5.0 site-integration styling */
.sfmh-directory,
.sfmh-single {
    --sfmh-yellow: #FBB718;
    --sfmh-cream: #FCFAF6;
    --sfmh-warm-border: #ebe1ce;
    --sfmh-serif: Georgia, "Times New Roman", serif;
}

/* Directory: warmer editorial treatment to match the Stigma-Free Mental Health site. */
.sfmh-sidebar__title {
    position: relative;
    padding-bottom: 10px;
    font-family: var(--sfmh-serif) !important;
    font-size: 25px !important;
    font-weight: 700 !important;
    letter-spacing: -.01em;
}
.sfmh-sidebar__title:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: 99px;
    background: var(--sfmh-yellow);
}
.sfmh-clear {
    transition: color .18s ease, opacity .18s ease;
}
.sfmh-clear:hover,
.sfmh-clear:focus {
    color: var(--sfmh-blue) !important;
    opacity: .72;
    text-decoration: none !important;
}
.sfmh-directory .sfmh-search input {
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.sfmh-directory .sfmh-search input:focus {
    outline: none !important;
    border-color: var(--sfmh-yellow) !important;
    box-shadow: 0 0 0 3px rgba(251,183,24,.18) !important;
}
.sfmh-filters--sidebar .sfmh-filter summary,
.sfmh-static-filter__title {
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.sfmh-filters--sidebar .sfmh-filter[open] summary {
    border-left: 4px solid var(--sfmh-yellow) !important;
    padding-left: 11px !important;
}
.sfmh-filters--sidebar .sfmh-filter summary:hover,
.sfmh-filters--sidebar .sfmh-filter summary:focus {
    color: var(--sfmh-blue) !important;
    background: var(--sfmh-cream) !important;
}
.sfmh-static-filter__title {
    border-left: 4px solid transparent !important;
}
.sfmh-active-chip:not(.sfmh-active-chip--service) {
    background: var(--sfmh-cream);
    border-color: var(--sfmh-warm-border);
    color: var(--sfmh-navy);
}
.sfmh-active-chip:not(.sfmh-active-chip--service) .sfmh-active-chip__remove {
    color: var(--sfmh-blue) !important;
}
.sfmh-active-chip__remove {
    transition: background-color .15s ease, transform .15s ease;
}
.sfmh-active-chip__remove:hover,
.sfmh-active-chip__remove:focus {
    background: rgba(38,172,226,.09) !important;
    transform: scale(1.06);
}

.sfmh-results-head {
    margin: 22px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sfmh-warm-border);
}
.sfmh-results-count {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--sfmh-muted);
}
.sfmh-results-count strong {
    color: var(--sfmh-navy);
    font-family: var(--sfmh-serif);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 700;
}
.sfmh-results-count span {
    font-size: 13px;
}

.sfmh-card {
    padding: 20px;
    border-color: var(--sfmh-warm-border);
    border-radius: 7px;
    box-shadow: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.sfmh-card:hover {
    transform: translateY(-2px);
    border-color: #d9c9a9;
    box-shadow: 0 7px 18px rgba(15,36,71,.07);
}
.sfmh-card__title {
    margin-bottom: 12px !important;
    font-family: var(--sfmh-serif) !important;
    font-size: 22px !important;
    line-height: 1.08 !important;
    letter-spacing: -.01em;
}
.sfmh-card__title a:hover,
.sfmh-card__title a:focus {
    color: var(--sfmh-blue) !important;
    text-decoration: none !important;
}
.sfmh-card__meta {
    gap: 8px;
    margin-bottom: 20px;
}
.sfmh-meta-line a:hover,
.sfmh-meta-line a:focus {
    color: var(--sfmh-blue) !important;
    text-decoration: none !important;
}
.sfmh-card__button {
    min-height: 44px;
    letter-spacing: .01em;
}
.sfmh-load-more {
    border-color: var(--sfmh-blue) !important;
    color: var(--sfmh-blue) !important;
    background: #fff !important;
    font-weight: 600;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.sfmh-load-more:hover,
.sfmh-load-more:focus {
    background: var(--sfmh-blue) !important;
    border-color: var(--sfmh-blue) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(38,172,226,.18);
    transform: translateY(-1px);
}

/* Single resource: branded warm header band and site-like content treatment. */
.sfmh-single-wrap {
    padding-top: 38px;
}
.sfmh-single__hero {
    position: relative;
    overflow: hidden;
    padding: 30px 36px 28px;
    border: 1px solid var(--sfmh-warm-border);
    border-left: 6px solid var(--sfmh-yellow);
    border-radius: 7px;
    background: var(--sfmh-cream);
}
.sfmh-back {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    color: var(--sfmh-blue) !important;
    font-size: 14px;
    transition: color .18s ease, transform .18s ease;
}
.sfmh-back:visited {
    color: var(--sfmh-blue) !important;
}
.sfmh-back:hover,
.sfmh-back:focus,
.sfmh-back:visited:hover,
.sfmh-back:visited:focus {
    color: var(--sfmh-navy) !important;
    text-decoration: none !important;
}
.sfmh-single__header {
    position: relative;
    z-index: 1;
    padding-bottom: 0;
    border-bottom: 0;
}
.sfmh-single__eyebrow {
    margin: 0 0 7px;
    color: var(--sfmh-blue);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
}
.sfmh-single__header h1 {
    max-width: 900px;
    margin-bottom: 12px !important;
    font-family: var(--sfmh-serif) !important;
    font-size: clamp(38px,4.3vw,58px) !important;
    letter-spacing: -.02em;
}
.sfmh-parent {
    color: #6e6253;
}
.sfmh-tags--single {
    margin-top: 16px;
    margin-bottom: 0;
}
.sfmh-single__grid {
    gap: 50px;
    padding-top: 38px;
}
.sfmh-section {
    padding: 28px 0;
    border-color: var(--sfmh-warm-border);
}
.sfmh-section h2,
.sfmh-contact-card h2 {
    font-family: var(--sfmh-serif) !important;
    color: var(--sfmh-navy) !important;
    font-weight: 700 !important;
    letter-spacing: -.01em;
}
.sfmh-section h2 {
    position: relative;
    padding-bottom: 9px;
}
.sfmh-section h2:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 3px;
    border-radius: 99px;
    background: var(--sfmh-yellow);
}
.sfmh-section p {
    color: #344355;
    line-height: 1.65;
}
.sfmh-programs {
    gap: 9px;
}
.sfmh-program {
    padding: 13px 15px;
    border: 1px solid var(--sfmh-warm-border);
    border-radius: 5px;
    background: var(--sfmh-cream);
}
.sfmh-program a,
.sfmh-program a:visited {
    color: var(--sfmh-navy) !important;
    text-decoration: none !important;
}
.sfmh-program a:hover,
.sfmh-program a:focus {
    color: var(--sfmh-blue, #26ACE2) !important;
}
.sfmh-contact-card {
    position: sticky;
    top: 30px;
    overflow: hidden;
    padding: 26px;
    border-color: var(--sfmh-warm-border);
    border-radius: 7px;
    background: var(--sfmh-cream);
    box-shadow: none;
}
.sfmh-contact-card > * {
    position: relative;
    z-index: 1;
}
.sfmh-contact-card h2 {
    position: relative;
    margin-bottom: 16px !important;
    padding-bottom: 9px;
    border-bottom: 0;
}
.sfmh-contact-card h2:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 3px;
    border-radius: 99px;
    background: var(--sfmh-yellow);
}
.sfmh-detail {
    gap: 6px;
    padding: 14px 0;
    border-color: var(--sfmh-warm-border);
}
.sfmh-detail strong {
    color: var(--sfmh-blue);
    font-size: 11px;
    letter-spacing: .08em;
}
.sfmh-detail span,
.sfmh-detail a,
.sfmh-detail a:visited {
    color: var(--sfmh-navy) !important;
    line-height: 1.45;
}
.sfmh-detail a:hover,
.sfmh-detail a:focus,
.sfmh-detail a:visited:hover,
.sfmh-detail a:visited:focus {
    color: var(--sfmh-blue) !important;
    text-decoration: none !important;
}

/* Archive headings use the same warm visual language if the plugin heading is visible. */
.sfmh-archive__header {
    position: relative;
    overflow: hidden;
    padding: 24px 28px;
    border: 1px solid var(--sfmh-warm-border);
    border-left: 6px solid var(--sfmh-yellow);
    border-radius: 7px;
    background: var(--sfmh-cream);
}
.sfmh-archive__title {
    font-family: var(--sfmh-serif) !important;
    letter-spacing: -.02em;
}
.sfmh-archive__description {
    color: #6e6253;
}

@media (max-width: 700px) {
    .sfmh-single__hero {
        padding: 24px 20px 22px;
    }
    .sfmh-single__hero:after {
        width: 120px;
        height: 120px;
        right: -30px;
        bottom: -42px;
    }
    .sfmh-single__header h1 {
        font-size: 36px !important;
    }
    .sfmh-results-count {
        display: block;
    }
    .sfmh-results-count span {
        display: block;
        margin-top: 5px;
    }
}


/* v0.5.3 clear filters control */
.sfmh-clear[hidden] { display:none !important; }
.sfmh-clear {
    display:inline-flex !important;
    align-items:center;
    gap:7px;
}
.sfmh-clear__icon {
    width:15px;
    height:15px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 15px;
}
.sfmh-clear__icon svg {
    display:block;
    width:15px;
    height:15px;
    fill:currentColor;
}


/* v0.5.4 unified badge/chip treatment */
.sfmh-directory .sfmh-tag--service,
.sfmh-directory .sfmh-tag--agriculture,
.sfmh-single .sfmh-tag--service,
.sfmh-single .sfmh-tag--agriculture,
.sfmh-archive-wrap .sfmh-tag--service,
.sfmh-archive-wrap .sfmh-tag--agriculture {
    color: var(--sfmh-navy) !important;
    background: var(--sfmh-tag-bg) !important;
}
.sfmh-directory .sfmh-tag--service:visited,
.sfmh-directory .sfmh-tag--service:hover,
.sfmh-directory .sfmh-tag--service:focus,
.sfmh-directory .sfmh-tag--service:active,
.sfmh-single .sfmh-tag--service:visited,
.sfmh-single .sfmh-tag--service:hover,
.sfmh-single .sfmh-tag--service:focus,
.sfmh-single .sfmh-tag--service:active,
.sfmh-archive-wrap .sfmh-tag--service:visited,
.sfmh-archive-wrap .sfmh-tag--service:hover,
.sfmh-archive-wrap .sfmh-tag--service:focus,
.sfmh-archive-wrap .sfmh-tag--service:active {
    color: var(--sfmh-navy) !important;
}
.sfmh-tag--service .sfmh-tag__icon,
.sfmh-tag--agriculture .sfmh-tag__icon {
    color: var(--sfmh-tag-color) !important;
}

.sfmh-filter-chip {
    color: var(--sfmh-navy) !important;
    background: var(--sfmh-tag-bg) !important;
}
.sfmh-filter-chip .sfmh-tag__icon,
.sfmh-filter-chip .sfmh-tag__icon svg,
.sfmh-filter-chip .sfmh-tag__icon svg.sfmh-custom-svg,
.sfmh-filter-chip .sfmh-tag__icon svg.sfmh-custom-svg * {
    color: var(--sfmh-tag-color) !important;
}

.sfmh-active-chip--service {
    color: var(--sfmh-navy) !important;
    background: var(--sfmh-tag-bg) !important;
}
.sfmh-active-chip--service .sfmh-active-chip__content {
    color: var(--sfmh-navy) !important;
}
.sfmh-active-chip--service .sfmh-tag__icon,
.sfmh-active-chip--service .sfmh-tag__icon svg,
.sfmh-active-chip--service .sfmh-tag__icon svg.sfmh-custom-svg,
.sfmh-active-chip--service .sfmh-tag__icon svg.sfmh-custom-svg * {
    color: var(--sfmh-tag-color) !important;
}

.sfmh-active-chip .sfmh-active-chip__remove,
.sfmh-active-chip--service .sfmh-active-chip__remove,
.sfmh-active-chip:not(.sfmh-active-chip--service) .sfmh-active-chip__remove {
    color: var(--sfmh-blue) !important;
}
.sfmh-active-chip .sfmh-active-chip__remove:hover,
.sfmh-active-chip .sfmh-active-chip__remove:focus {
    color: var(--sfmh-blue) !important;
    background: rgba(38,172,226,.09) !important;
}


/* v0.5.5: one visual component for service filters, card badges and active chips. */
.sfmh-directory .sfmh-badge,
.sfmh-single .sfmh-badge,
.sfmh-archive-wrap .sfmh-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 29px;
    padding: 5px 10px;
    border: 0 !important;
    border-radius: 999px;
    background: var(--sfmh-tag-bg, #FCFAF6) !important;
    color: var(--sfmh-navy) !important;
    font-size: 12px;
    line-height: 1.1;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: none;
}

.sfmh-directory a.sfmh-badge,
.sfmh-directory a.sfmh-badge:link,
.sfmh-directory a.sfmh-badge:visited,
.sfmh-directory a.sfmh-badge:hover,
.sfmh-directory a.sfmh-badge:focus,
.sfmh-directory a.sfmh-badge:active,
.sfmh-single a.sfmh-badge,
.sfmh-single a.sfmh-badge:link,
.sfmh-single a.sfmh-badge:visited,
.sfmh-single a.sfmh-badge:hover,
.sfmh-single a.sfmh-badge:focus,
.sfmh-single a.sfmh-badge:active,
.sfmh-archive-wrap a.sfmh-badge,
.sfmh-archive-wrap a.sfmh-badge:link,
.sfmh-archive-wrap a.sfmh-badge:visited,
.sfmh-archive-wrap a.sfmh-badge:hover,
.sfmh-archive-wrap a.sfmh-badge:focus,
.sfmh-archive-wrap a.sfmh-badge:active {
    color: var(--sfmh-navy) !important;
    text-decoration: none !important;
}

.sfmh-badge .sfmh-tag__icon,
.sfmh-badge .sfmh-tag__icon svg,
.sfmh-badge .sfmh-tag__icon svg * {
    color: var(--sfmh-tag-color) !important;
}
.sfmh-badge .sfmh-tag__icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sfmh-badge .sfmh-tag__icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

/* Preserve the same pill geometry while accommodating the remove button. */
.sfmh-active-chip.sfmh-badge {
    gap: 7px;
    padding-right: 7px;
}
.sfmh-active-chip--service.sfmh-badge {
    background: var(--sfmh-tag-bg) !important;
    color: var(--sfmh-navy) !important;
}
.sfmh-active-chip.sfmh-badge .sfmh-active-chip__content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sfmh-navy) !important;
}
.sfmh-active-chip.sfmh-badge .sfmh-active-chip__remove,
.sfmh-active-chip.sfmh-badge .sfmh-active-chip__remove:visited,
.sfmh-active-chip.sfmh-badge .sfmh-active-chip__remove:hover,
.sfmh-active-chip.sfmh-badge .sfmh-active-chip__remove:focus,
.sfmh-active-chip.sfmh-badge .sfmh-active-chip__remove:active {
    width: 18px;
    height: 18px;
    min-width: 18px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    color: var(--sfmh-blue) !important;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
}
.sfmh-active-chip.sfmh-badge .sfmh-active-chip__remove:hover,
.sfmh-active-chip.sfmh-badge .sfmh-active-chip__remove:focus {
    background: rgba(38,172,226,.09) !important;
}

/* The filter pill itself must not inherit colour from its label row. */
.sfmh-check--service .sfmh-filter-chip.sfmh-badge,
.sfmh-check--service .sfmh-filter-chip.sfmh-badge > span:not(.sfmh-tag__icon) {
    color: var(--sfmh-navy) !important;
}


/* v0.5.6: fluid archive width and calmer service badges. */
@media (min-width: 1201px) {
    .sfmh-archive-wrap {
        padding-left: 8%;
        padding-right: 8%;
    }
    .sfmh-archive-wrap .sfmh-directory,
    .sfmh-archive-wrap--directory > .sfmh-archive__header {
        width: 100%;
        max-width: none;
    }
}

@media (min-width: 701px) and (max-width: 1200px) {
    .sfmh-archive-wrap {
        padding-left: 5%;
        padding-right: 5%;
    }
    .sfmh-archive-wrap .sfmh-directory,
    .sfmh-archive-wrap--directory > .sfmh-archive__header {
        width: 100%;
        max-width: none;
    }
}

/* Keep three generous result columns when the sidebar is present. */
.sfmh-archive-wrap .sfmh-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.sfmh-archive-wrap .sfmh-directory__layout {
    grid-template-columns: minmax(280px, 300px) minmax(0, 1fr);
    gap: 32px;
}

/* Service areas should support scanning without competing with resource titles. */
.sfmh-directory .sfmh-badge,
.sfmh-single .sfmh-badge,
.sfmh-archive-wrap .sfmh-badge {
    min-height: 26px;
    padding: 4px 9px;
    gap: 5px;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 500;
}
.sfmh-badge .sfmh-tag__icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
}
.sfmh-badge .sfmh-tag__icon svg {
    width: 14px;
    height: 14px;
}
.sfmh-tags {
    min-height: 58px;
    align-content: flex-start;
}

@media (max-width: 1100px) {
    .sfmh-archive-wrap .sfmh-directory__layout {
        grid-template-columns: 1fr;
    }
    .sfmh-archive-wrap .sfmh-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 700px) {
    .sfmh-archive-wrap {
        padding-left: 18px;
        padding-right: 18px;
    }
    .sfmh-archive-wrap .sfmh-results {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .sfmh-tags {
        min-height: 0;
    }
}


/* v0.5.7: hidden service badges must override the shared badge display rule. */
.sfmh-directory .sfmh-badge.sfmh-tag--hidden,
.sfmh-single .sfmh-badge.sfmh-tag--hidden,
.sfmh-archive-wrap .sfmh-badge.sfmh-tag--hidden {
    display: none !important;
}
.sfmh-directory .sfmh-badge.sfmh-tag--hidden.sfmh-tag--revealed,
.sfmh-single .sfmh-badge.sfmh-tag--hidden.sfmh-tag--revealed,
.sfmh-archive-wrap .sfmh-badge.sfmh-tag--hidden.sfmh-tag--revealed {
    display: inline-flex !important;
}

/* v0.6.0 contextual facet counts / availability */
.sfmh-directory [data-sfmh-option-key][hidden],
.sfmh-directory [data-sfmh-facet-group][hidden] {
    display: none !important;
}
.sfmh-option-count {
    margin-left: auto;
    color: #766b5e;
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
}
.sfmh-check--service .sfmh-option-count {
    padding-left: 4px;
}

/* v0.6.1: active filters use one neutral chip style; clear control lives beside chips. */
.sfmh-active-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 16px;
}
.sfmh-active-tools[hidden] {
    display: none !important;
}
.sfmh-active-tools .sfmh-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.sfmh-active-tools .sfmh-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 4px 7px 4px 10px;
    border: 1px solid #ebe1ce !important;
    border-radius: 999px;
    background: #FCFAF6 !important;
    color: #344355 !important;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: none;
}
.sfmh-active-tools .sfmh-active-chip__content {
    display: inline-flex;
    align-items: center;
    color: #344355 !important;
}
.sfmh-active-tools .sfmh-active-chip__remove,
.sfmh-active-tools .sfmh-active-chip__remove:visited,
.sfmh-active-tools .sfmh-active-chip__remove:hover,
.sfmh-active-tools .sfmh-active-chip__remove:focus,
.sfmh-active-tools .sfmh-active-chip__remove:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    color: var(--sfmh-blue, #26ACE2) !important;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
}
.sfmh-active-tools .sfmh-active-chip__remove:hover,
.sfmh-active-tools .sfmh-active-chip__remove:focus {
    background: rgba(38,172,226,.09) !important;
}
.sfmh-active-tools .sfmh-clear {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 4px 2px !important;
    font-size: 12px;
    line-height: 1.1;
}


/* v0.6.3: cohesive archive + single-resource page-title treatment. */
.sfmh-archive-wrap {
    --sfmh-navy: #0f2447;
    --sfmh-yellow: #FBB718;
    --sfmh-cream: #FCFAF6;
    --sfmh-warm-border: #ebe1ce;
    --sfmh-serif: Georgia, "Times New Roman", serif;
}

.sfmh-page-title {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--sfmh-warm-border, #ebe1ce);
    border-left: 5px solid var(--sfmh-yellow, #FBB718);
    border-radius: 7px;
    background:
        linear-gradient(118deg, rgba(255,255,255,.2) 0 54%, rgba(251,183,24,.055) 54% 72%, rgba(251,183,24,.095) 72% 100%),
        var(--sfmh-cream, #FCFAF6);
    box-shadow: 0 8px 26px rgba(15,36,71,.035);
}
.sfmh-page-title:after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -110px;
    bottom: -155px;
    width: 390px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(251,183,24,.18);
    background: rgba(255,255,255,.22);
    transform: rotate(-9deg);
    pointer-events: none;
}
.sfmh-page-title__inner,
.sfmh-single__header,
.sfmh-page-title > .sfmh-back {
    position: relative;
    z-index: 1;
}
.sfmh-page-title__eyebrow {
    margin: 0 0 9px !important;
    color: var(--sfmh-blue, #26ACE2) !important;
    font-family: Arial, sans-serif !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: .11em !important;
    text-transform: uppercase;
}
.sfmh-page-title__eyebrow:after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 9px;
    border-radius: 99px;
    background: var(--sfmh-yellow, #FBB718);
}
.sfmh-page-title__back,
.sfmh-page-title__back:visited {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 17px !important;
    color: var(--sfmh-navy, #0f2447) !important;
    font-size: 12px !important;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none !important;
}
.sfmh-page-title__back:hover,
.sfmh-page-title__back:focus,
.sfmh-page-title__back:visited:hover,
.sfmh-page-title__back:visited:focus {
    color: var(--sfmh-blue, #26ACE2) !important;
    text-decoration: none !important;
}

/* Archives */
.sfmh-archive__header.sfmh-page-title {
    margin: 0 0 34px;
    padding: clamp(28px, 3.2vw, 44px) clamp(24px, 3.6vw, 50px);
    border-bottom: 1px solid var(--sfmh-warm-border, #ebe1ce);
}
.sfmh-archive__header .sfmh-page-title__inner {
    max-width: 900px;
}
.sfmh-archive__header .sfmh-archive__title {
    max-width: 900px;
    margin: 0 !important;
    color: var(--sfmh-navy, #0f2447) !important;
    font-family: var(--sfmh-serif, Georgia, serif) !important;
    font-size: clamp(38px, 4vw, 58px) !important;
    line-height: 1.02 !important;
    font-weight: 700 !important;
    letter-spacing: -.025em !important;
}
.sfmh-archive__header .sfmh-archive__description {
    max-width: 720px;
    margin-top: 14px;
    color: #445269;
    font-size: 16px;
    line-height: 1.6;
}
.sfmh-archive__header .sfmh-archive__description p {
    margin: 0;
}

/* Single resources */
.sfmh-single__hero.sfmh-page-title {
    padding: clamp(28px, 3vw, 42px) clamp(24px, 3.6vw, 50px) clamp(26px, 3vw, 38px);
}
.sfmh-single__hero.sfmh-page-title .sfmh-single__header {
    padding: 0;
}
.sfmh-single__hero .sfmh-single__header h1 {
    max-width: 960px;
    margin: 0 0 11px !important;
    color: var(--sfmh-navy, #0f2447) !important;
    font-family: var(--sfmh-serif, Georgia, serif) !important;
    font-size: clamp(40px, 4.4vw, 60px) !important;
    line-height: 1.01 !important;
    font-weight: 700 !important;
    letter-spacing: -.028em !important;
}
.sfmh-single__hero .sfmh-parent {
    margin: 0 0 14px;
    color: #6e6253;
    font-size: 15px;
}
.sfmh-single__hero .sfmh-tags--single {
    min-height: 0;
    margin: 15px 0 0;
}

@media (max-width: 700px) {
    .sfmh-archive__header.sfmh-page-title,
    .sfmh-single__hero.sfmh-page-title {
        padding: 24px 20px 23px;
    }
    .sfmh-page-title:after {
        right: -190px;
        bottom: -175px;
    }
    .sfmh-archive__header .sfmh-archive__title,
    .sfmh-single__hero .sfmh-single__header h1 {
        font-size: 36px !important;
    }
}

/* v0.6.4: match single-resource outer width to archive fluid gutters. */
.sfmh-single-wrap {
    width: 100%;
}
.sfmh-single {
    max-width: none;
}
@media (min-width: 1201px) {
    .sfmh-single-wrap {
        padding-left: 8%;
        padding-right: 8%;
    }
}
@media (min-width: 701px) and (max-width: 1200px) {
    .sfmh-single-wrap {
        padding-left: 5%;
        padding-right: 5%;
    }
}
@media (max-width: 700px) {
    .sfmh-single-wrap {
        padding-left: 18px;
        padding-right: 18px;
    }
}


/* v0.6.5: optional uploaded photo banner for archive and single-resource page titles. */
.sfmh-page-title.sfmh-page-title--has-image {
    background-color: var(--sfmh-cream, #FCFAF6);
    background-image:
        linear-gradient(90deg,
            rgba(252,250,246,.98) 0%,
            rgba(252,250,246,.96) 26%,
            rgba(252,250,246,.86) 42%,
            rgba(252,250,246,.56) 58%,
            rgba(252,250,246,.16) 74%,
            rgba(252,250,246,.02) 100%),
        var(--sfmh-banner-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.sfmh-page-title.sfmh-page-title--has-image:after {
    display: none;
}
.sfmh-page-title.sfmh-page-title--has-image .sfmh-page-title__inner,
.sfmh-single__hero.sfmh-page-title--has-image .sfmh-single__header {
    max-width: min(900px, 62%);
}
.sfmh-single__hero.sfmh-page-title--has-image > .sfmh-back {
    max-width: 62%;
}
@media (max-width: 900px) {
    .sfmh-page-title.sfmh-page-title--has-image {
        background-image:
            linear-gradient(90deg,
                rgba(252,250,246,.98) 0%,
                rgba(252,250,246,.95) 52%,
                rgba(252,250,246,.76) 74%,
                rgba(252,250,246,.38) 100%),
            var(--sfmh-banner-image);
        background-position: 62% center;
    }
    .sfmh-page-title.sfmh-page-title--has-image .sfmh-page-title__inner,
    .sfmh-single__hero.sfmh-page-title--has-image .sfmh-single__header,
    .sfmh-single__hero.sfmh-page-title--has-image > .sfmh-back {
        max-width: 78%;
    }
}
@media (max-width: 600px) {
    .sfmh-page-title.sfmh-page-title--has-image {
        background-image:
            linear-gradient(90deg, rgba(252,250,246,.97) 0%, rgba(252,250,246,.9) 100%),
            var(--sfmh-banner-image);
        background-position: center;
    }
    .sfmh-page-title.sfmh-page-title--has-image .sfmh-page-title__inner,
    .sfmh-single__hero.sfmh-page-title--has-image .sfmh-single__header,
    .sfmh-single__hero.sfmh-page-title--has-image > .sfmh-back {
        max-width: 100%;
    }
}


/* v0.6.6: compact mobile filter drawer. */
.sfmh-mobile-filter-toggle {
    display: none;
}

@media (max-width: 700px) {
    .sfmh-directory .sfmh-sidebar {
        position: static;
        padding: 14px;
        margin: 0 0 18px;
        border: 1px solid #ebe1ce;
        border-top: 3px solid var(--sfmh-navy, #0f2447);
        border-radius: 7px;
        background: #FCFAF6;
        box-shadow: none;
    }

    .sfmh-directory .sfmh-mobile-filter-toggle,
    .sfmh-directory .sfmh-mobile-filter-toggle:visited,
    .sfmh-directory .sfmh-mobile-filter-toggle:hover,
    .sfmh-directory .sfmh-mobile-filter-toggle:focus,
    .sfmh-directory .sfmh-mobile-filter-toggle:active {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        margin: 0 !important;
        padding: 9px 12px !important;
        border: 1px solid var(--sfmh-navy, #0f2447) !important;
        border-radius: 2px;
        background: #fff !important;
        color: var(--sfmh-navy, #0f2447) !important;
        font-family: inherit;
        font-size: 15px;
        line-height: 1;
        font-weight: 500;
        text-decoration: none !important;
        box-shadow: none !important;
        cursor: pointer;
    }

    .sfmh-directory .sfmh-mobile-filter-toggle:hover,
    .sfmh-directory .sfmh-mobile-filter-toggle:focus-visible {
        border-color: #26ACE2 !important;
        color: #26ACE2 !important;
        outline: none;
    }

    .sfmh-mobile-filter-toggle__icon {
        display: inline-flex;
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
    }
    .sfmh-mobile-filter-toggle__icon svg {
        width: 20px;
        height: 20px;
    }
    .sfmh-mobile-filter-toggle__count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        margin-left: 1px;
        border: 1px solid #ebe1ce;
        border-radius: 999px;
        background: #fff7ea;
        color: #26ACE2;
        font-size: 11px;
        line-height: 1;
        font-weight: 700;
    }
    .sfmh-mobile-filter-toggle__count[hidden] {
        display: none !important;
    }
    .sfmh-mobile-filter-toggle__chevron {
        width: 9px;
        height: 9px;
        margin-left: 2px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        transform-origin: center;
        transition: transform .18s ease;
    }
    .sfmh-sidebar.is-mobile-filter-open .sfmh-mobile-filter-toggle__chevron {
        transform: rotate(225deg) translate(-1px, -1px);
    }

    .sfmh-directory .sfmh-sidebar .sfmh-filters--sidebar {
        display: none;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #ebe1ce;
    }
    .sfmh-directory .sfmh-sidebar.is-mobile-filter-open .sfmh-filters--sidebar {
        display: block;
    }
    .sfmh-directory .sfmh-sidebar .sfmh-sidebar__head {
        display: none;
    }
    .sfmh-directory .sfmh-sidebar .sfmh-filter:last-child {
        margin-bottom: 0;
    }
}

/* v0.6.7: improved single-resource responsive layout and type scale. */
/* Single-resource links use the Stigma-Free blue palette. */
.sfmh-single .sfmh-single__content a,
.sfmh-single .sfmh-single__content a:visited,
.sfmh-single .sfmh-section a,
.sfmh-single .sfmh-section a:visited,
.sfmh-single .sfmh-program a,
.sfmh-single .sfmh-program a:visited {
    color: var(--sfmh-navy, #0D537F) !important;
}
.sfmh-single .sfmh-single__content a:hover,
.sfmh-single .sfmh-single__content a:focus,
.sfmh-single .sfmh-section a:hover,
.sfmh-single .sfmh-section a:focus,
.sfmh-single .sfmh-program a:hover,
.sfmh-single .sfmh-program a:focus {
    color: var(--sfmh-blue, #26ACE2) !important;
}

@media (max-width: 1000px) {
    .sfmh-single__grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 28px !important;
        padding-top: 30px !important;
    }
    .sfmh-contact-card {
        position: static !important;
        width: 100%;
        max-width: none;
    }
    .sfmh-single__content {
        font-size: 16px !important;
        line-height: 1.65 !important;
    }
    .sfmh-program,
    .sfmh-section p {
        font-size: 16px !important;
    }
    .sfmh-detail span,
    .sfmh-detail a,
    .sfmh-detail a:visited {
        font-size: 15px !important;
    }
    .sfmh-section h2,
    .sfmh-contact-card h2 {
        font-size: 24px !important;
        line-height: 1.15 !important;
    }
}

@media (max-width: 700px) {
    .sfmh-single-wrap {
        padding-top: 26px !important;
        padding-bottom: 46px !important;
    }
    .sfmh-single__hero.sfmh-page-title {
        padding: 20px 18px 19px !important;
    }
    .sfmh-single .sfmh-back {
        margin-bottom: 14px !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
    }
    .sfmh-single__eyebrow {
        margin-bottom: 6px !important;
        font-size: 10px !important;
        letter-spacing: .1em !important;
    }
    .sfmh-single__hero .sfmh-single__header h1 {
        margin-bottom: 9px !important;
        font-size: clamp(30px, 9vw, 34px) !important;
        line-height: 1.02 !important;
        letter-spacing: -.022em !important;
    }
    .sfmh-single__hero .sfmh-parent {
        margin-bottom: 10px !important;
        font-size: 13px !important;
    }
    .sfmh-single__hero .sfmh-tags--single {
        margin-top: 11px !important;
        gap: 6px !important;
    }
    .sfmh-single .sfmh-badge {
        min-height: 24px !important;
        padding: 4px 8px !important;
        gap: 4px !important;
        font-size: 10px !important;
    }
    .sfmh-single .sfmh-badge .sfmh-tag__icon {
        width: 13px !important;
        height: 13px !important;
        flex-basis: 13px !important;
    }
    .sfmh-single .sfmh-badge .sfmh-tag__icon svg {
        width: 12px !important;
        height: 12px !important;
    }
    .sfmh-single__grid {
        gap: 24px !important;
        padding-top: 24px !important;
    }
    .sfmh-section {
        padding: 21px 0 !important;
    }
    .sfmh-section h2,
    .sfmh-contact-card h2 {
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
        font-size: 22px !important;
        line-height: 1.12 !important;
    }
    .sfmh-section h2:after,
    .sfmh-contact-card h2:after {
        width: 34px !important;
        height: 3px !important;
    }
    .sfmh-single__content,
    .sfmh-program,
    .sfmh-section p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    .sfmh-program {
        padding: 11px 13px !important;
    }
    .sfmh-contact-card {
        padding: 20px !important;
    }
    .sfmh-detail {
        gap: 5px !important;
        padding: 12px 0 !important;
    }
    .sfmh-detail strong {
        font-size: 9px !important;
        letter-spacing: .08em !important;
    }
    .sfmh-detail span,
    .sfmh-detail a,
    .sfmh-detail a:visited {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }
}

@media (max-width: 420px) {
    .sfmh-single-wrap {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .sfmh-single__hero.sfmh-page-title {
        padding: 18px 16px 17px !important;
    }
    .sfmh-single__hero .sfmh-single__header h1 {
        font-size: 30px !important;
    }
    .sfmh-section h2,
    .sfmh-contact-card h2 {
        font-size: 21px !important;
    }
    .sfmh-contact-card {
        padding: 18px !important;
    }
}

/* v0.6.8: taxonomy archive base filters are fixed context, not removable selections. */
.sfmh-directory input[data-sfmh-fixed-filter] {
    cursor: default !important;
}
.sfmh-directory .sfmh-active-chip--fixed {
    padding-right: 10px;
}
.sfmh-directory input[data-sfmh-fixed-filter][disabled] {
    opacity: 1 !important;
}

/* 1.0 beta: theme/Elementor integration and beta notice. */
.sfmh-directory,
.sfmh-single,
.sfmh-archive-wrap,
.sfmh-beta-notice {
    font-family: inherit;
}

.elementor .sfmh-directory,
.elementor .sfmh-single {
    width: 100%;
    max-width: none;
}

.sfmh-beta-notice {
    --sfmh-beta-navy: #0f2447;
    --sfmh-beta-yellow: #FBB718;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    max-width: var(--sfmh-content-width, 1375px);
    margin: 0 auto 24px;
    padding: 16px 18px;
    border: 1px solid #eadcad;
    border-left: 4px solid var(--sfmh-beta-yellow);
    border-radius: 8px;
    background: #fffaf0;
    color: #263548;
    box-sizing: border-box;
}
.sfmh-beta-notice__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--sfmh-beta-yellow);
    color: var(--sfmh-beta-navy);
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.sfmh-beta-notice__content {
    min-width: 0;
}
.sfmh-beta-notice__title {
    display: block;
    margin: 1px 0 4px;
    color: var(--sfmh-beta-navy);
    font-size: 15px;
    line-height: 1.3;
}
.sfmh-beta-notice p {
    margin: 0;
    color: #4a5565;
    font-size: 14px;
    line-height: 1.55;
}
.sfmh-beta-notice a,
.sfmh-beta-notice a:visited {
    display: inline-flex;
    margin-top: 7px;
    color: var(--sfmh-beta-blue) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}
.sfmh-beta-notice a:hover,
.sfmh-beta-notice a:focus {
    text-decoration: underline !important;
}
.sfmh-archive-wrap > .sfmh-beta-notice {
    max-width: none;
}

@media (max-width: 700px) {
    .sfmh-beta-notice {
        gap: 10px;
        padding: 14px;
    }
}

/* Prefer the active Elementor global heading font when available, while retaining the Rural-compatible serif fallback. */
.sfmh-directory,
.sfmh-single,
.sfmh-archive-wrap {
    --sfmh-serif: var(--e-global-typography-primary-font-family, Georgia, "Times New Roman", serif);
}


/* 1.0.0-beta.3: Stigma-Free main-site palette and Elementor-safe controls. */
.sfmh-directory,
.sfmh-single,
.sfmh-archive-wrap {
    --sfmh-navy: #0D537F;
    --sfmh-blue: #26ACE2;
    --sfmh-blue-soft: #EAF7FC;
    --sfmh-blue-border: #CFE4EE;
    --sfmh-border: #D8E5EC;
    --sfmh-muted: #5A6B77;
    --sfmh-soft: #F7FBFD;
    --sfmh-cream: #FCFAF6;
    --sfmh-warm-border: #D8E5EC;
    --sfmh-yellow: #FBB718;
    color: #263846;
}

/* Structural typography and interactive colour now follow the Society palette. */
.sfmh-directory .sfmh-results-count strong,
.sfmh-directory .sfmh-card__title,
.sfmh-directory .sfmh-card__title a,
.sfmh-single .sfmh-single__header h1,
.sfmh-single .sfmh-section h2,
.sfmh-single .sfmh-contact-card h2,
.sfmh-single .sfmh-back,
.sfmh-archive-wrap .sfmh-page-title h1 {
    color: var(--sfmh-navy) !important;
}

.sfmh-directory .sfmh-search input:focus,
.sfmh-directory .sfmh-filter summary:focus,
.sfmh-directory .sfmh-filter[open] > summary {
    border-color: var(--sfmh-blue) !important;
    box-shadow: 0 0 0 2px rgba(38,172,226,.12) !important;
    outline: 0 !important;
}

.sfmh-filters--sidebar .sfmh-filter[open] > summary {
    border-left-color: var(--sfmh-yellow) !important;
    color: var(--sfmh-navy) !important;
}

.sfmh-filters--sidebar .sfmh-filter summary:hover,
.sfmh-filters--sidebar .sfmh-filter summary:focus {
    color: var(--sfmh-navy) !important;
    background: var(--sfmh-blue-soft) !important;
}

.sfmh-filter__count,
.sfmh-clear,
.sfmh-clear:visited {
    color: var(--sfmh-navy) !important;
}
.sfmh-clear:hover,
.sfmh-clear:focus {
    color: var(--sfmh-blue) !important;
}

.sfmh-check:hover {
    background: var(--sfmh-blue-soft) !important;
}

.sfmh-directory input[type="checkbox"]:checked {
    accent-color: var(--sfmh-blue);
}

.sfmh-card {
    border-color: var(--sfmh-blue-border) !important;
}
.sfmh-card:hover {
    border-color: #9CCFE4 !important;
    box-shadow: 0 8px 20px rgba(13,83,127,.08) !important;
}
.sfmh-card__title a:hover,
.sfmh-card__title a:focus,
.sfmh-meta-line a:hover,
.sfmh-meta-line a:focus {
    color: var(--sfmh-blue) !important;
}
.sfmh-meta-icon {
    color: var(--sfmh-navy) !important;
}

.sfmh-directory a.sfmh-card__button,
.sfmh-directory a.sfmh-card__button:visited,
.sfmh-archive-wrap a.sfmh-card__button,
.sfmh-archive-wrap a.sfmh-card__button:visited {
    border-color: var(--sfmh-navy) !important;
    color: var(--sfmh-navy) !important;
    background: #fff !important;
}
.sfmh-directory a.sfmh-card__button:hover,
.sfmh-directory a.sfmh-card__button:focus,
.sfmh-directory a.sfmh-card__button:active,
.sfmh-directory a.sfmh-card__button:visited:hover,
.sfmh-directory a.sfmh-card__button:visited:focus,
.sfmh-archive-wrap a.sfmh-card__button:hover,
.sfmh-archive-wrap a.sfmh-card__button:focus,
.sfmh-archive-wrap a.sfmh-card__button:active,
.sfmh-archive-wrap a.sfmh-card__button:visited:hover,
.sfmh-archive-wrap a.sfmh-card__button:visited:focus {
    border-color: var(--sfmh-blue) !important;
    background: var(--sfmh-blue) !important;
    color: #fff !important;
}

.sfmh-load-more {
    border-color: var(--sfmh-blue) !important;
    color: var(--sfmh-navy) !important;
    background: #fff !important;
}
.sfmh-load-more:hover,
.sfmh-load-more:focus {
    border-color: var(--sfmh-blue) !important;
    background: var(--sfmh-blue) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(38,172,226,.2) !important;
}

/* This is deliberately not a button so Elementor/theme button rules cannot restyle it. */
.sfmh-directory .sfmh-tag--more,
.sfmh-archive-wrap .sfmh-tag--more {
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 25px !important;
    margin: 0 !important;
    padding: 4px 9px !important;
    border: 1px solid var(--sfmh-blue-border) !important;
    border-radius: 999px !important;
    background: #F3F8FB !important;
    color: var(--sfmh-navy) !important;
    font-family: inherit !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
}
.sfmh-directory .sfmh-tag--more:hover,
.sfmh-directory .sfmh-tag--more:focus-visible,
.sfmh-archive-wrap .sfmh-tag--more:hover,
.sfmh-archive-wrap .sfmh-tag--more:focus-visible {
    border-color: var(--sfmh-blue) !important;
    background: var(--sfmh-blue-soft) !important;
    color: var(--sfmh-navy) !important;
    outline: 2px solid transparent !important;
    box-shadow: 0 0 0 2px rgba(38,172,226,.18) !important;
}

/* Keep yellow as a small shared accent rather than a primary interaction colour. */
.sfmh-section h2:after,
.sfmh-contact-card h2:after,
.sfmh-page-title__eyebrow:after,
.sfmh-filter-title:after {
    background: var(--sfmh-yellow) !important;
}

.sfmh-single__hero,
.sfmh-page-title {
    border-color: var(--sfmh-blue-border) !important;
    border-left-color: var(--sfmh-yellow) !important;
}
.sfmh-contact-card,
.sfmh-program {
    border-color: var(--sfmh-blue-border) !important;
}
.sfmh-contact-card {
    background: #F8FBFD !important;
}

/* Beta stays visually distinct, but now belongs to the main-site palette. */
.sfmh-beta-notice {
    --sfmh-beta-navy: #0D537F;
    --sfmh-beta-blue: #26ACE2;
    --sfmh-beta-yellow: #FBB718;
    border-color: #CFE4EE;
    border-left-color: var(--sfmh-beta-blue);
    background: #F7FBFD;
}
.sfmh-beta-notice__title {
    color: var(--sfmh-beta-navy) !important;
}
.sfmh-beta-notice a,
.sfmh-beta-notice a:visited {
    color: var(--sfmh-beta-navy) !important;
}
.sfmh-beta-notice a:hover,
.sfmh-beta-notice a:focus {
    color: var(--sfmh-beta-blue) !important;
}

/* Removal controls follow the same Stigma-Free interaction palette. */
.sfmh-active-chip .sfmh-active-chip__remove,
.sfmh-active-chip .sfmh-active-chip__remove:hover,
.sfmh-active-chip .sfmh-active-chip__remove:focus {
    color: var(--sfmh-blue) !important;
}

/* Complete the blue interaction pass for custom controls and title microcopy. */
.sfmh-directory .sfmh-check input[type="checkbox"]:checked {
    border-color: var(--sfmh-blue) !important;
    background-color: var(--sfmh-blue) !important;
}
.sfmh-directory .sfmh-check input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 3px rgba(38,172,226,.18) !important;
}
.sfmh-directory .sfmh-mobile-filter-toggle:hover,
.sfmh-directory .sfmh-mobile-filter-toggle:focus-visible {
    border-color: var(--sfmh-blue) !important;
    color: var(--sfmh-navy) !important;
}
.sfmh-directory .sfmh-mobile-filter-toggle__count {
    border-color: var(--sfmh-blue-border) !important;
    background: var(--sfmh-blue-soft) !important;
    color: var(--sfmh-navy) !important;
}
.sfmh-page-title__eyebrow {
    color: var(--sfmh-navy) !important;
}
.sfmh-page-title__back:hover,
.sfmh-page-title__back:focus,
.sfmh-page-title__back:visited:hover,
.sfmh-page-title__back:visited:focus,
.sfmh-single .sfmh-back:hover,
.sfmh-single .sfmh-back:focus {
    color: var(--sfmh-blue) !important;
}

/* 1.0.0-beta.4: quieter accordion open state. Open is not the same as focus. */
.sfmh-directory .sfmh-filter[open] > summary,
.sfmh-filters--sidebar .sfmh-filter[open] > summary {
    border-color: var(--sfmh-blue-border) !important;
    border-left: 3px solid var(--sfmh-blue) !important;
    padding-left: 12px !important;
    background: #F7FBFD !important;
    color: var(--sfmh-navy) !important;
    box-shadow: none !important;
    outline: 0 !important;
}

/* Do not leave a permanent theme-style focus ring after clicking an accordion. */
.sfmh-directory .sfmh-filter summary:focus {
    border-color: var(--sfmh-blue-border) !important;
    box-shadow: none !important;
    outline: 0 !important;
}

/* Preserve a clear focus indication for keyboard navigation only. */
.sfmh-directory .sfmh-filter summary:focus-visible {
    border-color: var(--sfmh-blue) !important;
    box-shadow: 0 0 0 2px rgba(38,172,226,.16) !important;
    outline: 0 !important;
}

/* 1.0.0-beta.5: single resources use the site's existing Elementor page title. */
.sfmh-single-wrap {
    padding-top: 24px !important;
}
.sfmh-single__summary {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 30px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--sfmh-border);
    background: transparent;
}
.sfmh-single__summary-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
}
.sfmh-single__summary .sfmh-back {
    margin: 0 !important;
    color: var(--sfmh-navy) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}
.sfmh-single__summary .sfmh-back:hover,
.sfmh-single__summary .sfmh-back:focus {
    color: var(--sfmh-blue) !important;
}
.sfmh-single__summary .sfmh-parent {
    margin: 0 !important;
    color: var(--sfmh-muted) !important;
    font-size: 13px !important;
}
.sfmh-single__summary .sfmh-tags--single {
    margin: 0 !important;
    min-height: 0 !important;
    gap: 7px !important;
}
.sfmh-single__grid {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) !important;
    gap: clamp(30px, 4vw, 54px) !important;
    padding-top: 0 !important;
}
.sfmh-single__main > .sfmh-section:first-of-type,
.sfmh-single__main > .sfmh-single__content + .sfmh-section {
    padding-top: 0;
}
.sfmh-contact-card {
    border-color: var(--sfmh-blue-border) !important;
    border-top: 3px solid var(--sfmh-blue) !important;
    background: var(--sfmh-soft) !important;
    box-shadow: none !important;
}
.sfmh-contact-card h2 {
    font-size: 23px !important;
}
.sfmh-detail strong {
    color: var(--sfmh-navy) !important;
}
.sfmh-detail a,
.sfmh-detail a:visited {
    color: var(--sfmh-navy) !important;
}
.sfmh-detail a:hover,
.sfmh-detail a:focus {
    color: var(--sfmh-blue) !important;
}
@media (max-width: 1000px) {
    .sfmh-single__grid {
        grid-template-columns: 1fr !important;
    }
    .sfmh-contact-card {
        max-width: none !important;
    }
}
@media (max-width: 700px) {
    .sfmh-single-wrap {
        padding-top: 18px !important;
    }
    .sfmh-single__summary {
        gap: 12px;
        margin-bottom: 22px;
        padding-bottom: 16px;
    }
    .sfmh-single__summary-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
    .sfmh-single__summary .sfmh-back,
    .sfmh-single__summary .sfmh-parent {
        font-size: 12px !important;
    }
}


/* 1.0.0-beta.6: Elementor owns all outer spacing on single-resource content. */
.sfmh-single-wrap {
    padding: 0 !important;
}
@media (max-width: 700px) {
    .sfmh-single-wrap {
        padding: 0 !important;
    }
}
