/* The page frame: one edge for every page of the site (27 Nov 2026).
   The top bar (the way back on the left, the account on the right) and the page's own content stand inside
   one column: 18-48px from the screen's edge, and on a screen wider than 1680px, a 1680px column in the middle.
   Backgrounds (the garden, the Gym worlds, the rooms) still fill the whole screen behind it.
   The join and welcome rooms set this edge themselves (the portal's join page), so they need no rule here.
   The admin console is a tool with its own sidebar and keeps its own layout.
   Wide screens only (over 760px): each page's phone layout is its own.
   Each page says which kind it is with a class on <html>, set where the page is assembled (tools/assemble.py)
   or in its own <head>: xg-f-garden, xg-f-world, xg-f-theatre, xg-f-page. */
:root{--xg-edge:max(clamp(18px,3.4vw,48px),calc((100vw - 1680px) / 2 + 48px))}
@media (min-width:761px){
  /* the garden: its top bar and its bottom row (Find a project) */
  html.xg-f-garden .top,html.xg-f-garden .bottom{padding-left:var(--xg-edge);padding-right:var(--xg-edge)}
  /* the Instrumentation and Exercise Gym worlds */
  html.xg-f-world .bar{padding-left:var(--xg-edge);padding-right:var(--xg-edge)}
  /* the Expression theatre: its two corner groups */
  html.xg-f-theatre header.top{left:var(--xg-edge)}
  html.xg-f-theatre .topr{right:var(--xg-edge)}
  /* the member pages (Discovery, a gym's page, My gyms): the bar and the page share the column */
  html.xg-f-page .wrap{max-width:none;padding-inline:var(--xg-edge)}
}
