/* Custom HelpScout Docs Stylesheet */
/* Main color: #3247C6 (blue) */
/* For a clean and modern look: white backgrounds, blue accents, minimal shadows, sans-serif fonts */
/* Updates: Ensure logo scales with aspect ratio preserved; Refine mobile search button icon alignment further for centering; Reduce article header font size */

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

/* Global styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #333333;
    background-color: #f8f9fc;
    line-height: 1.6;
}

/* Header and Navigation */
.navbar .navbar-inner {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.navbar .brand img {
    max-height: 50px;
    width: auto; /* Preserve aspect ratio */
    height: auto; /* Ensure scaling maintains ratio */
}

/* Search Banner */
#docsSearch {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 2em 0;
    text-align: center;
}

#docsSearch h1 {
    font-size: 28px;
    font-weight: 300;
    color: #3247C6;
    margin-bottom: 1em;
}

#searchBar .search-query {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    box-shadow: none;
    color: #555555;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
}

#searchBar button {
    background: #3247C6;
    border-color: transparent;
    color: #ffffff;
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center; /* Center icon horizontally */
    text-align: center; /* Fallback for centering */
}

#searchBar button:hover {
    background: #2337a4;
    color: #ffffff;
}

#searchBar button i, #searchBar button [class*="icon"] { /* Target icon class, assuming it's <i> or similar; include common icon classes */
    margin: 0 !important; /* Force remove any margins */
    padding: 0;
    line-height: 1; /* Adjust vertical alignment */
    vertical-align: middle;
    text-align: center;
}

/* Categories */
.category-list .category {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.category-list .category:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-list h3 {
    color: #3247C6;
    font-size: 20px;
    font-weight: 500;
}

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

/* Collections / Most Popular Articles */
.twoCol .collection, .threeCol .collection {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.collection-category h2 {
    color: #3247C6;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
}

.collection a {
    color: #3247C6;
}

.collection a:hover {
    color: #2337a4;
}

/* Articles */
.articleHead h1 {
    color: #3247C6;
    font-size: 24px; /* Reduced font size for article headers */
    font-weight: 500;
}

.articleBody {
    font-size: 16px;
    color: #444444;
}

.articleBody a {
    color: #3247C6;
    text-decoration: underline;
}

.articleBody a:hover {
    color: #2337a4;
}

/* Hide Last Updated Date (optional, for cleaner look) */
.articleFoot time.lu {
    display: none;
}

/* Links and Buttons */
a {
    color: #3247C6;
    transition: color 0.2s ease;
}

a:hover {
    color: #2337a4;
    text-decoration: none;
}

.btn {
    background-color: #3247C6;
    color: #ffffff;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
}

.btn:hover {
    background-color: #2337a4;
}

/* Footer (if applicable) */
.articleFoot {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    font-size: 14px;
    color: #888888;
}

/* Additional cleanups */
#serp-dd .result a {
    color: #3247C6;
}

#serp-dd .result > li.active {
    background-color: #f0f4ff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #searchBar {
        justify-content: flex-start !important; /* Align items to the left */
        gap: 10px !important; /* Consistent spacing */
    }

    #searchBar .search-query {
        margin-right: 0 !important; /* Remove excess right margin */
    }

    #searchBar button {
        padding-left: 20px !important;
        flex-shrink: 0 !important; /* Prevent button from shrinking */
        display: flex !important; /* Ensure flexbox is active */
        align-items: center !important; /* Center vertically */
        justify-content: center !important; /* Center horizontally */
        padding: 15px 20px !important;
    }

    #searchBar button i, #searchBar button [class*="icon"] {
        font-size: 18px !important; /* Slightly larger icon for mobile */
        margin: 0 !important; /* Remove any margins */
        padding: 0 !important; /* Remove any padding */
        display: flex !important; /* Use flexbox for better centering */
        align-items: center !important; /* Center vertically */
        justify-content: center !important; /* Center horizontally */
        line-height: 1 !important; /* Reset line height */
        text-align: center !important; /* Center text alignment */
    }

    #searchBar button span {
        display: none !important;
    }

    .navbar .brand img {
        max-height: 40px;
    }

    .navbar .brand {
        padding-top: 10px;
    }

    .articleHead h1 {
        font-size: 22px;
    }
}