/* Euonia book club front-end fixes (2026-11-21). Load only on /book-clubs/. */

/* F1. Linked-book card: the fallback cover is 40px wide with 12px padding, so the book
   title wraps one or two letters per line and spills out of the card. Show the icon only. */
.bc-linked-book .bc-cover.bc-cover-fallback{padding:0!important;overflow:hidden;justify-content:center;align-items:center}
.bc-linked-book .bc-cover.bc-cover-fallback>span{display:none!important}
.bc-linked-book .bc-cover.bc-cover-fallback .esc-icon{display:block!important;width:18px;height:18px;margin:0}

/* F2. Floating chat (#ech-widget-toggle) and "My poster" (#eusd-floating) buttons sit over the
   right-aligned "Reply" / "Post to club" buttons when those are near the bottom of the screen.
   While a member is writing in any club form, fade them out and let clicks pass through. */
body:has(.bc-app form[data-club-form]:focus-within) #ech-widget-toggle,
body:has(.bc-app form[data-club-form]:focus-within) #eusd-floating{opacity:0!important;pointer-events:none!important;transition:opacity .2s}
.bc-app form[data-club-form] button[type=submit]{scroll-margin-bottom:110px}

/* F3. Welcome posts run text together ("...Fable Circle.We are glad...", "together!Meet our new member"). */
.bc-post-content p:has(> img[src*="escore_club_welcome_poster"])>strong{display:block;margin:10px 0 4px}
.bc-post-content p:has(> img[src*="escore_club_welcome_poster"])>a{display:block;margin-top:6px}

/* 1.3.0: Delete controls on the member's own posts and replies. */
.bc-post-menu form.bc-inline{display:inline-flex!important;align-items:center;margin:6px 18px 0 0!important;vertical-align:middle}
.bc-app .ecf-delete-button{color:#a3342b!important}
.bc-reply .ecf-reply-delete{display:inline-flex!important;margin:0 0 0 8px!important;vertical-align:baseline}
.bc-reply .ecf-reply-delete .ecf-delete-button{font-size:11px;padding:0;background:none;border:0;cursor:pointer;text-decoration:underline}
.bc-reply .ecf-reply-delete .bc-form-status:empty{display:none}
.ecf-archived-own{font-size:13px;padding:10px 14px!important;margin-bottom:12px}
.ecf-archived-own summary{cursor:pointer;color:#693f86}
.ecf-archived-own ul{list-style:none;margin:8px 0 0;padding:0}
.ecf-archived-own li{display:flex;gap:10px;align-items:baseline;justify-content:space-between;border-top:1px solid #eadfce;padding:6px 0}
.ecf-archived-own li>span{flex:1;min-width:0;overflow-wrap:anywhere}
