/* ==========================================================================
   Glory League HelpScout Docs CSS
   Based on the Quaderno Help Scout structure, adapted for Graphik
   ========================================================================== */


/* === COMMON === */

:root {
  --gl-font: "Graphik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --gl-mono: "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
  --gl-ink: #201f1d;
  --gl-text: #2d3035;
  --gl-muted: #6b7280;
  --gl-soft: #bbb9b4;
  --gl-border: #d8d6d2;
  --gl-bg: #ffffff;
  --gl-panel: #f5f6f7;
  --gl-brand: #ff0055;
  --gl-brand-dark: #b8003d;
}

body {
  text-rendering: optimizeLegibility !important;
  -webkit-text-size-adjust: 100% !important;
  font-family: var(--gl-font) !important;
  font-variant-numeric: lining-nums tabular-nums slashed-zero !important;
  color: var(--gl-text) !important;
  background: var(--gl-bg) !important;
}

::selection {
  background: var(--gl-ink) !important;
  color: #fff !important;
}

input,
button,
select,
textarea {
  font-family: var(--gl-font) !important;
}

select,
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input {
  color: var(--gl-ink) !important;
  border: 1px solid var(--gl-border) !important;
  box-shadow: none !important;
}

textarea:focus,
input:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
.uneditable-input:focus {
  border-color: var(--gl-ink) !important;
  box-shadow: none !important;
  outline: none !important;
}

code,
pre,
mark,
.inline-code {
  font-family: var(--gl-mono) !important;
}


/* === HIDE DEFAULT HELP SCOUT ELEMENTS === */

p.help,
#sbContact,
#sbContactMobile,
i.icon-print,
i.icon-contact {
  display: none !important;
}

#contact,
#contactMobile {
  display: none !important;
}


/* === HEADER === */

#mainNav,
#mainNav .container-fluid,
#mainNav .navbar-inner,
#mainNav .nav-collapse {
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

#mainNav {
  border-bottom: 1px solid #ecebea !important;
}

a.brand > img,
img[alt="Glory League Help"] {
  display: inline-block !important;
  width: auto !important;
  height: 28px !important;
  max-width: 170px !important;
}

.navbar .brand {
  padding-top: 14px !important;
  line-height: inherit !important;
}

.navbar .nav > li > a,
#mainNav a {
  padding: 6px 10px !important;
  color: #596171 !important;
  font-family: var(--gl-font) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

.navbar .nav > li > a:hover,
.navbar .nav > li > a:focus,
#mainNav a:hover,
#mainNav a:focus {
  color: var(--gl-ink) !important;
  background: none !important;
}


/* === HOMEPAGE HERO === */

#docsSearch {
  margin: 0 !important;
  padding: 56px 0 54px !important;
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

#docsSearch .container-fluid {
  background: transparent !important;
}

#docsSearch h1 {
  margin: 0 !important;
  color: var(--gl-ink) !important;
  font-family: var(--gl-font) !important;
  font-size: 2.25rem !important;
  font-weight: 500 !important;
  line-height: 48px !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}


/* === SEARCH === */

#searchBar {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 24px 0 !important;
  position: inherit !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#searchBar .search-query,
#searchBar input[type="search"],
#searchBar input[type="text"] {
  height: 54px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 18px !important;
  color: var(--gl-ink) !important;
  background: #fff !important;
  border: 1px solid var(--gl-border) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  font-family: var(--gl-font) !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
}

#searchBar .search-query::placeholder,
#searchBar input[type="search"]::placeholder,
#searchBar input[type="text"]::placeholder {
  color: #969da8 !important;
}

#searchBar button {
  position: inherit !important;
  top: 0 !important;
  right: 0 !important;
  flex: 0 0 auto !important;
  height: 54px !important;
  min-width: 116px !important;
  margin: 0 0 0 6px !important;
  padding: 0 24px !important;
  color: #fff !important;
  background: var(--gl-ink) !important;
  border: none !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  font-family: var(--gl-font) !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  line-height: 54px !important;
  text-align: center !important;
  text-shadow: none !important;
  transition: all 0.2s ease-in-out !important;
}

#searchBar button:hover,
#searchBar button:focus {
  color: #fff !important;
  background: var(--gl-ink) !important;
  outline: none !important;
}

#searchBar button .icon-search {
  color: #fff !important;
}

#sidebar #searchBar {
  display: block !important;
  max-width: none !important;
  margin: 0 0 32px !important;
  padding: 0 !important;
}

#sidebar #searchBar button,
#sidebar #searchBar button:hover,
#sidebar #searchBar button:focus {
  background: none !important;
  box-shadow: none !important;
}

#sidebar form .search-query {
  border-color: var(--gl-border) !important;
  border-radius: 4px !important;
}

#sidebar form .search-query:focus {
  border-color: var(--gl-ink) !important;
  box-shadow: none !important;
}

