/*
    Mobile first
     _________
    | _______ |
    ||       ||
    ||       ||
    ||       ||
    ||       ||
    ||_______||
    |____O____|
*/

:root {
  /* Expandable type preview */
  --type-expansion-color:          rgba(128, 128, 128, 0.9);
  --type-expansion-bg:             rgba(128, 128, 128, 0.08);
  --type-expansion-border:         rgba(128, 128, 128, 0.2);
  --type-expansion-toggle-bg:      rgba(128, 128, 128, 0.12);
  --type-expansion-toggle-border:  rgba(128, 128, 128, 0.35);
  --type-expansion-toggle-bg-hover:     rgba(128, 128, 128, 0.22);
  --type-expansion-toggle-border-hover: rgba(128, 128, 128, 0.55);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

html, body {
    font-family: sans-serif;
    height: 100%;
    margin: 0px;
    padding: 0px;
    width: 100%;
}

body {
    background: #f0f0f0;
    color: #2f2b38;
}

* {
    font-family: "IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif;
}

h1 {
     font-weight: 100;
}

h2 {
    font-size: 1.2em;
}

h3 {
    text-transform: uppercase;
    margin-bottom: 3px;
}

h4 {
    color: #555;
    font-style: italic;
    font-size: 0.9em;
}

p {
  margin: 0 0 1em 0;
}

a {
  color: #8085e8;
  text-decoration: none;
  font-weight: bold;
}

code, pre {
  border-radius: 3px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

code {
  padding: 0 2px;
  font-size: 85%;
  background-color: rgba(27,31,35,0.05);
}
pre code {
  background: none;
  font-size: 100%;
}

pre {
    padding: 5px;
    overflow-x: auto;
    background: #f6f8fa;
    font-size: 85%;
}

a:hover {
  color: #90ee7e;
}

#option-trees-wrapper code {
    background: none;
    font-family: "Courier New", Courier, monospace;
    font-size: 100%;
}

.header {
    z-index: 999999;
    width: 100%;
    color: #eeeaea;
    font-size: 14px;
    position: fixed;
    top: 0;
}

.wrapper {
    background: #fff;
    margin-top: 84px;
}

.navigation {
    background: #fff;
    height: calc(100vh - 96px);
    border-right: 1px solid #CCC;
    margin-top: 84px;
}

.body {
    background: #fff;
    border-left: 1px solid #CCC;
    min-height: calc(100vh - 96px);
}

.footer {
    padding: 10px 0;
    width: 100%;
    background: #373648;
    color: #eeeaea;
    display: inline-block;
    text-align: center;
    font-size: 10px;
}

.footer p {
  padding: 0 30px;
}

.footer-social {
  font-size: 1.5em;
  padding-bottom: 10px;
}

/* Header styling */

.header a {
  color: #fff;
  font-weight: inherit;
}
.header a:hover {
  color: #a3edba;
}
.header .row {
  overflow: hidden;
}
.header .row-1 {
    background: #46465c;
    color: #fff;
    height: 40px;
    line-height: 40px;
    overflow: hidden;
    padding: 0 10px;
}
.header .row-1 .cell {
    display: inline-block;
    vertical-align: top;
}

#sidebar-link {
    float: right;
}
#sidebar-link a {
    width: 40px;
    height: 40px;
    display: block;
    text-align: center;
    margin: 0;
}
#sidebar-link i {
    font-size: 24px;
    line-height: 40px;
}

#highcharts-logo {
    line-height: 1em;
}
#highcharts-logo a {
    display: inline-block;
}
#highcharts-logo img {
    height: 40px;
    vertical-align: top;
}

#page-title {
    float: right;
    margin-right: 10px;
}
#page-title h1 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 400;
}

.header .row-2 {
    background: #2f2b38;
    color: #fff;
    height: 44px;
    overflow: visible;
}

.header .row-2 .menu {
    float: left;
    position: relative;
}

.header .row-2 .menu a {
    display: inline-block;
    line-height: 2em;
    padding: 8px 16px;
}

.navbar-search {
    float: left;
    position: relative;
    margin: 6px 12px;
    display: flex;
    align-items: center;
}

