/* ========================================================================
   Perceptron Website — Main Stylesheet
   (Following Bartmoss design system)
   ======================================================================== */

/* --- Fonts --- */

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/static/fonts/jetbrains-mono/ttf/JetBrainsMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/static/fonts/jetbrains-mono/ttf/JetBrainsMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Reset & Base --- */

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

body {
    background-color: #0d0804;
    color: #b8b2b2;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #fbbe51;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Navbar --- */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid #ffffff1a;
}

.navbar-brand {
    color: #fbbe51;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 3px;
    text-decoration: none;
    display: flex;
}

.navbar-brand:hover {
    text-decoration: none;
    opacity: 0.85;
}

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

.logo-text {
  color: white;
  font-weight: bold;
  margin-left: 10px;
}

.navbar-links {
    display: flex;
    gap: 32px;
}

.navbar-links a {
  color: white;
  font-size: 17px;
  letter-spacing: 2px;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: bold;
}

.navbar-links a:hover {
    color: #fbbe51;
    text-decoration: none;
}

.navbar-links .nav-install-btn {
    padding: 4px 10px;
    background-color: #f2eded;
    color: #131010 !important;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.navbar-links .nav-install-btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* --- Content Area --- */

.main-content {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 40px 80px 40px;
}

/* --- Footer --- */

.section-footer {
    border-top: 1px solid #ffffff1a;
    padding: 24px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    height: 25px;
    width: auto;
    opacity: 0.7;
}

.accelerate-logo {
    height: 25px;
    width: auto;
    opacity: 0.7;
    margin-top: 20px;
}

.x-logo {
    height: 25px;
    width: auto;
    opacity: 0.7;
    margin-top: 30px;
}

/* --- Landing Page --- */

.section-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0 20px 0;
    margin-bottom: 150px;
}

.beta-note {
  color: #b8b2b2;
  display: flex;
  background-color: #1a1612;
  border: 1px solid #ffffff1a;
  border-radius: 10px;
  padding: 8px 8px;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 10px;
  margin-bottom: 40px;
  text-align: center;
}

.hero-text {
    text-align: center;
    margin-bottom: 30px;
}

.hero-line {
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 2px;
}

.hero-line-1 {
    color: #f2eded;
    font-size: 50px;
}

.hero-line-2 {
    color: #f2eded;
    font-size: 30px;
    display: flex;
    align-items: center;
}

.hero-line-3 {
    color: #f2eded;
    font-size: 40px;
}

.hero-trillion {
    font-size: 50px;
    margin-left: 15px;
}


.showcase-img {
    width: 95vw;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 1.5rem 0;
    border-radius: 6px;
}

.showcase-label {
    font-size: 12px;
    font-style: italic;
    color: #b8b2b2;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.home-section {
    margin-top: 130px;
}

.section-heading {
    font-size: 22px;
    text-align: center;
    margin-bottom: 8px;
    color: #f2eded;
}

.section-subheading {
    font-size: 22px;
    text-align: left;
    margin-bottom: 8px;
    color: #f2eded;
}

.section-description {
    text-align: center;
    color: #b8b2b2;
    font-size: 13px;
    margin-bottom: 24px;
}

.cta-button {
    display: inline-block;
    margin-top: 30px;
    padding: 6px 12px;
    background-color: #f2eded;
    color: #131010 !important;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none !important;
    transition: opacity 0.2s;
    font-size: 16px;
}

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

.links-list {
    display: flex;
    flex-direction: column;
}

.link-item {
    margin-top: 20px;
}

/* --- Superpower Cards (Agent Capability Modules) --- */

.superpower-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.superpower-card {
    background: linear-gradient(180deg, #1e1814 0%, #14100e 100%);
    padding: 32px 28px;
    border-radius: 8px;
    border: 1px solid #2a2420;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    text-align: center;

    /* height: 500px; */
}

/* Hover effects */
.superpower-card:hover {
    transform: translateY(-4px);
    border-color: #3a3430;
}

.superpower-card.card-news:hover {
    box-shadow: 0 8px 32px rgba(251, 190, 81, 0.08);
}

.superpower-card.card-domains:hover {
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.08);
}

.superpower-card.card-store:hover {
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.08);
}

