/* ==========================================================================
   CF1 Self Storage — Access iframe demo (/embed)
   Reuses the design tokens from styles.css (--orange, --navy, etc.).
   ========================================================================== */

.embed-hero {
  padding: 56px 0 24px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.embed-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  margin: 0 0 8px;
}
.embed-hero__title {
  font-size: clamp(30px, 4.5vw, 48px);
  margin: 0 0 12px;
}
.embed-hero__subtitle {
  max-width: 760px;
  font-size: 18px;
  color: var(--ink-soft);
}
.embed-hero__note {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--ink-soft);
}
.embed-hero__note--ok {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}
.embed-hero__note--warn {
  background: #fffaeb;
  border-color: #fedf89;
  color: #b54708;
}

/* ===== layout ===== */
.embed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 24px;
}
@media (max-width: 900px) {
  .embed-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== frame card ===== */
.embed-frame-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.embed-frame-card__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f3f4f6;
  border-bottom: 1px solid var(--border);
}
.embed-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
}
.embed-dot--r { background: #ef4444; }
.embed-dot--y { background: #f59e0b; }
.embed-dot--g { background: #22c55e; }
.embed-frame-card__url {
  margin-left: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.embed-frame-status {
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.embed-frame-status--pending { background: #eff6ff; color: #1d4ed8; }
.embed-frame-status--responded { background: #ecfdf3; color: #067647; }
.embed-frame-status--blocked { background: #fef3f2; color: #b42318; }

.embed-frame-wrap {
  background:
    repeating-conic-gradient(#f8fafc 0% 25%, #fff 0% 50%) 50% / 24px 24px;
  min-height: 420px;
}
.embed-frame {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

.embed-loginhint {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
  background: #fffaeb;
  border: 1px solid #fedf89;
  color: #b54708;
}
.embed-loginhint code { font-size: 12.5px; }

.embed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.embed-check-output {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--ink-soft);
}
.embed-check-output--pending { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.embed-check-output--ok { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.embed-check-output--warn { background: #fffaeb; border-color: #fedf89; color: #b54708; }
.embed-check-output--bad { background: #fef3f2; border-color: #fecdca; color: #b42318; }

/* ===== checklist ===== */
.embed-checklist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 24px;
}
.embed-checklist__title { font-size: 20px; margin: 0 0 6px; }
.embed-checklist__hint { font-size: 14px; margin: 0 0 18px; }

.embed-reqs { list-style: none; margin: 0; padding: 0; }
.embed-req {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.embed-req:first-child { border-top: 0; }
.embed-req__body h3 { font-size: 15px; margin: 0 0 4px; font-weight: 700; }
.embed-req__body p { font-size: 13.5px; margin: 0; line-height: 1.5; }
.embed-req__body code { font-size: 12.5px; }

.embed-req__pill {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  background: #e5e7eb;
  color: var(--ink-soft);
}
.embed-req__pill--ok { background: #16a34a; color: #fff; }
.embed-req__pill--bad { background: #dc2626; color: #fff; }

.embed-checklist__legend {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.embed-checklist__legend .embed-req__pill {
  width: 18px;
  height: 18px;
  font-size: 11px;
}

/* ===== config + troubleshooting ===== */
.embed-section-title { text-align: left; margin-top: 24px; }
.embed-config { padding-top: 8px; }
.embed-config__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.embed-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.embed-panel h3 { font-size: 16px; margin: 0 0 10px; }
.embed-panel p { font-size: 14px; margin: 0 0 8px; }
.embed-panel__note { font-size: 13px; color: var(--ink-soft); }

.embed-kv { margin: 0; }
.embed-kv dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 10px;
}
.embed-kv dt:first-child { margin-top: 0; }
.embed-kv dd { margin: 2px 0 0; }
.embed-kv code { font-size: 13px; word-break: break-all; }

.embed-code {
  background: var(--navy-dark);
  color: #e6edf6;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0 0 10px;
}
.embed-code code { color: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.embed-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.embed-table th,
.embed-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.embed-table th {
  background: #f3f4f6;
  font-weight: 700;
  font-size: 13px;
}
.embed-table tr:last-child td { border-bottom: 0; }
.embed-table code { font-size: 12.5px; }

.embed-trouble { padding-bottom: 64px; }
.embed-trouble__foot { margin-top: 16px; font-size: 14px; }

/* generic inline code on this page */
.embed-config code,
.embed-req code,
.embed-table code,
.embed-hero__note code {
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.embed-code code { background: transparent; padding: 0; }
