/* ============================================================
   Manifestly Knowledge Base — Help Scout Docs custom CSS
   Paste into: Docs → your site → Styles → Custom CSS
   Built on the Manifestly design system (Inter, warm slate
   neutrals, #49CCF9 marketing blue, 10px cards, sm-shadow).
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
  --m-blue: #49ccf9;
  --m-blue-dark: #19acdf;
  --m-green: #00bf9c;
  --m-ink: #2c2d36;
  --m-body: #444444;
  --m-muted: #888e96;
  --m-line: #ebeef3;
  --m-border: #c7ccd9;
  --m-bg: #f4f5f8;
  --m-shadow-sm: 0 4px 10px rgba(44, 45, 54, 0.1);
  --m-shadow-lg: 0 10px 30px rgba(44, 45, 54, 0.1);
}

/* ---------- Base ---------- */

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: var(--m-body);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--m-blue-dark);
}

a:hover,
a:focus {
  color: #0e86b0;
}

/* ---------- Top navigation ---------- */

.navbar .nav {
  position: relative !important;
}

#mainNav.navbar,
#mainNav .navbar-inner {
  background: #ffffff;
  border: 0;
  box-shadow: none;
  margin: 0;
}

#mainNav .navbar-inner {
  border-bottom: 1px solid var(--m-line);
  box-shadow: var(--m-shadow-sm);
  padding: 6px 0;
}

#mainNav .container-fluid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 32px;
}

#mainNav .brand {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex: none;
}

#mainNav .brand img {
  width: auto;
  height: 30px;
  max-height: 30px;
}

#mainNav .nav-collapse {
  margin: 0;
  flex: 1 1 auto;
}

#mainNav .btn-navbar {
  display: none;
}

#mainNav ul.nav {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  float: none;
}

#mainNav ul.nav > li {
  float: none;
  margin: 0;
}

#mainNav ul.nav > li > a {
  display: block;
  padding: 8px 12px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  color: var(--m-body);
  text-shadow: none;
  transition: background 0.15s ease-in-out, color 0.15s ease-in-out;
}

#mainNav ul.nav > li > a:hover,
#mainNav ul.nav > li > a:focus {
  background: var(--m-bg);
  color: var(--m-ink);
}

#mainNav ul.nav > li.active > a {
  background: var(--m-bg);
  color: var(--m-ink);
  font-weight: 600;
}

#mainNav ul.nav b.caret {
  display: none;
}

/* Contact reads as the one action in the bar */
#mainNav ul.nav > li#contact {
  margin-left: auto;
}

#mainNav ul.nav > li#contact > a {
  background: var(--m-blue);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}

#mainNav ul.nav > li#contact > a:hover {
  background: var(--m-blue-dark);
  color: #ffffff;
}

#mainNav ul.nav > li#contactMobile {
  display: none;
}

/* ---------- Search hero ---------- */

#docsSearch {
  background: var(--m-bg);
  border-bottom: 1px solid var(--m-line);
  padding: 44px 24px 48px !important;
  margin: 0 !important;
  text-align: center;
}

#docsSearch h1 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  font-size: 40px;
  line-height: 46px;
  font-weight: 800;
  letter-spacing: -1.6px;
  color: var(--m-ink);
}

/* Optional strapline under the headline — remove if you prefer none */
#docsSearch h1::after {
  content: "Search the knowledge base, or browse by topic below.";
  display: block;
  margin-top: 12px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--m-body);
}

#searchBar {
  max-width: 640px;
  margin: 24px auto 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: stretch;
  gap: 8px;
  position: relative;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

#searchBar input.search-query {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  float: none !important;
  position: static !important;
  border: 1px solid var(--m-border);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--m-body);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#searchBar input.search-query::placeholder {
  color: var(--m-muted);
}

#searchBar input.search-query:focus,
#searchBar input.search-query.error:focus {
  outline: 0;
  border-color: var(--m-blue);
  box-shadow: 0 0 0 3px rgba(73, 204, 249, 0.25);
}

/* Help Scout adds .error on empty submit — don't paint it red */
#searchBar input.search-query.error {
  border-color: var(--m-border);
}

#searchBar button[type="submit"] {
  flex: none;
  width: auto !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 26px !important;
  position: static !important;
  float: none !important;
  top: auto !important;
  right: auto !important;
  border: 0;
  border-radius: 5px;
  background: var(--m-blue);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background 0.15s ease-in-out;
}

#searchBar button[type="submit"]:hover {
  background: var(--m-blue-dark);
}

#searchBar #serp-dd {
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  z-index: 20;
  background: #ffffff;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  box-shadow: var(--m-shadow-lg);
  overflow: hidden;
  text-align: left;
}

/* ---------- Content area ---------- */

#contentArea.container-fluid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 40px 24px;
}

#noResults {
  padding: 32px 0;
  font-size: 17px;
  color: var(--m-muted);
}

/* ---------- Collections ---------- */

.collection-category {
  margin: 0 0 52px;
}

.collection-category > h2 {
  margin: 0 0 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--m-line);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.collection-category > h2 a,