.superpower-icon {
    font-size: 36px;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.05));
}

.superpower-card h3 {
    color: #f2eded;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.superpower-card p {
    color: #b8b2b2;
    font-size: 13px;
    line-height: 1.8;
}

/* --- Documentation Pages --- */

.docs-title {
    text-align: center;
}

.page-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 16px;
    color: #f2eded;
}

.page-intro {
    text-align: center;
    color: #b8b2b2;
    font-size: 14px;
    margin-bottom: 60px;
}

/* --- Code Blocks --- */

pre {
    background-color: #1a1612 !important;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #ffffff1a;
}

code {
    font-family: 'JetBrains Mono', monospace !important;
}

pre code {
    color: #e0e0e0 !important;
    background: none !important;
    padding: 0 !important;
}

/* Pandoc wraps fenced code blocks in <div class="sourceCode"> */
.sourceCode {
    width: 100%;
}

/* Copy-to-clipboard button */
.code-block-wrapper {
    position: relative;
}

.code-block-wrapper pre {
    padding-right: 44px;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: #8b949e;
    cursor: pointer;
    padding: 5px 7px;
    line-height: 0;
    transition: background 0.15s, color 0.15s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #e0e0e0;
}

.copy-btn.copied {
    color: #7ee787;
}

/* --- Doc Content --- */

.hero-subtitle {
    color: #b8b2b2;
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}

.use-case-description h3 {
    color: #f2eded;
    font-size: 18px;
    margin-bottom: 12px;
}

.tui-feature strong {
    color: #f2eded;
}

.tui-feature span {
    color: #b8b2b2;
}

.main-content h2 {
    font-size: 24px;
    margin-top: 48px;
    margin-bottom: 16px;
    color: #f2eded;
}

.main-content h3 {
    font-size: 18px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #f2eded;
}

.main-content p {
    color: #b8b2b2;
    font-size: 15px;
    
    margin-top: 15px;
}

.main-content ul, .main-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: #b8b2b2;
}

.main-content li {
    margin-bottom: 8px;
}

.network-list {
  display: flex;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 56px;
}

.network-item {
    width: 35px;
    height: auto;
    margin: 15px;
}

/* --- FAQ Section --- */

.faq-list {
    display: flex;
    flex-direction: column;
    max-width: 700px;
}

.faq-item {
    border-bottom: 1px solid #ffffff1a;
    padding: 4px 0;
}

.faq-question {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 16px 0;
    color: #f2eded;
    font-size: 16px;
    font-weight: 600;
    user-select: none;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #fbbe51;
}

.faq-indicator {
    display: inline-block;
    width: 24px;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fbbe51;
    transition: transform 0.2s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0 24px;
    color: #b8b2b2;
    font-size: 14px;
    line-height: 1.8;
}

.faq-answer.open {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer code {
    color: #fbbe51;
    font-size: 13px;
}

.code-preview {
    width: 85%;
    font-size: 13px;
}


.tui-feature {
    margin-top: 30px;
}

/* --- Responsive --- */

/* stack on smaller screens */
@media (max-width: 800px) {
    .superpower-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px;
    }

    .nav-install-btn {
        display: none;
    }

    .hero-line-1 {
        font-size: 30px;
    }

    .hero-line-2 {
        font-size: 20px;
    }

    .hero-trillion {
        font-size: 35px;
    }

    .hero-line-3 {
        font-size: 30px;
    }

    .code-preview {
        font-size: 10px;
    }

    .section-heading {
        font-size: 20px;
    }

    .main-content p {
      font-size: 13px;
    }

    .cta-button {
        font-size: 12px;
    }

    .superpower-card p {
        font-size: 12px;
    }

    .code-preview {
        width: 100%;
    }

    .main-content {
        padding: 24px 20px 60px 20px;
    }

    .network-item {
      width: 30px;
    }

    .faq-question {
        font-size: 13px;
    }
}

/* --- Documentation 3-Column Layout --- */

.docs-layout {
    display: flex;
    gap: 48px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 40px 80px 40px;
    flex: 1;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1001;
    background: #1a1612;
    border: 1px solid #ffffff1a;
    border-radius: 4px;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    margin-left: -10px;
    background: #e0e0e0;
    transition: transform 0.2s, opacity 0.2s;
    transform-origin: center;
}