.navbar-search input {
    height: 30px;
    width: 200px;
    padding: 0 10px;
    border: none;
    border-radius: 3px 0 0 3px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.85em;
    outline: none;
}

.navbar-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.navbar-search input:focus {
    background: rgba(255, 255, 255, 0.25);
}

.navbar-search button {
    height: 30px;
    width: 32px;
    border: none;
    border-radius: 0 3px 3px 0;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    font-size: 0.85em;
}

.navbar-search button:hover {
    background: rgba(255, 255, 255, 0.3);
}

#class-reference-search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none;
    padding: 0;
    margin: 2px 0 0;
    z-index: 999999;
    display: none;
}

.navbar-search-result a {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #252530;
}

.navbar-search-result a:hover {
    background: #f5f5f5;
}

.navbar-search-result-name {
    font-weight: bold;
    font-size: 0.9em;
}

.navbar-search-result-fullname {
    font-size: 0.8em;
    color: #666;
    font-family: monospace;
}

.navbar-search-result-kind {
    font-size: 0.75em;
    color: #fff;
    background: #7b68ee;
    border-radius: 3px;
    padding: 1px 5px;
    margin-top: 2px;
    display: inline-block;
    align-self: flex-start;
    text-transform: capitalize;
}

.navbar-search-empty {
    padding: 10px 12px;
    color: #999;
    font-size: 0.85em;
}

.dropdown-link {
    display: inline-block;
}

.dropdown-link i {
    font-size: 0.8em;
    transition: all .1s ease;
    margin-left: 7px;
}

.dropdown-menu {
    position: absolute;
    z-index: 999999999;
    display: block;
}
.dropdown-menu ul {
    box-shadow: 0 6px 12px rgba(0,0,0,.2);
    display: inline-block;
    margin: -1px 2px 2px -1px;
    padding: 5px 0;
    background: #2f2b38;
    border: 1px solid rgba(0, 0, 0, .2);
    font-size: 14px;
    min-width: 100px;
    text-align: left;
}

