/* Example viewer: a browser-style frame over the page that shows an example site in an iframe.
   Opened by any link carrying data-example (see viewer.js). Classes are prefixed vw-. */
.vw-overlay { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: clamp(14px, 3vh, 34px) clamp(14px, 3vw, 44px); background: rgba(3, 2, 10, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s ease; }
.vw-overlay.vw-on { opacity: 1; }
.vw-frame { display: flex; flex-direction: column; width: min(1500px, 100%); height: 100%; background: #14121c; border: 1px solid rgba(176, 38, 255, .55); border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 70px rgba(176, 38, 255, .28), 0 40px 90px rgba(0, 0, 0, .7); transform: translateY(14px) scale(.985); transition: transform .26s cubic-bezier(.2, .7, .2, 1); }
.vw-on .vw-frame { transform: none; }
.vw-bar { flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; background: #1b1826; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 500 13px/1 "Archivo", "Segoe UI", system-ui, sans-serif; color: #cfc8e6; }
.vw-dots { display: flex; gap: 6px; flex: none; }
.vw-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3550; }
.vw-url { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 14px; border-radius: 999px; background: #0f0d17; color: #a9a2c2; font: 400 12.5px/1 "JetBrains Mono", Consolas, monospace; white-space: nowrap; overflow: hidden; }
.vw-url b { font-weight: 500; color: #e8e2ff; overflow: hidden; text-overflow: ellipsis; }
.vw-url span { flex: none; padding: 3px 8px; border-radius: 999px; background: rgba(57, 255, 20, .12); color: #39ff14; font-size: 11px; letter-spacing: .04em; }
.vw-open, .vw-close { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #e8e2ff; font: inherit; text-decoration: none; cursor: pointer; }
.vw-open:hover, .vw-close:hover { border-color: #39ff14; color: #39ff14; }
.vw-open:focus-visible, .vw-close:focus-visible { outline: 2px solid #39ff14; outline-offset: 2px; }
.vw-view { position: relative; flex: 1 1 auto; min-height: 0; background: #eef0e8; }
.vw-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #eef0e8; }
.vw-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 400 14px/1 "Archivo", system-ui, sans-serif; color: #5b6a60; transition: opacity .2s ease; }
.vw-ready .vw-load { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .vw-overlay, .vw-frame { transition: none; } .vw-frame { transform: none; } }
@media (max-width: 760px) { .vw-url span { display: none; } .vw-bar { gap: 8px; } }
