/* ============================================================
   TNC FlipBook Docs — Custom Stylesheet
   For docs.tncflipbook.com (Help Scout Docs)

   Paste into: Help Scout > Docs > Settings > Custom Code > Custom CSS

   Aligned to tncflipbook.com design system:
   - Primary blue: #0055d4 (hover #0041a8)
   - Heading text: #1d4551
   - Body text:    #5a626e
   - Borders:      #d2dae6 / #e5e7eb
   - Backgrounds:  #ffffff (cards) / #f3f4f7 (page) / #edf4ff (blue tint)
   - Typography:   Inter (headings) + DM Sans (body)
   - Card radius:  8px
   - Pill radius:  30px

   Notes:
   - Help Scout's default CSS uses high specificity. Where needed, this
     file uses !important strategically (limited to color/background/font
     overrides that the legacy stylesheet locks in).
   - Webfonts loaded from Google Fonts via @import. If your Help Scout
     plan blocks external fonts, replace the @import with the Google
     <link> tag in Help Scout > Custom Head HTML instead.
   - This stylesheet does NOT modify article content — only chrome and
     layout. Article body markup (Help Scout WYSIWYG) inherits the new
     typography from #fullArticle scoped rules.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── Reset / base ─────────────────────────────────────────── */

html,
body {
    background: #f3f4f7 !important;
    color: #5a626e !important;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Preserve Help Scout's icon font (helpscout-docs3) — without this rule,
   our body font-family override cascades down and the icon glyphs become
   blank squares because they live in a custom font. */
[class^="icon-"],
[class*=" icon-"],
i[class^="icon-"]:before,
i[class*=" icon-"]:before,
[class^="icon-"]:before,
[class*=" icon-"]:before {
    font-family: 'helpscout-docs3' !important;
    font-style: normal !important;
    font-weight: normal !important;
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #0055d4 !important;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover,
a:focus {
    color: #0041a8 !important;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    color: #1d4551 !important;
    font-weight: 600;
    line-height: 1.3;
}

p,
li,
td,
blockquote {
    color: #5a626e;
    line-height: 1.65;
}

/* ── Top navbar ───────────────────────────────────────────── */

#mainNav.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 45, 53, 0.04);
    margin: 0 !important;
    padding: 0;
    min-height: 76px;
    position: relative;
    z-index: 10;
}

#mainNav .navbar-inner {
    background: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
    min-height: 76px;
    padding: 0;
    margin: 0;
    filter: none;
    -webkit-filter: none;
    display: flex;
    align-items: center;
}

#mainNav .container-fluid {
    max-width: 1180px;
    margin: 0 auto !important;
    padding: 0 24px !important;
    display: flex !important;
    align-items: center;
    gap: 24px;
    min-height: 76px;
    height: 76px;
    width: 100%;
}

#mainNav .brand {
    display: flex !important;
    align-items: center;
    padding: 0 !important;
    margin: 0 !important;
    height: 76px;
    float: none !important;
    text-shadow: none !important;
    color: #1d4551 !important;
    flex-shrink: 0;
}

#mainNav .brand img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* Nav collapse wrapper expands on desktop, becomes collapsible on mobile */
#mainNav .nav-collapse {
    display: flex !important;
    flex: 1;
    align-items: center;
    height: 76px !important;
    overflow: visible !important;
    max-height: none !important;
}

#mainNav .nav-collapse nav {
    flex: 1;
    display: flex;
    align-items: center;
    height: 76px;
}

#mainNav .nav {
    display: flex !important;
    align-items: center;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 4px;
    width: auto !important;
    height: 76px;
    float: none !important;
}

#mainNav .nav>li {
    height: 76px;
    display: flex !important;
    align-items: center;
}

#mainNav .nav>li {
    display: inline-flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    background: transparent !important;
    border: 0 !important;
}

#mainNav .nav>li>a {
    display: inline-flex !important;
    align-items: center;
    position: relative;
    color: #1d4551 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: 8px;
    text-decoration: none !important;
    text-shadow: none !important;
    transition: color 0.18s ease, background 0.18s ease;
    line-height: 1.4;
}

#mainNav .nav>li>a:hover,
#mainNav .nav>li>a:focus {
    color: #0055d4 !important;
    background: #f3f4f7 !important;
}

