/* InFrame · feed post cards (Home feed and the post pop-up on profiles), from the Magali 03 mockup */
  /* Home feed (Magali 03 mockup) */
.compose .tools svg { flex: none; }
.fd-post { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; }
.fd-post.fresh { animation: fdin .3s ease-out; }
.fd-post.focus { box-shadow: 0 0 0 3px #3D7BFF; }
@keyframes fdin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.as-grow { animation: fdin .18s ease-out; }
@media (prefers-reduced-motion: reduce) { .fd-post.fresh, .as-grow { animation: none; } }
.fd-post .mut { color: var(--muted); }
.fd-post .fd-ph { display: flex; align-items: center; gap: 12px; padding: 16px 20px 12px; }
.fd-post .fd-via { margin: 0 20px; padding: 10px 0 9px; border-bottom: 1px solid #EFEDE7; font-size: 13px; line-height: 1.4; color: var(--muted); }
.fd-post.has-via .fd-ph { padding-top: 12px; }
.fd-post .fd-via a { color: var(--ink); font-weight: 600; text-decoration: none; }
.fd-post .fd-via a:hover { text-decoration: underline; }
.pavi { flex: none; position: relative; overflow: hidden; width: 44px; height: 44px; border-radius: 14px; font-family: var(--display); font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.fd-pav { flex: none; text-decoration: none; }
.fd-pw { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; font-size: 15px; }
.fd-pw .pn { font-weight: 700; color: var(--ink); text-decoration: none; }
.fd-pw .pn:hover { text-decoration: underline; }
.fd-pw .sm { font-size: 13px; }
.fd-pm { position: relative; display: inline-flex; flex: none; }
.fd-fol { flex: none; height: 32px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; }
.fd-fol:hover { background: var(--soft); }
.fd-fol.done { color: var(--muted); font-weight: 600; cursor: default; }
.fd-fol.done:hover { background: transparent; }
.fd-pmb { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--ink2); font-size: 20px; line-height: 1; cursor: pointer; }
.fd-pmb:hover, .fd-pmb[aria-expanded="true"] { background: var(--soft); }
.fd-menu { position: absolute; top: 42px; right: 0; z-index: 7; min-width: 240px; padding: 6px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(26,27,31,.16); display: flex; flex-direction: column; }
.fd-menu button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 14px; text-align: left; cursor: pointer; white-space: nowrap; }
.fd-menu button svg { flex: none; }
.fd-menu button:hover { background: var(--bg); }
.fd-menu button.red { border-top: 1px solid #EFEDE7; border-radius: 0 0 8px 8px; color: #B42318; font-weight: 600; }
.fd-menu .fd-admgrp { display: block; border-bottom: 1px solid #EFEDE7; margin-bottom: 4px; padding-bottom: 4px; }
.fd-menu button.adm { font-weight: 700; }
.fd-menu button.adm-red { color: #B42318; }
.fd-menu button.red.first { border-top: 0; border-bottom: 1px solid #EFEDE7; border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.fd-hid { margin: 0 20px 14px; padding: 12px 14px; border-radius: 12px; background: #FFF6DB; border: 1px solid #F3DF9E; color: #3D2A00; font-size: 14px; text-wrap: pretty; }
.fd-post .fd-pt { margin: 0; padding: 0 20px 6px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; text-wrap: pretty; }
.tagl { font-weight: 700; color: #F7646E; text-decoration: none; }
.tagl:hover { text-decoration: underline; color: #F7646E; }
.fd-img { position: relative; background: #F1EFE9; max-height: 640px; margin-bottom: 14px; }
.fd-post .fd-img:has(+ .fd-pa) { margin-bottom: 0; } /* a full-width picture sits right on the action bar, no white strip */
.fd-img, #cmp-pv { overflow: hidden; }
.fd-img img, #cmp-pv img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 20px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.nav.l { left: 10px; } .nav.r { right: 10px; }
.cnt, .pvb { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(26,27,31,.7); color: #FFFFFF; font-size: 12px; font-weight: 600; }
.pvb { right: auto; left: 10px; }
.fd-img .dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.fd-img .dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.5); box-shadow: 0 0 3px rgba(0,0,0,.6); }
.fd-img .dots i.on { background: #FFFFFF; }
.fd-q { display: block; margin: 0 20px 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #FBFAF7; color: var(--ink); text-decoration: none; }
.fd-q:hover { border-color: #CFCBC1; color: var(--ink); }
.fd-q.gone { padding: 12px 14px; font-size: 14px; color: var(--muted); }
.fd-q .qh { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; font-size: 14px; }
.qav { flex: none; position: relative; overflow: hidden; width: 30px; height: 30px; border-radius: 10px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.fd-q .mut { color: var(--muted); }
.fd-q p { margin: 0; padding: 0 14px 12px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.fd-q img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.fd-plain { margin: 0 20px 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.fd-vid { margin: 0 20px 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.fd-vidb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; }
.fd-vidb > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 999px; background: rgba(26,27,31,.72); display: flex; align-items: center; justify-content: center; }
.fd-vidf { aspect-ratio: 16 / 9; background: #000; }
.fd-vidf iframe { display: block; width: 100%; height: 100%; border: 0; }
.fd-vid a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; font-size: 13px; color: var(--muted); text-decoration: none; background: #FBFAF7; }
.fd-web { margin: 0 20px 14px; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #FBFAF7; text-decoration: none; color: var(--ink); }
.fd-web:hover { color: var(--ink); border-color: #CFCBC1; }
.fd-web .fav { flex: none; position: relative; overflow: hidden; width: 48px; height: 48px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--muted); }
.fd-web .fav img { position: absolute; inset: 10px; width: 28px; height: 28px; object-fit: contain; background: #FFFFFF; }
.fd-web .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fd-web .tx b { font-size: 15px; font-weight: 600; line-height: 1.35; }
.fd-web .tx span { font-size: 13px; color: var(--muted); }
.fd-web.rich { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; background: #FFFFFF; }
.fd-web.rich .pim { display: block; aspect-ratio: 1.91 / 1; background: #F1EFE9; overflow: hidden; border-bottom: 1px solid var(--line); }
.fd-web.rich .pim img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fd-web.rich .tx { padding: 12px 14px; }
.fd-web.rich .tx b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fd-pa { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 12px 8px; border-top: 1px solid #EFEDE7; }
.fd-pa .pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.fd-pa .pill:hover, .fd-pa .pill.on { background: #F1EFE9; }
.fd-pa .pill.liked { background: #FFE3E8; color: #BE123C; }
.fd-pa .fd-open { margin-left: auto; padding: 0 6px; font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.fd-pa .fd-open:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 520px) { .fd-pa .fd-open .lg { display: none; } }
.fd-pa .pr { margin-left: auto; height: 32px; padding: 0 13px; border-radius: 9px; border: 1px solid #CFCBC1; background: #FFFFFF; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.fd-pa .pr.dark { border-color: #1A1B1F; background: #1A1B1F; color: #FFFFFF; }
.fd-pa .pr.del { border-color: var(--line); color: #B42318; }
.fd-rep { margin: 0 20px 14px; padding: 16px; border-radius: 14px; background: #FEF3F2; border: 1px solid #F4C7C3; border-left: 4px solid #D92D20; display: flex; flex-direction: column; gap: 10px; }
.fd-rep .h { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #912018; }
.fd-rep .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-rep .chip { display: inline-flex; align-items: center; height: var(--pill); padding: 0 12px; border-radius: 999px; border: 1px solid #CFCBC1; background: #FFFFFF; color: var(--ink); font-size: 13px; white-space: nowrap; cursor: pointer; }
.fd-rep .chip.on { outline: 2px solid #B42318; }
.fd-rep .err { font-size: 13px; font-weight: 600; color: #B42318; }
.fd-rep label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.fd-rep textarea { border-radius: 10px; border: 1px solid #E4C2BE; background: #FFFFFF; color: var(--ink); padding: 10px 12px; font-size: 14px; font-weight: 400; line-height: 1.45; resize: vertical; }
.fd-rep .mut { font-size: 13px; }
.fd-rep .b, .fd-rp .b { display: flex; gap: 8px; justify-content: flex-end; }
.fd-rep .b button, .fd-rp .b button { height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.fd-rp .b button { height: 36px; padding: 0 14px; }
.ghost { border: 1px solid #CFCBC1; background: #FFFFFF; color: var(--ink); }
.fd-rep .red { border: 0; background: #B42318; color: #FFFFFF; }
.fd-rp .dark { border: 0; background: #1A1B1F; color: #FFFFFF; }
.fd-sent { margin: 0 20px 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #DCF5E4; color: #0F3D21; font-size: 14px; }
.fd-sent .b { display: inline-flex; gap: 8px; }
.fd-sent button { height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid #B9E3C6; background: #FFFFFF; color: #0F3D21; font-size: 13px; font-weight: 600; cursor: pointer; }
.fd-sent button.red { border-color: #F4C7C3; color: #B42318; }
.fd-ed { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 14px; }
.fd-ed .taw { position: relative; }
.fd-ed .taw .sugw { bottom: auto; top: 100%; }
.fd-ed textarea, .fd-ed input { width: 100%; border: 1px solid #CFCBC1; border-radius: 12px; padding: 10px 12px; font-size: 15px; line-height: 1.5; color: var(--ink); background: #FFFFFF; }
.fd-ed textarea { resize: vertical; min-height: 84px; field-sizing: content; }
.fd-ed input { height: 42px; font-size: 14px; }
.fd-ed .b { display: flex; gap: 8px; justify-content: flex-end; }
.fd-ed .b button { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.fd-ed .dark { border: 0; background: #1A1B1F; color: #FFFFFF; }
.fd-rp { display: flex; flex-direction: column; gap: 8px; padding: 4px 20px 18px; }
.fd-rp label { font-size: 13px; font-weight: 600; color: var(--muted); }
.fd-rp textarea { width: 100%; resize: vertical; border: 1px solid #CFCBC1; border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.fd-cmts { display: flex; flex-direction: column; gap: 12px; padding: 4px 20px 18px; }
.fd-cmts .cl { display: flex; flex-direction: column; gap: 10px; }
.fd-cmts .c { display: flex; gap: 10px; align-items: flex-start; }
.fd-cmts .c.hid { opacity: .55; }
.fd-cmts .c > a { flex: none; text-decoration: none; }
.cav { position: relative; overflow: hidden; width: 32px; height: 32px; border-radius: 10px; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.fd-cmts .bub { flex: 1 1 auto; min-width: 0; padding: 8px 12px; border-radius: 12px; background: #F7F6F2; }
.fd-cmts .ch { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; }
.fd-cmts .ch a { color: var(--ink); text-decoration: none; }
.fd-cmts .ca { margin-left: auto; display: inline-flex; gap: 10px; }
.fd-cmts .ca button { border: 0; background: none; padding: 0; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.fd-cmts .ca button.red { color: #B42318; }
.fd-cmts .ct { font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.crow { position: relative; display: flex; gap: 8px; align-items: center; }
.crow input { flex: 1 1 auto; min-width: 0; height: 40px; border-radius: 12px; border: 1px solid #CFCBC1; background: #FFFFFF; color: var(--ink); padding: 0 12px; font-size: 14px; }
.csend { flex: none; height: 40px; padding: 0 16px; border-radius: 12px; border: 0; background: #9A9EA8; color: #FFFFFF; font-size: 14px; font-weight: 600; cursor: pointer; }
.csend.on { background: #1A1B1F; }
.sugw { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 5; width: min(360px, 100%); }
.sugw:empty { display: none; }
.sug { display: flex; flex-direction: column; padding: 6px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(26,27,31,.12); }
.sug button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.sug button.on, .sug button:hover { background: #FDE7E8; }
.sug a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.sug a:hover, .sug a:focus { background: #F1EFE9; color: var(--ink); }
.sug p { margin: 0; padding: 8px 10px; font-size: 14px; color: var(--muted); }
.fd-sh .shh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fd-sh .shh .ok { font-size: 12px; color: #166534; }
.fd-sh .crow input { padding-left: 12px; }
.sugw.sht { bottom: auto; top: calc(100% + 6px); }
.sug .off { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; opacity: .5; cursor: default; }
.sug .si { flex: none; width: 30px; height: 30px; border-radius: 999px; background: #2A2C33; color: #FFFFFF; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sug .st { display: flex; flex-direction: column; min-width: 0; }
.sug .st b { font-size: 14px; font-weight: 600; }
.sug .st span { font-size: 12px; color: var(--muted); }
.fd-note { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 70; width: min(560px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #1A1B1F; color: #FFFFFF; font-size: 14px; box-shadow: 0 8px 24px rgba(26,27,31,.2); animation: fdin .2s ease-out; }
.fd-note button { border: 0; background: none; color: #9EC1FF; font-size: 14px; font-weight: 700; cursor: pointer; }
.fd-shead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line); }
.fd-shead span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 20px; font-weight: 800; }
.fd-shead span, .fd-shead button { white-space: nowrap; }
.fd-shead button { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.fd-txt { margin: 0; font-size: 15px; color: var(--muted); }
#fd-more { align-self: center; }

/* "New posts" pill: floats over the feed, takes no room, so nothing moves when it appears */
.fd-newwrap { position: sticky; top: 84px; height: 0; z-index: 30; display: flex; justify-content: center; }
.fd-newwrap.insaved { display: none; }
.fd-new { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border: 0; border-radius: 99px; background: #3D7BFF; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px rgba(61,123,255,.35); animation: fdin .2s ease-out; }
.fd-new:hover { background: #2F68E6; }

/* Phones: denser feed, like the LinkedIn app — posts edge to edge, tighter header and spacing (Wed 4 Nov) */
@media (max-width: 600px) {
  .fd-post { border-radius: 0; border-left: 0; border-right: 0; }
  .fd-post .fd-ph { padding: 12px 14px 8px; gap: 10px; }
  .fd-post .fd-via { padding: 10px 14px 0; margin: 0 14px; padding-left: 0; padding-right: 0; }
  .fd-pw { gap: 0; font-size: 14px; line-height: 1.3; }
  .fd-pw .sm { font-size: 12px; }
  .pavi { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }
  .fd-post .fd-pt { padding: 0 14px 4px; font-size: 15px; line-height: 1.45; }
  .fd-q, .fd-plain, .fd-vid, .fd-web { margin: 0 14px 10px; }
  .fd-img { margin-bottom: 8px; }
  .fd-pa { padding: 6px 10px 6px 6px; gap: 0; }
  .fd-pa .pr { height: 30px; padding: 0 12px; font-size: 13px; }
  .fd-pa .pill { padding: 0 9px; }
}
.tm { white-space: nowrap; } /* "1 h ago" never splits across two lines */
/* Thu 12: link previews and videos go edge to edge, like photos (no side margins, no rounded corners) */
.fd-web.rich, .fd-vid { margin: 0 0 14px; border-radius: 0; border-left: 0; border-right: 0; }
.fd-web.rich:has(+ .fd-pa), .fd-vid:has(+ .fd-pa) { margin-bottom: 0; border-bottom: 0; }
.fd-web.rich .tx { padding: 12px 20px; }
.fd-vid a { padding: 10px 20px; }

/* One-time card at the top of Home: "You follow InFrame" with Unfollow / Got it (Fri 13 Nov) */
.fd-off { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 16px 20px; }
.fd-off .otx { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fd-off .otx b { font-size: 15px; }
.fd-off .otx span:not(.obadge) { font-size: 14px; line-height: 1.45; color: var(--ink2); text-wrap: pretty; }
.fd-off .ob { display: flex; gap: 8px; margin-left: auto; }
.fd-off .ob button { height: 36px; min-width: 92px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.fd-off .ob .dark { border: 0; background: #1A1B1F; color: #FFFFFF; }
@media (max-width: 600px) { .fd-off { padding: 14px; } .fd-off .ob { width: 100%; } .fd-off .ob button { flex: 1 1 0; } }

/* InFrame's own posts (design 3, Fri 13 Nov): the six-colour strip on top of the card, the six-dot mark as picture
   until a logo is uploaded, and the kind of post ("Pick of the day"…) where members show their title */
.omark { background: #FFFFFF; border: 1px solid var(--line); }
.fd-post.offp { position: relative; }
.fd-post.offp::before { content: ''; position: absolute; inset: -1px; border-radius: 20px; border-top: 5px solid transparent; pointer-events: none;
  background: linear-gradient(90deg, #F7646E, #F7646E) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box; -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box; mask-composite: exclude; }
.fd-post.offp > :nth-child(1) { padding-top: 19px; } /* the header (or the "liked this" line) sits just under the strip */
.fd-post.offp .fd-via { padding-top: 15px; }
.fd-pw .okind { font-weight: 600; color: var(--ink); }
.fd-pw .okind.k-pick { display: inline-block; padding: 1px 9px; border-radius: 999px; background: #FDE7E8; color: #B8323C; } /* coral: InFrame's own daily voice */
@media (max-width: 600px) { .fd-post.offp::before { border-radius: 0; } .fd-post.offp > :nth-child(1) { padding-top: 15px; } }
