/* KCM601XE AT documentation styling, close to ESP-AT RTD documents. */

.wy-side-nav-search {
    background: #e5e5e5;
    border-bottom: 1px solid #cfcfcf;
    padding: 1.1em 0.8em 1em;
}

.wy-side-nav-search > a,
.wy-side-nav-search .wy-dropdown > a {
    color: #2a2a2a;
    font-size: 108%;
    font-weight: 700;
}

.wy-side-nav-search input[type="text"] {
    border: 1px solid #999999;
    border-radius: 0;
    box-shadow: none;
    font-size: 92%;
}

.wy-nav-side {
    background: #302d2d;
}

.wy-menu-vertical header,
.wy-menu-vertical p.caption {
    background: #302d2d;
    color: #ffffff;
    font-weight: 500;
    margin: 0;
    padding: 0.55em 1.45em;
    text-transform: none;
}

.wy-menu-vertical a {
    color: #ffffff;
    font-size: 95%;
}

.wy-menu-vertical a:hover {
    background: #4a4646;
}

.wy-menu-vertical li.current > a,
.wy-menu-vertical li.on a {
    background: #f3f3f3;
    color: #222222;
    border: none;
}

.wy-menu-vertical li.current a:hover {
    background: #e7e7e7;
}

.wy-menu-vertical li.toctree-l1.current > a {
    border-top: 1px solid #d0d0d0;
    border-bottom: 1px solid #d0d0d0;
}

.wy-nav-content {
    max-width: 980px;
}

.rst-content h1,
.rst-content h2,
.rst-content h3 {
    color: #1f2937;
    font-weight: 700;
}

.rst-content h1 {
    border-bottom: 1px solid #dddddd;
    padding-bottom: 0.45em;
}

.kcm-doc-selectors {
    margin: 0.8em 0 0.2em;
}

.kcm-doc-selectors select {
    width: 62%;
    height: 2.35em;
    margin: 0.45em auto;
    display: block;
    border: 1px solid #c8c8c8;
    background: #ffffff;
    color: #222222;
}

.kcm-doc-brand {
    color: #111111;
    font-size: 1.35em;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin-bottom: 0.6em;
    text-align: center;
}



.kcm-doc-brand small {
    display: block;
    color: #555555;
    font-size: 0.48em;
    font-weight: 600;
    margin-top: 0.35em;
}

/* Navigation hierarchy: category items are larger, child topics are smaller. */
.wy-menu-vertical li.toctree-l1 > a {
    font-size: 102%;
    font-weight: 700;
    padding-top: 0.42em;
    padding-bottom: 0.42em;
}

.wy-menu-vertical li.toctree-l2 > a {
    font-size: 92%;
    font-weight: 500;
    padding-left: 2.6em;
}

.wy-menu-vertical li.toctree-l3 > a {
    font-size: 88%;
    font-weight: 400;
    padding-left: 3.8em;
}

.wy-menu-vertical li.current > ul {
    background: #cfcfcf;
}

.wy-menu-vertical li.current li.toctree-l2 > a {
    background: #cfcfcf;
    color: #222222;
}

.wy-menu-vertical li.current li.toctree-l2 > a:hover {
    background: #bebebe;
}

.wy-menu-vertical li.current li.toctree-l3 > a {
    background: #cfcfcf;
    color: #333333;
}

/* ESP-AT-like compact document title. */
.wy-side-nav-search > a.icon.icon-home {
    color: #222222;
    font-size: 100%;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.55em;
}

.wy-side-nav-search > a.icon.icon-home::before {
    color: #222222;
    font-size: 100%;
}

.kcm-doc-brand {
    font-family: Arial, Helvetica, sans-serif;
}



.kcm-doc-brand small {
    font-size: 0.52em;
    font-weight: 600;
}

/* Match ReadTheDocs / ESP-AT typography more closely. */
body,
html,
.wy-nav-side,
.wy-menu-vertical,
.wy-side-nav-search,
.rst-content {
    font-family: Lato, proxima-nova, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
}

.rst-content .toctree-wrapper > p.caption,
h1,
h2,
h3,
h4,
h5,
h6,
legend {
    font-family: "Roboto Slab", ff-tisa-web-pro, Georgia, Arial, sans-serif;
    font-weight: 700;
}

.kcm-doc-brand,
.kcm-doc-logo-text,
.kcm-doc-brand small {
    font-family: Lato, proxima-nova, "Helvetica Neue", Arial, sans-serif;
}

.wy-menu-vertical a {
    line-height: 18px;
    padding: 0.4045em 1.618em;
    font-size: 90%;
    color: #d9d9d9;
    font-weight: 400;
}

.wy-menu-vertical li.toctree-l1 > a {
    font-size: 100%;
    font-weight: 700;
    color: #ffffff;
}

