/* ============================================
   Marching Maestro — Help Scout Docs Custom CSS

   Upload at: Manage → Docs → [Site] → Custom Code
   Click "Choose File" and select this file, then Save.

   IMPORTANT: Also update these Help Scout site settings:
     Header Background Color: #1A1A1A
     Page Background Color:   #F7F7F7
     Nav Text Color:          #FFFFFF
     Nav Active Color:        #2BCBC1
     Link Color:              #2BCBC1
     Article Text Color:      #333333
   ============================================ */

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

/* ============================================
   GLOBAL
   ============================================ */
html {
    overflow-x: hidden !important;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: #F7F7F7 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden !important;
}

h1, h2, h3, h4, h5, h6,
p, a, li, span, input, button, label,
.navbar, .navbar a, .navbar .brand,
#docsSearch, #docsSearch h1,
#searchBar input,
.category-list, .category,
.most-pop-articles,
#fullArticle, #fullArticle p, #fullArticle li, #fullArticle div,
.contentWrapper, .contentNav,
footer, footer p {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* ============================================
   NAVBAR / HEADER
   ============================================ */
.navbar .navbar-inner {
    background: #1A1A1A !important;
    border-bottom: none !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
    padding: 8px 0 !important;
}

.navbar .brand {
    color: #FFFFFF !important;
}

.navbar .brand img {
    max-height: 60px !important;
    object-fit: contain;
}

.navbar .nav li a,
.navbar .icon-private-w {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: color 0.2s ease !important;
}

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

.navbar a:hover .icon-private-w,
.navbar a:focus .icon-private-w,
.navbar .active a .icon-private-w {
    color: #2BCBC1 !important;
}

/* Mobile nav toggle */
.navbar .btn-navbar {
    background: #2BCBC1 !important;
    border-color: #2BCBC1 !important;
}

/* ============================================
   SEARCH SECTION
   ============================================ */
#docsSearch {
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%) !important;
    padding: 50px 20px 60px !important;
    border-bottom: none !important;
    /* Break out of container to span full viewport */
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    box-sizing: border-box !important;
}

#docsSearch h1 {
    color: #FFFFFF !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 24px !important;
    letter-spacing: -0.3px !important;
}

#searchBar input.search-query {
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    padding: 14px 20px 14px 48px !important;
    border-radius: 12px !important;
    border: 2px solid transparent !important;
    background: #FFFFFF !important;
    color: #333333 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    max-width: 560px !important;
}

#searchBar input.search-query:focus {
    border-color: #2BCBC1 !important;
    box-shadow: 0 4px 20px rgba(43, 203, 193, 0.25) !important;
    outline: none !important;
}

#searchBar input.search-query::placeholder {
    color: #999 !important;
    font-weight: 400 !important;
}

/* Homepage full search bar button */
#searchBar button {
    background: #2BCBC1 !important;
    border: none !important;
    border-radius: 0 12px 12px 0 !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    transition: background 0.2s ease !important;
}

#searchBar button:hover {
    background: #22A89F !important;
}

/* Sidebar compact search bar (article pages) — hide teal button background */
#searchBar.sm button {
    background: transparent !important;
    color: #999 !important;
    border-radius: 0 !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    padding: 0 8px !important;
    transition: color 0.2s ease !important;
}

#searchBar.sm button:hover {
    background: transparent !important;
    color: #2BCBC1 !important;
}

/* Sidebar search input — softer shadow, no left padding for icon since button is right-aligned */
#searchBar.sm input.search-query {
    padding: 10px 36px 10px 14px !important;
    font-size: 14px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #E0E0E0 !important;
}

#searchBar.sm input.search-query:focus {
    border-color: #2BCBC1 !important;
    box-shadow: 0 2px 8px rgba(43, 203, 193, 0.15) !important;
}

/* Search dropdown results */
#serp-dd .result a:hover,
#serp-dd .result > li.active {
    color: #2BCBC1 !important;
    background: rgba(43, 203, 193, 0.06) !important;
}

/* ============================================
   MOST POPULAR ARTICLES
   ============================================ */
.most-pop-articles {
    padding: 30px 0 10px !important;
    text-align: left !important;
    max-width: 100% !important;
    margin: 0 !important; /* Remove Help Scout's default 0 55px margin */
}

.most-pop-articles h2 {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    color: #999999 !important;
    margin-bottom: 12px !important;
    text-align: left !important;
}