#mainNav .nav>li.active>a,
#mainNav .nav>li.active>a:hover,
#mainNav .nav>li.active>a:focus {
    color: #0055d4 !important;
    background: #edf4ff !important;
    font-weight: 600;
}

/* Hide the caret arrow Help Scout adds to each nav item */
#mainNav .nav .caret {
    display: none !important;
}

/* Contact link — now plain (matches other nav items). The Get Started pill
   takes the prominent CTA role. */
#mainNav #contact>a,
#mainNav .nav>#contact>a {
    background: transparent !important;
    color: #1d4551 !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 15px;
    margin-left: 0 !important;
    line-height: 1.4;
    display: inline-flex !important;
    align-items: center;
}

#mainNav #contact>a:hover,
#mainNav .nav>#contact>a:hover,
#mainNav #contact>a:focus,
#mainNav .nav>#contact>a:focus {
    background: transparent !important;
    color: #0055d4 !important;
}

/* Get Started pill — injected via Custom Head HTML script.
   Same prominent style the contact link used to have. */
#mainNav #getStarted>a,
#mainNav .nav>#getStarted>a,
#mainNav .getStartedBtn {
    background: #0055d4 !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    margin-left: 8px !important;
    transition: background 0.15s ease;
    line-height: 1.4;
    display: inline-flex !important;
    align-items: center;
    text-decoration: none !important;
}

#mainNav #getStarted>a:hover,
#mainNav .nav>#getStarted>a:hover,
#mainNav .getStartedBtn:hover {
    background: #0041a8 !important;
    color: #ffffff !important;
}

/* Suppress the underline indicator on the Get Started pill (we want the
   solid-blue button style, not the nav underline that other items use). */
#mainNav #getStarted>a::after {
    display: none !important;
    content: none !important;
}

#mainNav #contactMobile,
#mainNav #getStartedMobile {
    display: none !important;
}

/* The legacy .contactUs class (used in the article footer "Still need help?")
   is reset elsewhere; ensure no global pill style leaks in. */

/* Mobile hamburger — hidden on desktop, shown only ≤768px */
.btn-navbar,
#mainNav .btn-navbar {
    display: none !important;
    background: transparent !important;
    border: 1px solid #d2dae6 !important;
    border-radius: 6px;
    box-shadow: none !important;
    padding: 8px 10px;
    margin: 0;
    float: none !important;
}

.btn-navbar .icon-bar {
    background: #1d4551 !important;
    box-shadow: none !important;
    border-radius: 1px;
}

@media (max-width: 768px) {
    #mainNav .btn-navbar {
        display: inline-flex !important;
        align-items: center;
        margin-left: auto;
    }

    #mainNav .nav-collapse {
        display: none !important;
        width: 100%;
        flex-basis: 100%;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        padding: 12px 0;
        margin-top: 12px;
    }

    #mainNav .nav-collapse.in {
        display: flex !important;
        flex-direction: column;
    }

    #mainNav .nav {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        margin: 0 !important;
    }

    #mainNav .nav>li {
        display: block !important;
        width: 100%;
    }

    #mainNav .nav>li>a {
        display: block !important;
        width: 100%;
    }

    #mainNav .container-fluid {
        flex-wrap: wrap;
    }
}

/* ── Hero / search ────────────────────────────────────────── */

#docsSearch {
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f7 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 56px 24px 48px 24px;
    text-align: center;
}

#docsSearch h1 {
    color: #1d4551 !important;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 16px auto;
    line-height: 1.2;
    max-width: 720px;
}

#docsSearch p {
    color: #5a626e;
    font-size: 17px;
    margin: 0 auto 28px auto;
    max-width: 720px;
}

/* Hero search form (homepage) — make it relatively-positioned for the icon button */
#docsSearch #searchBar,
#docsSearch form#searchBar {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
}

/* Hero search input — Bootstrap 2's .search-query */
#docsSearch .search-query,
#docsSearch input.search-query {
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important;
    padding: 16px 60px 16px 24px !important;
    font-size: 16px !important;
    font-family: 'DM Sans', sans-serif !important;
    color: #1d4551 !important;
    background: #ffffff !important;
    border: 1px solid #d2dae6 !important;
    border-radius: 30px !important;
    box-shadow: 0 1px 3px rgba(15, 45, 53, 0.04) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    -webkit-appearance: none;
    margin: 0;
}

