/* The page frame of a screen built on the design system (templates/system/shell.html):
   what the frame needs beyond the kit's own pieces. Uses only tokens.css. */

/* The ground is painted on <html> first, so no page flashes white. */
html { background: var(--g0); }
body { margin: 0; min-height: 100vh; }

/* The rail and the top bar stay in view while the page scrolls. */
.db-shell > .db-rail { position: sticky; top: 0; height: 100vh; }
.db-shell > main > .db-top { position: sticky; top: 0; z-index: 20; background: var(--g0); }

/* The rail's items: a column under the emblem; the foot stays at the bottom. */
.db-rail-items { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.db-shell .db-rail-foot { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.db-rail-signout { display: contents; }
.db-rail-btn svg { width: 18px; height: 18px; }

/* The Drawbridge emblem (app/static/brand/drawbridge-emblem.svg) as a mask
   painted in the page ink, so it reads in Ink and in Paper. */
.db-emblem { display: block; flex: none; background-color: var(--ink);
  -webkit-mask: url("/static/brand/drawbridge-emblem.svg") center / contain no-repeat;
  mask: url("/static/brand/drawbridge-emblem.svg") center / contain no-repeat; }
.db-rail-emblem { width: 26px; height: 26px; }
