/* ==========================================================================
   GroupLeads — Help Scout Docs Stylesheet (v3)
   - Solid brand-color header
   - Horizontal category cards (icon left, content right)
   - Per-category icon template (swap in your real category IDs)
   Upload via: Manage > Docs > [Your Docs site] > Custom Code
   ========================================================================== */

/* -- Palette -- */
:root {
  --gl-bg: #ffffff;
  --gl-header-bg: #3c61ad;         /* solid brand blue header, like the reference */
  --gl-header-text: #ffffff;
  --gl-header-search-bg: rgba(255, 255, 255, 0.18);
  --gl-header-search-placeholder: rgba(255, 255, 255, 0.75);

  --gl-nav-active: #3c61ad;
  --gl-link: #4381b5;
  --gl-article-text: #585858;

  --gl-ink: #1c2b45;
  --gl-muted: #8891a3;
  --gl-border: #e6ebf5;
  --gl-surface: #ffffff;
  --gl-surface-alt: #f8faff;
  --gl-tint: #eef3fb;

  --gl-shadow: 0 2px 12px rgba(28, 43, 69, 0.06);
  --gl-shadow-hover: 0 10px 28px rgba(60, 97, 173, 0.14);

  --gl-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

body {
  background: var(--gl-bg);
  font-family: var(--gl-font);
  color: var(--gl-article-text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gl-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--gl-nav-active);
  text-decoration: underline;
}

/* ==========================================================================
   HEADER / NAV — solid brand color
   ========================================================================== */

.navbar .navbar-inner {
  background: var(--gl-header-bg);
  border-bottom: none;
  height: 68px;
}

.navbar .navbar-inner .container-fluid {
  height: 68px;
  padding: 0 24px;
}

.navbar .brand,
a.brand {
  display: flex;
  align-items: center;
  font-family: var(--gl-font);
  font-weight: 600;
  font-size: 18px;
  color: var(--gl-header-text);
}

a.brand > img {
  height: 32px;
  width: auto;
  margin-right: 10px;
}

.navbar .nav li {
  font-family: var(--gl-font);
  font-size: 14px;
  font-weight: 500;
}

.navbar .nav li a {
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 16px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.navbar .nav li a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.navbar .nav li.active a,
.navbar .nav li a.active {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   SEARCH / HOME BANNER — sits inside the colored header block
   ========================================================================== */

#docsSearch {
  background: var(--gl-header-bg);
  border-bottom: none;
  padding: 3em 0 4em;
}

#docsSearch h1 {
  font-family: var(--gl-font);
  font-weight: 700;
  font-size: 32px;
  color: #ffffff;
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 0.8em;
}

#searchBar {
  max-width: 680px;
  margin: 0 auto;
}

#searchBar .search-query,
input.search-query {
  background: var(--gl-header-search-bg);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--gl-font);
  font-size: 15px;
  height: 54px;
  padding: 0 20px;
}

#searchBar .search-query::placeholder,
input.search-query::placeholder {
  color: var(--gl-header-search-placeholder);
}

#searchBar .search-query:focus,
input.search-query:focus {
  border-color: #ffffff;
  outline: none;
  background: rgba(255, 255, 255, 0.24);
}

/* If your theme keeps a separate search button, blend it into the same pill */
#searchBar button {
  background: transparent;
  border: none;
  color: #ffffff;
}

/* ==========================================================================
   CATEGORY CARDS — horizontal layout (icon left, content right)
   ========================================================================== */

.category-list {
  text-align: left;
  padding: 3em 0;
  max-width: 900px;
  margin: 0 auto;
}

.collection-category h2 {
  font-family: var(--gl-font);
  font-weight: 600;
  font-size: 20px;
  color: var(--gl-ink);
  text-align: left;
  margin: 0 0 20px;
}

.category-list .category {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 4px;
  align-items: start;
  text-align: left;
  background-color: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: 14px;
  box-shadow: var(--gl-shadow);
  box-sizing: border-box;
  min-height: 0;
  width: 100%;
  padding: 22px 24px;
  margin-bottom: 16px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;

  /* reset the old top-icon background approach in favor of an icon box */
  background-position: 24px 24px !important;
  background-repeat: no-repeat !important;
  background-size: 26px auto !important;
}

.category-list .category:hover {
  border-color: var(--gl-nav-active);
  box-shadow: var(--gl-shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Icon container box — spans both text rows on the left */
.category-list .category::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: var(--gl-tint);
  border: 1px solid var(--gl-border);
}

/* Title sits top-left of the text column */
.category-list h3 {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  font-family: var(--gl-font);
  font-weight: 600;
  font-size: 16px;
  color: var(--gl-ink);
  line-height: 1.3em;
  margin: 0;
}

/* Description sits on its own row, under the title */
.category-list .category p {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--gl-font);
  font-weight: 400;
  font-size: 14px;
  color: var(--gl-muted);
  line-height: 1.5;
  margin: 0;
}

/* Article count shares the title's row, aligned to the right */
.category-list .category .article-count {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: baseline;
  color: var(--gl-muted);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}