/* Class-reference dropdowns with many items */
.menu .dropdown-menu ul {
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-menu .loading,
.dropdown-menu .error {
    padding: 8px 16px;
    color: #666;
    font-style: italic;
}

.dropdown-menu .error {
    color: #c00;
    cursor: pointer;
}

.dropdown-menu li {
    list-style-type: none;
}
.dropdown-menu li a {
    padding: 8px 16px;
    display: block;
    line-height: 2em;
    color: #fff;
    transition: color .1s ease-in-out;
}
.dropdown-menu li.highlighted a {
  font-weight: bold;
  color: #a3edba;
}
.dropdown-menu li.highlighted a:hover {
  color: #a3edba;
}
.dropdown-menu li.highlighted a,
.dropdown-menu li a:hover {
  color: #a3edba;
}
.dropdown-menu li.group p {
  padding: 8px 16px;
  display: block;
  margin: 0;
}
.dropdown-menu ul.group-list {
  padding: 0;
}
.dropdown-menu ul.group-list li a {
  padding-left: 35px;
}
li.separator {
    border-top: 1px solid #000;
}

.menu[expanded="false"] .dropdown-menu {
  display: none;
}

/*
.menu[expanded="true"] .dropdown-link i {
  transform: rotate(90deg);
}
*/

/* Sidebar styling */

.search-wrapper {
  margin: 30px;
  border: 1px solid #ddd;
  position: relative;
}

.search-wrapper i {
  margin: 5px;
  color: #252530;
  font-size: 14px;
}

.search-wrapper input {
  width: calc(100% - 59px);
  height: 32px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
  border: none;
  outline: none;
  color: #252530;
  background: rgba(27,31,35,0.05);
  padding: 0 10px;
}

.search-wrapper button {
  background-color: rgba(27,31,35,0.1);
  float: right;
  font-size: 0.9em;
  font-weight: bold;
  height: 34px;
  line-height: 30px;
  margin: -1px;
  padding: 0;
  text-align: center;
  width: 40px;
  border: none;
  border-left: 1px solid #ddd;
}

.results {
  position: absolute;
  list-style: none;
  background: #fff;
  border: 2px solid #ddd;
  z-index: 99;
  padding: 0;
  margin: 0 0 0 -2px;
  display: block;
  width: 100%;
  max-height: 254px;
  overflow: auto;  
}

.results .match {
  border-bottom: 1px solid #ddd;
}

.results .match a {
  display: block;
  padding: 5px 10px;
  text-overflow: ellipsis;
  overflow: hidden;
}

.results .match a:hover,
.results .match a:focus {
  outline: none;
}

.results .match a:hover {
  background: #ddd;
}

.results .match a:focus {
  background: #bbb;
}

.results .match *, 
.results .match *:hover {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: #222;
}

.results .match .sub-match {
  background: #eefdec;
}

.sidebar {
  position: fixed;
  display: block;
  top: 0;
  overflow-x: scroll;
  transition: right 0.2s ease;
  z-index: 99;
  width: 100%;
}

.sidebar[expanded="false"] {
  right: -100%;
}

.sidebar[expanded="true"] {
  right: 0;
}

/* Navigation styling */

.tree {
  padding-left: 24px;
}

.node {
  position: relative;
  margin: 0.2em 0;
}

.node.highlighted>.title {
  background-color: #eefdec;
}

.node .title {
  margin-right: 5px;
}

.product-badge {
  display: inline-block;
  background: rgb(242, 236, 255);
  color: rgb(91, 59, 184);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.72em;
  font-weight: 600;
  margin-left: 4px;
  vertical-align: middle;
}


.node .title i {
  position: absolute;
  left: -12px;
  top: 0;
  color: gray;
}

.node.indicator .title, .node.indicator .title i {
  color: #CCC;
}

.children {
  padding-left: 16px;
  transition: max-height 0.5s ease-in-out;
  overflow-y: hidden;
  overflow-x: hidden;
}

.node.collapsed>.children {
  max-height: 0;
}

.node.collapsed>.bracket.end.second {
  display: none;
}

.node.expanded>.dots {
  display: none;
}

.node.expanded>.bracket.end.first {
  display: none;
}

.node .fa-caret-right {
  transition: all 0.1s ease;
}

.node.expanded .fa-caret-right {
  transform: rotate(90deg);
  transition: transform 0.5s ease-in-out;
}

.node.collapsed .fa-caret-right {
  transform: rotate(0deg);
  transition: transform 0.5s ease-in-out;
}

#option-trees-wrapper {
  padding: 5px 5px 5px 30px;
  margin-bottom: 30px;
}
#members-wrapper {
  padding: 5px 5px 5px 30px;
}

.options-tree, .options-tree a, .options-tree a span {
  font-family: "Courier New", Courier, monospace;
}

.options-tree code {
  color: #8085e8;
  font-weight: bold;
}

.node a.title {
  color: #252530;
}

.options-tree .default {
  color: #CCC;
  white-space: nowrap;
  margin: 1px;
  font-family: "Courier New", Courier, monospace;
  display: inline-block;
  vertical-align: middle;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.options-tree .default-block {
  display: block;
}

.option .default.type-string code:before,
.option .default.type-string code:after,
.options-tree .default.type-string:before,
.options-tree .default.type-string:after,
.options-tree .default.type-highcharts-colorstring:before,
.options-tree .default.type-highcharts-colorstring:after {
  content: '"'
}

.options-tree .default.type-string,
.options-tree .default.type-array-string-,
.options-tree .default.type-highcharts-colorstring,
.options-tree .default.type-array-highcharts-colorstring- {
  color: #39A832;
}

.options-tree .default.type-number {
  color: #297EA8;
}

.options-tree .default.type-boolean {
  color: #7E29A8;
}

.options-tree .deprecated .title {
  color: #CCC;
}

/* Body */

.body h1 {
  font-weight: 100;
}

#splashText {
  padding: 30px;
}

#splashText h1 {
  text-align: center;
}


/* Hide when options are visible */

.body.loaded #splashText {
  display: none;
}

/* Text search */

#search-text-results {
  padding: 30px;
}

#search-text-results .match {
  padding: 15px 0;
}

