/* =============================================
   SCL Help Center — Custom HelpScout Stylesheet
   ============================================= */

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

/* ---- Global Typography ---- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Logo ---- */
.navbar .brand {
  padding-top: 16px;
  padding-bottom: 16px;
}

.navbar .brand img {
  max-height: 28px;
  width: auto;
}

/* ---- Search Banner ---- */
#docsSearch {
  background-color: #1a1f2e;
  border-bottom: 0;
  border-top: none;
  padding: 120px 24px 120px;
  margin-bottom: 3em;
}

@media only screen and (min-width: 1160px) and (max-width: 1650px) {
  #docsSearch {
    padding: 100px 24px 100px;
  }
}

@media only screen and (max-width: 768px) {
  #docsSearch {
    padding: 60px 16px 60px;
  }
}

/* Remove any gap/border between navbar and search banner */
.navbar {
  margin-bottom: 0;
}
.navbar .navbar-inner {
  font-family: 'Inter', sans-serif;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

#docsSearch h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2.5em;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}

@media only screen and (max-width: 768px) {
  #docsSearch h1 {
    font-size: 1.75em;
  }
}

/* ---- Search Bar (ButtonGroup style) ---- */
/* Reset HelpScout defaults, then apply ButtonGroup */
#searchBar {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus ring — matches SCL dark mode: border-ring + ring-ring/50 ring-[3px] */
#searchBar:focus-within {
  border-color: #5a7fd4;
  box-shadow: 0 0 0 3px rgba(90, 127, 212, 0.5);
}

#searchBar .search-query {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 8px 0 0 8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 0 14px;
  height: 40px;
  line-height: 40px;
  flex: 1;
  box-sizing: border-box;
  transition: background 0.2s ease;
}

#searchBar .search-query:focus {
  background: rgba(255, 255, 255, 0.07);
  outline: none;
  box-shadow: none;
}

#searchBar .search-query::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

#searchBar button {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 8px 8px 0;
  padding: 0 14px;
  height: 40px;
  line-height: 40px;
  box-sizing: border-box;
  cursor: pointer;
  position: static;
  font-size: 14px;
  text-shadow: none;
  transition: background 0.15s ease;
}

#searchBar button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Show icon, hide "Search" text */
#searchBar button i.icon-search {
  display: inline-block !important;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

#searchBar button:hover i.icon-search {
  color: rgba(255, 255, 255, 0.8);
}

#searchBar button span {
  display: none;
}

/* ---- Sidebar Search (light theme override) ---- */
#searchBar.sm {
  border-color: #d0d0d0;
  background: #ffffff;
  max-width: 100%;
  border-radius: 3px;
}

#searchBar.sm:focus-within {
  border-color: #5a7fd4;
  box-shadow: 0 0 0 3px rgba(90, 127, 212, 0.2);
}

#sidebar form #searchBar.sm .search-query {
  background: #ffffff;
  color: #374151;
  border: none;
  border-radius: 3px 0 0 3px;
}

#searchBar.sm .search-query::placeholder {
  color: #9ca3af;
}

#searchBar.sm .search-query:focus {
  background: #ffffff;
}

#sidebar form #searchBar.sm button {
  background: #ffffff;
  border-left: 1px solid #d0d0d0;
  border-radius: 0 3px 3px 0;
  position: static;
  top: auto;
  right: auto;
  padding: 0 14px;
  height: 40px;
  line-height: 40px;
}

#searchBar.sm button:hover {
  background: #f3f4f6;
}

#searchBar.sm button i.icon-search {
  color: #9ca3af;
}

#searchBar.sm button:hover i.icon-search {
  color: #374151;
}

#searchBar.sm #serp-dd {
  top: 46px;
  border-color: #d0d0d0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ---- Navigation ---- */
.navbar .nav li a {
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

/* Preserve active state — must match HelpScout's inline specificity */
.navbar .nav .active a,
.navbar .nav .active a:hover,
.navbar .nav .active a:focus {
  color: #ffffff !important;
}

.navbar .nav li a:hover,
.navbar .nav li a:focus {
  color: #ffffff !important;
}

/* Remove the default HelpScout active arrow/caret */
.navbar .nav .active .caret {
  display: none !important;
}

/* ---- Collection Cards (Homepage) ---- */
.twoCol .collection,
.threeCol .collection {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.twoCol .collection:hover,
.threeCol .collection:hover {
  border-color: #4d8bd6;
  box-shadow: 0 2px 12px rgba(77, 139, 214, 0.08);
}

/* ---- Category List ---- */
.category-list .category {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  transition: background-color 0.15s ease;
}

.category-list .category:hover {
  background-color: #f8f9fb;
}

/* ---- Page Headings ---- */
.contentWrapper h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1f2937;
}

/* ---- Article Content ---- */
#fullArticle {
  line-height: 1.7;
}

#fullArticle h1,
#fullArticle h2,
#fullArticle h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1f2937;
}

#fullArticle code {
  background: #f3f4f6;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
}

#fullArticle pre {
  background: #1a1f2e;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#fullArticle pre code {
  background: transparent;
  color: #e5e7eb;
}

#fullArticle blockquote {
  border-left: 3px solid #4d8bd6;
  background: #f0f6ff;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  color: #374151;
}

#fullArticle img {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* ---- Sort Select ---- */
#sortBy {
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #374151;
  height: 36px;
  line-height: 36px;
  padding: 0 28px 0 10px;
  width: auto;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#sortBy:focus {
  border-color: #5a7fd4;
  box-shadow: 0 0 0 3px rgba(90, 127, 212, 0.2);
  outline: none;
}

#sortBy:hover {
  border-color: #9ca3af;
}

/* ---- Popular Articles ---- */
.most-pop-articles .popArticles a {
  transition: color 0.15s ease;
}

.most-pop-articles .popArticles a:hover {
  color: #3b7cc9;
}

/* ---- Search Results Dropdown ---- */
#serp-dd {
  top: 46px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ---- Footer ---- */
.footer {
  font-family: 'Inter', sans-serif;
}

/* ---- Sidebar (Article Pages) ---- */
#sidebar h3 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(55, 65, 81, 0.7);
  margin-bottom: 8px;
}

#sidebar .nav-list li a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
  border-left: 2px solid transparent;
  border-radius: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#sidebar .nav-list li a:hover {
  background-color: rgba(0, 0, 0, 0.03);
  color: #4d8bd6;
}

#sidebar .nav-list li.active a,
#sidebar .nav-list li.active a:hover,
#sidebar .nav-list li.active a:focus {
  background-color: rgba(77, 139, 214, 0.06);
  color: #4d8bd6 !important;
  font-weight: 600;
  border-left-color: #4d8bd6;
  text-shadow: none;
}

#sidebar .nav-list li a .icon-arrow,
#sidebar .nav-list li.active a .icon-arrow,
#sidebar .nav-list li.active a:hover .icon-arrow,
#sidebar .nav-list li.active a:focus .icon-arrow {
  display: none !important;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs a {
  transition: color 0.15s ease;
}

/* ---- Article Footer ---- */
.articleFoot {
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
  margin-top: 32px;
}

/* ---- Contact Button (if enabled) ---- */
.contactBtn a {
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: background 0.2s ease;
}
