

html {
  height: 100%;
  -webkit-font-smoothing: antialiased;
}

@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/google-sans-regular-400.woff2)
    format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 500;
  src: url(/fonts/google-sans-regular-500.woff2)
    format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

html {
  height: 100%;
}

div.top {
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

div.main {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
}

div.top > div.header {
  display: flex;
  gap: 5px;
  min-height: 52px;
  padding: 0 15px;
  align-items: center;
  font-size: 22px;
  font-weight: 400;
  border-bottom: 1px solid #efefef;
  font-family: "Google Sans", Arial, Helvetica, sans-serif;
  justify-content: space-between;
}

div.header-banner {
  display: flex;
  gap: 5px;
  align-items: center;
}


div.header-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

div.header-links {
  height: 50px;
}


a.button {
  border-radius: 5px;
  background-color: #4285f4;
  color: white;
  border: 1px solid #176af0;
  padding: 5px 10px;
}

div.header span.subtitle {
  color: #4285f4;
}

div.header img {
  width: 50px;
}

div.header img.logo {
  margin-top: 6px;
  margin-right: 6px;
  width: 35px;
}

body {
  display: flex;
  overflow: hidden;
  margin: 0;
  height: 100%;
}

div.sidebar {
  flex: 1 0 250px;
  padding: 15px;
  overflow-y: auto;
}

/* Top-level section groups */
.sidebar-section {
  margin-bottom: 12px;
  padding: 8px;
  background-color: #fafafa;
  border-radius: 8px;
}

/* Nested sections - darker background */
.sidebar-section .sidebar-section {
  margin-left: -4px;
  margin-right: -4px;
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 8px;
  background-color: #f0f0f0;
  border-radius: 6px;
}

.sidebar-section .sidebar-section .sidebar-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

div.sidebar div.sidebar-item a {
  padding: 2px 6px;
  margin: 2px 0;
  height: 26px;
  border-radius: 50px;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #505050;
  font-size: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 5px;
  text-decoration: none;
}

/* hacks to get the side bar section to collapse -- looks at the first sibling element */
div.sidebar-section-title.collapsed + div.sidebar-section-item-group {
  display: none;
}

div.sidebar div.sidebar-item a img {
  width: 22px;
}

div.sidebar div.sidebar-item a:hover {
  background-color: #85b0f730;
}

div.sidebar div.sidebar-item.active a {
  background-color: #85b0f730;
}

div.sidebar-section-title {
  margin: 2px 0;
  border-radius: 50px;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  padding: 3px 10px;
  color: #666;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
}

div.sidebar-section-title img.chevron-open {
  display: none;
}

div.sidebar-section-title.collapsed img.chevron-closed {
  display: none;
}

div.sidebar-section-title.collapsed img.chevron-open {
  display: block;
}

div.sidebar-section-title:hover {
  background-color: #85b0f730;
}

div.document-outer {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 15px;
  background-color: #fafafa;
}

div.content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column-reverse;
  overflow: hidden;
  width: 100%;
}

div.footer {
  border-top: 1px solid #efefef;
  flex: 0 0 50px;
}

div.document {
  color: #505050;
  font-family: "Roboto", Arial, Helvetica, sans-serif;

  background-color: white;
  border: 1px solid #eaeaea;
  border-radius: 5px;
  padding: 16px;
}

@media only screen and (min-width: 1200px) {
  div.document {
    width: 85%;
    margin-left: 6%;
  }
}

@media only screen and (min-width: 1768px) {
  div.document {
    width: 75%;
    margin-left: 12.5%;
  }
}

div.document code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
    monospace;
  background-color: white;
  border: 1px solid #eaeaea;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 12px;
  color: #1c821c;
}

div.document code.language-malloy {
  color: #333388;
}

a {
  color: #1a73e8;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Google Sans", Arial, Helvetica, sans-serif;
  margin-bottom: 8px;
  color: #202124;
}

h1 {
  font-weight: 500;
  margin-top: 0;
  font-size: 28px;
}

h2 {
  font-weight: 500;
  margin-top: 24px;
  font-size: 20px;

  padding-bottom: 7px;
  margin-bottom: 16px;

  border-bottom: 1px solid #4285f4;
}

h3 {
  font-weight: 500;
  margin-top: 20px;
  font-size: 16px;
}

