/* ============================================
   WritingNepal — Catch feed page styles
   Extends style.css tokens.
   ============================================ */

.catch-hero{
  padding:36px 0 8px;
  text-align:center;
}
.catch-hero h1{ font-size:2rem; margin-bottom:8px; }
.catch-hero p{ color:var(--ink-soft); max-width:52ch; margin-left:auto; margin-right:auto; }
.catch-hero .beta-note{ font-size:.82rem; color:var(--gold-deep); font-weight:700; }

.catch-layout{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:32px;
  align-items:start;
  margin:28px 0 60px;
}

/* Sidebar (Writers to follow, book search, etc.) stays put once you've
   scrolled a bit, instead of disappearing off the top as the much-taller
   main feed column keeps scrolling past it. align-items:start above is
   required for this to work — sticky positioning is relative to the
   grid item's own box, which needs to NOT be stretched to match the
   feed column's height. */
.feed-sidebar{
  position:sticky;
  /* .site-header is ALSO position:sticky (top:0, 84px tall, see
     --header-h in style.css) — sticking this at a flat 24px meant the
     sidebar's top edge (and its "WRITERS TO FOLLOW" / "FIND A BOOK AND
     AUTHORS" titles) landed underneath the header once scrolled, since
     the header sits at a higher z-index and covers that region. Using
     --header-h as the base keeps the sidebar's sticky position just
     below the header instead of behind it. */
  top:calc(var(--header-h) + 24px);
}

/* ---- composer ---- */
.composer{
  background:var(--white);
  border:2px solid var(--ink);
  border-radius:var(--radius-lg);
  box-shadow:5px 5px 0 var(--gold);
  padding:20px 24px;
  margin-bottom:28px;
}
.composer-row{
  display:flex;
  align-items:center;
  gap:14px;
}
.composer-row .avatar-sm{
  width:44px; height:44px; border-radius:50%; flex:none;
  background:linear-gradient(155deg,var(--gold),var(--clay-deep));
}
.composer-avatar-link{ flex:none; display:block; }
.composer-avatar-link .avatar-sm{ display:block; }
.composer-row input,
.composer-row textarea{
  flex:1;
  border:1.5px solid var(--line);
  border-radius:999px;
  padding:12px 18px;
  font-family:inherit;
  font-size:.94rem;
  background:var(--paper);
  transition:border-color .15s ease, box-shadow .15s ease;
}
/* #statusInput specifically — a textarea rather than a single-line
   input now that statuses can run up to 300 words (see the composer's
   own "switch to a full Catch" suggestion). Pill-shaped border-radius
   only reads right on a single line, so this switches to a normal
   rounded rectangle and grows with content via JS (min/max-height
   keep it from starting too tall or growing without bound). */
#statusInput{
  border-radius:18px;
  resize:none;
  overflow:hidden;
  min-height:44px;
  max-height:400px;
  line-height:1.5;
}
.composer-row input:focus,
.composer-row textarea:focus{ outline:none; border-color:var(--clay); box-shadow:0 0 0 4px rgba(232,106,51,0.12); }
.composer-row .btn{ flex:none; padding:11px 20px; font-size:.85rem; align-self:flex-end; }
.composer-photo-link{
  flex:none; font-size:.82rem; font-weight:700; color:var(--clay-deep);
  cursor:pointer; white-space:nowrap; padding:8px 4px;
  transition:opacity .15s ease;
}
.composer-photo-link:hover{ opacity:.75; }
.composer-foot{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin-top:12px;
  padding-left:58px;
  flex-wrap:wrap;
  gap:8px;
}
/* Required specifically because .composer-foot uses display:flex above —
   any display:flex/grid declaration silently overrides the [hidden]
   attribute's own display:none unless a rule like this explicitly wins
   the specificity fight. Skipping this is exactly the bug that made the
   old separate "0 words — getting long" banner show up even at 0 words
   (same underlying pitfall, already documented elsewhere in this
   project) — not repeating it here now that this element is the one
   toggled hidden/shown instead. */
.composer-foot[hidden]{ display:none; }
.composer-foot a{ font-size:.82rem; font-weight:700; color:var(--clay-deep); transition:color .15s ease; }
/* Only ever visible at all once a status runs past the 300-word soft
   limit (see the composer's own JS) — .composer-foot itself starts
   hidden and only appears at that point, with the link's wording
   changed ("Longer for a status — ...") and the gold warning tone. */
