/* Edit layer theme. Change these to match the project's brand; nothing else in this file needs touching. */
:root{
  --pe-accent:var(--c-secondary,#00BAC6);  --pe-accent-rgb:116,114,238;      /* saved-edit badge and outlines */
  --pe-primary:var(--c-primary,#00679F);   --pe-primary-rgb:74,49,241;        /* buttons, unsaved-edit badge */
  --pe-primary-light:var(--c-secondary,#0093D5); --pe-primary-light-rgb:116,114,238;
  --pe-ink:#1f1f1f; --pe-line:var(--c-mid,#D8DEE0); --pe-tint:var(--c-light,#F2F1F1); --pe-muted:var(--c-dark,#4a5a62); --pe-strike:#8a3232;
  --pe-font:var(--font-body,system-ui,-apple-system,"Segoe UI",sans-serif);
  --pe-radius:var(--radius,5px); --pe-side:260px;                              /* button corners and sidebar width follow the prototype */
}
/* Saved edits: teal badge with the date, tinted background. Unsaved edits: deep blue "Unsaved" badge. */
body.proto-editing [data-edit].is-live{outline:2px solid var(--pe-accent);outline-offset:4px;background:rgba(var(--pe-accent-rgb),.12)}
body.proto-editing [data-edit].is-live::before{content:"Edited " attr(data-edited-when);position:absolute;top:-22px;left:-6px;font:700 11px/1 var(--pe-font);letter-spacing:.3px;text-transform:uppercase;background:var(--pe-accent);color:#fff;padding:4px 7px;border-radius:3px;pointer-events:none;white-space:nowrap}
/* Compare: the original wording, struck through, beneath each saved edit. */
body.proto-editing.proto-compare [data-edit].is-live::after{content:attr(data-was);display:block;margin-top:8px;padding-top:6px;border-top:1px dashed rgba(0,0,0,.25);font-size:.85em;font-weight:400;line-height:1.45;letter-spacing:0;text-transform:none;color:var(--pe-strike);text-decoration:line-through;white-space:pre-wrap}
[data-edit].is-pulse{animation:protoPulse 1.2s ease-out}
@keyframes protoPulse{0%{box-shadow:0 0 0 0 rgba(var(--pe-accent-rgb),.9)}100%{box-shadow:0 0 0 22px rgba(var(--pe-accent-rgb),0)}}
/* Image placeholders: click to replace with an upload; the label sits inside the frame. */
body.proto-editing :is([data-edit-type="img"],[data-part="img"]){cursor:pointer}   /* placeholders position themselves (relative or absolute); never override it */
body.proto-editing :is([data-edit-type="img"],[data-part="img"]) > img{opacity:.78;transition:opacity .15s}   /* translucent in edit mode so overlaid copy stays legible; hover shows it in full */
body.proto-editing :is([data-edit-type="img"],[data-part="img"]):hover > img{opacity:1}
body.proto-editing :is([data-edit-type="img"],[data-part="img"])::after{content:"Click to add image";position:absolute;left:50%;bottom:12px;transform:translateX(-50%);font:700 11px/1 var(--pe-font);letter-spacing:.3px;text-transform:uppercase;background:var(--pe-ink);color:#fff;padding:7px 12px;border-radius:999px;pointer-events:none;z-index:3;white-space:nowrap}
body.proto-editing :is([data-edit-type="img"],[data-part="img"])[data-img-note]::after{content:attr(data-img-note);max-width:90%;white-space:normal;text-align:center;line-height:1.3;text-transform:none;letter-spacing:0}   /* "1600×1067 px uploaded | recommended 2560×800 px", or the recommendation while the space is empty */
/* a logo or a small space (data-img-small): a tiny pill that shows on hover, or the short flag; the advice is in the hover bar */
body.proto-editing :is([data-edit-type="img"],[data-part="img"])[data-img-small]::after{content:"Edit";font-size:9px;padding:4px 7px;bottom:4px;left:auto;right:4px;transform:none;opacity:0;transition:opacity .15s}
body.proto-editing :is([data-edit-type="img"],[data-part="img"])[data-img-small]:hover::after{opacity:1}
body.proto-editing :is([data-edit-type="img"],[data-part="img"])[data-img-small][data-img-note]::after{content:attr(data-img-note);opacity:1;max-width:none;white-space:nowrap}
/* image flag: too small for the space; the pill turns amber and says so */
body.proto-editing :is([data-edit-type="img"],[data-part="img"])[data-flag]::after{background:#b45309}
.proto-edit__alt{display:flex;flex-direction:column;align-items:stretch;gap:8px;font-size:13px;color:var(--pe-ink);width:100%}
.proto-edit__alt h4{margin:0;font:700 11px/1 var(--pe-font);letter-spacing:.4px;text-transform:uppercase;color:var(--pe-muted)}
.proto-edit__alt label{display:flex;flex-direction:column;gap:4px}
.proto-edit__alt button{width:100%}
.proto-edit__alt button[hidden]{display:none}
.proto-edit__alt[hidden]{display:none}
.proto-edit__alt input{width:100%;box-sizing:border-box;font:13px/1.4 var(--pe-font);padding:7px 10px;border:1px solid var(--pe-line);border-radius:6px;background:#fff;color:var(--pe-ink)}
/* image flag: no description yet; the pill turns amber and says so (same as too small) */
/* Embed placeholders: click to paste embed code (a video, map, gallery or widget from another service). The pasted code
   sits in .proto-embed inside the placeholder: --frame (an iframe) fills the space, --flow (script widgets) takes its own
   height. These rules also serve visitors, since the baked page and the edge injection carry the same wrapper. */
[data-edit-type="embed"]:has(> .proto-embed),[data-edit-type="video"]:has(> .proto-embed){background:transparent;color:inherit;overflow:hidden}
[data-edit-type="embed"]:has(> .proto-embed--flow){height:auto!important;min-height:80px;display:block}
[data-edit-type="embed"] > .proto-embed,[data-edit-type="video"] > .proto-embed{position:relative;z-index:1;width:100%;height:100%}
[data-edit-type="embed"] > .proto-embed--frame > iframe,[data-edit-type="video"] > .proto-embed--frame > iframe{display:block;width:100%;height:100%;border:0}
[data-edit-type="embed"] > .proto-embed--flow{height:auto}
[data-edit-type="embed"] > .proto-embed--flow iframe{max-width:100%}
body.proto-editing [data-edit-type="embed"]{position:relative;cursor:pointer}
body.proto-editing a[data-edit-type="embed"]::after{display:none}   /* a small chip (the header weather widget) has no room for the label; the state bar says what it is */
body.proto-editing [data-edit-type="embed"] > .proto-embed{pointer-events:none;opacity:.78;transition:opacity .15s}   /* the click reaches the placeholder, not the iframe */
body.proto-editing [data-edit-type="embed"]:hover > .proto-embed{opacity:1}
body.proto-editing [data-edit-type="embed"]::after{content:"Click to add embed code";position:absolute;left:50%;bottom:12px;transform:translateX(-50%);font:700 11px/1 var(--pe-font);letter-spacing:.3px;text-transform:uppercase;background:var(--pe-ink);color:#fff;padding:7px 12px;border-radius:999px;pointer-events:none;z-index:3;white-space:nowrap}
body.proto-editing [data-edit-type="embed"]:has(> .proto-embed)::after{content:"Click to change embed"}
.proto-edit__embed{display:flex;flex-direction:column;align-items:stretch;gap:6px;font-size:13px;color:var(--pe-ink);width:100%}
.proto-edit__embed[hidden]{display:none}
.proto-edit__embed label{display:flex;flex-direction:column;gap:6px}
.proto-edit__embed textarea{width:100%;box-sizing:border-box;font:12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;padding:7px 10px;border:1px solid var(--pe-line);border-radius:6px;resize:vertical}
.proto-edit__embed button{width:100%}
.proto-edit__embed button[hidden]{display:none}
/* Forms: the fields stay as designed; a click opens the settings panel (where submissions go, CRM, confirmation, field
   changes). Children ignore the pointer in edit mode so the click reaches the form. */
body.proto-editing [data-edit-type="form"]{position:relative;cursor:pointer;outline-offset:8px}
body.proto-editing [data-edit-type="form"] *{pointer-events:none}
body.proto-editing [data-edit-type="form"]::before{content:"Click to set where submissions go";position:absolute;left:50%;bottom:-14px;transform:translateX(-50%);font:700 11px/1 var(--pe-font);letter-spacing:.3px;text-transform:uppercase;background:var(--pe-ink);color:#fff;padding:7px 12px;border-radius:999px;pointer-events:none;z-index:3;white-space:nowrap}
body.proto-editing [data-edit-type="form"][data-form-settings]::before{content:"Click to change form settings"}
body.proto-editing [data-edit][data-flag="form"]::after{background:#b45309}
.proto-edit__form{display:flex;flex-direction:column;align-items:stretch;gap:8px;font-size:13px;color:var(--pe-ink);width:100%}
.proto-edit__form[hidden]{display:none}
.proto-edit__form h4{margin:0;font:700 11px/1 var(--pe-font);letter-spacing:.4px;text-transform:uppercase;color:var(--pe-muted)}
.proto-edit__form label{display:flex;flex-direction:column;gap:4px}
.proto-edit__form input,.proto-edit__form select,.proto-edit__form textarea{width:100%;box-sizing:border-box;font:13px/1.4 var(--pe-font);padding:7px 10px;border:1px solid var(--pe-line);border-radius:6px;background:#fff;color:var(--pe-ink)}
.proto-edit__form textarea{resize:vertical}
.proto-edit__form .pe-dropdowns{display:flex;flex-direction:column;gap:8px}
.proto-edit__form .pe-dropdowns:empty{display:none}
.proto-edit__form .pe-dropdowns small{font-weight:400;color:var(--pe-muted)}
.proto-edit__form button{width:100%}
/* Videos: the client gives the YouTube or Vimeo link; the player shows in the placeholder. */
body.proto-editing [data-part="link"]{cursor:pointer;outline:1px dashed rgba(var(--pe-primary-light-rgb),.65);outline-offset:3px;border-radius:2px}   /* a link in a repeatable row */
body.proto-editing [data-part="img"]{outline:1px dashed rgba(var(--pe-primary-light-rgb),.65);outline-offset:3px}   /* a photo in a repeatable row; it keeps its own position (an absolutely placed photo under a logo collapsed when forced relative, Surrey #29) */
body.proto-editing [data-edit-type="video"]{position:relative;cursor:pointer}
body.proto-editing [data-edit-type="video"] *{pointer-events:none}
body.proto-editing [data-edit-type="video"] > .proto-embed{opacity:.78;transition:opacity .15s}
body.proto-editing [data-edit-type="video"]:hover > .proto-embed{opacity:1}
body.proto-editing [data-edit-type="video"]::before{content:"Click to add the video link";position:absolute;left:50%;bottom:12px;transform:translateX(-50%);font:700 11px/1 var(--pe-font);letter-spacing:.3px;text-transform:uppercase;background:var(--pe-ink);color:#fff;padding:7px 12px;border-radius:999px;pointer-events:none;z-index:3;white-space:nowrap}
body.proto-editing [data-edit-type="video"][data-video-settings]::before{content:"Click to change the video"}
body.proto-editing [data-edit][data-flag="video"]::after{background:#b45309}
.proto-edit__video{display:flex;flex-direction:column;align-items:stretch;gap:8px;font-size:13px;color:var(--pe-ink);width:100%}
.proto-edit__video[hidden]{display:none}
.proto-edit__video h4{margin:0;font:700 11px/1 var(--pe-font);letter-spacing:.4px;text-transform:uppercase;color:var(--pe-muted)}
.proto-edit__video label{display:flex;flex-direction:column;gap:4px}
.proto-edit__video input{width:100%;box-sizing:border-box;font:13px/1.4 var(--pe-font);padding:7px 10px;border:1px solid var(--pe-line);border-radius:6px;background:#fff;color:var(--pe-ink)}
.proto-edit__video button{width:100%}
.proto-edit__video button[hidden]{display:none}
/* Maps: built with the maps block; a click collects the place and its latitude/longitude. */
body.proto-editing [data-edit-type="map"]{cursor:pointer}
body.proto-editing [data-edit-type="map"] *{pointer-events:none}
body.proto-editing [data-edit-type="map"]::before{content:"Click to set the map location";position:absolute;left:50%;bottom:12px;transform:translateX(-50%);font:700 11px/1 var(--pe-font);letter-spacing:.3px;text-transform:uppercase;background:var(--pe-ink);color:#fff;padding:7px 12px;border-radius:999px;pointer-events:none;z-index:3;white-space:nowrap}
body.proto-editing [data-edit-type="map"][data-map-settings]::before{content:"Click to change the map location"}
body.proto-editing [data-edit][data-flag="map"]::after{background:#b45309}
.proto-edit__map{display:flex;flex-direction:column;align-items:stretch;gap:8px;font-size:13px;color:var(--pe-ink);width:100%}
.proto-edit__map[hidden]{display:none}
.proto-edit__map h4{margin:0;font:700 11px/1 var(--pe-font);letter-spacing:.4px;text-transform:uppercase;color:var(--pe-muted)}
.proto-edit__map label{display:flex;flex-direction:column;gap:4px;flex:1 1 0;min-width:0}
.proto-edit__map .pe-row{display:flex;gap:8px}
.proto-edit__map input{width:100%;box-sizing:border-box;font:13px/1.4 var(--pe-font);padding:7px 10px;border:1px solid var(--pe-line);border-radius:6px;background:#fff;color:var(--pe-ink)}
.proto-edit__map button{width:100%}
/* Repeatable lists (data-edit-type="repeat"): the rows' text and rich parts edit in place; each row carries
   Add row / Remove row controls in edit mode. The container is the field; parts get the field look. */
body.proto-editing [data-edit-type="repeat"]{cursor:default;outline-offset:8px}
body.proto-editing [data-part]{outline:1px dashed rgba(var(--pe-primary-light-rgb),.65);outline-offset:3px;cursor:text;border-radius:2px}
body.proto-editing [data-part]:hover{outline-style:solid;outline-color:var(--pe-primary-light)}
body.proto-editing [data-part]:focus{outline:2px solid var(--pe-primary);outline-offset:3px;background:rgba(var(--pe-accent-rgb),.08)}
body.proto-editing [data-edit-type="repeat"].is-locked [data-part]{outline:none;cursor:default}
.proto-rep{display:none}
body.proto-editing [data-repeat-item]{position:relative}
body.proto-editing [data-repeat-item]:not(.is-column){flex-wrap:wrap}   /* a row laid out as a flex line lets its controls wrap under it instead of squeezing the text; a column card (edit.js marks it is-column) keeps its photo, which wrap shrank to its icon (Surrey #51 #54) */
body.proto-editing .proto-rep{grid-column:1/-1}
body.proto-editing .proto-rep{display:flex;gap:6px;justify-content:flex-end;padding:6px 0 2px;width:100%;flex:0 0 auto;align-self:stretch}   /* at the foot of the row (or of its card) */
body.proto-editing .proto-rep button{font:700 11px/1 var(--pe-font);letter-spacing:.3px;text-transform:uppercase;background:var(--pe-ink);color:#fff;border:0;border-radius:999px;padding:7px 12px;cursor:pointer;box-shadow:none}
body.proto-editing .proto-rep button:hover{background:var(--pe-primary)}
body.proto-editing .proto-rep button[data-rep="remove"]{background:transparent;color:var(--pe-strike);border:1px solid var(--pe-strike)}
body.proto-editing .proto-rep button[data-rep="remove"]:hover{background:var(--pe-strike);color:#fff}
body.proto-editing [data-edit-type="repeat"].is-locked .proto-rep{display:none}
body.proto-editing .proto-rep-grid .proto-rep{opacity:0;pointer-events:none;transition:opacity .15s}   /* a grid of cards: one set of controls at a time, on the card being pointed at or edited */
body.proto-editing .proto-rep-grid [data-repeat-item]:hover .proto-rep,body.proto-editing .proto-rep-grid [data-repeat-item]:focus-within .proto-rep{opacity:1;pointer-events:auto}
body.proto-editing [data-repeat-item][data-proto-new]{box-shadow:inset 3px 0 0 var(--pe-primary)}
/* Global blocks (header and footer, data-sync="header" / "footer"): one edit changes every page; their own badge text. */
/* Links whose address the client supplies (data-edit-type="link"): the anchor is the field; a click opens the address box. */
body.proto-editing [data-edit-type="link"]{cursor:pointer}
body.proto-editing [data-edit][data-flag="link"]::after{background:#b45309}
.proto-edit__link{display:flex;flex-direction:column;align-items:stretch;gap:8px;font-size:13px;color:var(--pe-ink);width:100%}
.proto-edit__link[hidden]{display:none}
.proto-edit__link h4{margin:0;font:700 11px/1 var(--pe-font);letter-spacing:.4px;text-transform:uppercase;color:var(--pe-muted)}
.proto-edit__link label{display:flex;flex-direction:column;gap:4px}
.proto-edit__link input{width:100%;box-sizing:border-box;font:13px/1.4 var(--pe-font);padding:7px 10px;border:1px solid var(--pe-line);border-radius:6px;background:#fff;color:var(--pe-ink)}
.proto-edit__link button{width:100%}
/* Import-managed areas (data-locked, set by mark-editable from skip_classes / skip_pages): ghosted with a badge in
   edit mode so the client can see there is nothing to do there. Cards fed by queries, taxonomies or imports. */
body.proto-editing [data-locked]{position:relative;opacity:.45;filter:grayscale(1);pointer-events:none;user-select:none}
body.proto-editing [data-locked]::after{content:attr(data-locked);position:absolute;top:10px;left:10px;z-index:5;font:700 11px/1 var(--pe-font);letter-spacing:.3px;text-transform:uppercase;background:#374151;color:#fff;padding:7px 12px;border-radius:999px;white-space:nowrap}
/* Synced components (data-sync, set by mark-editable from sync_classes): one block that appears on many pages; an edit
   to any copy changes every copy. Outlined and badged in edit mode so the client knows the reach of the edit. */
body.proto-editing [data-sync]{position:relative;outline:2px dashed #7c3aed;outline-offset:-2px}
body.proto-editing [data-sync]::after{content:"Synced: appears on " attr(data-sync-pages) " pages, one edit changes them all";position:absolute;top:10px;right:10px;bottom:auto;left:auto;width:auto;height:auto;transform:none;opacity:1;pointer-events:none;z-index:5;font:700 11px/1 var(--pe-font);letter-spacing:.3px;text-transform:uppercase;background:#7c3aed;color:#fff;padding:7px 12px;border-radius:999px;white-space:nowrap}
body.proto-editing [data-sync="header"]::after{content:"Header: on every page, one edit changes them all"}   /* global blocks: their own badge (after the generic rule so it wins) */
body.proto-editing [data-sync="footer"]::after{content:"Footer: on every page, one edit changes them all"}
body.proto-editing [data-sync="header"],body.proto-editing [data-sync="footer"]{outline-offset:-3px}
/* Content states: draft (default), generated (blue), review (amber), approved (green, locked). Active only while the Site panel is
   open (body.proto-states, Shawn 2026-10-29: after launch they get in the way); otherwise the page shows word recommendations and the
   editing marks alone. The state bar floats above the hovered or focused field; its status buttons show with the panel. */
/* Outlines: dotted in the state's colour while passive (grey draft, blue generated, amber review, green approved); solid only
   for the state whose filter is active. Hover and focus keep their own solid outline. */
body.proto-editing.proto-states [data-edit][data-state="draft"],body.proto-editing.proto-states [data-file][data-state="draft"]{outline:2px dotted #9ca3af;outline-offset:2px}
body.proto-editing.proto-states [data-edit][data-state="review"],body.proto-editing.proto-states [data-file][data-state="review"]{outline:2px dotted #d97706;outline-offset:2px}
body.proto-editing.proto-states [data-edit][data-state="generated"],body.proto-editing.proto-states [data-file][data-state="generated"]{outline:2px dotted #2563eb;outline-offset:2px}
body.proto-editing.proto-states [data-edit][data-state="approved"],body.proto-editing.proto-states [data-file][data-state="approved"]{outline:2px dotted #15803d;outline-offset:2px;cursor:default}
body.proto-editing.proto-filter-draft [data-edit][data-state="draft"],body.proto-editing.proto-filter-draft [data-file][data-state="draft"],body.proto-editing.proto-filter-review [data-edit][data-state="review"],body.proto-editing.proto-filter-review [data-file][data-state="review"],body.proto-editing.proto-filter-generated [data-edit][data-state="generated"],body.proto-editing.proto-filter-generated [data-file][data-state="generated"],body.proto-editing.proto-filter-approved [data-edit][data-state="approved"],body.proto-editing.proto-filter-approved [data-file][data-state="approved"]{outline-style:solid}
body.proto-editing [data-edit]:hover{outline-style:solid}
body.proto-editing.proto-states [data-edit][data-state="approved"]:hover{background:transparent}
/* images: an outline outside the box is clipped by banners, so the state shows as a frame inside the picture */
body.proto-editing.proto-states :is([data-edit-type="img"],[data-part="img"])[data-state="draft"] > img{outline:4px dotted #9ca3af;outline-offset:-4px}
body.proto-editing.proto-states :is([data-edit-type="img"],[data-part="img"])[data-state="review"] > img{outline:4px dotted #d97706;outline-offset:-4px}
body.proto-editing.proto-states :is([data-edit-type="img"],[data-part="img"])[data-state="generated"] > img{outline:4px dotted #2563eb;outline-offset:-4px}
body.proto-editing.proto-states :is([data-edit-type="img"],[data-part="img"])[data-state="approved"] > img{outline:4px dotted #15803d;outline-offset:-4px}
body.proto-editing.proto-filter-draft [data-edit-type="img"][data-state="draft"] > img,body.proto-editing.proto-filter-review [data-edit-type="img"][data-state="review"] > img,body.proto-editing.proto-filter-generated [data-edit-type="img"][data-state="generated"] > img,body.proto-editing.proto-filter-approved [data-edit-type="img"][data-state="approved"] > img{outline-style:solid}
body.proto-editing.proto-filter-draft [data-edit]:not([data-state="draft"]),body.proto-editing.proto-filter-draft [data-file]:not([data-state="draft"]),body.proto-editing.proto-filter-review [data-edit]:not([data-state="review"]),body.proto-editing.proto-filter-review [data-file]:not([data-state="review"]),body.proto-editing.proto-filter-approved [data-edit]:not([data-state="approved"]),body.proto-editing.proto-filter-approved [data-file]:not([data-state="approved"]){opacity:.18}
.proto-state{position:absolute;z-index:1002;display:flex;align-items:center;gap:2px;background:#fff;border:1px solid var(--pe-line);border-radius:999px;padding:3px;box-shadow:0 6px 20px rgba(0,0,0,.15);font:600 11px/1 var(--pe-font);color:var(--pe-ink)}
.proto-state[hidden]{display:none}
.proto-state button{border:0;background:transparent;padding:6px 10px;border-radius:999px;font:inherit;cursor:pointer;color:#555}
.proto-state button[data-state]{display:none}
html:not(.proto-states) .proto-state button[data-orig]{border-left:0!important;margin-left:0}   /* with the statuses dormant the bar starts here: no divider */
html.proto-states .proto-state button[data-state]{display:inline-block}   /* the bar sits outside <body>: the class is on <html> too */
.proto-state button:hover{background:#f3f4f6;color:#111}
.proto-state button.is-on[data-state="draft"]{background:#e5e7eb;color:#111}
.proto-state button.is-on[data-state="review"]{background:#fef3c7;color:#92400e}
.proto-state button.is-on[data-state="approved"]{background:#dcfce7;color:#166534}
.proto-state__note{font-weight:400;color:#666;padding:0 8px 0 4px;white-space:nowrap}
.proto-state__orig{margin-left:4px;border-left:1px solid var(--pe-line)!important;border-radius:0!important;color:var(--pe-primary)!important}
.proto-state__orig[hidden]{display:none}
body.proto-editing [data-edit].is-original{outline:2px dotted var(--pe-strike);background:rgba(138,50,50,.06)}
.proto-state__note:empty{display:none}
/* status filter: stacked, full width, coloured like the on-page outlines (grey draft, amber review, green approved) */
.proto-edit__filter{display:flex;flex-direction:column;gap:6px;width:100%}
.proto-edit__filter button{width:100%;text-align:left;padding:9px 12px;font-size:13px;background:#fff;color:var(--pe-ink);border:1px solid var(--pe-line);border-left-width:6px}
.proto-edit__filter button[data-filter="draft"]{border-left-color:#9ca3af}
.proto-edit__filter button[data-filter="review"]{border-left-color:#d97706}
.proto-edit__filter button[data-filter="approved"]{border-left-color:#15803d}
.proto-edit__filter button[data-filter="all"]{border-left-color:var(--pe-ink)}
.proto-edit__filter button:hover{background:var(--pe-tint);color:var(--pe-ink);border-color:var(--pe-line)}
.proto-edit__filter button[data-filter="draft"]:hover,.proto-edit__filter button[data-filter="draft"].is-on{border-left-color:#9ca3af}
.proto-edit__filter button[data-filter="review"]:hover,.proto-edit__filter button[data-filter="review"].is-on{border-left-color:#d97706}
.proto-edit__filter button[data-filter="approved"]:hover,.proto-edit__filter button[data-filter="approved"].is-on{border-left-color:#15803d}
.proto-edit__filter button.is-on{color:#fff;border-color:transparent}
.proto-edit__filter button[data-filter="all"].is-on{background:var(--pe-ink);border-left-color:var(--pe-ink)}
.proto-edit__filter button[data-filter="draft"].is-on{background:#6b7280}
.proto-edit__filter button[data-filter="generated"].is-on{background:#2563eb}
.proto-edit__filter button[data-filter="review"].is-on{background:#d97706}
.proto-edit__filter button[data-filter="approved"].is-on{background:#15803d}
/* Plain lists inside rich regions (the marker's .proto-rich wrappers, whole-element rich fields, rich parts of a row): the
   site's reset strips list padding and only .prose puts it back, so bullets hung outside the text edge. Classed lists
   (.bullets etc.) style themselves and are left alone. Applies to visitors too: this sheet is on every page. */
.proto-rich ul:not([class]),[data-edit-type="rich"] ul:not([class]),[data-part="rich"] ul:not([class]){list-style:disc outside;padding-left:24px}
.proto-rich ol:not([class]),[data-edit-type="rich"] ol:not([class]),[data-part="rich"] ol:not([class]){list-style:decimal outside;padding-left:24px}
/* Rich text blocks: the whole region is one edit; keep paragraph rhythm while editing. */
body.proto-editing [data-edit-type="rich"]{outline-offset:8px}
[data-edit-type="rich"] > * + *{margin-top:var(--proto-rich-gap,16px)}   /* always on, not only while editing: the wrapper hides the parent's flex gap, so it must space its own children; a site sets --proto-rich-gap on a container to match its design (0 where paragraphs carry their own margins) */
/* File links: a chip beside each download control attaches a PDF (only in edit mode). */
.proto-file{display:none}
body.proto-editing .proto-file{display:inline-flex;align-items:center;gap:6px;margin-left:10px;vertical-align:middle;font:700 11px/1 var(--pe-font);letter-spacing:.3px;text-transform:uppercase;background:var(--pe-primary);color:#fff;border:0;border-radius:999px;padding:7px 12px;cursor:pointer;white-space:nowrap}
body.proto-editing .proto-file:hover{background:var(--pe-primary-light)}
body.proto-editing [data-file].is-changed + .proto-file{background:var(--pe-primary)}
body.proto-editing [data-file].is-live + .proto-file{background:var(--pe-accent)}
/* Formatting toolbar for text blocks (shown while a block has focus). */
.proto-tb{position:absolute;z-index:9998;display:flex;gap:2px;padding:4px;background:var(--pe-ink);border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.proto-tb[hidden]{display:none}
.proto-tb button{font:700 12px/1 var(--pe-font);min-width:30px;height:28px;padding:0 8px;border:0;border-radius:5px;background:transparent;color:#fff;cursor:pointer}
.proto-tb button:hover{background:rgba(255,255,255,.15)}
.proto-tb button.is-on{background:var(--pe-accent);color:#fff}
.proto-tb button[data-fmt="italic"]{font-style:italic}
.pe-list{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;font-size:13px;line-height:1.5}
.pe-list a,.pe-list span{display:block}
.pe-list a{color:var(--pe-primary);text-decoration:underline}
.pe-list a.is-here{font-weight:700;text-decoration:none}
.pe-list b{color:var(--pe-ink)}
.pe-list details{width:100%;font-size:12px;color:var(--pe-muted)}
.pe-list summary{cursor:pointer}
.pe-list details a{margin-left:12px;font-size:12px}
.pe-list a.pe-synced{color:#5b21b6;background:rgba(124,58,237,.08);padding:2px 6px;border-radius:4px}
.pe-counts{display:table;width:100%;border-collapse:collapse;font-size:13px}
.pe-counts tr>*{padding:4px 0;text-align:right;font-weight:700}
.pe-counts tr>*:first-child{text-align:left;font-weight:400;color:var(--pe-muted)}
.pe-counts thead th{font:700 10px/1 var(--pe-font);letter-spacing:.3px;text-transform:uppercase;color:var(--pe-muted);padding-bottom:6px}
.pe-counts tbody tr:first-child td{border-bottom:1px solid var(--pe-line)}
/* Length flags (data-flag from the content outline): an amber corner note; the outline stays the state's, solid under the Flagged filter. Advice, never a lock */
body.proto-editing.proto-filter-flagged [data-edit][data-flag]{outline:2px solid #b45309}
body.proto-editing.proto-filter-flagged [data-edit-type="img"][data-flag] > img{outline:4px solid #b45309;outline-offset:-4px}
body.proto-editing [data-edit][data-flag]:not([data-edit-type="img"]){position:relative}
body.proto-editing [data-edit][data-flag]:not([data-edit-type="img"])::after{content:attr(data-flag-note);position:absolute;right:-6px;bottom:-20px;z-index:4;font:600 10px/1 var(--pe-font);letter-spacing:.2px;background:#b45309;color:#fff;padding:5px 8px;border-radius:999px;white-space:nowrap;pointer-events:none}
body.proto-editing.proto-filter-flagged [data-edit]:not([data-flag]),body.proto-editing.proto-filter-flagged [data-file]{opacity:.18}
.proto-edit__filter button[data-filter="flagged"]{border-left-color:#b45309}
.proto-edit__filter button[data-filter="flagged"].is-on{background:#b45309}
.pe-flags{font-size:12px;color:var(--pe-muted)}
/* Website tab: the site map with a status bar per page */
.pe-sitesum{font-size:13px;font-weight:600;color:var(--pe-ink)}
.pe-legend{font-size:11px;color:var(--pe-muted);display:flex;gap:10px;align-items:center}
.pe-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:4px;vertical-align:-1px;background:#e5e7eb}
.pe-legend i.is-approved,.pe-bar b.is-approved{background:#15803d}
.pe-legend i.is-review,.pe-bar b.is-review{background:#d97706}
.pe-tree{width:100%;font-size:13px}
.pe-tree ul{list-style:none;margin:0;padding:0}
.pe-tree ul ul{padding-left:14px;border-left:1px solid var(--pe-line);margin-left:6px}
.pe-tree li{margin:0}
.pe-tree details>summary{list-style:none;cursor:pointer;display:flex;align-items:center}
.pe-tree details>summary::-webkit-details-marker{display:none}
.pe-tree details>summary::before{content:"\25B8";display:inline-block;width:12px;font-size:11px;color:var(--pe-muted);flex:0 0 12px}
.pe-tree details[open]>summary::before{content:"\25BE"}
.pe-tree li>.pe-node{margin-left:12px}
.pe-node{display:flex;align-items:center;gap:8px;padding:4px 0;color:var(--pe-ink);text-decoration:none;flex:1 1 auto;min-width:0}
.pe-node em{font-style:normal;flex:1 1 auto;min-width:0;line-height:1.25}
a.pe-node:hover em{text-decoration:underline;color:var(--pe-primary)}
.pe-node.is-here em{font-weight:700}
.pe-node.is-done em{color:#166534}
.pe-node small{flex:0 0 auto;font-size:10px;color:var(--pe-muted);min-width:30px;text-align:right}
.pe-bar{flex:0 0 40px;height:6px;border-radius:3px;background:#e5e7eb;overflow:hidden;display:flex}
.pe-bar b{display:block;height:100%}
.pe-tree ul.pe-tree__synced,.pe-tree ul.pe-tree__group{margin:0;padding:5px 0;border-top:1px solid var(--pe-line)}   /* one section per kind: the same space above and below every rule (5px plus the 4px node padding); outranks .pe-tree ul */
.pe-tree__synced>li>details>summary em,.pe-tree__group>li>details>summary em{font-weight:700}
.pe-tree__synced small,.pe-tree__group small{font-weight:400;color:var(--pe-muted)}
.pe-tree .pe-node em small{display:block;font-size:10px;line-height:1.3;margin-top:2px;text-align:left;min-width:0;font-weight:400;color:var(--pe-muted)}   /* support copy sits under the heading or the item name, never beside it (groups, Templates) */
.pe-tree__synced .pe-node,.pe-tree__group .pe-node{align-items:flex-start}
.pe-tree__synced .pe-node .pe-bar,.pe-tree__group .pe-node .pe-bar,.pe-tree__synced .pe-node>small,.pe-tree__group .pe-node>small{margin-top:4px}
.pe-tree__group li>ul{margin-top:2px}   /* a form's thank-you page, one level in */
.pe-tree li.pe-tree__break{padding-block:5px;border-top:1px solid var(--pe-line)}   /* Header, Footer, Templates, Other pages: divided sections, same rhythm as the groups below */
.pe-tree li:not(.pe-tree__break)+li.pe-tree__break{margin-top:5px}   /* the first rule after the plain pages gets the same gap above it */
.pe-extras{font-size:12px;color:var(--pe-muted)}
.pe-extras:empty{display:none}
.pe-extras a{color:var(--pe-primary)}
.pe-extras a[data-state="approved"]{color:#166534}
.pe-extras a[data-state="review"]{color:#92400e}
.pe-node.pe-synced em{color:#5b21b6}
.pe-node.is-imported em{color:var(--pe-muted)}
.pe-synchere{font-size:12px;color:var(--pe-muted)}
.pe-synchere:empty{display:none}
.pe-synchere a{color:#5b21b6}
.pe-tree h5 small{font-weight:400;text-transform:none;letter-spacing:0}
[data-sync].is-pulse{animation:protoPulse 1.2s ease-out}

/* Generated Content (blue): copy adapted from the old site by the build, to be read and either approved or rewritten */
body.proto-editing.proto-filter-generated [data-edit]:not([data-state="generated"]),body.proto-editing.proto-filter-generated [data-file]:not([data-state="generated"]){opacity:.18}
.proto-state button.is-on[data-state="generated"]{background:#dbeafe;color:#1e40af}
.proto-edit__filter button[data-filter="generated"],.proto-edit__filter button[data-filter="generated"]:hover,.proto-edit__filter button[data-filter="generated"].is-on{border-left-color:#2563eb}
.pe-legend i.is-generated,.pe-bar b.is-generated{background:#2563eb}
.proto-state__src{margin-left:4px;padding:6px 10px;border-left:1px solid var(--pe-line);color:var(--pe-primary);text-decoration:none;font:inherit}
.proto-state__src:hover{text-decoration:underline}
.proto-state__src[hidden]{display:none}

/* Page tab: the synced-components table under the page table */
.pe-synced{margin-top:10px;font-size:12px}
.pe-synced:empty{display:none}
.pe-synced caption{caption-side:top;text-align:left;font:700 10px/1 var(--pe-font);letter-spacing:.3px;text-transform:uppercase;color:var(--pe-muted);padding:0 0 6px}
.pe-synced caption small{font-weight:400;text-transform:none;letter-spacing:0}
.pe-synced td a{color:#5b21b6;text-decoration:none}
.pe-synced td a:hover{text-decoration:underline}
.pe-synced tbody tr:first-child td{border-bottom:1px solid var(--pe-line)}
.pe-synced tfoot td.pe-synced__list{text-align:left;font-weight:400;color:var(--pe-muted);font-size:12px;padding-top:8px;line-height:1.6;white-space:normal}
.pe-counts tr.pe-row-flag td{color:#b45309}
.pe-counts tr.pe-row-flag td:first-child{color:#b45309;font-weight:600}

/* Notes (data-proto-note, from note_classes in the config or written on an element by hand): a grey badge in edit mode saying why
   there is nothing to do here (map pins fed by the itinerary's stops, a link the build points at a filtered list). No lock. */
body.proto-editing [data-proto-note]{position:relative}
body.proto-editing [data-proto-note]:not(:is([data-edit-type="img"],[data-part="img"]))::after{content:"\2139\00a0\00a0" attr(data-proto-note);position:absolute;top:10px;left:10px;z-index:5;font:600 11px/1.3 var(--pe-font);letter-spacing:.1px;background:#eef2f7;color:#374151;border:1px solid #cbd5e1;padding:6px 10px;border-radius:999px;max-width:min(420px,90%);white-space:normal;pointer-events:none}
body.proto-editing a[data-proto-note]:not(:is([data-edit-type="img"],[data-part="img"])){position:static}   /* a link inside a text block: the note sits under the line, not over the words (an image editable is an <a> too: it keeps its own position and pill) */
body.proto-editing a[data-proto-note]:not(:is([data-edit-type="img"],[data-part="img"]))::after{position:static;display:inline-block;margin-left:8px;vertical-align:middle;font-weight:500;padding:3px 8px}
body.proto-editing [data-locked] [data-proto-note]::after{display:none!important}
/* A note on a text field (a heading, a paragraph, a list item, a post's title or excerpt) must not cover the words: a small i at the
   field's top-right corner, the whole note under the field's right corner on hover or focus (above it sits the state bar) (Surrey Food Bank's program rows, 2026-10-19). */
body.proto-editing :is(h1,h2,h3,h4,h5,h6,p,li,blockquote,[data-edit-type="rich"],[data-edit-type="text"],[data-part="text"],[data-part="rich"])[data-proto-note]:not(a)::after{content:"\2139";top:-9px;left:auto;right:-9px;width:18px;height:18px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:11px;line-height:1;max-width:none}
body.proto-editing :is(h1,h2,h3,h4,h5,h6,p,li,blockquote,[data-edit-type="rich"],[data-edit-type="text"],[data-part="text"],[data-part="rich"])[data-proto-note]:not(a):is(:hover,:focus-within)::after{content:"\2139\00a0\00a0" attr(data-proto-note);top:calc(100% + 4px);bottom:auto;left:auto;right:-9px;width:max-content;height:auto;padding:6px 10px;border-radius:999px;display:block;font-size:11px;line-height:1.3;max-width:min(420px,90vw);white-space:normal}
/* An image with a note (a post's featured image) keeps its own pill (::after: "Click to add image", the size); the note takes ::before, top-left. */
body.proto-editing :is([data-edit-type="img"],[data-part="img"])[data-proto-note]::before{content:"\2139\00a0\00a0" attr(data-proto-note);position:absolute;top:10px;left:10px;z-index:5;font:600 11px/1.3 var(--pe-font);letter-spacing:.1px;background:#eef2f7;color:#374151;border:1px solid #cbd5e1;padding:6px 10px;border-radius:999px;max-width:min(420px,90%);white-space:normal;pointer-events:none}
/* Video poster: the picture shown before the video plays; a click on it (visitors) starts the player in place. */
[data-edit-type="video"] > .proto-video{position:relative;width:100%;height:100%;overflow:hidden}
[data-edit-type="video"]:has(> .proto-video){background:transparent;color:inherit;overflow:hidden}
.proto-video__poster{display:block;width:100%;height:100%;object-fit:cover}
.proto-video__play{position:absolute;left:50%;top:50%;width:72px;height:72px;margin:-36px 0 0 -36px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;pointer-events:none}
.proto-video__play .icon{width:28px;height:28px;margin-left:4px}
.proto-video--playable{cursor:pointer}
.proto-video--playable:hover .proto-video__play{background:rgba(0,0,0,.75)}
body.proto-editing [data-edit-type="video"] > .proto-video{opacity:.78;transition:opacity .15s}
body.proto-editing [data-edit-type="video"]:hover > .proto-video{opacity:1}
.pe-poster{display:flex;flex-direction:column;gap:6px;padding-top:4px;border-top:1px solid var(--pe-line)}
.pe-poster[hidden]{display:none}
.pe-poster__label{font-size:13px;color:var(--pe-ink)}
.pe-poster__label small{display:block;font-size:11px;color:var(--pe-muted)}
.pe-poster__thumb{display:block;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:6px;background:var(--pe-tint)}
.pe-poster__thumb[hidden]{display:none}
.pe-poster__alt{display:flex;flex-direction:column;gap:4px}
.pe-poster__alt[hidden]{display:none}
.pe-poster__thumb img{display:block;width:100%;height:100%;object-fit:cover}
.proto-edit__video button[hidden]{display:none}
.proto-edit__link button[hidden]{display:none}
/* Links inside a text block: dotted underline in edit mode so the client can find them; the Link toolbar button changes them */
body.proto-editing :is([data-edit-type="rich"],[data-part="rich"]) a{text-decoration:underline dotted;text-underline-offset:3px}

/* Document view (the bar's menu): the page's editable copy as one plain column for clients who find pointing at text on the
   page hard. The page is hidden while it is on; the bar, the drawer and the popover stay. */
.pe-doc{display:none}
body.proto-doc > :not(.pe-doc):not(script):not(style):not(link){display:none!important}
body.proto-doc .pe-doc{display:block;font:400 17px/1.6 var(--pe-font);color:var(--pe-ink);background:#fff;min-height:100vh}
.pe-doc__inner{max-width:760px;margin:0 auto;padding:48px 32px 160px}
.pe-doc__kicker{margin:0 0 6px;font:700 12px/1 var(--pe-font);letter-spacing:.3px;text-transform:uppercase;color:var(--pe-muted)}
.pe-doc__title{margin:0 0 8px;font:700 32px/1.2 var(--pe-font);color:var(--pe-ink)}
.pe-doc__hint{margin:0 0 28px;color:var(--pe-muted);font-size:15px}
.pe-doc__section{margin:0 0 36px;padding-top:20px;border-top:1px solid var(--pe-line)}
.pe-doc__section > h2{margin:0 0 16px;font:700 20px/1.3 var(--pe-font);color:var(--pe-ink)}
.pe-doc__section > .pe-doc__hint{margin-bottom:16px}
.pe-doc__field{margin:0 0 18px}
.pe-doc__label{display:block;margin:0 0 6px;font:700 12px/1.2 var(--pe-font);letter-spacing:.3px;text-transform:uppercase;color:var(--pe-muted)}
.pe-doc__label small{font-weight:500;text-transform:none;letter-spacing:0}
.pe-doc__edit{min-height:1.6em;padding:12px 14px;border:1px solid var(--pe-line);border-radius:var(--pe-radius);background:#fff;outline:none;font:inherit;color:inherit}
.pe-doc__edit:focus{border-color:var(--pe-primary);box-shadow:0 0 0 3px rgba(var(--pe-primary-rgb),.15)}
.pe-doc__edit:not([contenteditable]){background:var(--pe-tint);color:var(--pe-muted)}
.pe-doc__edit--rich p,.pe-doc__edit--rich ul,.pe-doc__edit--rich ol,.pe-doc__edit--rich h3,.pe-doc__edit--rich h4,.pe-doc__edit--rich h5{margin:0 0 .8em}
.pe-doc__edit--rich > :last-child{margin-bottom:0}
.pe-doc__edit a{color:var(--pe-primary)}
.pe-doc__body{padding:12px 14px;border:1px dashed var(--pe-line);border-radius:var(--pe-radius);color:var(--pe-muted);font-size:15px;overflow-wrap:anywhere}
.pe-doc__body img{display:block;max-width:240px;max-height:160px;object-fit:cover;border-radius:4px}
.pe-doc__meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:6px;font-size:13px;color:var(--pe-muted)}
.pe-doc select.pe-doc__state{font:600 12px/1 var(--pe-font);padding:5px 8px;border:1px solid var(--pe-line);border-radius:999px;background:#fff;color:var(--pe-ink)}
.pe-doc button.pe-secondary{font:600 13px/1 var(--pe-font);padding:8px 12px;border:1px solid var(--pe-line);border-radius:var(--pe-radius);background:#fff;color:var(--pe-ink);cursor:pointer;box-shadow:none}
.pe-doc button.pe-secondary:hover{background:var(--pe-tint)}
.pe-doc__list{padding:14px;border:1px solid var(--pe-line);border-radius:var(--pe-radius)}
.pe-doc__row{padding:12px 0 4px;border-top:1px solid var(--pe-line)}
.pe-doc__row:first-of-type{border-top:0;padding-top:0}
.pe-doc__rowhead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 10px;font:700 13px/1 var(--pe-font);color:var(--pe-muted)}
.pe-doc__rowacts{display:flex;gap:6px}
.pe-doc__noimg{font-style:italic}
.pe-doc__section--shared{background:rgba(124,58,237,.06);border:1px solid rgba(124,58,237,.25);border-radius:var(--pe-radius);padding:20px 22px 8px;margin-left:-22px;margin-right:-22px}   /* the synced components' purple, so these blocks read as the site's, not the page's */
.pe-doc__section--shared > h2{color:#5b21b6}
.pe-doc__sub{margin:22px 0 12px;padding-top:14px;border-top:1px solid rgba(124,58,237,.25);font:700 15px/1.3 var(--pe-font);color:#5b21b6}
.pe-doc__sub:first-of-type{margin-top:4px;padding-top:0;border-top:0}

/* posts: a post page's hero image space shows only when it has a picture, or while editing (so a draft can get one) */
.blog-post__hero:not(:has(img)){display:none}
body.proto-editing .blog-post__hero:not(:has(img)){display:block;aspect-ratio:auto;height:160px;background:var(--pe-tint);border:1px dashed var(--pe-line);border-radius:6px}   /* empty: a small space to drop the picture into, not a full-size grey block */
body.proto-editing .blog-post__hero:not(:has(img)) > .icon{width:48px;height:48px;margin:56px auto 0;display:block;opacity:.5}
body.proto-editing .blog-post__hero::after{width:auto;height:auto;top:auto;bottom:12px;left:50%;right:auto;transform:translateX(-50%);background:var(--pe-ink);border-radius:999px;line-height:1}   /* the kit draws the placeholder's grey shape with ::after; in edit mode that pseudo-element is the editor's pill */
.pe-drafts h5{margin:6px 0 2px;font:700 11px/1 var(--pe-font);letter-spacing:.4px;text-transform:uppercase;color:var(--pe-muted)}
.pe-drafts a{display:block;font-size:13px;line-height:1.4;color:var(--pe-primary);text-decoration:underline;padding:2px 0}

/* ============================================================================================================
   The shell (Wayfound, 2026-10-29): a top bar with the modes, the Site drawer, the field popover, the post settings
   panel, the menu, the Wayfound panel. The editing marks on the page (above) are unchanged.
   ============================================================================================================ */
:root{--wf-bar:52px}
.wf{font:500 14px/1.35 var(--pe-font);color:var(--pe-ink)}
.proto-edit__toggle{position:fixed;right:24px;top:0;z-index:9999;font:700 12px/1 var(--pe-font);letter-spacing:.4px;text-transform:uppercase;cursor:pointer;border:0;border-radius:0 0 8px 8px;padding:11px 18px 12px;background:var(--pe-ink);color:#fff;box-shadow:0 6px 20px rgba(0,0,0,.22)}   /* a tab hanging from the top edge, where the bar appears */
.proto-edit__toggle:hover{background:var(--pe-primary)}
.proto-edit__toggle[hidden]{display:none}
body.proto-editing{padding-top:var(--wf-bar);overflow-x:clip}   /* the bar takes the top; nothing else moves */
/* the bar */
.wf-bar{position:fixed;top:0;left:0;right:0;height:var(--wf-bar);z-index:10000;display:flex;align-items:center;gap:14px;padding:0 12px 0 14px;box-sizing:border-box;background:var(--pe-ink);color:#fff;box-shadow:0 2px 12px rgba(0,0,0,.25)}
.wf-bar[hidden]{display:none}
.wf-bar button{font:600 13px/1 var(--pe-font);cursor:pointer;border:0;border-radius:6px;padding:9px 12px;background:transparent;color:#fff;white-space:nowrap}
.wf-bar__site{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.12);margin-left:6px}   /* at the right end, beside the drawer it opens */
.wf-bar__site i{width:14px;height:11px;background:repeating-linear-gradient(#fff 0 2px,transparent 2px 4.5px)}
.wf-bar__site:hover,.wf-bar__site.is-on{background:var(--pe-primary)}
.wf-bar__tabs{display:flex;align-items:stretch;align-self:stretch;margin-left:-6px}
.wf-bar__tabs button{border-radius:0;padding:0 14px;color:rgba(255,255,255,.72);border-bottom:3px solid transparent;border-top:3px solid transparent}
.wf-bar__tabs button:hover{color:#fff}
.wf-bar__tabs button.is-on{color:#fff;border-bottom-color:var(--pe-accent)}
.wf-bar__right{margin-left:auto;display:flex;align-items:center;gap:8px;min-width:0}
.wf-bar__status{font-size:12px;line-height:1.3;color:rgba(255,255,255,.82);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:36vw}
.wf-bar__status:empty{display:none}
.wf-bar__pass{display:flex;gap:6px;align-items:center;margin:0}
.wf-bar__pass[hidden]{display:none}
.wf-bar__pass input{font:13px/1.2 var(--pe-font);padding:7px 10px;border:1px solid rgba(255,255,255,.3);border-radius:6px;background:rgba(255,255,255,.1);color:#fff;width:170px}
.wf-bar__pass input::placeholder{color:rgba(255,255,255,.5)}
.wf-bar__pass input.is-wrong{border-color:#f87171;box-shadow:0 0 0 2px rgba(248,113,113,.3)}
.wf-bar__pass button{background:rgba(255,255,255,.15)}
.wf-bar__save{background:var(--pe-primary)}
.wf-bar__save:hover{background:var(--pe-accent)}
.wf-bar__save:disabled{background:rgba(255,255,255,.12);color:rgba(255,255,255,.45);cursor:default}
.wf-bar__publish{background:#15803d}
.wf-bar__publish:hover{background:#166534}
.wf-bar__publish[hidden]{display:none}
.wf-bar__more{font-size:18px;line-height:1;padding:5px 10px 7px;background:rgba(255,255,255,.12)}
.wf-bar__more:hover{background:rgba(255,255,255,.22)}
.wf-bar__done{background:rgba(255,255,255,.15)}
.wf-bar__done:hover{background:rgba(255,255,255,.25)}
.wf-menu{position:fixed;z-index:10001;min-width:270px;background:#fff;color:var(--pe-ink);border:1px solid var(--pe-line);border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.18);padding:6px;display:flex;flex-direction:column;font:500 13px/1.3 var(--pe-font)}
.wf-menu[hidden]{display:none}
.wf-menu button{text-align:left;font:inherit;padding:9px 10px;border:0;border-radius:6px;background:transparent;color:var(--pe-ink);cursor:pointer}
.wf-menu button:hover{background:var(--pe-tint)}
/* the Site drawer: slides in from the right, over the page; the counts and the map the sidebar had */
.wf-drawer{position:fixed;top:var(--wf-bar);right:0;bottom:0;width:360px;z-index:9999;background:#fff;color:var(--pe-ink);border-left:1px solid var(--pe-line);overflow:auto;font:500 14px/1.35 var(--pe-font)}   /* beside the page (bar.js fit narrows the body), open until closed */
.wf-drawer[hidden]{display:none}
.wf-drawer__head{display:flex;align-items:stretch;border-bottom:1px solid var(--pe-line);background:var(--pe-tint);position:sticky;top:0;z-index:2}
.wf-drawer__head .pe-tabs{flex:1;border-bottom:0}
.wf-drawer__close{border:0;background:transparent;font-size:22px;padding:0 16px;cursor:pointer;color:var(--pe-muted)}
.wf-drawer__close:hover{color:var(--pe-ink)}
.wf-drawer .pe-view{display:flex;gap:6px;padding:10px 14px;border-bottom:1px solid var(--pe-line);background:#fff}   /* Page view / Document view: the panel's, for the content prototype stage */
.wf-drawer .pe-view button{flex:1 1 0;padding:8px 6px;font:600 12px/1.2 var(--pe-font);background:#fff;color:var(--pe-muted);border:1px solid var(--pe-line);border-radius:6px;cursor:pointer}
.wf-drawer .pe-view button.is-on{background:var(--pe-ink);color:#fff;border-color:var(--pe-ink)}
.pe-tabs{display:flex;background:var(--pe-tint)}
.wf-drawer .pe-tabs button{flex:1 1 0;background:transparent;color:var(--pe-muted);border:0;border-bottom:3px solid transparent;border-radius:0;padding:14px 10px;font:700 14px/1.2 var(--pe-font);box-shadow:none;cursor:pointer}
.wf-drawer .pe-tabs button.is-on{color:var(--pe-ink);border-bottom-color:var(--pe-accent);background:#fff}
.pe-panel{display:flex;flex-direction:column}
.pe-panel[hidden]{display:none}
.pe-group{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:16px 18px;border-bottom:1px solid var(--pe-line)}
.pe-group h4,.pe-drafts h4{margin:0;font:700 11px/1 var(--pe-font);letter-spacing:.4px;text-transform:uppercase;color:var(--pe-muted)}
.pe-hint{font-size:12px;color:var(--pe-muted)}
.wf-drawer button.pe-secondary{font:600 13px/1.2 var(--pe-font);cursor:pointer;border:1px solid var(--pe-primary);border-radius:var(--pe-radius);padding:8px 12px;background:#fff;color:var(--pe-primary)}
.wf-drawer button.pe-secondary:hover{background:var(--pe-primary);color:#fff}
.proto-edit__progress,.proto-edit__siteprogress{font-size:13px;font-weight:600;color:var(--pe-ink)}
.proto-edit__progress:empty{display:none}
.pe-drafts{display:flex;flex-direction:column;gap:4px}
.pe-drafts a{display:block;font-size:13px;line-height:1.4;color:var(--pe-primary);text-decoration:underline;padding:2px 0}
.pe-drafts button{align-self:flex-start;margin-top:6px}
/* the field popover: the panel for the field you clicked, beside it */
.wf-pop{position:absolute;z-index:10002;width:360px;max-width:calc(100vw - 16px);box-sizing:border-box;background:#fff;color:var(--pe-ink);border:1px solid var(--pe-line);border-radius:10px;box-shadow:0 14px 40px rgba(0,0,0,.2);font:500 13px/1.4 var(--pe-font)}
.wf-pop[hidden]{display:none}
.wf-pop__arrow{position:absolute;top:-7px;width:12px;height:12px;background:#fff;border-left:1px solid var(--pe-line);border-top:1px solid var(--pe-line);transform:rotate(45deg)}
.wf-pop.is-above .wf-pop__arrow{top:auto;bottom:-7px;transform:rotate(225deg)}
.wf-pop__body{padding:14px 16px 16px}
.wf-pop h4{margin:0 0 2px;font:700 11px/1 var(--pe-font);letter-spacing:.4px;text-transform:uppercase;color:var(--pe-muted)}
.wf-pop label{display:flex;flex-direction:column;gap:4px;font-size:13px}
.wf-pop input,.wf-pop select,.wf-pop textarea{width:100%;box-sizing:border-box;font:13px/1.4 var(--pe-font);padding:7px 10px;border:1px solid var(--pe-line);border-radius:6px;background:#fff;color:var(--pe-ink)}
.wf-pop textarea{resize:vertical}
.wf-pop .pe-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.wf-pop button{font:600 13px/1.2 var(--pe-font);cursor:pointer;border:1px solid var(--pe-primary);border-radius:var(--pe-radius);padding:8px 12px;background:var(--pe-primary);color:#fff;width:auto}
.wf-pop button:hover{background:var(--pe-accent);border-color:var(--pe-accent);color:#fff}
.wf-pop button.pe-secondary{background:#fff;color:var(--pe-primary)}
.wf-pop button[hidden]{display:none}
.wf-pop .pe-poster button{align-self:flex-start}
/* post settings: beside the page on a post page (the page narrows to make room, as the sidebar did) */
.wf-settings{position:fixed;top:var(--wf-bar);right:0;bottom:0;width:320px;z-index:9998;box-sizing:border-box;background:#fff;color:var(--pe-ink);border-left:1px solid var(--pe-line);overflow:auto;padding:16px 18px 40px;display:flex;flex-direction:column;gap:14px;font:500 13px/1.4 var(--pe-font)}
.wf-settings[hidden]{display:none}
.wf-settings__head{display:flex;align-items:center;justify-content:space-between}
.wf-settings h4{margin:0;font:700 11px/1 var(--pe-font);letter-spacing:.4px;text-transform:uppercase;color:var(--pe-muted)}
.wf-settings__hide{border:0!important;background:transparent!important;font-size:20px;line-height:1;cursor:pointer;color:var(--pe-muted)!important;padding:0 2px!important}
.wf-field{display:flex;flex-direction:column;gap:5px}
.wf-field > span:first-child{font:700 11px/1 var(--pe-font);letter-spacing:.4px;text-transform:uppercase;color:var(--pe-muted)}
.wf-field input,.wf-field select,.wf-field textarea{width:100%;box-sizing:border-box;font:13px/1.4 var(--pe-font);padding:7px 10px;border:1px solid var(--pe-line);border-radius:6px;background:#fff;color:var(--pe-ink)}
.wf-field textarea{resize:vertical}
.wf-field small b{font-weight:700;color:var(--pe-ink)}
.wf-slug{display:flex;align-items:center;border:1px solid var(--pe-line);border-radius:6px;background:var(--pe-tint);overflow:hidden}
.wf-slug i{font-style:normal;font-size:12px;color:var(--pe-muted);padding:0 6px;white-space:nowrap}
.wf-slug input{border:0;border-radius:0;background:#fff;min-width:0;flex:1;padding:7px 6px}
.wf-slug input:disabled{background:var(--pe-tint);color:var(--pe-muted)}
.wf-slug input.is-changed{box-shadow:inset 0 -2px 0 var(--pe-primary)}
.wf-settings button{font:600 13px/1.2 var(--pe-font);cursor:pointer;border:1px solid var(--pe-primary);border-radius:var(--pe-radius);padding:8px 12px;background:var(--pe-primary);color:#fff;align-self:flex-start}
.wf-settings button.pe-secondary{background:#fff;color:var(--pe-primary)}
.wf-settings button:hover{background:var(--pe-accent);border-color:var(--pe-accent);color:#fff}
.wf-settings button[hidden]{display:none}
.wf-settings button.pe-danger{border-color:var(--pe-strike);color:var(--pe-strike)}
.wf-settings button.pe-danger:hover{background:var(--pe-strike);border-color:var(--pe-strike);color:#fff}
.wf-settings__danger{margin-top:auto;padding-top:14px;border-top:1px solid var(--pe-line)}
.wf-settings .pe-acts{display:flex;flex-wrap:wrap;gap:6px}
.wf-settings__thumb{width:100%;aspect-ratio:16/9;border-radius:6px;background:var(--pe-tint);overflow:hidden;display:flex;align-items:center;justify-content:center}
.wf-settings__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.wf-settings__status p{margin:0;font-size:13px;color:var(--pe-muted)}
.wf-settings__proposed{padding:10px 12px;border-radius:6px;background:var(--pe-tint);border:1px solid var(--pe-line)}
.wf-settings__proposed[hidden]{display:none}
.wf-settings__proposed p{margin:0 0 8px;font-size:12px;color:var(--pe-muted)}
.wf-settings input.is-proposed,.wf-settings textarea.is-proposed{box-shadow:inset 0 -2px 0 var(--pe-primary)}
.wf-settings__tab{position:fixed;right:0;top:50%;z-index:9998;transform:rotate(-90deg) translate(50%,0);transform-origin:right bottom;font:700 11px/1 var(--pe-font);letter-spacing:.4px;text-transform:uppercase;background:var(--pe-ink);color:#fff;border:0;border-radius:6px 6px 0 0;padding:9px 14px;cursor:pointer}
.wf-settings__tab[hidden]{display:none}
/* Wayfound: the conversation, on the left (the page makes room, bar.js fit) */
.wf-chat{position:fixed;top:var(--wf-bar);left:0;bottom:0;width:380px;z-index:9998;box-sizing:border-box;display:flex;flex-direction:column;background:#fff;color:var(--pe-ink);border-right:1px solid var(--pe-line);font:500 14px/1.45 var(--pe-font)}
.wf-chat[hidden]{display:none}
.wf-chat__head{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--pe-line);background:var(--pe-tint)}
.wf-chat__head h4{margin:0;font:700 14px/1 var(--pe-font)}
.wf-chat__where{flex:1;font-size:12px;color:var(--pe-muted)}
.wf-chat__new{font:600 12px/1 var(--pe-font);border:1px solid var(--pe-line);border-radius:6px;padding:6px 10px;background:#fff;color:var(--pe-ink);cursor:pointer}
.wf-chat__new:hover{background:var(--pe-primary);border-color:var(--pe-primary);color:#fff}
.wf-chat__close{border:0;background:transparent;font-size:20px;line-height:1;cursor:pointer;color:var(--pe-muted);padding:0 2px}
.wf-chat__log{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
.wf-msg{max-width:92%;padding:10px 12px;border-radius:12px;font-size:14px;line-height:1.5}
.wf-msg p{margin:0}.wf-msg p+p,.wf-msg ul{margin-top:8px}.wf-msg ul{padding-left:18px}.wf-msg code{font:12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;background:rgba(0,0,0,.06);padding:1px 4px;border-radius:3px}
.wf-msg--user{align-self:flex-end;background:var(--pe-primary);color:#fff;border-bottom-right-radius:4px}
.wf-msg--user a{color:#fff}
.wf-msg--assistant{align-self:flex-start;background:var(--pe-tint);border-bottom-left-radius:4px}
.wf-msg a{color:var(--pe-primary)}
.wf-msg__changed{margin-top:8px!important;padding-top:8px;border-top:1px solid rgba(0,0,0,.08);font-size:12px;color:var(--pe-muted)}
.wf-msg__changed a{text-decoration:underline}
.wf-thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}
.wf-thumb{display:block;padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;background:#fff;cursor:pointer;text-align:left}
.wf-thumb:hover{border-color:var(--pe-primary)}
.wf-thumb img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.wf-thumb span{display:block;font-size:10px;line-height:1.3;color:var(--pe-muted);padding:4px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wf-chat__chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 8px}
.wf-chat__chips:empty{display:none}
.wf-chat__chips button{font:500 12px/1.3 var(--pe-font);border:1px solid var(--pe-line);border-radius:999px;padding:6px 10px;background:#fff;color:var(--pe-ink);cursor:pointer;text-align:left}
.wf-chat__chips button:hover{border-color:var(--pe-primary);color:var(--pe-primary)}
.wf-chat__composer{border-top:1px solid var(--pe-line);padding:10px 14px 14px;display:flex;flex-direction:column;gap:8px;background:#fff}
.wf-chat__files{display:flex;flex-wrap:wrap;gap:6px}
.wf-chat__files:empty{display:none}
.wf-chat__file{font-size:12px;background:var(--pe-tint);border-radius:6px;padding:4px 8px;color:var(--pe-ink)}
.wf-chat__composer textarea{width:100%;box-sizing:border-box;resize:none;font:14px/1.45 var(--pe-font);padding:9px 11px;border:1px solid var(--pe-line);border-radius:8px;background:#fff;color:var(--pe-ink);max-height:200px}
.wf-chat__composer textarea:focus{outline:none;border-color:var(--pe-primary);box-shadow:0 0 0 3px rgba(var(--pe-primary-rgb),.12)}
.wf-chat__tools{display:flex;align-items:center;gap:6px}
.wf-chat__tools button{font:600 12px/1 var(--pe-font);border:1px solid var(--pe-line);border-radius:6px;padding:8px 10px;background:#fff;color:var(--pe-ink);cursor:pointer}
.wf-chat__tools button:hover{border-color:var(--pe-primary);color:var(--pe-primary)}
.wf-chat__mic.is-on{background:var(--pe-strike);border-color:var(--pe-strike);color:#fff;animation:wfPulse 1.2s ease-in-out infinite}
@keyframes wfPulse{0%,100%{box-shadow:0 0 0 0 rgba(138,50,50,.4)}50%{box-shadow:0 0 0 6px rgba(138,50,50,0)}}
.wf-chat__busy{flex:1;font-size:12px;color:var(--pe-muted)}
.wf-chat__busy[hidden]{display:none}
.wf-chat__send{margin-left:auto;background:var(--pe-primary)!important;border-color:var(--pe-primary)!important;color:#fff!important}
.wf-chat__send:disabled{opacity:.5;cursor:default}
@media (max-width:900px){
  :root{--wf-bar:92px}
  .wf-bar{flex-wrap:wrap;height:auto;min-height:var(--wf-bar);padding:6px 10px;gap:8px}
  .wf-bar__tabs{order:3;width:100%;margin:0;align-self:auto}
  .wf-bar__tabs button{padding:10px 12px}
  .wf-bar__status{max-width:100%}
    .wf-drawer,.wf-settings,.wf-chat{width:100%}
  .wf-settings__tab{display:none}
}
/* Sections (sections.js): a handle on the section being pointed at; the picker over the library; a new section's placeholder */
.wf-sec{position:absolute;z-index:1001;display:flex;align-items:center;gap:4px;padding:4px 4px 4px 10px;background:#fff;border:1px solid var(--pe-line);border-radius:999px;box-shadow:0 6px 20px rgba(0,0,0,.15);font:600 11px/1 var(--pe-font);color:var(--pe-ink)}
.wf-sec[hidden]{display:none}
.wf-sec__name{letter-spacing:.3px;text-transform:uppercase;color:var(--pe-muted);padding-right:6px;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wf-sec button{font:600 11px/1 var(--pe-font);border:0;border-radius:999px;padding:6px 9px;background:transparent;color:var(--pe-ink);cursor:pointer}
.wf-sec button:hover{background:var(--pe-tint)}
.wf-sec button:disabled{opacity:.3;cursor:default}
.wf-sec button[data-sec="add"]{background:var(--pe-primary);color:#fff}
.wf-sec button[data-sec="add"]:hover{background:var(--pe-accent)}
.wf-sec button[data-sec="remove"]{color:var(--pe-strike)}
.wf-picker{position:fixed;inset:0;z-index:10003;background:rgba(20,24,28,.45);display:flex;align-items:center;justify-content:center;padding:24px}
.wf-picker[hidden]{display:none}
.wf-picker__box{width:720px;max-width:100%;max-height:calc(100vh - 48px);background:#fff;color:var(--pe-ink);border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.3);display:flex;flex-direction:column;font:500 14px/1.4 var(--pe-font)}
.wf-picker__head{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid var(--pe-line)}
.wf-picker__head h4{margin:0;font:700 15px/1.2 var(--pe-font)}
.wf-picker__where{flex:1;font-size:12px;color:var(--pe-muted)}
.wf-picker__all{font-size:12px;color:var(--pe-primary)}
.wf-picker__close{border:0;background:transparent;font-size:22px;line-height:1;cursor:pointer;color:var(--pe-muted);padding:0 4px}
.wf-picker__list{overflow:auto;padding:10px 18px 18px;display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}
.wf-picker__list h5{grid-column:1/-1;margin:12px 0 2px;font:700 11px/1 var(--pe-font);letter-spacing:.4px;text-transform:uppercase;color:var(--pe-muted)}
.wf-picker__item{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;padding:10px 12px;border:1px solid var(--pe-line);border-radius:8px;background:#fff;color:var(--pe-ink);cursor:pointer;font:inherit}
.wf-picker__item:hover{border-color:var(--pe-primary);background:rgba(var(--pe-primary-rgb),.05)}
.wf-picker__item strong{font-weight:700}
.wf-picker__item span{font-size:12px;color:var(--pe-muted)}
.wf-picker__item a{font-size:11px;color:var(--pe-primary);margin-top:2px}
.wf-newsec{margin:24px auto;max-width:var(--container,1200px);padding:28px 24px;border:2px dashed var(--pe-primary);border-radius:10px;background:rgba(var(--pe-primary-rgb),.05);color:var(--pe-ink);font:500 15px/1.5 var(--pe-font);text-align:center}
[data-section].is-pulse{animation:protoPulse 1.2s ease-out}
/* New page (pages.js): the dialog's kinds and form; the Site panel's pages list */
.wf-newpage__body{overflow:auto;padding:14px 18px 18px}
.wf-newpage__kinds{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
.wf-newpage__kinds[hidden],.wf-newpage__form[hidden]{display:none}
.wf-newpage__form{display:flex;flex-direction:column;gap:12px;font:500 13px/1.4 var(--pe-font)}
.wf-newpage__form h5{margin:0;font:700 15px/1.2 var(--pe-font)}
.wf-newpage__form .wf-field span em{font-style:normal;font-weight:400;text-transform:none;letter-spacing:0;color:var(--pe-muted)}
.wf-newpage__form button{font:600 13px/1.2 var(--pe-font);cursor:pointer;border:1px solid var(--pe-primary);border-radius:var(--pe-radius);padding:9px 14px;background:var(--pe-primary);color:#fff}
.wf-newpage__form button.pe-secondary{background:#fff;color:var(--pe-primary)}
.pe-pages{display:flex;flex-direction:column;gap:4px;margin-top:14px}
.pe-pages h4{margin:0 0 2px;font:700 11px/1 var(--pe-font);letter-spacing:.4px;text-transform:uppercase;color:var(--pe-muted)}
.pe-pages a{display:block;font-size:13px;line-height:1.4;color:var(--pe-primary);text-decoration:underline;padding:2px 0}
.pe-pages a small{color:var(--pe-muted);text-decoration:none}
.pe-pages button{align-self:flex-start;margin-top:6px}
.wf-picker__ask{grid-column:1/-1;display:flex;flex-direction:column;gap:10px;max-width:420px}
.wf-picker__ask h5{margin:4px 0 0}
.wf-picker__ask select{width:100%;box-sizing:border-box;font:13px/1.4 var(--pe-font);padding:7px 10px;border:1px solid var(--pe-line);border-radius:6px}
.wf-picker__ask button{font:600 13px/1.2 var(--pe-font);cursor:pointer;border:1px solid var(--pe-primary);border-radius:var(--pe-radius);padding:8px 12px;background:var(--pe-primary);color:#fff}
.wf-picker__ask button.pe-secondary{background:#fff;color:var(--pe-primary)}