#search-text-results .match h2,
#search-text-results .match p {
  margin: 0;
}

#search-text-results .match p b {
  background-color: #eefdec;  
}

#search-text-results .close ,
#search-text-results .more {
  border: 1px solid #ddd;
  cursor: pointer;
  display: inline-block;
  line-height: 2em;
  padding: 0 1em;
  text-align: center;
}

#search-text-results .close:hover ,
#search-text-results .more:hover {
  background-color: #eee;
  border-color: #bbb;
}

#search-text-results .close {
  float: right;
}

#search-text-results .options {
  margin: 2em auto;
}

/* Option styling */

.option-header h1 {
  display: inline-block;
}

.option-header h1 span {
  font-family: "Courier New", Courier, monospace;
  float: left;
}

.option.option-header, .option {
  padding: 30px;
  position: relative;
}

.option.option-header.class-reference-header {
    padding: 24px 40px;
    border-bottom: 1px solid #e0e0e0;
}

.option.option-header.class-reference-header:has(+ .constructor-section) {
    border-bottom: none;
}

.option {
  overflow-y: hidden;
  border-top: 1px solid #CCC;
}

.option.deprecated * {
  color: #999 !important;
}

.option.highlighted {
  background-color: #eefdec;
}

.option .title, .option .title a, .option .returnType {
  margin-bottom: 5px;
  display: inline-block;
}

.option .title span, .option .title .type-list, .option .title .type-list a {
  font-family: "Courier New", Courier, monospace;
}

.option .title .type-list a {
  text-decoration: none;
}

.type-with-expansion {
  display: inline-block;
  vertical-align: top;
}

.type-expansion-toggle {
  background: var(--type-expansion-toggle-bg);
  border: 1px solid var(--type-expansion-toggle-border);
  border-radius: 3px;
  cursor: pointer;
  padding: 1px 5px;
  margin-left: 4px;
  font-size: 0.85em;
  color: var(--type-expansion-color);
  vertical-align: middle;
  line-height: 1.4;
}

.type-expansion-toggle:hover {
  background: var(--type-expansion-toggle-bg-hover);
  border-color: var(--type-expansion-toggle-border-hover);
}

.type-expansion-value {
  display: none;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85em;
  color: var(--type-expansion-color);
  background: var(--type-expansion-bg);
  border: 1px solid var(--type-expansion-border);
  border-radius: 3px;
  padding: 3px 6px;
  margin-top: 3px;
}

.type-with-expansion.is-expanded .type-expansion-value {
  display: block;
}

.option .title a {
  text-decoration: none;
}

.option .title a.noChildren {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 1em;
}

.option .default {
  color: #666;
}

.option .deprecated {
  color: #C66 !important;
  float: right;
  font-size: 0.8em;
}

.option .since {
  float: right;
  font-size: 0.8em;
}

.option .edit {
  float: right;
  font-size: 0.8em;
  color: #CCC;
  padding-left: 0.6em;
}

.option p {
  color: #666;
}

.class-reference-body p {
    color: #2f2b38;
}

.option.gridpro-only .pro-only {
  color: rgb(91, 59, 184);
  font-weight: 600;
}

.option .context {
  padding: 1em 0;
}

.description code {
  color: #666;
  font-weight: normal;
}


/*
==============================
=== Larger tablets / Computers
==============================
*/

@media screen and (min-width: 767px) {
    .wrapper {
        margin-top: 112px;
    }
    /* Hide the sidebar-link */
    #sidebar-link {
        display: none;
    }
    .header .row-1 {
        height: 60px;
        line-height: 60px;
        padding: 4px 17px;
    }
    #highcharts-logo {
        width: 25%;
    }
    #highcharts-logo img {
        height: 60px;
    }
    #page-title {
        float: none;
        margin: 0;
        text-align: center;
        width: 50%;
    }
    /* Make navigation and wrapper share width 30/70 */
    .navigation, .body {
        float: left;
        padding: 0;
        margin-right: 0;
        margin-left: -1px;
        /* Couteract border */
    }
    .navigation {
        margin-top: 112px;
        width: 30%;
    }
    .body {
        width: 70%;
        margin-left: calc(30% - 1px);
    }
    .sidebar[expanded="false"] {
        left: 0;
    }
    /* Left-align splash page title */
    #splashText h1 {
        text-align: left;
    }
    .footer {
        padding-left: 30%;
        width: 70%;
    }
    .options-tree {
        overflow-x: auto;
    }
}

