/* ============================================================================ */
   
  /* CSS Reset and Base Styles */
  

  /* Keep monospace fonts for code elements */
  code,
  pre,
  .code-block,
  .code-block *,
  .code-block pre,
  .code-block code {
    font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace !important;
    font-size: 14px !important;
    font-weight: 400 !important;
  }

  /* Main content area width */
  #main-content {
    max-width: 825px;
    margin: 0 auto;
  }

  /* Code blocks width */
  .code-block {
    max-width: 825px;
    margin: 0 auto;
  }

  /* Syntax highlighting removed */


  /* Responsive Classes */
  @media (min-width: 640px) {
    .sm\:px-4 {
      padding-left: 1rem;
      padding-right: 1rem;
    }

    .sm\:px-3 {
      padding-left: 0.75rem;
      padding-right: 0.75rem;
    }

    .sm\:py-6 {
      padding-top: 1.5rem;
      padding-bottom: 1.5rem;
    }

    .sm\:pt-24 {
      padding-top: 6rem;
    }

    .sm\:pb-16 {
      padding-bottom: 4rem;
    }

    .sm\:mb-6 {
      margin-bottom: 1.5rem;
    }

    .sm\:mb-8 {
      margin-bottom: 2rem;
    }

    .sm\:space-y-4>*+* {
      margin-top: 1rem;
    }

    .sm\:text-lg {
      font-size: 1.125rem;
    }

    .sm\:text-xl {
      font-size: 1.25rem;
    }

    .sm\:text-4xl {
      font-size: 2.25rem;
    }

    .sm\:w-45 {
      width: 2.8125rem;
    }

    .sm\:h-45 {
      height: 2.8125rem;
    }
  }

  @media (min-width: 768px) {
    .md\:block {
      display: block;
    }

    .md\:px-6 {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }

    .md\:pt-28 {
      padding-top: 7rem;
    }

    .md\:pb-20 {
      padding-bottom: 5rem;
    }

    .md\:text-xl {
      font-size: 1.25rem;
    }

    .md\:text-2xl {
      font-size: 1.5rem;
    }

    .md\:text-5xl {
      font-size: 3rem;
    }

    .md\:w-45 {
      width: 2.8125rem;
    }

    .md\:h-45 {
      height: 2.8125rem;
    }
  }

  @media (min-width: 1024px) {
    .lg\:px-6 {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }

    .lg\:space-y-6>*+* {
      margin-top: 1.5rem;
    }

    .lg\:space-y-8>*+* {
      margin-top: 2rem;
    }

    .lg\:text-3xl {
      font-size: 1.875rem;
    }
  }

  /* Hide margin-top on mobile */
  @media (max-width: 768px) {
    main {
      margin-top: 0;
    }
  }

  /* Section Separator */
  .section-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #d1d5db 20%, #9ca3af 50%, #d1d5db 80%, transparent 100%);
    margin: 2rem 0;
    border: none;
  }

  /* Table of Contents Styles */
  .toc-item {
    display: block;
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left;
    line-height: 1.4;
    margin-bottom: 4px;
  }

  .toc-item:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #111827;
    transform: translateX(2px);
  }

  .toc-item:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
  }

  /* TOC Dropdown Styles */
  #toc-dropdown {
    transition: all 0.3s ease;
  }

  #toc-dropdown.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }

  #toc-arrow.rotated {
    transform: rotate(180deg);
  }

  /* Responsive adjustments for TOC */
  @media (max-width: 1024px) {
    .toc-item {
      padding: 10px 12px;
      font-size: 14px;
    }
  }

  /* Code Block Styles - White background with Tomorrow Night syntax */
  .code-block {
    position: relative;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: white;
    box-shadow: none;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 825px;
    margin: 0 auto 1.5rem auto;
    overflow: hidden;
    font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    z-index: 1;
  }

  .code-block:hover {
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.05);
  }

  .code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #111827;
    background: #000000;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem 0.5rem 0 0;
    font-family: 'Manrope', sans-serif;
  }

  .code-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Manrope', sans-serif;
  }

  .code-dots {
    display: flex;
    gap: 0.25rem;
  }

  .code-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
  }

  .code-dot-red {
    background-color: #ef4444;
  }

  .code-dot-yellow {
    background-color: #eab308;
  }

  .code-dot-green {
    background-color: #22c55e;
  }

  .code-language {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: white;
    font-family: 'Manrope', sans-serif !important;
  }

  .code-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 1.75rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: black;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.8;
  }

  .copy-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .code-copy-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
  }

  .code-copy-btn.copied {
    background: rgba(34, 197, 94, 0.1) !important;
    color: #22c55e !important;
  }

  .code-content {
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 0 0 0.5rem 0.5rem;
    width: 100%;
    overflow: hidden;
  }

  .code-text {
    font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #7c3aed;
    white-space: pre-wrap;
    word-break: break-all;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
  }

  /* Tomorrow Night theme syntax highlighting colors */
  .code-text .token-keyword {
    color: #000000;
    /* Black - keywords like await, async, function, if, else */
    font-weight: 400;
  }

  .code-text .token-identifier {
    color: #000000;
    /* Black - variable names, function names */
    font-weight: 400;
  }

  .code-text .token-operator {
    color: #000000;
    /* Black - operators like +, -, =, ==, != */
    font-weight: 400;
    letter-spacing: 0.05em;
    /* Add spacing between characters for better readability */
  }

  .code-text .token-string {
    color: #000000;
    /* Black - strings in quotes */
    font-weight: 400;
  }

  .code-text .token-number {
    color: #000000;
    /* Black - numbers */
    font-weight: 400;
  }

  .code-text .token-comment {
    color: #000000 !important;
    /* Black - comments */
    font-style: italic;
    font-weight: 400;
    opacity: 0.9;
  }

  /* Additional comment token classes for Python and other languages */
  .code-text .token-comment-line,
  .code-text .token-comment-block,
  .code-text .token-hash,
  .code-text .token-single-line-comment {
    color: #000000 !important;
    /* Black - Python # comments and other comment types */
    font-style: italic;
    font-weight: 400;
    opacity: 0.9;
  }

  /* Force Python comments to be gray with higher specificity */
  .code-block .code-text .token-comment,
  .code-content .token-comment,
  .code-text span.token-comment {
    color: #000000 !important;
    font-style: italic !important;
    font-weight: 400 !important;
    opacity: 0.9 !important;
  }

  /* Target any span with comment-related classes */
  .code-text span[class*="comment"],
  .code-text span[class*="hash"],
  .code-text span[class*="python"] {
    color: #000000 !important;
    font-style: italic !important;
  }

  /* Override any existing styling for comments */
  .code-block span.token-comment,
  .code-content span.token-comment,
  .code-text span.token-comment,
  .code-block .token-comment,
  .code-content .token-comment,
  .code-text .token-comment {
    color: #000000 !important;
    font-style: italic !important;
    font-weight: 400 !important;
    opacity: 0.9 !important;
    background: none !important;
  }

  .code-text .token-function {
    color: #000000;
    /* Black - function calls */
    font-weight: 400;
  }

  .code-text .token-punctuation {
    color: #000000;
    /* Black - brackets, parentheses, semicolons, commas */
    font-weight: 400;
  }

  .code-text .token-boolean {
    color: #000000;
    /* Black - true, false */
    font-weight: 400;
  }

  .code-text .token-null {
    color: #000000;
    /* Black - null, undefined */
    font-weight: 400;
  }

  .code-text .token-regex {
    color: #000000;
    /* Black - regex patterns */
    font-weight: 400;
  }

  .code-text .token-template {
    color: #000000;
    /* Black - template literals */
    font-weight: 400;
  }

  .code-text .token-import {
    color: #000000;
    /* Black - import/export statements */
    font-weight: 400;
  }

  .code-text .token-class {
    color: #000000;
    /* Black - class names */
    font-weight: 400;
  }

  .code-text .token-annotation {
    color: #000000;
    /* Black - annotations, decorators */
    font-weight: 400;
  }

  .code-text .token-type {
    color: #000000;
    /* Black - type annotations */
    font-weight: 400;
  }

  /* Prism.js overrides removed */

  /* White background with Tomorrow Night syntax highlighting */
  .code-content {
    background: white !important;
    color: #1d1f21 !important;
  }

  .code-content pre {
    background: white !important;
    background-color: white !important;
    color: #1d1f21 !important;
  }

  .code-content code {
    background: white !important;
    background-color: white !important;
    color: #1d1f21 !important;
  }

  /* Additional syntax highlighting removed */

  /* Search and Language Toggle Styles */
  .search-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    /* justify-content: space-between; */
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .search-bar-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .search-input {
    height: 2.25rem;
    background: white;
    padding-left: 2.5rem;
    padding-right: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Geist', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  }

  .search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }

  .search-input::placeholder {
    color: #6b7280;
  }

  .search-icon {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #6b7280;
    pointer-events: none;
  }

  .search-results {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    max-height: 18rem;
    overflow: auto;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }

  .search-results.hidden {
    display: none;
  }

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

  .search-result-item {
    border-bottom: 1px solid #f3f4f6;
  }

  .search-result-item:last-child {
    border-bottom: none;
  }

  .search-result-btn {
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Geist', sans-serif;
    color: #111827;
  }

  .search-result-btn:hover {
    background: #f9fafb;
  }

  .language-toggle {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    background: white;
    padding: 0.25rem;
    height: 2.25rem;
    width: 100%;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  }

  .language-btn {
    height: 1.75rem;
    padding: 0 0.5rem;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Geist', sans-serif;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    flex: 1;
    border: none;
    cursor: pointer;
  }

  .language-btn.active {
    background: #000000;
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  }

  .language-btn:not(.active) {
    background: transparent;
    color: #6b7280;
  }

  .language-btn:not(.active):hover {
    background: #f3f4f6;
  }

  /* Section Styles */
  .section {
    margin-bottom: 1.5rem;
    scroll-margin-top: 5rem;
  }

  .section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Manrope', sans-serif;
    padding-bottom: 10px;
    position: relative;
  }

  .section-title::before {
    content: none;
    display: none;
  }

  /* TOC Content Title Typography */
  .toc-content-title-typography {
    font-family: 'Geist', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #404040;
  }

  /* New Language Toggle Design */
  .language-toggle-new-container {
    margin-bottom: 32px;
    margin-top: 10px;
    padding: 0 16px;
    background-color: white;
    transition: box-shadow 0.2s ease;
    position: relative;
  }

  .language-toggle-new-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background-color: #e5e7eb;
    z-index: 1;
  }

  .language-toggle-new-container:hover {
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
  }

  .language-toggle-new {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: center;
    padding-bottom: 8px;
    overflow-x: hidden;
  }

  .language-btn-new {
    background: none;
    border: none;
    padding: 8px 0;
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #9ca3af;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
  }

  .language-btn-new:hover {
    color: #6b7280;
  }

  .language-btn-new.active {
    color: #171717;
    font-weight: 600;
  }

  .language-btn-new.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #171717 !important;
    border-radius: 1px;
    z-index: 2;
  }

  /* Mobile responsive for new language toggle */
  @media (max-width: 768px) {
    .language-toggle-new-container {
      padding: 0 8px;
      margin-bottom: 24px;
      overflow-x: hidden;
      overflow-y: hidden;
      width: 100%;
      max-width: 100%;
      box-shadow: none !important;
      filter: none !important;
      text-shadow: none !important;
      border: none !important;
      outline: none !important;
      position: relative;
      z-index: 1;
    }

    .language-toggle-new-container:hover {
      box-shadow: none !important;
      filter: none !important;
      text-shadow: none !important;
      border: none !important;
      outline: none !important;
    }

    .language-toggle-new-container:focus {
      box-shadow: none !important;
      filter: none !important;
      text-shadow: none !important;
      border: none !important;
      outline: none !important;
    }

    .language-toggle-new-container:active {
      box-shadow: none !important;
      filter: none !important;
      text-shadow: none !important;
      border: none !important;
      outline: none !important;
    }

    .language-toggle-new {
      gap: 55px;
      overflow-x: hidden;
      padding-bottom: 6px;
      width: 100%;
      max-width: 100%;
      justify-content: center;
      flex-wrap: nowrap;
      box-shadow: none !important;
      filter: none !important;
      text-shadow: none !important;
    }

    .language-btn-new {
      font-size: 18px;
      white-space: nowrap;
      flex-shrink: 1;
      min-width: 0;
      box-shadow: none !important;
      filter: none !important;
      text-shadow: none !important;
      border: none !important;
      outline: none !important;
    }

    .language-btn-new:hover {
      box-shadow: none !important;
      filter: none !important;
      text-shadow: none !important;
      border: none !important;
      outline: none !important;
    }

    .language-btn-new:focus {
      box-shadow: none !important;
      filter: none !important;
      text-shadow: none !important;
      border: none !important;
      outline: none !important;
    }

    .language-btn-new:active {
      box-shadow: none !important;
      filter: none !important;
      text-shadow: none !important;
      border: none !important;
      outline: none !important;
    }

    /* Ensure active underline is black in mobile */
    .language-btn-new.active::after {
      background-color: #171717 !important;
      height: 2px !important;
      z-index: 2 !important;
    }

    /* Hide any potential scrollbars near language toggle */
    .language-toggle-new-container * {
      scrollbar-width: none !important;
      -ms-overflow-style: none !important;
    }

    .language-toggle-new-container *::-webkit-scrollbar {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }

    .language-toggle-new-container *::-webkit-scrollbar-track {
      display: none !important;
    }

    .language-toggle-new-container *::-webkit-scrollbar-thumb {
      display: none !important;
    }
  }

  /* Mobile styles for section titles */
  @media (max-width: 639px) {
    .section-title {
      font-size: 1.5rem;
      /* 24px - increased from 18px for better mobile readability */
    }
  }

  .section-description {
    font-size: 18px;
    color: #4b5563;
    line-height: 1.625;
    font-weight: 600;
    font-family: 'Geist', sans-serif;
  }

  /* Responsive adjustments */
  @media (min-width: 640px) {
    .search-container {
      flex-direction: row;
      align-items: center;
    }

    .search-bar-container {
      width: 16rem;
    }

    .language-toggle {
      width: 16rem;
    }

    .section-title {
      font-size: 1.25rem;
    }

    .section-description {
      font-size: 18px;
    }
  }

  @media (min-width: 768px) {
    .section-title {
      font-size: 1.5rem;
    }

    .section-description {
      margin-bottom: 1.25rem;
    }
  }

  @media (min-width: 1024px) {
    .section {
      margin-bottom: 2.25rem;
    }

    .section-title {
      font-size: 28px;
    }

    .section-description {
      margin-bottom: 1.5rem;
    }
  }

  /* TOC Sidebar Styles */
  .toc-toggle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    gap: 8px;
  }

  .toc-toggle-button:hover {
    background: #e9ecef;
    border-color: #dee2e6;
  }

  .toc-toggle-text {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    font-family: 'Geist', sans-serif;
  }

  .toc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 285px;
    height: 100vh;
    background: white;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
  }

  .toc-sidebar:not(.hidden) {
    transform: translateX(0);
  }

  .toc-sidebar.hidden {
    transform: translateX(-100%);
  }

  .toc-content {
    padding: 24px;
    height: 100%;
  }

  .toc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
  }

  .toc-title-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .toc-icon {
    flex-shrink: 0;
    margin-top: 2px;
  }

  .toc-title-text {
    flex: 1;
  }

  .toc-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.3;
    font-family: 'Geist', sans-serif;
  }

  .toc-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
    font-family: 'Geist', sans-serif;
  }

  .toc-close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
  }

  .toc-close-button:hover {
    background-color: #f3f4f6;
  }

  .toc-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .toc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: 'Geist', sans-serif;
  }

  .toc-item:hover {
    background-color: #f9fafb;
    transform: translateX(2px);
  }

  .toc-item:active {
    background-color: #e5e7eb;
    transform: translateX(1px);
  }

  .toc-item-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .toc-item-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
    flex: 1;
    font-family: 'Geist', sans-serif;
  }

  .toc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }

  .toc-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
  }

  .toc-overlay.hidden {
    opacity: 0;
    visibility: hidden;
  }

  /* Search container layout - consolidated */
  .search-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Add gap between TOC toggle and search/language section */
  .toc-toggle-button {
    margin-right: 4px !important;
  }

  .search-bar-container {
    flex: 1;
    max-width: 177px;
    min-width: 0;
    box-sizing: border-box;
    margin-right: 4px !important;
  }

  .language-toggle {
    flex: 1;
    max-width: 277px;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    box-sizing: border-box;
  }

  /* TOC toggle button in search container */
  .toc-toggle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    gap: 8px;
    flex-shrink: 0;
    height: 36px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }

  .toc-toggle-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .toc-toggle-text {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    font-family: 'Geist', sans-serif;
  }

  /* Mobile view - hide text, show only icon */
  @media (max-width: 768px) {
    .toc-toggle-button {
      padding: 8px;
      width: 36px;
      height: 36px;
      justify-content: center;
    }

    .toc-toggle-text {
      display: none;
    }

    .toc-toggle-button .mr-2 {
      margin-right: 0;
    }

    /* Mobile search container layout */
    .search-container {
      display: flex;
      flex-direction: row;
      align-items: center;
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      box-sizing: border-box;
      margin-bottom: 50px;
      margin-top: 20px;
    }

    .search-bar-container {
      flex: 1;
      max-width: none;
      min-width: 0;
      overflow: hidden;
      box-sizing: border-box;
    }

    .language-toggle {
      flex: 1;
      max-width: none;
      min-width: 0;
      height: 36px;
      overflow: hidden;
      box-sizing: border-box;
      margin-left: 20px !important;
    }

    .search-input {
      height: 36px;
      padding-left: 2rem;
      padding-right: 0.75rem;
      font-size: 14px;
      font-weight: 500;
      display: flex;
      align-items: center;
    }

    .search-icon {
      left: 0.5rem;
      width: 16px;
      height: 16px;
    }

    .language-btn {
      height: 28px;
      padding: 0 0.25rem;
      font-size: 15px;
      font-weight: 500;
      font-family: 'Geist', sans-serif;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .language-toggle {
      padding: 0.25rem;
      gap: 2px;
    }
  }

  /* Sidebar TOC: force consistent 16px text size */
  #toc-nav,
  #toc-nav a,
  #toc-nav span,
  #toc-nav li {
    font-size: 16px !important;
  }

  /* Cheatsheet TOC container */
  #toc-nav {
    max-height: calc(100vh - 160px);
    overflow: hidden;
    padding-right: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 19px;
  }

  /* TOC content area that scrolls */
  #toc-nav .toc-content {
    padding: 0 12px 0 12px;
    margin: 0;
    height: calc(100vh - 200px);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
  }

  /* Completely hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
  #toc-nav .toc-content::-webkit-scrollbar {
    width: 4px;
    background: transparent;
  }

  #toc-nav .toc-content::-webkit-scrollbar-track {
    background: transparent;
  }

  #toc-nav .toc-content::-webkit-scrollbar-thumb {
    background: transparent;
  }

  #toc-nav .toc-content::-webkit-scrollbar-button {
    display: none;
  }

  #toc-nav .toc-content::-webkit-scrollbar-track {
    background: transparent;
  }

  #toc-nav .toc-content::-webkit-scrollbar-thumb {
    background: #9CA3AF;
    border-radius: 2px;
    border: none;
  }

  #toc-nav .toc-content::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
  }

  /* Show scrollbar on hover for TOC content */
  #toc-nav .toc-content {
    scrollbar-width: thin; /* Firefox */
    -ms-overflow-style: auto; /* Internet Explorer 10+ */
  }

  #toc-nav .toc-content:hover::-webkit-scrollbar {
    width: 4px;
  }

  #toc-nav .toc-content:hover::-webkit-scrollbar-button {
    display: none;
  }

  #toc-nav .toc-content:hover::-webkit-scrollbar-track {
    background: transparent;
  }

  #toc-nav .toc-content:hover::-webkit-scrollbar-thumb {
    background: #9CA3AF;
    border-radius: 2px;
    border: none;
  }

  #toc-nav .toc-content:hover::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
  }

  /* Show scrollbar for WebKit browsers (Chrome, Safari, Edge) */
  #toc-nav::-webkit-scrollbar {
    width: 4px;
    background: transparent;
  }

  #toc-nav::-webkit-scrollbar-button {
    display: none;
  }

  #toc-nav::-webkit-scrollbar-track {
    background: transparent;
  }

  #toc-nav::-webkit-scrollbar-thumb {
    background: #9CA3AF;
    border-radius: 2px;
    border: none;
  }

  #toc-nav::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
  }

  /* Show scrollbar on hover */
  #toc-nav {
    scrollbar-width: thin;
    /* Firefox */
    -ms-overflow-style: auto;
    /* Internet Explorer 10+ */
  }

  #toc-nav:hover::-webkit-scrollbar {
    width: 4px;
  }

  #toc-nav:hover::-webkit-scrollbar-button {
    display: none;
  }

  #toc-nav:hover::-webkit-scrollbar-track {
    background: transparent;
  }

  #toc-nav:hover::-webkit-scrollbar-thumb {
    background: #9CA3AF;
    border-radius: 2px;
    border: none;
  }

  #toc-nav:hover::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
  }

