/* Memorial profiles (functions_memorial.php): a member who has passed away. Quiet, no motion, photos untouched.
   Three looks on .bc-hero.memorial-a|b|c; one is live (BC_MEMORIAL_STYLE). */

.bc-hero.is-memorial { animation: none; }
.bc-hero.is-memorial .bc-hero-cover:not(.has-photo)::after { display: none; }
.bc-hero.is-memorial .bc-hero-name { font-size: 32px; letter-spacing: -0.02em; }

.bc-mem-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.09em;
  line-height: 1.2;
  color: var(--bc-muted);
}
.bc-mem-mark { flex: 0 0 auto; display: block; }
/* "Passed away November 2026": under the name, quiet */
.bc-mem-date { order: 3; margin: 6px 0 0; font-size: 14px; color: var(--bc-muted); }
.bc-hero.memorial-b .bc-mem-date { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; font-size: 15px; letter-spacing: 0.01em; color: #6f6452; }
html[data-theme="dark"] .bc-hero.memorial-b .bc-mem-date { color: #b9ad97; }

/* In lists, in place of the action buttons */
.bc-mem-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--bc-line);
  font-size: 12.5px;
  color: var(--bc-muted);
  white-space: nowrap;
}

/* (a) Night band: a deep slate band with a soft vignette and a thin olive branch */
.bc-hero.memorial-a .bc-hero-cover:not(.has-photo) {
  background:
    radial-gradient(90% 160% at 85% -20%, rgba(148, 163, 184, 0.22), transparent 60%),
    radial-gradient(120% 120% at 50% 120%, rgba(0, 0, 0, 0.45), transparent 70%),
    linear-gradient(160deg, #2a3140 0%, #1c212c 55%, #151922 100%);
}
.bc-mem-band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 136px;
  pointer-events: none;
  color: rgba(214, 222, 205, 0.34);
  display: flex;
  justify-content: flex-end;
  padding: 8px 28px 0 0;
}
.bc-mem-band-art { height: 112px; width: auto; max-width: 70%; }
.bc-hero.memorial-a .bc-mem-mark { color: #7d8b6a; }

/* (b) Paper: a soft linen card, a small candle flame and serif type */
.bc-hero.memorial-b { background: linear-gradient(180deg, #f2f3f1 0%, var(--bc-surface) 260px); }
.bc-hero.memorial-b .bc-hero-cover:not(.has-photo) {
  background:
    radial-gradient(42% 150% at 50% 125%, rgba(201, 138, 58, 0.2), transparent 70%),
    linear-gradient(180deg, #e6e8e4 0%, #f2f3f1 100%);
}
.bc-hero.memorial-b .bc-hero-name,
.bc-hero.memorial-b .bc-mem-label {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
.bc-hero.memorial-b .bc-hero-name { font-weight: 500; font-size: 34px; letter-spacing: -0.005em; }
.bc-hero.memorial-b .bc-mem-label { font-weight: 400; font-style: italic; font-variant-caps: normal; letter-spacing: 0.02em; font-size: 15.5px; color: #7a6646; }
.bc-hero.memorial-b .bc-mem-mark { color: #c98a3a; }

/* (c) Belt ribbon: their belt colour as a thin ribbon under the name, and a black ribbon mark */
.bc-hero.memorial-c .bc-hero-cover:not(.has-photo) {
  background: linear-gradient(180deg, #31353d 0%, #3d424c 100%);
}
.bc-hero.memorial-c .bc-mem-mark { color: var(--bc-ink); }
.bc-mem-ribbon {
  display: block;
  width: min(300px, 100%);
  height: 4px;
  margin: 10px 0 2px;
  border-radius: 2px;
  background: var(--belt, #222);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* Dark mode */
html[data-theme="dark"] .bc-hero.memorial-a .bc-hero-cover:not(.has-photo) {
  background:
    radial-gradient(90% 160% at 85% -20%, rgba(148, 163, 184, 0.14), transparent 60%),
    linear-gradient(160deg, #1b2029 0%, #12161d 60%, #0d1016 100%);
}
html[data-theme="dark"] .bc-hero.memorial-a .bc-mem-mark { color: #9aa887; }
html[data-theme="dark"] .bc-hero.memorial-b { background: linear-gradient(180deg, #202327 0%, var(--bc-surface) 260px); }
html[data-theme="dark"] .bc-hero.memorial-b .bc-hero-cover:not(.has-photo) {
  background:
    radial-gradient(42% 150% at 50% 125%, rgba(214, 150, 70, 0.16), transparent 70%),
    linear-gradient(180deg, #1a1d21 0%, #202327 100%);
}
html[data-theme="dark"] .bc-hero.memorial-b .bc-mem-label { color: #c7b08a; }
html[data-theme="dark"] .bc-hero.memorial-c .bc-hero-cover:not(.has-photo) { background: linear-gradient(180deg, #16181d 0%, #22252c 100%); }
html[data-theme="dark"] .bc-mem-ribbon { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }

@media (max-width: 640px) {
  .bc-hero.is-memorial .bc-hero-name { font-size: 26px; }
  .bc-hero.memorial-b .bc-hero-name { font-size: 28px; }
  .bc-mem-band { padding-right: 12px; height: 104px; }
  .bc-mem-band-art { height: 84px; max-width: 80%; }
}

@media (max-width: 991.98px) { .bc-mem-band { height: 104px; } .bc-mem-band-art { height: 88px; } }

/* Phones and tablets: the hero is centred there, so the label and the ribbon are too, and the branch keeps to the right */
@media (max-width: 991.98px) {
  .bc-mem-label { justify-content: center; }
  .bc-mem-ribbon { margin-left: auto; margin-right: auto; }
  .bc-mem-band-art { max-width: 46%; }
}

/* Headings carry the site font with !important (modern.css), so the serif name needs it too */
.bc-hero.memorial-b h1.bc-hero-name { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif !important; }
