/* Instagram/TikTok: full-height official embeds, no crop or fake masking. */
.pr-social-post{
  box-sizing:border-box;display:flex;flex-direction:column;align-items:center;
  gap:6px;max-width:min(100%,520px);margin:8px auto 14px;
  padding:0;border:0;background:#fff;color:#526879;
}
.pr-social-post--align-left{margin-left:0;margin-right:auto}
.pr-social-post--align-center{margin-left:auto;margin-right:auto}
.pr-social-post--align-right{margin-left:auto;margin-right:0}
.pr-social-post iframe{
  display:block;box-sizing:border-box;width:100%;height:830px;
  min-height:590px;border:0;background:#fff;border-radius:0;
}
/* Instagram reports its actual rendered post height through a validated
   MEASURE event (release-social-resize.js). These compact fallbacks are for
   environments that block that message; never reserve 1,069px for a reel. */
.pr-social-post--instagram{
  container-type:inline-size;
  --pr-ig-photo-height:clamp(690px, calc(125cqw + 200px), 1080px);
  --pr-ig-reel-height:clamp(650px, calc(100cqw + 245px), 960px);
}
.pr-social-post--instagram iframe{
  overflow:hidden;
  min-height:0;
  height:850px;
  height:var(--pr-ig-photo-height);
}
.pr-social-post--instagram iframe[src*="/reel/"]{
  height:765px;
  height:var(--pr-ig-reel-height);
}
.pr-social-post--tiktok iframe{height:780px}
.pr-social-post>a{
  display:block;font-size:11px;line-height:1.55;color:#58758b;
  text-decoration:underline;text-underline-offset:2px;
}
.public-hero-social{display:flex;justify-content:center;background:#fff;max-width:100%;margin:0 0 22px}
.public-hero-social .pr-social-post{width:100%!important;max-width:min(100%,520px)}
/* Never force the portrait embedded post into the old 16:9 hero height. */
.pr-article-typography .pr-social-post{max-width:min(100%,520px)}
.pr-visual-columns .pr-social-post{margin-top:0;margin-bottom:0;max-width:100%}
.pr-visual-columns .pr-social-post iframe{height:700px;min-height:590px}
.pr-visual-columns .pr-social-post--instagram iframe{height:var(--pr-ig-photo-height)}
.pr-visual-columns .pr-social-post--instagram iframe[src*="/reel/"]{height:var(--pr-ig-reel-height)}
/* The editor's actual SNS post: hover-only Change/Delete inside its width. */
.release-create-layout .pr-blank-body .pr-v-social-editor{
  position:relative;box-sizing:border-box;width:100%;max-width:520px;
  margin:0 auto 10px;padding:0;background:#fff;border:0;
}
.release-create-layout .pr-blank-body .pr-v-social-editor[data-align="left"]{margin-left:0;margin-right:auto}
.release-create-layout .pr-blank-body .pr-v-social-editor[data-align="right"]{margin-left:auto;margin-right:0}
.release-create-layout .pr-blank-body .pr-v-social-editor .pr-social-post{
  margin:0;width:100%!important;max-width:100%;gap:0;
}
.release-create-layout .pr-blank-body .pr-v-social-editor .pr-social-post iframe{height:795px}
.release-create-layout .pr-blank-body .pr-v-social-editor .pr-social-post--instagram iframe{
  height:var(--pr-ig-photo-height);
}
.release-create-layout .pr-blank-body .pr-v-social-editor .pr-social-post--instagram iframe[src*="/reel/"]{
  height:var(--pr-ig-reel-height);
}
.release-create-layout .pr-blank-body .pr-v-social-actions{
  box-sizing:border-box;position:absolute;top:8px;right:8px;z-index:8;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;
  gap:6px;max-width:calc(100% - 16px);margin:0;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .12s ease,visibility .12s ease;
}
.release-create-layout .pr-blank-body .pr-v-social-editor:hover .pr-v-social-actions,
.release-create-layout .pr-blank-body .pr-v-social-editor:focus-within .pr-v-social-actions{
  opacity:1;visibility:visible;pointer-events:auto;
}
.release-create-layout .pr-blank-body .pr-v-social-actions button{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  min-height:32px;padding:6px 12px;max-width:100%;border:1px solid #b9d2e2;
  border-radius:5px;background:#fff;color:#275977;font-weight:750;font-size:11px;
  line-height:1.3;white-space:nowrap;box-shadow:0 2px 8px #0002;cursor:pointer;
}
.release-create-layout .pr-blank-body .pr-v-social-actions .pr-v-social-remove{
  background:#fff;color:#98282d;border-color:#e4adb0;font-weight:800;
}
.release-create-layout .pr-blank-body .pr-v-social-actions .pr-v-social-remove:hover{
  background:#fff0f0;color:#7e2027;
}
.release-create-layout .pr-blank-body .pr-v-social-geometry{
  display:flex;align-items:center;justify-content:center;gap:7px;
  margin:6px auto 0;padding:4px 0;
}
.release-create-layout .pr-blank-body .pr-v-social-editor:not(.is-adjusting) .pr-v-social-geometry{
  display:none;
}
.release-create-layout .pr-blank-body .pr-v-social-geometry button{
  min-width:30px;height:29px;border:1px solid #ccdce6;border-radius:5px;
  background:#fff;color:#315f78;cursor:pointer;font-size:13px;
}
.release-create-layout .pr-blank-body .pr-v-social-geometry button.is-on{background:#e9f5fb;border-color:#90b4cd}
.release-create-layout .pr-blank-body .pr-v-social-empty{
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  min-height:240px;background:#fbfcfd;border:1px dashed #cbdce8;border-radius:5px;
}
.release-create-layout .pr-blank-body .pr-v-social-empty button{
  min-height:40px;padding:9px 14px;background:#fff;border:1px solid #a8c5d8;
  border-radius:5px;color:#285b79;font-weight:700;cursor:pointer;
}
.release-create-layout .pr-blank-body .pr-v-block:has(> .pr-v-block-body > .pr-v-social-editor)
  > .pr-v-block-header .pr-v-block-actions{display:none}
/* Cover image loading is asynchronous. An older image's onload event
   must never reveal its canvas or media buttons over an SNS feature. */
.release-create-layout .pr-blank-cover.has-social .release-cover-preview canvas,
.release-create-layout .pr-blank-cover.has-social .release-cover-preview .pr-blank-cover-drop,
.release-create-layout .pr-blank-cover.has-social .pr-blank-cover-toolbar .pr-blank-cover-existing,
.release-create-layout .pr-blank-cover.has-social .pr-blank-cover-toolbar .pr-blank-cover-actions{
  display:none!important;
}
/* Cover editor: a WHITE tall canvas, real portrait post centered, empty sides. */
.release-create-layout .pr-blank-cover.has-social .release-cover-preview{
  box-sizing:border-box;aspect-ratio:auto;height:840px;max-height:none;
  background:#fff;overflow:hidden;border:0;
}
.release-create-layout .pr-blank-cover.has-social.has-instagram .release-cover-preview{
  height:var(--pr-instagram-cover-height,780px);
}
.release-create-layout .pr-blank-cover.has-social .pr-cover-social-preview{
  display:flex;justify-content:center;align-items:flex-start;position:absolute;
  inset:0;width:100%;height:100%;background:#fff;
}
.release-create-layout .pr-blank-cover .pr-cover-social-preview[hidden]{display:none!important}
.release-create-layout .pr-blank-cover.has-social .pr-cover-social-preview iframe{
  box-sizing:border-box;width:min(100%,440px);height:100%;border:0;background:#fff;
}
.release-create-layout .pr-blank-cover.has-social #pr-blank-cover-video-open,
.release-create-layout .pr-blank-cover.has-social #pr-cover-video-clear{display:none!important}
.release-create-layout .pr-blank-cover:not(.has-social) #pr-cover-social-remove[hidden]{display:none!important}
.release-create-layout .pr-blank-cover.has-video:not(.has-social) #pr-cover-social-open{display:none!important}
.release-create-layout .pr-blank-cover.has-social #pr-cover-social-open,
.release-create-layout .pr-blank-cover.has-social #pr-cover-social-remove{
  display:inline-flex;align-items:center;justify-content:center;
  position:static;box-sizing:border-box;margin:0;padding:6px 12px;min-height:32px;
  border:1px solid #c7d8e4;border-radius:5px;background:#fff;
  color:#285773;font-size:11px;font-weight:750;white-space:nowrap;
  box-shadow:0 2px 9px #0003;cursor:pointer;
}
.release-create-layout .pr-blank-cover.has-social #pr-cover-social-remove{
  color:#98282d;border-color:#e5afb1;font-weight:800;
}
.release-create-layout .pr-blank-cover.has-social .pr-blank-cover-toolbar{
  position:absolute;top:12px;right:12px;left:auto;bottom:auto;
  width:max-content;max-width:calc(100% - 24px);margin:0;padding:0;
  z-index:12;opacity:0;visibility:hidden;pointer-events:none;
}
.release-create-layout .pr-blank-cover.has-social .release-cover-preview:hover .pr-blank-cover-toolbar,
.release-create-layout .pr-blank-cover.has-social .release-cover-preview:focus-within .pr-blank-cover-toolbar{
  opacity:1;visibility:visible;pointer-events:auto;
}
/* Modal matches the already-established eyecatch video dialog, no new design. */
body.release-create-layout .pr-cover-social-dialog,
body.release-create-layout .pr-social-block-dialog{
  box-sizing:border-box;width:min(520px,calc(100% - 28px));max-height:min(88dvh,720px);
  overflow:auto;margin:auto;padding:0;border:1px solid #cbd8e3;border-radius:10px;
  color:#263d4d;background:#fff;box-shadow:0 18px 58px #14263745;
}
body.release-create-layout .pr-cover-social-dialog:not([open]),
body.release-create-layout .pr-social-block-dialog:not([open]){display:none!important}
body.release-create-layout .pr-cover-social-dialog::backdrop,
body.release-create-layout .pr-social-block-dialog::backdrop{background:#13222f94}
body.release-create-layout .pr-social-dialog-head,
body.release-create-layout .pr-social-dialog-actions{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:16px 20px;border-bottom:1px solid #e1e8ef;
}
body.release-create-layout .pr-social-dialog-head h2{margin:0;font-size:17px;font-weight:750}
body.release-create-layout .pr-social-dialog-head button{
  border:0;background:transparent;font-size:24px;color:#526c7f;cursor:pointer;
}
body.release-create-layout .pr-social-dialog-body{display:flex;flex-direction:column;gap:9px;padding:20px}
body.release-create-layout .pr-social-dialog-body label{font-size:13px;font-weight:750}
body.release-create-layout .pr-social-dialog-body input{
  box-sizing:border-box;width:100%;min-height:42px;padding:9px 11px;
  border:1px solid #b5cbd9;border-radius:5px;background:#fff;font-size:14px;
}
body.release-create-layout .pr-social-dialog-body p{margin:0;font-size:12px;line-height:1.65;color:#617485}
body.release-create-layout .pr-social-dialog-body p[role="alert"]{color:#b83236}
body.release-create-layout .pr-social-dialog-body [hidden]{display:none!important}
body.release-create-layout .pr-social-dialog-actions{
  justify-content:flex-end;border-top:1px solid #e1e8ef;border-bottom:0;background:#f8fafc;
}
body.release-create-layout .pr-social-dialog-actions button{
  min-height:36px;padding:7px 12px;border:1px solid #c5d3df;border-radius:5px;
  background:#fff;color:#345064;font-size:12px;font-weight:700;cursor:pointer;
}
body.release-create-layout .pr-social-dialog-actions button:last-child{
  border-color:#20668b;background:#20668b;color:#fff;
}
@media(hover:none){
  .release-create-layout .pr-blank-cover.has-social .pr-blank-cover-toolbar,
  .release-create-layout .pr-blank-body .pr-v-social-actions{
    opacity:1;visibility:visible;pointer-events:auto;
  }
}
@media(max-width:600px){
  .release-create-layout .pr-blank-cover.has-social .release-cover-preview{height:660px}
  .release-create-layout .pr-blank-cover.has-social.has-instagram .release-cover-preview{
    height:var(--pr-instagram-cover-height,720px);
  }
  .release-create-layout .pr-blank-body .pr-v-social-editor .pr-social-post iframe{height:700px}
  .release-create-layout .pr-blank-body .pr-v-social-editor .pr-social-post--instagram iframe{
    height:var(--pr-ig-photo-height);
  }
  .release-create-layout .pr-blank-body .pr-v-social-editor .pr-social-post--instagram iframe[src*="/reel/"]{
    height:var(--pr-ig-reel-height);
  }
  .release-create-layout .pr-blank-cover.has-social .pr-blank-cover-toolbar{top:7px;right:7px}
}
/* Width drag is part of the selected edit chrome, never visible on publication. */
.release-create-layout .pr-blank-body .pr-v-social-width-handle{
  position:absolute;right:6px;top:48%;z-index:7;
  display:block;width:13px;height:37px;border:1px solid #96b5c9;
  border-radius:5px;background:#fff;cursor:ew-resize;
  box-shadow:0 2px 8px #0002;
}
.release-create-layout .pr-blank-body .pr-v-block:not(.is-selected) .pr-v-social-width-handle,
.release-create-layout .pr-blank-body .pr-v-block:not(.is-selected) .pr-v-social-geometry{
  display:none!important;
}
.release-create-layout .pr-blank-body .pr-v-cell-item .pr-v-social-editor{
  box-sizing:border-box;width:100%;max-width:100%;padding:0;margin:0 auto;
}
.release-create-layout .pr-blank-body .pr-v-social-editor[data-align="left"] .pr-social-post{
  margin-left:0;margin-right:auto;
}
.release-create-layout .pr-blank-body .pr-v-social-editor[data-align="right"] .pr-social-post{
  margin-left:auto;margin-right:0;
}
