/* Live-edit UI — light theme, matches the audit's warm palette.
   Loaded only on localhost (the JS is a no-op in production). */

.edit-toggle, .edit-save {
  position: fixed;
  right: 24px;
  z-index: 9999;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, color 0.14s ease;
  box-shadow: 0 4px 14px rgba(20, 30, 25, 0.15);
}

.edit-toggle {
  bottom: 24px;
  background: rgba(255, 255, 255, 0.95);
  color: #5a5a5a;
  border: 1px solid #d8d6d0;
  backdrop-filter: blur(8px);
}
.edit-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.edit-toggle--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.edit-toggle--active:hover {
  background: #1f5239;
  color: #fff;
}

.edit-save {
  bottom: 76px;
  background: var(--editorial-bg, #f7f1e3);
  color: var(--editorial-ink, #4a3f24);
  border: 1px solid var(--editorial-border, #d9cfb6);
  animation: editSaveIn 0.18s ease;
}
.edit-save:hover {
  background: #efe6cf;
  transform: translateY(-1px);
}
@keyframes editSaveIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.edit-status {
  position: fixed;
  bottom: 78px;
  right: 24px;
  z-index: 9998;
  padding: 8px 14px;
  background: rgba(20, 30, 25, 0.92);
  color: #f0eee8;
  font-size: 0.78rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s;
}
.edit-status--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Editable outlines */
.edit-editable {
  outline: 1px dashed rgba(45, 106, 79, 0.35);
  outline-offset: 4px;
  border-radius: 3px;
  cursor: text;
  transition: outline-color 0.16s ease, background 0.16s ease;
}
.edit-editable:focus {
  outline: 2px solid rgba(45, 106, 79, 0.55);
  outline-offset: 4px;
  background: rgba(216, 239, 226, 0.25);
}
.edit-editable--dirty {
  outline-color: rgba(180, 83, 9, 0.6);
}
.edit-editable--saved {
  outline-color: rgba(45, 106, 79, 0.85);
  background: rgba(216, 239, 226, 0.5);
}

/* When edit mode is on, give body a subtle ambient signal so it's clear
   the page is in a different state than usual. */
body.edit-mode {
  box-shadow: inset 0 0 0 3px rgba(45, 106, 79, 0.08);
}
body.edit-mode .site-header {
  border-bottom-color: rgba(45, 106, 79, 0.35);
}