.class-reference-section pre {
    background: #f6f8fa;
    border-color: transparent;
}

.class-reference-section#examples {
    margin-top: 0;
    padding: 24px 40px 0;
    border-top: none;
}

.class-reference-section#examples::after {
    content: '';
    display: block;
    border-bottom: 1px solid #e0e0e0;
    padding-top: 40px;
}

.class-reference-section#examples + .class-reference-section,
.constructor-section + .class-reference-section {
    border-top: none;
}

.class-reference-section#examples > .title {
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
}

@media (prefers-color-scheme: dark) {
    :root {
        --DC1: #222;
        --DC2: #56566c;
        --DC3: #757580;
        --DC9: #fff;
        --type-expansion-color: rgba(200, 200, 200, 0.9);
    }
    body, .body, .navigation, .wrapper {
        background: #36364c;
        border-color: var(--DC2);
        color: var(--DC9);
    }
    h3,
    h4 {
        color: #BBB7B7;
    }
    pre,
    .class-reference-section pre {
        border-color: var(--DC1);
        background: #3a3a50;
    }
    .hljs {
        background: transparent !important;
    }
    pre.hljs {
        background: #3a3a50 !important;
    }
    .search-wrapper {
        border-color: var(--DC3);
    }
    .search-wrapper button {
        background-color: var(--DC3);
        border-left-color: var(--DC3);
    }
    .results {
        background-color: var(--DC2);
        border-color: var(--DC3);
        color: var(--DC9);
    }
    .results .match {
        border-bottom-color: var(--DC3);
    }
    .results .match a:hover {
        background-color: #333;
    }
    .results .match a:focus {
        background-color: #444;
    }
    .results .match *,
    .results .match *:hover {
        color: #DDD9D9;
    }
    .node.highlighted>.title ,
    .results .match .sub-match {
        background-color: var(--DC3);
        color: var(--DC9);
    }
    .node a.title,
    .search-wrapper input {
        color: #CCC8C8;
    }
    .option {
        border-top-color: var(--DC2);
    }
    .option p {
        color: #CCC;
    }
    .option.deprecated {
        color: #966 !important;
    }
    .option.highlighted {
        background-color: var(--DC2);
    }
    .options-tree .code {
        color: #6074E8;
    }
    .option .default,
    .options-tree .default {
        color: #AAA;
    }
    .options-tree .default.type-string,
    .options-tree .default.type-array-string-,
    .options-tree .default.type-highcharts-colorstring,
    .options-tree .default.type-array-highcharts-colorstring- {
        color: #49C842;
    }
    .options-tree .default.type-number {
        color: #499EC8;
    }
    .options-tree .default.type-boolean {
        color: #CE59E8;
    }
    .options-tree .deprecated .title {
        color: #AAA;
    }
    .description code {
        color: #AAA;
    }
    a {
        color: #b3cafd;
    }
    a:hover {
        color: #a3edba;
        text-decoration: none;
    }
}

/* Class Reference Layout */

.class-reference-page {
    display: flex;
    height: calc(100vh - 96px);
    background: #fff;
}

.class-reference-sidebar {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0 40px;
    box-sizing: border-box;
}

.class-reference-body {
    flex: 1;
    padding: 0 0 40px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    border-left: none;
}

.class-reference-sidebar h3,
.class-reference-sidebar h4,
.class-reference-header .title,
.class-reference-section .title {
    color: inherit;
}

.class-reference-sidebar h3 {
    margin: 0;
    padding: 14px 15px 12px;
    text-transform: none;
    border-bottom: 1px solid #e8e8e8;
    background-color: transparent;
    color: #8085e8;
}

.class-reference-body h1 {
    margin: 0 0 8px;
    font-weight: 600;
    font-size: 2em;
    color: #52b9b4;
}

