/* The Design Gallery's viewer (desk P38), added around a look by tools/gallery.py. The look's own CSS never sees these names. */
@font-face{font-family:"PR Viewer";font-weight:600;font-display:swap;src:url(fonts/space-grotesk-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"PR Viewer";font-weight:700;font-display:swap;src:url(fonts/space-grotesk-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"PR Viewer Text";font-weight:400;font-display:swap;src:url(fonts/inter-latin-400-normal.woff2) format("woff2")}
.gv-bar{position:fixed;left:0;right:0;top:0;z-index:1000;display:flex;align-items:center;gap:10px;height:52px;padding:0 14px;background:rgba(5,7,26,.92);backdrop-filter:blur(8px);border-bottom:1px solid rgba(120,140,255,.25);font:14px/1 Inter,system-ui,sans-serif;color:#F4F6FF}
.gv-bar a,.gv-bar button{color:#F4F6FF;text-decoration:none;font:600 13.5px "PR Viewer",system-ui,sans-serif;background:none;border:1px solid rgba(167,176,214,.45);border-radius:999px;padding:7px 12px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.gv-bar a:hover,.gv-bar button:hover{border-color:#43C6F0}
.gv-bar :focus-visible{outline:3px solid #43C6F0;outline-offset:2px}
.gv-id{display:flex;align-items:baseline;gap:10px;margin:0 auto;min-width:0}
.gv-id b{font:600 12px "PR Viewer",system-ui,sans-serif;letter-spacing:.18em;color:#43C6F0}
.gv-id > span{font:600 15px "PR Viewer",system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gv-id i{font:400 13px "PR Viewer Text",system-ui,sans-serif;font-style:normal;color:#A7B0D6;font-size:13px;white-space:nowrap}
.gv-bar .gv-talk{background:#E0399A;border-color:#E0399A;color:#05071a}
.gv-pad{height:52px}
@media (min-width:961px){
  /* a look's sections scroll to just below the bar (only looks carry .gv-pad; Eddy 2026-11-22, web-builder request
     2026-11-22-l004-top-overlay.md) */
  html:has(.gv-pad){scroll-padding-top:52px}
  /* a look whose own header sits over the top of its page (catalog/gallery.yaml top_overlay:, L004 Ondine Swim
     Atelier, marked by the viewer's hidden .gv-top-overlay): the page starts below the bar, so the header shows in full;
     the look's files are not changed (D86) */
  body:has(> .gv-top-overlay){position:relative;margin-top:52px}
  body:has(> .gv-top-overlay) .gv-pad{display:none}
}
.gv-phone[hidden]{display:none}
.gv-dialog{border:0;padding:0;background:transparent;max-height:none}
.gv-dialog::backdrop{background:rgba(5,7,26,.85)}
.gv-frame{box-sizing:content-box;width:390px;height:min(844px,86vh);border:12px solid #111;border-radius:44px;background:#fff;display:block}
.gv-dialog form{text-align:center;margin-top:10px}
.gv-dialog button{font:600 14px "PR Viewer",system-ui,sans-serif;background:#F4F6FF;color:#05071a;border:0;border-radius:999px;padding:9px 18px;cursor:pointer}
/* phone, and any window up to 960px wide: two chips, the look full screen (Eddy 2026-11-23, "fix the bar at 800 too":
   below 961px a look's bar had no room for its name; agreed with Webgen, web-builder
   docs/requests/to-pixel-ranch/2026-11-23-bar-at-800-analysis.md). From 961 to 1365 the bar leaves out the tags. */
.gv-chips{display:none}
@media (max-width:1365px){.gv-tags{display:none}}
@media (max-width:960px){
  .gv-bar,.gv-pad{display:none}
  .gv-chips{display:flex;position:fixed;left:12px;right:12px;bottom:12px;z-index:1000;justify-content:space-between;align-items:flex-end;pointer-events:none}
  .gv-chips>*{pointer-events:auto}
  /* a look with its own call bar fixed at the bottom (own_looks bottom_bar: the Peachy Keen mockups' .callbar, 49px)
     keeps it fully visible: the chips sit above it (Webgen review, 2026-11-22) */
  .gv-chips.gv-above-bar{bottom:calc(12px + 49px)}
  .gv-chip{font:600 13px "PR Viewer",system-ui,sans-serif;color:#F4F6FF;background:rgba(5,7,26,.88);border:1px solid rgba(167,176,214,.5);border-radius:999px;padding:9px 14px;text-decoration:none;backdrop-filter:blur(6px)}
  .gv-chip.gv-talk{background:#E0399A;border-color:#E0399A;color:#05071a}
  .gv-info summary{list-style:none;cursor:pointer}
  .gv-info summary::-webkit-details-marker{display:none}
  .gv-info[open] .gv-panel{display:block}
  .gv-panel{display:none;position:absolute;left:0;right:0;bottom:52px;background:rgba(5,7,26,.95);border:1px solid rgba(120,140,255,.3);border-radius:18px;padding:16px;color:#F4F6FF;font:14px/1.45 Inter,system-ui,sans-serif}
  .gv-panel__name{font:700 18px "PR Viewer",system-ui,sans-serif;margin:0 0 2px}
  .gv-panel p:not(.gv-panel__name){margin:0 0 10px;color:#A7B0D6}
  .gv-panel nav{display:flex;justify-content:space-between;gap:10px}
  .gv-panel nav a{flex:1;text-align:center;color:#F4F6FF;text-decoration:none;border:1px solid rgba(167,176,214,.5);border-radius:999px;padding:9px 0;font:600 14px "PR Viewer",system-ui,sans-serif}
  .gv-info{position:static}
}
@media (prefers-reduced-motion:reduce){.gv-bar *{transition:none}}

.gv-framed .gv-hint,.gv-framed dialog{display:none}
.gv-hint{position:fixed;left:50%;bottom:70px;transform:translateX(-50%);z-index:1000;margin:0;padding:8px 16px;border-radius:999px;background:rgba(5,7,26,.92);color:#F4F6FF;border:1px dashed rgba(67,198,240,.6);font:600 14px "PR Viewer",system-ui,sans-serif;white-space:nowrap}
.gv-hint[hidden]{display:none}

/* A ready-made site's viewer (P48 D2). Its home page is the demo's own, so the demo's header sits under this bar, where the
   kit's strip would be: the kit's --pr-demo-h becomes the bar's height (0 on phones and in the phone frame). */
:root:has(.gv-ready){--pr-demo-h:52px}
html.gv-framed:has(.gv-ready){--pr-demo-h:0px}
.gv-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.gv-bar a,.gv-bar button{white-space:nowrap}
.gv-whole,.gv-bar .gv-whole{--prl-h:15px;display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border:2px solid #b08aff;border-radius:999px;background:#05071a;color:#F4F6FF;text-decoration:none;font:700 15px "PR Viewer",system-ui,sans-serif;animation:gv-glow 2s ease-in-out infinite;white-space:nowrap}
.gv-arrow{font-size:16px;line-height:1}
.gv-from{color:#F4F6FF;font:600 13.5px "PR Viewer",system-ui,sans-serif;white-space:nowrap}
/* A slow glow, one pulse every two seconds: no flash, still under reduced motion (WCAG 2.3.1). */
@keyframes gv-glow{0%,100%{box-shadow:0 0 6px 1px rgba(176,138,255,.45)}50%{box-shadow:0 0 18px 6px rgba(67,198,240,.6)}}
.gv-whole--chip{display:none}

/* A ready-made page up to 1365px wide (Webgen review R1, R3; 1200 -> 1365 so the bar shows every name in full, the longest
   was cut off up to 1335: Eddy 2026-11-19): the chips, not the bar. The big button on its own row, then the
   price, the site's name and place, and Talk to us; every control stays on screen and the price shows beside the button. */
@media (max-width:1365px){
  :root:has(.gv-ready){--pr-demo-h:0px}
  .gv-ready ~ .gv-bar{display:none}
  .gv-ready ~ .gv-chips{display:flex;position:fixed;left:12px;right:12px;bottom:12px;z-index:1000;flex-wrap:wrap;gap:10px 8px;justify-content:space-between;align-items:center;pointer-events:none}
  /* the demo's own sticky call bar stays fully tappable: the chips float above it (axe target-size, 2026-11-19) */
  :root:has(.sg-call-bar) .gv-ready ~ .gv-chips{bottom:calc(12px + 4rem)}
  .gv-ready ~ .gv-chips>*{pointer-events:auto}
  .gv-ready ~ .gv-chips .gv-chip{font:600 13px "PR Viewer",system-ui,sans-serif;color:#F4F6FF;background:rgba(5,7,26,.88);border:1px solid rgba(167,176,214,.5);border-radius:999px;padding:9px 14px;text-decoration:none;backdrop-filter:blur(6px)}
  .gv-ready ~ .gv-chips .gv-chip.gv-talk{background:#E0399A;border-color:#E0399A;color:#05071a}
  .gv-ready ~ .gv-chips .gv-info{position:static;min-width:0;flex:1 1 auto}
  .gv-ready ~ .gv-chips .gv-info summary{list-style:none;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .gv-ready ~ .gv-chips .gv-info summary::-webkit-details-marker{display:none}
  .gv-ready ~ .gv-chips .gv-panel{display:none;position:absolute;left:0;right:0;bottom:100%;margin-bottom:8px;background:rgba(5,7,26,.95);border:1px solid rgba(120,140,255,.3);border-radius:18px;padding:16px;color:#F4F6FF;font:14px/1.45 Inter,system-ui,sans-serif}
  .gv-ready ~ .gv-chips .gv-info[open] .gv-panel{display:block}
  .gv-ready ~ .gv-chips .gv-panel__name{font:700 18px "PR Viewer",system-ui,sans-serif;margin:0 0 2px}
  .gv-ready ~ .gv-chips .gv-panel p:not(.gv-panel__name){margin:0 0 10px;color:#A7B0D6}
  .gv-ready ~ .gv-chips .gv-panel nav{display:flex;justify-content:space-between;gap:10px}
  .gv-ready ~ .gv-chips .gv-panel nav a{flex:1;text-align:center;color:#F4F6FF;text-decoration:none;border:1px solid rgba(167,176,214,.5);border-radius:999px;padding:9px 0;font:600 14px "PR Viewer",system-ui,sans-serif}
  .gv-ready ~ .gv-chips .gv-whole--chip{display:inline-flex;--prl-h:13px;padding:10px 12px;flex:1 0 100%;justify-content:center}
  .gv-ready ~ .gv-chips .gv-from--chip{flex:0 0 auto}  /* markup order is screen order (Webgen review R2b) */
}
/* Last in the file, so it wins over the rule that starts the glow (final review I1). */
@media (prefers-reduced-motion:reduce){.gv-whole,.gv-bar .gv-whole{animation:none}}
