/* Cards for posts from X, shared by tweets.html and inmate.html (see postCardHTML in roster.js). */
.post { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.post-avatar { width: 36px; height: 36px; border-radius: 50%; background: #f1f5f9; flex-shrink: 0; object-fit: cover; }
.post-who { min-width: 0; flex: 1; line-height: 1.3; }
.post-name { font-weight: 700; font-size: 14px; }
.post-handle { color: #64748b; font-size: 12px; }
.post-kind { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; margin-left: 6px; }
.post-kind a { color: inherit; }
.post-time { color: #64748b; font-size: 12px; white-space: nowrap; text-align: right; }
.post-time a { color: inherit; text-decoration: none; }
.post-time a:hover { text-decoration: underline; color: #1e40af; }
.post-text { font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-text a { color: #1e40af; }
.post-media { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.post-media a { position: relative; display: block; }
.post-media img { max-height: 220px; max-width: 100%; border-radius: 6px; border: 1px solid #e2e8f0; display: block; background: #f1f5f9; }
.post-media .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.post-link { display: block; margin-top: 10px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 6px; text-decoration: none; color: #1a1a1a; font-size: 13px; }
.post-link:hover { background: #f8fafc; border-color: #94a3b8; }
.post-link-domain { display: block; color: #64748b; font-size: 11px; margin-top: 2px; }
.post-matches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e2e8f0; }
.post-match { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; border: 1px solid #e2e8f0; border-radius: 6px; padding: 5px 10px 5px 5px; font-size: 12px; max-width: 100%; }
.post-match:hover { border-color: #1e40af; background: #f0f4ff; }
.post-match-thumb { width: 32px; height: 32px; border-radius: 4px; object-fit: cover; background: #f1f5f9; flex-shrink: 0; }
.post-match-name { font-weight: 700; color: #1e40af; white-space: nowrap; }
.post-match-charge { color: #64748b; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conf { padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.conf-high { background: #dcfce7; color: #16a34a; }
.conf-medium { background: #fef3c7; color: #d97706; }
.conf-possible { background: #f3e8ff; color: #9333ea; }
.conf-low { background: #f1f5f9; color: #64748b; }
.post-why { font-size: 12px; color: #64748b; margin-top: 10px; padding-top: 8px; border-top: 1px dashed #e2e8f0; }
.post-why .conf { margin-right: 6px; }
@media (max-width: 600px) {
  .post-match-charge { display: none; }
}
