/* Iframe embed block — bare wrapper around one <iframe>.
   Sits inside the paper frame like every other ADS block.
   Scoped under .block-iframe so nothing leaks. */

.block-iframe {
  padding: 60px 54px;
  border-top: 2px solid var(--line, #1A1A1A);
}
.block-iframe:first-child { border-top: 0; }

/* ── Edit-only fields strip ────────────────────────────────
   Renders inside the block but only shows up when the CMS
   editor is loaded (body.cms-edit). Invisible on public site. */

.block-iframe .iframe-edit-strip { display: none; }

body.cms-edit .block-iframe .iframe-edit-strip {
  display: block;
  margin-bottom: 22px;
  padding: 18px 22px;
  background: rgba(255, 75, 34, 0.06);
  border: 1px dashed var(--accent, #D93A5A);
  font-family: Arial, Helvetica, sans-serif;
}
body.cms-edit .block-iframe .iframe-edit-note {
  margin: 0 0 14px;
  font-size: 11px;
  color: var(--accent, #D93A5A);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.06em;
}
body.cms-edit .block-iframe .iframe-edit-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
}
body.cms-edit .block-iframe .iframe-edit-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--ink, #1A1A1A);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
body.cms-edit .block-iframe .iframe-edit-value {
  display: inline-block;
  min-height: 22px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--field-line, #cfc5b8);
  font-family: monospace;
  font-size: 13px;
  color: var(--ink, #1A1A1A);
  word-break: break-all;
  cursor: text;
}
body.cms-edit .block-iframe .iframe-edit-value:focus {
  outline: 2px solid var(--accent, #D93A5A);
  outline-offset: -2px;
}
body.cms-edit .block-iframe .iframe-edit-value:empty::before {
  content: '(click to type)';
  color: rgba(11, 11, 11, 0.35);
  font-style: italic;
}
body.cms-edit .block-iframe .iframe-edit-hint {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted, #555555);
}
body.cms-edit .block-iframe .iframe-edit-hint code {
  background: #fff;
  padding: 1px 4px;
  border: 1px solid var(--field-line, #cfc5b8);
  font-size: 11px;
}

.block-iframe .iframe-frame {
  position: relative;
  background: var(--soft, #e8e2d6);
  border: 1px solid var(--field-line, #cfc5b8);
  overflow: hidden;
}
.block-iframe .iframe-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}

.block-iframe .iframe-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 44px;
  text-align: center;
  color: var(--muted, #555555);
  font-size: 14px;
  min-height: 200px;
}
.block-iframe .iframe-placeholder strong {
  color: var(--ink, #1A1A1A);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.block-iframe .iframe-placeholder code {
  background: var(--field, #fffaf2);
  padding: 2px 6px;
  border: 1px solid var(--field-line, #cfc5b8);
  font-size: 12px;
}

@media (max-width: 720px) {
  .block-iframe { padding: 40px 22px; }
}