.most-pop-articles .popArticles {
    text-align: left !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.most-pop-articles .popArticles li {
    text-align: left !important;
    border-bottom: 1px solid #EEEEEE !important;
    list-style: none !important;
    margin-bottom: 0 !important; /* Tighten vertical spacing */
}

.most-pop-articles .popArticles a {
    color: #333333 !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    transition: color 0.2s ease !important;
    padding: 8px 0 !important; /* Tighter vertical padding */
    justify-content: flex-start !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.most-pop-articles .popArticles a:hover,
.most-pop-articles .popArticles a:hover span {
    color: #2BCBC1 !important;
}

.most-pop-articles .popArticles .icon-article-doc {
    color: #2BCBC1 !important;
}

/* Separator between popular articles and categories */
hr.sep {
    border-top: 1px solid #E8E8E8 !important;
    margin: 20px 0 30px !important;
}

/* ============================================
   COLLECTIONS (Homepage with multiple collections)
   ============================================ */

/* Collection layout wrapper — use flexbox (not grid) because Help Scout
   injects whitespace text nodes that grid treats as invisible items */
.threeCol.row-fluid,
.twoCol.row-fluid {
    text-align: left !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    padding: 30px 0 40px !important;
}

/* Collection card */
.collection {
    background: #FFFFFF !important;
    border: 1px solid #E8E8E8 !important;
    border-radius: 12px !important;
    padding: 28px 28px 24px !important;
    margin: 0 !important;
    display: block !important;
    text-align: left !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    float: none !important;
    width: auto !important;
    box-sizing: border-box !important;
}

.collection:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: #2BCBC1 !important;
}

/* Collection title */
.collection h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1A1A1A !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    text-align: left !important;
}

.collection h2 a {
    color: #1A1A1A !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.collection h2 a:hover {
    color: #2BCBC1 !important;
}

/* Article links inside collection cards */
.collection ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.collection li {
    border-bottom: 1px solid #F0F0F0 !important;
    margin: 0 !important;
}

.collection li:last-child {
    border-bottom: none !important;
}

.collection a {
    color: #333333 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 0 !important;
    transition: color 0.2s ease !important;
}

.collection a:hover {
    color: #2BCBC1 !important;
}

.collection .icon-article-doc {
    color: #CCCCCC !important;
    flex-shrink: 0 !important;
}

/* Size collection cards for 2-column layout */
.collection {
    flex: 1 1 calc(50% - 12px) !important;
    min-width: 280px !important;
    max-width: calc(50% - 12px) !important;
}

/* Responsive: stack collections on mobile */
@media (max-width: 767px) {
    .collection {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* ============================================
   CATEGORY LIST / CARDS
   ============================================ */
.category-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    padding-bottom: 40px !important;
}

.category-list .category {
    background: #FFFFFF !important;
    border: 1px solid #E8E8E8 !important;
    border-radius: 12px !important;
    padding: 28px 24px !important;
    margin: 0 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    text-decoration: none !important;
    display: block !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    text-align: left !important;
    box-sizing: border-box !important;
    /* Responsive card sizing: up to 3 per row on desktop, min 260px prevents squishing */
    flex: 1 1 calc(33.333% - 11px) !important;
    min-width: 260px !important;
    max-width: 340px !important;
}

.category-list .category:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: #2BCBC1 !important;
}

.category-list .category h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1A1A1A !important;
    margin-bottom: 6px !important;
}

.category-list .category p {
    font-size: 14px !important;
    color: #666666 !important;
}

.category-list .category .article-count {
    color: #2BCBC1 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-top: 8px !important;
}

.category-list .category:hover .article-count {
    color: #22A89F !important;
}

/* Mobile: stack category cards in single column */
@media (max-width: 767px) {
    .category-list .category {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* ============================================
   CONTENT AREA & ARTICLES
   ============================================ */
#contentArea {
    max-width: 1100px !important;
}

/* Article links */
.collection a,
.contentWrapper a {
    color: #2BCBC1 !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

.contentWrapper a:hover {
    color: #22A89F !important;
}

/* Full article content */
#fullArticle {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #333333 !important;
}

#fullArticle h1 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1A1A1A !important;
    margin-bottom: 8px !important;
}

#fullArticle h2 {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1A1A1A !important;
    margin-top: 32px !important;
    margin-bottom: 12px !important;
}

#fullArticle h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1A1A1A !important;
    margin-top: 24px !important;
    margin-bottom: 8px !important;
}

#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div,
#fullArticle dd,
#fullArticle table {
    color: #333333 !important;
}

#fullArticle strong a,
#fullArticle a strong {
    color: #2BCBC1 !important;
}

