/* Navbar */

body > header {
  position: relative !important;
}

body > header .mm-main-navbar {
  background-color: inherit;
}

body > header .mm-main-navbar {
  box-shadow: none;
}

/* Navbar > Search box */

body > header .navbar input[type=search] {
  width: 25rem;
}

body > header input[type=search] {
  padding-left: 32px;
  background-image: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), url('/https/mailmeteor.com/assets/img/icons/search-box.svg');
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 18px 18px;
}

/* Navbar > Tabs */

body > header #docs-header-navbar {
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #E9E9E9;
  box-shadow: 0px 3px 7px 0px #B6B6B625;
  background: #FFF;
  overflow: auto;
  white-space: nowrap;
  color: #04143a;
}

body > header #docs-header-navbar ul {
  display: flex;
  margin: 1rem 0 0 0;
  padding: 0;
  list-style: none;
  flex-direction: column;
  width: 100%;
}

body > header #docs-header-navbar ul > li {
  margin: 0.25rem 0;
}

@media screen and (min-width: 769px) {
  body > header #docs-header-navbar {
    display: block;
    border-top: 1px solid #E9E9E9;
  }

  body > header #docs-header-navbar ul {
    margin: 0;
    flex-direction: row;
  }

  body > header #docs-header-navbar ul > li {
    margin: 0;
    padding: 0;
  }
  
  body > header #docs-header-navbar li a {
    opacity: 0.9;
  }
  
  body > header #docs-header-navbar li:not(.active) a {
    color: inherit
  }
  
  body > header #docs-header-navbar li.active a {
    font-weight: 500;
  }
  
  body > header #docs-header-navbar li.active a::after {
    display: block;
    content: "";
    width: 100%;
    height: 2px;
    background-color: #15c;
    margin: 2px 0 -4px 0;
    transition: transform .25s ease-in-out;
    transform: scale(1);
    border-radius: 8px;
  }
  
  body > header #docs-header-navbar li.active a:hover::after {
    background-color: #fc4b6d;
  }

  body > header #docs-header-navbar li:not(:last-child) {
    margin-right: 1.5rem;
  }

  body > header #docs-header-navbar ul > li:nth-last-child(2){
    margin-left: auto;
  }
}

/* Layout */

.docs-content {
  display: flex;  
}

@media screen and (min-width: 992px) {
  .docs-content > .docs-sidebar {
    width: 240px;
    max-width: 240px;
    padding-right: 0.5rem;
  }

  .docs-content > .docs-sidebar + .docs-main {
    padding-left: 2rem;
  }
}

/* Sidebar */

.docs-sidebar {
  border-right: 1px solid #F2F2F2;
  overflow-y: auto;
  max-height: 100vh;
  position: sticky;
  top: 12px;
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

.docs-sidebar h5 {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6c757d;
}

ul.docs-summary,
ul.docs-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  line-height: 20px;
  column-gap: 12px;
  row-gap: 12px;
  margin-top: 12px;
  font-size: 0.95rem;
}

ul.docs-summary ul li {
  padding-left: 14px;
}

ul.docs-summary a:hover,
ul.docs-summary .docs-summary-group:hover {
  cursor: pointer;
}

ul.docs-summary a:not(.active) {
  color: inherit;
}

ul.docs-summary a.active {
  font-weight: 600;
}

ul.docs-summary .docs-summary-group {
  display: flex;
  align-items: center;
}

ul.docs-summary .docs-summary-group .docs-summary-group-caret {
  display: flex;
  align-items: center;
  padding-right: 4px;
  height: 20px;
}

ul.docs-summary .docs-summary-group .docs-summary-group-caret svg {
  transition: transform 0.1s ease-in-out;
  height: 8px;
  width: 8px;
}

