/*
  The layout of the page, and the one piece of content no component of the platform shows.

  Button, field, table, section, tabs and empty state are classes of the instance's /ui.css
  (COMPONENTS.md). This file styles none of them and names no colour: what it draws itself
  stands on the design values of the instance's /tokens.css. Fonts are the service's own:
  neither sheet carries one.
*/
html {
  color-scheme: light;
}
html.dark {
  color-scheme: dark;
}

/* The ground the components are drawn on: the line height and the colours of the shell. */
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.page {
  display: grid;
  gap: 24px;
  max-width: 960px;
  padding: 24px;
}

.page__view:not([hidden]) {
  display: grid;
  gap: 24px;
}

.page__stack {
  display: grid;
  gap: 24px;
}

.page__pager {
  display: flex;
  gap: 8px;
  margin: 0;
}

/* The size of a skeleton comes from the layout of the app. */
.page__bar {
  height: 14px;
}

.page__back {
  margin: 0;
  font-size: 14px;
}

/* A link of the app. The focus ring on it is the class `bf-focus-ring`. */
.page__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page__source {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}
