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

:root {
    --teleoss-blue: #00659d;
    --teleoss-blue-dark: #004f7c;
    --teleoss-blue-soft: #eaf5fb;
    --teleoss-red: #ff2f27;
    --ink: #183344;
    --muted: #667985;
    --line: #dce6eb;
    --surface: #ffffff;
    --surface-soft: #f6f9fb;
    --code: #102631;
    --post: #b77900;
    --get: #087f5b;
    --config: #7650a8;
    --sidebar-width: 310px;
    --shadow: 0 14px 40px rgba(24, 51, 68, .09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface-soft);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body .h1,
body .h2,
body .h3,
body .h4,
body .h5,
body .h6 {
    font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500 !important;
}

button,
input {
    font: inherit;
}

a {
    color: var(--teleoss-blue);
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 9px 13px;
    color: #fff;
    background: var(--teleoss-blue);
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.docs-shell {
    min-height: 100vh;
}

.docs-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    background: var(--surface);
    border-right: 1px solid var(--line);
}

.sidebar-brand {
    display: flex;
    min-height: 84px;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.sidebar-brand img {
    width: 112px;
    height: auto;
}

.brand-divider {
    width: 1px;
    height: 30px;
    background: var(--line);
}

.brand-product {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px 14px 28px;
}

.sidebar-label {
    margin: 0 10px 11px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sidebar-search {
    position: relative;
    margin: 0 2px 14px;
}

.sidebar-search input {
    width: 100%;
    padding: 10px 12px 10px 35px;
    color: var(--ink);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 12px;
    outline: none;
}

.sidebar-search input:focus {
    background: var(--surface);
    border-color: var(--teleoss-blue);
    box-shadow: 0 0 0 3px rgba(0, 101, 157, .1);
}

.sidebar-search svg {
    position: absolute;
    top: 50%;
    left: 11px;
    width: 15px;
    height: 15px;
    color: var(--muted);
    transform: translateY(-50%);
}

.nav-link.is-filtered,
.nav-group.is-filtered {
    display: none;
}

.nav-group + .nav-group {
    margin-top: 8px;
}

.nav-group-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
    text-align: left;
}

.nav-group-toggle:hover,
.nav-group-toggle:focus-visible,
.nav-group.is-active .nav-group-toggle {
    color: var(--teleoss-blue);
    background: var(--teleoss-blue-soft);
    outline: none;
}

.nav-chevron {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .2s ease;
}

.nav-group-toggle[aria-expanded="true"] .nav-chevron {
    transform: rotate(45deg) translate(-2px, -2px);
}

.nav-folder {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    color: var(--teleoss-red);
}

.nav-group-title {
    flex: 1;
}

.nav-group-count {
    min-width: 24px;
    padding: 2px 6px;
    color: var(--muted);
    background: #edf2f5;
    border-radius: 99px;
    font-size: 10px;
    text-align: center;
}

.nav-submenu {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .22s ease;
}

.nav-submenu.is-open {
    grid-template-rows: 1fr;
}

.nav-submenu-inner {
    min-height: 0;
    overflow: hidden;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0 8px 30px;
}

.nav-link {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 10px;
    color: #405763;
    border-left: 2px solid transparent;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--teleoss-blue);
    background: #f2f8fb;
    outline: none;
}

.nav-link.is-active {
    color: var(--teleoss-blue);
    background: var(--teleoss-blue-soft);
    border-left-color: var(--teleoss-red);
    font-weight: 700;
}

.method-mini {
    flex: 0 0 35px;
    margin-top: 1px;
    color: var(--post);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.5;
}

.method-mini.get {
    color: var(--get);
}

.method-mini.config {
    color: var(--config);
}

.sidebar-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--line);
}

.sidebar-footer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-footer a:hover {
    color: var(--teleoss-blue);
}

