/* Posts on HubHive 2.0: the Post card, photos, clips with captions and overlays, polls, articles, comments and the
   composer. Phone first: everything fits 360px with a 16px gutter. */
.hh-post-list { display: flex; flex-direction: column; gap: 14px; }
.hh-post { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hh-post.is-held { border-style: dashed; }
.hh-post-head { display: flex; gap: 10px; align-items: flex-start; }
.hh-post-avatar { width: 40px; height: 40px; font-size: 16px; }
.hh-post-who { flex: 1; min-width: 0; line-height: 1.3; }
.hh-post-who a { color: inherit; text-decoration: none; }
.hh-post-meta { font-size: 13px; }
.hh-post-tools { display: flex; gap: 2px; flex-wrap: wrap; }
.hh-post-note { margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--hh-honey-soft); color: var(--hh-honey-ink); font-size: 14px; }
.hh-post-body p, .hh-comment-body p { margin: 0 0 8px; overflow-wrap: anywhere; }
.hh-post-body p:last-child, .hh-comment-body p:last-child { margin-bottom: 0; }
.hh-mention { font-weight: 600; }
.hh-post-cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; }
.hh-article-title { margin: 4px 0; font-size: 22px; line-height: 1.25; }
.hh-article-title a { color: inherit; text-decoration: none; }
.hh-post-page .hh-article-title { font-size: 28px; }
.hh-article-body { font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.hh-article-body pre { overflow-x: auto; background: #f1f5f9; padding: 10px; border-radius: 8px; }
.hh-article-body blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--hh-honey); color: var(--hh-muted); }

.hh-photos { display: grid; gap: 4px; border-radius: 10px; overflow: hidden; }
.hh-photos-2, .hh-photos-4 { grid-template-columns: 1fr 1fr; }
.hh-photos-3 { grid-template-columns: 1fr 1fr 1fr; }
.hh-photos figure { margin: 0; position: relative; }
.hh-photos img { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: cover; aspect-ratio: auto; }
.hh-photos-2 img, .hh-photos-3 img, .hh-photos-4 img { aspect-ratio: 1 / 1; }
.hh-photos figcaption { font-size: 13px; color: var(--hh-muted); padding: 4px 2px; }

.hh-clip { position: relative; border-radius: 10px; overflow: hidden; background: #000; }
.hh-clip video { display: block; width: 100%; max-height: 640px; }
.hh-clip-layer { position: absolute; inset: 0; pointer-events: none; }
.hh-overlay { position: absolute; transform: translate(-50%, -50%); padding: 4px 10px; border-radius: 8px; font-weight: 800;
  text-align: center; max-width: 90%; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.hh-overlay.is-white { color: #fff; } .hh-overlay.is-black { color: #000; text-shadow: none; background: rgba(255, 255, 255, .8); }
.hh-overlay.is-honey { color: #fde68a; } .hh-overlay.is-red { color: #fca5a5; }
.hh-overlay.is-blue { color: #bfdbfe; } .hh-overlay.is-green { color: #bbf7d0; }
.hh-overlay.is-s { font-size: 14px; } .hh-overlay.is-m { font-size: 20px; } .hh-overlay.is-l { font-size: 28px; }
.hh-clip-caption { position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%); max-width: 90%; background: rgba(0, 0, 0, .7);
  color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 15px; pointer-events: none; text-align: center; }
.hh-clip-offerings { display: flex; gap: 6px; flex-wrap: wrap; }
.hh-clip-offerings a { text-decoration: none; }
.hh-clips-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.hh-clip-tile { flex: 0 0 min(78vw, 300px); margin: 0; scroll-snap-align: start; }
.hh-clip-tile video { aspect-ratio: 9 / 16; object-fit: cover; }
.hh-clip-tile figcaption { padding: 6px 2px; font-size: 14px; display: flex; gap: 6px; flex-wrap: wrap; }

.hh-poll { display: flex; flex-direction: column; gap: 6px; }
.hh-poll-option { position: relative; display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 12px;
  border: 1px solid var(--hh-line); border-radius: 10px; background: var(--hh-card); font: inherit; cursor: pointer; overflow: hidden; text-align: left; }
.hh-poll-option:disabled { cursor: default; }
.hh-poll-option.is-mine { border-color: var(--hh-honey); font-weight: 700; }
.hh-poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--hh-honey-soft); transition: width .3s; }
.hh-poll-text, .hh-poll-pct { position: relative; }
.hh-poll-total { margin: 0; font-size: 13px; }

.hh-post-actions { display: flex; gap: 4px; flex-wrap: wrap; border-top: 1px solid var(--hh-line); padding-top: 6px; }
.hh-post-actions .is-on, .hh-comment-actions .is-on { color: #dc2626; }

.hh-post-page { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.hh-comments { margin-top: 4px; }
.hh-comment { padding: 10px 0; border-bottom: 1px solid var(--hh-line); }
.hh-comment.is-reply { margin-left: 28px; }
.hh-comment.is-held { opacity: .85; }
.hh-comment-head { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.hh-comment-head a { color: inherit; text-decoration: none; }
.hh-comment-actions { display: flex; gap: 2px; flex-wrap: wrap; }
.hh-reply-form { margin-top: 6px; }

.hh-composer { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.hh-composer-kinds { display: flex; gap: 2px; overflow-x: auto; }
.hh-composer-kinds .is-on { background: var(--hh-honey-soft); color: var(--hh-honey-ink); }
.hh-composer-draft { flex-wrap: nowrap; margin-top: 6px; }
.hh-composer-draft input { flex: 1; min-width: 0; }
.hh-composer-foot { justify-content: flex-end; margin-top: 8px; }
.hh-join-note { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
@media (max-width: 480px) {
  .hh-comment.is-reply { margin-left: 14px; }
  .hh-post-page .hh-article-title { font-size: 24px; }
}
