/*
 * TransMaS Knowledge Base - Help Scout Docs theme
 * ------------------------------------------------
 * Matches the in-app lp design system (assets/css/settings-forms.css):
 * cool blue-grey canvas, white hairline-bordered cards, navy #2d5698 accent,
 * pill chips and uppercase micro-labels. The KB should read as another
 * screen of the product, not a generic doc site.
 *
 * Install: upload this file as a Docs attachment and point the <link> in
 * Docs Settings -> Custom Code at it (replaces Minimal-Template.css).
 * Loads AFTER Help Scout's base stylesheet and the Docs-settings inline
 * styles, except one late inline block (#contentArea a { color } and
 * strong/b) which is out-specified below where needed.
 */

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

:root {
    --kb-ink: #1c2433;
    --kb-body: #3f4a5c;
    --kb-muted: #7b8698;
    --kb-line: #e3e8f0;
    --kb-line-soft: #edf1f7;
    --kb-bg: #f4f6fa;
    --kb-blue: #2d5698;
    --kb-blue-deep: #24477e;
    --kb-blue-soft: #e8eef8;
    --kb-blue-tint: rgba(45, 86, 152, 0.06);
    --kb-card-shadow: 0 1px 2px rgba(28, 36, 51, 0.05);
    --kb-card-shadow-hover: 0 8px 20px rgba(28, 36, 51, 0.10);
    --kb-focus-ring: 0 0 0 3px rgba(45, 86, 152, 0.12);
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */
body,
input,
button,
select,
textarea {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
    background: var(--kb-bg);
    color: var(--kb-ink);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--kb-blue);
    color: #fff;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 2px solid var(--kb-blue);
    outline-offset: 2px;
}

.container-fluid,
.navbar .navbar-inner {
    max-width: 1160px;
    margin: 0 auto;
    position: relative;
}

/* ---------------------------------------------------------------------------
   Masthead - navbar and search fused into one navy band
   --------------------------------------------------------------------------- */
.navbar {
    background: var(--kb-blue);
}

.navbar .navbar-inner {
    background: var(--kb-blue);
    border: 0;
    box-shadow: none;
    padding: 16px 20px 6px;
}

.navbar .brand {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-shadow: none;
    padding: 6px 0;
    margin-left: 0;
}

/* To use a white logo instead of the wordmark, upload one and uncomment:
.navbar .brand {
    background: url('https://YOUR-LOGO-URL.png') no-repeat left center;
    background-size: contain;
    width: 200px;
    height: 34px;
}
.navbar .brand span { display: none; }
*/

.navbar .nav li a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 600;
    text-shadow: none;
}

.navbar .brand:hover,
.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: #fff;
    background: transparent;
}

.navbar .btn-navbar {
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    box-shadow: none;
}

.navbar .btn-navbar:hover,
.navbar .btn-navbar:focus {
    background: rgba(255, 255, 255, 0.22);
}

.navbar .btn-navbar .icon-bar {
    background: #fff;
    box-shadow: none;
}

/* Hero search band - continues the navbar navy */
#docsSearch {
    background: var(--kb-blue);
    border-bottom: 0;
    padding: 8px 0 36px;
    margin-bottom: 36px;
}

#docsSearch h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* The sidebar search form reuses id="searchBar", so hero styles are scoped
   to #docsSearch to keep them out of the sidebar. */
#docsSearch #searchBar {
    width: min(640px, 92%);
    padding: 10px 0 0;
    margin: 0 auto;
}

#docsSearch #searchBar .search-query {
    height: 54px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    padding: 0 128px 0 20px;
    margin: 0;
    font-size: 15px;
    color: var(--kb-ink);
    box-shadow: 0 10px 28px rgba(12, 24, 44, 0.20);
    transition: box-shadow 0.15s ease;
}

#docsSearch #searchBar .search-query::placeholder {
    color: var(--kb-muted);
}

#docsSearch #searchBar .search-query:focus {
    outline: 0;
    box-shadow: 0 10px 28px rgba(12, 24, 44, 0.20), 0 0 0 3px rgba(255, 255, 255, 0.35);
}

#docsSearch #searchBar button {
    top: 17px;
    right: 7px;
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: var(--kb-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: none;
    transition: background 0.15s ease;
}

#docsSearch #searchBar button:hover,
#docsSearch #searchBar button:focus {
    background: var(--kb-blue-deep);
}

#docsSearch #searchBar button:focus-visible {
    outline-color: #fff;
}

#docsSearch #searchBar button span {
    font-size: 14px;
    text-indent: 0;
    width: auto;
    display: inline;
}

#docsSearch #searchBar button .icon-search {
    display: none;
}

