/**
 * Charity organizations — public directory & detail (memorial donations).
 * Admin CRUD styles: css/admin/charity-organizations.css (not loaded on public pages).
 */

/* -------------------------------------------------------------------------
   Directory (index)
   ------------------------------------------------------------------------- */

/*
 * Top banner — same layout as obituaries browse (search/pages/browse.blade.php):
 * .banner-planning + .image-bg-banner with /img/Memoria-Page-Search.png + diagonal SVG.
 */
.charity-directory-browse-page .charity-directory-banner-planning.banner-planning {
    background: #f5f5f5 !important;
    border: 0 !important;
    border-bottom: none !important;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: center;
    margin-top: 0 !important;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}
.image-bg-banner-mobile{
    display: none !important;
}


.charity-show-ds.l-ungutter{
margin-bottom: 20px;
}

@media (min-width: 1024px) {
    .charity-directory-browse-page .charity-directory-banner-planning.banner-planning {
        height: 340px !important;
    }
}

.charity-directory-browse-page .banner-image-container {
    position: relative;
    padding-left: 30px;
    width: 100%;
    min-height: 200px;
    flex: 1;
    display: flex;
    align-items: center;
}

.charity-directory-browse-page .image-bg-banner.charity-directory-image-bg-banner {
    background-color: #77386b;
    position: absolute;
    right: 45.5%;
    bottom: 0;
    height: 100%;
    left: initial;
    margin: 0 -43vw 0 0;
    background-position: center center;
    width: calc((99vw - 100%) / 2 + 42%);
    background-image: url(/img/lifestories.png);
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

@media (max-width: 767px) {
    .charity-show-ds.l-ungutter{
        margin-bottom: 10px !important;
    }
    .bread-crums{
        display: none !important;
    }
    .banner-ein{
        margin-bottom:0px !important;
    }
    .charity-show-page.charity-storefront-main{
        padding-bottom: 0.5rem !important;
    }
    .landingToolsHeading__subtitle p {
        font-size: 14px;
    }
    .charity-directory-results-bg .life-story-list-subtitle, .charity-directory-results-bg .charity-directory-list-subtitle{
        font-size: 14px !important;
    }
}

.charity-directory-browse-page .landingToolsHeading__path {
    position: absolute;
    z-index: 1;
    display: flex;
    height: 100%;
    width: 100%;
}

.charity-directory-browse-page .landingToolsHeading__pathDesktop {
    height: 100%;
}

@media (min-width: 1024px) {
    .charity-directory-browse-page .landingToolsHeading__pathMobile {
        display: none;
    }
}

.charity-directory-browse-page .landingToolsHeading__pathMobile {
    margin-top: auto;
    width: 100%;
}

.charity-directory-browse-page .planning-banner-content.content {
    position: relative;
    z-index: 2;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

@media (min-width: 1200px) {
    .charity-directory-browse-page .planning-banner-content.content {
        width: 56%;
        padding-left: 25px;
    }
}

.charity-directory-browse-page .charity-directory-hero-heading.heading-business-obituaries {
    font-size: 52px;
    line-height: 1.05 !important;
    color: #77386b;
}

@media (max-width: 575px) {
    .charity-directory-browse-page .charity-directory-hero-heading.heading-business-obituaries {
        font-size: 32px;
        line-height: 1.2 !important;
    }

    .charity-directory-browse-page .banner-image-container {
        padding-left: 15px;
    }
}

@media (max-width: 767px) {
    .charity-directory-browse-page .image-bg-banner.charity-directory-image-bg-banner {
        display: none !important;
    }
    .image-bg-banner-mobile{
        display: block !important;
    }

    .charity-directory-browse-page .charity-directory-banner-planning.banner-planning {
        height: auto !important;
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
        margin-top: 16px !important;
    }

    .charity-directory-browse-page .banner-image-container{
        min-height: 130px !important;
    }
}

.charity-directory-results-bg {
    background: #fff;
    margin-top: 25px;
    padding-bottom: 2rem;
}

.charity-directory-results-bg .life-story-list-title {
    font-size: 20px;
    color: #77386b;
}

.charity-directory-results-bg .life-story-list-subtitle,
.charity-directory-results-bg .charity-directory-list-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: #414042;
}

/* Toolbar: same 3-up pattern as Life Stories browse (name | city/state | sort) */
.charity-directory-filters {
    --cd-control-h: 48px;
    /* Placeholder / default label tone — soft gray, not full body text */
    --cd-placeholder: #414042;
    /* Typed or committed value */
    --cd-value: #414042;
}

.charity-directory-filters .charity-directory-filters-row {
    margin: 0;
}

/* City/state — value dark; placeholder soft gray (match first field) */
.charity-directory-filters .charity-directory-input-citystate {
    width: 100%;
    min-height: var(--cd-control-h) !important;
    height: var(--cd-control-h) !important;
    max-height: var(--cd-control-h) !important;
    line-height: normal;
    font-size: 14px;
    font-weight: 400;
    color: var(--cd-value);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 0 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.charity-directory-filters .charity-directory-input-citystate::placeholder,
.charity-directory-filters .charity-directory-input-citystate::-webkit-input-placeholder {
    color: var(--cd-placeholder);
    opacity: 1;
    font-weight: 400;
}

/* Search box shell — no extra vertical padding so height matches select */
.charity-directory-filters .charity-banner-search.charity-banner-search--directory-filters {
    min-height: var(--cd-control-h) !important;
    height: var(--cd-control-h) !important;
    max-height: var(--cd-control-h) !important;
    margin: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
   
}

.charity-directory-filters .charity-banner-search--directory-filters .charity-banner-search__input.form-control {
    min-height: var(--cd-control-h) !important;
    height: var(--cd-control-h) !important;
    max-height: var(--cd-control-h) !important;
    line-height: var(--cd-control-h) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 14px;
    font-weight: 400;
    border-radius: 10px;
    color: var(--cd-value);
}



/* Select: same height + wider */
.charity-directory-filters .charity-directory-sort-select,
.charity-directory-filters .charity-directory-sort-select.form-control {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: var(--cd-control-h) !important;
    min-height: var(--cd-control-h) !important;
    max-height: var(--cd-control-h) !important;
    line-height: normal;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 14px;
    font-weight: 400;
    /* Same soft default as placeholder text (Sort by / empty state) */
    color: var(--cd-placeholder);
    background-color: #fff;
    padding: 0 32px 0 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Chevron matches placeholder tone */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a8a8a' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    vertical-align: middle;
    border-radius: 10px;
}

.charity-directory-filters .charity-directory-sort-select option {
    color: var(--cd-value);
    font-weight: 400;
    font-size: 14px;
    background-color: #fff;
}

@media (min-width: 576px) {
    .charity-directory-filters .charity-directory-filters__sort {
        min-width: 0;
    }
    .charity-directory-filters .charity-directory-sort-select,
    .charity-directory-filters .charity-directory-sort-select.form-control {
        width: 100%;
        min-width: 0;
    }
}

.charity-market-grid.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s;
}

.charity-directory-filters .charity-banner-search__clear-wrap {
    text-align: left;
    margin-top: 10px;
}

.results-main-wrapper.container-fluid.custom-max-width {
    padding-top: 0.5rem;
    padding-bottom: 2rem;
}

/* Full-width hero (match marketplace search-banner; no location row) */
.charity-breadcrumb--directory {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: transparent;
    padding: 15px 0;
    margin-bottom: 0;
    font-size: 14px;
}
.bg-texture-purple-light{
    background: #f5f5f5;
    border-radius: 10px;
}

.charity-directory-banner__title {
    line-height: 52px;
    font-size: 52px;
    font-weight: 400;
}

.charity-directory-banner__subtitle {
    color: #414042;
    font-weight: 300;
    font-size: 16px;
    /* line-height: 1.5; */
    /* max-width: 40rem; */
    /* margin-left: auto; */
    /* margin-right: auto; */
    /* margin-bottom: 1.25rem; */
    font-size: 20px;
}

.charity-directory-banner__search-inner {
    max-width: 450px;
}

.charity-filters.charity-filters--banner {
    margin-top: 0;
    display: block;
    width: 100%;
}

.charity-banner-search {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 48px;
    background: #fff;
    
}

.charity-banner-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #000;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
    width: 24px;
    text-align: center;
}

