/* Instagram-style sheets for a post (Gary, Nov 16): comments and send. Shared by the homepage feed and the forum. */
.ig-pill { position:absolute; left:50%; top:50%; z-index:3; transform:translate(-50%,-50%); padding:9px 18px; border-radius:10px; background:rgba(20,20,20,.88); color:#fff; font-weight:700; font-size:.95rem; pointer-events:none; animation:ig-pill 1.6s ease forwards; }
@keyframes ig-pill { 0% { opacity:0; transform:translate(-50%,-40%) scale(.9); } 12%, 75% { opacity:1; transform:translate(-50%,-50%) scale(1); } 100% { opacity:0; } }
.ig-toast { position:fixed; left:50%; bottom:calc(24px + env(safe-area-inset-bottom,0px)); z-index:1500; transform:translateX(-50%); padding:10px 16px; border-radius:20px; background:#222; color:#fff; font-size:.88rem; box-shadow:0 6px 20px rgba(0,0,0,.6); }
.ig-toast[hidden] { display:none; }
html.ig-sheet-open, html.ig-sheet-open body { overflow:hidden; }
.ig-sheet-wrap { position:fixed; inset:0; z-index:1600; }
.ig-sheet-back { position:absolute; inset:0; background:rgba(0,0,0,.55); animation:ig-fade .2s ease; }
.ig-sheet { position:absolute; left:0; right:0; bottom:0; display:flex; flex-direction:column; max-height:calc(var(--sg-vh,100svh) * .8); padding:0 max(14px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px)); border-radius:16px 16px 0 0; background:#1b1b1b; color:#f2f2f2; box-shadow:0 -10px 30px rgba(0,0,0,.6); transition:transform .2s ease; animation:ig-sheet-up .24s cubic-bezier(.2,.8,.2,1); outline:none; }
.ig-sheet-wrap.is-closing .ig-sheet { transform:translateY(100%) !important; }
.ig-sheet-wrap.is-closing .ig-sheet-back { opacity:0; transition:opacity .2s; }
@keyframes ig-sheet-up { from { transform:translateY(100%); } }
@keyframes ig-fade { from { opacity:0; } }
.ig-grab { display:grid; place-items:center; height:26px; flex:none; touch-action:none; cursor:grab; }
.ig-grab i { width:40px; height:4px; border-radius:2px; background:#5a5a5a; }
.ig-sheet-title { margin:0 0 6px; text-align:center; font:400 1.15rem/1.2 Anton,Impact,sans-serif; letter-spacing:.02em; color:#fff; }
.ig-clist { flex:1 1 auto; min-height:120px; overflow-y:auto; overscroll-behavior:contain; padding-bottom:6px; }
.ig-cempty { margin:24px 0; text-align:center; color:#9a9a9a; font-size:.9rem; }
.ig-citem { display:flex; gap:10px; padding:10px 0 4px calc(var(--d,0) * 28px); }
.ig-cav { position:relative; flex:none; display:grid; place-items:center; width:34px; height:34px; border-radius:50%; overflow:hidden; background:#3a3a3a; color:#ddd; font:700 .75rem/1 Arial,sans-serif; }
.ig-citem.is-reply .ig-cav { width:26px; height:26px; font-size:.65rem; }
.ig-cav img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ig-cmain { flex:1; min-width:0; }
.ig-cwho { margin:0; font-size:.78rem; color:#9a9a9a; } .ig-cwho b { color:#cfcfcf; font-weight:600; }
.ig-ctext { margin:2px 0 0; font-size:.95rem; line-height:1.35; white-space:pre-wrap; overflow-wrap:anywhere; }
.ig-cacts { display:flex; align-items:center; gap:4px; margin-top:2px; }
.ig-creply { padding:6px 8px 6px 0; border:0; background:none; color:#9a9a9a; font-size:.8rem; font-weight:600; }
.ig-cup { display:grid; place-items:center; width:32px; height:30px; padding:0; border:0; background:none; color:#bdbdbd; }
.ig-cup svg { width:19px; height:19px; } .ig-cup.is-on { color:#2fd35b; } .ig-cup.is-on svg path { fill:currentColor; }
.ig-cscore { font-size:.8rem; color:#bdbdbd; }
.ig-cmore { display:block; margin:10px 0; text-align:center; color:#9a9a9a; font-size:.85rem; }
.ig-replying { display:flex; align-items:center; justify-content:space-between; margin:0; padding:6px 2px; font-size:.82rem; color:#9a9a9a; border-top:1px solid #2c2c2c; }
.ig-replying button { border:0; background:none; color:#ddd; font-size:1.2rem; line-height:1; padding:2px 8px; }
.ig-emoji { display:flex; justify-content:space-between; padding:8px 2px; border-top:1px solid #2c2c2c; }
.ig-emoji button { border:0; background:none; font-size:1.6rem; line-height:1; padding:4px; }
.ig-cform { display:flex; align-items:center; gap:10px; padding:8px 4px 8px 10px; border:1px solid #3a3a3a; border-radius:24px; }
.ig-cme { width:30px; height:30px; border:2px solid #ff3b2b; background:#2a2a2a; }
.ig-cform input { flex:1; min-width:0; border:0; background:none; color:#fff; font-size:16px; outline:none; }
.ig-cform button { padding:6px 12px; border:0; background:none; color:#ff5a4a; font-weight:700; }
.ig-cform button:disabled { opacity:.4; }
.ig-ssearch { flex:none; margin:2px 0 10px; padding:10px 14px; border:0; border-radius:10px; background:#2c2c2c; color:#fff; font-size:16px; }
.ig-people { flex:1 1 auto; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px 8px; min-height:140px; overflow-y:auto; overscroll-behavior:contain; padding:4px 0 10px; align-content:start; }
.ig-people .ig-cempty { grid-column:1/-1; }
.ig-person { display:flex; flex-direction:column; align-items:center; gap:6px; padding:0; border:0; background:none; color:#e6e6e6; }
.ig-pav { position:relative; display:grid; place-items:center; width:64px; height:64px; border-radius:50%; background:#3a3a3a; font:700 1.2rem/1 Arial,sans-serif; color:#fff; }
.ig-person.is-on .ig-pav { box-shadow:0 0 0 2px #1b1b1b, 0 0 0 4px #ff3b2b; }
.ig-person.is-on .ig-pav::after { content:"✓"; position:absolute; right:-2px; bottom:-2px; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:#ff3b2b; border:2px solid #1b1b1b; font-size:.75rem; color:#fff; }
.ig-pname { max-width:100%; font-size:.8rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ig-snote { flex:none; margin-top:6px; padding:12px 2px; border:0; border-bottom:1px solid #333; background:none; color:#fff; font-size:16px; outline:none; }
.ig-sgo { flex:none; margin-top:10px; padding:12px; border:0; border-radius:10px; background:#ff3b2b; color:#fff; font-weight:700; font-size:1rem; }
.ig-sgo:disabled { opacity:.45; }
.ig-sstatus { margin:6px 0 0; min-height:1em; text-align:center; font-size:.82rem; color:#bbb; }
/* Gary, Nov 16: buttons are only as wide as their words; on computers the sheets are a small box in the middle, not the
   whole width of the page. */
.ig-sgo { align-self:center; padding:10px 30px; border-radius:999px; }
@media (min-width:992px) {
  .ig-sheet { left:50%; right:auto; top:50%; bottom:auto; width:min(440px,92vw); max-height:min(640px,86vh); padding:0 16px 14px; border-radius:16px; transform:translate(-50%,-50%); animation:ig-pop .18s ease; box-shadow:0 20px 60px rgba(0,0,0,.7); }
  .ig-sheet-wrap.is-closing .ig-sheet { transform:translate(-50%,-50%) scale(.96) !important; opacity:0; transition:opacity .15s, transform .15s; }
  .ig-grab { cursor:default; }
}
@keyframes ig-pop { from { opacity:0; transform:translate(-50%,-48%) scale(.97); } }
.ig-pav { overflow:visible; } .ig-pav img { position:absolute; inset:0; width:100%; height:100%; border-radius:50%; object-fit:cover; }
