/* ============================================================
   faqs.chatmaxima.com only.
   Implements "FAQ Article - Dashboard Language.dc.html" from the
   Chatmaxima FAQ page redesign project.

   Every rule is scoped under body.cm-faq, set only on the faqs
   subdomain, so the knowledgebase views shared with support.* and
   glossary.* are untouched.

   The design file is a design-canvas document: hover states arrive as
   style-hover attributes and the feedback widget as {{ }} bindings.
   Those are translated here into real :hover rules and a small vanilla
   handler in cm_knowledgebase_faqs.js.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

body.cm-faq
{
    --faq-blue: #1B6EF3;
    --faq-blue-ink: #1350B8;
    --faq-blue-soft: #EEF4FE;
    --faq-blue-pill: #E4EDFD;
    --faq-blue-line: #C9DBF8;
    --faq-ink: #0B1220;
    --faq-body: #4E6076;
    --faq-muted: #6B7C97;
    --faq-soft: #8697AF;
    --faq-faint: #98A8C0;
    --faq-border: #E9EEF6;
    --faq-border-2: #D9E2F0;
    --faq-tint: #F6F9FE;
    --faq-tint-2: #EAF0FA;
    --faq-shadow: 0 10px 28px rgba(16, 42, 80, 0.06);
    --faq-shadow-lg: 0 10px 30px rgba(16, 42, 80, 0.06);
    --faq-r: 16px;
    --faq-r-sm: 10px;
    --faq-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    background: #ffffff;
    color: var(--faq-ink);
    font-family: var(--faq-sans);
    -webkit-font-smoothing: antialiased;
}

body.cm-faq *
{
    box-sizing: border-box;
}

body.cm-faq [id]
{
    scroll-margin-top: 96px;
}

body.cm-faq a
{
    color: var(--faq-blue);
    text-decoration: none;
}

body.cm-faq a:hover
{
    color: var(--faq-blue-ink);
    text-decoration: underline;
}

body.cm-faq .faq-shell
{
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ------------------------------------------------------------
   Site chrome
   ------------------------------------------------------------ */

body.cm-faq .navbar
{
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--faq-border);
}

body.cm-faq .navbar .nav-link
{
    color: #44536B !important;
    font-size: 15px;
    font-weight: 600;
}

body.cm-faq .navbar .nav-link:hover
{
    color: var(--faq-ink) !important;
}

body.cm-faq .navbar .btn
{
    padding: 10px 18px;
    border-radius: var(--faq-r-sm);
    background: var(--faq-blue) !important;
    border-color: var(--faq-blue) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(27, 110, 243, 0.28);
}

/* ------------------------------------------------------------
   Hero. Carries the breadcrumb, category, title, byline and search.
   ------------------------------------------------------------ */

body.cm-faq .faq-hero
{
    background: linear-gradient(180deg, #F3F8FF 0%, #FFFFFF 100%);
    border-bottom: 1px solid var(--faq-tint-2);
    padding: 44px 0 40px;
}

body.cm-faq .faq-crumbs
{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--faq-muted);
    margin-bottom: 24px;
}

body.cm-faq .faq-crumbs a
{
    color: var(--faq-muted);
}

body.cm-faq .faq-crumbs span[aria-hidden]
{
    color: #B9C6DA;
}

body.cm-faq .faq-crumbs-here
{
    color: var(--faq-ink);
}

body.cm-faq .faq-hero-grid
{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 56px;
    align-items: end;
}

body.cm-faq .faq-pill
{
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--faq-blue-pill);
    color: var(--faq-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.cm-faq .faq-hero-title
{
    margin: 18px 0 14px;
    font-size: 46px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--faq-ink);
    max-width: 20ch;
    text-wrap: pretty;
}

body.cm-faq .faq-hero-sub
{
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--faq-body);
    max-width: 62ch;
    text-wrap: pretty;
}

body.cm-faq .faq-hero-by
{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #5A6B87;
}