.charity-banner-search .charity-banner-search__input.form-control {
    flex: 1 1 auto;
    min-width: 0;
    box-shadow: none !important;
    min-height: 36px;
    height: 36px !important;
    padding-left: 44px !important;
    padding-right: 10px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 36px;
    background: transparent !important;
}

.charity-banner-search .charity-banner-search__submit.btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    min-height: 36px;
    height: 36px !important;
    padding: 0 1rem !important;
    margin-left: 4px;
    margin-right: 0;
    border-radius: 6px !important;
    line-height: 1;
}

.charity-banner-search__clear-wrap {
    margin-top: 12px;
    text-align: center;
}

.results-main-wrapper.container.custom-max-width {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

@media (max-width: 575.98px) {
    .charity-directory-banner__search-inner {
        max-width: 100%;
    }

    .charity-banner-search__input {
        min-width: 0;
    }

    .charity-banner-search__submit {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }
}

.charity-directory-page .lead-muted {
    color: #666;
    font-weight: 300;
    font-size: 15px;
}

.charity-market-grid {
    margin-top: 24px;
}

/* Match marketplace horizontal gutters (avoid store-front.css tightening vendorItemCol to 15px here) */
.charity-directory-page .charity-market-grid.vendorsResultsHolder .vendorItemCol,
.charity-show-dsRelated .charity-market-grid.vendorsResultsHolder .vendorItemCol {
    padding-left: 22px;
    padding-right: 22px;
    border-radius: 8px;
}

/* Logos: fill the same fixed image frame but keep mark readable (marketplace uses photo cover) */
.vendorsResultsHolder .charity-org-listing-card .charity-org-listing-card__logo {
   /*  object-fit: contain !important;
    object-position: center;
    padding: 12px; */
    background: #fff;
}

.vendorsResultsHolder .charity-org-listing-card .charity-org-listing-card__placeholder {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 400;
    color: #77386b;
    background: linear-gradient(160deg, #ece6f0 0%, #ddd5e8 100%);
    margin: 0;
}

.vendorsResultsHolder .charity-org-listing-card .charity-org-listing-card__title,
.vendorsResultsHolder .charity-org-listing-card .charity-org-listing-card__title a.link--inherit {
    font-size: 14px !important;
    line-height: 1.35;
    color: #414042 !important;
    font-weight: 600;
    margin-left: 0px !important;
    height: 40px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 400;
}

.vendorsResultsHolder .charity-org-listing-card .charity-org-listing-card__meta {
    font-size: 14px;
    line-height: 1.2;
    color: #414042;
    font-size: .875rem;
    
}

.vendorsResultsHolder .charity-org-listing-card .charity-org-listing-card__loc {
    display: block;
    margin: 0;
    padding: 0;
    color: #414042;
}

.vendorsResultsHolder .charity-org-listing-card .charity-org-listing-card__tags {
    display: block;
    margin: 4px 0 0;
    padding: 0;
    opacity: 0.92;
    color: #414042 !important;
    font-size: 12px;
    height: 14px;
    overflow: hidden;

}

/* .vendorsResultsHolder .charity-org-listing-card .card-img-top.border-image {
    object-fit: contain !important;
}
 */

.charity-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.charity-filters__search-line {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    flex: 1 1 220px;
    min-width: 0;
}

.charity-filters__search-line .form-control {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
}

.charity-filters__search-line .btn-success {
    flex-shrink: 0;
    white-space: nowrap;
}

.charity-load-more-holder {
    margin-top: 16px;
    padding-right: 5px;
}

.charity-load-more-holder .charity-load-more-icon {
    vertical-align: bottom;
    width: 15px;
}

#charity-load-more-btn[disabled] {
    opacity: 0.65;
    cursor: wait;
}

@media (min-width: 576px) {
    .charity-filters__search-line .form-control {
        max-width: 280px;
    }
}

@media (max-width: 575.98px) {
    .charity-directory-page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .charity-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .charity-filters__search-line {
        flex: none;
        width: 100%;
    }

    .charity-filters .btn-default {
        align-self: flex-start;
    }
}

/* -------------------------------------------------------------------------
   Detail (show) — WWP-style layout, Memoria Sky purple CTAs
   ------------------------------------------------------------------------- */

/* Body route name slug(Route::currentRouteName()) → e.g. charitiesshow */
#app-layout.charitiesshow main.site-main {
    background: #fff;
}

