/* v29: scoped additions to the existing navy/red/purple design. */
.es-stories-page .es-story-prompt { height:100%; border-top-color:var(--es-red); }
.es-stories-page .row > :nth-child(even) > .es-story-prompt { border-top-color:var(--es-purple); }
.es-stories-page .es-story-prompt .es-page-kicker,.es-stories-page .es-memory-card .es-page-kicker { color:var(--es-red);font-size:14px; }
.es-story-timeline { position:relative;padding-left:24px;border-left:3px solid var(--es-red); }
.es-story-timeline > .es-memory-card { position:relative;margin-bottom:24px; }
.es-story-timeline > .es-memory-card::before { content:'';position:absolute;top:26px;left:-33px;width:14px;height:14px;background:var(--es-red);border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 2px var(--es-red); }
.es-memory-card { scroll-margin-top:25px;min-width:0; }
.es-memory-card h3,.es-memory-text,.es-photo-edit-row,.es-match-finder-item { overflow-wrap:anywhere; }
.es-memory-card .es-memory-date { margin:8px 0 14px;color:#52647a;font-size:14px;font-weight:600; }
.es-memory-status { display:inline-block;padding:5px 10px;background:#f0eaf5;color:var(--es-purple);border-left:3px solid var(--es-purple);font-size:13px; }
.es-memory-text { white-space:normal;line-height:1.65;max-width:68ch; }
.es-memory-photos { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px; }
.es-memory-photos figure { min-width:0;margin:0;padding:8px 8px 14px;background:#fff;border:1px solid #dde3ea;box-shadow:0 5px 14px #07172d18; }
.es-memory-photos img { display:block;width:100%;height:auto;max-height:360px;object-fit:contain;background:#f3f5f8; }
.es-memory-photos figcaption { font-size:14px;line-height:1.45;padding:10px 3px 0;overflow-wrap:anywhere; }
.es-photo-edit-row { display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;margin-top:20px; }
.es-photo-edit-row img { width:96px;height:80px;object-fit:contain;background:#f3f5f8; }
.es-match-finder-results { max-height:540px;overflow-y:auto;overscroll-behavior:contain; }
.es-match-finder-item { border-top:1px solid #d7dee6;padding:15px 0; }
.es-match-finder-item strong,.es-match-finder-item span { display:block; }
.es-match-finder-item span { color:#52647a;font-size:14px;margin:5px 0 10px; }
.es-undated-heading { font:800 26px/1.1 var(--es-display);color:var(--es-navy);margin:30px 0 20px; }
.es-story-sidebar .es-panel h2 { font-size:26px; }
.es-stories-page [hidden] { display:none !important; }
.es-stories-page .es-delete-memory { padding:20px;border:1px solid #d7dee6;border-radius:6px;background:#fff; }
.es-stories-page .es-panel > .es-memory-card,.es-fixture-page .es-panel > .es-memory-card { border:0 !important;box-shadow:none !important;padding:12px 0 0;background:transparent; }
.es-story-sidebar .btn,.es-stories-page .es-profile-edit-nav .btn { white-space:normal; }
@media(max-width:575.98px) {
    .es-story-timeline { padding-left:16px; }
    .es-story-timeline > .es-memory-card::before { left:-25px; }
    .es-memory-photos { gap:10px; }
    .es-memory-photos figure { padding:5px 5px 10px; }
    .es-photo-edit-row { grid-template-columns:72px minmax(0,1fr);gap:10px; }
    .es-photo-edit-row img { width:72px;height:72px; }
}

/* Keep the existing homepage call-to-action row inside tablet viewports. */
@media(min-width:768px) and (max-width:991.98px) {
    .es-home-page .es-final-inner { flex-direction:column;align-items:stretch; }
    .es-home-page .es-final-actions { flex-wrap:wrap;justify-content:flex-start; }
}

/* v31: shared navigation, aligned results and established supporter imagery. */
.es-find-match-page [hidden] { display:none !important; }
.es-search-header { display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:30px;align-items:center; }
.es-search-header > * { position:relative;z-index:1;min-width:0; }
.es-search-header img { width:100%;height:170px;object-fit:cover;border:7px solid #fff;box-shadow:0 8px 20px #0003;border-radius:2px; }
.es-search-label { position:relative;display:flex;align-items:center;gap:9px;margin-bottom:9px; }
.es-search-help { flex-shrink:0; }
.es-search-help summary { display:inline-flex;align-items:center;justify-content:center;cursor:pointer;width:22px;height:22px;color:#fff;background:var(--es-navy);font:700 16px/1 Georgia,serif;list-style:none;border-radius:50%; }
.es-search-help summary::-webkit-details-marker { display:none; }
.es-search-help summary:focus-visible { outline:2px solid var(--es-red);outline-offset:3px; }
.es-search-help-body { position:absolute;top:calc(100% + 7px);left:0;z-index:20;width:min(100%,390px);padding:20px;background:#fff;border:1px solid var(--border);border-top:3px solid var(--es-red);border-radius:5px 14px 5px 14px;box-shadow:var(--shadow-soft);max-height:65vh;overflow:auto; }
.es-page .es-search-help-body h3 { font-size:23px; }
.es-search-help-body p,.es-search-help-body li { color:var(--text);font:400 14px/1.5 system-ui,sans-serif;text-transform:none;letter-spacing:normal; }
.es-search-help-body ul { padding-left:19px; }
.es-search-help-body li + li { margin-top:7px; }
.es-search-input-row { align-items:stretch; }
.es-search-input-row .form-control { flex:1 1 230px;min-width:0;width:auto; }
.es-search-input-row button { flex:0 0 auto; }
.es-search-result { display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere; }
.es-search-result-meta,.es-search-result-note { color:#52647a;font-size:14px;line-height:1.5;margin:0 0 12px; }
.es-search-result-note { border-left:2px solid var(--es-purple);padding-left:9px; }
.es-story-inspiration-image { display:block;width:100%;height:170px;object-fit:cover;border:7px solid #fff;box-shadow:0 4px 12px #07172d20;margin-bottom:23px; }
.es-member-nav-only { max-width:1190px;padding-top:24px; }
.es-member-nav-only nav { margin-bottom:0 !important; }
.es-memory-handoff h2 { font-size:26px; }
@media(max-width:767.98px) { .es-search-header {grid-template-columns:minmax(0,1fr);gap:22px;} .es-search-header img {height:145px;max-width:340px;} }