#docsSearch .search-query:focus,
#docsSearch input.search-query:focus {
    border-color: #0055d4 !important;
    box-shadow: 0 0 0 4px rgba(0, 85, 212, 0.12) !important;
    outline: none !important;
}

.search-query::placeholder {
    color: #8a8f99;
    opacity: 1;
}

/* Hero search submit button — restyle as an icon-only button on the right */
#docsSearch #searchBar button[type="submit"],
#docsSearch form#searchBar button[type="submit"] {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    background: #0055d4;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    text-shadow: none;
    transition: background 0.15s ease;
}

#docsSearch #searchBar button[type="submit"]:hover {
    background: #0041a8;
}

/* Hide the "Search" text inside the button, keep only the icon */
#docsSearch #searchBar button[type="submit"] span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Render the search glyph explicitly — the <i class="icon-search lp">
   inside the submit button sometimes loses its :before content because
   Help Scout's CSS has duplicate rules (display:none then display:block)
   that interact oddly with our overrides. Force-set the glyph. */
#docsSearch #searchBar button[type="submit"] .icon-search,
#docsSearch #searchBar button[type="submit"] .icon-search.lp,
#docsSearch #searchBar button[type="submit"] i.icon-search {
    color: #ffffff !important;
    font-size: 18px !important;
    font-family: 'helpscout-docs3' !important;
    font-style: normal !important;
    display: inline-block !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    text-indent: 0 !important;
    background: transparent !important;
}

#docsSearch #searchBar button[type="submit"] .icon-search::before,
#docsSearch #searchBar button[type="submit"] .icon-search.lp::before {
    content: "\e601" !important;
    font-family: 'helpscout-docs3' !important;
    color: #ffffff !important;
    display: inline-block !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1 !important;
}

/* serp-dd dropdown belongs to the form; absolute-position it under the input */
#docsSearch #serp-dd {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 45, 53, 0.12);
}

/* Search results dropdown */
.result,
ul.result {
    background: #ffffff;
    border: 1px solid #d2dae6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 45, 53, 0.12);
    margin-top: 8px;
    padding: 8px;
    list-style: none;
}

.result li,
ul.result li {
    border-radius: 6px;
    padding: 0;
}

.result li a,
ul.result li a {
    display: block;
    padding: 12px 16px;
    color: #1d4551 !important;
    border-radius: 6px;
}

.result li a:hover,
.result li.active,
.result li.active a,
ul.result li a:hover {
    background: #edf4ff !important;
    color: #0055d4 !important;
}

#serp-dd {
    border: 0;
    box-shadow: none;
}

/* ── Main content area ────────────────────────────────────── */

#contentArea.container-fluid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 64px 24px;
    background: transparent;
}

/* Collection sections (the three top-level groupings) */
.collection-category {
    background: #ffffff;
    border: 1px solid #d2dae6;
    border-radius: 12px;
    padding: 32px;
    margin: 0 0 28px 0;
    box-shadow: 0 1px 2px rgba(15, 45, 53, 0.03);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    float: none !important;
    display: block !important;
    clear: both;
}

.collection-category::after {
    content: '';
    display: table;
    clear: both;
}

.collection-category>h2,
h2[id^="collection-"] {
    color: #1d4551 !important;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px 0;
    padding: 0 0 16px 0;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.3;
}

.collection-category>h2 a,
h2[id^="collection-"] a {
    color: #1d4551 !important;
    text-decoration: none;
    font-weight: 600;
}

.collection-category>h2 a:hover,
.collection-category>h2 a:focus,
h2[id^="collection-"] a:hover {
    color: #0055d4 !important;
    text-decoration: none;
}

/* ── Category cards grid ──────────────────────────────────── */

.category-list {
    display: grid !important;
    /* auto-fit collapses empty tracks, so 3-card collections stretch to fill */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    grid-auto-rows: auto !important;
    align-items: stretch;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    box-sizing: border-box;
    /* Reset CSS columns in case Help Scout legacy CSS uses multi-column layout */
    columns: auto !important;
    column-count: auto !important;
    column-width: auto !important;
    column-gap: 16px !important;
}

