/* ============================================================
   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');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* -----------------------------------------------------------
   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);
}

/* -----------------------------------------------------------
   CATEGORY CARD ICONS
   Uses Material Symbols (Google Fonts icon font) so icons
   render as single-color text and can be tinted with CSS color.
   Matched by href slug on each card's anchor using :has().
   (Icon font is imported at the top of the file — see section 1.)
----------------------------------------------------------- */

/* Base ::before — fallback icon (article/document) */
.category-list .category h3::before {
  content: 'article';
  font-family: 'Material Symbols Outlined';
  font-size: 28px;
  font-weight: 300;
  font-style: normal;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
  color: #228BE6;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
}

/* Learn More — auto_stories (open book) */
.category-list .category:has(a[href*="learn-more"]) h3::before { content: 'auto_stories'; }

/* Create a New Studio Account — add_business */
.category-list .category:has(a[href*="create-a-new-studio"]) h3::before,
.category-list .category:has(a[href*="new-studio-account"]) h3::before { content: 'add_business'; }

/* Set Up Your Studio — tune */
.category-list .category:has(a[href*="set-up-your-studio"]) h3::before,
.category-list .category:has(a[href*="setup"]) h3::before { content: 'tune'; }

/* Owners & Managers — manage_accounts */
.category-list .category:has(a[href*="owner"]) h3::before,
.category-list .category:has(a[href*="manager"]) h3::before { content: 'manage_accounts'; }

/* Instructors & Team Members — group */
.category-list .category:has(a[href*="instructor"]) h3::before,
.category-list .category:has(a[href*="team-member"]) h3::before { content: 'group'; }

/* Accounts — key */
.category-list .category:has(a[href*="account"]) h3::before { content: 'key'; }

/* Studio Resources — folder_open */
.category-list .category:has(a[href*="resource"]) h3::before { content: 'folder_open'; }

/* 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;
}

/* -----------------------------------------------------------
   10. CALLOUTS (Note / Tip boxes inside article body)
       Reusable classes for the info + tip boxes used in
       articles. Replaces per-article inline styles.

       USAGE (in the HelpScout article HTML editor):
       <div class="callout callout-note">
         <strong>Note:</strong> Only Active classes can be subbed.
       </div>
       <div class="callout callout-tip">
         <strong>Tip:</strong> Classes without class types show a "!"
       </div>
----------------------------------------------------------- */
.callout {
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* Info / Note — Curious Blue (brand primary) */
.callout-note {
  background: #eaf4fc;
  border-left: 4px solid #228BE6;
  color: #1f2937;
}

/* Tip — Orange (warm accent) */
.callout-tip {
  background: #fdf2e3;
  border-left: 4px solid #E67D22;
  color: #1f2937;
}

/* Keep links + emphasis on-brand inside callouts */
.callout a {
  color: #228BE6;
}

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

.callout strong {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  color: #111827;
}