body.cm-faq .faq-hero-by img
{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

body.cm-faq .faq-hero-by strong
{
    color: var(--faq-ink);
    font-weight: 700;
}

/* the shared search partial, reshaped into the hero's right column */

body.cm-faq .faq-hero-grid section.bg-gradient-info
{
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

body.cm-faq .faq-hero-grid .shape-container,
body.cm-faq .faq-hero-grid section.bg-gradient-info svg,
body.cm-faq .faq-hero-grid section.bg-gradient-info h1,
body.cm-faq .faq-hero-grid section.bg-gradient-info h2,
body.cm-faq .faq-hero-grid section.bg-gradient-info h3,
body.cm-faq .faq-hero-grid section.bg-gradient-info .h1,
body.cm-faq .faq-hero-grid section.bg-gradient-info p
{
    display: none !important;
}

body.cm-faq .faq-hero-grid .container,
body.cm-faq .faq-hero-grid .col,
body.cm-faq .faq-hero-grid .row,
body.cm-faq .faq-hero-grid .col-md-10
{
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.cm-faq .autosuggest,
body.cm-faq .input-group-inline
{
    background: #fff;
    border: 1px solid #DCE6F5;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--faq-shadow-lg);
}

body.cm-faq #autosuggest_box
{
    border: 0 !important;
    outline: none;
    background: transparent !important;
    font-family: inherit;
    font-size: 15px;
    color: var(--faq-ink) !important;
    box-shadow: none !important;
    height: auto;
    padding: 0;
}

body.cm-faq .input-group-text
{
    background: transparent !important;
    border: 0 !important;
    color: var(--faq-faint) !important;
    padding: 0 8px 0 0;
}

/* ------------------------------------------------------------
   Page body
   ------------------------------------------------------------ */

body.cm-faq section.slice
{
    background: #fff !important;
    padding: 56px 0 0 !important;
}

body.cm-faq section.slice > .container
{
    max-width: 1280px;
    padding: 0 32px;
}

body.cm-faq .col-12.col-sm-9
{
    flex: 0 0 auto;
    width: calc(100% - 376px);
    padding-right: 0;
}

body.cm-faq .col-12.col-sm-3
{
    flex: 0 0 auto;
    width: 376px;
    padding-left: 56px;
}

/* the article card is now just a container; the questions carry the chrome */

body.cm-faq .col-12.col-sm-9 > .card
{
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.cm-faq .col-12.col-sm-9 > .card > .card-body
{
    padding: 0 !important;
}

/* ------------------------------------------------------------
   Questions as cards, grouped under a labelled rule
   ------------------------------------------------------------ */

body.cm-faq #article_content
{
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--faq-body);
}

body.cm-faq .faq-group
{
    display: flex !important;
    align-items: center;
    gap: 14px;
    margin: 28px 0 0 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faq-blue) !important;
    white-space: nowrap;
}

body.cm-faq .faq-group:first-child
{
    margin-top: 0 !important;
}

body.cm-faq .faq-group::after
{
    content: "";
    height: 1px;
    background: var(--faq-border);
    flex: 1;
}

body.cm-faq .faq-item
{
    display: flex;
    gap: 18px;
    padding: 26px 28px;
    background: #fff;
    border: 1px solid var(--faq-border);
    border-radius: var(--faq-r);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.cm-faq .faq-item:hover
{
    border-color: var(--faq-blue-line);
    box-shadow: var(--faq-shadow);
}

body.cm-faq .faq-num
{
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--faq-blue-soft);
    color: var(--faq-blue);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.cm-faq .faq-item-body
{
    min-width: 0;
    width: 100%;
}

body.cm-faq .faq-q
{
    margin: 2px 0 10px !important;
    font-size: 19px !important;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--faq-ink) !important;
}

body.cm-faq .faq-item p
{
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--faq-body);
    text-wrap: pretty;
}

body.cm-faq .faq-item-body > *:last-child
{
    margin-bottom: 0;
}

body.cm-faq #article_content strong
{
    color: var(--faq-ink);
    font-weight: 700;
}

body.cm-faq #article_content ul,
body.cm-faq #article_content ol
{
    margin: 0 0 10px;
    padding-left: 20px;
}

body.cm-faq #article_content li
{
    margin-bottom: 6px;
}

body.cm-faq #article_content li > p
{
    margin: 0;
}

body.cm-faq #article_content li::marker
{
    color: var(--faq-faint);
}

body.cm-faq #article_content hr
{
    display: none;
}

body.cm-faq #article_content img
{
    max-width: 100%;
    height: auto;
    border: 1px solid var(--faq-border);
    border-radius: var(--faq-r-sm);
}

body.cm-faq #article_content code
{
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 87%;
    padding: 0.15em 0.4em;
    border-radius: 6px;
    background: var(--faq-tint);
    border: 1px solid var(--faq-tint-2);
    color: var(--faq-ink);
}

/* ------------------------------------------------------------
   Feedback
   ------------------------------------------------------------ */

body.cm-faq .faq-feedback
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding: 28px;
    border: 1px solid var(--faq-border);
    border-radius: var(--faq-r);
}