.category-list>li,
.category-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    float: none !important;
    background: transparent !important;
    border: 0 !important;
}

.category-list>li::before,
.category-list li::before {
    display: none !important;
    content: none !important;
}

.category {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    background: #ffffff !important;
    border: 1px solid #d2dae6;
    border-radius: 8px;
    padding: 22px 18px;
    text-decoration: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    width: 100% !important;
    min-width: 0 !important;
    height: 100%;
    box-sizing: border-box;
    color: #1d4551 !important;
    float: none !important;
}

.category:hover,
.category:focus {
    border-color: #0055d4;
    box-shadow: 0 2px 8px rgba(0, 85, 212, 0.12);
    text-decoration: none !important;
    color: #1d4551 !important;
    transform: translateY(-1px);
}

.category h3 {
    color: #1d4551 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px;
    font-weight: 600;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.35;
    text-align: center;
    word-break: normal;
    overflow-wrap: break-word;
    width: 100%;
}

.category p,
.category .article-count {
    color: #0055d4 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px;
    font-weight: 500;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    width: 100%;
}

.category:hover h3 {
    color: #0055d4 !important;
}

.category p,
.category .article-count {
    color: #0055d4 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px;
    font-weight: 500;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none;
}

/* ── Collection + Category pages (two-column layout) ──────── */

/* Bootstrap 2 fluid grid — clean spacing */
.row-fluid {
    margin: 0;
}

.row-fluid::before,
.row-fluid::after {
    content: " ";
    display: table;
}

.row-fluid::after {
    clear: both;
}

/* Sidebar column */
#sidebar.span3 {
    background: #ffffff;
    border: 1px solid #d2dae6;
    border-radius: 12px;
    padding: 24px;
    margin: 0;
    box-shadow: 0 1px 2px rgba(15, 45, 53, 0.03);
}

/* Compact sidebar search (separate from the hero search) */
form#searchBar.sm,
.sm {
    background: transparent;
    padding: 0 0 20px 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.sm input.search-query {
    width: 100% !important;
    max-width: 100% !important;
    height: 40px !important;
    padding: 10px 44px 10px 14px !important;
    font-size: 14px !important;
    font-family: 'DM Sans', sans-serif !important;
    color: #1d4551 !important;
    background: #f3f4f7 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    margin: 0;
}

.sm input.search-query:focus {
    background: #ffffff !important;
    border-color: #0055d4 !important;
    box-shadow: 0 0 0 3px rgba(0, 85, 212, 0.1) !important;
    outline: none !important;
}

/* Sidebar search submit — small icon-only button on the right of the input */
.sm button[type="submit"] {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d4551 !important;
    box-shadow: none;
    text-shadow: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.sm button[type="submit"]:hover {
    background: #edf4ff;
    color: #0055d4 !important;
}

.sm button[type="submit"] span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* Force-render the magnifier glyph in the sidebar search button, same pattern
   we used for the hero search to beat HS's duplicate display rules */
.sm button[type="submit"] .icon-search,
.sm button[type="submit"] i.icon-search {
    color: #1d4551 !important;
    font-size: 14px !important;
    font-family: 'helpscout-docs3' !important;
    font-style: normal !important;
    display: inline-block !important;
    line-height: 1 !important;
    background: transparent !important;
}

.sm button[type="submit"] .icon-search::before {
    content: "\e601" !important;
    font-family: 'helpscout-docs3' !important;
    color: inherit !important;
    display: inline-block !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1 !important;
}

.sm button[type="submit"]:hover .icon-search,
.sm button[type="submit"]:hover .icon-search::before {
    color: #0055d4 !important;
}

.sm #serp-dd {
    position: absolute;
    top: calc(100% - 12px);
    left: 0;
    right: 0;
    z-index: 20;
}

/* Sidebar nav list — compact, refined. Scoped to #sidebar so we win
   specificity against Help Scout's legacy generic .nav.nav-list rules. */
#sidebar .nav.nav-list,
#sidebar ul.nav-list,
.nav.nav-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#sidebar .nav.nav-list>li,
#sidebar ul.nav-list>li,
.nav.nav-list>li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
    border: 0 !important;
    line-height: 1 !important;
}

