/* The help site, after HelpScout's "Launch" Docs theme with our colours. */

:root {
  --header: #0b5c8e;
  --header-link: #ffffff;
  --header-active: #afe6f8;
  --page: #f9fafa;
  --search-band: #f5f5f5;
  --text: #333333;
  --heading: #222222;
  --article-text: #191d1f;
  --muted: #a0a0a0;
  --link: #4eb0e4;
  --list-link: #4381b5;
  --button: #4f92ca;
  --button-hover: #4689c2;
  --button-border: #407fb3;
  --border: #e0e0e0;
  --panel-border: #e9e5e5;
  --icon: #c6c6c6;
  --content-width: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 18px;
}

a { color: var(--list-link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3, h4 { font-family: inherit; text-rendering: optimizeLegibility; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.icon { width: 1em; height: 1em; vertical-align: -0.125em; flex: none; }

/* Header */

.site-header {
  background: var(--header);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.067);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: calc(var(--content-width) + 40px);
  min-height: 145px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand { align-self: flex-end; display: block; margin-bottom: 11px; padding: 0; line-height: 0; }
.brand img { display: block; width: 412px; max-width: 100%; height: auto; }

.site-nav ul { display: flex; margin: 0; padding: 0; list-style: none; }

.site-nav a {
  position: relative;
  display: block;
  padding: 11px 15px;
  color: var(--header-link);
  font-size: 13.2px;
  line-height: 32px;
}

.site-nav a:hover, .site-nav a:focus { color: var(--header-active); text-decoration: none; }

.site-nav .language-switch { display: flex; align-items: center; gap: 6px; }
.site-nav .language-switch .icon { width: 15px; height: 15px; }

/* Search */

.docs-search {
  margin: 0 0 36px;
  padding: 18px 20px;
  background: var(--search-band);
  border-bottom: 1px solid #dfdfdf;
  text-align: center;
}

.docs-search h1 { margin: 12.8px 0 9px; font-size: 32px; font-weight: 400; line-height: 36px; }
.docs-search .lead { font-size: 14px; }

.search-bar { position: relative; margin: 0 0 30px; }

.search-bar .search-query {
  display: block;
  width: 100%;
  height: 40px;
  padding: 4px 35px 4px 14px;
  color: #666;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  font-size: 14px;
  line-height: 18px;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.search-bar .search-query::-webkit-search-cancel-button { display: none; }
.search-bar .search-query:focus { border-color: #a9c7e2; outline: 0; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px rgba(79, 146, 202, 0.35); }

.search-bar button {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #999;
  background: none;
  border: 0;
  font-size: 16px;
  cursor: pointer;
}

.search-bar-large { width: 620px; max-width: 100%; margin: 0 auto; padding: 24px 0; text-align: left; }

.search-bar-large .search-query {
  height: 50px;
  padding: 4px 120px 4px 14px;
  color: #555;
  border-color: #ccc;
  border-radius: 5px;
  font-size: 18px;
  line-height: 22px;
}

.search-bar-large button {
  top: 24px;
  right: 0;
  width: auto;
  height: 50px;
  padding: 0 27px;
  color: #fff;
  background: var(--button);
  border: 1px solid var(--button-border);
  border-radius: 0 5px 5px 0;
  text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.4);
  font-size: 18px;
}

.search-bar-large button:hover { background: var(--button-hover); }
.search-bar-large button .icon { display: none; }

.search-suggestions {
  position: absolute;
  z-index: 10;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 485px;
  margin: -1px 0 0;
  padding: 5px 0;
  overflow: auto;
  list-style: none;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 2px 5px rgba(100, 100, 100, 0.2);
  text-align: left;
}

.search-bar-large .search-suggestions { top: calc(100% - 24px); }
.search-suggestions[hidden] { display: none; }
.search-suggestions a, .search-suggestions .empty { display: block; padding: 7px 15px; font-size: 15px; line-height: 20px; }
.search-suggestions .empty { color: var(--muted); }
.search-suggestions a:hover, .search-suggestions .active a { background: #f3f3f3; text-decoration: none; }

/* Layout */

.content-area {
  max-width: calc(var(--content-width) + 40px);
  margin: 0 auto;
  padding: 0 20px;
}

.with-sidebar {
  display: grid;
  grid-template-columns: 249px minmax(0, 1fr);
  grid-template-areas: "sidebar main";
  column-gap: 55px;
}

.main-content { grid-area: main; margin: 0 0 24px; padding-top: 32px; }
.sidebar { grid-area: sidebar; margin-top: 32px; }

/* Home: a language's categories, each with its featured articles */

.category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 17px;
  margin: 0 8px 48px;
}

.category-list .category {
  display: flex;
  flex-direction: column;
  padding: 20px 22px 18px;
  background: #fff;
  border: 1px solid var(--border);
}

.category-list h2 { margin: 0 0 12px; font-size: 20px; font-weight: 400; line-height: 26px; }
.category-list h2 a { color: var(--text); }
.category-list .featured { flex: 1; margin: 0 0 12px; padding: 0; list-style: none; }
.category-list .featured a { display: flex; gap: 8px; padding: 5px 0; color: var(--list-link); font-size: 14px; line-height: 20px; }
.category-list .featured .icon { flex: none; width: 14px; height: 14px; margin-top: 3px; color: var(--icon); }
.category-list .all-articles { display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-size: 13.2px; }
.category-list .all-articles .icon { width: 12px; height: 12px; }

/* Panels */

.content-wrapper {
  position: relative;
  padding: 45px 46px 30px;
  color: var(--heading);
  background: #fff;
  border: 1px solid var(--panel-border);
}

.content-wrapper > h1, .serp h1 {
  margin: 0 0 15px;
  color: var(--heading);
  font-size: 30px;
  font-weight: 400;
  line-height: 36px;
}


.article-list { margin: 0; padding: 0; list-style: none; }
.article-list li { margin: 0 0 22px; }
.article-list a { display: inline-flex; align-items: baseline; gap: 6px; color: var(--link); font-size: 15.6px; line-height: 23.4px; }
.article-list a:hover span { text-decoration: underline; }
.article-list a:hover { text-decoration: none; }
.article-list .icon { color: var(--icon); font-size: 16px; position: relative; top: 2px; }

/* Sidebar */

.sidebar h3 { margin: 9px 0 4px; color: var(--heading); font-size: 12px; font-weight: 700; line-height: 36px; text-transform: uppercase; }
.nav-list { margin: 0 0 34px; padding: 0; list-style: none; }
.nav-list a { display: inline-flex; align-items: center; gap: 4px; padding: 7.35px 15px 7.35px 0; color: #858585; font-size: 13.2px; line-height: 20px; }
.nav-list a:hover { color: var(--heading); text-decoration: none; }
.nav-list .icon { display: none; color: var(--icon); }
.nav-list .active a { color: var(--heading); font-weight: 700; }
.nav-list .active .icon, .nav-list a:hover .icon { display: inline; }

/* Article */

.full-article { color: var(--article-text); font-size: 14px; line-height: 1.55; overflow-wrap: break-word; }
.full-article h1.title { margin: 0 30px 15px 0; color: var(--heading); font-size: 30px; font-weight: 400; line-height: 36px; }
.full-article h2 { margin: 9px 0 15.6px; color: var(--heading); font-size: 24px; line-height: 32px; }
.full-article h3 { margin: 9px 0 13.65px; color: var(--heading); font-size: 21px; line-height: 28px; }
.full-article h4 { margin: 9px 0 12px; color: var(--heading); font-size: 16px; }
.full-article p { margin: -4px 0 21px; }
.full-article ul, .full-article ol { margin: 0 0 21px; padding-left: 25px; }
.full-article li { margin: 0 0 10px; }
.full-article li > p { margin-bottom: 6px; }
.full-article a { color: var(--link); }
.full-article strong a, .full-article a strong { color: var(--link); }
.full-article img { max-width: 100%; height: auto; margin: 14px 0 28px; padding: 4px; border: 1px solid #d6d6d6; border-radius: 4px; }
.full-article table { width: 100%; margin: 0 0 21px; border-collapse: collapse; }
.full-article th, .full-article td { padding: 8px 10px; border: 1px solid #ddd; text-align: left; vertical-align: top; }
.full-article th { background: #f5f5f5; }
.full-article blockquote { margin: 0 0 21px; padding: 10px 20px; background: #f9f9f9; border-left: 4px solid #dfdfdf; }
.full-article code { padding: 1px 4px; background: #f4f4f4; border-radius: 3px; font-size: 13px; }
.full-article pre { padding: 12px; overflow: auto; background: #f4f4f4; border-radius: 4px; }
.full-article pre code { padding: 0; background: none; }
.full-article hr { margin: 28px 0; border: 0; border-top: 1px solid #e5e5e5; }

.print-article {
  position: absolute;
  top: 52px;
  right: 46px;
  padding: 0;
  color: var(--icon);
  background: none;
  border: 0;
  font-size: 16px;
  cursor: pointer;
}

.print-article:hover { color: var(--link); }

.translation { margin: -6px 0 22px; font-size: 13px; }
.translation a { display: inline-flex; align-items: center; gap: 6px; color: var(--link); }

.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 48px; color: var(--muted); }
.article-foot p { margin: 0; }
.article-foot .help { display: inline-flex; align-items: center; gap: 8px; }
.article-foot .help .icon { color: var(--icon); font-size: 18px; }
.article-foot a { color: var(--link); }

.related { padding: 25px 46px; background: #fff; border: 1px solid var(--panel-border); border-top: 0; }
.related h3 { margin: 0 0 16px; color: #4d4d4d; font-size: 12px; font-weight: 700; line-height: 20px; text-transform: uppercase; }
.related .article-list li { margin-bottom: 8px; }
.related .article-list a { color: var(--list-link); font-size: 16px; line-height: 24px; }

/* Search results */

.serp h1 strong { font-weight: 700; }
.articles-found { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.articles-found strong { color: var(--text); }


.results li { margin-bottom: 22px; }
.results p { margin: 4px 0 0 26px; color: #555; font-size: 13px; line-height: 20px; }
.results mark { color: inherit; background: none; font-weight: 700; }

/* Footer */

.site-footer { max-width: calc(var(--content-width) + 40px); margin: 0 auto; padding: 0 20px; text-align: center; }
.site-footer p { margin: 0 0 32px; color: #9b9b9b; font-size: 10.8px; }
.site-footer a { color: #9b9b9b; }

/* Narrow screens */

@media (max-width: 979px) {
  .with-sidebar { grid-template-columns: 200px minmax(0, 1fr); column-gap: 30px; }
  .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .header-inner { flex-wrap: wrap; align-items: center; min-height: 0; padding: 16px; }
  .brand { align-self: center; margin-bottom: 0; }
  .brand img { width: 220px; }
  /* No hamburger: the language switch must always be visible. */
  .site-nav { flex-basis: 100%; margin: 8px 0 -16px; }
  .site-nav ul { flex-wrap: wrap; gap: 0 4px; margin-left: -10px; }
  .site-nav a { padding: 4px 10px 12px; line-height: 24px; }

  .docs-search { margin-bottom: 24px; padding: 12px 16px; }
  .docs-search h1 { font-size: 26px; }
  .search-bar-large { padding: 16px 0; }
  .search-bar-large .search-query { padding-right: 14px; font-size: 16px; }
  .search-bar-large button { position: static; width: 100%; margin-top: 10px; border-radius: 5px; }
  .search-bar-large .search-suggestions { top: 66px; }

  .content-area { padding: 0 16px; }
  .with-sidebar { display: flex; flex-direction: column; }
  .main-content { padding-top: 20px; }
  .sidebar { margin-top: 0; }
  .category-list { grid-template-columns: minmax(0, 1fr); margin: 0 0 32px; }
  .content-wrapper { padding: 24px 18px 20px; }
  .related { padding: 20px 18px; }
  .print-article { display: none; }
  .full-article h1.title { margin-right: 0; font-size: 26px; line-height: 32px; }
}

@media print {
  .site-header, .sidebar, .related, .article-foot, .site-footer, .print-article, .translation { display: none !important; }
  body { background: #fff; }
  .with-sidebar { display: block; }
  .content-wrapper { padding: 0; border: 0; }
  .full-article img { break-inside: avoid; }
}