.charity-show-ds {
    background: #fff;
    padding-bottom: 0.5rem;
}

/* .charity-show-ds__inner,
.charity-show-dsBody .charity-show-ds__inner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
} */

.charity-show-hero-ds {
    background: #fff;
    /* border: 1px solid #e3e5e8; */
    /* border-radius: 12px; */
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    /* overflow: hidden; */
}

.charity-show-hero-ds__main {
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .charity-show-hero-ds__main {
        padding: 2.5rem 2rem;
    }
}

.charity-show-hero-ds__logoBox {
    width: 160px;
    height: 160px;
    max-width: 100%;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px #00000026;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .charity-show-hero-ds__logoBox {
        width: 200px;
        height: 200px;
    }
}

.charity-show-hero-ds__logo {
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.charity-show-hero-ds__logo--ph {
    font-size: 2.75rem;
    font-weight: 500;
    color: #77386b;
    background: #faf5fb;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}
.banner-info{
    padding-top: 20px;
    padding-left: 32px;
}

.charity-show-hero-ds__name {
    font-weight: 400;
    font-size:20px;
    color: #77386b;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
}

@media (min-width: 768px) {
    .charity-show-hero-ds__name {
        font-size: 1.75rem;
        font-weight: 400;
    }
}

.charity-show-hero-ds__lead {
    color: #414042;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1.1rem;
    max-width: 40rem;
}

.charity-show-hero-ds__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.charity-show-hero-ds__actions .btn-success.charity-show-hero-ds__btnDonate {
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
}

/* Overview strip in left column (WWP) — full-width card, no bar under hero */
.charity-show-dsQuickFacts {
    background: #fff;
    border: 1px solid #e3e5e8;
   /*  border-radius: 10px; */
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    /* margin-bottom: 1.1rem; */
    overflow: hidden;
}

.charity-show-dsQuickFacts .charity-show-hero-ds__bar {
    border-top: none;
    background: #fff;
}

/* Ghost secondary — white + gray border (ref “Browse”) */
.charity-show-dsBtnGhost {
    display: inline-block;
    background: #fff;
    color: #414042;
    border: 1px solid #c5cad3 !important;
    font-weight: 500;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    line-height: 1.4;
    text-align: center;
    transition: background 0.15s, border-color 0.15s, color 0.15s;

    background: #f9fafb;
    border-color: #9ca3af;
    color: #1f2937;
    text-decoration: none;
}
/* 
.charity-show-dsBtnGhost:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #1f2937;
    text-decoration: none;
} */

/* Facts bar — horizontal strip + vertical rules (WWP) */
.charity-show-hero-ds__bar {
    display: flex;
    flex-wrap: wrap;
    background: #fafbfc;
    border-top: 1px solid #e5e7eb;
}

.charity-show-hero-ds__barCell {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1rem 1rem;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
}

.charity-show-hero-ds__barCell:nth-child(2n) {
    border-right: none;
}

@media (min-width: 768px) {
    .charity-show-hero-ds__bar {
        flex-wrap: nowrap;
    }
    .charity-show-hero-ds__barCell {
        flex: 1 1 0;
        border-bottom: none;
        border-right: 1px solid #e5e7eb;
        padding: 1.1rem 1.25rem;
    }
    .charity-show-hero-ds__barCell:last-child {
        border-right: none;
    }
}

.charity-show-hero-ds__barIcon {
    font-size: 22px;
    color: #6b7280;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.charity-show-hero-ds__barKey {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
    margin-bottom: 0.2rem;
}

.charity-show-hero-ds__barVal {
    display: block;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.3;
    word-break: break-word;
}

a.charity-show-hero-ds__barLink {
    font-size: 0.95rem;
    font-weight: 400;
    color: #a8559a;
    text-decoration: none;
}

a.charity-show-hero-ds__barLink:hover {
    text-decoration: underline;
    color: #77386b;
}

/* Main + sidebar */
.charity-show-dsBody {
    background: #fff;
    padding-top: 0;
    padding-bottom: 3rem;
}

.charity-show-dsBody .charity-show-main,
.charity-show-dsBody .charity-show-aside {
    min-width: 0;
}

.charity-show-ds__inner .charity-breadcrumb{
padding-left: 0 !important;
}

/* Content panels (left) */
.charity-show-dsPanel {
    background: #fff;
    /* border: 1px solid #e5e7eb; */
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    padding: 1.7rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px #00000026;
}

.charity-show-dsPanel--tight {
    padding: 1.15rem 1.2rem;
}

.charity-show-dsPanel--last {
    margin-bottom: 0;
}

.charity-show-dsPanel__h {
    font-size: 1.125rem;
    font-weight: 400;
    color: #77386b;
    margin: 0 0 0.9rem 0;
    letter-spacing: -0.01em;
}

.charity-show-dsPanel__h--sm {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: #77386b;
}

/* Below lg stacked layout: hide hero title; show org name on Organization Details card */
.charity-show-details-heading__orgname {
    display: none;
}

@media (max-width: 991.98px) {
    .charity-show-ds .charity-show-hero-ds__name--relocate-mobile {
        display: none !important;
    }

    .charity-show-details-heading__label {
        display: none !important;
    }

    .charity-show-details-heading__orgname {
        display: block !important;
    }
}

.charity-show-dsPanel__body {
    color: #414042;
}

.charity-show-dsPanel__rowHead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #f0f0f0;
}

.charity-show-dsPanel__more {
    font-size: 0.9rem;
    font-weight: 300;
    color: #77386b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.charity-show-dsPanel__more:hover {
    text-decoration: underline;
    color: #5a2a52;
}

.charity-show-dsPanel__more .material-symbols-outlined {
    font-size: 1.1rem;
}

.charity-show-dsProse {
    line-height: 1.65;
    font-size: 15px;
    font-weight: 300;
    margin: 0
}

.charity-show-dsProse--muted {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Focus tags (pill, neutral) */
.charity-show-dsTags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.5rem;
}

.charity-show-dsTag {
    display: inline-block;
    background: #fafafa;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 300;
    display: inline-block;
    background: #fafafa;
    color: #414042;
    padding: 5px;
    border-radius: 5px;
    font-weight: 300;
    margin-right: 5px;
    margin-bottom: 3px;
    font-size: 14px;
}

/* Related charities — header + same grid cards as directory listing */
.charity-show-dsRelated .charity-show-dsPanel__more {
    flex-shrink: 0;
}

.charity-show-dsRelated__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0;
}

