/* PREVIEW ONLY. Not part of the site and not theme styling.
   1. The "Show build map" control and its labels, so the developer can quote page by page.
   2. Nothing else: every look on these pages comes from AU's theme files in au-theme/. */
:root {
  --uat-ink: oklch(0.22 0.04 265);        /* navy-tinted near black, label background */
  --uat-paper: oklch(0.985 0.006 85);     /* warm near white, label text: 15.6:1 on --uat-ink */
  --uat-line: oklch(0.72 0.17 60);        /* amber outline (3.4:1 on the theme's white) */
  --uat-new: oklch(0.55 0.2 25);          /* red for NEW BLOCK NEEDED: 5.1:1 against --uat-paper */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

.uat-preview {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
  font: 500 14px/1.4 Arial, Helvetica, sans-serif;
}
.uat-preview__toggle {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--uat-line);
  border-radius: 999px;
  background: var(--uat-ink);
  color: var(--uat-paper);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 140ms var(--ease-out), background-color 150ms ease;
}
.uat-preview__toggle:active { transform: scale(0.97); }
.uat-preview__toggle:focus-visible { outline: 2px solid var(--uat-line); outline-offset: 3px; }
.uat-preview__toggle[aria-pressed="true"] { background: var(--uat-new); border-color: var(--uat-new); }
@media (hover: hover) and (pointer: fine) {
  .uat-preview__toggle:hover { background: oklch(0.3 0.05 265); }
  .uat-preview__toggle[aria-pressed="true"]:hover { background: oklch(0.5 0.19 25); }
}
.uat-preview__note {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--uat-ink);
  color: var(--uat-paper);
}
/* Two classes and two elements, to outrank the theme's body-scoped link colour. */
html body .uat-preview .uat-preview__note a { color: var(--uat-paper); text-decoration: underline; text-underline-offset: 2px; }

/* Labels: one per tagged section, shown only while the overlay is on. */
.show-uat-blocks [data-uat-block] {
  outline: 2px dashed var(--uat-line);
  outline-offset: -2px;
}
.show-uat-blocks [data-uat-block]:not(#masthead):not(.site-footer) { position: relative; }
.uat-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 50;
  max-width: calc(100% - 12px);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--uat-ink);
  color: var(--uat-paper);
  font: 500 12px/1.35 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  pointer-events: none;
}
.uat-tag--new { background: var(--uat-new); }
/* Round 4: fixed and top-layer blocks keep their own position while labelled (the rule above would make them
   relative): the floating Concierge button and the two dialogs. Their label sits above them, full width. */
.show-uat-blocks .zt-concierge[data-uat-block], .show-uat-blocks dialog.zt-dialog[data-uat-block] { position: fixed !important; }
.show-uat-blocks .zt-concierge > .uat-tag { top: auto; bottom: calc(100% + 6px); left: auto; right: 0; width: max-content; max-width: min(320px, calc(100vw - 32px)); }
.show-uat-blocks dialog.zt-dialog > .uat-tag { position: static; display: block; margin: 0 0 8px; max-width: none; }
.show-uat-blocks [data-draft] { text-decoration: underline dotted var(--uat-line) 2px; text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .uat-preview__toggle { transition: background-color 150ms ease; }
  .uat-preview__toggle:active { transform: none; }
}