#sidebar .icon-search {
  color: var(--gl-soft) !important;
}


/* === HOMEPAGE CONTENT === */

#contentArea,
#contentArea .container-fluid,
#contentArea .row-fluid,
#main-content,
.contentWrapper {
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

#contentArea {
  padding-top: 36px !important;
}

#main-content {
  background: none !important;
}

.contentWrapper {
  max-width: 920px !important;
  margin: 0 auto !important;
  padding: 0 0 56px !important;
}

.contentWrapper h1,
.contentWrapper h2,
#categoryHead h1,
#fullArticle .title {
  color: var(--gl-ink) !important;
  font-family: var(--gl-font) !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

.contentWrapper > h2,
#main-content > h2 {
  margin: 0 0 32px !important;
  color: var(--gl-ink) !important;
  font-size: 2rem !important;
  font-weight: 500 !important;
  line-height: 40px !important;
  text-align: center !important;
}

.collection-category h2 {
  margin-bottom: 16px !important;
  font-size: 1.5rem !important;
  font-weight: 500 !important;
  line-height: 36px !important;
}

.collection-category h2 a {
  color: var(--gl-ink) !important;
}

.articleList li,
.article-list li,
.collection-list li {
  padding: 8px 0 !important;
  border: none !important;
}

.articleList a,
.article-list a,
.collection-list a {
  color: #43505f !important;
  font-family: var(--gl-font) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 28px !important;
  text-decoration: none !important;
}

.articleList a:hover,
.article-list a:hover,
.collection-list a:hover {
  color: var(--gl-ink) !important;
  text-decoration: underline !important;
}

.articleList i,
.article-list i,
.collection-list i,
.icon-article-doc::before,
.icon-print::before {
  color: var(--gl-soft) !important;
}


/* === CATEGORY CARDS === */

.category-list .category {
  box-sizing: border-box !important;
  margin: 0 10px 20px !important;
  padding: 24px 18px 18px !important;
  color: var(--gl-ink) !important;
  background-color: #fff !important;
  border-color: var(--gl-ink) !important;
  border-radius: 4px !important;
  box-shadow: rgb(0, 0, 0) -4px 6px 0 0 !important;
  transition: all 0.2s ease-in-out !important;
}

.category-list .category:hover {
  transform: translate(2px, -2px) !important;
  box-shadow: rgb(0, 0, 0) -6px 8px 0 0 !important;
}

.category-list h3 {
  color: var(--gl-ink) !important;
  font-size: 1.125rem !important;
  font-weight: 500 !important;
  line-height: 24px !important;
}

.category-list p {
  font-size: 16px !important;
}

.category-list .category p {
  color: var(--gl-ink) !important;
  font-weight: 400 !important;
  line-height: 22px !important;
}

.category-list .category .article-count {
  margin-top: 16px !important;
  color: var(--gl-muted) !important;
  font-weight: 400 !important;
  line-height: 20px !important;
}


/* === ARTICLE DETAIL PAGES === */

.contentWrapper {
  border-color: #e9e5e5 !important;
  border-radius: 4px !important;
}

#fullArticle h1,
#fullArticle h2,
#fullArticle h3,
#fullArticle h4,
#fullArticle h5,
#fullArticle strong,
#categoryHead h1 {
  color: var(--gl-ink) !important;
}

#fullArticle strong {
  font-weight: 500 !important;
}

#fullArticle h1,
#fullArticle h2,
#fullArticle h3,
#fullArticle h4,
#fullArticle h5,
#categoryHead h1 {
  font-family: var(--gl-font) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div:not(.highlight),
#fullArticle blockquote,
#fullArticle dd {
  color: #3f4247 !important;
  font-family: var(--gl-font) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 28px !important;
}

#fullArticle .title,
#categoryHead h1,
#fullArticle h1 {
  margin-bottom: 40px !important;
  font-size: 2.25rem !important;
  font-weight: 500 !important;
  line-height: 48px !important;
}

#fullArticle h2 {
  padding-top: 16px !important;
  margin-bottom: 24px !important;
  font-size: 1.5rem !important;
  font-weight: 500 !important;
  line-height: 36px !important;
}

#fullArticle h3 {
  margin: 32px 0 14px !important;
  font-size: 1.125rem !important;
  font-weight: 500 !important;
  line-height: 28px !important;
}

#fullArticle h4,
#fullArticle h5 {
  margin: 24px 0 12px !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  line-height: 24px !important;
}

#fullArticle img {
  padding: 0 !important;
  border-color: var(--gl-border) !important;
}

#fullArticle a {
  color: var(--gl-ink) !important;
  text-decoration: underline !important;
}

#fullArticle a:hover,
#fullArticle a:focus,
#fullArticle .printArticle {
  color: var(--gl-brand-dark) !important;
  text-decoration: none !important;
}

#fullArticle mark,
#fullArticle .inline-code {
  color: var(--gl-brand-dark) !important;
  background-color: var(--gl-panel) !important;
}

