/* Match the individual situation page's immersive hero, dark surface and CTA. */
.life-detail-page { --primary-bg: #0e0c0e; --secondary-bg: #171417; --text-primary: #f7f4f6; --text-secondary: #beb5bb; --border-color: #342c31; background: var(--secondary-bg); color: var(--text-primary); color-scheme: dark; }
.life-detail-page [hidden], .life-detail-page #appHeaderRoot { display: none !important; }
.life-detail-shell { position: relative; max-width: 450px; margin: 0 auto; padding: 0 0 calc(90px + env(safe-area-inset-bottom)); }
.life-detail-nav { position: absolute; inset: 10px 10px auto; z-index: 3; display: flex; justify-content: space-between; pointer-events: none; }
.life-detail-nav a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; pointer-events: auto; }
.life-detail-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 3px rgba(0,0,0,.72)); }
.life-detail-hero { position: relative; overflow: hidden; margin: 0; min-height: 560px; aspect-ratio: 3 / 5; background: #2a2328; isolation: isolate; }
.life-detail-hero > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.life-detail-hero::after { content: ''; position: absolute; inset: 38% 0 0; background: linear-gradient(to top, rgba(12,8,11,.84), rgba(12,8,11,.48) 52%, transparent); z-index: 1; pointer-events: none; }
.life-detail-hero figcaption { position: absolute; inset: auto 0 0; padding: 18px 20px 20px; color: #fff; z-index: 2; }
.life-detail-hero h1 { margin: 0; padding: 0; border: 0; color: #fff; font-size: 25px; font-weight: 700; line-height: 1.4; text-wrap: pretty; }
.life-detail-copy { padding: 0 20px; }
.life-detail-section { margin-top: 22px; scroll-margin-top: 16px; }
.life-detail-section h2 { margin: 0 0 10px; padding: 0; border: 0; color: var(--text-primary); font-size: 16px; font-weight: 700; line-height: 1.4; }
.life-detail-description { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.62; white-space: pre-line; }
.life-detail-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.life-detail-meta { color: var(--text-secondary); font-size: 12px; }
.life-detail-people { display: grid; gap: 16px; }
.life-detail-person { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: 10px 14px; }
.life-detail-portrait { flex: 0 0 96px; margin: 0; overflow: hidden; border-radius: 8px; background: var(--border-color); }
.life-detail-portrait img { display: block; width: 96px; height: 128px; object-fit: cover; object-position: center top; }
/* Keep the summary compact beside the portrait. */
.life-detail-person-summary { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.life-detail-person-summary h3 { margin: 0; color: var(--text-primary); font-size: 16px; font-weight: 700; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.life-detail-person-summary p { margin: 0; font-size: 12px; line-height: 14px; }
.life-detail-person-age { margin-left: 8px; color: var(--text-secondary); font-size: 12px; font-weight: 400; line-height: 14px; }
.life-detail-person-facts { color: var(--text-secondary); }
.life-detail-person-details { min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.life-detail-person-hobbies { color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.life-detail-person-bio { color: var(--text-secondary); }
.life-detail-person-facts, .life-detail-person-bio { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.life-detail-map { position: relative; display: block; overflow: hidden; border-radius: 8px; background: var(--border-color); color: #2a2328; }
.life-detail-map > img { display: block; width: 100%; height: auto; }
.life-detail-map-place { position: absolute; transform: translate(-50%, -50%); max-width: 92px; padding: 3px 6px; border: 1px solid #e5e1e4; border-radius: 4px; background: rgba(255,255,255,.94); font-size: 11px; line-height: 1.5; text-align: center; }
.life-detail-start-bar { position: fixed; inset: auto 0 calc(10px + env(safe-area-inset-bottom)); z-index: 100; padding: 0 10px; pointer-events: none; }
.life-detail-start-bar > div { max-width: 450px; margin: auto; }
.life-detail-start { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 46px; padding: 12px 18px; border-radius: 8px; background: var(--button-primary-bg, #f657b5); color: var(--button-primary-text, #fff); box-shadow: 0 10px 24px rgba(246,87,181,.28); font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; pointer-events: auto; }
.life-detail-status { margin: 0; padding: 70px 20px 28px; font-size: 14px; line-height: 1.8; }
.life-detail-status button { display: block; min-height: 44px; margin-top: 12px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--border-color); color: inherit; }

.life-detail-locations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.life-detail-location { display: block; min-width: 0; color: var(--text-primary); text-decoration: none; }
.life-detail-location img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--border-color); }
.life-detail-location span { display: block; margin-top: 7px; font-size: 13px; line-height: 1.5; }

.life-detail-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; color: rgba(255,255,255,.9); font-size: 12px; line-height: 1.5; }
.life-detail-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; color: rgba(255,255,255,.8); font-size: 11px; line-height: 1.5; }

.life-detail-facts > span { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 22px; padding: 3px 7px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; background: rgba(16,11,14,.34); font-size: 12px; font-weight: 700; line-height: 1.2; }