.docs-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.docs-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px clamp(22px, 4vw, 58px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.mobile-menu-button {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.breadcrumb {
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb strong {
    color: var(--ink);
}

.environment-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    color: var(--get);
    background: #e8f7f1;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.source-button,
.theme-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 11px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.source-button:hover,
.source-button:focus-visible,
.theme-button:hover,
.theme-button:focus-visible {
    color: var(--teleoss-blue);
    border-color: var(--teleoss-blue);
    outline: none;
}

.theme-button {
    width: 40px;
    min-height: 40px;
    padding: 0;
    color: var(--teleoss-blue-dark);
    background: var(--teleoss-blue-soft);
    border: 2px solid #8bbbd3;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 7px rgba(0, 101, 157, .18);
}

.theme-button svg {
    display: block;
    width: 23px;
    height: 23px;
}

.environment-dot {
    width: 7px;
    height: 7px;
    background: #20a675;
    border-radius: 50%;
}

.docs-content {
    width: min(1040px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(38px, 7vw, 76px) 0 80px;
}

.page-eyebrow {
    margin-bottom: 10px;
    color: var(--teleoss-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.page-title {
    max-width: 850px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.page-lead {
    max-width: 800px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.endpoint-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 0;
    padding: 13px 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(24, 51, 68, .05);
}

.method-badge {
    min-width: 62px;
    padding: 6px 9px;
    color: #fff;
    background: var(--post);
    border-radius: 7px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.method-badge.get {
    background: var(--get);
}

.method-badge.config {
    background: var(--config);
}

.endpoint-path {
    min-width: 0;
    overflow-x: auto;
    color: #304b59;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    white-space: nowrap;
}

.example-notice {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 13px 15px;
    color: #5e4b16;
    background: #fff8df;
    border: 1px solid #f0dea4;
    border-radius: 10px;
    font-size: 13px;
}

.example-notice strong {
    color: #3f3109;
}

.source-description {
    color: #4c626e;
}

.source-description > p:first-child {
    margin-top: 0;
}

.source-description p {
    margin: 16px 0 10px;
}

.source-description strong {
    color: var(--ink);
}

.source-description code {
    padding: 2px 5px;
    color: var(--teleoss-blue-dark);
    background: var(--teleoss-blue-soft);
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9em;
}

.source-description .is-table-wrapper {
    overflow-x: auto;
    margin: 12px 0 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.source-description table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 13px;
}

.source-description th,
.source-description td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.source-description tr:last-child td {
    border-bottom: 0;
}

.source-description th {
    color: #526a76;
    background: var(--surface-soft);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.source-description td:first-child {
    color: var(--teleoss-blue-dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
}

.request-block + .request-block {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.request-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.request-heading h3 {
    margin: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 42px;
    margin-top: 46px;
}

.article-section + .article-section {
    margin-top: 42px;
}

.article-section h2 {
    margin: 0 0 12px;
    font-size: 1.45rem;
    line-height: 1.3;
}

.article-section h3 {
    margin: 26px 0 10px;
    font-size: 1.05rem;
}

.article-section p {
    margin: 0;
    color: #4c626e;
}

.article-section p + p {
    margin-top: 12px;
}

.parameter-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.parameter-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.parameter-table th,
.parameter-table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.parameter-table tr:last-child td {
    border-bottom: 0;
}

.parameter-table th {
    color: #526a76;
    background: #f6f9fb;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.parameter-name {
    color: var(--teleoss-blue-dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
}

.required {
    color: var(--teleoss-red);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.optional {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.code-panel {
    overflow: hidden;
    background: var(--code);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: #a9bdc7;
    background: #0b1e27;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 11px;
    font-weight: 700;
}

.code-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-select {
    padding: 5px 28px 5px 8px;
    color: #dce9ee;
    background: #102631;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    font-size: 10px;
    outline: none;
}

.language-select:focus {
    border-color: rgba(255, 255, 255, .55);
}

.code-panel pre[data-code-language] {
    display: none;
}

.code-panel pre[data-code-language].is-active {
    display: block;
}

.copy-button {
    padding: 5px 8px;
    color: #dce9ee;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 6px;
    cursor: pointer;
    font-size: 10px;
}

.copy-button:hover,
.copy-button:focus-visible {
    color: #fff;
    border-color: rgba(255, 255, 255, .42);
    outline: none;
}

pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
    color: #d9e7ec;
    font: 12.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    tab-size: 2;
}

.article-aside {
    align-self: start;
    position: sticky;
    top: 94px;
}

.aside-card {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.aside-card + .aside-card {
    margin-top: 14px;
}

.aside-card h2 {
    margin: 0 0 11px;
    font-size: 13px;
}

.aside-card p,
.aside-card li {
    color: var(--muted);
    font-size: 12px;
}

.aside-card p {
    margin: 0;
}

.aside-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 17px;
}

.aside-card a {
    font-weight: 700;
    text-decoration: none;
}

.docs-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 42px;
}

.docs-card {
    display: block;
    padding: 26px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(24, 51, 68, .06);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.docs-card:hover,
.docs-card:focus-visible {
    border-color: rgba(0, 101, 157, .45);
    box-shadow: var(--shadow);
    outline: none;
    transform: translateY(-3px);
}

.docs-card-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--teleoss-blue);
    background: var(--teleoss-blue-soft);
    border-radius: 12px;
}

.docs-card-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.docs-card h2 {
    margin: 18px 0 8px;
    font-size: 1.25rem;
}

.docs-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.docs-card-meta {
    display: inline-block;
    margin-top: 18px;
    color: var(--teleoss-red);
    font-size: 12px;
    font-weight: 800;
}

.sidebar-overlay {
    display: none;
}

body.theme-dark {
    --ink: #e3edf1;
    --muted: #9db0ba;
    --line: #29434f;
    --surface: #142a35;
    --surface-soft: #0d2029;
    --code: #07171e;
    background: var(--surface-soft);
}

body.theme-dark .docs-topbar {
    background: rgba(20, 42, 53, .94);
}

body.theme-dark .page-lead,
body.theme-dark .article-section p,
body.theme-dark .source-description,
body.theme-dark .aside-card p,
body.theme-dark .aside-card li {
    color: var(--muted);
}

body.theme-dark .source-description strong,
body.theme-dark .source-button,
body.theme-dark .theme-button {
    color: var(--ink);
}

body.theme-dark .theme-button {
    color: #ffe07a;
    background: #203d4b;
    border-color: #7895a3;
    box-shadow: 0 2px 9px rgba(0, 0, 0, .3);
}

body.theme-dark .theme-button:hover,
body.theme-dark .theme-button:focus-visible {
    color: #fff0a8;
    border-color: #ffe07a;
}

body.theme-dark .endpoint-path,
body.theme-dark .nav-link {
    color: #bdd0d9;
}

body.theme-dark .example-notice {
    color: #f1dea6;
    background: #382f16;
    border-color: #65552b;
}

body.theme-dark .example-notice strong {
    color: #fff2c8;
}

@media (max-width: 1050px) {
    :root {
        --sidebar-width: 280px;
    }

    .content-grid {
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 28px;
    }
}

@media (max-width: 820px) {
    .docs-sidebar {
        width: min(330px, 88vw);
        box-shadow: 20px 0 50px rgba(16, 38, 49, .2);
        transform: translateX(-105%);
        transition: transform .25s ease;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .docs-sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 25;
        display: block;
        visibility: hidden;
        background: rgba(16, 38, 49, .45);
        opacity: 0;
        transition: opacity .25s ease, visibility .25s ease;
    }

    body.menu-open .sidebar-overlay {
        visibility: visible;
        opacity: 1;
    }

    .docs-main {
        margin-left: 0;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .docs-topbar {
        justify-content: flex-start;
    }

    .environment-badge {
        margin-left: auto;
    }

    .topbar-actions {
        margin-left: auto;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .article-aside {
        position: static;
    }
}

@media (max-width: 560px) {
    .docs-topbar {
        padding-right: 16px;
        padding-left: 16px;
    }

    .breadcrumb {
        display: none;
    }

    .source-button span {
        display: none;
    }

    .docs-content {
        width: min(100% - 30px, 1040px);
        padding-top: 34px;
    }

    .docs-cards {
        grid-template-columns: 1fr;
    }

    .endpoint-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .endpoint-path {
        width: 100%;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