/* Language toggle above TOC */
.language-toggle-container {
  width: 285px;
  position: sticky;
  top: 80px;
  z-index: 10;
}

/* Desktop specific positioning */
@media (min-width: 900px) {
  .language-toggle-container {
    top: 80px;
  }
}

.language-toggle {
  display: flex;
  width: 100%;
  padding: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.language-btn {
  flex: 1;
  padding: 6px 8px;
  border: none;
  background: #ffffff;
  color: #6B7280;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Geist', sans-serif;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.language-btn.active {
  background: #171717;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive language toggle */
@media (max-width: 768px) {
  .language-toggle-container {
    width: 100%;
    position: sticky;
    top: 56px;
    z-index: 10;
    padding: 0 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
  }

  .language-toggle {
    max-width: 285px;
    width: auto;
    margin: 0 auto;
    border-radius: 8px;
    height: 40px;
    padding: 4px;
  }
  
  .language-btn {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Geist', sans-serif;
    height: 32px;
    min-width: 60px;
  }

  /* Hide TOC table on mobile */
  #toc-nav {
    display: none !important;
  }

  #toc-nav .toc-content {
    padding: 32px 12px 0 12px;
    max-height: calc(100vh - 180px);
    gap: 16px;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .language-toggle-container {
    padding: 0 12px;
    display: flex;
    justify-content: center;
  }

  .language-toggle {
    height: 36px;
    padding: 3px;
    max-width: 330px;
    width: auto;
  }
  
  .language-btn {
    padding: 6px 8px;
    font-size: 13px;
    height: 30px;
    min-width: 50px;
  }

  .alternative-hero-section .language-toggle {
    max-width: 260px;
    height: 32px;
    width: auto;
  }

  .alternative-hero-section .language-btn {
    padding: 4px 8px;
    font-size: 12px;
    height: 26px;
    min-width: 45px;
  }

  /* Extra small mobile content spacing - very subtle */
  .section {
    margin-bottom: 30px !important;
  }

  .code-block {
    margin-bottom: 10px !important;
  }

  .code-block + h2,
  .code-block + h3,
  .code-block + h4 {
    margin-top: 14px !important;
  }

  .section p {
    margin-bottom: 20px !important;
  }

  .space-y-3 > * + * {
    margin-top: 14px !important;
  }
}

/* ==============================================
   CTA Banner Mobile Responsiveness
   ============================================== */

/* Mobile CTA Banner Styles */
@media (max-width: 768px) {
  .cta-banner-1 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 60px !important;
    margin-bottom: 80px !important;
    border-radius: 12px !important;
  }

  .cta-banner-1 .cta-content {
    padding: 1.5rem !important;
    height: auto !important;
    min-height: auto !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .cta-banner-1 .cta-text-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    text-align: center !important;
  }

  .cta-banner-1 .cta-title {
    font-size: 24px !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
    text-align: center !important;
  }

  .cta-banner-1 .cta-features {
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
    align-items: center !important;
  }

  .cta-banner-1 .cta-feature-item {
    margin-bottom: 0 !important;
    justify-content: center !important;
  }

  .cta-banner-1 .cta-feature-text {
    font-size: 14px !important;
    text-align: center !important;
  }

  .cta-banner-1 .cta-dino-image {
    display: none !important;
  }

  .cta-banner-1 .cta-button {
    position: static !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 16px !important;
    text-align: center !important;
    transform: none !important;
  }
}