/* Blockquote / callout — teal accent (default = Tip) */
#fullArticle blockquote {
    border-left: 4px solid #2BCBC1 !important;
    background: rgba(43, 203, 193, 0.06) !important;
    padding: 16px 20px !important;
    border-radius: 0 8px 8px 0 !important;
    margin: 20px 0 !important;
    color: #333333 !important;
}

/* Warning / Note callout — gold accent */
#fullArticle blockquote.callout-note {
    border-left-color: #FF9900 !important;
    background: rgba(255, 153, 0, 0.06) !important;
}

/* Important callout — red accent */
#fullArticle blockquote.callout-important {
    border-left-color: #FF0000 !important;
    background: rgba(255, 0, 0, 0.04) !important;
}

/* Bold label inside callouts */
#fullArticle blockquote strong:first-child {
    color: #1A1A1A !important;
}

/* Code blocks */
#fullArticle code {
    background: #F0F0F0 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    color: #1A1A1A !important;
}

#fullArticle pre {
    background: #1A1A1A !important;
    color: #E0E0E0 !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    overflow-x: auto !important;
}

#fullArticle pre code {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
}

/* Images in articles */
#fullArticle img {
    border-radius: 8px !important;
    max-width: 100% !important;
    height: auto !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    margin: 16px 0 !important;
}

/* Tables */
#fullArticle table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin: 16px 0 !important;
}

#fullArticle th {
    background: #F7F7F7 !important;
    font-weight: 600 !important;
    text-align: left !important;
    padding: 10px 14px !important;
    border-bottom: 2px solid #2BCBC1 !important;
}

#fullArticle td {
    padding: 10px 14px !important;
    border-bottom: 1px solid #E8E8E8 !important;
}

/* ============================================
   SIDEBAR NAVIGATION (Article pages)
   ============================================ */

/* --- Enhanced sidebar nav (injected by docs-site-nav.js) --- */
.maestro-sidebar-nav {
    margin-top: 20px !important;
    padding-top: 0 !important;
}

/* Category label — small uppercase link back to category */
.maestro-sidebar-nav .sidebar-cat-label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #999999 !important;
    margin-bottom: 12px !important;
    padding: 0 12px !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.maestro-sidebar-nav .sidebar-cat-label:hover {
    color: #2BCBC1 !important;
}

/* Article list */
.maestro-sidebar-nav .sidebar-article-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.maestro-sidebar-nav .sidebar-article-list li {
    margin-bottom: 2px !important;
}

/* Article links */
.maestro-sidebar-nav .sidebar-article-list a,
.contentNav a {
    color: #555555 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    display: block !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

.maestro-sidebar-nav .sidebar-article-list a:hover,
.contentNav a:hover {
    background: rgba(43, 203, 193, 0.08) !important;
    color: #1A1A1A !important;
}

/* Active article highlight */
.maestro-sidebar-nav .sidebar-article-list a.active,
.contentNav a.active,
.contentNav .active a {
    background: rgba(43, 203, 193, 0.12) !important;
    color: #2BCBC1 !important;
    font-weight: 600 !important;
}

/* Hide the default "Categories" heading and nav list immediately (prevents
   flash of unstyled sidebar before the JS enhancement kicks in).
   The JS-injected .maestro-sidebar-nav will be visible by default. */
#sidebar > h3,
#sidebar > ul.nav-list,
#sidebar > .nav-list {
    display: none !important;
}

/* ============================================
   FOOTER
   ============================================ */
footer.center {
    background: #1A1A1A !important;
    padding: 28px 20px !important;
    margin-top: 40px !important;
    border-top: none !important;
    /* Break out of the container-fluid max-width to span full viewport */
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

footer.center p {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 13px !important;
}

footer.center a {
    color: #2BCBC1 !important;
}

footer.center a:hover {
    color: #FFFFFF !important;
}

/* ============================================
   BEACON (Help Scout chat widget)
   ============================================ */
/* Beacon color is set in Beacon settings, not CSS.
   Set it to #2BCBC1 at: Manage → Beacon → [Your Beacon] → Customize → Color */

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */
@media (max-width: 767px) {
    #docsSearch {
        padding: 36px 16px 44px !important;
    }

    #docsSearch h1 {
        font-size: 22px !important;
    }

    #searchBar input.search-query {
        font-size: 15px !important;
        padding: 12px 16px 12px 44px !important;
    }

    .category-list .category {
        padding: 20px !important;
        margin-bottom: 12px !important;
    }

    #fullArticle h1 {
        font-size: 24px !important;
    }
}
