/* Chrome shared by the documentation home and the API reference page: colour tokens, type and the
   site bar. Colours and type follow the default theme of the reference renderer under /clipboard-ems/ (its Inter
   stack, 16px/1.625 body text, 24px/600 headings, 14px/500 labels) so the two pages read as one site. */
:root {
  color-scheme: light dark;
  /* The bar's fixed height (41px); the reference page hands it to the renderer as its custom header height. */
  --site-bar-height: 2.5625rem;
  --text: #2a2f45;
  --text-muted: #5c6270;
  --background: #fff;
  --border: #e7e7e7;
  --accent: #3d50f3;
  --logo-filter: none;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e7e7e7;
    --text-muted: #8b8e93;
    --background: #0f0f0f;
    --border: #2c2c2c;
    --accent: #8a96ff;
    --logo-filter: brightness(0) invert(1);
  }
}
/* The renderer's own theme toggle sets one of these classes on body; it overrides the system scheme
   so the bar and the reference always agree. Inert on the home page, which never sets them. */
body.light-mode {
  --text: #2a2f45;
  --text-muted: #5c6270;
  --background: #fff;
  --border: #e7e7e7;
  --accent: #3d50f3;
  --logo-filter: none;
}
body.dark-mode {
  --text: #e7e7e7;
  --text-muted: #8b8e93;
  --background: #0f0f0f;
  --border: #2c2c2c;
  --accent: #8a96ff;
  --logo-filter: brightness(0) invert(1);
}
body {
  font-family:
    'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
}
/* One fixed-height line that stays at the top: the renderer on /clipboard-ems/ places its own header and sizes its
   sidebar below a header of exactly --site-bar-height, so the bar must never wrap or grow. z-index sits
   above the renderer's mobile header (z-10) and its open navigation (z-50). */
.site-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  height: var(--site-bar-height);
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: nowrap;
}
.site-bar img {
  display: block;
  height: 1.5rem;
  width: auto;
  filter: var(--logo-filter);
}
.site-bar span {
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
  color: var(--text-muted);
}
.site-bar nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  margin-left: auto;
  overflow: hidden;
}
/* Narrow screens: the logo and the two artefact links fill the line, so the home link goes; the logo is that link. */
@media (width < 480px) {
  .site-bar nav a[href='/'] {
    display: none;
  }
}
.site-bar nav a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.site-bar nav a:hover,
.site-bar nav a:focus-visible {
  text-decoration: underline;
}