h4,
h5,
h6 {
  font-weight: 500;
  margin-top: 20px;
  font-size: 14px;
}

blockquote {
  padding-left: 10px;
  border-left: 3px solid #ededed;
  margin: 0;
  color: #505050;
}

table {
  border: 1px solid #efefef;
  border-radius: 5px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

div.document table th {
  font-weight: 500;
  font-size: 14px;
}

table td,
table th {
  border: 1px solid #efefef;
}

table tr td,
table tr th {
  border-right: 0;
  padding: 8px;
}

table tr:last-child td {
  border-bottom: 0;
}

table tr:first-child td,
table tr:first-child th {
  border-top: 0;
}

table tr td:first-child,
table tr th:first-child {
  border-left: 0;
}

table tr td {
  border-top: 0;
}

/* Reset site table styles inside rendered Malloy results */
div.result-inner table {
  border: none;
  border-radius: 0;
  border-collapse: initial;
  border-spacing: initial;
  width: auto;
  overflow: visible;
}

div.result-inner table td,
div.result-inner table th {
  border: none;
  padding: initial;
}

div.document div.result-inner table th {
  font-weight: initial;
  font-size: initial;
}

div.document p {
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 12px;
  margin-top: 4px;
}

div.document pre {
  border: 1px solid #eaeaea;
  border-radius: 5px;
  overflow-y: visible;
  padding: 10px;
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
    monospace;
  font-size: 14px;
  overflow-x: auto;
  color: #333388;
  background-color: #fbfbfb;
  line-height: 18px;
}

div.document span.token.keyword {
  color: #af00db;
}

div.document span.token.comment {
  color: #4f984f;
}

div.document span.token.function,
div.document span.token.function_keyword {
  color: #795e26;
}

div.document span.token.string {
  color: #ca4c4c;
}

div.document span.token.regular_expression {
  color: #88194d;
}

div.document span.token.operator,
div.document span.token.punctuation {
  color: #505050;
}

div.document span.token.number {
  color: #09866a;
}

div.document span.token.type,
div.document span.token.timeframe {
  color: #0070c1;
}

div.document span.token.date {
  color: #09866a;
  /* color: #8730b3; */
}

div.document span.token.property {
  color: #b98f13;
}

div.document iframe {
  display: flex;
  flex-direction: column;
  overflow: auto;
  border: 1px solid rgb(234, 234, 234);
  border-radius: 5px;
  max-height: 520px;
  width: calc(100% - 2px);
}

div.document a.header-link {
  text-decoration: none;
  outline: none;
  color: #202124;
}

div.document a.header-link:hover {
  text-decoration: underline;
  color: #202124;
}

div.document a.header-link:active {
  outline: none;
}

div.footer {
  background-color: #fafafa;
}

div.linear-navigation {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
}

div.linear-navigation div.item a {
  text-decoration: none;
  color: #202124;
  display: flex;
  gap: 5px;
}

div.linear-navigation div.item a img {
  width: 8px;
}

div.linear-navigation div.item {
  border-radius: 15px;
  padding: 5px 10px;
  font-size: 14px;
  margin: 12px;
}

div.linear-navigation div.item:hover {
  background-color: #85b0f730;
}

div.linear-navigation div.item:hover a {
  color: #4285f4;
}

div.result-outer {
  display: flex;
  flex-direction: column;
  overflow: auto;
  border: 1px solid rgb(234, 234, 234);
  border-radius: 5px;
  margin: 4px 0 12px;
  position: relative;
}

div.result-outer.small {
  max-height: 230px;
}

div.result-outer.medium {
  max-height: 380px;
}

div.result-outer.large {
  max-height: 520px;
}

div.result-middle {
  position: relative;
  overflow: hidden;
  display: none;
}

div.result-middle[selected] {
  display: flex;
}

div.result-middle[data-result-kind="html"] div.result-inner {
  height: 400px;
}


div.result-inner {
  overflow: auto;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  flex-grow: 1;
  font-size: 14px;
}

div.document div.result-inner > table {
  margin-top: -1px;
  margin-bottom: 0;
}

div.document ul,
div.document ol {
  font-size: 14px;
  color: rgb(60, 64, 67);
  line-height: 20px;
  margin: 16px 0;
  padding: 0;
}

div.document ul {
  list-style: circle;
}

div.document li {
  margin-left: 20px;
  margin-bottom: 10px;
}

div.document li.task p {
  display: inline;
  margin: 0;
}

div.document li.task {
  list-style: none;
  margin-left: -3px;
}

div.document li.task input[type="checkbox"] {
  margin-right: 6px;
  vertical-align: bottom;
}

div.document table {
  margin-bottom: 16px;
}

div.document img {
  width: 100%;
}

div.document .small-img {
  width: 60%;
}

div.document div.error {
  color: #ca4c4c;
}

div.document hr {
  border: none;
  border-bottom: 1px solid #4285f4;
}

td {
  line-height: 24px;
  font-size: 14px;
}

div.document td pre code {
  background-color: transparent;
  border: none;
  white-space: pre-wrap;
  padding: 0;
  display: block;
}

div.document td pre {
  margin: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

div.document td pre:not(:first-child) {
  margin-top: 10px;
}

.result-inner > table td {
  line-height: 16px;
}

div.document .result-inner pre {
  border: none;
  background-color: transparent;
  padding: 8px;
  margin: 0;
}

div.document .result-middle[data-result-kind="sql"] pre,
div.document .result-middle[data-result-kind="json"] pre {
  background-color: #fbfbfb;
}

.result-controls-bar {
  display: flex;
  border-bottom: 1px solid #efefef;
  justify-content: space-between;
  align-items: center;
  color: #b1b1b1;
}

.result-label {
  font-weight: 500;
  font-size: 12px;
  padding: 0 8px;
}

.result-controls {
  display: flex;
  justify-content: end;
  padding: 5px 5px 0 5px;
  font-size: 12px;
  gap: 3px;
}

.result-controls .result-control {
  border: 0;
  border-bottom: 1px solid white;
  cursor: pointer;
  background-color: white;
  padding: 3px 5px;
  color: #b1b1b1;
}

.result-controls .result-control:hover {
  border-bottom: 1px solid #4285f4;
  color: #4285f4;
}

.result-controls .result-control[selected] {
  border-bottom: 1px solid #4285f4;
  color: #4285f4;
}

.search-highlight {
  background-color: #ffff005c;
  color: unset;
}

.search-input-outer {
  position: relative;
}

.search-input-outer img {
  position: absolute;
  top: 6px;
  left: 10px;
  pointer-events: none;
}

#search-input {
  padding: 9px 10px 8px 40px;
  border-radius: 5px;
  border: 1px solid #efefef;
  color: #505050;
  font-size: 16px;
  background-color: #fbfbfb;
}

div.document img.download-icon {
  height: 15px;
  width: 15px;
}

a.button-link {
  display: flex;
  align-items: center;
  gap: 5px;
}

div#banner_wrapper {
  display: flex;
  position: fixed;
  width: 100%;
  bottom: 0;
  justify-content: center;
  pointer-events: none;
}

