/* ───────────────────────────────────────────────────────────────────────────
   Visual content editor — admin-only chrome.
   Loaded for everyone (tiny), but these classes only appear when the
   allowlisted admin is signed in and editing, so visitors see nothing.
   ─────────────────────────────────────────────────────────────────────────── */

/* Editable text affordance */
.ew-editable {
  outline: 1.5px dashed rgba(0, 17, 176, 0.35);
  outline-offset: 3px;
  border-radius: 3px;
  cursor: text;
  transition: outline-color 0.15s ease, background 0.15s ease;
}
.ew-editable:hover {
  outline-color: rgba(0, 17, 176, 0.6);
  background: rgba(0, 17, 176, 0.04);
}
.ew-editable:focus {
  outline: 2px solid var(--blue, #0011b1);
  outline-offset: 3px;
  background: rgba(0, 17, 176, 0.06);
}

/* Floating toolbar */
.ew-toolbar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: calc(100vw - 32px);
  padding: 10px 12px;
  background: #0b1020;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(8, 12, 30, 0.45);
  font-family: var(--font-body, "IBM Plex Sans", system-ui, sans-serif);
  font-size: 14px;
}

.ew-badge {
  font-weight: 600;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}
.ew-badge--edit {
  background: rgba(0, 92, 255, 0.35);
}

.ew-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.ew-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.24);
}
.ew-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.ew-btn--primary {
  background: var(--blue-bright, #1f5bff);
}
.ew-btn--primary:hover:not(:disabled) {
  background: #3a72ff;
}
.ew-btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25);
}
.ew-btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.ew-status {
  font-size: 13px;
  color: #c7d0ee;
  max-width: 28ch;
  line-height: 1.3;
}

@media (max-width: 620px) {
  .ew-toolbar {
    bottom: 12px;
    font-size: 13px;
  }
  .ew-status {
    width: 100%;
    text-align: center;
  }
}
