/* Public editorial language. Loaded after route styles; see DESIGN_GUIDE.md. */
.app-root { background: var(--app-bg); color: var(--app-text); -webkit-font-smoothing: antialiased; }
.app-root h1,.app-root h2,.app-root h3 { font-family: var(--app-font-sans); }
.site-header { background: rgba(246,243,237,.96); }
.site-header-inner { min-height: 84px; }
.site-header-brand { letter-spacing: -.04em; }
.site-footer__inner { background: #eee9e2; }
.lead-widget__trigger:hover { background: var(--app-primary-hover); }
.lead-widget__trigger > i { font-family: var(--app-font-sans); font-style: normal; }
.lead-widget__trigger > i::before { content: '?'; font-size: 20px; }
.lead-widget__close > i { font-family: var(--app-font-sans); font-style: normal; }
.lead-widget__close > i::before { content: '×'; font-size: 24px; }
.app-root .btn { border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.app-root .btn-primary,.app-root .app-cta { background: var(--app-primary); border-color: var(--app-primary); color: #fff; box-shadow: none; }
.app-root .btn-primary:hover,.app-root .app-cta:hover { background: var(--app-primary-hover); border-color: var(--app-primary-hover); color: #fff; }
.app-root a:focus-visible,.app-root button:focus-visible,.app-root summary:focus-visible { outline: 3px solid var(--app-primary); outline-offset: 4px; }
.editorial-main { padding-top: 0; }
.ed { font-family: var(--app-font-sans); line-height: 1.65; }
.ed h1,.ed h2,.ed h3,.person-portrait h1 { font-weight: 500; letter-spacing: -.045em; line-height: 1.12; color: var(--app-text); }
.ed h1 { font-size: clamp(40px,4.5vw,60px); margin: 0 0 26px; }
.ed h1 em { font-style: normal; color: var(--app-primary); }
.ed h2 { font-size: clamp(30px,3.1vw,42px); margin: 0 0 22px; }
.ed h3 { font-size: 23px; margin: 0 0 14px; }
.ed p { margin-top: 0; }
.ed-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--app-primary); margin-bottom: 24px; }
.ed-lead { font-size: 18px; line-height: 1.75; color: var(--app-muted); max-width: 540px; }
.ed-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; padding-top: 64px; padding-bottom: 68px; }
.ed-hero__visual { margin: 0; position: relative; }
.ed-hero__visual img { width: 100%; height: 560px; object-fit: cover; object-position: right center; border-radius: 24px; display: block; }
.ed-hero__visual figcaption { position: absolute; left: 24px; right: 24px; bottom: 24px; padding: 20px 24px; background: rgba(255,253,249,.95); border-radius: 14px; font-size: 14px; color: var(--app-muted); }
.ed-hero__visual figcaption strong { display: block; font-size: 19px; color: var(--app-text); font-weight: 500; }
.ed-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 30px 0 16px; }
.ed-actions .btn { padding: 14px 23px; font-size: 15px; font-weight: 600; }
.ed-secondary { border: 1px solid var(--app-border); background: transparent; color: var(--app-text); }
.ed-secondary:hover { background: var(--app-surface); border-color: var(--app-primary); }
.ed-note { font-size: 13px; color: var(--app-muted); }
.ed-values { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--app-border); border-bottom: 1px solid var(--app-border); padding: 27px 0; gap: 30px; }
.ed-values div { display: flex; align-items: baseline; gap: 18px; }
.ed-values span { color: var(--app-primary); font-size: 12px; }
.ed-values p { margin: 0; font-size: 15px; }
.ed-section { padding-top: 88px; padding-bottom: 88px; }
.ed-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 32px; }
.ed-heading h2 { margin-bottom: 0; max-width: 680px; }
.ed-heading > p { max-width: 340px; color: var(--app-muted); }
.ed-link { color: var(--app-primary); text-decoration: none; border-bottom: 1px solid var(--app-border); padding: 10px 0; display: inline-block; }
.ed-examples { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.ed-person { display: block; color: var(--app-text); text-decoration: none; }
.ed-person:hover { color: var(--app-primary); }
.ed-person img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 30%; border-radius: 18px; background: var(--app-surface-soft); }
.ed-person h3 { font-size: 21px; margin: 18px 0 6px; }
.ed-person p { font-size: 13px; color: var(--app-muted); }
.ed-band { background: #eee9e2; }
.ed-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; padding: 0; list-style: none; margin: 40px 0 0; }
.ed-steps li { border-top: 1px solid #ccc2b6; padding-top: 22px; }
.ed-steps span { display: block; color: var(--app-primary); margin-bottom: 32px; font-size: 13px; }
.ed-steps p { color: var(--app-muted); }
.ed-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.ed-split > img { width: 100%; aspect-ratio: 1.1; object-fit: cover; border-radius: 24px; }
.ed-list { list-style: none; padding: 0; margin: 28px 0; }
.ed-list li { padding: 13px 0; border-bottom: 1px solid var(--app-border); }
.ed-list li::before { content: '↗'; color: var(--app-primary); margin-right: 14px; }
.ed-faq { max-width: 860px; margin: 0 auto; }
.ed-faq details { border-bottom: 1px solid var(--app-border); padding: 22px 0; }
.ed-faq summary { font-size: 19px; font-weight: 500; cursor: pointer; min-height: 44px; padding: 8px 30px 8px 0; }
.ed-faq details p { color: var(--app-muted); margin: 10px 0 8px; max-width: 710px; }
.ed-final { background: var(--app-primary); color: #fff; padding: 56px; border-radius: 24px; display: flex; gap: 40px; align-items: center; justify-content: space-between; margin-bottom: 72px; }
.ed-final h2 { color: #fff; max-width: 690px; margin-bottom: 14px; }
.ed-final p { color: #e3eaf0; margin-bottom: 0; }
.ed-final .btn { background: #fff; color: var(--app-primary); padding: 16px 24px; flex-shrink: 0; }
.ed-page-intro { max-width: 780px; padding: 70px 0 40px; }
.ed-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ed-plan { padding: 40px; border: 1px solid var(--app-border); border-radius: 24px; background: var(--app-surface); }
.ed-plan--featured { border: 2px solid var(--app-primary); }
.ed-price { font-size: 44px; letter-spacing: -.04em; margin: 24px 0 0; }
.ed-plan .btn { width: 100%; padding: 15px 20px; }
.partner-info { --partner-primary: var(--app-primary); }
.partner-info-hero { background: #eee9e2; }
.partner-info-economics { background: var(--app-primary-hover); }
.partner-info-economics .partner-info-eyebrow { color: #e9edf0; }
.site-header-nav { background: transparent; border-bottom: 0; }
.site-header-link--accent { background: var(--app-primary); color: #fff; border-color: var(--app-primary); }
.partner-info h1 { font-size: clamp(38px,4.5vw,60px); font-weight: 500; letter-spacing: -.045em; }
.partner-info h2 { font-weight: 500; letter-spacing: -.035em; }
.partner-info-offer,.partner-info-types article,.partner-info-cta { background: var(--app-surface); border-color: var(--app-border); box-shadow: none; }
.partner-info-eyebrow,.partner-info-link { color: var(--app-primary); }
/* Public memorial: preserve editor styling and all content/permission logic. */
.memory-page-shell--public { width: 100%; max-width: 1160px; margin: 0 auto; padding-top: 24px; }
.person-breadcrumb { font-size: 13px; margin-bottom: 24px; color: var(--app-muted); display: flex; flex-wrap: wrap; gap: 12px; }
.person-breadcrumb a { color: inherit; text-decoration: none; }
.person-portrait { display: grid; grid-template-columns: 300px minmax(0,1fr); align-items: center; gap: 56px; padding: 36px; border: 1px solid var(--app-border); border-radius: 24px; background: var(--app-surface); margin-bottom: 28px; }
.person-portrait__photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 25%; border-radius: 16px; background: var(--app-surface-soft); }
.person-portrait__placeholder { display: grid; place-content: center; color: var(--app-muted); }
.person-portrait h1 { font-size: clamp(32px,3.5vw,48px); overflow-wrap: anywhere; margin: 0 0 18px; }
.person-portrait h1 span { display: block; }
.person-portrait__dates { color: var(--app-muted); font-size: 17px; }
.person-portrait__epitaph { border-left: 2px solid var(--app-primary); padding-left: 20px; margin: 28px 0; font-size: 20px; line-height: 1.6; color: var(--app-muted); overflow-wrap: anywhere; }
.person-portrait .memory-page-actions { justify-content: flex-start; margin-top: 28px; }
.memory-page-shell--public .memory-page-story-panel { width: 100%; margin: 0; background: transparent; padding: 0; box-shadow: none; border: 0; }
.memory-page-shell--public .memory-page-section { border: 1px solid var(--app-border); border-radius: 20px; box-shadow: none; background: var(--app-surface); padding: 28px; }
.memory-page-shell--public .memory-page-toc { background: transparent; border: 0; border-top: 1px solid var(--app-border); border-bottom: 1px solid var(--app-border); border-radius: 0; padding: 8px 0; margin: 0 0 28px !important; }
.memory-page-shell--public section[id] { scroll-margin-top: 110px; }
.memory-page-shell--public .memory-page-public-columns { margin-top: 0; }
.memory-page-shell--public .memory-page-share { width: 100%; margin-left: 0; margin-right: 0; }
.memory-page-shell--public .share-trigger { min-height: 44px; border-radius: 12px; white-space: normal; }
.memory-page-shell--public .memory-page-toc { flex-wrap: nowrap; overflow-x: auto; }
.memory-page-shell--public .memory-page-photo-caption { position: static; display: block; background: var(--app-surface); color: var(--app-muted); text-align: left; font-size: 12px; line-height: 1.45; padding: 10px; }
.memory-page-shell--public .memory-page-photo-tile { border: 1px solid var(--app-border); align-self: start; }
.memory-page-shell--public h2 { font-size: 25px; font-weight: 500; letter-spacing: -.025em; }
.memory-page-shell--public h3 { font-weight: 500; }
.memory-page-shell--public .memory-page-justified { text-align: left; font-size: 17px; line-height: 1.85; color: var(--app-text); overflow-wrap: anywhere; }
.memory-page-shell--public .memory-page-section[id] { scroll-margin-top: 110px; }
@media (max-width: 992px) {
  .ed-hero { gap: 28px; padding-top: 40px; }
  .ed-hero__visual img { height: 490px; }
  .ed-split { gap: 32px; }
  .person-portrait { grid-template-columns: 240px minmax(0,1fr); gap: 30px; }
  .ed-final { padding: 40px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .site-header-inner { min-height: 70px; }
  .ed h1 { font-size: 41px; }
  .ed h2 { font-size: 32px; }
  .ed-hero { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; gap: 28px; }
  .ed-hero__visual img { height: 390px; }
  .ed-hero__visual figcaption { left: 16px; right: 16px; bottom: 16px; padding: 16px; }
  .ed-eyebrow { margin-bottom: 18px; }
  .ed-lead { font-size: 16px; }
  .ed-values { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
  .ed-section { padding-top: 52px; padding-bottom: 52px; }
  .ed-heading { display: block; }
  .ed-heading > p { margin-top: 20px; }
  .ed-examples { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; }
  .ed-person h3 { font-size: 17px; }
  .ed-person img { aspect-ratio: 4/5; border-radius: 12px; }
  .ed-steps,.ed-split,.ed-plans { grid-template-columns: 1fr; gap: 28px; }
  .ed-steps span { margin-bottom: 18px; }
  .ed-final { padding: 28px; margin-bottom: 40px; gap: 26px; }
  .ed-final .btn { width: 100%; }
  .ed-plan { padding: 28px; }
  .ed-page-intro { padding-top: 40px; }
  .person-portrait { grid-template-columns: 1fr; padding: 24px; gap: 28px; }
  .person-portrait__photo { max-width: 270px; margin: 0 auto; display: block; }
  .person-portrait__placeholder { display: grid; }
  .person-portrait h1 { font-size: 34px; }
  .person-portrait .ed-eyebrow { margin-bottom: 14px; }
  .person-portrait__epitaph { font-size: 18px; }
  .memory-page-shell--public .memory-page-section { padding: 22px; }
  .memory-page-shell--public .memory-page-toc { padding: 18px 0; }
  .memory-page-shell--public .memory-page-justified { font-size: 16px; line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) { .app-root *, .app-root *::before, .app-root *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
