/* Posts (js/posts.js): the box to write one, and a post's card. Like the Feed's cards (css/feed.css). */
.ps-compose { display: grid; gap: 10px; padding: 16px 18px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 2px #d3cdfb, var(--card-shadow, 0 10px 26px rgba(38, 27, 143, .09)); }
.ps-compose-top { display: flex; gap: 12px; align-items: flex-start; }
.ps-av { flex: none; width: 40px; height: 40px; text-decoration: none; }
.ps-av .acct-av { width: 40px; height: 40px; font-size: 13px; }
.ps-text { flex: 1; box-sizing: border-box; min-height: 44px; padding: 11px 14px; border: 0; border-radius: 16px; resize: none; background: #f4f2fd; color: #150e5e;
  font: 15.5px/1.45 var(--font-read); transition: min-height .2s; }
.ps-compose.is-open .ps-text { min-height: 96px; resize: vertical; }
.ps-text:focus { outline: 3px solid #a98bff; outline-offset: 0; background: #fff; }
.ps-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ps-tool { padding: 7px 11px; border: 0; border-radius: 11px; background: #f4f2fd; color: #3d3a6b; font: 600 13.5px var(--font-read); cursor: pointer; }
.ps-tool:hover { background: #e9e5fe; } .ps-tool:disabled { opacity: .5; cursor: default; }
.ps-sp { flex: 1; }
.ps-count { color: #6b6890; font-size: 12px; font-variant-numeric: tabular-nums; }
.ps-msg { color: #6b6890; font-size: 13px; }
.ps-go { padding: 9px 20px; border: 0; border-radius: 12px; background: var(--btn-go, #21167c); color: #fff; font: 800 14px var(--font-read); cursor: pointer; }
.ps-go:hover { background: var(--btn-go-hover, #3424b8); } .ps-go:disabled { opacity: .6; }
.ps-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-tags:empty { display: none; }
.ps-tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px 4px 6px; border-radius: 999px; background: #f1eefe; color: #150e5e;
  font-size: 12.5px; font-weight: 700; text-decoration: none; }
.ps-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-tag img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.ps-tag i { font-style: normal; }
a.ps-tag:hover { background: #e4defd; }
.ps-tag-x { margin-left: 2px; padding: 0 2px; border: 0; background: none; color: #6b6890; font-size: 15px; line-height: 1; cursor: pointer; }
.ps-find { display: grid; gap: 6px; }
.ps-find[hidden] { display: none; }
.ps-find input { box-sizing: border-box; width: 100%; padding: 10px 13px; border: 0; border-radius: 12px; background: #f1eefe; color: #150e5e; font: 14.5px var(--font-read); }
.ps-find input:focus { outline: 3px solid #a98bff; background: #fff; }
.ps-found { display: grid; gap: 2px; max-height: 260px; overflow-y: auto; }
.ps-hit { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; font: inherit; color: #150e5e; }
.ps-hit:hover, .ps-hit:focus-visible { background: #f4f2fd; outline: 0; }
.ps-hit img, .ps-hit > i { flex: none; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.ps-hit > i { display: grid; place-items: center; background: #ece8fd; font-style: normal; }
.ps-hit b { display: block; font-size: 14px; } .ps-hit small { display: block; color: #6b6890; font-size: 12px; }
.ps-none { margin: 4px 8px; color: #6b6890; font-size: 13px; }
.ps-photo-pre { position: relative; width: fit-content; }
.ps-photo-pre[hidden] { display: none; }
.ps-photo-pre img { display: block; max-width: min(100%, 320px); max-height: 220px; border-radius: 14px; }
.ps-photo-pre .ps-tag-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .92); }

/* a post */
.ps-post { position: relative; display: grid; gap: 10px; padding: 16px 20px; border-radius: 22px; background: #fff; box-shadow: var(--card-shadow, 0 10px 26px rgba(38, 27, 143, .09)); }
.ps-post.is-held { box-shadow: 0 0 0 2px #f0c46a, var(--card-shadow, 0 10px 26px rgba(38, 27, 143, .09)); }
.ps-post.is-removed { opacity: .75; }
.ps-top { display: flex; align-items: center; gap: 12px; }
.ps-who { display: grid; min-width: 0; flex: 1; }
.ps-name { color: #150e5e; font-weight: 800; font-size: 15px; text-decoration: none; }
.ps-name:hover { text-decoration: underline; }
.ps-meta { color: #6b6890; font-size: 12.5px; }
.ps-follows { padding: 3px 9px; border-radius: 999px; background: #efeafe; color: #4232d4; font-size: 11.5px; font-weight: 800; }
.ps-body { margin: 0; color: #1d1a40; font-size: 15.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ps-img { display: block; width: 100%; max-height: 460px; object-fit: contain; border-radius: 16px; background: #f7f5ff; }
.ps-held { margin: 0; padding: 8px 12px; border-radius: 12px; background: #fff6df; color: #7a5300; font-size: 13px; }
.ps-removed { margin: 0; padding: 8px 12px; border-radius: 12px; background: #fde6e6; color: #8a1f1a; font-size: 13px; }
.ps-acts { display: flex; align-items: center; gap: 4px; }
.ps-act { padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: #4b4870; font: 700 13.5px var(--font-read); cursor: pointer; }
.ps-act:hover:not(:disabled) { background: #f4f2fd; }
.ps-act:disabled { opacity: .5; cursor: default; }
.ps-act.is-on { color: #d0306f; }
.ps-del, .ps-flag { color: #8b88ad; font-weight: 600; }
.ps-replies { padding-top: 6px; border-top: 1px solid #efedfb; }
.ps-replies[hidden] { display: none; }
.ps-replies .cm-head { display: none; }
@media (max-width: 520px) {
  .ps-post, .ps-compose { padding: 14px 16px; }
}