.mobile-menu-toggle span:nth-child(1) { top: 50%; transform: translateY(-7px); }
.mobile-menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-1px); }
.mobile-menu-toggle span:nth-child(3) { top: 50%; transform: translateY(5px); }

.mobile-menu-toggle:hover span {
    background: #fbbe51;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(-1px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-1px) rotate(-45deg); }

.mobile-menu-toggle.active span { background: #e39090; }

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-overlay.open {
    display: block;
    opacity: 1;
}

/* Left Sidebar */
.docs-sidebar-left {
    flex: 0 0 260px;
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 16px;
}

.sidebar-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ffffff1a;
}

.sidebar-header a {
    color: #f2eded;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-header a:hover {
    text-decoration: none;
    opacity: 0.85;
}

.nav-section {
    margin-bottom: 8px;
}

.nav-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    color: #f2eded;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-section summary:hover {
    background-color: #1a1612;
}

.nav-section summary::-webkit-details-marker {
    display: none;
}

.nav-section summary::after {
    content: '›';
    font-size: 20px;
    color: #b8b2b2;
    transition: transform 0.2s;
}

.nav-section[open] summary::after {
    transform: rotate(90deg);
}

.nav-section ul {
    list-style: none;
    margin: 4px 0 12px;
    padding-left: 12px;
}

.nav-section li {
    margin: 2px 0;
}

.nav-section li a {
    display: block;
    padding: 6px 12px;
    color: #b8b2b2;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-section li a:hover {
    color: #f2eded;
    background-color: #1a1612;
}

.nav-section li a[aria-current="page"] {
    color: #f2eded;
    background-color: rgba(251, 190, 81, 0.1);
}

/* Main Content */
.docs-content {
    flex: 1;
    min-width: 0;
    max-width: 800px;
}

.docs-content h1 {
    font-size: 32px;
    margin-bottom: 24px;
    color: #ffffff;
}

.docs-content h2 {
    font-size: 24px;
    margin-top: 48px;
    margin-bottom: 16px;
    color: #ffffff;
    cursor: pointer;
    padding-bottom: 8px;
    border-bottom: 1px solid #ffffff1a;
}

.docs-content h3 {
    font-size: 18px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #ffffff;
    cursor: pointer;
}

.docs-content h2:hover,
.docs-content h3:hover {
    text-decoration: underline;
    text-decoration-color: #ffffff;
}

.docs-content p {
    margin-bottom: 16px;
    color: #e0e0e0;
    line-height: 1.8;
}

.docs-content ul,
.docs-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: #e0e0e0;
}

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

.docs-content a {
    color: #fbbe51;
}

.docs-content code {
    background: #1a1612;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: #fbbe51;
    font-family: 'JetBrains Mono', monospace;
}

.docs-content strong {
    color: #ffffff;
}

.docs-content em {
    color: #ccc;
}

.docs-content pre {
    background-color: #1a1612;
    padding: 16px 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid #ffffff1a;
    font-size: 14px;
    line-height: 1.5;
}

.docs-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
    color: #e0e0e0;
}

/* Pandoc wraps fenced code blocks in <div class="sourceCode"> */
.docs-content .sourceCode {
    width: 100%;
}

/* Tables */
.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.docs-content th {
    text-align: left;
    padding: 10px 14px;
    background: #1a1612;
    border: 1px solid #ffffff1a;
    color: #ffffff;
    font-weight: 700;
}

.docs-content td {
    padding: 8px 14px;
    border: 1px solid #ffffff0d;
}

/* Blockquotes */
.docs-content blockquote {
    border-left: 4px solid #ffffff4d;
    background: #ffffff0a;
    padding: 12px 20px;
    margin: 16px 0;
    border-radius: 0 8px 8px 0;
}

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

.docs-content blockquote p:last-child {
    margin-bottom: 0;
}

.docs-content blockquote strong {
    display: block;
    margin-bottom: 8px;
}

.docs-content .blockquote-note {
    border-left-color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
}

.docs-content .blockquote-note strong {
    color: #4a9eff;
}

