/* MTWAFIQ v20.49 · the MTWAFIQ community: Like and Share widgets, the Share menu, the community page (assets/js/community.js) */
.cm-slot:empty{display:none}
.cm-w{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;max-width:100%;vertical-align:middle}
.cm-like,.cm-share{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:5px 12px;border-radius:999px;border:1.5px solid var(--border-2);background:var(--surface);color:var(--heading);font:650 13px/1.2 var(--f-body);cursor:pointer;transition:border-color .2s,background .2s,color .2s}
html[lang=ar] .cm-like,html[lang=ar] .cm-share{font-family:var(--f-ar,inherit)}
.cm-like:hover,.cm-share:hover{border-color:var(--turq)}
.cm-like .cm-h{flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.cm-like[aria-pressed=true]{color:#B5480F;border-color:var(--orange);background:color-mix(in srgb,var(--orange) 12%,var(--surface))}
.cm-like[aria-pressed=true] .cm-h{fill:var(--orange);stroke:var(--orange)}
[data-theme=dark] .cm-like[aria-pressed=true],.band .cm-like[aria-pressed=true]{color:#FFB08A}
.cm-n{font-variant-numeric:tabular-nums;font-weight:800}
.cm-n:empty{display:none}
.cm-sh{position:relative;display:inline-flex}
.cm-pop{position:absolute;top:calc(100% + 6px);inset-inline-start:0;z-index:80;width:max-content;min-width:200px;max-width:min(280px,calc(100vw - 32px));padding:6px;border-radius:14px;border:1px solid var(--border);background:var(--surface);color:var(--heading);box-shadow:0 18px 44px -12px rgba(0,0,0,.35)}
.has-look-media .cm-pop,.band .cm-pop{background:#0E171D;border-color:rgba(255,255,255,.2)}   /* over a photo or a dark band: an opaque menu */
.cm-pop.cm-flip{inset-inline-start:auto;inset-inline-end:0}
.cm-pop.cm-fix{position:fixed;inset-inline:16px;top:auto;bottom:16px;width:auto;max-width:none}
.cm-menu{display:grid;gap:2px}
.cm-menu a,.cm-menu button{display:block;width:100%;padding:9px 12px;border:0;border-radius:10px;background:none;color:var(--heading);font:600 14px/1.3 var(--f-body);text-align:start;text-decoration:none;cursor:pointer}
html[lang=ar] .cm-menu a,html[lang=ar] .cm-menu button{font-family:var(--f-ar,inherit)}
.cm-menu a:hover,.cm-menu button:hover,.cm-menu a:focus-visible,.cm-menu button:focus-visible{background:var(--surface-2);outline:2px solid var(--turq);outline-offset:-2px}
.cm-note{margin:6px 8px 4px;font-size:12px;line-height:1.45;color:var(--muted)}
/* where the widgets sit */
.lib-a .cm-w{margin-inline-start:auto}
.cm-vid,.cm-slot.cm-vid:empty{display:flex;margin-top:10px;min-height:34px}   /* the space is kept before the script fills it: no card grows */
.cm-hero,.cm-slot.cm-hero:empty{display:flex;margin-top:16px;min-height:34px}
.cm-hl{outline:3px solid var(--turq);outline-offset:4px;border-radius:16px}
.cm-vf{padding:10px 14px 12px;border-top:1px solid rgba(255,255,255,.12)}
.cm-vf:empty{display:none}
.vid-dlg .cm-like,.vid-dlg .cm-share{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.28);color:#fff}
.vid-dlg .cm-like[aria-pressed=true]{color:#FFB08A;border-color:#EC6C25;background:rgba(236,108,37,.18)}
.vid-dlg .cm-pop{top:auto;bottom:calc(100% + 6px)}
.vid-dlg .cm-pop.cm-fix{bottom:16px}
/* community.html */
.cm-hello{margin-top:18px}
.cm-page{display:grid;gap:clamp(22px,3vw,34px)}
.cm-page h2{margin:0 0 10px}
.cm-gl{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:12px}
.cm-gl li{padding:14px 16px;border-radius:16px;border:1px solid var(--border);background:var(--surface);display:grid;gap:4px}
.cm-gl b{color:var(--heading)}.cm-gl span{font-size:.92rem;color:var(--muted)}
.cm-me{display:grid;gap:16px}
.cm-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cm-row input{flex:1 1 220px;min-width:0;min-height:42px;border-radius:12px;border:1.5px solid var(--border);background:var(--surface-2);color:var(--heading);padding:6px 12px;font:600 14px var(--f-body)}
.cm-me .fp-dash{grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr))}
.cm-prof{display:grid;gap:10px;max-width:520px}
.cm-sw{display:flex;gap:10px;align-items:center;font-weight:600;cursor:pointer}
.cm-sw input{width:20px;height:20px;accent-color:var(--turq)}
.cm-tabs{display:inline-flex;gap:6px;margin:4px 0 12px;flex-wrap:wrap}
.cm-tabs button{min-height:36px;padding:6px 14px;border-radius:999px;border:1.5px solid var(--border-2);background:var(--surface);color:var(--heading);font:650 13px var(--f-body);cursor:pointer}
html[lang=ar] .cm-tabs button{font-family:var(--f-ar,inherit)}
.cm-tabs button[aria-pressed=true]{border-color:var(--turq);background:color-mix(in srgb,var(--turq) 14%,var(--surface))}
.cm-tblw{max-width:100%;overflow-x:auto;border:1px solid var(--border);border-radius:16px;background:var(--surface)}
.cm-tbl{width:100%;border-collapse:collapse;font-size:.95rem}
.cm-tbl th,.cm-tbl td{padding:10px 12px;text-align:start;border-bottom:1px solid var(--border)}
.cm-tbl th{font:700 12px var(--f-body);letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
html[lang=ar] .cm-tbl th{font-family:var(--f-ar,inherit);letter-spacing:0;text-transform:none}
.cm-tbl td:nth-child(n+3),.cm-tbl th:nth-child(n+3){text-align:end;font-variant-numeric:tabular-nums}
.cm-tbl tbody tr:last-child td{border-bottom:0}
.cm-tbl tr.cm-top td:first-child{font-weight:800;color:var(--turq)}
.cm-svc-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));gap:16px;align-items:start}
.cm-form{display:grid;gap:12px}
.cm-form h3{margin:0}
.cm-gate{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.cm-vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (max-width:420px){.cm-like,.cm-share{padding:5px 10px}.cm-tbl th,.cm-tbl td{padding:8px}.cm-pop{min-width:180px}}
@media (prefers-reduced-motion:reduce){.cm-like,.cm-share{transition:none}}
/* v20.50.1 · Friends Games «ألعاب الأصدقاء» (public site only): the home band, "Challenge a colleague" and the 2-minute break card */
.fg-band-a{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:20px}
html[data-look=mena] .fg-band [data-fg-card=blackball]{order:-1}
.fg-hub{display:inline-flex;max-width:100%}   /* v20.51 P: the 2-minute break card's styles are in fg-promo.css */
