body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
}
.doc-hero-section {
    background: linear-gradient(135deg, #0b132b 0%, #1c2541 40%, #1e3a8a 75%, #3157D5 100%);
    color: #ffffff;
    padding: 4.5rem 0 3.5rem;
}
.doc-hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}
.doc-hero-orb-1 {
    top: -100px;
    right: -60px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
}
.doc-hero-orb-2 {
    bottom: -120px;
    left: -80px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
}
.doc-hero-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #e0e7ff;
    backdrop-filter: blur(10px);
}
.doc-hero-title {
    font-size: clamp(2.3rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.doc-gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a5b4fc 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.doc-hero-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
}
.doc-sidebar {
    position: sticky;
    top: 90px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    height: fit-content;
}
.doc-sidebar .nav-link {
    color: #475569;
    padding: 8px 14px;
    border-left: 3px solid transparent;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.doc-sidebar .nav-link:hover,
.doc-sidebar .nav-link.active {
    color: #3157D5;
    background: #eef2ff;
    border-left-color: #3157D5;
}
.doc-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.code-block {
    background: #0f172a;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    font-family: "Consolas", "Monaco", monospace;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 15px 0;
    line-height: 1.55;
    border: 1px solid #1e293b;
}
.code-block pre {
    margin: 0;
    font-family: inherit;
    white-space: pre-wrap;
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3157D5, #1e3a8a);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
}
.method {
    background: #f8fafc;
    border-left: 4px solid #3157D5;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.method h5 {
    color: #3157D5;
    font-weight: 700;
}
.api-endpoint {
    background: #f1f5f9;
    padding: 10px 15px;
    border-radius: 8px;
    font-family: monospace;
    margin: 10px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-weight: 600;
}
/* Search specific styles */
.search-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    color: #856404;
}
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}
.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
}
.search-result-item:hover {
    background-color: #f8f9fa;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-title {
    font-weight: 600;
    color: #007bff;
    margin-bottom: 5px;
}
.search-result-text {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}
.search-no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}
.search-result-count {
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.85rem;
    color: #6c757d;
}
.search-container {
    position: relative;
}
.search-clear {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    display: none;
}
.search-clear:hover {
    color: #dc3545;
}
.active-search-term {
    animation: highlightPulse 2s ease;
}
@keyframes highlightPulse {
    0% { background-color: #fff3cd; }
    100% { background-color: transparent; }
}
.config-option {
    margin-bottom: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 5px;
}
.config-option code {
    background: #e9ecef;
    padding: 2px 5px;
    border-radius: 3px;
}
.color-sample {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 5px;
    border: 1px solid #dee2e6;
}
/* Keyboard shortcuts specific styles */
.keyboard-shortcut {
    display: inline-block;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 4px;
    font-family: "Consolas", monospace;
    font-size: 0.9em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #495057;
}
.shortcut-table {
    width: 100%;
    border-collapse: collapse;
}
.shortcut-table th {
    background: #007bff;
    color: white;
    padding: 12px;
    text-align: left;
}
.shortcut-table td {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}
.shortcut-table tr:nth-child(even) {
    background-color: #f8f9fa;
}
.shortcut-table tr:hover {
    background-color: #e9ecef;
}
.shortcut-category {
    background: #e7f1ff;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 5px 5px 0;
}
.shortcut-category h5 {
    color: #007bff;
    margin-top: 0;
}

/* ═══════ Mobile tuning (added 2026-08-20) ═══════ */
@media (max-width: 575.98px) {
    /* 2.5rem (40px) side padding leaves too little room on a 360px screen. */
    .doc-content { padding: 1.25rem; }
    .code-block { padding: 14px; }
    .feature-icon { width: 48px; height: 48px; font-size: 20px; }
}