.collection-category > h2 a:hover {
  color: var(--m-muted);
  text-decoration: none;
}

.collection-category > h2 a:hover {
  color: var(--m-body);
}

/* ---------- Category cards ---------- */

.category-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

.category-list.two-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-list::before,
.category-list::after {
  display: none !important;
}

a.category {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  width: auto !important;
  min-width: 0;
  min-height: 0 !important;
  height: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 22px 24px !important;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
  text-align: left;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out,
    transform 0.15s ease-in-out;
}

a.category:hover,
a.category:focus {
  border-color: rgba(73, 204, 249, 0.55);
  box-shadow: var(--m-shadow-sm);
  transform: translateY(-1px);
  text-decoration: none;
}

a.category h3 {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--m-ink);
}

a.category > p {
  margin: 0 !important;
  text-align: left;
  font-size: 14.5px;
  line-height: 21px;
  font-weight: 300;
  color: var(--m-body);
}

a.category > p:empty {
  display: none;
}

a.category p.article-count {
  margin: 8px 0 0 !important;
  text-align: left;
  font-size: 12.5px;
  line-height: 18px;
  font-weight: 600;
  color: var(--m-muted);
  text-transform: none;
}

a.category:hover p.article-count {
  color: var(--m-blue-dark);
}

/* ---------- Footer ---------- */

footer.center {
  margin-top: 40px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--m-line);
  text-align: center;
}

footer.center p {
  margin: 0;
  font-size: 13.5px;
  line-height: 20px;
  color: var(--m-muted);
}

footer.center a {
  color: var(--m-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer.center a:hover {
  color: var(--m-body);
}

/* ============================================================
   INTERIOR PAGES (category + article)
   Selectors taken from the live Docs markup.
   ============================================================ */

/* ---------- Two-column shell ---------- */

#contentArea .row-fluid {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: auto;
  margin: 0;
}

#contentArea .row-fluid::before,
#contentArea .row-fluid::after {
  display: none;
}

#main-content.span9 {
  order: 2;
  float: none;
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
}

#sidebar.span3 {
  order: 1;
  float: none;
  width: 262px;
  flex: 0 0 262px;
  margin: 0;
  position: sticky;
  top: 24px;
}

.contentWrapper {
  padding: 40px 48px 44px;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--m-shadow-sm);
}

#searchBar button[type="submit"] {
  text-shadow: none !important;
  color: white !important;
}
/* ---------- Sidebar search (compact variant) ---------- */

#searchBar.sm {
  display: block;
  max-width: none;
  margin: 0 0 32px;
  position: relative;
}

#searchBar.sm input.search-query {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 14px;
  font-size: 15px;
}

#searchBar.sm button[type="submit"] {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 0 5px 5px 0;
  box-shadow: none;
  font-size: 16px;
  color: white !important;
}

#searchBar.sm button[type="submit"]:hover {
  background: var(--m-blue-dark);
  color: white;
}

#searchBar.sm #serp-dd {
  top: 50px;
}

/* ---------- Sidebar category nav ---------- */

#sidebar h3 {
  margin: 10px 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--m-muted);
}

#sidebar ul.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#sidebar ul.nav-list > li {
  margin: 0 0 2px;
}

#sidebar ul.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 21px;
  font-weight: 500;
  color: var(--m-body);
  text-shadow: none;
  transition: background 0.15s ease-in-out, color 0.15s ease-in-out;
}

#sidebar ul.nav-list > li > a:hover {
  background: var(--m-bg);
  color: var(--m-ink);
  text-decoration: none;
}

/* App-side purple marks the active working context */
#sidebar ul.nav-list > li.active > a,
#sidebar ul.nav-list > li.active > a:hover {
  background: #938ce1;
  color: #ffffff;
  font-weight: 600;
}

#sidebar ul.nav-list > li > a i.icon-arrow {
  margin-left: auto;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

#sidebar ul.nav-list > li > a:hover i.icon-arrow,
#sidebar ul.nav-list > li.active > a i.icon-arrow {
  opacity: 0.85;
}

/* ---------- Category page ---------- */

#categoryHead {
  margin: 0 0 8px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--m-line);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

#categoryHead h1 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 32px;
  line-height: 38px;
  font-weight: 800;
  letter-spacing: -1.1px;
  color: var(--m-ink);
}

#categoryHead p.descrip {
  flex: 1 1 100%;
  order: 3;
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  color: var(--m-body);
}

#categoryHead p.descrip:empty {
  display: none;
}

#categoryHead .sort {
  flex: none;
}

#categoryHead .sort form {
  margin: 0;
}

#categoryHead select#sortBy {
  height: 36px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--m-border);
  border-radius: 5px;
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
  color: var(--m-body);
  box-shadow: none;
}

#categoryHead select#sortBy:focus {
  outline: 0;
  border-color: var(--m-blue);
  box-shadow: 0 0 0 3px rgba(73, 204, 249, 0.25);
}

