/* Family timeline (views/family.html): Feed (one column of posts) and Grid (masonry pins) */
.tl-seg { width: 150px; flex: none; }
.tl-seg button { min-height: 32px; font-size: 13px; }

/* ---- Feed: a post per log ---- */
.post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tl-feed .post + .post { margin-top: 12px; }
.post.in-sheet { border: 0; box-shadow: none; background: none; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px; }
.post-head strong { font-size: 15px; }
.post-media { display: grid; gap: 2px; width: 100%; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; }
.post-media.pair { grid-template-columns: 1fr 1fr; }
.post-media .ph { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.post-media:not(.pair) .ph { aspect-ratio: 4 / 3; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.in-sheet .post-media { border-radius: var(--radius-s); overflow: hidden; }
.post-what { display: flex; align-items: center; gap: 10px; padding: 10px 14px 0; }
.post-what strong { font-size: 15px; }
.tile.sm { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
.post-note { margin: 6px 14px 0; font-size: 14px; white-space: pre-wrap; }
.post-facts { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; }
.post-facts .pill { font-weight: 600; }
.post-react { display: flex; gap: 6px; padding: 10px 14px 12px; }
.react-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 16px; transition: transform .12s; }
.react-btn .num { font-size: 13px; font-weight: 700; }
.react-btn.on { background: var(--primary-soft); border-color: var(--primary); }
.react-btn:active { transform: scale(.92); }
.post-who-react { margin: -6px 14px 12px; font-size: 12px; color: var(--text-muted); }

/* ---- Grid: masonry pins (2 columns, 3 on wide screens) ---- */
.tl-grid { columns: 2; column-gap: 8px; }
.pin { display: block; width: 100%; break-inside: avoid; margin: 0 0 8px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.pin img { width: 100%; height: auto; display: block; }
.pin-emoji { display: grid; place-items: center; aspect-ratio: 1; font-size: 40px; }
.pin:nth-child(3n + 2) .pin-emoji { aspect-ratio: 4 / 5; }
.pin-cap { display: flex; align-items: center; gap: 6px; padding: 8px 8px 0; }
.pin-name { font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pin-react { font-size: 12px; color: var(--text-muted); flex: none; }
.pin-when { display: block; padding: 2px 8px 8px; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 560px) { .tl-grid { columns: 3; } }
