@font-face {
  font-family: "GT Walsheim";
  src: url("./stuart-walsheim-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --scalar-font: "GT Walsheim", Arial, sans-serif;
  --scalar-font-code: "SFMono-Regular", Consolas, monospace;
  --scalar-custom-header-height: 76px;
}

body {
  /* The sticky header needs a containing block as tall as the reference. */
  min-height: 100vh;
  margin: 0;
  background: #fff;
  font-family: var(--scalar-font);
}

.stuart-header {
  height: var(--scalar-custom-header-height);
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid #dfeaf5;
  box-shadow: inset 0 3px #0192ff;
}

.stuart-identity, .stuart-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.stuart-identity img {
  display: block;
  width: 118px;
  height: 35px;
}

.stuart-title {
  padding-left: 26px;
  border-left: 1px solid #dfeaf5;
  color: #00249c;
  font-size: 15px;
  white-space: nowrap;
}

.stuart-nav a {
  color: #00249c;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.stuart-nav a:hover {
  text-decoration: underline;
}

.stuart-nav .stuart-download {
  background: #00249c;
  color: #fff;
  border-radius: 7px;
  padding: 11px 16px;
}

.stuart-nav .stuart-download:hover {
  background: #001a70;
  text-decoration: none;
}

.stuart-header a:focus-visible {
  outline: 3px solid #0192ff;
  outline-offset: 4px;
}

.light-mode {
  --scalar-color-1: #172f54;
  --scalar-color-2: #52647a;
  --scalar-color-3: #63758a;
  --scalar-color-accent: #0067bf;
  --scalar-background-1: #fff;
  --scalar-background-2: #f5f9fe;
  --scalar-background-3: #edf3fa;
  --scalar-background-accent: #e7f3ff;
  --scalar-border-color: #dfe8f3;
  --scalar-button-1: #00249c;
  --scalar-button-1-hover: #001a70;
  --scalar-button-1-color: #fff;
}

.light-mode .sidebar {
  --scalar-sidebar-background-1: #f8fbff;
  --scalar-sidebar-border-color: #dfe8f3;
  --scalar-sidebar-color-1: #233e63;
  --scalar-sidebar-color-2: #52647a;
  --scalar-sidebar-color-active: #00249c;
  --scalar-sidebar-item-active-background: #e6f2ff;
  --scalar-sidebar-item-hover-background: #edf5ff;
  --scalar-sidebar-search-background: #fff;
  --scalar-sidebar-search-border-color: #d8e5f3;
}

#app .section-header,
#app h1, #app h2, #app h3 {
  color: #00249c;
}

@media (max-width: 700px), (max-width: 1023px) and (max-height: 500px) {
  :root {
    --scalar-custom-header-height: 56px;
  }

  .stuart-header {
    padding: 0 16px;
    gap: 12px;
  }

  .stuart-title,
  .stuart-portal {
    display: none;
  }

  .stuart-identity a,
  .stuart-nav .stuart-download {
    display: flex;
    align-items: center;
    min-height: 44px;
    box-sizing: border-box;
  }

  .stuart-identity img {
    width: 104px;
    height: auto;
  }

  .stuart-nav .stuart-download {
    padding: 0 12px;
  }
}