/* Search suggestions dropdown (hero position; result styling is shared) */
#docsSearch #serp-dd {
    top: 72px;
}

#serp-dd {
    border: 1px solid var(--kb-line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(16, 29, 50, 0.22);
    overflow: hidden;
}

#serp-dd .result a {
    font-size: 14px;
    font-weight: 500;
    color: var(--kb-ink);
    padding: 9px 16px;
}

#serp-dd .result a:hover,
#serp-dd .result > li.active {
    background: var(--kb-blue-tint);
    color: var(--kb-blue);
}

#serp-dd .noResults {
    font-size: 13px;
    color: var(--kb-muted);
    padding: 8px 16px;
}

/* ---------------------------------------------------------------------------
   Home - category cards with article-count chips
   --------------------------------------------------------------------------- */
.category-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 3em;
}

.category-list .category,
.category-list.two-col .category {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: auto;
    margin: 0;
    background: #fff;
    border: 1px solid var(--kb-line);
    border-radius: 12px;
    box-shadow: var(--kb-card-shadow);
    padding: 20px 22px 18px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.category-list .category:hover {
    background: #fff;
    border-color: #cfdaeb;
    box-shadow: var(--kb-card-shadow-hover);
    transform: translateY(-2px);
    text-decoration: none;
}

.category-list h3 {
    color: var(--kb-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px;
}

.category-list .category p {
    color: var(--kb-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 14px;
}

/* Article count as an lp-chip pill, pinned to the card foot so the pills
   line up across a row even when only some cards have descriptions */
.category-list .category .article-count {
    display: inline-block;
    align-self: flex-start;
    margin: auto 0 0;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.5;
    background: var(--kb-blue-soft);
    color: var(--kb-blue);
}

.category-list .category:hover .article-count {
    background: #dbe6f7;
    color: var(--kb-blue);
}

#noResults {
    text-align: center;
    color: var(--kb-muted);
    padding: 24px 0;
}

/* ---------------------------------------------------------------------------
   Content card (category + article pages)
   --------------------------------------------------------------------------- */
.contentWrapper,
.contentWrapper.withRelated {
    min-height: 0;
}

.contentWrapper {
    border: 1px solid var(--kb-line);
    border-radius: 12px;
    box-shadow: var(--kb-card-shadow);
    padding: 40px 48px;
}

.contentWrapper.withRelated {
    border-radius: 12px 12px 0 0;
    border-bottom-color: var(--kb-line-soft);
    box-shadow: none;
}

.contentWrapper p {
    color: var(--kb-body);
}

.contentWrapper p.descrip {
    color: var(--kb-muted);
    font-size: 14px;
}

/* Category page header */
#categoryHead h1,
.contentWrapper h1 {
    color: var(--kb-ink);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.015em;
}

#categoryHead .sort {
    top: 4px;
}

#categoryHead .sort select {
    width: auto;
    height: 32px;
    line-height: normal;
    padding: 0 30px 0 12px;
    border: 1px solid var(--kb-line);
    border-radius: 8px;
    background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237b8698' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
    color: #55617a;
    font-size: 12px;
    font-weight: 600;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

#categoryHead .sort select:focus {
    outline: 0;
    border-color: var(--kb-blue);
    box-shadow: var(--kb-focus-ring);
}

/* Article list - settings-style rows with hairline dividers */
.articleList {
    font-size: 14px;
    margin: 0 0 30px;
}

.articleList li,
.articleList > li {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--kb-line-soft);
}

.articleList li:first-child,
.articleList > li:first-child {
    border-top: 0;
}

#contentArea .articleList a,
#contentArea .articleList > li a {
    display: block;
    margin: 0;
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--kb-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease;
}

#contentArea .articleList a:hover {
    background: var(--kb-blue-tint);
    color: var(--kb-blue);
}

.articleList a:hover span {
    text-decoration: none;
}

#contentArea .articleList .icon-article-doc {
    color: #9fb3d1;
    margin-right: 10px;
}

/* Search results page keeps the same row treatment */
#serp .articleList > li {
    padding-left: 0;
}

#serp .articleList > li a {
    font-size: 15px;
    margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
   Article body
   --------------------------------------------------------------------------- */
#fullArticle {
    font-size: 15px;
    line-height: 1.7;
    color: var(--kb-body);
}

#fullArticle h1.title {
    color: var(--kb-ink);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.25;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--kb-line-soft);
    margin-bottom: 24px;
}

#fullArticle p,
#fullArticle li,
#fullArticle dd,
#fullArticle div {
    color: var(--kb-body);
    line-height: 1.7;
}

#fullArticle p {
    margin-top: 0;
}