body.cm-faq .faq-feedback h3
{
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: var(--faq-ink);
}

body.cm-faq .faq-feedback p
{
    margin: 0;
    font-size: 14px;
    color: var(--faq-muted);
}

body.cm-faq .faq-feedback-actions
{
    display: flex;
    gap: 10px;
}

body.cm-faq .faq-feedback-actions button
{
    padding: 11px 22px;
    border-radius: var(--faq-r-sm);
    border: 1px solid var(--faq-border-2);
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--faq-ink);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

body.cm-faq .faq-feedback-actions button:hover,
body.cm-faq .faq-feedback-actions button:focus-visible
{
    border-color: var(--faq-blue);
    color: var(--faq-blue);
}

body.cm-faq .faq-feedback-actions button[aria-pressed="true"]
{
    border-color: var(--faq-blue);
    background: var(--faq-blue);
    color: #fff;
}

/* ------------------------------------------------------------
   Sidebar
   ------------------------------------------------------------ */

body.cm-faq #article_contents
{
    position: sticky;
    top: 96px;
    /* No max-height and no overflow anywhere in this column. Capping it put a
       scrollbar inside the contents card, which the design does not have. A long
       list simply runs at its natural height. */
}

body.cm-faq .col-12.col-sm-3 .card
{
    border: 1px solid var(--faq-border);
    border-radius: var(--faq-r);
    box-shadow: none;
    background: #fff;
}

body.cm-faq .col-12.col-sm-3 .card-header
{
    border: 0;
    background: transparent;
    padding: 22px 22px 0;
}

body.cm-faq .col-12.col-sm-3 .card-title
{
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faq-soft);
}

body.cm-faq .col-12.col-sm-3 .card-body
{
    padding: 16px 22px 22px !important;
}

body.cm-faq #all_headings
{
    display: flex;
    flex-direction: column;
    gap: 11px;
    /* No inner scroll: capping the height here clipped the last entries and put a
       scrollbar inside the card. The column is sticky, so a long list simply scrolls
       with the page, which is what the design does. */
}

body.cm-faq .col-12.col-sm-3 > *:first-child
{
    margin-bottom: 20px; /* the contents card and the panels below it share one rhythm */
}

body.cm-faq .faq-toc-group
{
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faq-ink);
    margin-top: 6px;
}

body.cm-faq .faq-toc-group:first-child
{
    margin-top: 0;
}

body.cm-faq .faq-toc-link
{
    font-size: 14px;
    line-height: 1.45;
    color: var(--faq-body);
    text-decoration: none;
    cursor: pointer;
}

body.cm-faq .faq-toc-link:hover
{
    color: var(--faq-blue);
    text-decoration: none;
}

