/* Global */

:root {
    --background: #161617;
    --surface: #141d31;
    --accent-background: #192538;
    --accent-background-hover: #222b4e;
    --border: #24304d;
    --text: #ffffff;
    --text-soft: #c9ced4;
    --text-muted: #98a9c8;
    --link: #bbc0c4;
    --link-hover: #ffffff;
    --accent: #005ddf;
    --accent-hover: #006aff;
    --accent-light: #1c95ff;
    --icon-accent: #3578ff;
}

html {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background: var(--background);
    color-scheme: dark;
}

body {
    font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    background: var(--background);
    color: var(--text);
}

a {
    font-weight: 400 !important;
    color: var(--link);
}

a:hover {
    color: var(--link-hover) !important;
}

/* Hide Elements */

time.lu {
    display: none;
}

.icon-print {
    display: none;
}

.article-count {
    display: none;
}

/* Parent Container */

.container-fluid {
    margin-top: 20px;
}

/* Navigation */

.navbar .brand {
    padding: 11px 0px 11px !important;
}

.navbar-inner {
    padding-left: 20px !important;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    background: var(--background) !important;
    background-image: none !important;
    border-bottom: 1px solid var(--border);
}

.navbar .nav > li > a {
    padding: 11px 10px 11px !important;
}

.navbar .btn-navbar {
    right: 0 !important;
    width: unset;
    margin-top: 18px !important;
    margin-right: 4px;
    border: 1px solid var(--border);
    background: var(--accent-background);
}

.navbar .btn-navbar .icon-bar {
    -webkit-box-shadow: none;
    box-shadow: none;
    background: var(--text-muted) !important;
    width: 14px !important;
}

.btn-navbar .icon-bar + .icon-bar {
    margin-top: 2px;
}

.brand {
    display: flex !important;
    align-items: center;
}

.brand img {
    width: auto;
    height: 38px;
}

.navbar .btn-navbar {
    margin-top: 20px;
}

.brand-help-center {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    padding-left: 15px;
    margin-left: 18px;
    border-left: solid 1px var(--border);
}

.navbar .nav {
    bottom: unset;
}

.navbar .nav a {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
}

.navbar .nav a:hover {
    color: var(--link) !important;
}

.nav {
    font-size: 14px;
    font-weight: 600;
}

.navbar .nav .active .caret {
    display: none;
}

#main-content {
    background: unset;
}

.contentWrapper {
    border: transparent;
    background: transparent;
    padding: 0;
}

/* Footer */

footer {
    margin-bottom: 3em;
}

footer p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Header */

#docsSearch {
    background: transparent;
    border-bottom: none;
    margin-bottom: 0;
    padding: 1em 0;
}

#docsSearch h1 {
    font-size: 44px;
    font-weight: 600;
    margin-top: 65px;
    letter-spacing: -0.04rem;
    line-height: 1.125;
    color: var(--text);
}

.main-subheading {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: 400;
    margin-top: 18px;
}

/* Header Search Bar */

#searchBar {
    margin-top: 25px;
    display: flex;
    width: 720px;
}

#searchBar button {
    background-color: var(--accent);
    border-radius: 5px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    text-shadow: none;
    margin-left: 12px;
    right: unset;
    position: unset;
}

#searchBar button:hover {
    background-color: var(--accent-hover);
}

#searchBar input {
    box-shadow: none;
    border: solid 1px var(--border);
    background: var(--accent-background);
    color: var(--text);
}

#searchBar input::placeholder {
    color: var(--text-muted);
}

/* Main Screen Category Listing */

.category-list .category {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--accent-background);
    box-shadow: none;
}

.category-list .category:hover {
    background: var(--accent-background-hover);
}

.category-list .category h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.category-list .category p {
    color: var(--text-muted) !important;
    padding: 0 10px;
    line-height: 1.3rem;
}

.category-list {
    text-align: center !important;
}

.category-list i {
    font-size: 5.5em;
    color: var(--icon-accent);
    padding-top: 0.35em;
    padding-bottom: 0.1em;
}

/* Category Pages */

#categoryHead h1 {
    font-weight: 600;
    color: var(--text);
}

#serp-dd .result a:hover,
#serp-dd .result > li.active,
#fullArticle strong a,
#fullArticle a strong,
.collection a,
.contentWrapper a,
.most-pop-articles .popArticles a,
.most-pop-articles .popArticles a:hover span,
.category-list .category .article-count,
.category-list .category:hover .article-count {
    color: var(--link);
}

/* Autocomplete */

#serp-dd {
    background: var(--accent-background);
    border: 1px solid var(--border);
    border-radius: 5px;
}

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

