.container-docs {
  margin: 20px;
  max-width: 900px;
}

@media screen and (min-width: 60em) {
  .container-docs {
    margin: auto;
    max-width: 900px;
  }
}

.docs a {
  color: #509ee3;

  /* set a display context for links, helps prevent issues where titles
   * inside of links have odd formatting like
   * ttps://github.com/metabase/metabase.github.io/issues/573 */
  display: inline-block;
}

.docs a:hover {
  text-decoration: underline;
}

.MB-Documentation + .MB-Footer a:hover {
  color: #509ee3;
}

.MB-Documentation img {
  border: 2px solid #e8e8e8;
  border-radius: 2px;
  max-width: 100%;
  transition: border 0.3s linear;
}

.MB-Documentation img:hover {
  border-color: #509ee3;
  cursor: zoom-in;
}

/* Docs header */

.MB-DocumentationHeader {
  background-color: #509ee3;
  color: #fff;
  padding-top: 0;
}

/* Docs hero items */

.MB-Documentation {
  background-color: #509ee3;
}

/* make sure pre and code blocks are the same size regardless of whether they're nested in a p tag */
.MB-Documentation pre,
.MB-Documentation p code,
.MB-Documentation li code {
  font-size: 1rem;
  padding: 4px 6px;
}

.MB-Documentation p {
  margin-bottom: 14px;
  margin-top: 8px;
}

.MB-Documentation p,
li {
  color: #4c5773;
}

.docs blockquote:not(.plans-blockquote) {
  border-left: 1px solid #509ee3;
  padding-left: 20px;
}

.MB-Documentation h1 {
  margin-top: 0.834em;
}

.MB-Documentation h1,
h2,
h3 {
  margin-bottom: 16px;
  margin-top: 32px;
}

.MB-Documentation h4,
.MB-Documentation h5,
.MB-Documentation h6 {
  margin-bottom: 8px;
  margin-top: 32px;
}

.MB-Documentation li {
  font-size: 18px;
  line-height: 28px;
}

/* tighten up list spacing on desktop for legibility */
@media screen and (min-width: 60em) {
  .MB-Documentation li {
    margin-bottom: 0.5em;
  }

  .MB-Documentation li > ul,
  .MB-Documentation li > ol {
    margin-top: 0.5em;
  }
}

.MB-Documentation hr {
  border-top: 1px solid #e8e8e8;
  margin-bottom: 32px;
  margin-top: 32px;
}

.all-of-the-latest-documentation h1:first-child {
  padding: 0;
}

#docs-hero a > * {
  color: #509ee3;
}

#docs-hero a:hover > * {
  color: #509ee3;
}

#docs-hero a {
  padding-bottom: 32px;
}

#docs-hero h3 {
  margin-bottom: 8px;
}

#docs-hero h5 {
  font-weight: 400;
}

@media screen and (min-width: 60em) {
  .MB-Documentation-sm-mr2 {
    margin-right: 1.728em;
  }
}
