/* ============================================================
   CMS integration — announcement banner + dev overlay
   ============================================================ */

/* ---------- Announcement banner ---------- */
.pub-announcement {
  width: 100%;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  z-index: 40;
}
.pub-announcement-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 9px 20px;
  display: flex; align-items: center; gap: 12px;
}
.pub-announcement-dot {
  font-size: 10px;
  opacity: .8;
  line-height: 1;
}
.pub-announcement-msg {
  flex: 1;
  min-width: 0;
}
.pub-announcement-cta {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pub-announcement-cta:hover { text-decoration-thickness: 2.5px; }
.pub-announcement-close {
  background: none; border: 0;
  color: inherit; opacity: .6;
  font-size: 22px; line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  font-family: var(--font-body);
}
.pub-announcement-close:hover { opacity: 1; }

/* Tone variants */
.pub-announcement.ann-info        { background: #1e3a8a; /* navy */ }
.pub-announcement.ann-warning     { background: #b45309; /* amber-dark */ }
.pub-announcement.ann-urgent      { background: #991b1b; /* deeper red */ }
.pub-announcement.ann-celebration {
  background: linear-gradient(90deg, #c41a20 0%, #e8a91a 50%, #c41a20 100%);
  color: #fff;
}

/* ---------- Dev overlay: CMS binding outlines ---------- */
html[data-cms-overlay="on"] .cms-binding {
  position: relative;
  outline: 2px dashed rgba(37, 99, 235, .55);
  outline-offset: 2px;
  border-radius: 2px;
}
html[data-cms-overlay="on"] .cms-binding-label {
  position: absolute;
  top: -12px;
  left: 8px;
  z-index: 30;
  background: #2563eb;
  color: #fff;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 2px 7px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
html[data-cms-overlay="on"] .cms-binding-icon {
  color: #93c5fd;
  font-size: 9px;
}
html[data-cms-overlay="on"] .cms-binding-live {
  background: #10b981;
  color: #042f2e;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 9px;
  letter-spacing: .08em;
}
html[data-cms-overlay="off"] .cms-binding,
html:not([data-cms-overlay]) .cms-binding {
  /* no-op — acts like a plain fragment */
}
html[data-cms-overlay="off"] .cms-binding-label,
html:not([data-cms-overlay]) .cms-binding-label {
  display: none;
}

/* Slight spacing when overlay is on so labels don't collide */
html[data-cms-overlay="on"] .cms-binding + .cms-binding {
  margin-top: 8px;
}