.charity-show-dsRelated__titleBlock {
    font-size: 1.125rem;
    font-weight: 400;
    color: #77386b;
}

.charity-show-dsRelated__headIcon {
    font-size: 1.5rem;
    color: #6b7280;
    line-height: 1;
}

.charity-show-dsRelated__title {
    font-size: 1.125rem;
    font-weight: 400;
    color: #77386b;
    margin: 0;
    letter-spacing: -0.01em;
}

.charity-show-dsRelated__hr {
    height: 0;
    margin: 0.65rem 0 0.9rem;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

/* Same card grid as charity directory listing (marketplace-style cards) */
.charity-show-dsRelated__grid {
    margin-top: 0.15rem;
    width: 100%;
}

/* Don’t use directory page’s large top margin here (filters aren’t above this block) */
.charity-show-dsRelated .charity-market-grid {
    margin-top: 0;
}

.vendorsResultsHolder .charity-org-listing-card a.cardImageWrap.border-wrap {
    background: #fff !important;
}

/* Related charities: marketplace row gutters (vendorItemCol padding from app.css); avoid double-tight hacks */
.charity-show-dsRelated .row.charity-market-grid.vendorsResultsHolder {
    margin-left: -8px;
    margin-right: -8px;
}

/* Life stories — memoria pages linked to charity (browse-eligible) */
.charity-show-dsPanel.charity-life-stories__panel {
    padding: 1.15rem 1.2rem 1.3rem;
}

.charity-life-stories {
    min-width: 0;
}

.charity-life-stories__edge {
    height: 1px;
    background: #e2e4e8;
    margin: 0 0 0.9rem;
}

.charity-life-stories__edge--bottom {
    margin: 0.85rem 0 0;
}

.charity-life-stories__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem 1.25rem;
    margin-bottom: 0.45rem;
}