#fullArticle li {
    margin-bottom: 0.35em;
}

#fullArticle h2,
#fullArticle h3,
#fullArticle h4 {
    color: var(--kb-ink);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

#fullArticle h2 {
    font-size: 20px;
    margin: 2em 0 0.6em;
}

#fullArticle h3 {
    font-size: 17px;
    margin: 2.2em 0 0.6em;
}

#fullArticle h4 {
    font-size: 15px;
    margin: 1.8em 0 0.5em;
}

/* Beats the Docs-settings inline strong/b rule that loads after this file */
#fullArticle strong,
#fullArticle b {
    color: var(--kb-ink);
    font-weight: 700;
}

/* Links: body prefix out-specifies the late inline #contentArea a rule */
body #fullArticle a {
    color: var(--kb-blue);
    text-decoration: underline;
    text-decoration-color: rgba(45, 86, 152, 0.35);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.12s ease;
}

body #fullArticle a:hover {
    text-decoration-color: var(--kb-blue);
}

body #fullArticle a strong,
body #fullArticle a b,
body #fullArticle strong a,
body #fullArticle b a {
    color: var(--kb-blue) !important; /* the inline rule uses !important */
}

/* Screenshots framed like lp cards */
#fullArticle img {
    border: 1px solid var(--kb-line);
    border-radius: 10px;
    padding: 0;
}

#fullArticle .image-caption {
    color: var(--kb-muted);
    font-size: 12px;
    text-align: center;
}

#fullArticle code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--kb-ink);
    background: var(--kb-bg);
    border: 1px solid var(--kb-line);
    border-radius: 6px;
    padding: 2px 6px;
}

#fullArticle pre {
    background: #f7f9fc;
    border: 1px solid var(--kb-line);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.6;
}

#fullArticle pre code {
    background: transparent;
    border: 0;
    padding: 0;
}

#fullArticle blockquote {
    border-left: 3px solid var(--kb-blue);
    background: #f7f9fc;
    border-radius: 0 8px 8px 0;
    padding: 12px 18px;
    margin: 1.4em 0;
    color: #55617a;
}

#fullArticle hr {
    border: 0;
    border-top: 1px solid var(--kb-line);
    margin: 2em 0;
}

#fullArticle table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin: 1.4em 0;
}

#fullArticle table th {
    background: #f7f9fc;
    color: var(--kb-ink);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    border: 1px solid var(--kb-line);
    padding: 9px 12px;
}

#fullArticle table td {
    border: 1px solid var(--kb-line);
    padding: 9px 12px;
}

/* Callouts as soft lp cards */
#fullArticle .callout,
#fullArticle .callout-blue,
#fullArticle .callout-green,
#fullArticle .callout-yellow,
#fullArticle .callout-red {
    border-radius: 10px;
    border: 1px solid var(--kb-line);
    background: var(--kb-blue-soft);
    border-color: #d4e0f2;
    color: #2c4570;
    padding: 16px 18px;
    margin: 1.5em 0;
}

#fullArticle .callout-green {
    background: #e7f6ee;
    border-color: #bfe5d1;
    color: #1f7a4d;
}

#fullArticle .callout-yellow {
    background: #fdf3e0;
    border-color: #f3ddb3;
    color: #8a5a12;
}

#fullArticle .callout-red {
    background: #fdecec;
    border-color: #f2c6c6;
    color: #a13333;
}

#fullArticle [class*="callout"] p,
#fullArticle [class*="callout"] li,
#fullArticle [class*="callout"] ol,
#fullArticle [class*="callout"] ul,
#fullArticle [class*="callout"] h2,
#fullArticle [class*="callout"] h3,
#fullArticle [class*="callout"] h4,
#fullArticle [class*="callout"] strong,
#fullArticle [class*="callout"] b {
    color: inherit;
}

#fullArticle [class*="callout"] h2,
#fullArticle [class*="callout"] h3,
#fullArticle [class*="callout"] h4 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 15px;
}

#fullArticle [class*="callout"] > :last-child {
    margin-bottom: 0;
}

/* Badges -> soft badge-light-* pills */
#fullArticle .badge {
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: none;
    background: var(--kb-blue-soft);
    color: var(--kb-blue);
}

#fullArticle .badge.success {
    background: #e7f6ee;
    color: #1f7a4d;
}

#fullArticle .badge.warning {
    background: #fdf3e0;
    color: #8a5a12;
}

#fullArticle .badge.error {
    background: #fdecec;
    color: #a13333;
}

#fullArticle .badge.info {
    background: var(--kb-blue-soft);
    color: var(--kb-blue);
}

#contentArea .printArticle {
    color: #9aa5b6;
}