div#banner {
  pointer-events: initial;
  display: flex;
  flex-direction: row;
  font-family: "Google Sans", Arial, Helvetica, sans-serif;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  height: 60px;
  width: 80%;
  max-width: 1000px;
  background: #2655c9;
  color: white;
  padding: 0 20px;
  justify-self: center;
}

div#banner.hidden {
  display: none;
}

div#banner button {
  border: 0;
  background: white;
  color: #2655c9;
  height: 30px;
  width: 120px;
  border-radius: 3px;
  cursor: pointer;
}

div#banner a {
  color: white;
  text-decoration: underline;
}

table.transpose tr { 
  display: flex;
  flex-direction: column;
  width: 100%; 
}
table.transpose tbody {
  display: flex;
  flex-direction: row;
}
table.transpose tr td:first-child { border-left: 1px solid #efefef; }
table.transpose tr:first-child td { border-left: none; }
table.transpose tr:last-child td { border-bottom: 1px solid #efefef; }
table.transpose tr td:last-child { border-bottom: none; }

div.title-row {
  display: flex;
  justify-content: space-between;
  margin-block-end: 0.67em;
  align-items: center;
}

div.title-row h1 {
  margin-block-end: 0;
}

a.edit-link {
  display: flex;
  gap: 2px;
  align-items: center;
  height: 19px;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
}

a.edit-link img {
  width: 22px;
  height: 22px;
}

div.code-wrapper {
  position: relative;
}

div.code-wrapper a.open_notebook {
  position: absolute;
  top: 10px;
  right: 10px;
}

div.code-wrapper a.open_notebook img {
  width: 22px;
  height: 22px;

  background-color: #fbfbfbcd;
  border: 1px solid #efefef;
  border-radius: 3px;
}

div.code-wrapper a.open_notebook img:hover {
  background-color: #ffffffcd;
}

.document-outer.blog {
  background-color: white;
}

.document-outer.blog .document {
  border: none;
}

.document-outer.blog .document .code-wrapper {
  margin-block: 24px;
}


.blog-post-link {
  margin-bottom: 40px;
  color: #707277;
  display: block;
  margin-top: 40px;
}

.blog-post-link h1 {
  color: #202124;
  margin-bottom: 2px;
}

.blog-post-link .subtitle {
  color: #202124;
  font-size: 16px;
  margin-bottom: 6px;
}

.blog-post-link:hover .subtitle {
  color: #4285f4;
}

.blog-post-link:hover {
  color: #4285f4;
}

.blog-post-link:hover h1 {
  color: #4285f4;
}

.blog h2 {
  border-bottom: none;
  margin-bottom: 0;
}

.document-outer.blog .document > img,
.document-outer.blog .document > p > img {
  margin-block: 24px;
  max-width: 100%;
  width: unset;
}

.document-outer.blog .document > img:not(.no-shadow),
.document-outer.blog .document > p > img:not(.no-shadow) {
  border-radius: 6px;
  box-shadow: 1px 1px 11px 0px #8080802c;
}

.document-outer.blog .document > p > img {
  margin-top: 10px;
}

.document-outer.blog .blog-footer,
.document-outer.blog .blog-header {
  font-family: "Google Sans";
}

.document-outer.blog .blog-footer {
  border-top: 1px solid #2655c9;
  display: flex;
  justify-content: space-between;
}

@media only screen and (min-width: 1200px) {
  .document-outer.blog .blog-footer,
  .document-outer.blog .blog-header {
    width: 60%;
    margin-left: 20%;
  }
}

@media only screen and (min-width: 1768px) {
  .document-outer.blog .blog-footer,
  .document-outer.blog .blog-header {
    width: 50%;
    margin-left: 25%;
  }
}

@media only screen and (min-width: 1200px) {
  .document-outer.blog .document {
    width: calc(60% - 32px);
    margin-left: 20%;
  }
}

@media only screen and (min-width: 1768px) {
  .document-outer.blog .document {
    width: calc(50% - 32px);
    margin-left: 25%;
  }
}

.blog .document p {
  font-size: 16px;
  line-height: 28px;
}

.blog .document code {   
  font-size: 14px;
  line-height: 18px;
  background-color: transparent !important;
  border: none;
  padding: 2px;
}

.blog-header.linear-navigation .item {
  margin-left: 5px;
}

.blog a:not(.edit-link):not(.blog-post-link):not(.header-link) {
  color: unset;
  text-decoration: underline;
}

.blog-footer.linear-navigation .item:first-child {
  margin-left: 5px;
}

.blog-footer.linear-navigation .item:last-child {
  margin-right: 5px;
}

.blog-header.linear-navigation div.edit-link {
  padding: 5px 0px;
  margin: 12px;
}

.blog .title-row .edit-link {
  display: none;
}

div.document h1 code,
div.document h2 code,
div.document h3 code,
div.document h4 code,
div.document h5 code,
div.document h6 code {
  background-color: transparent !important;
  border: none;
  padding: 2px;
}

div.document h1 code,
.blog div.document h1 code {
  font-size: 26px;
}

div.document h2 code,
.blog div.document h2 code {
  font-size: 18px;
}

div.document h3 code,
.blog div.document h3 code {
  font-size: 14px;
}

div.document h4 code,
div.document h5 code,
div.document h6 code,
.blog div.document h4 code,
.blog div.document h5 code,
.blog div.document h6 code {
  font-size: 12px;
}

.blog .document h2 code {
  font-size: 18px;
}

div.document div.warning {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
  background-color: #ECECEC;
  border: 1px solid #cfcfcf;
  color: black;
  border-radius: 5px;
  overflow-y: visible;
  padding: 10px;
  font-size: 14px;
  overflow-x: auto;
  line-height: 18px;
  margin-block-end: 0.67em;
  margin-block-start: 1.67em;
}