/*
 * Unpublished-page editor affordance — v1-restored (Bucket B v3, 2026-05-19).
 *
 * User feedback: v1's fixed-position banner at the viewport top was the
 * correct placement; v2's in-flow move was a misread of the ask. The
 * banner stays at viewport top here. Body class is set by
 * mvsd_helpers_preprocess_html(); CSS paints the fixed banner only.
 * Editor-only by construction.
 *
 * 2026-06-03: removed the page background tint (#fffaf2). Per user, the tint
 * shifted every on-page color enough to make it hard to judge how the real
 * (published) colors read while editing. The fixed banner alone is plenty.
 */

body.node-unpublished-editor-view {
  padding-top: 3rem; /* clear the fixed banner */
}

body.node-unpublished-editor-view::before {
  content: "Unpublished \2014 visitors can\2019 t see this page. Use the Publish button to make it live.";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0.65rem 1rem;
  background: #b54708;
  color: #fff;
  font: 600 0.9375rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  text-align: center;
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

@media print {
  body.node-unpublished-editor-view { padding-top: 0; }
  body.node-unpublished-editor-view::before { display: none; }
}