.wy-menu-vertical li.toctree-l2 > a {
    font-size: 90%;
    font-weight: 400;
    color: #222222;
    padding-left: 2.6em;
}

.wy-menu-vertical li.toctree-l3 > a {
    font-size: 88%;
    font-weight: 400;
    color: #333333;
    padding-left: 3.8em;
}

.wy-menu-vertical li.current > a {
    color: #222222;
    font-weight: 700;
}

.wy-menu-vertical li.current li.toctree-l2 > a {
    font-weight: 400;
}

.wy-menu-vertical li.current li.toctree-l2.current > a,
.wy-menu-vertical li.current li.toctree-l3.current > a {
    font-weight: 700;
}



.kcm-doc-brand small {
    font-size: 0.5em;
    font-weight: 400;
}

/* Keep top-level navigation titles consistent with ESP-AT. */
.wy-menu-vertical li.toctree-l1 > a,
.wy-menu-vertical li.toctree-l1.current > a,
.wy-menu-vertical li.toctree-l1.on > a,
.wy-menu-vertical li.toctree-l1.current > a:visited,
.wy-menu-vertical li.toctree-l1.on > a:visited {
    background: #302d2d;
    color: #ffffff !important;
    font-size: 100%;
    font-weight: 700;
    border: none;
}

.wy-menu-vertical li.toctree-l1 > a:hover,
.wy-menu-vertical li.toctree-l1.current > a:hover,
.wy-menu-vertical li.toctree-l1.on > a:hover {
    background: #4a4646;
    color: #ffffff !important;
}

.wy-menu-vertical li.toctree-l1.current > a.current,
.wy-menu-vertical li.toctree-l1.current > a.reference.internal {
    color: #ffffff !important;
}

.wy-menu-vertical li.toctree-l1.current > ul {
    background: #cfcfcf;
}

/* Make top-level menu less bright/heavy, closer to ESP-AT. */
.wy-menu-vertical li.toctree-l1 > a,
.wy-menu-vertical li.toctree-l1.current > a,
.wy-menu-vertical li.toctree-l1.on > a,
.wy-menu-vertical li.toctree-l1.current > a:visited,
.wy-menu-vertical li.toctree-l1.on > a:visited,
.wy-menu-vertical li.toctree-l1.current > a.current,
.wy-menu-vertical li.toctree-l1.current > a.reference.internal {
    color: #d9d9d9 !important;
    font-weight: 600;
    font-size: 96%;
    line-height: 18px;
}

.wy-menu-vertical li.toctree-l1 > a:hover,
.wy-menu-vertical li.toctree-l1.current > a:hover,
.wy-menu-vertical li.toctree-l1.on > a:hover {
    color: #ffffff !important;
}

/* Exact ESP-AT-like sidebar typography from sphinx_rtd_theme. */
.wy-menu-vertical a,
.wy-menu-vertical li.toctree-l1 > a,
.wy-menu-vertical li.toctree-l1.current > a,
.wy-menu-vertical li.toctree-l1.on > a,
.wy-menu-vertical li.toctree-l1.current > a:visited,
.wy-menu-vertical li.toctree-l1.on > a:visited,
.wy-menu-vertical li.toctree-l1.current > a.current,
.wy-menu-vertical li.toctree-l1.current > a.reference.internal {
    line-height: 18px;
    padding: 0.4045em 1.618em;
    display: block;
    position: relative;
    font-size: 90%;
    font-weight: 400;
    color: #d9d9d9 !important;
    background: #302d2d;
}

.wy-menu-vertical a:hover,
.wy-menu-vertical li.toctree-l1 > a:hover,
.wy-menu-vertical li.toctree-l1.current > a:hover,
.wy-menu-vertical li.toctree-l1.on > a:hover {
    background-color: #4e4a4a;
    color: #d9d9d9 !important;
}

.wy-menu-vertical li.current > a,
.wy-menu-vertical li.current > a.current,
.wy-menu-vertical li.on a {
    font-weight: 400;
}

.wy-menu-vertical li.toctree-l2 > a,
.wy-menu-vertical li.current li.toctree-l2 > a {
    line-height: 18px;
    padding: 0.4045em 1.618em 0.4045em 2.6em;
    font-size: 90%;
    font-weight: 400;
    color: #404040 !important;
    background: #cfcfcf;
}

.wy-menu-vertical li.toctree-l3 > a,
.wy-menu-vertical li.current li.toctree-l3 > a {
    line-height: 18px;
    padding: 0.4045em 1.618em 0.4045em 3.8em;
    font-size: 90%;
    font-weight: 400;
    color: #404040 !important;
    background: #cfcfcf;
}

