@import url('https://fonts.cdnfonts.com/css/arcon');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #ffffff;
    font-family: 'Arcon', sans-serif;
    color: #252422;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
}

::selection {
    background: var(--primary);
    color: #252422;
}

::-moz-selection {
    background: var(--primary);
    color: #252422;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 24px;
    background: #252422;
    border-bottom: 1px solid #38362f;
}

.navbar-brand {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-logo {
    height: 28px;
    width: auto;
    display: block;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-right: auto;
    margin-left: 40px;
}

.navbar-link {
    color: #a8a49c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 150ms ease, border-color 150ms ease;
}

.navbar-link:hover {
    color: #e8e6e3;
}

.navbar-link.is-active {
    color: #e8e6e3;
}

.navbar-edge {
    display: block;
    width: 100%;
    height: 22px;
    line-height: 0;
}

.navbar-edge svg {
    display: block;
    width: 100%;
    height: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-github {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a8a49c;
    transition: color 150ms ease;
}

.navbar-github svg {
    display: block;
}

.navbar-github:hover {
    color: #e8e6e3;
}

.navbar-cta {
    display: inline-block;
    background: var(--primary);
    color: #252422;
    text-decoration: none;
    border: none;
    border-bottom: 3px solid #b9762c;
    border-radius: 8px;
    padding: 8px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 100ms ease, border-bottom-width 100ms ease;
}

.navbar-cta:hover {
    opacity: 0.9;
}

.navbar-cta:active {
    border-bottom-width: 1px;
    transform: translateY(2px);
}

.site-footer {
    background: #252422;
    color: #a8a49c;
    padding: 48px 24px 0;
}

.footer-main {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 64px;
    padding-bottom: 40px;
}

.footer-brand-col {
    flex: 1;
    min-width: 0;
    max-width: 340px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 14px;
}

.footer-logo {
    height: 26px;
    width: auto;
    display: block;
}

.footer-tagline {
    font-size: 13px;
    line-height: 1.6;
    color: #7f7c74;
}

.footer-col {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-heading {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7f7c74;
    margin-bottom: 4px;
}

.footer-link {
    color: #a8a49c;
    text-decoration: none;
    font-size: 14px;
    transition: color 150ms ease;
}

.footer-link:hover {
    color: #e8e6e3;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    font-size: 12px;
    color: #6b675f;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding-top: 96px;
    padding-bottom: 96px;
    text-align: left;
}

.hero-text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 540px;
}

.hero-title {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.65;
    color: #6b675f;
    margin-bottom: 32px;
}

.hero-subtitle a {
    text-decoration: none;
}

.hero-subtitle a:hover {
    text-decoration: underline;
}

.hero-cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-cta .docs-search {
    margin-bottom: 0;
}

.repo-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
}

.repo-contributors {
    display: flex;
    align-items: center;
}

.repo-avatar {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: -8px;
    border: 2px solid #ffffff;
    background: #f4f3f0;
    transition: transform 100ms ease;
}

.repo-avatar:first-child {
    margin-left: 0;
}

.repo-avatar:hover {
    transform: translateY(-3px);
}

.repo-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}

.repo-avatar-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f3f0;
    color: #6b675f;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
}

.repo-stars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b675f;
    text-decoration: none;
    font-size: 14px;
    transition: color 150ms ease;
}

.repo-stars:hover {
    color: #252422;
}

.bot-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b675f;
    font-size: 14px;
}

.bot-stats-dot {
    color: #a8a49c;
}

.hero-logo-wrap {
    flex: 0 0 auto;
}

.hero-logo {
    width: 220px;
    height: auto;
    display: block;
}

.docs-search-fake-input {
    color: #a8a49c;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 100ms ease, border-bottom-width 100ms ease;
}

.btn-icon {
    flex: 0 0 auto;
    display: block;
}

.btn-primary {
    background: var(--primary);
    color: #252422;
    border-bottom: 3px solid #b9762c;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:active {
    border-bottom-width: 1px;
    transform: translateY(2px);
}

.btn-dark {
    background: #252422;
    color: #ffffff;
    border-bottom: 3px solid #4a473f;
}

.btn-dark:hover {
    opacity: 0.9;
}

.btn-dark:active {
    border-bottom-width: 1px;
    transform: translateY(2px);
}

.docs-layout {
    display: flex;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    gap: 40px;
}

.docs-sidebar {
    flex: 0 0 220px;
    padding-right: 24px;
}

.docs-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f3f0;
    border: 1px solid #e5e3df;
    border-radius: 8px;
    padding: 7px 10px;
    margin-bottom: 16px;
    text-decoration: none;
    transition: border-color 150ms ease;
}

.docs-search:focus-within {
    border-color: var(--quaternary);
}

.docs-search-icon {
    flex: 0 0 auto;
    color: #a8a49c;
}

.docs-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    color: #252422;
}

.docs-search-input::placeholder {
    color: #a8a49c;
}

.docs-search-kbd {
    flex: 0 0 auto;
    font-family: inherit;
    font-size: 11px;
    color: #a8a49c;
    background: #ffffff;
    border: 1px solid #e5e3df;
    border-radius: 4px;
    padding: 1px 6px;
    line-height: 1.6;
}

.docs-search-empty {
    color: #a8a49c;
    font-size: 13px;
    padding: 6px 10px;
}

.docs-search-empty[hidden] {
    display: none;
}

.docs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.docs-list-item {
    display: block;
    color: #6b675f;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
}