.docs-summary-group-caret[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

ul.docs-summary > li > .docs-summary-group[aria-expanded="true"] span {
  font-weight: 600;
}

ul.docs-summary ul ul {
  border-left: 1px solid #F2F2F2;
}

/* Main */

main[role="main"] {
  padding: 1rem 0 0 0;
  flex-grow: 1;
  min-width: 0;
}

/* Main > Breadcrumb */

main > .docs-main-breadcrumb {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  color: #6c757d;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
  flex-wrap: wrap;
}

main > .docs-main-breadcrumb li {
  display: flex;
  align-items: center;
}

main > .docs-main-breadcrumb li:not(:last-child)::after {
  content: "/";
  padding: 0 4px;
  color: inherit;
  font-size: 0.75rem;
}

main > .docs-main-breadcrumb li a {
  color: inherit;
}

/* Main > Article */

main > article,
main > article + .docs-related-answers-container {
  max-width: 800px;
}

main > article > figure {
  text-align: center;
}

main > article img:not([data-size]) {
  max-width: 100%;
}

main > article > img:not([data-size]),
main > article > p > img:only-child:not([data-size]),
main > article > figure > img:not([data-size]) {
  border-radius: .25rem;
  border: 1px solid #F2F2F2;
  margin: 0 auto;
  display: block;
}

main > article img[data-size="line"] {
  height: 1lh;
  max-height: 1lh;
  width: auto;
}

main > article figure > img {
  border: 1px solid #F2F2F2;
  border-radius: 0.25rem;
}

main > article figure figcaption {
  color: #6c757d;
  font-size: .875rem;
  line-height: 1.25rem;
  text-align: center;
  margin: .5rem 0;
}

/* Main > Article > Image preview */

.docs-image-zoom {
  cursor: zoom-in;
}

.docs-image-zoom:focus-visible {
  outline: 2px solid #1a53ff;
  outline-offset: 4px;
}

html.docs-image-preview-open {
  overflow: hidden;
}

.docs-image-preview {
  border: 0;
  border-radius: 0.5rem;
  padding: 3rem 0.75rem 0.75rem;
  margin: auto;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  background: #fff;
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.25);
  cursor: zoom-out;
}

.docs-image-preview::backdrop {
  background: rgba(4, 20, 58, 0.8);
}

.docs-image-preview:focus {
  outline: none;
}

.docs-image-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  max-height: calc(100dvh - 6rem);
  margin: auto;
  object-fit: contain;
}

.docs-image-preview-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #04143a;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.docs-image-preview-close:focus-visible {
  outline: 2px solid #1a53ff;
  outline-offset: -4px;
}

/* Main > Article > Tables */

@media screen and (min-width: 992px ) {
  main > article table {
    padding: 2.5rem 2.5rem 1.5rem 2.5rem;
    background-color: #FFF;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
  }
}

main > article table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}

main > article table th,
main > article table td {
  padding: 10px;
  border: 1px solid #ddd;
}

main > article table th {
  text-align: left;
  background-color: #f2f2f2;
  font-weight: bold;
}

main > article table tr:nth-child(even) {
  background-color: #fcfcfc;
}

/* Main > Article > Tabs */

main > article .tabs-container {
  margin-top: 1rem;
}

