/* Canonical cards and article layout: replaces accumulated card rules. */
.home-posts,#memory-posts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:12px 0;align-items:stretch}
.home-story,.memory-post{box-sizing:border-box;height:auto;min-height:0;min-width:0;margin:0;padding:16px;display:flex;flex-direction:column;overflow-wrap:anywhere}
.home-story-meta,.post-meta{flex-shrink:0;min-height:0;flex-wrap:nowrap;margin:0 0 8px;gap:8px;line-height:1.4}
.home-story-meta strong,.post-author{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:1rem;line-height:1.4}
.home-story h3,.memory-post h3{flex-shrink:0;height:auto;min-height:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:1.125rem;line-height:1.4;margin:0 0 8px}
.home-story .story-excerpt,.memory-post .post-content{flex:none;min-height:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;white-space:normal;line-height:1.6;font-size:1rem;margin:0 0 8px}
.home-story .read-story,.post-read-link{display:inline-flex;align-items:center;align-self:flex-start;flex-shrink:0;min-height:44px;padding:4px 0;border:0;border-radius:0;background:transparent;color:#713c80;text-decoration:underline;text-underline-offset:3px;font-size:.9375rem;font-weight:600;margin:0}
.story-actions,.post-actions{flex-shrink:0;min-height:0;align-content:flex-start;gap:8px;flex-wrap:wrap;margin:4px 0;padding:0}
.story-status,.post-action-status{flex-shrink:0;min-height:0;max-height:none;overflow:visible;font-size:.875rem;line-height:1.5;margin:4px 0 0}
.story-status:empty,.post-action-status:empty,#home-memory-status:empty,#home-gratitude-status:empty{display:none}
.post-reading-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:auto;min-width:0}
.post-reading-footer .post-readers{margin-left:auto;font-size:.875rem;color:#607086;line-height:1.5}
.post-reading-footer .post-read-link,.post-reading-footer .read-story{margin:0}
.chs-shell.memories-page:not(.reading-post) .memory-post .post-content{font-size:1rem;line-height:1.6}
.chs-shell.memories-page:not(.reading-post) .memory-post h3{min-height:0}
.reading-post .memories-sidebar,.reading-post #my-writing,.reading-post .writing-page-image,.reading-post .memories-heading>p,.reading-post #open-page-intro,.reading-post #admin-link,.reading-post .feed-heading{display:none!important}
.chs-shell.reading-post .memories-main{width:min(840px,calc(100% - 32px));margin:20px auto 28px}
.chs-shell.reading-post .memories-heading{max-width:76ch;margin:0 auto 12px}
.chs-shell.reading-post .writing-title-row{margin:0;gap:12px}
.chs-shell.reading-post .writing-title-row h1{font-size:clamp(1.375rem,2.3vw,1.625rem);line-height:1.35;margin:0;overflow-wrap:anywhere}
.reading-post .memories-layout{display:block;margin:0}
.reading-post #memory-posts{display:block;margin:0}
.chs-shell.reading-post .memory-post{height:auto;min-height:0;max-width:76ch;margin-inline:auto;padding:20px}
.reading-post .memory-post h3{display:none}
.chs-shell.reading-post .memory-post .post-content{display:block;overflow:visible;max-height:none;white-space:pre-wrap;font-size:1.0625rem;line-height:1.7;flex:none;margin:0}
.chs-shell.reading-post .post-meta{margin-bottom:12px}
.reading-post .post-reading-footer{margin-top:12px}
.reading-post .post-actions{margin-top:8px}
.post-back-link{display:inline-flex;align-items:center;min-height:44px;padding:4px 0;font-size:.9375rem;font-weight:600;margin:0}
.post-bottom-back{display:block;margin-top:12px}
@media(max-width:650px){.home-posts,#memory-posts{grid-template-columns:1fr;gap:12px}.home-story,.memory-post{padding:12px}.chs-shell.reading-post .memories-main{width:calc(100% - 24px);margin:12px auto 20px}.chs-shell.reading-post .memory-post{padding:14px}}
