/* ==========================================================================
   Eternal Timekeeper: shared memorial hero (two people, one page)
   Loaded AFTER memorial.css, only when `companion` is set (memorial_detail.html does this).
   Design: 5-companion-profiles/design/screenshots/*.png   Breakpoint: 760px, same as memorial.css.
   ========================================================================== */

/* Soft champagne band when no cover photo is set, so the overlapping portraits have something to sit on */
.mem-cover__img--soft {
  height: 220px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 220' preserveAspectRatio='none'%3E%3Cpath d='M0 150 C 200 60, 400 210, 600 120 S 1000 40, 1200 130' fill='none' stroke='%23D9B98F' stroke-width='2' opacity='.5'/%3E%3Cpath d='M0 175 C 220 95, 420 230, 620 150 S 1020 70, 1200 160' fill='none' stroke='%23E3C9A6' stroke-width='1.5' opacity='.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
    linear-gradient(135deg, var(--etk-champagne) 0%, #EFDDC6 55%, #E7D2B6 100%);
}

.mem-hero--pair { max-width: 980px; }
/* :not([hidden]): a cover photo that fails to load is hidden by memorial.js */
.mem-cover:not([hidden]) + .mem-hero--pair { margin-top: -98px; }

/* Two portraits, slightly overlapping, joined by a heart badge */
.mem-pair { position: relative; display: flex; justify-content: center; align-items: center; }
.mem-pair__face { position: relative; flex: none; display: flex; }
.mem-pair__face + .mem-pair__face { margin-left: -28px; z-index: 1; }
.mem-pair__photo { width: 176px; height: 176px; box-sizing: border-box; }
.mem-pair__badge {
  position: absolute; z-index: 2; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--etk-gold-button);
  box-shadow: 0 3px 10px rgba(45, 45, 45, .15); display: flex; align-items: center; justify-content: center;
}
.mem-pair + .mem-kicker { margin-top: 8px; }

/* "Angelic & Tammy" */
.mem-hero .mem-pair__title { font-size: 60px; line-height: 1.1; }
.mem-amp { color: var(--etk-gold); font-weight: 400; padding: 0 .2em 0 .14em; }

/* "Married in 2017 · Columbus, OH" */
.mem-together { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; color: #4A4744; }
.mem-together svg { color: var(--etk-gold); flex: none; }

/* Two equal columns with a gold hairline between them */
.mem-people { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); width: 100%; max-width: 880px; margin-top: 10px; }
.mem-people::before {
  content: ""; grid-column: 2; grid-row: 1; align-self: stretch;
  background: linear-gradient(to bottom, transparent, #D9B98F 18%, #D9B98F 82%, transparent);
}
.mem-person { grid-row: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 28px; min-width: 0; }
.mem-person:first-of-type { grid-column: 1; }
.mem-person:last-of-type { grid-column: 3; }
.mem-hero .mem-person__name { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 500; overflow-wrap: anywhere; }
.mem-person__dates { margin: 0; font-family: var(--etk-font-heading); font-size: 19px; }
.mem-dash { color: var(--etk-gold); padding: 0 6px; }
.mem-nw { white-space: nowrap; }
.mem-person__facts { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 15px; color: var(--etk-muted-fg); }
.mem-person__facts li { display: inline-flex; align-items: center; gap: 7px; }
.mem-person__facts svg { color: var(--etk-gold); flex: none; }
.mem-person .mem-socials { margin-top: 6px; max-width: 100%; }

.mem-hero--pair .mem-actions { margin-top: 22px; }

/* ---------- Phone ---------- */
@media (max-width: 759.98px) {
  .mem-cover__img--soft { height: 110px; border-radius: 16px; margin: 0 12px; }
  .mem-cover:not([hidden]) + .mem-hero--pair { margin-top: -66px; }
  .mem-hero--pair { padding: 0 16px; }
  .mem-pair__photo { width: 124px; height: 124px; border-width: 5px; }
  .mem-pair__face + .mem-pair__face { margin-left: -20px; }
  .mem-pair__photo.mem-portrait--initials { font-size: 40px; }
  .mem-pair__badge { width: 36px; height: 36px; bottom: 2px; }
  .mem-pair__badge svg { width: 16px; height: 16px; }
  .mem-hero .mem-pair__title { font-size: 38px; line-height: 1.15; }
  .mem-together { font-size: 15px; }
  .mem-people { margin-top: 8px; }
  .mem-person { padding: 0 6px; gap: 6px; }
  .mem-hero .mem-person__name { font-size: 19px; line-height: 1.25; }
  .mem-person__dates { font-size: 15px; line-height: 1.35; }
  .mem-dash { padding: 0 3px; }
  .mem-person__facts { flex-direction: column; align-items: center; gap: 4px; font-size: 13px; }
  .mem-person__facts li { gap: 6px; text-align: left; }
  .mem-person__facts svg { display: inline-block; width: 14px; height: 14px; }
  .mem-person .mem-socials { gap: 6px; }
  .mem-person .mem-socials .mem-pill { font-size: 13px; padding-left: 10px; padding-right: 10px; }
  .mem-hero--pair .mem-actions { margin-top: 12px; }
}