.charity-life-stories__titleRow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1 1 12rem;
}

.charity-life-stories__headIcon {
    font-size: 1.5rem;
    color: #6b7280;
    flex-shrink: 0;
}

.charity-life-stories__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a2744;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.charity-life-stories__viewAll {
    font-size: 0.9rem;
    font-weight: 500;
    color: #77386b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.charity-life-stories__viewAll:hover {
    text-decoration: underline;
    color: #5a2a52;
}

.charity-life-stories__viewAll .material-symbols-outlined {
    font-size: 1.1rem;
}

.charity-life-stories__hr {
    height: 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 0.55rem 0 0.9rem;
}

/* Static grid (4 cards) — no carousel */
.charity-life-stories__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem 0.9rem;
    align-items: stretch;
    min-width: 0;
    width: 100%;
}

/* Same card structure as /obituaries/search (search/pages/result): wrapperSearchResults, thumbImg, titleInfo */
.charity-life-stories__card {
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.charity-life-stories .charity-ls-obituary {
    min-width: 0;
    height: 100%;
}

.charity-life-stories .charity-ls-obituary .wrapperSearchResults {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px #00000026;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.charity-life-stories .charity-ls-obituary .thumbImg {
    width: 100%;
    margin: 0;
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f3f3f3;
    overflow: hidden;
}

.charity-life-stories .charity-ls-obituary .thumbImg a {
    display: block;
    width: 100%;
    height: 100%;
}

.charity-life-stories .charity-ls-obituary .thumbImg .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border: 0;
    border-radius: 0;
}

