/* Post and event presentation only; dashboard layout styles are intentionally separate. */
.feed-page-header .lead,
.feed-page-header .lead > :last-child { margin-bottom: 0; }

.feed-card .post-header { display: flex; align-items: center; gap: .625rem; margin-bottom: 1rem; min-width: 0; }
.feed-card .post-avatar-image, .feed-card .post-organization-icon { width: 32px; height: 32px; flex-shrink: 0; }
.feed-card .post-organization-icon { font-size: 2rem; line-height: 1; }
.feed-card .post-byline { flex: 1; min-width: 0; }
.feed-card .post-author { font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.feed-card .post-created { display: block; font-size: .75rem; color: var(--bs-secondary-color); }
.feed-card .post-organization-badge { font-size: .65rem; }
.feed-card .post-menu { flex-shrink: 0; }
.feed-card .post-title { font-size: 1.25rem; font-weight: 600; line-height: 1.35; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.feed-card .post-context { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; font-size: .8125rem; margin-bottom: 1rem; overflow-wrap: anywhere; }
.feed-card .post-context a { min-width: 0; }
.feed-card .event-header { padding: .75rem var(--bs-card-spacer-x, 1rem); margin: calc(-1 * var(--bs-card-spacer-y, 1rem)) calc(-1 * var(--bs-card-spacer-x, 1rem)) 1rem; border-bottom: 1px solid var(--bs-border-color, #dee2e6); border-radius: var(--bs-card-inner-border-radius, .375rem) var(--bs-card-inner-border-radius, .375rem) 0 0; background: var(--bs-tertiary-bg, #f8f9fa); }
.feed-card .event-heading { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.feed-card .event-header-date { display: block; color: var(--hiq-primary); font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.feed-card .event-header-time { display: block; margin-top: .125rem; font-size: .875rem; }
.feed-card .event-header .post-menu { align-self: flex-start; }
.feed-card .event-location { display: flex; align-items: baseline; gap: .5rem; margin-bottom: 1rem; font-size: .875rem; color: var(--bs-secondary-color); overflow-wrap: anywhere; }
.feed-card .event-location > i { flex-shrink: 0; color: var(--hiq-primary); }
.feed-card .event-author { margin-top: .75rem; }
.feed-card .event-zone { display: block; color: var(--bs-secondary-color); font-size: .75rem; margin-top: .125rem; }
.feed-card .post-actions { flex-wrap: wrap; }
@media (max-width: 575.98px) {
    .feed-card .post-title { font-size: 1.125rem; }
}

.feed-card .post-copy { max-width: 72ch; }
.feed-card .post-content { --preview-lines: 5; position: relative; line-height: 1.42; overflow-wrap: anywhere; }
.feed-card .post-content.collapsed { max-height: calc(var(--preview-lines) * 1.42em); overflow: hidden; }
.feed-card .post-content.collapsed::after { content: ""; position: absolute; inset: auto 0 0; height: 1.5em; background: linear-gradient(transparent, var(--preview-surface, var(--bs-card-bg, white))); pointer-events: none; }
.feed-card .post-rich-text { display: flow-root; }
.feed-card .text-preview-toggle { margin-top: .25rem; }
.feed-card .comment-copy { font-size: .875rem; }
.feed-card .comment-copy .post-content.collapsed::after { background: linear-gradient(transparent, var(--bs-light, #f8f9fa)); }
.feed-card .comment-copy .post-content { --preview-surface: var(--bs-light, #f8f9fa); }
.feed-card .comment-item, .feed-card .comment-item-body, .feed-card .comment-meta { min-width: 0; }
.feed-card .comment-author { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-card .post-rich-text > :first-child { margin-top: 0; }
.feed-card .post-rich-text > :last-child { margin-bottom: 0; }
.feed-card .post-rich-text p { margin: 0; }
.feed-card .post-rich-text h1, .feed-card .post-rich-text h2, .feed-card .post-rich-text h3,
.feed-card .post-rich-text h4, .feed-card .post-rich-text h5, .feed-card .post-rich-text h6 { margin: 1em 0 .5em; line-height: 1.35; font-size: 1.125em; font-weight: 600; }
.feed-card .post-rich-text ul, .feed-card .post-rich-text ol { padding-left: 1.5em; margin: 0 0 .75em; }
.feed-card .post-rich-text li + li { margin-top: .25em; }
.feed-card .post-rich-text blockquote { margin: .75em 0; padding: .25em 1em; border-left: 3px solid var(--hiq-primary); color: var(--bs-secondary-color); }
.feed-card .post-rich-text a { color: var(--hiq-primary); text-decoration: underline; }
.feed-card .post-rich-text img, .feed-card .post-rich-text video, .feed-card .post-rich-text iframe { max-width: 100%; }
.feed-card .post-rich-text img { height: auto; }
.feed-card .post-rich-text pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.feed-card .post-rich-text table { display: block; max-width: 100%; overflow-x: auto; }
.feed-card .post-rich-text .ql-align-center { text-align: center; }
.feed-card .post-rich-text .ql-align-right { text-align: right; }
.feed-card .post-rich-text .ql-align-justify { text-align: justify; }
.feed-card .post-rich-text li[data-list="bullet"] { list-style-type: disc; }

.post-feed-filter .topic-filter { min-width: 0; max-width: 100%; }
.post-feed-filter .topic-filter select { width: 100%; max-width: 100%; text-overflow: ellipsis; }
@media (min-width: 768px) {
    .post-feed-filter .topic-filter { max-width: 45%; }
}
