/* bc.ly /social — the debate: hero strip, hero card, post cards, composer.
   Shared by /social (the wall), /social/h/:id (a hero's thread) and /@handle. No palette here —
   every colour is a theme-1.css token. RTL first; nothing may push the page sideways (rule 10). */
.feed-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:22px 0 6px}
.feed-top h1{margin:0}
.btn.sm{font-size:14px;padding:8px 13px;border-radius:10px}

/* NEUTRALITY RULE 1: one uniform hero template — same size, same fields, same colours for all. */
.strip{display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;padding:6px 2px 12px;margin:6px 0 4px;scrollbar-width:thin}
.hero-chip{flex:0 0 76px;width:76px;display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;color:var(--ink)}
.hero-av{width:60px;height:60px;border-radius:50%;overflow:hidden;background:var(--green-soft);border:2px solid var(--line);
  display:flex;align-items:center;justify-content:center;font-family:var(--display);font-weight:800;font-size:24px;color:var(--green-deep);flex:none}
.hero-av img{width:100%;height:100%;object-fit:cover;display:block}
.thread-ico svg{width:58%;height:58%}
/* S3: channels are fixed pills — visibly NOT heroes, ahead of the heroes' daily rotation. */
.ch-pill{flex:0 0 auto;align-self:center;display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;border:1px solid #cbe6d6;
  background:var(--green-soft);color:var(--green-deep);font-weight:800;font-size:13.5px;text-decoration:none;white-space:nowrap;cursor:pointer;font-family:inherit}