.charity-life-stories .charity-ls-obituary .titleInfo {
    position: relative;
    text-align: left;
    padding: 15px;
    min-height: 5.5rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.charity-life-stories .charity-ls-obituary .charity-ls-obituary__eyebrow {
    font-size: 14px;
    font-weight: 300;
    margin-right: 2px;
}

.charity-life-stories .charity-ls-obituary .titleInfo p {
    color: #414042;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.45;
    margin-bottom: 0.15rem;
}

.charity-life-stories .charity-ls-obituary .titleInfo p.dob,
.charity-life-stories .charity-ls-obituary .titleInfo p.dob span {
    color: #414042;
    font-size: 15px;
    font-weight: 300;
    margin-bottom: 0;
}

.charity-life-stories .charity-ls-obituary .titleInfo a.memoria-name {
    color: #414042;
    font-weight: 400;
    text-decoration: none;
}

.charity-life-stories .charity-ls-obituary .titleInfo a.memoria-name:hover {
    text-decoration: underline;
    color: #77386b;
}

.charity-life-stories .charity-ls-obituary .titleInfo p.city-state {
    margin-top: 0.25rem;
    display: block;
    min-height: 1.4rem;
}

.charity-life-stories .charity-ls-obituary .titleInfo p.city-state .see_more_page_arrow {
    color: #414042;
    text-decoration: none;
    line-height: 1;
}

.charity-life-stories .charity-ls-obituary .titleInfo p.city-state .see_more_page_arrow:hover {
    color: #77386b;
}

@media (max-width: 991px) {
    .charity-life-stories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .charity-life-stories__grid {
        grid-template-columns: 1fr;
    }
}

/* Meta sidebar (WWP about card) */
.charity-show-dsMeta {
    margin: 0;
}

.charity-show-dsMeta__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.charity-show-dsMeta__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}


.legal-disclaimer-text{
    font-style: italic;
    margin-bottom: 10px;
    padding: 10px;
    background: #F5f5f5;
    border-radius: 8px;
    font-size: 14px;
}

.charity-show-dsMeta__dt {
    flex: 0 0 25%;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
}

.charity-show-dsMeta__dt .material-symbols-outlined {
    font-size: 1.1rem;
    color: #9ca3af;
}

.charity-show-dsMeta__dd {
    flex: 1;
    text-align: right;
    font-weight: 300;
    margin: 0;
    word-break: break-word;
}

a.charity-show-dsMeta__a {
    color: #9d4a8a;
    font-weight: 400;
    text-decoration: none;
}

a.charity-show-dsMeta__a:hover {
    text-decoration: underline;
    color: #77386b;
}

a.charity-show-dsExt {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 400;
    color: #77386b;
}

a.charity-show-dsExt .material-symbols-outlined {
    font-size: 1.1rem;
}

/* CTA block (light purple like ref blue panel) */
.charity-show-dsCta {
    border-radius: 10px;
    padding: 1.15rem 1.2rem;
    text-align: center;
    margin-bottom: 1.1rem;
    background: #ffff;
    box-shadow: 0 2px 8px #00000026;
}

.charity-show-dsCta__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: #fff;
    
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    color: #77386b;
}

