/* Frame page for the embedded Blueprint viewer. Kept apart from the site CSS so render.css cannot leak. */
html, body { margin: 0; height: 100%; background: #262626; overflow: hidden; }
.playground { width: 100%; height: 100%; }
.fallback {
  margin: 0; padding: 24px; color: #e8e8e8;
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.fallback a { color: #8fc4ff; }

/* Who a touch belongs to (blueprint-frame.js gives the gestures to the graph).
   On its own page: the graph takes every touch, so a pinch zooms the graph and never the page.
   Inside another page: sideways drags and pinches go to the graph, a vertical swipe still scrolls the page. */
html.is-standalone, html.is-standalone body, html.is-standalone .playground { touch-action: none; }
/* Only on its own page: inside another page this would stop a swipe or a wheel from scrolling that page. */
html.is-standalone, html.is-standalone body { overscroll-behavior: none; }
html.is-embedded .playground .layer { touch-action: pan-y; }
.playground .layer { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* No Fullscreen API (an iPhone): on its own page the graph already fills the window, so the button has nothing to do.
   Embedded, the same button opens this page instead. */
html.is-standalone.no-fullscreen .frame-header__buttons-fullscreen { display: none; }

/* On a narrow screen the renderer's breadcrumb ("Graph") runs under its zoom label: there is only one graph, so drop it. */
@media (max-width: 520px) { .frame-header__breadcrumb { display: none; } }