#fullArticle p code,
#fullArticle li code {
  color: #fff !important;
  background-color: #42484d !important;
  border: none !important;
}

#fullArticle mark,
#fullArticle .inline-code,
#fullArticle p code,
#fullArticle li code {
  padding: 1px 4px !important;
  border-radius: 3px !important;
  line-height: 1 !important;
  white-space: normal !important;
}


/* === QUOTES / CALLOUTS === */

#fullArticle blockquote {
  padding: 3px 0 3px 16px !important;
  font-style: italic !important;
  border-left-color: var(--gl-soft) !important;
  border-left-width: 4px !important;
}

#fullArticle blockquote p {
  margin-bottom: 0 !important;
}

#fullArticle blockquote p + p {
  margin-top: 1.5em !important;
}

#fullArticle aside {
  margin-bottom: 24px !important;
  background: #fbf8f9 !important;
  border: 1px solid var(--gl-border) !important;
  border-radius: 4px !important;
}

#fullArticle aside.info {
  background-color: var(--gl-panel) !important;
  border-color: rgba(32, 31, 29, 0.35) !important;
}

#fullArticle .callout-yellow,
#fullArticle .callout-blue,
#fullArticle .callout-red,
#fullArticle .callout-green,
#fullArticle .callout,
#fullArticle .private-note {
  border-radius: 4px !important;
}


/* === TABLES === */

#fullArticle table {
  display: block !important;
  overflow: auto !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
}

#fullArticle table caption + thead tr:first-child th,
#fullArticle table caption + thead tr:first-child td,
#fullArticle table colgroup + thead tr:first-child th,
#fullArticle table colgroup + thead tr:first-child td,
#fullArticle table thead:first-child tr:first-child th,
#fullArticle table thead:first-child tr:first-child td {
  border-top: 1px solid var(--gl-border) !important;
}

#fullArticle table th {
  color: var(--gl-ink) !important;
  background-color: var(--gl-panel) !important;
}

#fullArticle table th,
#fullArticle table td {
  border: 1px solid var(--gl-border) !important;
}


/* === SIDEBAR === */

#sidebar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#sidebar h3,
.related h3 {
  margin-bottom: 24px !important;
  color: var(--gl-ink) !important;
  font-family: var(--gl-font) !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  line-height: 28px !important;
  text-transform: none !important;
}

#sidebar .nav-list a {
  color: var(--gl-ink) !important;
  font-family: var(--gl-font) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 28px !important;
  text-decoration: none !important;
  text-shadow: none !important;
}

#sidebar .nav-list a:hover,
#sidebar .nav-list a:focus {
  color: var(--gl-ink) !important;
  background: none !important;
  text-decoration: underline !important;
}

#sidebar .nav-list .active a,
#sidebar .nav-list .active a:hover,
#sidebar .nav-list .active a:focus,
#sidebar .nav-list .active a .icon-arrow::before {
  color: var(--gl-ink) !important;
  font-weight: 500 !important;
}

#sidebar .nav-list .active a:hover,
#sidebar .nav-list .active a:focus {
  text-decoration: none !important;
}


/* === RELATED / SEARCH RESULTS === */

.related {
  background: rgba(255, 255, 255, 0.7) !important;
  border-radius: 4px !important;
}

.related ul {
  padding-top: 0 !important;
}

.related ul > li a,
#serp-dd .result li a {
  color: var(--gl-ink) !important;
}


/* === ARTICLE FOOTER / RATINGS === */

.articleFoot p,
.articleFoot time {
  color: var(--gl-soft) !important;
  font-family: var(--gl-font) !important;
  font-style: normal !important;
}

.articleRatings {
  color: var(--gl-ink) !important;
  border-width: 1px 0 0 !important;
  border-style: solid !important;
  border-color: var(--gl-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}


/* === FOOTER === */

footer p,
footer p a {
  color: var(--gl-soft) !important;
}

a[href*="helpscout.net"],
a[href*="secure.helpscout.net"] {
  display: none !important;
}


/* === MOBILE === */

@media (max-width: 480px) {
  #docsSearch {
    padding: 38px 18px 36px !important;
  }

  #docsSearch h1 {
    font-size: 1.8rem !important;
    line-height: 38px !important;
  }

  #searchBar {
    padding: 20px 0 !important;
  }

  #searchBar .search-query,
  #searchBar input[type="search"],
  #searchBar input[type="text"] {
    margin-right: 0 !important;
    font-size: 1rem !important;
  }

  #searchBar button {
    min-width: 54px !important;
    padding: 0 16px !important;
  }

  #searchBar button .icon-search {
    color: #fff !important;
  }

  .contentWrapper {
    padding: 0 18px 48px !important;
  }

  .contentWrapper > h2,
  #main-content > h2 {
    font-size: 1.65rem !important;
    line-height: 34px !important;
  }
}
