/* embed-facade.css — click-to-load facades for third-party embeds.
   Nothing is requested from Vimeo or X until the reader asks for it, so no
   non-essential cookie is set on page view and no consent banner is needed.
   Used on the 8 archive pages that carry a Vimeo video or an X post.
   Dark article surface: same palette as article-extras.css. */

.emb{margin:36px 0 40px}

/* ---------- shared note under every facade ---------- */
.emb-note{margin:10px 2px 0;font-size:12.5px;line-height:1.5;color:rgba(245,245,240,0.42)}
.post-body .emb-note a,.emb-note a{color:rgba(245,245,240,0.62);text-decoration:underline;text-underline-offset:2px;text-decoration-color:rgba(245,245,240,0.25)}
.post-body .emb-note a:hover,.emb-note a:hover{color:var(--pink,#E05FB8);text-decoration-color:currentColor}

/* ---------- video facade ---------- */
.emb-video .emb-play{display:block;position:relative;width:100%;padding:0;border:1px solid rgba(255,255,255,0.10);border-radius:10px;overflow:hidden;background:rgba(255,255,255,0.03);cursor:pointer;font-family:inherit;transition:border-color 0.2s,transform 0.2s}
.emb-video .emb-play img{display:block;width:100%;height:auto;opacity:0.82;transition:opacity 0.2s}
.emb-video .emb-play:hover{border-color:rgba(255,255,255,0.22);transform:translateY(-1px)}
.emb-video .emb-play:hover img{opacity:1}
.emb-video .emb-play:focus-visible{outline:2px solid var(--pink,#E05FB8);outline-offset:3px}

.emb-ico{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:68px;height:68px;border-radius:50%;background:rgba(14,14,14,0.62);border:1px solid rgba(255,255,255,0.28);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;transition:background 0.2s,border-color 0.2s}
.emb-video .emb-play:hover .emb-ico{background:rgba(14,14,14,0.78);border-color:rgba(255,255,255,0.5)}
.emb-ico svg{width:22px;height:22px;margin-left:3px;fill:#F5F5F0}

.emb-cap{position:absolute;left:0;right:0;bottom:0;padding:34px 16px 12px;text-align:left;font-size:13.5px;font-weight:500;line-height:1.35;color:#F5F5F0;background:linear-gradient(to top,rgba(10,10,10,0.88),transparent)}

/* ---------- X post facade ---------- */
.emb-x .emb-load{display:flex;align-items:center;gap:12px;width:100%;padding:18px 20px;border:1px solid rgba(255,255,255,0.10);border-radius:10px;background:rgba(255,255,255,0.03);color:rgba(245,245,240,0.82);font-family:inherit;font-size:14.5px;font-weight:500;text-align:left;cursor:pointer;transition:border-color 0.2s,background 0.2s,transform 0.2s}
.emb-x .emb-load:hover{border-color:rgba(255,255,255,0.22);background:rgba(255,255,255,0.05);transform:translateY(-1px)}
.emb-x .emb-load:focus-visible{outline:2px solid var(--pink,#E05FB8);outline-offset:3px}
.emb-x .emb-load svg{flex:none;width:17px;height:17px;fill:rgba(245,245,240,0.75)}
.emb-x .emb-load .emb-handle{color:rgba(245,245,240,0.48);font-weight:400}
.emb-x .emb-load[disabled]{opacity:0.55;cursor:default;transform:none}

/* ---------- loaded state ---------- */
.emb-frame{position:relative;width:100%;border-radius:10px;overflow:hidden;background:#0d0d0d}
.emb-frame iframe{display:block;width:100%;height:100%;border:0}
.emb.is-loaded .emb-note{opacity:0.72}
.emb-x.is-loaded .emb-frame{min-height:0}
.emb-x .twitter-tweet{margin:0 auto}

@media (max-width:640px){
  .emb{margin:28px 0 32px}
  .emb-ico{width:54px;height:54px}
  .emb-ico svg{width:18px;height:18px}
  .emb-cap{font-size:12.5px;padding:28px 13px 10px}
  .emb-x .emb-load{padding:15px 16px;font-size:13.5px;gap:10px}
}