.composer-foot a.is-long-suggestion{
  color:var(--gold-deep); font-weight:800;
}

/* ---- filter tabs ---- */
.feed-tabs{
  display:flex;
  gap:6px;
  margin-bottom:20px;
}
.feed-tabs button{
  padding:8px 18px;
  border-radius:999px;
  font-size:.85rem;
  font-weight:700;
  color:var(--ink-soft);
  border:1.5px solid var(--line);
  background:var(--white);
  transition:transform .2s var(--bounce);
}
.feed-tabs button:hover{ transform:translateY(-1px); }
.feed-tabs button.active{ background:var(--ink); color:var(--gold); border-color:var(--ink); }

/* ---- purchased catches list ---- */
.purchase-list{ display:flex; flex-direction:column; gap:10px; }
.purchase-row{
  display:flex; justify-content:space-between; align-items:center; gap:14px;
  background:var(--white); border:1px solid var(--line); border-radius:14px;
  padding:16px 18px; transition:transform .2s var(--bounce), border-color .15s ease;
}
.purchase-row:hover{ transform:translateY(-2px); border-color:var(--gold-deep); }
.purchase-info h5{ font-size:.95rem; margin:0 0 3px; color:var(--ink); }
.purchase-info p{ font-size:.78rem; color:var(--ink-soft); margin:0; }
.purchase-meta{ text-align:right; flex:none; }
.purchase-price{ display:block; font-family:'Fraunces',serif; font-weight:800; color:var(--gold-deep); font-size:1rem; }
.purchase-date{ display:block; font-size:.72rem; color:var(--ink-soft); margin-top:2px; }