/* ==========================================================================
   PER-CATEGORY ICONS
   Replace #category-101 etc with your real category IDs (find in the URL
   when browsing that category, e.g. .../category/150-custom-forms → 150).
   Icons below use inline SVG (no external hosting needed) styled to match
   a clean outline look in your brand blue.
   ========================================================================== */

/* Getting Started — bookmark/book icon */
#category-101 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233c61ad' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 4h9a2 2 0 0 1 2 2v14l-6.5-3.5L4 20V6a2 2 0 0 1 2-2z'/></svg>");
}

/* Account Settings — gear icon */
#category-102 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233c61ad' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><path d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.6 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.6a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9c.14.36.5.6.89.6H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-.51 1z'/></svg>");
}

/* Billing / Plans — credit card icon */
#category-103 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233c61ad' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='5' width='20' height='14' rx='2'/><line x1='2' y1='10' x2='22' y2='10'/></svg>");
}

/* Integrations — plug icon */
#category-104 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233c61ad' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 2v6M15 2v6M6 8h12l-1 5a5 5 0 0 1-10 0L6 8z'/><path d='M12 19v3'/></svg>");
}

/* Team / Collaboration — users icon */
#category-105 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233c61ad' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/><circle cx='9' cy='7' r='4'/><path d='M23 21v-2a4 4 0 0 0-3-3.87'/><path d='M16 3.13a4 4 0 0 1 0 7.75'/></svg>");
}

/* FAQ / Troubleshooting — message/question icon */
#category-106 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233c61ad' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>");
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

#sidebar {
  padding-right: 8px;
}

#sidebar h3 {
  font-family: var(--gl-font);
  font-weight: 700;
  font-size: 12px;
  color: var(--gl-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 24px 0 10px;
  padding-left: 12px;
}

#sidebar h3:first-child {
  margin-top: 0;
}

#sidebar .nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#sidebar .nav-list a {
  font-family: var(--gl-font);
  font-weight: 400;
  font-size: 14px;
  color: var(--gl-article-text);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  line-height: 1.4;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#sidebar .nav-list a:hover {
  background: var(--gl-tint);
  color: var(--gl-nav-active);
  text-decoration: none;
}

#sidebar .nav-list .active a,
#sidebar .nav-list .active a:hover,
#sidebar .nav-list .active a:focus {
  background: var(--gl-tint);
  border-left-color: var(--gl-nav-active);
  color: var(--gl-nav-active);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 8px 8px 0;
}

/* ==========================================================================
   ARTICLE CONTENT
   ========================================================================== */

#main-content {
  padding: 36px 0 0 32px;
}

#fullArticle .title,
.contentWrapper h1 {
  font-family: var(--gl-font);
  font-weight: 700;
  font-size: 28px;
  color: var(--gl-ink);
  letter-spacing: -0.01em;
  margin: 0 30px 0.5em 0;
}

#fullArticle,
#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div,
#fullArticle blockquote,
#fullArticle dd,
#fullArticle table {
  font-family: var(--gl-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gl-article-text);
  letter-spacing: 0.01em;
}

#fullArticle h2 {
  font-family: var(--gl-font);
  font-weight: 600;
  font-size: 23px;
  color: var(--gl-ink);
  margin-top: 1.4em;
}

#fullArticle h3 {
  font-family: var(--gl-font);
  font-weight: 600;
  font-size: 19px;
  color: var(--gl-ink);
  margin-top: 1.2em;
}

#fullArticle h4 {
  font-family: var(--gl-font);
  font-weight: 500;
  font-style: normal;
  font-size: 16px;
  color: var(--gl-article-text);
}

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

#fullArticle blockquote {
  border-left: 3px solid var(--gl-nav-active);
  background: var(--gl-tint);
  border-radius: 0 10px 10px 0;
  padding: 14px 20px;
  margin: 1.2em 0;
  color: var(--gl-article-text);
}

#fullArticle code {
  background: var(--gl-surface-alt);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 14px;
}

#fullArticle img {
  border-radius: 10px;
  box-shadow: var(--gl-shadow);
  margin: 1.2em 0 2em;
}

.articleFoot p,
.articleFoot time {
  font-family: var(--gl-font);
  font-weight: 400;
  font-style: normal;
  color: var(--gl-muted);
  font-size: 13px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  font-family: var(--gl-font);
  font-weight: 500;
  font-size: 14px;
  color: #ffffff;
  background: var(--gl-nav-active);
  border: 1px solid var(--gl-nav-active);
  border-radius: 8px;
  padding: 0.6em 1.2em;
  transition: background 0.15s ease;
}

.btn:hover,
.btn:focus,
.btn:active {
  background: #2f5090;
  border-color: #2f5090;
  color: #ffffff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer p a {
  font-family: var(--gl-font);
  font-weight: 400;
  color: var(--gl-muted);
}

footer p a:hover {
  color: var(--gl-link);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media screen and (max-width: 760px) {
  .category-list .category {
    padding: 18px;
  }

  #docsSearch h1 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  #fullArticle .title,
  .contentWrapper h1 {
    font-size: 22px;
  }

  #fullArticle h2 {
    font-size: 19px;
  }

  .category-list .category {
    flex-direction: column;
  }
}
