/* v3.1.34 Find-your-loved-one search + memorial result cards */
.bol-ms-wrap .visually-hidden,
.bol-ms-form .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.bol-ms-wrap {
  width: 100%;
  margin: 0 0 2rem;
  box-sizing: border-box;
}
.bol-ms-wrap--full.bol-ms-on-memorial {
  margin: 0 0 2.2rem;
  padding: 1.6rem 1.5rem 1.4rem;
  background: linear-gradient(180deg, #fffdf8 0%, #f7f0e4 100%);
  border: 1px solid #d4b06e;
  box-shadow: 0 10px 28px rgba(60, 45, 20, .08);
}
.bol-ms-heading {
  margin: 0 0 .35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  color: #2b2418;
  text-align: center;
}
.bol-ms-intro {
  margin: 0 auto 1rem;
  max-width: 40rem;
  text-align: center;
  color: #5a4d3a;
  font-size: 1.02rem;
  line-height: 1.45;
}
.bol-ms-form.bol-search {
  display: flex;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid #c4a056;
  box-shadow: 0 2px 0 #efe6d4 inset, 0 8px 20px rgba(60,45,20,.06);
}
.bol-ms-form .bol-ms-input,
.bol-ms-form .bol-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: .95rem 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-style: normal;
  color: #2b2418;
  background: #fff;
}
.bol-ms-form .bol-ms-input:focus,
.bol-ms-form .bol-search-input:focus {
  outline: none;
  background: #fffdf8;
}
.bol-ms-form .bol-ms-submit,
.bol-ms-form .bol-search-btn {
  border: 0;
  background: linear-gradient(180deg, #e8c97a 0%, #c4a056 100%);
  color: #2b2418;
  padding: 0 1.4rem;
  cursor: pointer;
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bol-ms-form .bol-ms-submit:hover,
.bol-ms-form .bol-search-btn:hover {
  background: linear-gradient(180deg, #f0d48a 0%, #d4b06e 100%);
}

.bol-ms-live {
  margin-top: 1.25rem;
}
.bol-ms-status {
  text-align: center;
  color: #5a4d3a;
  margin: .6rem 0;
}
.bol-ms-more {
  text-align: center;
  margin: 1rem 0 0;
}
.bol-ms-more-link {
  color: #6a5428;
  font-weight: 600;
}

/* Result grid: 3 / 2 / 1 */
.bol-ms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 960px) {
  .bol-ms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}
@media (max-width: 640px) {
  .bol-ms-grid { grid-template-columns: 1fr; gap: .9rem; }
  .bol-ms-wrap--full.bol-ms-on-memorial { padding: 1.15rem 1rem 1rem; }
}
/* Homepage sidebar stays one column. */
.home-rail .bol-ms-grid,
.side-box .bol-ms-grid {
  grid-template-columns: 1fr;
}

/* Shared card */
.bol-ms-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  margin: 0;
  padding: 1.15rem 1rem 1.2rem;
  background: #fffdf8;
  color: #2b2418;
  border: 1px solid #d4b06e;
  box-shadow: 0 10px 24px rgba(60,45,20,.08);
  min-width: 0;
  overflow: hidden;
}
.bol-ms-photo-link {
  display: block;
  text-decoration: none;
  margin: 0 0 .85rem;
}
.bol-ms-photo {
  position: relative;
  display: block;
  width: 156px;
  height: 156px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
  --bol-ms-inset: 6%;
  --bol-ms-well: 88%;
}
.bol-ms-photo img.bol-ms-img,
.bol-ms-photo img.wp-post-image,
.bol-ms-photo .bol-ms-fallback {
  position: absolute !important;
  top: var(--bol-ms-inset) !important;
  left: var(--bol-ms-inset) !important;
  right: auto !important;
  bottom: auto !important;
  width: var(--bol-ms-well) !important;
  height: var(--bol-ms-well) !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}
.bol-ms-fallback {
  background:
    radial-gradient(circle at 50% 38%, #f4ead0 0%, #e6d5b0 55%, #d4c09a 100%);
  box-shadow: inset 0 0 0 1px rgba(196,160,86,.35);
}
.bol-ms-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: #6a5428;
}

.bol-ms-body { width: 100%; min-width: 0; }
.bol-ms-name {
  margin: 0 0 .2rem;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.25;
  font-weight: 400;
  overflow-wrap: break-word;
}
.bol-ms-name a {
  color: inherit !important;
  text-decoration: none;
  -webkit-text-stroke: 0;
  text-shadow: none;
  filter: none;
}
.bol-ms-name a:hover { text-decoration: underline; }
.bol-ms-dates {
  margin: 0 0 .5rem;
  font-family: system-ui, sans-serif;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5a4d3a;
}
.bol-ms-excerpt {
  margin: 0 0 .9rem;
  font-size: .98rem;
  line-height: 1.45;
  color: #3f3629;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bol-ms-actions { margin: 0; }
.bol-ms-btn {
  display: inline-block;
  padding: .55rem 1.1rem;
  background: linear-gradient(180deg, #e8c97a 0%, #c4a056 100%);
  color: #2b2418 !important;
  text-decoration: none !important;
  font-family: system-ui, sans-serif;
  font-size: .92rem;
  font-weight: 650;
  border: 1px solid #b8955a;
  box-shadow: 0 1px 0 #fff8e4 inset;
}
.bol-ms-btn:hover { filter: brightness(1.06); }

.bol-ms-empty {
  text-align: center;
  padding: 1.6rem 1rem 1.4rem;
  background: #fffdf8;
  border: 1px solid #d4b06e;
  color: #2b2418;
}
.bol-ms-empty p { margin: 0 0 .7rem; }
.bol-ms-empty p:last-child { margin-bottom: 0; }

/* Search results page */
.bol-ms-page .page-body { padding-top: 1.6rem; }
.bol-ms-page-head { margin: 0 0 1.4rem; text-align: center; }
.bol-ms-page-head .bol-ms-wrap { margin-bottom: 0; }
.bol-ms-count {
  margin: .6rem 0 0;
  color: #5a4d3a;
  font-size: .95rem;
}
.bol-ms-pagination {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin: 1.6rem 0 0;
}

/* ---- Per-style typography (name plate fonts, weight 400, no stroke) ---- */
.bol-ms-card.bol-style-standard .bol-ms-name {
  font-family: "Great Vibes", "Pinyon Script", cursive;
  font-weight: 400;
  color: #3b2f20;
}
.bol-ms-card.bol-style-military .bol-ms-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  color: #1f2f4d;
}
.bol-ms-card.bol-style-woods .bol-ms-name,
.bol-ms-card.bol-style-woods-dark .bol-ms-name {
  font-family: "Dancing Script", cursive;
  font-weight: 400;
}
.bol-ms-card.bol-style-winter .bol-ms-name,
.bol-ms-card.bol-style-winter-dark .bol-ms-name {
  font-family: "Pinyon Script", cursive;
  font-weight: 400;
}
.bol-ms-card.bol-style-waves .bol-ms-name,
.bol-ms-card.bol-style-waves-dark .bol-ms-name {
  font-family: "Alex Brush", cursive;
  font-weight: 400;
}
.bol-ms-card.bol-style-blossoms .bol-ms-name {
  font-family: Parisienne, cursive;
  font-weight: 400;
  color: #5a2a3c;
}
.bol-ms-card.bol-style-sunflowers .bol-ms-name {
  font-family: Sacramento, cursive;
  font-weight: 400;
  color: #3b3a1a;
}
.bol-ms-card.bol-style-sunset .bol-ms-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #f0d9a0;
}

/* Standard */
.bol-ms-card.bol-style-standard {
  background: #fffdf8;
  border: 1px solid #d4b06e;
  box-shadow: 0 0 0 4px #fffdf8, 0 0 0 5px #d4b06e, 0 10px 24px rgba(60,45,20,.08);
}
.bol-ms-card.bol-style-standard .bol-ms-photo {
  background: radial-gradient(circle, #fff 58%, #d4b06e 62%, #b8955a 70%, #e8c97a 78%, transparent 79%);
}

/* Military Honor */
.bol-ms-card.bol-style-military {
  background: #fffdf8;
  border-width: 10px;
  border-style: solid;
  border-color: transparent;
  border-image-source: var(--bol-military-card);
  border-image-slice: 14;
  border-image-width: 10px;
  border-image-repeat: round;
  box-shadow: 0 10px 24px rgba(20,30,50,.12);
}
.bol-ms-card.bol-style-military .bol-ms-photo {
  background: var(--bol-military-medal, none) center/100% 100% no-repeat,
              radial-gradient(circle, #fff 58%, #c5a45a 62%, #1f2f4d 78%, transparent 79%);
}
.bol-ms-card.bol-style-military .bol-ms-dates { color: #1f2f4d; }
.bol-ms-card.bol-style-military .bol-ms-btn {
  background: linear-gradient(180deg, #2a3d62 0%, #1f2f4d 100%);
  color: #fffdf8 !important;
  border-color: #1f2f4d;
  box-shadow: none;
}

/* Woodland Path */
.bol-ms-card.bol-style-woods {
  background: #eef5ee;
  border-width: 10px;
  border-style: solid;
  border-color: transparent;
  border-image-source: var(--bol-woods-card);
  border-image-slice: 12;
  border-image-width: 10px;
  border-image-repeat: round;
  color: #1f3a26;
}
.bol-ms-card.bol-style-woods .bol-ms-name { color: #1f3a26; }
.bol-ms-card.bol-style-woods .bol-ms-dates,
.bol-ms-card.bol-style-woods .bol-ms-excerpt { color: #16301f; }
.bol-ms-card.bol-style-woods .bol-ms-photo {
  background: var(--bol-woods-frame) center/100% 100% no-repeat;
}
.bol-ms-card.bol-style-woods .bol-ms-photo { --bol-ms-inset: 8%; --bol-ms-well: 84%; }
.bol-ms-card.bol-style-woods .bol-ms-btn {
  background: linear-gradient(180deg, #4a7a52 0%, #2c5533 100%);
  color: #f3ead8 !important;
  border-color: #2c5533;
  box-shadow: none;
}
.bol-ms-card.bol-style-woods-dark {
  background: #16301f;
  color: #f3ead8;
  border-width: 10px;
  border-style: solid;
  border-color: transparent;
  border-image-source: var(--bol-woods-card-dark);
  border-image-slice: 12;
  border-image-width: 10px;
  border-image-repeat: round;
}
.bol-ms-card.bol-style-woods-dark .bol-ms-name { color: #f3ead8; }
.bol-ms-card.bol-style-woods-dark .bol-ms-dates,
.bol-ms-card.bol-style-woods-dark .bol-ms-excerpt { color: #e4eadc; }
.bol-ms-card.bol-style-woods-dark .bol-ms-photo {
  background: var(--bol-woods-frame-dark) center/100% 100% no-repeat;
}
.bol-ms-card.bol-style-woods-dark .bol-ms-photo { --bol-ms-inset: 8%; --bol-ms-well: 84%; }
.bol-ms-card.bol-style-woods-dark .bol-ms-btn {
  background: #eef5ee;
  color: #16301f !important;
  border-color: #c5b48a;
}

/* Winter Trail */
.bol-ms-card.bol-style-winter {
  background: #eef6fb;
  color: #1d3550;
  border-width: 8px;
  border-style: solid;
  border-color: transparent;
  border-image-source: var(--bol-winter-card);
  border-image-slice: 12;
  border-image-width: 8px;
  border-image-repeat: round;
}
.bol-ms-card.bol-style-winter .bol-ms-name { color: #1d3550; }
.bol-ms-card.bol-style-winter .bol-ms-dates,
.bol-ms-card.bol-style-winter .bol-ms-excerpt { color: #274260; }
.bol-ms-card.bol-style-winter .bol-ms-photo {
  background: var(--bol-winter-frame) center/100% 100% no-repeat;
}
.bol-ms-card.bol-style-winter .bol-ms-photo { --bol-ms-inset: 5.5%; --bol-ms-well: 89%; }
.bol-ms-card.bol-style-winter .bol-ms-btn {
  background: linear-gradient(180deg, #4a6f94 0%, #274260 100%);
  color: #eef6fb !important;
  border-color: #274260;
  box-shadow: none;
}
.bol-ms-card.bol-style-winter-dark {
  background: #152536;
  color: #eef6fb;
  border-width: 8px;
  border-style: solid;
  border-color: transparent;
  border-image-source: var(--bol-winter-card-dark);
  border-image-slice: 12;
  border-image-width: 8px;
  border-image-repeat: round;
}
.bol-ms-card.bol-style-winter-dark .bol-ms-name { color: #eef6fb; }
.bol-ms-card.bol-style-winter-dark .bol-ms-dates,
.bol-ms-card.bol-style-winter-dark .bol-ms-excerpt { color: #d7e9f5; }
.bol-ms-card.bol-style-winter-dark .bol-ms-photo {
  background: var(--bol-winter-frame-dark) center/100% 100% no-repeat;
}
.bol-ms-card.bol-style-winter-dark .bol-ms-photo { --bol-ms-inset: 5.5%; --bol-ms-well: 89%; }
.bol-ms-card.bol-style-winter-dark .bol-ms-btn {
  background: #eef6fb;
  color: #152536 !important;
  border-color: #9bb8d0;
}

/* Ocean Waves */
.bol-ms-card.bol-style-waves {
  background: #f4fbfa;
  color: #1e4a5a;
  border-width: 12px;
  border-style: solid;
  border-color: transparent;
  border-image-source: var(--bol-waves-card);
  border-image-slice: 12;
  border-image-width: 12px;
  border-image-repeat: round;
}
.bol-ms-card.bol-style-waves .bol-ms-name { color: #1e4a5a; }
.bol-ms-card.bol-style-waves .bol-ms-dates,
.bol-ms-card.bol-style-waves .bol-ms-excerpt { color: #2a3a40; }
.bol-ms-card.bol-style-waves .bol-ms-photo {
  background: var(--bol-waves-frame) center/100% 100% no-repeat;
}
.bol-ms-card.bol-style-waves .bol-ms-photo { --bol-ms-inset: 9%; --bol-ms-well: 82%; }
.bol-ms-card.bol-style-waves .bol-ms-btn {
  background: linear-gradient(180deg, #3a7a8a 0%, #1e4a5a 100%);
  color: #f4fbfa !important;
  border-color: #1e4a5a;
  box-shadow: none;
}
.bol-ms-card.bol-style-waves-dark {
  background: #102c48;
  color: #c5e4e0;
  border-width: 12px;
  border-style: solid;
  border-color: transparent;
  border-image-source: var(--bol-waves-card-dark);
  border-image-slice: 12;
  border-image-width: 12px;
  border-image-repeat: round;
}
.bol-ms-card.bol-style-waves-dark .bol-ms-name { color: #c5e4e0; }
.bol-ms-card.bol-style-waves-dark .bol-ms-dates,
.bol-ms-card.bol-style-waves-dark .bol-ms-excerpt { color: #f3ead8; }
.bol-ms-card.bol-style-waves-dark .bol-ms-photo {
  background: var(--bol-waves-frame-dark) center/100% 100% no-repeat;
}
.bol-ms-card.bol-style-waves-dark .bol-ms-photo { --bol-ms-inset: 9%; --bol-ms-well: 82%; }
.bol-ms-card.bol-style-waves-dark .bol-ms-btn {
  background: #c5e4e0;
  color: #102c48 !important;
  border-color: #8bb8b3;
}

/* Spring Blossoms */
.bol-ms-card.bol-style-blossoms {
  background: #fff8fa;
  color: #5a2a3c;
  border-width: 8px;
  border-style: solid;
  border-color: transparent;
  border-image-source: var(--bol-blossoms-card);
  border-image-slice: 12;
  border-image-width: 8px;
  border-image-repeat: round;
}
.bol-ms-card.bol-style-blossoms .bol-ms-dates,
.bol-ms-card.bol-style-blossoms .bol-ms-excerpt { color: #6a3a48; }
.bol-ms-card.bol-style-blossoms .bol-ms-photo {
  background: var(--bol-blossoms-frame) center/100% 100% no-repeat;
}
.bol-ms-card.bol-style-blossoms .bol-ms-photo { --bol-ms-inset: 5.5%; --bol-ms-well: 89%; }
.bol-ms-card.bol-style-blossoms .bol-ms-btn {
  background: linear-gradient(180deg, #c47a96 0%, #8a3d58 100%);
  color: #fff8fa !important;
  border-color: #8a3d58;
  box-shadow: none;
}

/* Sunflower Field */
.bol-ms-card.bol-style-sunflowers {
  background: #fffbea;
  color: #3b3a1a;
  border-width: 10px;
  border-style: solid;
  border-color: transparent;
  border-image-source: var(--bol-sunflowers-card);
  border-image-slice: 12;
  border-image-width: 10px;
  border-image-repeat: round;
}
.bol-ms-card.bol-style-sunflowers .bol-ms-dates,
.bol-ms-card.bol-style-sunflowers .bol-ms-excerpt { color: #4a3b12; }
.bol-ms-card.bol-style-sunflowers .bol-ms-photo {
  background: var(--bol-sunflowers-frame) center/100% 100% no-repeat;
}
.bol-ms-card.bol-style-sunflowers .bol-ms-photo { --bol-ms-inset: 5.4167%; --bol-ms-well: 89.1666%; }
.bol-ms-card.bol-style-sunflowers .bol-ms-btn {
  background: linear-gradient(180deg, #6a9a3a 0%, #4f7a2b 100%);
  color: #fffbea !important;
  border-color: #4f7a2b;
  box-shadow: none;
}

/* Sunset */
.bol-ms-card.bol-style-sunset {
  background: linear-gradient(180deg, #1f1b2e 0%, #191626 100%);
  color: #f3ead8;
  border: 1px solid rgba(212,176,110,.55);
  box-shadow: 0 0 0 5px #17141f, 0 0 0 6px rgba(212,176,110,.2), 0 12px 28px rgba(0,0,0,.35);
}
.bol-ms-card.bol-style-sunset .bol-ms-dates,
.bol-ms-card.bol-style-sunset .bol-ms-excerpt { color: #f3ead8; }
.bol-ms-card.bol-style-sunset .bol-ms-photo {
  background: radial-gradient(circle, #2a2438 58%, #d4b06e 62%, #f0d9a0 70%, #d4b06e 76%, transparent 77%);
}
.bol-ms-card.bol-style-sunset .bol-ms-btn {
  background: linear-gradient(180deg, #f0d9a0 0%, #d4b06e 100%);
  color: #1f1b2e !important;
  border-color: #d4b06e;
}


/* Homepage sidebar: live results as an overlay dropdown so cards don't stretch the rail. */
.side-box.home-search.bol-ms-has-live,
.home-rail .side-box.home-search,
.bol-ms-has-live {
  position: relative;
  z-index: 8;
}
.bol-ms-live--dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  z-index: 40;
  margin: 0;
  padding: 0.5rem 0.5rem 0.4rem;
  max-height: min(22rem, 70vh);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  background: #fffdf8;
  border: 1px solid #d4b06e;
  box-shadow: 0 12px 28px rgba(60, 45, 20, .18);
}
.bol-ms-live--dropdown .bol-ms-status {
  margin: .35rem 0;
  font-size: .92rem;
}
.bol-ms-live--dropdown .bol-ms-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.bol-ms-live--dropdown .bol-ms-card,
.bol-ms-live--dropdown .bol-ms-card[class*="bol-style-"] {
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 0.65rem;
  padding: 0.4rem 0.45rem;
  box-shadow: none;
  border-image-source: none;
  border-image-slice: 0;
  border-image-width: 0;
  border-image-repeat: stretch;
  border-width: 1px;
  border-style: solid;
  border-color: #d4b06e;
}
.bol-ms-live--dropdown .bol-ms-photo-link {
  margin: 0;
  flex: 0 0 auto;
}
.bol-ms-live--dropdown .bol-ms-photo {
  width: 64px;
  height: 64px;
  margin: 0;
}
.bol-ms-live--dropdown .bol-ms-initials {
  font-size: 1.15rem;
}
.bol-ms-live--dropdown .bol-ms-body {
  flex: 1 1 auto;
  min-width: 0;
}
.bol-ms-live--dropdown .bol-ms-name {
  font-size: 1.18rem;
  line-height: 1.2;
  margin: 0 0 0.12rem;
}
.bol-ms-live--dropdown .bol-ms-dates {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: .06em;
}
.bol-ms-live--dropdown .bol-ms-excerpt,
.bol-ms-live--dropdown .bol-ms-actions {
  display: none;
}
.bol-ms-live--dropdown .bol-ms-more {
  position: sticky;
  bottom: 0;
  margin: 0.4rem 0 0;
  padding: 0.4rem 0 0.05rem;
  background: #fffdf8;
  text-align: center;
}
.bol-ms-live--dropdown .bol-ms-empty {
  padding: 0.65rem 0.4rem 0.55rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.bol-ms-live--dropdown .bol-ms-empty p {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
}
.bol-ms-live--dropdown .bol-ms-empty .bol-ms-btn {
  padding: .4rem .8rem;
  font-size: .85rem;
}