.charity-show-dsCta__icon .material-symbols-outlined {
    font-size: 26px;
}

.charity-show-dsCta__h {
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.charity-show-dsCta__p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    font-weight: 300;
}

.charity-show-dsCta__btns .btn {
    border-radius: 8px;
    width: auto;
    display: inline-block;
    margin: 0 auto;
}

/* Social strip */
.charity-show-dsSocial {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem 0 0.25rem;
}

/* Disclaimer */
.charity-show-dsDisclaimer {
    font-size: 15px;
    /* line-height: 1.5; */
    /* color: #6b7280; */
    /* font-weight: 400; */
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
    margin: 0.75rem 0 0;
    padding: 0.75rem 0.6rem;
    /* background: #fafafa; */
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.charity-show-dsDisclaimer .material-symbols-outlined {
    font-size: 1.1rem;
    color: #9ca3af;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Legacy class names (safe no-op) */
.charity-show-top {
    display: none;
}

.charity-show-hero {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1.5rem 1.25rem;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .charity-show-hero {
        padding: 2rem 2rem 1.75rem;
    }
}

.charity-show-hero__body {
    min-width: 0;
}

.charity-show-hero__logo-wrap {
    display: inline-block;
}

.charity-show-hero__logo {
    width: 140px;
    height: 140px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 12px;
    display: block;
}

.charity-show-hero__logo--placeholder {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 400;
    color: #77386b;
    background: linear-gradient(145deg, #f0e8f0, #e8e0ec);
    border: 1px solid #e8e8e8;
}

.charity-show-hero__title {
    font-size: 1.75rem;
    font-weight: 400;
    color: #77386b;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .charity-show-hero__title {
        font-size: 2rem;
    }
}

.charity-show-hero__tagline {
    font-size: 1rem;
    font-weight: 300;
    color: #5f5f5f;
    line-height: 1.55;
    margin-bottom: 1rem;
    max-width: 46rem;
}

.charity-show-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.charity-show-btn-secondary.btn-outline-secondary {
    border-color: #77386b;
    color: #77386b;
    background: #fff;
    font-weight: 400;
}

.charity-show-btn-secondary.btn-outline-secondary:hover {
    background: rgba(119, 56, 107, 0.08);
    border-color: #77386b;
    color: #5a2a52;
}

/* Quick facts row */
.charity-show-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eee;
}

@media (min-width: 576px) {
    .charity-show-overview {
        gap: 1.25rem 2rem;
    }
}

.charity-show-overview__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 140px;
    flex: 1 1 45%;
}

@media (min-width: 768px) {
    .charity-show-overview__item {
        flex: 1 1 20%;
        min-width: 120px;
    }
}



.charity-show-overview__icon {
    font-size: 22px;
    color: #77386b;
    flex-shrink: 0;
    margin-top: 2px;
}

.charity-show-overview__label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #888;
    font-weight: 500;
    margin-bottom: 2px;
}

.charity-show-overview__value {
    display: block;
    font-size: 14px;
    color: #414042;
    font-weight: 400;
    line-height: 1.35;
}

.charity-show-overview__link {
    font-size: 14px;
    font-weight: 400;
    color: #77386b;
    text-decoration: none;
}

.charity-show-overview__link:hover {
    text-decoration: underline;
    color: #5a2a52;
}

/* Main column cards */
.charity-show-page .storFrontMain {
    padding-right: 8px;
}

.charity-show-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 1.35rem 1.25rem;
    margin-bottom: 1.25rem;
}

.charity-show-card--flush {
    padding-bottom: 0.5rem;
}

.charity-show-card__title {
    font-size: 1.125rem;
    font-weight: 400;
    color: #77386b;
    margin-bottom: 0.85rem;
}

.charity-show-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0.25rem;
}

.charity-show-section-head__link {
    font-size: 14px;
    font-weight: 400;
    color: #77386b;
    text-decoration: none;
    white-space: nowrap;
}

.charity-show-section-head__link:hover {
    text-decoration: underline;
    color: #5a2a52;
}