.wy-menu-vertical li button.toctree-expand {
    display: block;
    float: left;
    margin-left: -1.2em;
    line-height: 18px;
    color: #4d4d4d;
    border: none;
    background: none;
    padding: 0;
}

/* Quectel logo area. */
.kcm-doc-brand {
    margin-bottom: 0.75em;
    text-align: center;
}

.kcm-quectel-logo {
    display: block;
    width: 86%;
    max-width: 245px;
    height: auto;
    margin: 0.15em auto 0.25em;
    background: transparent;
}

.kcm-doc-brand small {
    display: block;
    color: #333333;
    font-size: 0.72em;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0.15em;
}

/* Use a plain rectangular Quectel logo image, no badge/circle decoration. */
.kcm-doc-brand {
    margin-bottom: 0.75em;
    text-align: center;
}

.kcm-quectel-logo {
    display: block;
    width: 88%;
    max-width: 260px;
    height: auto;
    margin: 0.05em auto 0.35em;
    padding: 0;
    border: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.kcm-doc-brand small {
    display: block;
    color: #333333;
    font-size: 0.72em;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0.1em;
}

/* Final sidebar logo layout: direct rectangular logo, no repeated title. */
.wy-side-nav-search {
    padding-top: 0.65em;
}

.wy-side-nav-search .kcm-logo-link,
.wy-side-nav-search .kcm-logo-link:hover {
    display: block;
    padding: 0;
    margin: 0 auto 0.55em;
    background: transparent !important;
}

.wy-side-nav-search img.kcm-quectel-logo,
.wy-side-nav-search a.icon img.kcm-quectel-logo,
.wy-side-nav-search > a img.kcm-quectel-logo {
    display: block;
    width: 88%;
    max-width: 255px;
    height: auto;
    margin: 0 auto;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.kcm-doc-selectors {
    margin-top: 0.45em;
}

/* Display Quectel logo at natural sidebar width, not as a small badge. */
.wy-side-nav-search .kcm-logo-link,
.wy-side-nav-search .kcm-logo-link:hover {
    margin: 0 auto 0.35em;
    width: 100%;
}

.wy-side-nav-search img.kcm-quectel-logo,
.wy-side-nav-search a.icon img.kcm-quectel-logo,
.wy-side-nav-search > a img.kcm-quectel-logo {
    width: 100% !important;
    max-width: 280px !important;
    min-width: 220px;
    height: auto !important;
    margin: 0 auto !important;
}

/* Official logo image should display as a normal full-width image. */
.wy-side-nav-search img.kcm-quectel-logo,
.wy-side-nav-search a.icon img.kcm-quectel-logo,
.wy-side-nav-search > a img.kcm-quectel-logo {
    width: 255px !important;
    max-width: 92% !important;
    min-width: 0 !important;
    height: auto !important;
    object-fit: contain;
}

/* Home title above logo, matching ESP-AT layout. */
.wy-side-nav-search .kcm-home-title,
.wy-side-nav-search .kcm-home-title:hover {
    display: inline-block;
    color: #222222 !important;
    font-size: 100%;
    font-weight: 700;
    line-height: 1.2;
    padding: 4px 6px;
    margin: 0 auto 0.55em;
    background: transparent !important;
}

.wy-side-nav-search .kcm-home-title::before {
    color: #222222 !important;
    margin-right: 0.25em;
}

/* Search box spacing under selectors. */
.wy-side-nav-search div[role="search"] {
    margin-top: 0.85em;
}

/* ESP-AT-like command/code blocks with copy button. */
.rst-content div[class^="highlight"],
.rst-content pre.literal-block,
.rst-content div.literal-block-wrapper div[class^="highlight"] {
    background: #eeffcc;
    border: 1px solid #d5d5d5;
    border-radius: 0;
    margin: 1.2em 0;
}

.rst-content div[class^="highlight"] pre,
.rst-content pre.literal-block {
    background: #eeffcc;
    color: #003b4f;
    font-size: 85%;
    line-height: 1.55;
    padding: 0.9em 1em;
}

.rst-content code.literal,
.rst-content tt.literal {
    color: #d14;
    background: #ffffff;
    border: 1px solid #e1e4e5;
    padding: 1px 4px;
}

button.copybtn {
    opacity: 0.85;
    border: 1px solid #bfc7d5;
    border-radius: 4px;
    background-color: #f8f8f8;
}

button.copybtn:hover {
    opacity: 1;
    background-color: #ffffff;
}

/* Content font size and command page link list, closer to ESP-AT. */
.rst-content,
.rst-content p,
.rst-content li,
.rst-content table.docutils {
    font-size: 16px;
    line-height: 1.65;
}

.rst-content h1 {
    font-size: 175%;
}

.rst-content h2 {
    font-size: 150%;
}

.rst-content h3 {
    font-size: 115%;
}