#sidebar .nav.nav-list>li>a,
#sidebar ul.nav-list>li>a,
.nav.nav-list>li>a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px !important;
    color: #5a626e !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    line-height: 1.45 !important;
    transition: background 0.15s ease, color 0.15s ease;
    background: transparent !important;
    text-shadow: none !important;
}

#sidebar .nav.nav-list>li>a:hover,
#sidebar .nav.nav-list>li>a:focus,
.nav.nav-list>li>a:hover,
.nav.nav-list>li>a:focus {
    background: #f3f4f7 !important;
    color: #1d4551 !important;
    text-decoration: none !important;
}

#sidebar .nav.nav-list>li.active>a,
#sidebar .nav.nav-list>li.active>a:hover,
#sidebar .nav.nav-list>li.active>a:focus,
.nav.nav-list>li.active>a {
    background: #edf4ff !important;
    color: #0055d4 !important;
    font-weight: 600 !important;
}

#sidebar .nav.nav-list>li>a .icon-arrow,
.nav.nav-list>li>a .icon-arrow {
    color: #0055d4 !important;
    font-size: 10px !important;
    opacity: 0;
    transition: opacity 0.15s ease;
}

#sidebar .nav.nav-list>li.active>a .icon-arrow,
.nav.nav-list>li.active>a .icon-arrow {
    opacity: 1;
}

/* Sidebar section header (e.g. "CATEGORIES") */
#sidebar h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    color: #8a8f99 !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 4px 0 6px 10px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

/* Main content column (span9) */
#main-content.span9 {
    margin-left: 24px;
}

@media (max-width: 768px) {
    #main-content.span9 {
        margin-left: 0;
        margin-top: 16px;
    }
}

/* Content wrapper inside main column */
.contentWrapper {
    background: #ffffff;
    border: 1px solid #d2dae6;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 2px rgba(15, 45, 53, 0.03);
    position: relative;
}

/* H1 on collection + category pages */
.contentWrapper>h1,
#main-content h1 {
    color: #1d4551 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.25;
}

/* Category description */
.descrip,
p.descrip {
    color: #5a626e !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.descrip:empty {
    display: none;
}

/* Override default contentWrapper link color */
.contentWrapper a {
    color: #0055d4 !important;
}

/* Sort dropdown — compact, right-aligned, lives below the H1 */
.sort {
    float: none !important;
    clear: both;
    margin: 0 0 20px 0 !important;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 13px;
    color: #8a8f99;
    width: 100%;
    box-sizing: border-box;
    position: static !important;
}

/* Help Scout doesn't render a visible "Sort by:" label; we inject one
   with ::before on the .sort container so users know what the dropdown does. */
.sort::before {
    content: 'Sort by';
    color: #8a8f99;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    margin-right: 2px;
}

.sort form,
.sort>form {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.sort select,
.sort #sortBy {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #ffffff;
    border: 1px solid #d2dae6;
    border-radius: 6px;
    padding: 0 30px 0 12px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500;
    color: #1d4551 !important;
    cursor: pointer;
    height: 34px;
    line-height: 22px !important;
    min-width: 180px;
    vertical-align: middle;
    box-sizing: border-box;
    margin: 0;
    text-decoration: none !important;
    text-underline-offset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235a626e' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 9px 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sort select option,
.sort #sortBy option {
    text-decoration: none !important;
    color: #1d4551;
    background: #ffffff;
}

.sort select:focus,
.sort #sortBy:focus,
.sort select:active,
.sort #sortBy:active {
    text-decoration: none !important;
}

.sort select:hover,
.sort #sortBy:hover {
    border-color: #b0caf2;
}

.sort select:focus,
.sort #sortBy:focus {
    border-color: #0055d4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 85, 212, 0.1);
}

