/* PGRG F16 demo editor styles */
.demo-banner {
  position: fixed; top: 0; left: 0; right: 0;
  background: #fef3c7; color: #78350f;
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size: 14px; padding: 12px 20px;
  border-bottom: 1px solid #fcd34d;
  display: flex; align-items: center; gap: 10px;
  z-index: 9999;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.demo-banner .icon { font-size: 18px; }
.demo-banner .text strong { color: #92400e; }

/* Visual affordance: editable zones get a soft hover ring */
[data-cms-field] {
  cursor: text;
  transition: outline 0.15s ease, background 0.15s ease;
  outline: 1px dashed transparent;
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
}
[data-cms-field]:hover {
  outline-color: #94a3b8;
  background: rgba(148, 163, 184, 0.06);
}
[data-cms-field]:focus,
[data-cms-field][contenteditable="true"]:focus,
[data-cms-field-editing="true"] {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  background: rgba(99, 102, 241, 0.04);
}
/* Floating pencil indicator on hover for desktop */
@media (hover: hover) {
  [data-cms-field]:hover::after {
    content: "✎";
    position: absolute;
    margin-left: 6px;
    color: #94a3b8;
    font-size: 14px;
  }
}
/* hide the affordance until DOMContentLoaded, then enable */
body.demo-loading [data-cms-field] { outline: 1px dashed transparent !important; }