#serp-dd .noResults {
    color: var(--text);
}

/* Category List Pages */

.contentWrapper p.descrip {
    color: var(--text-muted);
}

.icon-article-doc:before {
    color: var(--link);
}

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

/* Article Pages */

#fullArticle a {
    font-weight: 600 !important;
    border-bottom: 1px solid var(--accent) !important;
    color: var(--text) !important;
    text-decoration: none;
}

#fullArticle a:hover {
    border-bottom: 2px solid var(--accent) !important;
}

#sidebar form .search-query {
    border: 1px solid var(--border);
    color: var(--text);
}

.featherlight-close-icon, [class*=" icon-"], [class^=icon-] {
    color: var(--text-muted);
}

#sidebar h3 {
    color: var(--text);
}

#sidebar .nav-list a {
    color: var(--link);
}

#sidebar .nav-list .active a {
    font-weight: 600 !important;
    color: var(--accent-light) !important;
}

.icon-arrow:before {
    color: var(--accent-light) !important;
}

.pagination ul>li>a, .pagination ul>li>span {
    background: var(--accent-background-hover);
}

.pagination ul li a, .pagination ul li span {
    border-left: var(--accent-background-hover);
}

.nav-list .nav-header, .nav-list>li>a {
    text-shadow: none;
}

#sbContact,
#sbContactMobile {
    font-weight: bold !important;
    border-bottom: 1px solid var(--accent) !important;
    color: var(--text) !important;
}

#sbContact:hover,
#sbContactMobile:hover {
    border-bottom: 2px solid var(--accent) !important;
}

#fullArticle,
#fullArticle p,
#fullArticle li {
    color: var(--text-soft);
}

#fullArticle strong,
#fullArticle b {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-soft);
}

#fullArticle .title {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

#fullArticle h1,
#fullArticle h2,
#fullArticle h3,
#fullArticle h4,
#fullArticle h5 {
    margin-bottom: 1.4rem;
    color: var(--text);
}

#fullArticle h2 {
    font-weight: 600 !important;
}

#fullArticle h3 {
    font-size: 19px;
    font-weight: 600 !important;
}

#fullArticle code,
#fullArticle pre {
    background: #0e1627;
    border: 1px solid var(--border);
    color: #dcebff;
}

.articleFoot {
    margin-top: 2rem;
}

.articleFoot p,
.articleFoot time,
.articleFoot i {
    color: var(--text-muted);
}

.articleFoot p,
.articleFoot time {
    font-family: inherit;
    font-style: normal;
    font-weight: 600;
}

#fullArticle .callout-yellow,
#fullArticle .callout-blue,
#fullArticle .callout-red,
#fullArticle .callout-green,
#fullArticle .callout,
#fullArticle .private-note {
    padding-top: 18px !important;
    border-width: 1px;
    border-style: solid;
}

#fullArticle .callout-yellow {
    background: #2a2415;
    border-color: #83652f;
    border-radius: 8px;
}

#fullArticle .callout-yellow p {
    color: #f3dfb8;
}

#fullArticle .callout-blue {
    background: #121f33;
    border-color: #2f5ea8;
    border-radius: 8px;
}

#fullArticle .callout-blue p {
    color: #d0e2ff;
}

#fullArticle .callout-red {
    background: #421b25;
    border-color: #ba4a60;
    border-radius: 8px;
}

#fullArticle .callout-red p {
    color: #ffc7d0;
}

#fullArticle .callout-green {
    background: #13261b;
    border-color: #327a55;
    border-radius: 8px;
}

#fullArticle .callout-green p {
    color: #cbf5df;
}

#fullArticle .callout,
#fullArticle .private-note {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.articleFoot p, .articleFoot time, .articleFoot i {
    color: var(--text);
}

/* Breakpoint Tweaks */

@media only screen and (max-width: 768px) {
    #searchBar {
        width: 345px;
        margin-top: 0;
    }

    .category-list .category,
    .category-list.two-col .category {
        margin-bottom: 30px !important;
    }

    .category {
        height: 210px;
    }

    #docsSearch {
        margin-bottom: 0;
    }

    #docsSearch h1 {
        margin-top: 15px;
        font-size: 28px;
    }

    .main-subheading {
        font-size: 16px;
        margin-top: 10px;
    }

    .contentWrapper {
        padding: 0 20px;
    }
}

@media only screen and (max-width: 768px) and (max-width: 480px) {
    #searchBar .search-query {
        margin-right: -8px;
    }
}

li ul {
    margin-top: 10px;
}