main > article .nav.nav-tabs {
  margin: 0 0 1rem 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

main > article .nav.nav-tabs.flex-column {
  flex-wrap: nowrap;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 50vh;
}

main > article .nav.nav-tabs .nav-item {
  flex-shrink: 0;
}

main > article .nav.nav-tabs .nav-link {
  background: none;
  border: 0;
  color: inherit;
  white-space: nowrap;
}

main > article .nav.nav-tabs .nav-link.active {
  font-weight: 600;
  border-bottom: 2px solid #1a53ff;
  color: #1a53ff;
}

main > article .nav.nav-tabs .nav-link:focus {
  outline: none;
}

/* Main > Article > Alert (aka hint) */

main > article .alert {
  position: relative;
  padding-left: 3rem;
}

main > article .alert.alert-info {
  color: #004085;
  background-color: #cce5ff;
  border-color: #b8daff;
}

main > article .alert > p:last-child {
  margin-bottom: 0;
}

main > article .alert::before {
  content: "";
  display: block;
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
  width: 1rem;
  height: 1rem;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

main > article .alert.alert-info::before {
  background-image: url('/https/mailmeteor.com/assets/img/icons/hint-info.svg');
}

main > article .alert.alert-danger::before {
  background-image: url('/https/mailmeteor.com/assets/img/icons/hint-error.svg');
}

main > article .alert.alert-warning::before {
  background-image: url('/https/mailmeteor.com/assets/img/icons/hint-danger.svg');
}

main > article .alert.alert-success::before {
  background-image: url('/https/mailmeteor.com/assets/img/icons/hint-success.svg');
}

main > article .alert > ul,
main > article .alert > ol {
  padding-inline-start: 1rem;
}

/* Main > Article > Blockquote */

main > article blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: #212529;
  border-left: 4px solid #ccc;
  padding: 10px 20px;
  margin: 20px 0;
  background-color: #f9f9f9;
}

main > article blockquote p:last-child {
  margin-bottom: 0;
}

/* Main > Content ref */

main > article .docs-content-ref a {
  display: flex;
  margin: 1rem 0;
  padding: .75rem 1.25rem;
  border-radius: 0.25rem;
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
  transition-duration: .15s;
  box-shadow: rgb(255, 255, 255) 0px 0px 0px 0px, color(srgb 0.120353 0.120353 0.120353 / 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0) 0px 0px 0px 0px;
  box-sizing: border-box;
  color: inherit;
}

main > article .docs-content-ref a:hover {
  color: #15c;
  box-shadow: rgb(255, 255, 255) 0px 0px 0px 0px, rgba(26, 83, 255, 0.72) 0px 0px 0px 1px, rgba(0, 0, 0, 0) 0px 0px 0px 0px
}

main > article .docs-content-ref a::after {
  content: ">";
  display: block;
  margin-left: auto;
}

/* Main > Homepage */

.docs-top-articles ul {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

@media (min-width: 576px) and (max-width: 960px) {
  .docs-top-articles ul {
    columns: 2;
  }
}

@media (min-width: 960px) {
  .docs-top-articles ul {
    columns: 3;
  }
}

.docs-top-articles li:before {
  content: '';
  background-image: url(/https/mailmeteor.com/assets/img/elements/articles.svg);
  background-repeat: no-repeat;
  width: 18px;
  height: 22px;
  display: inline-block;
  position: relative;
  top: 4px;
}

.docs-top-articles li {
  margin-bottom: 1rem;
}

.docs-top-articles li a {
  margin-left: 0.375rem;
}

.docs-top-topics ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-auto-rows: 1fr;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.docs-top-topics-list:not(:first-of-type) {
  margin: 2rem 0;
}

.docs-top-topics-list h3 {
  margin-top: 0;
  border-bottom: 1px solid #E7E9EC;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-weight: normal;
  font-size: 1.15rem;
}

/* Main > Footer */

main > footer {
  border-top: 1px solid #F2F2F2;
  margin: 2rem 0;
  padding-top: 2rem;
}

main > footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

main > footer ul li {
  display: flex;
  align-items: center;
}

main > footer ul svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  margin-right: 0.25rem;
}

main > footer nav {
  border-top: 1px solid #F2F2F2;
  margin-top: 2rem;
  padding-top: 2rem;
}

/* Search */

#docs-search-results {
  max-width: 42rem;
}

.docs-search-result {
  margin-bottom: 30px;
}

.docs-search-result-title a {
  font-size: 1.1rem;
  font-weight: 400;
}

.docs-search-result-url {
  color: #1e8e3e;
}

/**
 * FAQ
 */

/* FAQ > Related answers */

.docs-related-answers-container {
  border-top: 1px solid #E5E5E5;
  margin: 2rem 0;
  padding-top: 2rem;
}

ul.docs-related-answers {
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: normal;
}

ul.docs-related-answers li::before {
  content: "";
  display: block;
  float: left;
  background-image: url("/https/mailmeteor.com/assets/img/elements/articles.svg");
  margin-left: -24px;
  margin-top: 4px;
  background-image: url(../img/elements/articles.svg);
  background-repeat: no-repeat;
  background-size: cover;
  width: 12px;
  aspect-ratio: 18/22;
}

ul.docs-related-answers li {
  padding-left: 36px;
}

ul.docs-related-answers li:not(:first-child) {
  margin-top: 1.5rem;
}

.docs-related-answers-heading {
  color: inherit;
}

.docs-related-answers-description {
  color: #04143a
}

/* Code blocks */

main > article pre,
main > article .highlight pre,
main > article pre.highlight {
  max-height: none;
  overflow-y: visible;
  overflow-x: auto;
  background-color: #f8f9fa;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid #e6e7eb;
  margin: 1rem 0;
}

main > article pre code {
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre;
  display: block;
  background: transparent;
  padding: 0;
}