.docs-list-item:hover {
    color: #252422;
    background: #f4f3f0;
}

.docs-list-item.is-active {
    color: #252422;
    background: #f4f3f0;
    font-weight: 600;
}

.docs-list-empty {
    color: #a8a49c;
    font-size: 14px;
    padding: 6px 10px;
}

.docs-notice {
    margin-top: 28px;
    padding-top: 20px;
}

.docs-notice p {
    color: #6b675f;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.docs-notice-btn {
    display: inline-block;
    background: #252422;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    border-bottom: 3px solid #4a473f;
    transition: transform 100ms ease, border-bottom-width 100ms ease;
}

.docs-notice-btn:hover {
    opacity: 0.9;
}

.docs-notice-btn:active {
    border-bottom-width: 1px;
    transform: translateY(2px);
}

.docs-content {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    line-height: 1.65;
}

.docs-placeholder {
    color: #a8a49c;
}

.docs-content h1 {
    font-size: 26px;
    margin-bottom: 16px;
}

.docs-content h2 {
    font-size: 19px;
    margin: 28px 0 12px;
}

.docs-content h3 {
    font-size: 16px;
    margin: 20px 0 8px;
}

.docs-content p {
    margin-bottom: 14px;
}

.docs-content ul,
.docs-content ol {
    margin: 0 0 14px 20px;
}

.docs-content li {
    margin-bottom: 4px;
}

.docs-content code {
    background: #f4f3f0;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 13px;
}

.docs-content pre {
    background: #f4f3f0;
    padding: 14px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 14px;
}

.docs-content pre code {
    background: none;
    padding: 0;
}

.docs-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 14px;
}

.docs-content th,
.docs-content td {
    border: 1px solid #e5e3df;
    padding: 8px 10px;
    text-align: left;
    font-size: 14px;
}

.docs-content th {
    background: #f4f3f0;
}


.status-section {
    padding-top: 40px;
    padding-bottom: 64px;
}

.status-heading {
    font-size: 22px;
    margin-bottom: 20px;
}

.status-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
}

.status-card {
    display: flex;
    flex-direction: column;
    width: 240px;
    height: 160px;
    border: 1px solid #e5e3df;
    border-bottom: 3px solid #b9762c;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.status-card-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 160px;
    padding: 16px;
    border: 1px solid #e5e3df;
    border-radius: 8px;
    background: #f4f3f0;
    color: #6b675f;
    font-size: 14px;
    text-align: center;
}

.status-card-header {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    padding: 14px 16px 8px;
}

.status-shard-label {
    font-size: 12px;
    color: #6b675f;
    margin-bottom: 4px;
}

.status-latency {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.status-latency-api {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b675f;
    margin-top: 2px;
}

.status-checked {
    font-size: 12px;
    color: #a8a49c;
    margin-top: 2px;
}

.status-chart {
    flex: 1 1 auto;
    min-height: 0;
}

.status-chart svg {
    display: block;
    width: 100%;
    height: 100%;
}

.status-chart-gateway {
    fill: var(--primary);
    fill-opacity: 0.55;
    stroke: none;
}

.status-chart-api {
    fill: color-mix(in srgb, var(--primary) 45%, white);
    fill-opacity: 0.7;
    stroke: none;
}

.status-empty {
    color: #a8a49c;
    font-size: 14px;
}

@media (max-width: 900px) {
    .docs-layout {
        flex-direction: column;
        padding: 24px 20px;
        gap: 24px;
    }

    .docs-sidebar {
        flex: 1 1 auto;
        width: 100%;
        padding-right: 0;
        padding-bottom: 20px;
    }

    .docs-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .docs-list-item {
        padding: 6px 12px;
        background: #f4f3f0;
        border-radius: 8px;
    }

    .docs-list-item.is-active {
        background: #252422;
        color: #ffffff;
    }

    .docs-notice {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-top: 20px;
        padding-top: 16px;
    }

    .docs-notice p {
        margin-bottom: 0;
    }

    .docs-notice-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .footer-main {
        flex-direction: column;
        gap: 32px;
        padding-bottom: 32px;
    }

    .footer-brand-col {
        max-width: none;
    }

    .hero {
        padding: 64px 20px 56px;
        flex-direction: column-reverse;
        text-align: left;
        gap: 32px;
    }

    .hero-text {
        max-width: none;
    }

    .hero-logo-wrap {
        align-self: flex-start;
    }

    .hero-logo {
        width: 96px;
    }

    .hero-title {
        font-size: 32px;
    }

    .repo-meta {
        flex-wrap: wrap;
        gap: 16px;
    }

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

@media (max-width: 640px) {
    .navbar {
        padding: 0 16px;
        gap: 12px;
    }

    .navbar-links {
        gap: 14px;
        margin-left: 20px;
    }

    .navbar-cta {
        padding: 7px 12px;
        font-size: 13px;
    }

    .navbar-edge {
        height: 14px;
    }

    .docs-search-kbd {
        display: none;
    }

    .docs-notice {
        flex-direction: column;
        align-items: flex-start;
    }

    .docs-content h1 {
        font-size: 22px;
    }

    .docs-content h2 {
        font-size: 17px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .footer-col {
        gap: 8px;
    }

    .status-card,
    .status-card-empty {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 420px) {
    .navbar-logo {
        height: 22px;
    }

    .navbar-links {
        gap: 10px;
        margin-left: 12px;
    }

    .navbar-link {
        font-size: 13px;
    }
}