/* ===== Show & Tell shared styles (home showcase, column list, detail page) =====
   Loaded AFTER the page's own <style> so these rules win on equal specificity.
   Keeps the three places visually and behaviourally identical. *//* ---- Like badge: red Zhong / green fa-cai + thumb + number ----
   The thumb (👍) is twice the size of the Zhong / fa-cai tiles (34px vs 17px)
   and has a press / scale animation. Numbers are NOT bold. The badge is a real
   button: it likes on its own and never falls through to the detail page. */
.like-badge {display:inline-flex;align-items:center;gap:6px;color:var(--jade);vertical-align:middle;padding:2px 4px;margin:-2px -4px;border:none;background:none;font-family:inherit;cursor:pointer;border-radius:10px;transition:background .15s ease;-webkit-tap-highlight-color:transparent}.like-badge:hover {background:rgba(63,116,100,.08)}.like-badge.post-like:hover,
.like-badge.is-host:hover {background:rgba(192,57,43,.08)}.like-badge.post-like,
.like-badge.is-host {color:#C0392B}.like-badge .num {color:inherit;font-weight:400;font-size:14px;line-height:1;font-variant-numeric:tabular-nums}.like-badge.liked {cursor:default}.like-badge.liked .thumb {animation:likePop .35s ease}@keyframes likePop {0%{transform:scale(1)}45%{transform:scale(1.35)}100%{transform:scale(1)}}.zhong-icon,
.fa-icon {width:17px;height:17px;flex:none;display:block}.thumb {width:34px;height:34px;flex:none;display:block;color:inherit;transition:transform .12s ease}.thumb:hover {transform:scale(1.12)}.thumb:active {transform:scale(.85)}/* ---- Clickable cards: desktop lift + border colour + pointer cursor ---- */
.post-main,
.reply-main {position:relative;cursor:pointer}.post,
.reply {position:relative;transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease}.post:hover,
.reply:hover {border-color:var(--celadon);box-shadow:0 22px 44px rgba(63,116,100,.16);transform:translateY(-2px)}/* ---- Owner delete: the mailbox's grey trash, inline right of the like
    badge (margin-left:12px on top of the row gap, wrapping with the name
    when it is long). Only my own post / reply ever carries one. ---- */
.post-del {flex:none;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;margin-left:12px;padding:0;border:none;border-radius:999px;background:none;color:#A8A29E;opacity:.5;cursor:pointer;transition:opacity .18s ease,color .18s ease;-webkit-tap-highlight-color:transparent}.post-del:hover {opacity:.9;color:#8A8580}.post-del:disabled {opacity:.25;cursor:default}.post-del svg {width:16px;height:16px;display:block}/* Failed delete: one quiet red line under the card, gone in 3 seconds. */
.del-msg {font-size:12px;font-weight:700;color:#FF3B30;margin:8px 2px 0;transition:opacity .25s ease}/* ---- Main line: avatar + name (Nunito sans-serif) ---- */
.post-who {display:flex;align-items:center;gap:11px}.post-name {font-family:'Nunito',sans-serif;font-size:20px;font-weight:800;color:var(--ink);line-height:1.2;margin:0}.post-name-wrap {display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px}.post-text {font-size:18px;line-height:1.5;color:var(--ink);margin:12px 0 16px}/* ---- See more: a small, readable pill on the main post only ---- */
.see-more {font-family:'Nunito',sans-serif;font-size:13px;font-weight:800;color:var(--jade);background:rgba(63,116,100,.10);border:1px solid rgba(63,116,100,.22);border-radius:999px;padding:3px 12px;margin-left:8px;cursor:pointer;white-space:nowrap;flex:none;transition:.18s ease}.see-more:hover {background:var(--jade);color:#fff;border-color:var(--jade)}/* ---- Foot line: "Pin City, ST · time" (and See more on the main post) ---- */
.post-foot,
.reply-foot {display:flex;align-items:center;gap:6px;margin-top:7px;font-size:16px;font-weight:700;color:var(--ink-soft);letter-spacing:.01em}.reply-foot {font-size:14px;margin-top:8px}.post-foot-inner {display:inline-flex;align-items:center;gap:6px;min-width:0}.pin {width:16px;height:16px;flex:none;display:block;background:none;border:none;padding:0;margin:0;box-shadow:none;border-radius:0}/* ---- 5-line clamp on the home showcase and the column (detail shows all) ---- */
.post-text.clamp5,
.reply-text.clamp5 {display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}/* ---- Hint chevron: always visible (faint) so phones without hover know it
   opens; flips to point up when the box is open ---- */
.reply-toggle {position:absolute;right:4px;bottom:2px;font-size:18px;line-height:1;color:var(--ink-soft);opacity:.4;transition:transform .22s ease, opacity .22s ease;pointer-events:none;user-select:none}.post-main.is-open .reply-toggle,
.reply-main.is-open .reply-toggle {transform:rotate(180deg);opacity:.9}/* ---- Replies: embedded below the main post ---- */
.replies {margin-top:16px;padding-top:14px;border-top:1px solid var(--line);display:grid;gap:14px}.replies.is-empty {display:none}.reply {padding-left:16px;padding-right:16px;border-left:2px solid rgba(164,197,182,.55)}.reply-who {display:flex;flex-wrap:wrap;align-items:center;gap:8px}.reply-name {font-family:'Nunito',sans-serif;font-size:16px;font-weight:800;color:var(--ink);line-height:1.2}.reply-text {font-size:15.5px;line-height:1.45;color:var(--ink-soft);margin:7px 0 0}.reply.lvl3 {padding-left:16px;padding-right:16px;border-left:2px solid rgba(246,216,221,.95)}.reply.lvl3 .reply-text {font-size:14px}.reply-children {margin-top:10px;padding-left:16px;padding-right:30px}/* ---- Photo post: champagne-gold frame + soft shadow ---- */
.post-photo-wrap {margin:0 0 14px;padding:7px;background:linear-gradient(160deg,#FFFDF7,#FBEDEE);border:1px solid var(--gold-l);border-radius:var(--r-lg);box-shadow:var(--shadow)}/* ---- Inline reply composer: one open at a time, slides open with CSS ---- */
.reply-box-wrap {overflow:hidden;max-height:0;opacity:0;transition:max-height .25s ease, opacity .2s ease}.reply-box-wrap.open {max-height:380px;opacity:1;margin:12px 0 4px}/* A picked photo needs room: the wrap grows so the Send button can never be
   clipped or pushed out of reach by the preview (any nesting level). */
.reply-box-wrap.has-img.open {max-height:1600px}.reply-box {margin:0}.reply-input {width:100%;min-height:84px;resize:vertical;font-family:'Nunito',sans-serif;font-size:16px;line-height:1.5;color:var(--ink);background:#fff;border:1px solid #D8D8D8;border-radius:18px;padding:14px 16px;box-sizing:border-box}.reply-input:focus {outline:none;border-color:#A9A9A9}.reply-row {display:flex;align-items:center;gap:12px;margin-top:10px}.reply-btn {font-family:'Nunito',sans-serif;font-size:15px;font-weight:800;color:#fff;background:linear-gradient(170deg,var(--rose-l),var(--blush) 60%,var(--rose-d));border:none;border-radius:999px;padding:11px 26px;cursor:pointer;transition:filter .18s,opacity .18s}.reply-btn:hover {filter:brightness(1.04)}.reply-btn:disabled {opacity:.55;cursor:default}.reply-msg {font-size:14px;font-weight:700;margin:10px 2px 0;color:var(--jade)}/* Blocked / too-large image warnings: smallest type, red, gone in 3 seconds. */
.share-msg,.reply-msg {transition:opacity .25s ease}.share-msg.is-on,.reply-msg.is-on {font-size:12px;color:#FF3B30}/* Send stays clickable while an image error is on screen, but it looks locked
   so it is obvious the photo has to be fixed or removed before posting. */
.feed-share-btn.is-blocked,.reply-btn.is-blocked {opacity:.45;cursor:not-allowed}/* The preview and the message line are shown/hidden with the hidden attribute,
   which any author display rule would silently override. */
.img-thumb[hidden],.share-msg[hidden],.reply-msg[hidden] {display:none!important}/* ---- Share / sign-in hints ---- */
.share-box {margin:6px 0 22px}.share-input {width:100%;min-height:84px;resize:vertical;font-family:'Nunito',sans-serif;font-size:16px;line-height:1.5;color:var(--ink);background:#fff;border:1px solid #D8D8D8;border-radius:18px;padding:14px 16px;box-sizing:border-box}.share-input:focus {outline:none;border-color:#A9A9A9}.share-row {display:flex;align-items:center;gap:12px;margin-top:10px}.share-count {font-size:13px;color:var(--ink-soft);font-weight:700;margin-right:auto}.feed-share-btn {font-family:'Nunito',sans-serif;font-size:15px;font-weight:800;color:#fff;background:linear-gradient(170deg,var(--rose-l),var(--blush) 60%,var(--rose-d));border:none;border-radius:999px;padding:11px 26px;cursor:pointer;transition:filter .18s,opacity .18s}.feed-share-btn:hover {filter:brightness(1.04)}.feed-share-btn:disabled {opacity:.55;cursor:default}.signin-hint {display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:4px 0 22px;padding:14px 16px;background:var(--pale);border:1px solid var(--line);border-radius:18px;font-size:15px;font-weight:700;color:var(--ink-soft)}.login-cta {font-family:'Nunito',sans-serif;font-size:14px;font-weight:800;color:#fff;background:linear-gradient(170deg,var(--rose-l),var(--blush) 60%,var(--rose-d));border:none;border-radius:999px;padding:9px 22px;cursor:pointer;text-decoration:none}/* ---- Show & Tell inline image (JPEG data URL, one per post / reply) ----
   The card's border is the only ruler: a large photo is limited by width
   alone (never stretched, never cropped, never capped in height), a small
   photo keeps its natural size. Centred, hairline border, rounded - and
   never a grey block behind it. */
.post-image-wrap {display:flex;justify-content:center;align-items:center;margin:4px 0 14px}.post-image {display:block;max-width:100%;height:auto;border:1px solid #E5E5E5;border-radius:12px}/* The legacy avatar rule (.post img: 56px circle + object-fit:cover) is a
   (0,1,1) selector and out-specifies the bare .post-image above, so every
   uploaded photo was being crushed into a tiny avatar circle. Re-assert the
   real photo rule at higher specificity (0,2,1): the card border is the only
   ruler - large photos scale down proportionally, small photos keep their
   natural size, nothing is stretched, nothing is cropped into a circle. */
.post .post-image,
.reply .post-image,
.bubble .post-image {display:block;width:auto;max-width:100%;height:auto;object-fit:contain;border:1px solid #E5E5E5;border-radius:12px}/* Legacy photo wrapper (pre-JPEG rows): the same plain rule as every image -
   no gold frame, no shadow, no grey block, no crop. This file loads after the
   page styles, so these win over the old .post-photo rules wherever they were
   declared. */
.post-photo-wrap {display:flex;justify-content:center;align-items:center;margin:4px 0 14px;padding:0;background:none;border:0;box-shadow:none}/* ---- Inline image picker (one image per post / reply) ---- */
.img-thumb {position:relative;display:flex;justify-content:center;align-items:center;margin:0 0 12px;padding:0;background:none;border:0;box-shadow:none}.img-thumb img {display:block;max-width:100%;height:auto;border:1px solid #E5E5E5;border-radius:12px}.img-remove {position:absolute;top:11px;right:11px;width:26px;height:26px;border:none;border-radius:99px;background:rgba(0,0,0,.55);color:#fff;font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}.img-remove:hover {background:rgba(0,0,0,.75)}.img-pick {display:flex;align-items:center;margin-top:10px}.img-add {display:inline-flex;align-items:center;gap:7px;font-family:'Nunito',sans-serif;font-size:14px;font-weight:800;color:var(--ink-soft);background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 16px;cursor:pointer;transition:filter .18s,border-color .18s}.img-add:hover {filter:brightness(.98);border-color:var(--celadon)}.img-add svg {flex:none}.login-cta:hover {filter:brightness(1.04)}.feed-loading,
.feed-empty {font-size:16px;color:var(--ink-soft);font-weight:700;padding:20px 4px}/* ---- Avatar red dot badge (messages foundation). Hidden by default. ---- */
.user-ring,
.user-btn-home {position:relative}.user-badge {position:absolute;top:-1px;right:-1px;width:12px;height:12px;border-radius:50%;background:#E23B3B;box-shadow:0 0 0 2px #fff;display:none;z-index:2}.user-badge.show {display:block}/* Inbox icon dot: the 18px envelope needs a proportionally smaller dot than
   the ~38px avatar (12px there), so the same look scales down to 5px. */
.um-ico .user-badge {width:5px;height:5px;top:-2px;right:-2px;box-shadow:0 0 0 1.5px #fff}
/*  2026-10-30 17px 
    12px ——
   PWA .user-btn  auth.js PWA  pal.css  */
.user-btn .user-badge {width:auto;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#FF3B8B;box-shadow:0 0 0 2px #fff;color:#fff;font:700 10px/17px -apple-system,system-ui,sans-serif;text-align:center;box-sizing:border-box;top:-7px;right:-8px}
