/* Admin-only on-page editor, hidden entirely for ordinary visitors. */
.page-editor-toolbar { display:flex; align-items:center; gap:8px; margin-left:6px; flex-wrap:wrap; position:relative; z-index:55; }
.page-editor-toolbar button {
  min-height:37px; width:auto; white-space:nowrap; padding:8px 12px;
  border:1px solid #ff007f; background:#171219; color:#f4efe6;
  font:750 .76rem/1.2 "Plus Jakarta Sans",Arial,sans-serif; cursor:pointer;
  border-radius:2px;
}
.page-editor-toolbar .page-editor-toggle { color:#e2ff00;border-color:#e2ff00; }
.page-editor-toolbar .page-editor-save { color:#09090b;background:#e2ff00;border-color:#e2ff00; }
.page-editor-toolbar .page-editor-cancel {color:#f4efe6;border-color:#a98ab2;}
.page-editor-toolbar button:disabled {opacity:.45;cursor:not-allowed;}
body.page-editing [data-edit-key] { outline:2px dashed rgba(226,255,0,.54); outline-offset:4px; cursor:text; }
body.page-editing [data-edit-key]:hover,body.page-editing [data-edit-key]:focus {
  outline:2px solid #e2ff00; outline-offset:4px; background-color:rgba(226,255,0,.055);
}
body.page-editing [data-edit-kind="image"]{cursor:pointer;}
body.page-editing [data-edit-key][contenteditable="true"]{min-width:12px;white-space:pre-wrap;user-select:text;}
body.page-editing .editor-dirty {outline-color:#ff007f;}
#page-editor-message {position:fixed;bottom:24px;right:24px;z-index:3000;background:#171219;
  border:2px solid #e2ff00;color:#f4efe6;padding:12px 17px;
  max-width:min(400px,90vw);box-shadow:4px 4px 0 #000;font:700 .9rem "Plus Jakarta Sans",Arial,sans-serif;}
#page-editor-message.editor-error{border-color:#ff6880;}
.punk-custom-art{display:none;max-width:970px;margin:25px auto;}
.punk-custom-art img{display:block;width:100%;max-height:350px;object-fit:contain;}
.punk-custom-art.has-image{display:block;padding:10px;border:2px solid #451d52;background:#110c14;box-shadow:5px 5px 0 #c000d8;}
body.page-editing .punk-custom-art:not(.has-image){display:block;position:relative;min-height:140px;border:2px dashed #e2ff00;}
body.page-editing .punk-custom-art:not(.has-image)::before{
  content:"Click to add a page image";pointer-events:none;position:absolute;inset:0;
  display:grid;place-items:center;color:#e2ff00;background:rgba(15,9,18,.92);
  font:750 1rem "Plus Jakarta Sans",Arial,sans-serif;}
body.page-editing .punk-custom-art:not(.has-image) img{height:140px;object-fit:cover;}
body.page-editing .punk-custom-art:not(.has-image)::before{z-index:0;}
body.page-editing .punk-custom-art:not(.has-image) img{position:relative;z-index:1;opacity:.02;}
body.page-editing .editable-image-wrap img:hover{filter:brightness(1.12);outline:3px dashed #e2ff00;outline-offset:2px;}
@media(max-width:900px){.page-editor-toolbar{width:100%;margin:6px 0 0;order:4;}}
@media(max-width:700px){
  .page-editor-toolbar{width:100%;justify-content:space-between;order:4;}
  .page-editor-toolbar button{flex:1;}
  #page-editor-message{left:12px;right:12px;bottom:12px;max-width:none;}
}


/* One editable logo is shared by every page, including the admin dashboard. */
.brand-logo-slot {display:none;position:relative;align-items:center;justify-content:center;min-width:0;}
.brand.has-custom-logo .brand-logo-slot {display:flex;}
.brand.has-custom-logo .brand-noel,.brand.has-custom-logo .brand-copy {display:none;}
.brand-logo-slot img {display:block;width:min(248px,34vw);height:58px;object-fit:contain;}
body.page-editing .brand:not(.has-custom-logo) .brand-logo-slot {
  display:flex;width:155px;height:58px;border:2px dashed #e2ff00;background:#1d1122;
}
body.page-editing .brand:not(.has-custom-logo) .brand-logo-slot img {
  width:100%;height:100%;opacity:.02;
}
body.page-editing .brand:not(.has-custom-logo) .brand-logo-slot::after {
  content:"Click to upload logo";position:absolute;inset:0;display:grid;place-items:center;
  text-align:center;padding:6px;color:#e2ff00;font:700 .72rem "Plus Jakarta Sans",Arial,sans-serif;
  pointer-events:none;
}
@media(max-width:700px){.brand-logo-slot img{width:min(220px,57vw);height:50px;}}
