/* Editorial Storytelling: Platform-owned Personal Memorials only.
   Creator-owned memorials, the public hero and Memorial Actions retain their original layout. */
.memorial-lower .life-story[data-editorial-life-story] {
    display: block;
    align-self: start;
}
/* The editorial narrative has independent internal rows, so the action rail
   must not inherit the legacy horizontal Life Story subgrid tracks. */
@media (min-width: 48.001rem) {
    [data-memorial-layout] .memorial-lower > [data-editorial-life-story] ~ .memorial-actions {
        grid-template-rows: auto auto;
        align-self: start;
        align-content: start;
    }
}
.editorial-story-layout {
    display: grid;
    grid-template-areas: "navigation content";
    grid-template-columns: minmax(10.5rem, .34fr) minmax(0, 1fr);
    column-gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}
.editorial-story-layout--single {
    grid-template-areas: "content";
    grid-template-columns: minmax(0, 1fr);
}
.editorial-story-navigation { grid-area: navigation; min-width: 0; }
.editorial-story-content { grid-area: content; min-width: 0; }
.editorial-story-layout .section-label { max-width: none; }
.editorial-story-navigation__items { display: grid; padding-top: .9rem; gap: .2rem; }
.editorial-story-navigation__trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem .65rem;
    border: 0;
    border-left: 2px solid transparent;
    background: transparent;
    color: var(--ink);
    font: 400 .85rem/1.4 var(--sans);
    text-align: left;
    cursor: pointer;
}
.editorial-story-navigation__trigger:is(:hover,[aria-selected="true"]) {
    border-left-color: var(--accent-dark);
    background: rgb(0 0 0 / 4%);
}
.editorial-story-navigation__trigger:focus-visible {
    outline: 2px solid var(--accent-dark);
    outline-offset: 2px;
}
.editorial-story-navigation__symbol { flex: 0 0 auto; color: var(--muted); }
.editorial-story-navigation__trigger[aria-selected="true"] .editorial-story-navigation__symbol { color: var(--accent-dark); }
.editorial-story-panel[hidden] { display: none !important; }
.editorial-story-panel { animation: life-story-fade .22s ease both; }
.editorial-story-body {
    min-width: 0;
    padding-top: 1.25rem;
    color: #4d504b;
    font: clamp(1.02rem, 1.35vw, 1.14rem)/1.75 var(--serif);
}
.editorial-story-body > p {
    margin: 0 0 1rem;
    white-space: pre-line;
}
.editorial-story-layout .editorial-story-body .memorial-rich-text { white-space: normal; }
.editorial-story-layout .editorial-story-body .memorial-rich-text p { white-space: normal; }
.biography .editorial-story-layout .editorial-story-body .memorial-rich-text h2 {
    max-width: none;
    font: 400 1.7rem/1.3 var(--serif);
}
@media (max-width: 48rem) {
    .editorial-story-layout {
        grid-template-areas: "navigation" "content";
        grid-template-columns: minmax(0, 1fr);
        row-gap: 1.5rem;
    }
    .editorial-story-layout--single { grid-template-areas: "content"; }
    .editorial-story-navigation__items { gap: .25rem; }
    .editorial-story-navigation__trigger { min-height: 44px; }
}