.charity-show-tag.service-tag {
    background: #f5f0f7;
    color: #414042;
    border: 1px solid #eadef0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

/* Sidebar CTA (light purple, brand buttons unchanged) */
.charity-show-cta {
    background: linear-gradient(180deg, #faf6fb 0%, #f3ecf5 100%);
    border: 1px solid #e8dce8 !important;
    border-radius: 12px;
    padding: 1.35rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(119, 56, 107, 0.06);
}

.charity-show-cta__eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #77386b;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.charity-show-cta__headline {
    font-size: 1.2rem;
    font-weight: 400;
    color: #4a1f44;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.charity-show-cta__text {
    font-size: 14px;
    font-weight: 300;
    color: #5f5f5f;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.charity-show-cta__btns .btn {
    border-radius: 8px;
}

/* Contact card */
.charity-show-sidebar {
    background: #fff;
    border: 1px solid #e8e8e8 !important;
    border-radius: 12px;
    padding: 1.25rem 1.15rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.charity-show-sidebar__title {
    font-size: 1.1rem;
    font-weight: 400;
    color: #77386b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.charity-show-sidebar__row {
    font-size: 14px;
    margin-bottom: 1rem;
    color: #414042;
}

.charity-show-sidebar__row:last-of-type {
    margin-bottom: 0;
}

.charity-show-sidebar__link {
    color: #77386b;
    text-decoration: none;
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    font-weight: 400;
}

.charity-show-sidebar__link .material-symbols-outlined {
    font-size: 20px;
    color: #77386b;
    flex-shrink: 0;
}

.charity-show-sidebar__inline-icon {
    font-size: 20px;
    color: #77386b;
    vertical-align: middle;
    margin-right: 4px;
}

.charity-show-sidebar__address {
    display: block;
    margin-top: 6px;
    margin-left: 28px;
    color: #666;
    font-weight: 300;
    line-height: 1.45;
    font-size: 14px;
}

.charity-show-social {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
    justify-content: flex-start;
}

.charity-show-page.charity-storefront-main {
    padding-top: 0.5rem;
    padding-bottom: 2.5rem;
}



/* Body copy in About / Mission panels */
.charity-storefront-prose {
    font-weight: 300;
    color: #414042;
    line-height: 1.6;
}

.charity-storefront-prose--muted {
    font-weight: 300;
}

/* Focus areas — match storefront “service-tag” chips */
.charity-storefront-main .service-tag {
    display: inline-block;
    background: #fafafa;
    color: #414042;
    padding: 5px;
    border-radius: 5px;
    font-weight: 300;
    margin-right: 5px;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Sidebar social icons (brand colors on <em> used with Font Awesome) */
.charity-social-icons .social-share em.charity-social-em {
    color: #fff;
}

.charity-social-icons .social-share em.charity-social-em--facebook {
    background: #1877f2;
}

.charity-social-icons .social-share em.charity-social-em--linkedin {
    background: #0a66c2;
}

.charity-social-icons .social-share em.charity-social-em--youtube {
    background: #cd201f;
}

.charity-social-icons .social-share .charity-social-img {
    width: 18px;
    margin: 0px !important;
    display: inline-block;
}

/* -------------------------------------------------------------------------
   Breadcrumb (charity detail + reusable)
   ------------------------------------------------------------------------- */

.charity-breadcrumb {
    background: transparent;
    padding: 15px 0;
    margin-bottom: 0;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #fff;
    /* border-radius: 12px !important;
    margin-bottom: 20px !important; */
}

.charity-breadcrumb__sep {
    vertical-align: middle;
    color: #999;
    margin: 0 4px;
    font-size: 18px;
    line-height: normal;
}

.charity-breadcrumb__item {
    display: inline-flex;
    align-items: center;
}

.charity-breadcrumb__current {
    color: #414042;
    font-weight: 400;
}

.charity-breadcrumb__link {
    color: #414042;
    text-decoration: none;
    font-weight: 300;
}

.charity-breadcrumb__link:hover {
    text-decoration: underline;
}

.charity-breadcrumb__plain {
    color: #414042;
    font-weight: 300;
}

/* Beats app.css `select.form-control { height: calc(4rem - 2px) }` for directory toolbar */
#charity-sort-select,
#charity-search-input {
    box-sizing: border-box;
    font-size: 14px !important;
}

@media only screen and (max-width: 480px) {
    .charity-show-dsRelated .vendorsResultsHolder .card {
         margin-left: 0px !important;
         margin-right: 0px !important; 
     }

     .charity-market-grid.vendorsResultsHolder .card {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }
 }