/* Article list (on category pages) */
ul.articleList {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.articleList li {
    list-style: none;
    margin: 0 0 8px 0;
    padding: 0;
}

ul.articleList li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #1d4551 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    line-height: 1.45;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

ul.articleList li a:hover,
ul.articleList li a:focus,
ul.articleList li a:active {
    border-color: #0055d4;
    background: #edf4ff;
    color: #0055d4 !important;
    text-decoration: none !important;
    transform: translateX(2px);
}

ul.articleList li a span,
ul.articleList li a:hover span,
ul.articleList li a:focus span {
    text-decoration: none !important;
}

ul.articleList li a span {
    flex: 1;
}

ul.articleList .icon-article-doc,
.icon-article-doc {
    color: #0055d4 !important;
    font-size: 16px;
    flex-shrink: 0;
    opacity: 0.85;
}

ul.articleList li a:hover .icon-article-doc {
    opacity: 1;
}

.icon-arrow {
    color: #0055d4 !important;
    font-size: 12px;
    opacity: 0.6;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

a:hover .icon-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* ── Search results page (#serp) ──────────────────────────── */

/* Heading + count */
#serp>h1 {
    color: #1d4551 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

#serp>h1 strong {
    color: #0055d4 !important;
    font-weight: 700;
}

#serp .articlesFound,
#serp p.articlesFound {
    color: #5a626e !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px;
    margin: 0 0 24px 0;
}

#serp .articlesFound strong {
    color: #1d4551 !important;
    font-weight: 700;
}

/* On the search results page, each <li> wraps both the title anchor and
   the excerpt paragraph. The card should be the <li> itself, not just
   the anchor — so the excerpt sits INSIDE the card with the title. */
#serp ul.articleList {
    display: block !important;
}

#serp ul.articleList>li {
    display: block !important;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 0 0 12px 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

#serp ul.articleList>li:hover {
    border-color: #0055d4;
    box-shadow: 0 2px 8px rgba(0, 85, 212, 0.08);
}

/* Reset the anchor styling — on search page it's a title link inside the card,
   not the card itself */
#serp ul.articleList>li>a {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #1d4551 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin: 0 0 8px 0;
    transform: none !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

#serp ul.articleList>li:hover>a,
#serp ul.articleList>li>a:hover,
#serp ul.articleList>li>a:focus {
    color: #0055d4 !important;
    background: transparent !important;
    border: 0 !important;
    transform: none !important;
}

#serp ul.articleList>li>a .icon-article-doc {
    color: #0055d4 !important;
    font-size: 16px;
    opacity: 0.85;
}

#serp ul.articleList>li:hover>a .icon-article-doc {
    opacity: 1;
}

/* Excerpt paragraph inside each result card */
#serp ul.articleList>li>p {
    margin: 4px 0 0 0 !important;
    color: #5a626e !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px;
    line-height: 1.6;
    padding: 0;
}

/* Pagination */
#serp .pagination,
.pagination {
    margin: 28px 0 0 0;
    padding: 0;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    gap: 4px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.pagination ul li {
    list-style: none;
    margin: 0;
}

.pagination ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #1d4551 !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.pagination ul li a:hover {
    border-color: #0055d4;
    color: #0055d4 !important;
    background: #edf4ff;
}

.pagination ul li.active a {
    background: #0055d4 !important;
    border-color: #0055d4 !important;
    color: #ffffff !important;
}

/* ── Article page (#fullArticle) ──────────────────────────── */

/* On article pages, #fullArticle sits inside .contentWrapper > #main-content.span9,
   so it fills the column rather than centering itself. The .contentWrapper card
   already provides the white background + border + padding. */
#fullArticle {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
    position: relative;
}

/* Article title — Help Scout uses .title on the article h1 */
#fullArticle h1.title,
#fullArticle .title {
    color: #1d4551 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 24px 0;
    line-height: 1.2;
    padding: 0 60px 0 0;
    /* clear the absolute-positioned print button */
}

/* Print article button — pinned to the top-right corner of the article card.
   Title gets right-padding so it can never overlap the button. */
.printArticle {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 !important;
    padding: 0 !important;
    background: #f3f4f7;
    color: #5a626e !important;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    float: none !important;
    z-index: 2;
}

.printArticle:hover,
.printArticle:focus {
    background: #edf4ff;
    border-color: #0055d4;
    color: #0055d4 !important;
    text-decoration: none !important;
}

.printArticle .icon-print {
    font-size: 15px;
    line-height: 1;
}

#fullArticle h1 {
    color: #1d4551 !important;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

#fullArticle h2 {
    color: #1d4551 !important;
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 16px 0;
    line-height: 1.3;
}

#fullArticle h3 {
    color: #1d4551 !important;
    font-size: 19px;
    font-weight: 600;
    margin: 32px 0 12px 0;
    line-height: 1.4;
}