/* Tablet and medium screens */
@media (min-width: 769px) and (max-width: 1024px) {
  .cta-banner-1 {
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .cta-banner-1 .cta-content {
    padding: 2rem !important;
  }

  .cta-banner-1 .cta-title {
    font-size: 28px !important;
  }

  .cta-banner-1 .cta-features {
    flex-direction: row !important;
    gap: 1.5rem !important;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .cta-banner-1 {
    margin-top: 40px !important;
    margin-bottom: 60px !important;
  }

  .cta-banner-1 .cta-content {
    padding: 1.25rem !important;
  }

  .cta-banner-1 .cta-title {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }

  .cta-banner-1 .cta-feature-text {
    font-size: 13px !important;
  }

  .cta-banner-1 .cta-button {
    padding: 0.625rem 1.25rem !important;
    font-size: 15px !important;
  }
}

.language-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
  color: #374151;
}

  /* Always show scrollbar track on supported browsers */
  #toc-nav::-webkit-scrollbar {
    width: 4px;
  }

  #toc-nav::-webkit-scrollbar-button {
    display: none;
  }

  #toc-nav::-webkit-scrollbar-thumb {
    background: #9CA3AF;
    border-radius: 2px;
    border: none;
  }

  #toc-nav::-webkit-scrollbar-track {
    background: transparent;
  }

  /* Active TOC item indicator - black line */
  #toc-nav .toc-link span.font-bold {
    position: relative;
  }

  #toc-nav .toc-link span.font-bold::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    width: 2px;
    height: 100%;
    background: #171717;
  }

  /* --- Code block appearance (Cheatsheet) - White background with Tomorrow Night syntax --- */
  .code-block {
    border: 1px solid #E5E7EB;
    /* light gray border */
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
    max-width: 825px;
    margin: 0 auto;
    z-index: 1;
  }

  .code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F5F5F5;
    /* light gray header bar */
    padding: 10px 12px;
    border-bottom: 1px solid #E5E7EB;
    font-family: 'Manrope', sans-serif;
  }

  .code-header-left {
    gap: 8px;
    font-family: 'Manrope', sans-serif;
  }

  .code-dots {
    display: none;
  }

  .code-language {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #171717;
    font-family: 'Manrope', sans-serif !important;
  }

  /* ============================================================================
   NEW COPY BUTTON STYLES
   ============================================================================ */

  .new-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 2rem;
    padding: 0 0.75rem;
    border-radius: 0.375rem;
    background: #ffffff;
    color: black;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Geist', sans-serif;
    border: 1px solid #d1d5db;
    cursor: pointer;
  }

  .new-copy-btn .copy-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .new-copy-btn .copy-text {
    font-size: 0.875rem;
    font-weight: 600;
  }

  /* Copying state */
  .new-copy-btn.copying {
    background: #ffffff;
    border-color: #d1d5db;
    color: black;
  }

  .new-copy-btn.copying .copy-icon {
    animation: spin 1s linear infinite;
  }

  /* Success state */
  .new-copy-btn.copied {
    background: #ffffff !important;
    border-color: #d1d5db !important;
    color: #22c55e !important;
  }

  .new-copy-btn.copied .copy-icon {
    animation: none;
  }

  /* Failed state */
  .new-copy-btn.copy-failed {
    background: #ffffff !important;
    border-color: #d1d5db !important;
    color: #ef4444 !important;
  }

  /* Animations */
  @keyframes spin {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(360deg);
    }
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .new-copy-btn {
      height: 1.75rem;
      padding: 0 0.5rem;
      font-size: 0.8rem;
    }

    .new-copy-btn .copy-icon {
      width: 14px;
      height: 14px;
    }
  }

  .code-content {
    background: #ffffff;
    padding: 16px;
  }

  .code-text {
    margin: 0;
    font-size: 16px;
    /* readable like screenshot */
    line-height: 1.6;
    overflow: auto;
    white-space: pre;
  }