.ch-pill svg{width:16px;height:16px}
.qlist{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:6px 12px;margin:0 0 12px}
.qlist a{display:block;padding:9px 0;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none;font-weight:700;overflow-wrap:anywhere}
.qlist a:last-child{border-bottom:0}
.qlist small{display:block;color:var(--muted);font-weight:500}
.think{width:100%;text-align:right;font:inherit;font-size:16px;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:12px 16px;cursor:pointer;margin:4px 0 12px}
.wall-comp{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px;margin:0 0 10px}
.wall-comp .wc-where{font-size:12.5px;font-weight:700;color:var(--muted);margin:6px 0 2px}
.hero-chip .nm{font-size:12.5px;font-weight:700;line-height:1.25;text-align:center;width:100%;overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.hero-card{display:flex;gap:14px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px;margin:18px 0 14px}
.hero-card .hero-av{width:72px;height:72px;font-size:28px}
.hero-card .txt{flex:1;min-width:0}
.hero-card h1{font-family:var(--display);font-weight:800;font-size:clamp(21px,5.4vw,28px);margin:0;overflow-wrap:anywhere}
.hero-card .sub{color:var(--muted);margin:2px 0 8px;overflow-wrap:anywhere}

.ftabs{display:flex;gap:6px;margin:6px 0 12px;flex-wrap:wrap}
.ftabs button{font:inherit;font-weight:800;font-size:14px;padding:7px 12px;border-radius:10px;border:1px solid var(--line-2);background:var(--surface);color:var(--muted);cursor:pointer}
.ftabs button[aria-pressed=true]{background:var(--green-soft);color:var(--green-deep);border-color:#cbe6d6}
.pill{position:sticky;top:8px;z-index:5;display:block;margin:0 auto 10px;font:inherit;font-weight:800;font-size:14px;padding:8px 16px;border-radius:999px;
  border:0;background:var(--green);color:#fff;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.15)}
.cta{background:var(--green-soft);border:1px solid #cbe6d6;border-radius:14px;padding:14px;margin:0 0 14px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.cta p{margin:0;font-weight:700}
.feed-empty{color:var(--muted);margin:18px 0}
.feed-more{display:block;margin:6px auto 20px}
.ad-slot{height:0;margin:0;overflow:hidden}

.composer{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px;margin:0 0 14px}
.composer textarea{width:100%;min-height:84px;resize:vertical;font:inherit;font-size:16px;line-height:1.6;padding:10px 12px;border:1px solid var(--line-2);border-radius:12px;background:#fff;color:var(--ink)}
.composer textarea:focus{outline:2px solid var(--green-soft);border-color:var(--green)}
.composer .bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;flex-wrap:wrap}
.composer .cnt{color:var(--muted);font-size:13px;font-weight:700}
.composer .cnt.over{color:#b3261e}
.composer .to{font-size:13px;color:var(--muted);margin:0 0 6px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.composer .msg{min-height:0;margin:6px 0 0;font-size:13.5px}

.post{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 14px;margin:0 0 12px;overflow-wrap:anywhere}
.post.reply{background:var(--bg);border-radius:12px;margin:0 0 8px;padding:10px 12px}
.post.ph{color:var(--muted);font-style:italic}
.post-hero{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:800;color:var(--green-deep);text-decoration:none;margin:0 0 6px}
.post-hero .hero-av{width:22px;height:22px;font-size:11px;border-width:1px}
.post-head{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;font-size:14px}
.post-author{color:var(--ink);text-decoration:none;font-weight:800}
.post-head .h,.ltr{direction:ltr;unicode-bidi:isolate;color:var(--muted);font-weight:700}
.post-head time{color:var(--muted);font-size:12.5px}
.post-menu{margin-inline-start:auto;background:none;border:0;font:inherit;font-size:18px;line-height:1;color:var(--muted);cursor:pointer;padding:2px 6px;border-radius:8px}
.post-menu:hover{background:var(--bg)}
.menu{display:flex;gap:6px;margin:6px 0 0}
.post-body{margin:6px 0 8px;white-space:pre-wrap;line-height:1.75;font-size:16px}
.quote{border-inline-start:3px solid var(--line-2);padding:4px 10px;margin:6px 0;color:var(--muted);font-size:14px;white-space:pre-wrap}
.react{display:flex;gap:5px;flex-wrap:wrap}
.react button{font:inherit;font-size:14px;line-height:1;padding:5px 8px;border-radius:999px;border:1px solid var(--line);background:var(--surface);cursor:pointer;display:inline-flex;gap:4px;align-items:center}
.react button[aria-pressed=true]{background:var(--green-soft);border-color:#9fd3b6}
.react button b{font-size:12.5px;color:var(--muted)}
.post-foot{display:flex;gap:14px;margin:8px 0 0;flex-wrap:wrap}
.linkbtn{background:none;border:0;padding:0;font:inherit;font-size:13.5px;font-weight:800;color:var(--green-deep);cursor:pointer}
.replies{margin:10px 0 0;padding-inline-start:10px;border-inline-start:2px solid var(--line)}
.note{font-size:13.5px;font-weight:700;margin:6px 0 0}
.note.err{color:#b3261e}
.report{display:flex;flex-direction:column;gap:6px;margin:4px 0 0;width:100%}
.report .rr{display:flex;gap:8px;align-items:center;font-size:14px;cursor:pointer}
.report .rr input{width:18px;height:18px;accent-color:var(--green);flex:none}
.menu{flex-wrap:wrap}

/* ---- S3-B: Facebook-style interactions ------------------------------------------------------- */
.ico{display:inline-flex;width:18px;height:18px;flex:none}
.ico svg{width:100%;height:100%}
/* Long posts: five lines, then «عرض المزيد». */
.post-body.clamp{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.linkbtn.more{display:block;margin:-4px 0 8px}
.post{cursor:default}
.feed-list .post:not(.ph){cursor:pointer}
/* A post with replies: one or two offset layers peek out below, as if more cards are underneath.
   Pure CSS — and the layers are pseudo-elements of the card, so tapping them opens the post too. */
.post.stacked{position:relative;margin-bottom:26px}
.post.stacked::before,.post.stacked::after{content:"";position:absolute;top:100%;background:var(--surface);border:1px solid var(--line);border-top:0;
  border-radius:0 0 14px 14px}
.post.stacked::before{inset-inline:10px;height:8px;z-index:1}
.post.stacked::after{inset-inline:20px;height:15px;z-index:0}
.post.hl{animation:bcHl 2.2s ease}
@keyframes bcHl{0%,60%{box-shadow:0 0 0 3px var(--green);background:var(--green-soft)}100%{box-shadow:none;background:var(--surface)}}
@media (prefers-reduced-motion:reduce){.post.hl{animation:none;box-shadow:0 0 0 3px var(--green)}}

/* the summary row: stacked reaction icons + one total · the reply count */
.post-sum{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:2px 0 6px;min-height:22px}
.rx-sum,.post-rc{background:none;border:0;padding:2px 0;font:inherit;font-size:13.5px;font-weight:700;color:var(--muted);cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.post-rc{margin-inline-start:auto}
.post-rc:hover,.rx-sum:hover{text-decoration:underline}
.rx-stack{display:inline-flex;flex-direction:row}
.rx-ico{width:20px;height:20px;border-radius:50%;background:var(--surface);box-shadow:0 0 0 2px var(--surface);display:inline-flex;align-items:center;justify-content:center;
  font-size:12.5px;line-height:20px;overflow:visible;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.rx-stack .rx-ico+.rx-ico{margin-inline-start:-6px}

/* the action bar: «أعجبني» · «تعليق» · «مشاركة» */
.post-acts{display:flex;align-items:stretch;border-top:1px solid var(--line);margin:4px -6px -4px;padding-top:4px}
.post-acts>*{flex:1 1 0;min-width:0}
.act,.rx-btn{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:none;border:0;border-radius:10px;padding:8px 4px;
  font:inherit;font-size:14px;font-weight:800;color:var(--muted);cursor:pointer;white-space:nowrap}
.act:hover,.rx-btn:hover{background:var(--bg)}
/* No context menu, no text selection, no callout — and scrolling may still start here (pan-y). */
.rx-btn,.rx-bar{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:pan-y}
.rx-e{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;font-size:17px;line-height:1;flex:none;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.rx-wrap{position:relative;display:flex}
.rx-btn.sm{width:auto;padding:2px 4px;font-size:12.5px;gap:3px}
.rx-btn.sm .rx-e{width:15px;height:15px;font-size:13px}
/* the reaction bar, above the button */
.rx-bar{position:absolute;bottom:calc(100% + 6px);inset-inline-start:0;z-index:20;display:flex;gap:2px;padding:4px 6px;background:var(--surface);
  border:1px solid var(--line);border-radius:999px;box-shadow:0 8px 24px rgba(16,40,26,.18);animation:rxIn .14s ease-out}
@keyframes rxIn{from{opacity:0;transform:translateY(6px) scale(.96)}to{opacity:1;transform:none}}
.rx-opt{position:relative;width:38px;height:38px;border:0;background:none;border-radius:50%;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
  transition:transform .1s ease}
.rx-opt .rx-e{width:30px;height:30px;font-size:26px}
.rx-opt.hot,.rx-opt:hover{transform:translateY(-6px) scale(1.25)}
.rx-opt.mine{background:var(--green-soft)}
.rx-tip{position:absolute;bottom:calc(100% + 4px);left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;font-size:11.5px;font-weight:800;
  padding:2px 8px;border-radius:999px;white-space:nowrap;opacity:0;pointer-events:none}
.rx-opt.hot .rx-tip,.rx-opt:hover .rx-tip{opacity:1}
@media (prefers-reduced-motion:reduce){.rx-bar{animation:none}.rx-opt{transition:none}}

/* toast */
.bc-toast{position:fixed;bottom:84px;left:50%;transform:translateX(-50%) translateY(10px);z-index:60;max-width:calc(100% - 32px);background:var(--ink);color:#fff;
  font-weight:800;font-size:14px;padding:9px 16px;border-radius:999px;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;overflow-wrap:anywhere}
.bc-toast.show{opacity:1;transform:translateX(-50%)}

/* the breakdown sheet — counts only */
.rx-scrim{position:fixed;inset:0;z-index:50;background:rgba(16,24,20,.42);display:flex;align-items:flex-end;justify-content:center}
.rx-sheet{background:var(--surface);width:100%;max-width:460px;border-radius:20px 20px 0 0;padding:14px 16px 22px;max-height:70vh;overflow:auto}
@media(min-width:560px){.rx-scrim{align-items:center}.rx-sheet{border-radius:20px}}
.rx-sheet-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px}
.rx-sheet-head h3{margin:0;font-family:var(--display);font-size:18px}
.rx-x{background:none;border:0;font-size:18px;cursor:pointer;color:var(--muted);padding:4px 8px}
.rx-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:8px;margin-bottom:6px}
.rx-tabs button{font:inherit;font-weight:800;font-size:14px;padding:6px 10px;border-radius:999px;border:1px solid var(--line-2);background:var(--surface);color:var(--ink);cursor:pointer}
.rx-tabs button[aria-selected=true]{background:var(--green-soft);border-color:#9fd3b6;color:var(--green-deep)}
.rx-row{display:flex;align-items:center;gap:10px;padding:8px 2px;border-bottom:1px solid var(--line)}
.rx-row-l{flex:1;font-weight:700}
.rx-row-n{font-size:15px}

/* ---- comments (the post page) ---- */
.cmts{margin:6px 0 0}
.cmts h2{font-family:var(--display);font-size:17px;margin:6px 0 10px}
.cmt{display:flex;gap:8px;align-items:flex-start;margin:0 0 10px}
.cmt.sub{margin-inline-start:0}
.cmt-sub{margin:6px 0 0}
.cmt-av{width:34px;height:34px;border-radius:50%;flex:none;background:var(--green-soft);color:var(--green-deep);display:inline-flex;align-items:center;justify-content:center;
  font-weight:800;font-size:15px}
.cmt.sub .cmt-av{width:26px;height:26px;font-size:12.5px}
.cmt-main{flex:1;min-width:0}
.cmt-bubble{position:relative;display:inline-block;max-width:100%;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:7px 12px 8px;overflow-wrap:anywhere}
.cmt.ph .cmt-bubble{color:var(--muted);font-style:italic}
.cmt-name{display:block;color:var(--ink);font-weight:800;font-size:13.5px;text-decoration:none}
.cmt-body{margin:1px 0 0;white-space:pre-wrap;line-height:1.65;font-size:15px}
.cmt-badge{position:absolute;bottom:-11px;inset-inline-end:-6px;display:inline-flex;align-items:center;gap:3px;background:var(--surface);border-radius:999px;
  padding:1px 5px 1px 2px;box-shadow:0 1px 4px rgba(16,40,26,.18);font-size:12px;font-weight:800;color:var(--muted)}
.cmt-badge .rx-ico{width:17px;height:17px;font-size:11px;line-height:17px}
.cmt-badge .rx-stack .rx-ico+.rx-ico{margin-inline-start:-5px}
.cmt-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:5px 4px 0;font-size:12.5px;color:var(--muted)}
.cmt-meta time{font-size:12.5px}
.cmt-meta .linkbtn{font-size:12.5px;color:var(--muted)}
.cmt-meta .post-menu{margin-inline-start:0;font-size:15px}
.cmt-more{background:none;border:0;padding:4px 0;font:inherit;font-size:13px;font-weight:800;color:var(--muted);cursor:pointer}
.cmt-more:hover{text-decoration:underline}

/* the comment composer: fixed at the bottom (Facebook-style); the page pads itself by its height */
.cbar{position:fixed;bottom:0;left:0;right:0;z-index:30;background:var(--surface);border-top:1px solid var(--line);
  padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));box-shadow:0 -4px 14px rgba(16,40,26,.06)}
.cbar-in{max-width:760px;margin:0 auto}
.cbar .to{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);margin:0 0 6px;font-weight:700}
.cbar .to .x{background:none;border:0;font:inherit;color:var(--muted);cursor:pointer;padding:0 4px;font-size:15px}
.cbar-row{display:flex;align-items:flex-end;gap:8px}
.cbar textarea{flex:1;min-width:0;resize:none;font:inherit;font-size:16px;line-height:1.5;padding:9px 14px;border:1px solid var(--line-2);border-radius:20px;
  background:var(--bg);color:var(--ink);max-height:140px;overflow-y:auto}
.cbar textarea:focus{outline:2px solid var(--green-soft);border-color:var(--green)}
.cbar .send{flex:none;width:40px;height:40px;border-radius:50%;border:0;background:var(--green);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.cbar .send[disabled]{opacity:.4;cursor:not-allowed}
.cbar .send .ico{width:20px;height:20px}
.cbar .note{margin:4px 0 0}
.cmt.hl-c>.cmt-main>.cmt-bubble{animation:bcHlC 2.2s ease}
@keyframes bcHlC{0%,60%{box-shadow:0 0 0 2px var(--green);background:var(--green-soft)}100%{box-shadow:none}}

/* ---- S4-A: avatars, follow, mute, the inline comment composer ---------------------------------- */
.u-av{width:30px;height:30px;border-radius:50%;flex:none;display:inline-flex;align-items:center;justify-content:center;
  background:var(--green-soft);color:var(--green-deep);font-weight:800;font-size:14px;line-height:1;overflow:hidden}
.u-av.emo{font-size:17px;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.post-author{display:inline-flex;align-items:center;gap:7px;min-width:0}
.post-head{align-items:center}
.cmt-av.u-av{width:34px;height:34px;font-size:15px}
.cmt.sub .cmt-av.u-av{width:26px;height:26px;font-size:12.5px}
.nav-av.u-av{width:24px;height:24px;font-size:13px}
.nav-av.u-av.emo{font-size:15px}
/* The official platform account: the brand star tile (theme-1.css .brand .mk) at avatar size, and its badge. */
.u-av.off{background:var(--green);border-radius:29%;box-shadow:0 3px 8px -4px rgba(15,122,67,.6)}
.u-av.off svg{width:62%;height:62%;display:block}
.off-badge{display:inline-flex;align-items:center;font-size:11.5px;font-weight:800;line-height:1.5;padding:0 8px;border-radius:999px;
  background:var(--green-soft);color:var(--green-deep);border:1px solid #9fd3b6;white-space:nowrap;vertical-align:middle}
.cmt-name .off-badge{margin-inline-start:6px;font-size:10.5px}
.fol-btn{font:inherit;font-size:12.5px;font-weight:800;padding:3px 10px;border-radius:999px;border:1px solid #9fd3b6;background:var(--surface);color:var(--green-deep);cursor:pointer;white-space:nowrap}
.fol-btn.on{background:var(--green-soft);border-color:var(--green-soft)}
.post.muted{padding:10px 14px}
.muted-note{margin:0;color:var(--muted);font-size:14px;font-style:italic}
.icomp{margin:8px 0 2px}
.icomp-row{display:flex;align-items:flex-end;gap:8px}
.icomp textarea{flex:1;min-width:0;resize:none;font:inherit;font-size:16px;line-height:1.5;padding:8px 13px;border:1px solid var(--line-2);border-radius:20px;
  background:var(--bg);color:var(--ink);max-height:140px;overflow-y:auto}
.icomp textarea:focus{outline:2px solid var(--green-soft);border-color:var(--green)}
.icomp .send{flex:none;width:38px;height:38px;border-radius:50%;border:0;background:var(--green);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.icomp .send[disabled]{opacity:.4;cursor:not-allowed}
.icomp .send .ico{width:19px;height:19px}
.icomp .icomp-av{margin-bottom:4px}
.icmt{margin:10px 0 0;padding-top:8px;border-top:1px solid var(--line)}
.icmt .cmt{margin-bottom:4px}
.icmt-all{display:inline-block;font-size:13px;margin:2px 42px 0 0}
/* With «متابعة» in the header, «⋯» sits in the card's corner so the header wraps cleanly. */
.post{position:relative}
.post-head{padding-inline-end:30px}
.post-head>.post-menu{position:absolute;top:8px;inset-inline-end:8px;margin:0}

/* ---- S4-B: mentions, the bell, @-suggestions, the share menu and the image view ---------------- */
.mention{color:var(--green-deep);font-weight:800;text-decoration:none;unicode-bidi:isolate;direction:ltr}
.mention:hover{text-decoration:underline}
.nav-bell{position:relative}
.nav-bell svg{width:22px;height:22px}
.nav-bell .nb{position:absolute;top:2px;inset-inline-end:0;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#c62828;color:#fff;
  font:800 11px/18px var(--num);text-align:center;box-shadow:0 0 0 2px var(--surface)}
/* seven items beside the logo on the smallest phones (social pages only — this file is never on the vote page) */
@media(max-width:360px){.navlinks{gap:1px}.navlinks a{padding:5px}.navlinks a svg{width:18px;height:18px}}
.msug-host{position:relative}
.msug{position:absolute;inset-inline:0;top:100%;z-index:25;background:var(--surface);border:1px solid var(--line);border-radius:12px;
  box-shadow:0 8px 22px rgba(16,40,26,.14);padding:4px;margin-top:4px}
.msug.up{top:auto;bottom:100%;margin:0 0 6px}
.msug-o{display:flex;align-items:center;gap:8px;width:100%;background:none;border:0;border-radius:8px;padding:6px 8px;cursor:pointer;font:inherit;text-align:start;color:var(--ink)}
.msug-o:hover,.msug-o:focus{background:var(--bg)}
.msug-t{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.msug-t .msug-n{font-weight:800;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msug-t .ltr{font-size:12.5px}
.share-menu{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 0}
.share-menu .btn{display:inline-flex;gap:6px;align-items:center}
.share-menu .ico{width:16px;height:16px}
.sc-view{position:fixed;inset:0;z-index:70;background:rgba(10,18,14,.92);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px}
.sc-view img{max-width:100%;max-height:72vh;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.4);-webkit-touch-callout:default}
.sc-hint{color:#fff;font-weight:800;margin:0}
.sc-bar{display:flex;gap:8px}