body.cm-faq .faq-toc-link.is-current
{
    color: var(--faq-blue);
    font-weight: 700;
}

body.cm-faq .col-12.col-sm-3 .card-body a
{
    font-size: 14px;
    line-height: 1.5;
    color: var(--faq-ink);
    font-weight: 600;
}

body.cm-faq .faq-help
{
    border-radius: var(--faq-r);
    padding: 22px;
    background: var(--faq-ink);
    color: #fff;
    margin-top: 20px;
}

body.cm-faq .faq-help h4
{
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

body.cm-faq .faq-help p
{
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #A9B7CC;
}

body.cm-faq .faq-help a
{
    display: inline-block;
    padding: 10px 18px;
    border-radius: var(--faq-r-sm);
    background: var(--faq-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

body.cm-faq .faq-help a:hover
{
    background: var(--faq-blue-ink);
    color: #fff;
    text-decoration: none;
}

/* ------------------------------------------------------------
   Closing CTA
   ------------------------------------------------------------ */

body.cm-faq .faq-cta
{
    margin-top: 72px;
    background: linear-gradient(135deg, #0B1220 0%, #12305E 100%);
    color: #fff;
}

body.cm-faq .faq-cta .faq-shell
{
    padding: 64px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

body.cm-faq .faq-cta h2
{
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

body.cm-faq .faq-cta p
{
    margin: 0;
    font-size: 17px;
    color: #A9B7CC;
}

body.cm-faq .faq-cta-actions
{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

body.cm-faq .faq-cta-primary,
body.cm-faq .faq-cta-ghost
{
    padding: 15px 26px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

body.cm-faq .faq-cta-primary
{
    background: var(--faq-blue);
}

body.cm-faq .faq-cta-ghost
{
    border: 1px solid rgba(255, 255, 255, 0.28);
}

body.cm-faq .faq-cta-primary:hover,
body.cm-faq .faq-cta-ghost:hover
{
    color: #fff;
    text-decoration: none;
    opacity: 0.92;
}

/* ------------------------------------------------------------
   Footer, darkened to match the design
   ------------------------------------------------------------ */

body.cm-faq #footer-main .footer
{
    background: #070C15 !important;
    color: #8A9AB2;
}

body.cm-faq #footer-main .shape-container
{
    display: none !important;
}

body.cm-faq #footer-main a,
body.cm-faq #footer-main .text-white,
body.cm-faq #footer-main p,
body.cm-faq #footer-main .copyright
{
    color: #8A9AB2 !important;
    font-size: 14px;
}

body.cm-faq #footer-main h6
{
    color: #ffffff !important;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1100px)
{
    body.cm-faq .faq-hero-grid
    {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        align-items: start;
    }

    body.cm-faq .faq-hero-title
    {
        max-width: none;
    }
}

@media (max-width: 991.98px)
{
    body.cm-faq .col-12.col-sm-9,
    body.cm-faq .col-12.col-sm-3
    {
        width: 100%;
        padding-left: 0;
    }

    body.cm-faq #article_contents
    {
        position: static;
        margin-top: 40px;
    }

}

@media (max-width: 767.98px)
{
    body.cm-faq .faq-shell,
    body.cm-faq section.slice > .container
    {
        padding-left: 18px;
        padding-right: 18px;
    }

    body.cm-faq .faq-hero
    {
        padding: 28px 0;
    }

    body.cm-faq .faq-hero-title
    {
        font-size: 31px;
    }

    body.cm-faq .faq-item
    {
        padding: 20px;
        gap: 14px;
    }

    body.cm-faq .faq-q
    {
        font-size: 17.5px !important;
    }

    body.cm-faq .faq-cta .faq-shell
    {
        padding: 44px 18px;
    }

    body.cm-faq .faq-cta h2
    {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce)
{
    body.cm-faq *,
    body.cm-faq html
    {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