.class-reference-header,
.class-reference-section:first-of-type:not(.constructor-section) {
    border-top: none;
}


.class-reference-description,
.class-reference-header .description,
.class-reference-member-description,
.class-reference-list .description {
    color: #2f2b38;
    line-height: 1.6em;
}

/* Class Reference TOC */

.class-reference-toc {
    padding-bottom: 20px;
}

.class-reference-toc-section {
    margin-bottom: 0;
}

.class-reference-toc-section-title,
.class-reference-toc-section h4 {
    text-transform: none;
    font-style: normal;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0;
    color: #8085e8;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e8e8e8;
    background-color: transparent;
}

.class-reference-toc-section-list,
.class-reference-toc-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.class-reference-toc-section-list li,
.class-reference-toc-section li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e8e8e8;
}

.class-reference-toc-section-list a,
.class-reference-toc-section a {
    display: block;
    padding: 10px 15px 10px 42px;
    border-radius: 0;
    font-family: "Courier New", Courier, monospace;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    background-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.class-reference-toc-section h4 a {
    padding: 10px 15px 10px 33px;
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1em;
    font-weight: 700;
    color: #8085e8;
}

.toc-params {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.8em;
    font-weight: 400;
    font-style: italic;
    color: #888;
    padding-left: 2px;
}
.class-reference-toc-level-2 h4 a {
    padding-left: 22px;
}

.class-reference-toc-section ul a:hover,
.class-reference-toc-section ul a:focus,
.class-reference-toc-section ul .active > a,
.class-reference-toc-section ul a[aria-current="page"] {
    background: #eefdec;
    color: #252530;
    outline: none;
}
.class-reference-toc-section h4 a:hover,
.class-reference-toc-section h4 a:focus,
.class-reference-toc-section h4 a[aria-current="page"] {
    background: transparent;
    color: #8085e8;
    outline: none;
}

/* Class Reference Content */

.class-reference-section {
    margin-top: 0;
    padding-top: 0;
    scroll-margin-top: 132px;
    border-top: 1px solid #e0e0e0;
}
.class-reference-header,
.class-reference-section:first-of-type:not(.constructor-section) {
    border-top: none;
}

.class-reference-section-title,
.class-reference-section > .title {
    margin: 0;
    padding: 40px 40px;
    font-size: 1.44em;
    font-weight: 400;
    color: #444;
    border-bottom: 1px solid #e0e0e0;
}

.constructor-section {
    margin-top: 0;
    overflow-x: auto;
    padding: 0 40px;
    border-top: none;
}

.constructor-section::before {
    content: '';
    display: block;
    border-top: 1px solid #e0e0e0;
    padding-top: 40px;
}

.class-reference-subtitle {
    font-size: 1.5em;
    color: #444;
    margin: 6px 0 16px;
    font-weight: 400;
}

.class-reference-subtitle-namespace {
    color: #8085e8;
    text-decoration: none;
}

.constructor-params-heading {
    font-weight: 700;
    font-size: 0.9em;
    margin: 16px 0 8px;
    color: #555;
}

.constructor-signature {
    margin: 0 0 24px;
    font-family: "Courier New", Courier, monospace;
    font-size: 1.2em;
    font-weight: 700;
    font-style: normal;
    color: #252530;
}

.constructor-params {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #e6e6e6;
}

.constructor-params th,
.constructor-params td {
    padding: 12px 14px;
    border-bottom: 1px solid #e6e6e6;
    text-align: left;
    vertical-align: top;
}

.constructor-params th {
    font-size: 0.78em;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555;
    background-color: rgba(0, 0, 0, 0.025);
}

.constructor-params tbody tr {
    transition: background-color 0.15s ease;
}

.constructor-params tbody tr:hover td {
    background-color: rgba(144, 238, 126, 0.15);
}

.constructor-section.highlighted .constructor-params,
.constructor-section.highlighted .constructor-params th,
.constructor-section.highlighted .constructor-params td {
    border-color: rgba(0, 0, 0, 0.12);
}

.constructor-section.highlighted .constructor-params th {
    border-bottom-color: rgba(0, 0, 0, 0.15);
}

.constructor-section.highlighted .constructor-params tbody tr:hover td {
    background-color: rgba(0, 0, 0, 0.05);
}

.constructor-param-name {
    font-family: "Courier New", Courier, monospace;
}

.constructor-param-name {
    color: #6699A1;
}

.constructor-param-type,
.constructor-param-argument,
.constructor-param-description {
    color: #666;
}

.constructor-param-type a {
    color: #8085e8;
}

.constructor-param-type a:hover {
    color: #90ee7e;
}

.constructor-param-description {
    line-height: 1.6em;
    overflow-wrap: anywhere;
}

.class-reference-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.class-reference-list li,
.class-reference-list-item {
    padding: 16px 40px;
    border-top: 1px solid #ccc;
}

.class-reference-list li:first-child,
.class-reference-list-item:first-child {
    border-top: 1px solid #ccc;
}

.class-reference-list a {
    display: inline-block;
    margin-bottom: 6px;
    font-family: "Courier New", Courier, monospace;
}

.class-reference-member-list {
    display: block;
}

dl.class-reference-member-list {
    padding: 0 40px;
}


.class-reference-member {
    scroll-margin-top: 132px;
    transition: background-color 0.15s ease;
    border-top: 1px solid #e0e0e0;
    padding: 24px 40px 24px;
}

.class-reference-member.highlighted,
.class-reference-list-item.highlighted,
.constructor-section.highlighted,
.constructor-section.highlighted ~ .class-reference-section#examples {
    background-color: var(--DC2, #eefdec);
}

.constructor-section.highlighted::before {
    border-top: none;
}


.class-reference-member .title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.class-reference-member-name,
.class-reference-member .title a,
.class-reference-member .title a span {
    font-family: "Courier New", Courier, monospace;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    text-transform: none;
    text-decoration: none;
}

.class-reference-member-type,
.class-reference-member .context,
.class-reference-member .type-list,
.class-reference-member .type-list a,
.class-reference-member .returnType {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9em;
    font-weight: 400;
    color: #666;
}

.class-reference-member .context {
    margin: 0;
}

.class-reference-member .context strong {
    font-weight: 600;
    color: #444;
}

.class-reference-member-type::before,
.class-reference-member .returnType::before {
    content: "(";
}

.class-reference-member-type::after,
.class-reference-member .returnType::after {
    content: ")";
}

.class-reference-member-description,
.class-reference-member .description {
    margin-top: 12px;
}

.class-reference-member .type-list a,
.class-reference-member-type a {
    color: #8085e8;
}

.class-reference-member .type-list a:hover,
.class-reference-member-type a:hover {
    color: #90ee7e;
}

.class-reference-member dl,
.class-reference-member dt,
.class-reference-member dd {
    margin: 0;
}

.class-reference-member dd {
    margin-top: 8px;
}

/* Namespace reference page styles */

.static-keyword {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

.namespace-classes dl {
    margin: 0;
    padding: 0;
}

.namespace-classes dt {
    font-weight: bold;
    margin-top: 0.5em;
}

.namespace-classes dd {
    margin-left: 1.5em;
    color: #666;
}

.namespace-section .params-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.namespace-section .params-table th,
.namespace-section .params-table td {
    text-align: left;
    padding: 0.5em;
    border-bottom: 1px solid #ddd;
}

.namespace-section .params-table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* Class Reference States */

.class-reference-error,
.class-reference-loading {
    max-width: 540px;
    margin: 80px auto;
    text-align: center;
    color: #666;
}

.class-reference-error {
    color: #c66;
}

@media screen and (max-width: 766px) {
    .class-reference-sidebar {
        position: static;
        width: 100%;
        height: auto;
        margin-top: 84px;
        border-right: none;
        border-bottom: 1px solid #ccc;
        overflow: visible;
    }

    .class-reference-body {
        width: 100%;
        min-height: auto;
        margin-left: 0;
        padding: 20px 0;
        border-left: none;
    }

    .option.option-header.class-reference-header {
        padding: 16px 20px;
    }

    .class-reference-section-title,
    .class-reference-section > .title {
        padding-left: 20px;
        padding-right: 20px;
    }

    .constructor-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .class-reference-section#examples {
        padding-left: 20px;
        padding-right: 20px;
    }

    .class-reference-member,
    .class-reference-list li,
    .class-reference-list-item {
        padding-left: 20px;
        padding-right: 20px;
    }

    .class-reference-toc-section-list a,
    .class-reference-toc-section a,
    .class-reference-toc-level-2 h4 a {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (prefers-color-scheme: light) {
    .class-reference-body h1.title {
        color: #6699A1;
    }
    .hljs {
        background: transparent !important;
    }
    pre.hljs {
        background: #f6f8fa !important;
    }
}

@media (prefers-color-scheme: dark) {
    .class-reference-page,
    .class-reference-body,
    .class-reference-sidebar {
        background: #36364c;
        border-color: #56566c;
        color: #fff;
    }

    .class-reference-toc-section-title,
    .class-reference-toc-section h4,
    .constructor-params th,
    .class-reference-member .context,
    .class-reference-member .type-list,
    .class-reference-member .type-list a,
    .class-reference-member .returnType,
    .class-reference-description,
    .class-reference-header .description,
    .class-reference-subtitle,
    .constructor-params-heading,
    .constructor-param-type,
    .constructor-param-argument,
    .constructor-param-description,
    .class-reference-member-description,
    .class-reference-list .description,
    .class-reference-error,
    .class-reference-loading {
        color: #ccc;
    }

    .class-reference-body p {
        color: #c8c8d8;
    }

    .class-reference-subtitle {
        color: #9bafc8;
    }

    .class-reference-subtitle-namespace {
        color: #b3cafd;
    }

    .class-reference-toc-section-title,
    .class-reference-toc-section h4,
    .constructor-params,
    .constructor-params th,
    .constructor-params td,
    .class-reference-list li,
    .class-reference-list-item,
    .class-reference-member {
        border-color: #56566c;
    }

    .option.option-header.class-reference-header {
        border-bottom-color: #56566c;
    }

    .constructor-params th {
        background-color: #3a3a50;
        color: #c8c8d8;
    }

    .constructor-params tbody tr:hover td {
        background-color: #56566c;
        color: #e8e8f0;
    }

    .constructor-param-name {
        color: #7dd8d3;
    }

    .constructor-param-type a {
        color: #b3cafd;
    }

    .constructor-param-type a:hover {
        color: #a3edba;
    }

    .class-reference-toc-section-list a,
    .class-reference-toc-section a {
        color: #c8d0e0;
    }

    .toc-params {
        color: #8090a8;
    }

    .class-reference-toc-section ul a:hover,
    .class-reference-toc-section ul a:focus,
    .class-reference-toc-section ul .active > a,
    .class-reference-toc-section ul a[aria-current="page"] {
        background: #56566c;
        color: #fff;
    }
    .class-reference-toc-section h4 a:hover,
    .class-reference-toc-section h4 a:focus,
    .class-reference-toc-section h4 a[aria-current="page"] {
        background: transparent;
        color: #b3cafd;
    }

    .class-reference-sidebar h3 {
        border-bottom-color: #56566c;
        color: #b3cafd;
    }
    .class-reference-toc-section-title,
    .class-reference-toc-section h4,
    .class-reference-toc-section h4 a {
        color: #b3cafd;
        border-bottom-color: #56566c;
    }
    .class-reference-toc-section-list li,
    .class-reference-toc-section li {
        border-bottom-color: #56566c;
    }
    .class-reference-section,
    .constructor-section::before {
        border-top-color: #56566c;
    }


    .class-reference-section#examples::after {
        border-bottom-color: #56566c;
    }

    .constructor-signature {
        color: #9090e8;
    }

    .class-reference-body h1 {
        color: #7dd8d3;
    }
    .class-reference-section-title,
    .class-reference-section > .title {
        color: #c8c8d8;
        border-bottom-color: #56566c;

    }
    .class-reference-member .context strong {
        color: #fff;
    }

    .class-reference-error {
        color: #d98b8b;
    }
}