/* Force remove box shadow from search container - highest priority */
.alternative-hero-section .cs-search,
.alternative-hero-section .cs-search *,
.alternative-hero-section .cs-search:hover,
.alternative-hero-section .cs-search:focus,
.alternative-hero-section .cs-search:active,
.alternative-hero-section .cs-search:focus-within,
.alternative-hero-section .cs-search-input,
.alternative-hero-section .cs-search-input:hover,
.alternative-hero-section .cs-search-input:focus,
.alternative-hero-section .cs-search-input:active,
.alternative-hero-section .cs-search-btn,
.alternative-hero-section .cs-search-btn:hover,
.alternative-hero-section .cs-search-btn:focus,
.alternative-hero-section .cs-search-btn:active {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  -moz-filter: none !important;
}

/* Nuclear option - remove all shadows from the entire hero section */
.alternative-hero-section * {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

/* Maximum specificity override for search container */
div.alternative-hero-section div.cs-search[role="search"] {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  -moz-filter: none !important;
}

/* Override any possible inline styles */
div.alternative-hero-section div.cs-search[role="search"][style*="box-shadow"] {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

/* Cheatsheet hero search bar - transparent background, fixed size */
.alternative-hero-section .cs-search {
  width: 510px;
  height: 48px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  border-radius: 8px;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  position: relative;
  z-index: 10001;
}

.alternative-hero-section .cs-search-input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 0;
  outline: none;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 14px;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
}

* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
  -ms-overflow-style: none;

  /* IE and Edge */
  scrollbar-width: none;
}

