/* ============================================================
   Instrukt – HelpScout Docs Custom Stylesheet
   Oscar App Labs LLC · instruktapp.com
   ============================================================
   HOW TO INSTALL:
   Go to Manage > Docs > [Your Docs site] > Custom Code
   Upload this file using the "Upload CSS" option.
   Do NOT paste raw CSS into the head code field — that
   field requires a full <style> tag wrapping your CSS.
   ============================================================ */

/* -----------------------------------------------------------
   1. FONTS — Montserrat (headings) + Open Sans (body)
----------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600&family=Open+Sans:wght@400;600&display=swap');

/* -----------------------------------------------------------
   2. GLOBAL TYPOGRAPHY
----------------------------------------------------------- */
body {
  font-family: 'Open Sans', sans-serif;
  color: #1f2937;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* -----------------------------------------------------------
   3. SEARCH BAR
      #docsSearch   = full search banner section
      #searchBar    = the bar + button wrapper
      .search-query = the text input
----------------------------------------------------------- */
#docsSearch h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #111827;
}

#searchBar .search-query {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  border-color: #d1d5db;
  border-radius: 8px 0 0 8px;
  box-shadow: none;
  color: #374151;
}

#searchBar button {
  background: #228BE6;
  border-color: #228BE6;
  border-radius: 0 8px 8px 0;
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
}

#searchBar button:hover {
  background: #1a7dd4;
  border-color: #1a7dd4;
  color: #ffffff;
}

/* -----------------------------------------------------------
   4. CATEGORY CARDS (Homepage — Categories layout)
      .category-list  = the grid wrapper
      .category       = each subject area card
      .category h3    = the card title
      .category p     = the card description
----------------------------------------------------------- */

/* Fixed 300px card grid — equal width across all collections */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list .category,
.category-list li {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 22px 18px;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  width: 300px !important;   /* fixed card width — !important overrides per-collection flex sizing */
  min-width: 300px !important;
  max-width: 300px !important;
  flex-shrink: 0;
  flex-grow: 0;
  float: none;
}

/* On smaller screens, let cards fill full width */
@media (max-width: 480px) {
  .category-list .category,
  .category-list li {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

.category-list .category:hover {
  border-color: #228BE6;
  box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.10);
}

/* Card title — left justified */
.category-list .category h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  color: #111827;
  margin-bottom: 6px;
}

/* Card body text */
.category-list .category p {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #6b7280;
  text-align: left;
  line-height: 1.55;
}

/* Article count / links inside card */
.category-list .category a {
  color: #228BE6;
}

.category-list .category a:hover {
  color: #1a7dd4;
}

/* -----------------------------------------------------------
   5. COLLECTIONS (Homepage — Most Popular Articles layout)
      .twoCol .collection / .threeCol .collection = each box
----------------------------------------------------------- */
.twoCol .collection,
.threeCol .collection {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-color: #e5e7eb;
  border-radius: 14px;
  padding: 20px 22px 18px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.twoCol .collection:hover,
.threeCol .collection:hover {
  border-color: #228BE6;
  box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.10);
}

.twoCol .collection h3,
.threeCol .collection h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  color: #111827;
}

/* -----------------------------------------------------------
   6. ARTICLE PAGE
      .articleHead h1 = article title
      .articleBody    = article content area
      .articleFoot    = footer (last updated, feedback)
----------------------------------------------------------- */
.articleHead h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 26px;
  color: #111827;
  text-align: left;
}

.articleBody {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
}

.articleBody h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: #111827;
  margin-top: 32px;
}

.articleBody h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-top: 24px;
}

.articleBody a {
  color: #228BE6;
}

.articleBody a:hover {
  color: #1a7dd4;
}

.articleBody code {
  font-size: 13px;
  background: #f3f4f6;
  border-radius: 4px;
  padding: 2px 6px;
  color: #111827;
}

.articleBody pre {
  background: #f3f4f6;
  border-radius: 10px;
  padding: 16px 18px;
}

/* Uncomment the block below to hide the "Last updated" date */
/* .articleFoot time.lu { display: none; } */

/* -----------------------------------------------------------
   7. NAV & SIDEBAR
      #siteNav  = top navigation
      .sideNav  = in-article sidebar / table of contents
----------------------------------------------------------- */
#siteNav a {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #374151;
}

#siteNav a:hover {
  color: #228BE6;
}

.sideNav a {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #6b7280;
}

.sideNav a:hover,
.sideNav a.active {
  color: #228BE6;
}

/* -----------------------------------------------------------
   8. BREADCRUMBS
----------------------------------------------------------- */
.breadcrumb {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #9ca3af;
}

.breadcrumb a {
  color: #228BE6;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* -----------------------------------------------------------
   9. BUTTONS
----------------------------------------------------------- */
.btn-primary,
.btn {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  background: #228BE6;
  border-color: #228BE6;
  border-radius: 8px;
  color: #ffffff;
}

.btn-primary:hover,
.btn:hover {
  background: #1a7dd4;
  border-color: #1a7dd4;
  color: #ffffff;
}