.docs-content .blockquote-warning {
    border-left-color: #ffa500;
    background: rgba(255, 165, 0, 0.1);
}

.docs-content .blockquote-warning strong {
    color: #ffa500;
}

.docs-content .blockquote-example {
    border-left-color: #9b59b6;
    background: rgba(155, 89, 182, 0.1);
}

.docs-content .blockquote-example strong {
    color: #9b59b6;
}

.docs-content .blockquote-important {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.docs-content .blockquote-important strong {
    color: #e74c3c;
}

.docs-content .blockquote-tip {
    border-left-color: #fbbe51;
    background: rgba(251, 190, 81, 0.1);
}

.docs-content .blockquote-tip strong {
    color: #fbbe51;
}

/* Horizontal rule */
.docs-content hr {
    border: none;
    border-top: 1px solid #ffffff1a;
    margin: 40px auto;
    width: 30%;
}

/* Images */
.docs-content img {
    max-width: 70%;
    height: auto;
    border-radius: 8px;
    margin: 40px auto;
    display: block;
}

/* Right Sidebar TOC */
.docs-sidebar-right {
    flex: 0 0 220px;
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
}

.docs-sidebar-right h2 {
    font-size: 14px;
    font-weight: 600;
    color: #f2eded;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ffffff1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.toc-list li {
    margin: 4px 0;
}

.toc-list li.toc-level-3 {
    padding-left: 16px;
}

.toc-list a {
    display: block;
    padding: 4px 8px;
    color: #b8b2b2;
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1.5;
}

.toc-list a:hover {
    color: #fbbe51;
    background-color: rgba(251, 190, 81, 0.1);
}

/* Docs navigation cards */
.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.doc-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    background-color: #1a1612;
    border-radius: 8px;
    border: 1px solid #ffffff1a;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
    margin-top: 70px;
}

.doc-link:hover {
    border-color: #6e5a35;
    transform: translateX(4px);
    text-decoration: none;
}

.doc-title {
    color: #f2eded;
    font-size: 16px;
    font-weight: 700;
}

.doc-description {
    color: #b8b2b2;
    font-size: 14px;
}

/* Docs index page */
.docs-index-intro {
    color: #b8b2b2;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 70px;
    margin-bottom: 28px;
}

.docs-quickstart-callout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background-color: rgba(251, 190, 81, 0.08);
    border: 1px solid rgba(251, 190, 81, 0.3);
    border-radius: 8px;
    color: #fbbe51;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
    margin-bottom: 8px;
}

.docs-quickstart-callout:hover {
    background-color: rgba(251, 190, 81, 0.14);
    border-color: rgba(251, 190, 81, 0.55);
    text-decoration: none;
}

.docs-section-heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b6460;
    margin-top: 40px;
    margin-bottom: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #ffffff0f;
}

/* Responsive for documentation */
@media (max-width: 1200px) {
    .docs-layout {
        gap: 32px;
    }

    .docs-sidebar-right {
        display: none;
    }
}

@media (max-width: 900px) {
    .docs-layout {
        display: block;
        padding: 20px;
    }

    .mobile-menu-toggle {
        top: 55px;
        display: block;
    }

    .docs-sidebar-left {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        background: #0d0804;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding: 100px 20px 20px;
        border-right: 1px solid #ffffff1a;
    }

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

    .docs-content {
        max-width: 100%;
        padding-top: 60px;
    }

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

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

    .docs-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 12px;
    }

    .docs-content th,
    .docs-content td {
        padding: 6px 8px;
    }
}

/* --- API Reference Page --- */

/* Endpoint card */
.api-endpoint {
    border: 1px solid #ffffff1a;
    border-radius: 8px;
    background: #0f0c0a;
    margin: 32px 0;
    overflow: hidden;
}

/* Method + path header bar */
.api-method-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #1a1612;
    border-bottom: 1px solid #ffffff1a;
    flex-wrap: wrap;
}

.api-method {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    min-width: 52px;
}