#fullArticle p,
#fullArticle li,
#fullArticle blockquote,
#fullArticle dd,
#fullArticle table,
#fullArticle div {
    color: #5a626e !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 16px;
    line-height: 1.7;
}

#fullArticle p {
    margin: 0 0 18px 0;
}

#fullArticle ul,
#fullArticle ol {
    margin: 0 0 20px 0;
    padding-left: 24px;
}

#fullArticle li {
    margin-bottom: 8px;
}

#fullArticle a,
#fullArticle a strong,
#fullArticle strong a {
    color: #0055d4 !important;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(0, 85, 212, 0.3);
    text-underline-offset: 3px;
}

#fullArticle a:hover {
    color: #0041a8 !important;
    text-decoration-color: #0041a8;
}

#fullArticle blockquote {
    border-left: 4px solid #0055d4;
    background: #edf4ff;
    padding: 18px 22px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    color: #1d4551 !important;
    font-style: normal;
}

#fullArticle blockquote p:last-child {
    margin-bottom: 0;
}

#fullArticle code {
    font-family: 'SFMono-Regular', Consolas, 'Courier New', monospace !important;
    font-size: 0.92em;
    background: #f3f4f7;
    color: #1d4551 !important;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

#fullArticle pre {
    background: #0f2d35;
    color: #e8eef0 !important;
    padding: 18px 22px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    line-height: 1.55;
    font-size: 14px;
}

#fullArticle pre code {
    background: transparent;
    color: #e8eef0 !important;
    padding: 0;
    border: 0;
    font-size: inherit;
}

#fullArticle img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin: 16px 0;
}

#fullArticle table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

#fullArticle table th {
    background: #f3f4f7;
    color: #1d4551 !important;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #d2dae6;
    font-size: 14px;
}

#fullArticle table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

#fullArticle table tr:last-child td {
    border-bottom: 0;
}

/* ── Article rating widget (.articleRatings) ──────────────── */

.articleRatings {
    margin: 40px 0 24px 0;
    padding: 24px 28px;
    background: #f3f4f7;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
    /* Block layout so each child (question, feedback, actions) stacks vertically */
    display: block;
}

.articleRatings-question {
    display: block;
    color: #1d4551 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.articleRatings-actions {
    display: inline-flex;
    justify-content: center;
    gap: 12px;
    margin: 0;
}

.rateAction {
    background: #ffffff;
    border: 1px solid #d2dae6;
    color: #1d4551;
    padding: 8px 14px;
    border-radius: 30px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.1s ease;
    line-height: 1;
}

.rateAction:hover {
    border-color: #0055d4;
    background: #edf4ff;
    color: #0055d4;
}

.rateAction--positive:hover {
    border-color: #10b981;
    background: #ecfdf5;
    color: #047857;
}

.rateAction--negative:hover {
    border-color: #ef4444;
    background: #fef2f2;
    color: #b91c1c;
}

.rateAction:active {
    transform: scale(0.97);
}

.rateAction .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.rating-face,
.rating-face svg {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* Feedback + failure messages are hidden by HS until user clicks a rating.
   When HS toggles them visible, they appear as their own block under the question. */
.articleRatings-feedback,
.articleRatings-failure {
    /* Don't force a display value here — let HS's JS toggle inline display */
    color: #047857;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    margin: 0;
}

.articleRatings-feedback-tick {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    vertical-align: middle;
}

.articleRatings-feedback-tick svg {
    width: 18px;
    height: 18px;
}

.articleRatings-feedback-message {
    color: #047857;
    vertical-align: middle;
}

.articleRatings-failure {
    color: #b91c1c;
}

/* ── Article foot (.articleFoot) ──────────────────────────── */

.articleFoot {
    margin: 24px 0 0 0;
    padding: 20px 0 0 0;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #5a626e;
}

.articleFoot .icon-contact {
    color: #0055d4 !important;
    font-size: 16px;
}

.articleFoot .help,
.articleFoot p.help {
    color: #5a626e !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px;
    margin: 0;
    flex: 1;
}

.articleFoot .help .contactUs,
.articleFoot a#sbContact {
    background: transparent !important;
    color: #0055d4 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(0, 85, 212, 0.3);
    text-underline-offset: 3px;
    margin: 0;
}