#contentArea .printArticle:hover {
    color: var(--kb-blue);
}

/* ---------------------------------------------------------------------------
   Ratings, article foot, related articles
   --------------------------------------------------------------------------- */
.articleRatings {
    border: 1px solid var(--kb-line);
    border-radius: 10px;
    box-shadow: var(--kb-card-shadow);
    font-size: 13px;
    color: var(--kb-muted);
}

.articleRatings .rateAction {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s ease;
}

.articleRatings .rateAction:hover {
    background: var(--kb-blue-tint);
}

.articleFoot {
    margin-top: 3em;
}

#contentArea .articleFoot .icon-contact {
    display: none;
}

#contentArea .articleFoot p,
#contentArea .articleFoot time {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-size: 13px;
    color: var(--kb-muted);
}

#contentArea .articleFoot .contactUs {
    color: var(--kb-blue);
    font-weight: 600;
}

/* Related articles - tinted card foot under the content card */
.related {
    border: 1px solid var(--kb-line);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #fbfcfe;
    box-shadow: var(--kb-card-shadow);
    padding: 22px 48px 26px;
}

#contentArea .related h3 {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--kb-muted);
}

#contentArea .related ul {
    margin: 10px 0 0;
    padding: 0;
    columns: 2;
    column-gap: 32px;
}

#contentArea .related ul > li {
    list-style: none;
    padding: 5px 0;
    break-inside: avoid;
}

#contentArea .related ul > li a {
    margin-left: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--kb-blue);
    text-decoration: none;
}

#contentArea .related ul > li a:hover span {
    text-decoration: underline;
}

#contentArea .related .icon-article-doc {
    color: #9fb3d1;
    margin-right: 8px;
}

/* ---------------------------------------------------------------------------
   Sidebar
   --------------------------------------------------------------------------- */
#sidebar h3 {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--kb-muted);
    margin-bottom: 8px;
}

/* lp-nav pills */
#sidebar .nav-list li {
    margin: 0 0 2px;
}

#sidebar .nav-list a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--kb-muted);
    line-height: 1.4;
    transition: background 0.12s ease, color 0.12s ease;
}

#sidebar .nav-list a:hover,
#sidebar .nav-list a:focus {
    background: var(--kb-blue-tint);
    color: var(--kb-ink);
}

#sidebar .nav-list .active a,
#sidebar .nav-list .active a:hover,
#sidebar .nav-list .active a:focus {
    background: #fff;
    color: var(--kb-blue);
    border: 1px solid var(--kb-line);
    box-shadow: var(--kb-card-shadow);
    padding: 7px 11px;
    font-weight: 600;
}

#sidebar .nav-list .active a .icon-arrow,
#sidebar .nav-list .active a:hover .icon-arrow,
#sidebar .nav-list .active a:focus .icon-arrow {
    display: none;
}

/* Sidebar search - lp form control */
#sidebar form .search-query {
    height: 38px;
    border: 1px solid var(--kb-line);
    border-radius: 8px;
    font-size: 13px;
    color: var(--kb-ink);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#sidebar form .search-query:focus,
#sidebar form .search-query:focus:invalid {
    border-color: var(--kb-blue);
    box-shadow: var(--kb-focus-ring);
}

#sidebar form button {
    top: 9px;
    color: var(--kb-muted);
}

#serp-dd.sb {
    top: 44px;
    border-radius: 10px;
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
#contentArea footer {
    padding: 8px 0 44px;
}

#contentArea footer p {
    color: #8a94a6;
    font-size: 12.5px;
}

#contentArea footer a {
    color: #8a94a6;
    text-decoration: underline;
}

#contentArea footer a:hover {
    color: var(--kb-blue);
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 980px) {
    .category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contentWrapper {
        padding: 30px 28px;
    }

    .related {
        padding: 20px 28px 24px;
    }
}

@media (max-width: 767px) {
    .contentWrapper,
    .contentWrapper.withRelated {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        padding: 24px 20px;
    }

    .related {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        padding: 20px 20px 24px;
    }

    #contentArea .related ul {
        columns: 1;
    }

    #docsSearch {
        margin-bottom: 24px;
    }
}

@media (max-width: 620px) {
    .category-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .category-list .category,
    .category-list.two-col .category {
        width: auto;
        margin: 0;
        box-sizing: border-box;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-list .category,
    .category-list .category:hover {
        transition: none;
        transform: none;
    }
}

@media print {
    body {
        background: #fff;
    }

    #docsSearch,
    .articleRatings {
        display: none;
    }

    .contentWrapper,
    #main-content .contentWrapper {
        border: 0;
        box-shadow: none;
    }
}
