/* v339: tidy blurred "Under review" cards. Same size as a normal post.
   Members see a heavy blur over media and text plus a small pill.
   Admins see the post clearly with a compact note. No tap-to-reveal. */

.dc-post.is-blurred,
.dc-post.is-blurred-admin,
.pw-tile.is-blurred,
.pw-tile.is-blurred-admin{
  position:relative;
}

.dc-blur-pill{
  display:inline-flex;
  align-items:center;
  height:24px;
  padding:0 10px;
  margin:8px 16px 0;
  border-radius:999px;
  font:600 12px/24px system-ui,-apple-system,Segoe UI,sans-serif;
  letter-spacing:.01em;
  background:#fff;
  color:#111;
  border:1px solid #e6e6e6;
  box-shadow:0 1px 2px rgba(0,0,0,.06);
  pointer-events:none;
  z-index:3;
}
html.dark .dc-blur-pill,
html[data-theme=dark] .dc-blur-pill{
  background:#1a1a1a;
  color:#f4f4f5;
  border-color:rgba(255,255,255,.16);
}

.dc-blur-admin-note{
  margin:8px 16px 0;
  padding:6px 10px;
  border-radius:8px;
  font:500 12px/1.4 system-ui,-apple-system,Segoe UI,sans-serif;
  background:#f3f3f3;
  color:#111;
  border:1px solid #e6e6e6;
}
html.dark .dc-blur-admin-note,
html[data-theme=dark] .dc-blur-admin-note{
  background:#1f1f1f;
  color:#f4f4f5;
  border-color:rgba(255,255,255,.14);
}

/* Heavy blur on the post body and media only — header and actions stay sharp
   so the card keeps the same height and swipe rows stay swipe rows. */
.dc-post.is-blurred .dc-blur-target,
.dc-post.is-blurred .tt-media,
.dc-post.is-blurred .tt-txt,
.dc-post.is-blurred .tt-cap,
.pw-tile.is-blurred .pw-m,
.pw-tile.is-blurred .pw-txt,
.pw-tile.is-blurred .pw-cap{
  filter:blur(20px) saturate(.8);
  -webkit-filter:blur(20px) saturate(.8);
  user-select:none;
  -webkit-user-select:none;
  pointer-events:none;
  transform:translateZ(0);
}

/* Frost so the original is hard to read even if someone zooms in. */
.dc-post.is-blurred .dc-blur-target,
.dc-post.is-blurred .tt-media,
.dc-post.is-blurred .tt-txt{
  position:relative;
}
.dc-post.is-blurred .dc-blur-target::after,
.dc-post.is-blurred .tt-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(255,255,255,.28);
  pointer-events:none;
}
html.dark .dc-post.is-blurred .dc-blur-target::after,
html[data-theme=dark] .dc-post.is-blurred .dc-blur-target::after,
html.dark .dc-post.is-blurred .tt-media::after,
html[data-theme=dark] .dc-post.is-blurred .tt-media::after{
  background:rgba(0,0,0,.28);
}

/* Swipe slides: pill sits on the media, card size is unchanged. */
.tt-slide.is-blurred,
.tt-slide.is-blurred-admin{
  /* height comes from .tt-slide — do not override. */
}
.tt-slide .dc-blur-pill,
.tt-ov-top .dc-blur-pill{
  position:absolute;
  top:12px;
  left:12px;
  margin:0;
}
.tt-slide .dc-blur-admin-note{
  position:absolute;
  top:12px;
  left:12px;
  right:12px;
  margin:0;
  z-index:3;
  max-width:calc(100% - 24px);
}

/* Profile wall tiles stay in the same grid cell. */
.pw-tile.is-blurred,
.pw-tile.is-blurred-admin{
  overflow:hidden;
}
.pw-tile .dc-blur-pill{
  position:absolute;
  top:8px;
  left:8px;
  margin:0;
}

/* Members cannot reveal a blurred post by tapping it. */
.dc-post.is-blurred,
.pw-tile.is-blurred{
  cursor:default;
}

/* Admin view: no blur, just the note. */
.dc-post.is-blurred-admin .dc-blur-target,
.dc-post.is-blurred-admin .tt-media,
.dc-post.is-blurred-admin .tt-txt,
.dc-post.is-blurred-admin .tt-cap,
.pw-tile.is-blurred-admin .pw-m,
.pw-tile.is-blurred-admin .pw-txt{
  filter:none;
  -webkit-filter:none;
  pointer-events:auto;
  user-select:auto;
}

/* v339: on the swipe feed, pin the pill to the centre of the card, as a child of the slide (not inside the blurred media). */
.tt-slide.is-blurred,
.tt-slide.is-blurred-admin{position:relative}
.tt-slide.is-blurred > .dc-blur-pill,
.tt-slide.is-blurred-admin > .dc-blur-admin-note{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  margin:0;
  z-index:6;
  box-shadow:0 2px 10px rgba(0,0,0,.2);
}