.method-get    { color: #4ec9b0; }
.method-post   { color: #fbbe51; }
.method-delete { color: #f28b82; }

.api-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #f2eded;
    flex: 1;
    word-break: break-all;
}

/* Auth badges */
.auth-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 3px;
    white-space: nowrap;
}

.auth-none {
    background: rgba(255,255,255,0.04);
    color: #666;
    border: 1px solid #333;
}

.auth-client {
    background: rgba(251,190,81,0.08);
    color: #fbbe51;
    border: 1px solid rgba(251,190,81,0.25);
}

.auth-master {
    background: rgba(242,139,130,0.08);
    color: #f28b82;
    border: 1px solid rgba(242,139,130,0.25);
}

/* Endpoint body */
.api-body {
    padding: 20px 24px 24px;
}

.api-body > p {
    color: #b8b2b2;
    font-size: 14px;
    margin-bottom: 4px;
    margin-top: 0;
}

/* Section labels: REQUEST BODY, RESPONSE, ERRORS etc. */
.api-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555;
    margin: 24px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ffffff0d;
}

/* Parameter tables */
.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 4px;
    font-size: 13px;
}

.param-table th {
    text-align: left;
    padding: 7px 12px;
    background: #111009;
    color: #555;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 1px solid #ffffff1a;
    border: 1px solid #ffffff0d;
}

.param-table td {
    padding: 8px 12px;
    border: 1px solid #ffffff08;
    color: #c8c2c2;
    vertical-align: top;
    line-height: 1.6;
}

.param-table td:first-child {
    font-family: 'JetBrains Mono', monospace;
    color: #fbbe51;
    white-space: nowrap;
}

.param-table td:nth-child(2) {
    font-family: 'JetBrains Mono', monospace;
    color: #9b8ec4;
    white-space: nowrap;
}

.param-table tr:nth-child(even) td {
    background: #0d0b09;
}

.required-yes { color: #a6e3a1 !important; }
.required-no  { color: #3a3a3a !important; }

/* Error list */
.api-errors {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.api-error-item {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-size: 13px;
}

.error-status {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    min-width: 32px;
}

.s400 { color: #f28b82; }
.s401 { color: #f28b82; }
.s402 { color: #fbbe51; }
.s403 { color: #f28b82; }
.s404 { color: #666; }
.s409 { color: #ce9178; }
.s500 { color: #f28b82; }
.s502 { color: #f28b82; }

.error-message {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #666;
}

/* Tabbed code example card */
.code-tabs {
    border: 1px solid #ffffff1a;
    border-radius: 6px;
    overflow: hidden;
    margin: 20px 0 4px;
}

.code-tab-bar {
    display: flex;
    background: #111009;
    border-bottom: 1px solid #ffffff1a;
}

.code-tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #555;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 9px 18px;
    text-transform: lowercase;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
}

.code-tab-btn:hover  { color: #b8b2b2; }
.code-tab-btn.active { color: #fbbe51; border-bottom-color: #fbbe51; }

.code-tab-pane        { display: none; }
.code-tab-pane.active { display: block; }

.code-tabs .code-tab-pane pre {
    margin: 0;
    border: none;
    border-radius: 0;
    background-color: #0f0d0b !important;
}

/* Frontend-only note */
.frontend-only-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(155,142,196,0.08);
    border: 1px solid rgba(155,142,196,0.2);
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    color: #9b8ec4;
    margin: 8px 0 0;
}

/* API reference intro blocks */
.api-intro-block {
    background: #0f0c0a;
    border: 1px solid #ffffff1a;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
    font-size: 14px;
}

.api-intro-block p {
    margin: 0 0 8px;
    color: #b8b2b2;
}

.api-intro-block p:last-child {
    margin-bottom: 0;
}

.api-intro-block code {
    font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .api-method-header {
        gap: 8px;
        padding: 10px 14px;
    }

    .api-body {
        padding: 16px;
    }

    .param-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .auth-badge {
        font-size: 10px;
        padding: 2px 7px;
    }

    .api-path {
        font-size: 13px;
    }

    .code-tab-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .docs-layout {
        padding: 20px 16px 60px;
    }

    .docs-content {
        padding-top: 56px;
    }

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

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

    .docs-content h3 {
        font-size: 16px;
    }

    .docs-content pre {
        font-size: 12px;
        padding: 12px;
    }

    .docs-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 12px;
    }

    .docs-content th,
    .docs-content td {
        padding: 6px 8px;
    }
}
