/* Sidebar section spacing */
.sidebar-item-section {
    margin-top: 2rem !important;
}

.sidebar-item-section > .sidebar-item-container > .sidebar-item-text {
    font-weight: bold;
}

.sidebar-item-section .collapse {
    display: block !important;
}

.sidebar-item-toggle {
    display: none !important;
}



/* Fix heading inline code */
h1 code, h2 code, h3 code, h4 code {
    background: none;
    color: inherit;
}

/* Larger search results panel */
.aa-Panel,
#quarto-search-results .aa-Panel {
    max-width: 600px;
    font-size: 1rem;
}

/* Navbar bottom line and logo */
.navbar {
    border-bottom: 1px solid #EFF0F6;
}

.navbar .nav-link:hover {
    color: #B02102 !important;
}

.navbar .navbar-logo {
    height: 2.5rem !important;
    max-height: 2.5rem !important;
    margin-right: 0.75rem;
}

/* API item card headers */
.api-item-header {
    background-color: var(--bs-primary) !important;
}

.api-item-header h4 {
    margin: 0 !important;
    color: white !important;
    font-size: 1rem;
}

.api-item-header h4 code {
    color: white !important;
    background: none !important;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* DeckGL-specific styles */

/* Hero section styling */
.hero {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.25rem;
  color: #6c757d;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
}

.feature-card h3 {
  margin-top: 0;
  color: var(--bs-primary);
}

/* Code block enhancements */
.sourceCode {
  border-radius: 6px;
}

/* Layer type badges */
.layer-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

.layer-badge.core {
  background: #0d6efd;
  color: white;
}

.layer-badge.aggregation {
  background: #198754;
  color: white;
}

.layer-badge.composite {
  background: #6f42c1;
  color: white;
}

/* API reference tables */
.api-table {
  width: 100%;
  margin: 1rem 0;
}

.api-table th {
  background: var(--bs-tertiary-bg);
}

.api-table td code {
  white-space: nowrap;
}