ul.articleList {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.articleList > li {
  margin: 0;
  border-bottom: 1px solid var(--m-line);
}

ul.articleList > li:last-child {
  border-bottom: 0;
}

ul.articleList > li > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 8px;
  border-radius: 8px;
  font-size: 16.5px;
  line-height: 24px;
  font-weight: 500;
  color: var(--m-body);
  transition: background 0.15s ease-in-out, color 0.15s ease-in-out;
}

ul.articleList > li > a:hover {
  background: var(--m-bg);
  color: var(--m-blue-dark);
  text-decoration: none;
}

ul.articleList > li > a i {
  flex: none;
  font-size: 15px;
  color: var(--m-border);
}

ul.articleList > li > a:hover i {
  color: var(--m-blue);
}

/* ---------- Article page ---------- */

#fullArticle {
  position: relative;
  font-size: 17px;
  line-height: 28px;
  color: var(--m-body);
}

#fullArticle h1.title {
  margin: 0 44px 20px 0;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--m-line);
  font-size: 34px;
  line-height: 42px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--m-ink);
}

#fullArticle a.printArticle {
  position: absolute;
  top: 4px;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--m-muted);
  font-size: 15px;
}

#fullArticle a.printArticle:hover {
  background: var(--m-bg);
  color: var(--m-ink);
  text-decoration: none;
}

#fullArticle p {
  margin: 0 0 18px;
}

#fullArticle h2 {
  margin: 36px 0 12px;
  font-size: 23px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--m-ink);
}

#fullArticle h3 {
  margin: 28px 0 10px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--m-ink);
}

#fullArticle strong {
  font-weight: 600;
  color: var(--m-ink);
}

#fullArticle ul,
#fullArticle ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

#fullArticle li {
  margin: 0 0 8px;
}

#fullArticle hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--m-line);
}

#fullArticle img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--m-line);
  border-radius: 10px;
}

#fullArticle .video-responsive {
  margin: 24px 0 28px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--m-shadow-lg);
}

#fullArticle .video-responsive iframe {
  display: block;
  border: 0;
}

#fullArticle blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border: 0;
  border-left: 3px solid var(--m-blue);
  border-radius: 0 10px 10px 0;
  background: var(--m-bg);
  font-size: 16px;
  line-height: 25px;
  color: var(--m-body);
}

#fullArticle code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--m-bg);
  font-size: 14px;
  color: var(--m-ink);
}

#fullArticle pre {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  background: var(--m-bg);
  font-size: 14px;
  line-height: 22px;
}

#fullArticle table {
  width: 100%;
  margin: 0 0 22px;
  border-collapse: collapse;
}

#fullArticle th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--m-border);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  color: var(--m-ink);
}

#fullArticle td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--m-line);
  font-size: 15px;
}

/* ---------- Article footer ---------- */

.articleFoot {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--m-line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.articleFoot i.icon-contact {
  flex: none;
  font-size: 16px;
  color: var(--m-muted);
}

.articleFoot p.help {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--m-muted);
}

.articleFoot p.help a {
  font-weight: 600;
}

.articleFoot #sbContactMobile {
  display: none;
}

.articleFoot time.lu {
  margin-left: auto;
  font-size: 13px;
  line-height: 20px;
  color: var(--m-muted);
}

/* Interior pages carry their own footer directly under #contentArea */
#contentArea > footer {
  margin-top: 36px;
  padding: 24px 0 44px;
  border-top: 1px solid var(--m-line);
  text-align: right;
}

#contentArea > footer p {
  margin: 0;
  font-size: 13.5px;
  line-height: 20px;
  color: var(--m-muted);
}

#contentArea > footer a {
  color: var(--m-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#contentArea > footer a:hover {
  color: var(--m-body);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .category-list,
  .category-list.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #contentArea .row-fluid {
    flex-direction: column;
    gap: 24px;
  }

  #sidebar.span3 {
    order: 1;
    width: 100%;
    flex: 1 1 auto;
    position: static;
  }

  #main-content.span9 {
    order: 2;
    width: 100%;
  }
}

@media (max-width: 767px) {
  #mainNav .btn-navbar {
    display: block;
  }

  #mainNav .container-fluid {
    padding: 0 20px;
    display: block;
  }

  #mainNav ul.nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0;
  }

  #mainNav ul.nav > li#contact {
    margin-left: 0;
  }

  #mainNav ul.nav > li > a {
    border-radius: 8px;
  }

  #docsSearch {
    padding: 44px 20px 48px;
  }

  #docsSearch h1 {
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -1.1px;
  }

  #docsSearch h1::after {
    font-size: 16px;
    line-height: 24px;
  }

  #searchBar {
    flex-direction: column;
  }

  #searchBar button[type="submit"] {
    width: 100%;
    text-shadow: none !important;
    color: white !important;
  }

  #contentArea.container-fluid {
    padding: 36px 20px 16px;
  }

  .category-list,
  .category-list.two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .contentWrapper {
    padding: 26px 22px 30px;
  }

  #categoryHead h1 {
    font-size: 26px;
    line-height: 32px;
  }

  #fullArticle h1.title {
    font-size: 26px;
    line-height: 33px;
  }

  #contentArea > footer {
    text-align: center;
  }
}
