/* ============================================================
   Happy Numbers — Help Scout Docs Custom Stylesheet
   Focus: Header & Navigation cleanup + light overall polish
   Brand blue: #42ABE9 — rgb(66, 171, 233)
   Upload at: Manage → Docs → [Site] → Custom Code
   ============================================================ */

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

/* ---------- Base / Global ---------- */
body {
    font-family: 'Nunito', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #fafbfc;
    color: #3a3a4a;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */

/* Navbar wrapper — clean bar with logo only */
.navbar .navbar-inner {
    background: #ffffff;
    border-bottom: 2px solid #f0f0f3;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    height: 64px;
    padding: 0;
}

.navbar .navbar-inner .container-fluid {
    padding: 0 20px;
    height: 64px;
}

/* Logo — left-aligned */
.navbar .brand {
    float: left;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    height: 64px;
}

a.brand > img {
    max-width: 100%;
    height: 48px;
    width: auto;
    vertical-align: middle;
    border: 0;
}

/* Hide all nav links */
.navbar .navbar-inner .nav-collapse,
.navbar .navbar-inner .collapse,
.navbar .nav,
.navbar .btn-navbar {
    display: none !important;
}

/* Nav links and mobile hamburger are hidden — no hover/active styles needed */

/* ============================================================
   SEARCH AREA (light cleanup)
   ============================================================ */

#docsSearch {
    background: #ffffff;
    border-top: none;
    border-bottom: 1px solid #eeeef2;
    padding: 2em 0 2.5em;
    margin-bottom: 2em;
}

#docsSearch h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #3a3a4a;
    text-align: center;
    margin-top: 0.3em;
}

/* Search input */
#searchBar .search-query {
    background: #f7f8fa;
    border: 2px solid #e4e5ea;
    border-radius: 10px 0 0 10px;
    box-shadow: none;
    color: #3a3a4a;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 15px;
    padding: 12px 16px;
    transition: border-color 0.2s ease;
}

#searchBar .search-query:focus {
    border-color: #42ABE9;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 171, 233, 0.15);
}

/* Search button */
#searchBar button {
    background: #42ABE9;
    border: 2px solid #42ABE9;
    border-radius: 0 10px 10px 0;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 0 1.8em;
    height: 50px;
    position: absolute;
    transition: background 0.2s ease;
    cursor: pointer;
    text-shadow: none;
}

#searchBar button:hover {
    background: #3399d4;
    border-color: #3399d4;
}

/* ============================================================
   CATEGORY CARDS (subtle improvements)
   ============================================================ */

.category-list .category {
    background: #ffffff;
    border: 1px solid #eeeef2;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    padding: 20px;
}

.category-list .category:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
    text-decoration: none;
}

.category-list h3 {
    color: #3a3a4a;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3em;
}

.category-list .category p {
    color: #6b6b7b;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 14px;
}

.category-list .category .article-count {
    color: #42ABE9;
    font-weight: 600;
    font-size: 13px;
}

/* ============================================================
   COLLECTIONS (Most Popular Articles view)
   ============================================================ */

.twoCol .collection,
.threeCol .collection {
    background: #ffffff;
    border: 1px solid #eeeef2;
    border-radius: 10px;
}

/* ============================================================
   ARTICLE PAGE — SIDEBAR
   ============================================================ */

#sidebar h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

#sidebar .nav-list a {
    color: #555566;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 5px 0;
    transition: color 0.15s ease;
}

#sidebar .nav-list a:hover {
    color: #42ABE9;
}

#sidebar .nav-list .active a,
#sidebar .nav-list .active a:hover {
    color: #42ABE9;
    font-weight: 700;
    background: none;
    text-shadow: none;
}

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

#fullArticle .title,
.contentWrapper h1 {
    font-family: 'Nunito', sans-serif;
    color: #2c2c3a;
    font-weight: 700;
    font-size: 28px;
}

#fullArticle h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #3a3a4a;
}

#fullArticle h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #3a3a4a;
}

#fullArticle,
#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div,
#fullArticle blockquote,
#fullArticle table {
    color: #4a4a5a;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
}

/* Links within articles */
.contentWrapper a,
#fullArticle a {
    color: #42ABE9;
    text-decoration: none;
    border-bottom: 1px solid rgba(66, 171, 233, 0.3);
    transition: border-color 0.15s ease;
}

.contentWrapper a:hover,
#fullArticle a:hover {
    border-bottom-color: #42ABE9;
}

/* Article images — nice rounded corners */
#fullArticle img {
    display: block;
    margin: 1.2em 0 1.8em;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    max-width: 100%;
}

/* ============================================================
   BUTTONS (contact modal, general)
   ============================================================ */

.btn {
    background: #42ABE9;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    transition: background 0.2s ease;
    text-shadow: none;
}

.btn:hover,
.btn:focus,
.btn:active {
    background: #3399d4;
    color: #ffffff;
    text-shadow: none;
}

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

footer p,
footer p a {
    font-family: 'Nunito', sans-serif;
    color: #999;
    font-weight: 400;
    font-size: 13px;
}

/* Hide "Last Updated" date (optional — remove this block to show it) */
/*
.articleFoot time.lu {
    display: none;
}
*/

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

@media (max-width: 768px) {
    .navbar .navbar-inner {
        height: auto;
        min-height: 56px;
    }

    .navbar .navbar-inner .container-fluid {
        height: auto;
    }

    a.brand > img {
        height: 40px;
    }

    .navbar .nav li a {
        font-size: 13px;
        padding: 8px 10px;
    }

    #docsSearch h1 {
        font-size: 22px;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    #docsSearch h1 {
        font-size: 19px;
    }

    #fullArticle .title,
    .contentWrapper h1 {
        font-size: 22px;
    }

    #searchBar button {
        font-size: 0;
        padding: 0 14px;
    }

    #searchBar button .icon-search {
        display: block;
        font-size: 16px;
    }
}