/* Search Results Dropdown */
.cs-search-results {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  width: 510px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  overflow: visible;
}

.cs-search-results.hidden {
  display: none;
}

.cs-search-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}

.cs-search-results-list::-webkit-scrollbar {
  width: 0px;
}

.cs-search-results-list::-webkit-scrollbar-button {
  display: none;
}

.cs-search-results-list::-webkit-scrollbar-track {
  background: transparent;
}

.cs-search-results-list::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 3px;
  border: none;
}

.cs-search-results-list::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

.cs-search-result-item {
  border-bottom: 1px solid #f0f0f0;
}

.cs-search-result-item:first-child .cs-search-result-btn {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.cs-search-result-item:last-child {
  border-bottom: none;
}

.cs-search-result-item:last-child .cs-search-result-btn {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.cs-search-result-btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  color: #000000 !important;
}

.cs-search-result-btn:hover {
  background-color: #f8f9fa;
}

.cs-search-result-btn:focus {
  outline: none;
  background-color: #e9ecef;
}

.cs-search-result-btn.active {
  background-color: #e9ecef;
  font-weight: 600;
}

.cs-search-result-btn span {
  color: #000000 !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .cs-search-results {
    width: 90vw;
    max-width: 90vw;
  }

  /* Make search bar responsive on mobile */
  .alternative-hero-section .cs-search {
    width: 100%;
    max-width: 90vw;
    margin: 0 auto;
  }

  /* Ensure search input is properly sized on mobile */
  .alternative-hero-section .cs-search-input {
    font-size: 16px;
    /* Prevent zoom on iOS */
  }

  /* Language toggle mobile styles in hero section */
  .alternative-hero-section .language-toggle-container {
    width: 100%;
    max-width: 90vw;
    margin: 16px auto 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
  }

  .alternative-hero-section .language-toggle {
    width: auto;
    max-width: 330px;
    margin: 0 auto;
    height: 36px;
    padding: 3px;
  }

  .alternative-hero-section .language-btn {
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    height: 30px;
    min-width: 50px;
  }

  /* Mobile content spacing - subtle improvements only */
  .section {
    margin-bottom: 20px !important;
  }

  /* Add small gap after code blocks for better readability */
  .code-block {
    margin-bottom: 12px !important;
  }
}
/* Responsive Hero Section Styling */
@media (width <=1100px) {
  .hero-section {
    background: linear-gradient(150.3deg, #8E3A53 0%, #00317B 28.28%, #141E26 78.27%) !important;
/* Remove box shadow on all states */
.alternative-hero-section .cs-search,
.alternative-hero-section .cs-search:hover,
.alternative-hero-section .cs-search:focus,
.alternative-hero-section .cs-search:active,
.alternative-hero-section .cs-search:focus-within {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

/* Also target the input element specifically */
.alternative-hero-section .cs-search-input,
.alternative-hero-section .cs-search-input:hover,
.alternative-hero-section .cs-search-input:focus,
.alternative-hero-section .cs-search-input:active {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.alternative-hero-section .cs-search-input::placeholder,
.alternative-hero-section .cs-search-input::-webkit-input-placeholder,
.alternative-hero-section .cs-search-input::-moz-placeholder,
.alternative-hero-section .cs-search-input:-ms-input-placeholder {
  color: #FFFFFF;
  font-size: 14px;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
}

.alternative-hero-section .cs-search-btn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border: 0;
  background: #ffffff;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.alternative-hero-section .cs-search-btn img {
  width: 45px;
  height: 45px;
  display: block;
}

/* Search container wrapper to allow dropdown overflow */
.alternative-hero-section div[style*="position: relative"] {
  overflow: visible !important;
  z-index: 100000 !important;
}
  }
}

  /* Add small gap after code blocks for better readability */
  .code-block {
    margin-bottom: 12px !important;
  }