/* ---- feed ---- */
.feed{ display:flex; flex-direction:column; gap:16px; }
.feed[hidden]{ display:none; }
.feed-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px 20px;
  animation:step-in .35s var(--bounce);
}
.feed-card[data-permalink]{ cursor:pointer; }
@keyframes step-in{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:translateY(0); } }
.feed-card-head{ display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.feed-card-head .avatar-sm{ width:40px; height:40px; border-radius:50%; flex:none; }
.feed-card-head .who{ flex:1; }
.feed-card-head .who h5{ margin:0; font-size:.92rem; }
.feed-card-head .who .meta{ font-size:.76rem; color:var(--ink-soft); }
.feed-card-head .who .meta a:hover{ text-decoration:underline !important; }
.feed-kind{
  font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em;
  padding:3px 9px; border-radius:999px; flex:none;
  display:inline-flex; align-items:center; gap:4px;
}
.feed-kind.status{ background:var(--paper-deep); color:var(--ink-soft); }
.feed-kind.catch{ background:#E4EFF9; color:var(--sky-deep); }
.feed-kind.book{ background:#FDECC8; color:var(--gold-deep); }
.feed-kind.ad{ background:#FCE4E9; color:var(--rose-deep); }

/* ---- post-type left-edge accent (spec A6) — regular status posts stay
   plain/baseline; Catch Cloud posts, book posts, and ads each get a
   thin colored strip so the type reads at a glance without a full
   card redesign ---- */
.feed-card[data-type="catch"]{ border-left:4px solid var(--sky); }
.feed-card[data-type="book"]{ border-left:4px solid var(--gold); }
.feed-card[data-type="ad"]{ border-left:4px solid var(--rose); }

.feed-card .body-text{ font-size:1rem; color:var(--ink); line-height:1.65; white-space:pre-line; }
.feed-card .body-text.dev{ line-height:1.9; }
.feed-card h4{ font-size:1.15rem; margin:2px 0 8px; }

.feed-actions{
  display:flex; gap:18px; margin-top:12px; margin-bottom:10px;
  font-size:.82rem; color:var(--ink-soft);
}
.feed-actions span{ display:inline-flex; align-items:center; gap:5px; }

/* like icon + "N likes" text as two separate click targets, styled to
   still read as one visual unit */
.like-cluster{ display:inline-flex; align-items:center; gap:2px; position:relative; }
.like-cluster .like-toggle{ padding-right:0; }
.like-cluster .like-count-link{ padding-left:2px; }
.like-cluster .like-count-link:hover{ text-decoration:underline; }
.likers-popover{
  position:absolute; top:100%; left:0; z-index:30; margin-top:6px;
  background:var(--white); border:1.5px solid var(--ink); border-radius:12px;
  box-shadow:3px 3px 0 var(--gold); min-width:200px; max-height:280px;
  overflow-y:auto; padding:6px;
}
.likers-loading, .likers-empty{ padding:10px 12px; font-size:.85rem; color:var(--ink-soft); margin:0; }
.likers-row{
  display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px;
  text-decoration:none; color:var(--ink); font-size:.85rem; font-weight:600;
}
.likers-row:hover{ background:var(--paper-deep); }
.likers-row .avatar-sm{ width:28px; height:28px; border-radius:50%; object-fit:cover; flex:none; }

/* ---- hover card (name in feed) ---- */
.wn-hovercard{
  position:absolute; top:100%; left:0; z-index:30; margin-top:6px;
  background:var(--white); border:1.5px solid var(--ink); border-radius:12px;
  box-shadow:3px 3px 0 var(--gold); width:260px; padding:14px;
  cursor:default; /* the trigger link's own cursor:pointer would otherwise bleed onto the whole card */
}
.wn-hovercard-loading{ font-size:.85rem; color:var(--ink-soft); margin:0; padding:4px 0; }
.wn-hovercard-head{
  display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink);
  margin-bottom:8px;
}
.wn-hovercard-head .avatar-sm{ width:40px; height:40px; border-radius:50%; object-fit:cover; flex:none; }
.wn-hovercard-head strong{ display:block; font-size:.92rem; }
.wn-hovercard-handle{ display:block; font-size:.78rem; color:var(--ink-soft); font-weight:400; }
.wn-hovercard-bio{ font-size:.82rem; color:var(--ink); line-height:1.5; margin:0 0 8px; }
.wn-hovercard-stats{
  display:flex; gap:14px; font-size:.78rem; color:var(--ink-soft); margin:0 0 10px;
}
.wn-hovercard-claim{
  font-size:.78rem; color:var(--clay-deep); font-weight:600; margin:0 0 8px;
}
.wn-hovercard-follow-btn{ width:auto; display:inline-flex; padding:7px 18px; font-size:.82rem; }

.repost-preview-author{ font-size:.76rem; color:var(--ink-soft); }

/* ---- push-to-wall modal ---- */
.push-modal-overlay{
  position:fixed; inset:0; z-index:9998;
  background:rgba(18,10,8,.5);
  display:flex; align-items:center; justify-content:center;
  padding:20px;
}
.push-modal-box{
  background:var(--white); border:1.5px solid var(--ink); border-radius:16px;
  box-shadow:5px 5px 0 var(--gold); padding:22px; max-width:420px; width:100%;
}
.push-modal-box h4{ margin:0 0 14px; }
.push-modal-box .repost-preview{ margin-top:0; margin-bottom:14px; }
.push-modal-box textarea{
  width:100%; min-height:70px; border:1.5px solid var(--line); border-radius:10px;
  padding:10px 14px; font-family:inherit; font-size:.9rem; margin-bottom:14px; resize:vertical;
}
.push-modal-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.push-modal-actions .btn{ flex:1 1 auto; padding:9px 14px; font-size:.85rem; white-space:nowrap; }
.push-modal-msg{ font-size:.82rem; margin-top:10px; min-height:1.2em; }
.push-modal-msg.err{ color:var(--rose-deep); }
.push-modal-msg.ok{ color:var(--leaf-deep); }
.push-modal-social{ margin-top:14px; padding-top:14px; border-top:1px solid var(--paper-deep); }
.push-modal-social-label{ font-size:.78rem; color:var(--ink-soft); margin:0 0 8px; }
.push-modal-social-row{ display:flex; gap:8px; flex-wrap:wrap; }
.push-social-btn{
  flex:1 1 auto;
  padding:8px 12px;
  font-size:.8rem;
  font-weight:600;
  border:1.5px solid var(--ink);
  border-radius:999px;
  background:var(--white);
  color:var(--ink);
  cursor:pointer;
  white-space:nowrap;
  transition:background .15s ease, color .15s ease;
}
.push-social-btn:hover{ background:var(--ink); color:var(--gold); }
.feed-actions .like-toggle, .feed-actions .comment-link{
  background:none; border:none; padding:0; margin:0; font:inherit; color:inherit;
  display:inline-flex; align-items:center; gap:5px; cursor:pointer;
  transition:color .15s ease, background .15s ease, padding .15s ease, border-radius .15s ease;
}
.feed-actions .like-toggle:hover, .feed-actions .comment-link:hover{ color:var(--clay-deep); }
.feed-actions .like-toggle.liked{
  background:var(--ink); color:var(--gold); font-weight:700;
  padding:3px 10px; border-radius:999px; margin:-3px 0;
}

/* book announcement card gets a distinct treatment */
.feed-card.book-announce{
  background:linear-gradient(120deg, #FFF9EC, #FDECC8);
  border-color:var(--gold-deep);
  display:flex;
  gap:16px;
}
.feed-card.book-announce .book-cover{
  width:64px; aspect-ratio:2/3; border-radius:5px; flex:none;
  background:linear-gradient(155deg,#C98F12,#3E2A05);
}
.feed-card.book-announce .content{ flex:1; }

/* ---- sidebar ---- */
.feed-sidebar > *{ margin-bottom:20px; }
.side-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
}
.side-card h4{ font-size:.85rem; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); margin-bottom:14px; }
.side-writer{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.side-writer:last-child{ margin-bottom:0; }
.side-writer .avatar-sm{ width:36px; height:36px; border-radius:50%; flex:none; }
.side-writer .info{ flex:1; }
.side-writer h5{ margin:0; font-size:.86rem; }
.side-writer p{ margin:0; font-size:.74rem; color:var(--ink-soft); }

@media (max-width: 900px){
  .catch-layout{ grid-template-columns:1fr; }
  .feed-sidebar{ position:static; } /* single-column stack on mobile — sticky here would just look broken */
}
@media (max-width: 640px){
  .composer-foot{ padding-left:0; }
  .feed-card.book-announce{ flex-direction:column; }
  .composer-row{ flex-wrap:wrap; }
  .composer-row input, .composer-row textarea{ flex:1 1 100%; order:1; }
  .composer-avatar-link{ order:0; }
  .composer-photo-link{ order:2; margin-left:58px; }
  .composer-row .btn{ order:3; margin-left:auto; }
}
/* ---- inline comment thread (feed panel + single-status page share this) ---- */
.inline-comments{ padding:12px 16px; border-top:1px solid var(--line); }
.inline-comments-list{ display:flex; flex-direction:column; gap:10px; margin-bottom:10px; max-height:280px; overflow-y:auto; }
.inline-comment{ display:flex; gap:8px; align-items:flex-start; }
.inline-comment img{ width:28px; height:28px; border-radius:50%; object-fit:cover; flex:none; }
.inline-comment .body{ background:var(--paper-deep); border-radius:10px; padding:6px 10px; font-size:.85rem; }
.inline-comment .body p{ margin:2px 0 0; }
.inline-comment-actions{ display:flex; align-items:center; gap:14px; margin-top:4px; }
.inline-comment-like-btn{
  display:inline-flex; align-items:center; gap:4px; background:none; border:none; padding:0;
  font:inherit; font-size:.78rem; font-weight:600; color:var(--ink-soft); cursor:pointer;
}
.inline-comment-like-btn:hover, .inline-comment-like-btn.liked{ color:var(--clay-deep); }
.inline-comment-like-btn .count{ min-width:0; }
.inline-comment-reply-btn{
  background:none; border:none; padding:0; font:inherit; font-size:.78rem; font-weight:600;
  color:var(--ink-soft); cursor:pointer;
}
.inline-comment-reply-btn:hover{ color:var(--clay-deep); }
.inline-comment-edit-btn{
  background:none; border:none; padding:0; font:inherit; font-size:.78rem; font-weight:600;
  color:var(--ink-soft); cursor:pointer;
}
.inline-comment-edit-btn:hover{ color:var(--clay-deep); }
.inline-reply-indicator{
  font-size:.8rem; color:var(--ink-soft); padding:6px 12px; margin-bottom:6px;
  background:var(--paper-deep); border-radius:999px;
}
.inline-reply-indicator a{ color:var(--clay-deep); font-weight:600; }
.inline-comment-form{ display:flex; gap:8px; }
.inline-comment-input{ flex:1; padding:8px 12px; border:1px solid var(--line); border-radius:999px; font-size:.85rem; }
.inline-comment-submit{ padding:8px 16px; font-size:.82rem; }

/* ---- comment edit (shared: feed's .inline-comment AND the single-post
   comment thread's .post-comment-row both use these same class names —
   see window.wnBindCommentEditButtons in catch-card-actions.js) ---- */
.wn-comment-edit-wrap{ display:flex; flex-direction:column; gap:8px; margin-top:2px; }
.wn-comment-edit-textarea{
  width:100%; min-height:60px; border:1.5px solid var(--line); border-radius:8px;
  padding:8px 10px; font-family:inherit; font-size:.85rem; resize:vertical;
}
.wn-comment-edit-actions{ display:flex; gap:8px; }
.wn-comment-edit-actions .btn{ padding:6px 14px; font-size:.78rem; }
.comment-toggle{ background:none; border:none; cursor:pointer; }
.view-all-comments-link{ display:block; text-align:center; font-size:.82rem; font-weight:700; color:var(--clay-deep); padding:6px 0 2px; }

/* single-status.php gets a taller, unclamped comment list — this is the
   full thread page, not the feed's quick-glance panel, so the 280px
   scroll cap doesn't apply there. */
.single-status-page .inline-comments-list{ max-height:none; overflow-y:visible; }

/* ---- status card "..." menu (Edit / Report / Block) ---- */
.status-menu{ position:relative; margin-left:auto; }
.status-menu-btn{
  background:none; border:none; cursor:pointer; font-size:1.1rem; line-height:1;
  color:var(--ink-soft); padding:4px 8px; border-radius:8px;
}
.status-menu-btn:hover{ background:var(--paper-deep); color:var(--ink); }
.status-menu-dropdown{
  position:absolute; top:100%; right:0; z-index:20; margin-top:4px;
  background:var(--white); border:1.5px solid var(--ink); border-radius:12px;
  box-shadow:3px 3px 0 var(--gold); min-width:160px; overflow:hidden;
}
.status-menu-dropdown[hidden]{ display:none; }
.status-menu-dropdown button{
  display:block; width:100%; text-align:left; background:none; border:none; cursor:pointer;
  padding:10px 14px; font-size:.85rem; font-family:inherit; color:var(--ink);
}
.status-menu-dropdown button:hover{ background:var(--paper-deep); }
.status-menu-dropdown .status-menu-report,
.status-menu-dropdown .status-menu-block,
.status-menu-dropdown .status-menu-delete{ color:var(--rose-deep); }

.status-edit-form{ display:flex; flex-direction:column; gap:8px; }
.status-edit-form textarea{
  width:100%; min-height:80px; border:1.5px solid var(--line); border-radius:10px;
  padding:10px 14px; font-family:inherit; font-size:.92rem; resize:vertical;
}
.status-edit-actions{ display:flex; gap:8px; }
.status-edit-actions .btn{ padding:7px 16px; font-size:.82rem; }

.status-report-form{
  position:fixed; inset:0; z-index:9999; background:rgba(18,10,8,0.6);
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.status-report-form[hidden]{ display:none; }
.status-report-box{
  background:var(--white); border-radius:16px; padding:24px; max-width:380px; width:100%;
}
.status-report-box h4{ margin:0 0 4px; }
.status-report-box p{ font-size:.85rem; color:var(--ink-soft); margin:0 0 14px; }
.status-report-box select{
  width:100%; border:1.5px solid var(--line); border-radius:10px;
  padding:10px 14px; font-family:inherit; font-size:.9rem; margin-bottom:10px;
  background:var(--paper);
}
.status-report-box textarea{
  width:100%; min-height:90px; border:1.5px solid var(--line); border-radius:10px;
  padding:10px 14px; font-family:inherit; font-size:.9rem; margin-bottom:14px; resize:vertical;
}
.status-report-actions{ display:flex; gap:10px; }
.status-report-msg{ font-size:.82rem; margin-top:8px; min-height:1.2em; }
.status-report-msg.err{ color:var(--rose-deep); }
.status-report-msg.ok{ color:var(--leaf-deep); }

/* ---- @mention autocomplete dropdown (composer) ---- */
.wn-mention-dropdown{
  z-index:9999; background:var(--white); border:1.5px solid var(--ink); border-radius:12px;
  box-shadow:3px 3px 0 var(--gold); overflow:hidden; max-height:240px; overflow-y:auto;
}
.wn-mention-option{
  display:flex; align-items:center; gap:10px; width:100%; text-align:left;
  background:none; border:none; cursor:pointer; padding:8px 12px; font-family:inherit; font-size:.88rem;
}
.wn-mention-option:hover{ background:var(--paper-deep); }
.wn-mention-option img{ width:24px; height:24px; border-radius:50%; object-fit:cover; flex:none; }

/* ---- rendered @mention link (in posted status/Catch text) ---- */
.wn-mention{ color:var(--clay-deep); font-weight:700; }
.wn-mention:hover{ text-decoration:underline; }
.wn-link{ color:var(--clay-deep); text-decoration:underline; word-break:break-word; }
.wn-link:hover{ opacity:.8; }

/* ---- repost preview (a status linking to one of our own Catches) ----
   Narrower than the card it sits inside (max-width:440px) rather than
   stretching full-width like a real Catch card's own cover image does —
   at full width the image variant read as indistinguishable from an
   actual native post instead of an embedded reference to one. Not
   capped too tight either — an earlier, narrower version (300px) left
   distracting empty gutters on both sides inside a much wider card. */
.repost-preview{
  display:block; margin:10px auto 0; text-decoration:none; color:inherit;
  border-radius:14px; overflow:hidden; border:1.5px solid var(--line);
  transition:border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  max-width:440px;
  /* Soft, heavily-blurred glow in the brand's warm paper/gold tone —
     fades outward instead of stopping dead at the card's edge, so the
     transition into the surrounding white space feels blended rather
     than like a hard-edged box dropped onto a blank area. */
  box-shadow:0 0 36px 14px rgba(251,201,139,0.22);
}
.repost-preview:hover{ border-color:var(--gold-deep); transform:translateY(-1px); box-shadow:0 0 36px 14px rgba(251,201,139,0.34); }

/* -- image variant (real cover image available) -- */
.repost-preview-image{
  height:220px; background:var(--ink);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.repost-preview-image img{ width:100% !important; height:100% !important; object-fit:cover; display:block; }
.repost-preview-caption{
  display:flex; align-items:center; gap:10px;
  background:var(--ink); color:var(--white);
  padding:12px 14px;
}
.repost-preview-avatar{
  width:30px; height:30px; border-radius:50%; object-fit:cover; flex:none;
  border:1.5px solid rgba(255,255,255,.25);
}
.repost-preview-caption-text{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.repost-preview-author{ font-size:.74rem; color:var(--gold); font-weight:700; }
.repost-preview-title{
  font-size:.86rem; line-height:1.3; color:var(--white);
  display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden;
}
.repost-preview-kind{
  flex:none; font-size:.62rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em;
  color:var(--ink); background:var(--gold); padding:3px 8px; border-radius:999px;
  align-self:flex-start;
}

/* -- quote variant (no image — every status, or a coverless Catch) --
   Squarer and livelier than a plain neutral strip: a warm gold-tinted
   background instead of flat paper, a bold oversized quotation mark as
   a decorative touch (the site's brand already leans on playful
   hand-drawn accents elsewhere — see .ink-underline), and a slight
   rotation + bounce on hover matching that same personality rather
   than a static business-card feel. */
.repost-preview-quote-variant{
  background:linear-gradient(155deg, #FBE0C6, #F6C98B);
  padding:18px 20px 16px;
  position:relative;
  border-radius:16px;
}
.repost-preview-quote-variant:hover{
  transform:translateY(-2px) rotate(-0.6deg);
}
.repost-preview-quote-variant::before{
  content:'\201C';
  position:absolute; top:-6px; right:14px;
  font-family:'Fraunces',serif; font-size:3.6rem; font-weight:900;
  color:rgba(18,10,8,0.14); line-height:1; pointer-events:none;
}
.repost-preview-quote-head{
  display:flex; align-items:center; gap:8px; margin-bottom:10px;
}
.repost-preview-quote-head .repost-preview-avatar{
  border-color:rgba(18,10,8,0.15);
}
.repost-preview-quote-head .repost-preview-author{ color:var(--ink); font-size:.8rem; }
.repost-preview-quote-head .repost-preview-kind{
  margin-left:auto; color:var(--white); background:var(--ink);
}
.repost-preview-quote-text{
  margin:0; font-family:'Fraunces',serif; font-size:1rem; font-style:italic;
  line-height:1.45; color:var(--ink); position:relative; z-index:1;
  display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden;
}
.repost-preview-quote-text::before{ content:'\201C'; }
.repost-preview-quote-text::after{ content:'\201D'; }

/* -- generic link-embed variant (external OG unfurl, or a link to
   some other page on this site that isn't a Catch) — see
   wn_render_generic_link_preview() in functions.php. Deliberately
   plainer/quieter than the internal quote-card's playful gold
   gradient above: this is someone else's content being linked to,
   not one of our own Catches, so it reads as a neutral reference card
   rather than something trying to look native to the feed. */
.link-embed{
  background:var(--white);
  border-color:var(--line);
}
.link-embed-image{
  height:200px; background-color:var(--paper-deep);
  background-size:cover; background-position:center;
}
.link-embed-body{
  display:flex; flex-direction:column; gap:4px;
  padding:12px 14px;
}
.link-embed-domain{
  font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em;
  color:var(--ink-soft);
}
.link-embed-title{
  font-family:'Fraunces',serif; font-weight:600; font-size:.94rem; line-height:1.3;
  color:var(--ink);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.link-embed-desc{
  font-size:.8rem; line-height:1.4; color:var(--ink-soft);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
/* No image at all — still a full-width card, just body-only, so a
   description-only unfurl doesn't look like a broken image variant. */
/* -- compact ad strip — small square thumbnail + one line + CTA pill,
   all in a single row. See wn_render_compact_ad_card() in functions.php
   for where/why this is used instead of the full feed-style ad card. -- */
.ad-compact{
  display:flex; align-items:center; gap:12px;
  background:var(--white); border:1px solid var(--line); border-radius:12px;
  padding:10px 14px; text-decoration:none; color:inherit;
  transition:border-color .15s ease;
}
.ad-compact:hover{ border-color:var(--ink); }
.ad-compact-thumb{
  width:50px; height:50px; border-radius:8px; object-fit:cover; flex:none;
  background:var(--paper-deep);
}
.ad-compact-thumb-fallback{
  display:flex; align-items:center; justify-content:center;
  font-size:.68rem; font-weight:800; letter-spacing:.04em; color:var(--ink-soft);
}
.ad-compact-body{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.ad-compact-tag{
  font-size:.62rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em;
  color:var(--ink-soft);
}
.ad-compact-title{
  font-family:'Fraunces',serif; font-weight:600; font-size:.9rem; color:var(--ink);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.ad-compact-cta{
  flex:none; font-size:.76rem; font-weight:700; color:var(--white);
  background:var(--ink); padding:7px 16px; border-radius:999px;
}

/* -- verified badge — small ink/gold checkmark next to a name, styled
   off the round "W" logo mark rather than a generic platform-blue
   check. Sits inline with whatever text node it's dropped next to
   (name in a byline, <h1> on a profile, etc.) via vertical-align, so
   it never needs its own layout wrapper at the call site. -- */
.wn-verified-badge{
  display:inline-flex; vertical-align:middle; margin-left:4px; position:relative; top:-1px;
}
.wn-verified-badge svg{ display:block; }
/* No image at all — still a full-width card, just body-only, so a
   description-only unfurl doesn't look like a broken image variant. */
.link-embed:not(:has(.link-embed-image)) .link-embed-body{ padding:14px 16px; }

/* ---- viewer-relative activity line ----
   Spliced INSIDE a .feed-card, right after its opening tag and above
   the author row — see wn_render_wall_item() in inc/profile-wall.php
   and wn_render_feed_card_with_activity() in inc/feed-activity.php,
   both of which produce this same markup. Lives here in catch.css
   (loaded on every page, per the comment on its own enqueue call in
   functions.php) rather than in profile.css or a page-specific
   stylesheet, since it needs to render correctly both on the profile
   Wall and on the main Catch feed. */
.wall-activity-line{
  display:flex; align-items:center; gap:6px;
  font-size:.8rem; color:var(--ink-soft); font-weight:600;
  margin-bottom:10px;
}
.wall-activity-line svg{ flex:none; color:var(--clay-deep); }

/* Short excerpt of the actual comment text on a 'commented' Wall item
   — sits right under the activity line, still inside the card, above
   the author row. */
.wall-comment-text{
  margin:0 0 12px; font-size:.88rem; font-style:italic; color:var(--ink-soft);
  line-height:1.5; padding-left:12px; border-left:2px solid var(--line);
}

/* ---- main feed infinite scroll (page-catch.php) ---- */
.feed-load-sentinel{ height:1px; }
.feed-load-status{
  text-align:center; font-size:.85rem; color:var(--ink-soft);
  padding:20px 0;
}