.articleFoot .help .contactUs:hover {
    background: transparent !important;
    color: #0041a8 !important;
    text-decoration-color: #0041a8;
}

/* Last-updated timestamp */
.articleFoot .lu,
time.lu {
    color: #8a8f99;
    font-size: 13px;
    font-style: normal;
    margin-left: auto;
    white-space: nowrap;
}

/* ── Sidebar section headers (e.g. "Categories") ──────────── */

#sidebar h3 {
    color: #1d4551 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px 0;
    padding: 0;
}

/* Article breadcrumb (if Help Scout renders one) */
.crumbs,
.breadcrumbs,
ul.crumbs {
    background: transparent;
    padding: 0;
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #5a626e;
    list-style: none;
}

.crumbs li,
.breadcrumbs li,
ul.crumbs li {
    display: inline;
    color: #5a626e;
}

.crumbs li a {
    color: #0055d4 !important;
    font-weight: 500;
}

/* Was-this-helpful / feedback widget */
.helpful,
.feedback,
#articleFeedback {
    background: #f3f4f7;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 32px 0 0 0;
    text-align: center;
    color: #5a626e;
}

.helpful button,
.feedback button {
    background: #ffffff;
    border: 1px solid #d2dae6;
    color: #1d4551;
    padding: 10px 22px;
    border-radius: 30px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    margin: 8px 4px 0 4px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.helpful button:hover,
.feedback button:hover {
    border-color: #0055d4;
    color: #0055d4;
    background: #edf4ff;
}

/* Related articles */
.related-articles,
.related {
    margin: 40px 0 0 0;
}

.related-articles h3,
.related h3 {
    color: #1d4551 !important;
    font-size: 18px;
    margin: 0 0 16px 0;
}

.related-articles ul,
.related ul {
    list-style: none;
    padding: 0;
}

.related-articles li,
.related li {
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

.related-articles li:last-child,
.related li:last-child {
    border-bottom: 0;
}

.related-articles a,
.related a {
    color: #0055d4 !important;
    font-weight: 500;
}

/* ── Footer ───────────────────────────────────────────────── */

footer.center,
footer {
    background: transparent !important;
    border-top: 1px solid #e5e7eb;
    padding: 24px 24px !important;
    margin: 32px 0 0 0 !important;
    text-align: center !important;
    font-size: 13px;
    color: #5a626e !important;
    width: 100%;
    box-sizing: border-box;
}

footer p,
footer div,
footer span {
    text-align: center !important;
    margin: 0 auto;
    max-width: 1180px;
    color: #5a626e !important;
}

footer a {
    color: #1d4551 !important;
    font-weight: 600;
    text-decoration: none;
}

footer a:hover {
    color: #0055d4 !important;
    text-decoration: underline;
}

/* ── Bootstrap 2 reset for buttons ────────────────────────── */

.btn {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 22px;
    background: #0055d4;
    color: #ffffff;
    border: 0;
    box-shadow: none;
    text-shadow: none;
    transition: background 0.15s ease;
}

.btn:hover {
    background: #0041a8;
    color: #ffffff;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {

    #mainNav .container-fluid,
    #contentArea.container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }

    #docsSearch,
    #searchBar {
        padding: 40px 16px 36px 16px;
    }

    #docsSearch h1,
    #searchBar h1 {
        font-size: 28px;
    }

    .collection-category {
        padding: 20px;
    }

    .category-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category {
        padding: 16px 18px;
    }

    #fullArticle {
        padding: 24px 20px;
    }

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

    #fullArticle h2 {
        font-size: 20px;
    }
}

/* ── Dark-mode aware (system preference; safe for OS dark mode) ─ */
/* Keep light by default. Uncomment if you want OS dark-mode support. */
/*
@media (prefers-color-scheme: dark) {
    html, body { background: #0f2d35 !important; color: #c4ccd2 !important; }
    #mainNav.navbar, .collection-category, .category, #fullArticle, footer.center {
        background: #16383f !important;
        border-color: #2a4a52 !important;
    }
    h1, h2, h3, h4, h5, h6,
    .category h3,
    #fullArticle h1, #fullArticle h2, #fullArticle h3 { color: #e8eef0 !important; }
    p, li, #fullArticle p, #fullArticle li { color: #c4ccd2 !important; }
}
*/