/* Load documentation styles */
/* ==================== DOCUMENTATION STYLES ==================== */
/* Elegant, sober styling for Colombia Soundmap documentation */
:root {
    --doc-color-primary: #2c3e50;
    --doc-color-secondary: #34495e;
    --doc-color-accent: #3498db;
    --doc-color-text: #2c3e50;
    --doc-color-text-light: #7f8c8d;
    --doc-color-background: #ffffff;
    --doc-color-background-alt: #f8f9fa;
    --doc-color-border: #e9ecef;
    --doc-color-border-light: #f1f3f4;
    
    --doc-font-family: 'darkmode-on', Georgia, 'Times New Roman', Times, serif;
    --doc-font-family-mono: 'SF Mono', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    
    --doc-spacing-xs: 0.5rem;
    --doc-spacing-sm: 1rem;
    --doc-spacing-md: 1.5rem;
    --doc-spacing-lg: 2rem;
    --doc-spacing-xl: 3rem;
    
    --doc-border-radius: 0.375rem;
    --doc-shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --doc-shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
/* Base typography */
html {
    font-size: 16px;
    line-height: 1.6;
}
body {
    font-family: var(--doc-font-family);
    color: var(--doc-color-text);
    background-color: var(--doc-color-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Main content container */
.doc-content,
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--doc-spacing-xl) var(--doc-spacing-lg);
    line-height: 1.7;
}
@media (max-width: 768px) {
    .doc-content,
    .content-wrapper {
        padding: var(--doc-spacing-lg) var(--doc-spacing-md);
    }
}
/* Header styling */
.doc-header {
    text-align: center;
    margin-bottom: var(--doc-spacing-xl);
    padding-bottom: var(--doc-spacing-lg);
    border-bottom: 2px solid var(--doc-color-border-light);
}
.doc-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--doc-color-primary);
    margin: 0 0 var(--doc-spacing-sm) 0;
    letter-spacing: -0.025em;
}
.doc-subtitle {
    font-size: 1.125rem;
    color: var(--doc-color-text-light);
    font-weight: 400;
    margin: 0;
    font-style: italic;
}
/* Section styling */
.doc-section {
    margin-bottom: var(--doc-spacing-xl);
}
.doc-section:last-child {
    margin-bottom: 0;
}
/* Typography */
h2 {
    font-size: 1.875rem;
    font-weight: 400;
    color: var(--doc-color-primary);
    margin: var(--doc-spacing-lg) 0 var(--doc-spacing-md) 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
h3 {
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--doc-color-secondary);
    margin: var(--doc-spacing-md) 0 var(--doc-spacing-sm) 0;
    line-height: 1.4;
}
p {
    margin: var(--doc-spacing-sm) 0;
    color: var(--doc-color-text);
    font-size: 1rem;
    line-height: 1.7;
}
/* Lists */
ul, ol {
    margin: var(--doc-spacing-sm) 0;
    padding-left: var(--doc-spacing-lg);
}
li {
    margin: var(--doc-spacing-xs) 0;
    line-height: 1.6;
}
ul li {
    list-style-type: disc;
}
/* Special list styles */
.equipment-list li {
    margin: var(--doc-spacing-sm) 0;
    padding: var(--doc-spacing-xs) 0;
}
/* Specification table */
.spec-table {
    background: var(--doc-color-background-alt);
    border: 1px solid var(--doc-color-border);
    border-radius: var(--doc-border-radius);
    padding: var(--doc-spacing-md);
    margin: var(--doc-spacing-md) 0;
}
.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--doc-spacing-xs) 0;
    border-bottom: 1px solid var(--doc-color-border-light);
}
.spec-row:last-child {
    border-bottom: none;
}
.spec-label {
    font-weight: 500;
    color: var(--doc-color-secondary);
    font-size: 0.9rem;
}
.spec-value {
    font-family: var(--doc-font-family-mono);
    font-size: 0.875rem;
    color: var(--doc-color-accent);
    font-weight: 500;
}
/* Tech stack grid */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--doc-spacing-lg);
    margin: var(--doc-spacing-md) 0;
}
.tech-category {
    background: var(--doc-color-background-alt);
    border: 1px solid var(--doc-color-border);
    border-radius: var(--doc-border-radius);
    padding: var(--doc-spacing-md);
}
.tech-category h3 {
    margin-top: 0;
    color: var(--doc-color-primary);
    font-size: 1.125rem;
}
.tech-category ul {
    margin-bottom: 0;
}
.tech-category li {
    font-size: 0.9rem;
    line-height: 1.5;
}
/* Contribution methods */
.contribution-methods {
    display: grid;
    gap: var(--doc-spacing-lg);
    margin: var(--doc-spacing-md) 0;
}
.contribution-item {
    background: var(--doc-color-background-alt);
    border-left: 4px solid var(--doc-color-accent);
    padding: var(--doc-spacing-md);
    border-radius: 0 var(--doc-border-radius) var(--doc-border-radius) 0;
}
.contribution-item h3 {
    margin-top: 0;
    color: var(--doc-color-primary);
    font-size: 1.125rem;
}
.contribution-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}
/* Guide items */
.guide-item {
    margin: var(--doc-spacing-lg) 0;
    padding: var(--doc-spacing-md);
    background: var(--doc-color-background-alt);
    border-radius: var(--doc-border-radius);
    border: 1px solid var(--doc-color-border);
}
.guide-item h3 {
    margin-top: 0;
    color: var(--doc-color-primary);
    font-size: 1.125rem;
}
.guide-item p:last-child,
.guide-item ul:last-child {
    margin-bottom: 0;
}
/* Contact info */
.contact-info {
    background: var(--doc-color-background-alt);
    border: 1px solid var(--doc-color-border);
    border-radius: var(--doc-border-radius);
    padding: var(--doc-spacing-md);
    margin: var(--doc-spacing-md) 0;
}
.contact-info p {
    margin: var(--doc-spacing-xs) 0;
    font-size: 0.95rem;
}
.contact-info p:last-child {
    margin-bottom: 0;
}
/* Emphasis and strong text */
strong {
    font-weight: 600;
    color: var(--doc-color-secondary);
}
em {
    font-style: italic;
    color: var(--doc-color-text-light);
}
/* Links */
a {
    color: var(--doc-color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}
a:hover {
    border-bottom-color: var(--doc-color-accent);
}
/* Code elements */
code {
    font-family: var(--doc-font-family-mono);
    font-size: 0.875rem;
    background: var(--doc-color-background-alt);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    color: var(--doc-color-secondary);
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .doc-header h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
    }
    
    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--doc-spacing-xs);
    }
}
/* Print styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .doc-content {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .doc-header {
        border-bottom: 2px solid #000;
    }
    
    h2 {
        page-break-after: avoid;
    }
    
    .doc-section {
        page-break-inside: avoid;
    }
}
/* ==================== BASE LAYOUT ==================== */
/* Language switcher at extreme right */
.language-switcher-container {
    margin-left: 8px;
}
.language-trigger calcite-button {
    min-width: auto;
    padding: 4px 8px;
}
.tutorial-trigger calcite-button {
    min-width: auto;
    padding: 4px 8px;
}
.share-button {
    background: transparent;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #374151;
    transition: background-color 0.2s ease;
}
.share-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
.share-button svg {
    color: #374151;
    stroke: #374151;
}
/* Language dropdown styling to match hamburger menu */
#language-dropdown {
    --calcite-color-background: #ffffff !important;
    --calcite-color-foreground-1: #ffffff !important;
    --calcite-color-foreground-2: #f8f9fa !important;
    --calcite-color-text-1: #151515 !important;
    --calcite-color-text-2: #374151 !important;
    --calcite-color-border-3: #e5e7eb !important;
}
/* Ensure navigation right section uses flexbox for proper alignment */
.navigation-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* ==================== DOCUMENTATION SHELL PANEL ==================== */
/* Documentation panel styling */
#documentation-panel {
    --calcite-color-background: #ffffff;
    --calcite-color-foreground-1: #f8f9fa;
    --calcite-color-text-1: #2c3e50;
}
.docs-panel-header {
    padding: 8px 16px;
    border-bottom: 1px solid var(--calcite-color-border-3);
}
.docs-panel-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
/* Documentation menu */
.docs-menu {
    padding: 8px;
    border-bottom: 1px solid var(--calcite-color-border-3);
}
#docs-menu-list {
    margin: 0;
}
.doc-menu-item {
    cursor: pointer;
}
.doc-menu-item:hover {
    background-color: var(--calcite-color-foreground-2);
}
.doc-menu-item[selected] {
    background-color: var(--calcite-color-brand);
    color: white;
}
/* Documentation viewer */
.docs-viewer {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--calcite-color-background);
}
.docs-placeholder {
    text-align: center;
    padding: 2rem;
    color: var(--calcite-color-text-3);
}
.docs-placeholder calcite-icon {
    margin-bottom: 1rem;
    opacity: 0.5;
}
.docs-placeholder p {
    margin: 0;
    font-size: 0.875rem;
}
.docs-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 2rem;
}
.docs-error {
    padding: 1rem;
}
/* Documentation content styling within the panel */
.docs-viewer .doc-content-wrapper {
    padding: 0;
    max-width: none;
}
.docs-viewer .doc-content-wrapper .content-wrapper {
    padding: 0;
    max-width: none;
    line-height: 1.6;
}
.docs-viewer .doc-content-wrapper h1 {
    font-size: 1.75rem;
    margin: 0 0 1.5rem 0;
    color: var(--calcite-color-text-1);
    font-weight: 500;
}
.docs-viewer .doc-content-wrapper h2 {
    font-size: 1.375rem;
    margin: 2rem 0 1rem 0;
    color: var(--calcite-color-text-1);
    font-weight: 500;
}
.docs-viewer .doc-content-wrapper p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    color: var(--calcite-color-text-1);
}
.docs-viewer .doc-content-wrapper em {
    font-style: italic;
    color: var(--calcite-color-text-2);
}
.docs-viewer .doc-content-wrapper strong {
    font-weight: 600;
    color: var(--calcite-color-text-1);
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .docs-panel-content {
        flex-direction: column;
    }
    
    .docs-menu {
        border-bottom: 1px solid var(--calcite-color-border-3);
        border-right: none;
    }
    
    .docs-viewer {
        padding: 12px;
    }
    
    .docs-viewer .doc-content-wrapper h1 {
        font-size: 1.5rem;
    }
    
    .docs-viewer .doc-content-wrapper h2 {
        font-size: 1.25rem;
    }
}
/* ==================== BASE LAYOUT ==================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    font-family: 'darkmode-on', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}
/* Map on bottom layer - always visible */
#map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}
/* ==================== LEAFLET MAP STYLES ==================== */
/* Override default Leaflet control styles to match our design */
.leaflet-control-container {
    display: none; /* Hide default Leaflet controls - we use custom ones */
}
/* Custom marker cluster styles */
.marker-cluster {
    background-color: rgba(181, 226, 140, 0.6);
    border: 2px solid rgba(181, 226, 140, 0.8);
    border-radius: 20px;
    text-align: center;
    color: #333;
    font-weight: bold;
    font-size: 12px;
    width: 40px;
    height: 40px;
    line-height: 36px;
}
.marker-cluster-small {
    background-color: rgba(181, 226, 140, 0.6);
    border-color: rgba(181, 226, 140, 0.8);
}
.marker-cluster-medium {
    background-color: rgba(241, 211, 87, 0.6);
    border-color: rgba(241, 211, 87, 0.8);
}
.marker-cluster-large {
    background-color: rgba(253, 156, 115, 0.6);
    border-color: rgba(253, 156, 115, 0.8);
}
/* Custom marker styles - minimal base styling */
.custom-marker {
    cursor: pointer;
}
/* Custom marker styling is handled inline by JavaScript for precise control */
/* Selected state styling is handled by JavaScript icon recreation */
.custom-marker.playback div {
    /* Playback animation will be handled by JavaScript */
    animation: marker-pulse 2s infinite;
}
@keyframes marker-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}
/* ==================== SHELL STRUCTURE ==================== */
/* UI layer on top - transparent background */
calcite-shell {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent !important;
    --calcite-shell-header-height: 49px; /* Match SAB width */
    pointer-events: none; /* Allow clicks to pass through to map */
}
/* Re-enable pointer events on interactive elements */
calcite-shell-header,
calcite-shell-panel,
.map-controls,
.bottom-action-bar {
    pointer-events: auto;
}
/* ==================== HEADER STYLES ==================== */
/* Header: full width, 50px height */
calcite-shell-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 25;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    background: #ffffff;
    border-bottom: 1px solid #d4d4d8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
/* Custom navigation to control exact height */
.custom-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 50px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    position: relative; /* Add positioning context for hamburger menu */
}
.navigation-left {
    display: flex;
    align-items: center;
    height: 50px;
    gap: 0;
    flex: 1;
}
.navigation-right {
    display: flex;
    align-items: center;
    height: 50px;
    padding-right: 16px;
    gap: 8px;
}
#share-button {
    min-width: auto;
    padding: 4px 8px;
}
/* Unified menu button spanning hamburger icon + title */
.unified-menu-button {
    display: flex;
    align-items: center;
    height: 50px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.unified-menu-button:hover {
    background: rgba(59, 130, 246, 0);
}
/* Hamburger icon section */
.hamburger-icon {
    width: 50px;
    height: 50px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}
.unified-menu-button:hover .hamburger-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
/* Title section */
.unified-menu-button .app-title {
    font-size: 16px;
    font-weight: 500;
    color: #151515;
    height: 49px;
    display: flex;
    align-items: center;
    padding-left: 12px;
}
/* ==================== SIDE ACTION BAR STYLES ==================== */
/* SAB: 50px wide, fills space between header and BAB (always visible) */
calcite-shell-panel[position="start"] {
    margin-top: 50px; /* Account for header */
    height: calc(100vh - 100px); /* Full height minus header (50px) and BAB (50px) - BAB always visible */
    z-index: 20;
    transition: height 0.3s ease;
}
/* Dynamic adjustment when bottom panel is expanded */
calcite-shell-panel[position="start"].bottom-panel-expanded {
    height: calc(100vh - 50px - 50px - 22vh); /* header + BAB + panel (22vh) */
}
/* Action bar inside shell panel should be exactly 50px wide */
calcite-shell-panel[position="start"] calcite-action-bar {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
}
/* Ensure action items are properly styled */
calcite-shell-panel calcite-action {
    color: #6b7280;
    --calcite-action-background-color-active: rgba(59, 130, 246, 0.1);
    --calcite-action-color-active: #3b82f6;
}
calcite-shell-panel calcite-action[active] {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
    border-left: 2px solid #3b82f6 !important;
}
/* ==================== BOTTOM ACTION BAR ==================== */
.bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 50px;
    z-index: 30;
    background: #2b2b2b;
    border-top: 1px solid #333333;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    /* Always visible - no transform */
    transform: translateY(0);
    transition: none;
}
.bottom-action-bar calcite-action-bar {
    height: 50px;
    background: transparent;
    border: none;
    box-shadow: none;
}
/* Remove the visible class behavior since BAB is always visible */
/* BAB Actions disabled state when no marker selected */
.bottom-action-bar.no-marker calcite-action {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}
.bottom-action-bar.no-marker calcite-action calcite-icon {
    opacity: 0.4;
}
/* BAB Actions styled like SAB */
.bottom-action-bar calcite-action {
    color: #6b7280;
    --calcite-action-background-color-active: rgba(59, 130, 246, 0.1);
    --calcite-action-color-active: #3b82f6;
}
.bottom-action-bar calcite-action[active] {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
    border-left: 2px solid #3b82f6 !important;
}
/* Panel collapse button - 5th icon in BAB */
.bottom-action-bar .panel-collapse-btn {
    color: #6b7280 !important;
}
.bottom-action-bar .panel-collapse-btn:hover {
    color: #3b82f6 !important;
}
/* ==================== MAP CONTROLS ACTION PAD ==================== */
.map-controls-container {
    position: fixed;
    top: 50vh; /* Centered vertically */
    transform: translateY(-50%); /* Perfect center alignment */
    right: 1vw;
    z-index: 30;
    pointer-events: auto;
}
.map-controls-container calcite-action-pad {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
/* Simple Basemap Dropdown */
#basemap-dropdown {
    --calcite-dropdown-width: 200px;
}
.basemap-option {
    cursor: pointer;
}
/* Clustering controls */
.clustering-controls {
    padding: 16px;
    width: 280px;
}
.clustering-presets {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* ==================== BAB SYSTEM ==================== */
/* BAB Fixed Footer (outside shell) */
.bab-fixed-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 50px !important;
    z-index: 1000 !important;
    background: #2b2b2b;
    border-top: 1px solid #444;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Mobile viewport fixes */
    transform: translateZ(0) !important; /* Force hardware acceleration */
    -webkit-transform: translateZ(0) !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Prevent any layout shifts */
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    /* Isolate from Calcite Shell positioning */
    contain: layout style !important;
    isolation: isolate !important;
    /* Override any Calcite transforms */
    transform-origin: center bottom !important;
}
/* BAB Action Bar (Fixed Footer) */
.bab-footer-bar {
    height: 50px !important;
    width: auto;
    max-width: fit-content;
    background: #2b2b2b;
    border-top: 1px solid #444;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}
/* Center the actions within the Calcite action bar */
.bab-footer-bar {
    --calcite-action-bar-items-space: center;
    display: flex !important;
    justify-content: center !important;
}
/* Disable BAB actions when no marker is selected */
.bab-fixed-footer.no-marker calcite-action {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}
.bab-fixed-footer.no-marker calcite-action:hover {
    opacity: 0.3;
}
/* BAB Bottom Panel (Independent - True 100vw) */
.bab-bottom-panel {
    position: fixed !important;
    bottom: 50px !important; /* Dock directly to the BAB height */
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important; /* Full viewport width */
    height: 22vh !important; /* Consistent height for all actions */
    margin: 0 !important;
    padding: 0 !important;
    background: #2b2b2b;
    border-top: 1px solid #444;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999; /* Below BAB but above other content */
    box-sizing: border-box !important;
    transform: translateY(100%); /* Hidden by default */
    opacity: 0;
}
/* Show state for bottom panel */
.bab-bottom-panel.visible {
    transform: translateY(0);
    opacity: 1;
}
/* BAB Content Panel styling */
.bab-content-panel {
    width: 100% !important;
    height: 100% !important;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
/* Panel content containers should be full width and height */
.spectrogram-container,
.waveform-container,
.equalizer-container,
#realtime-spectrogram-container {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    box-sizing: border-box !important;
}
/* Adjust main content to account for fixed footer */
calcite-shell {
    padding-bottom: 50px;
}
/* Panel content sections */
.panel-content {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
/* Spectrogram container - fills entire panel */
.spectrogram-container {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    height: 250px; /* Full panel height - no header */
    background: #1a1a1a;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
}
/* Static spectrogram (24h image) - fills container completely */
.static-spectrogram {
    position: absolute;
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
}
/* Time scale overlay - superposed on spectrogram */
.time-scale {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    z-index: 5;
    box-sizing: border-box;
}
/* Time markers for 24h spectrogram */
.time-marker {
    position: absolute;
    top: 2px;
    font-size: 11px;
    color: #d1d5db;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.hour-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.hour-stroke {
    width: 1px;
    background: #ffffff;
    opacity: 0.8;
}
.major-stroke {
    height: 8px;
    opacity: 1;
    width: 2px;
}
.minor-stroke {
    height: 4px;
    opacity: 0.6;
}
.hour-label {
    color: #ffffff;
    font-size: 12px;
    font-family: 'darkmode-on', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-top: 1px;
    line-height: 1;
}
/* ==================== CUSTOM BAB ICONS ==================== */
/* Icons are now handled via inline SVG in HTML - no CSS overrides needed */
/* ==================== RESPONSIVE BAB COLLAPSE ==================== */
/* Automatically collapse BAB when viewport is too narrow for labels */
@media (max-width: 768px) {
    /* BAB expand/collapse behavior now handled by JavaScript */

    /* Mobile-specific BAB fixes */
    .bab-fixed-footer {
        /* Use viewport units for mobile consistency */
        bottom: 0 !important;
        height: 50px !important;
        /* Prevent iOS Safari bottom bar interference */
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        /* Ensure it stays above mobile browser UI */
        position: fixed !important;
        z-index: 2147483647 !important; /* Maximum z-index */
        /* Prevent touch scrolling effects */
        touch-action: none;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    /* Bottom panel adjustments for mobile */
    .bab-bottom-panel {
        bottom: calc(50px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 2147483646 !important; /* Just below BAB */
    }

    /* ==================== MOBILE INFO PANEL RESPONSIVE STYLES ==================== */

    /* Calcite Shell Panel - reduce width to 35vw on mobile and make height dynamic */
    calcite-shell-panel[position="start"] {
        --calcite-shell-panel-width: 35vw !important;
        --calcite-shell-panel-max-width: 35vw !important;
        --calcite-shell-panel-min-width: 35vw !important;
        width: 35vw !important;
        max-width: 35vw !important;
        min-width: 35vw !important;
        height: auto !important;
        max-height: calc(100vh - 120px) !important; /* Leave space for header and BAB */
        bottom: auto !important;
        top: 0 !important; /* Stick to header */
        position: absolute !important;
    }

    /* Override the resizable separator constraints */
    calcite-shell-panel[position="start"] .separator {
        display: none !important;
    }

    /* Force the panel content area to respect our mobile width and height */
    calcite-shell-panel[position="start"] calcite-panel {
        width: 35vw !important;
        max-width: 35vw !important;
        min-width: 35vw !important;
        height: auto !important;
        flex: none !important;
    }

    /* Target shadow DOM content through CSS custom properties and direct selectors */
    calcite-panel {
        --calcite-panel-content-space: 8px !important;
        --calcite-panel-header-font-size: 14px !important;
    }

    /* Info panel content - reduce font sizes and padding */
    #info-content {
        padding: 8px !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    /* Reduce title size */
    #info-content h3 {
        font-size: 14px !important;
        margin: 0 0 4px 0 !important;
        line-height: 1.2 !important;
    }

    /* Reduce date size */
    #info-content div[style*="color: #d1d5db"] {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }

    /* Reduce coordinates and ecosystem info size */
    #info-content div[style*="background: rgba(255, 255, 255, 0.1)"] {
        padding: 8px !important;
        margin-bottom: 8px !important;
    }

    #info-content div[style*="background: rgba(255, 255, 255, 0.1)"] span {
        font-size: 11px !important;
    }

    /* Reduce image container size */
    #info-content div[style*="aspect-ratio: 4/3"] {
        margin-bottom: 8px !important;
    }

    /* Reduce calcite icon size in info blocks */
    #info-content calcite-icon {
        --calcite-icon-size: 12px !important;
    }

}
/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .bab-fixed-footer {
        /* Force layer composition on iOS */
        will-change: transform;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        /* Handle iOS address bar changes */
        bottom: 0 !important;
        position: fixed !important;
    }
}
/* Android Chrome specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .bab-fixed-footer {
        /* Ensure consistent positioning on Android */
        position: fixed !important;
        bottom: 0 !important;
        min-height: 50px !important;
        max-height: 50px !important;
    }
}
/* Also handle medium screens */
@media (max-width: 900px) {
    .bottom-action-bar.collapsed calcite-action-bar {
        --calcite-action-bar-expanded: false;
    }
    
    .bottom-action-bar.collapsed calcite-action {
        --calcite-action-text-visible: hidden;
    }
}
/* Spectrogram image - stretch to fill entire space */
.spectrogram-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    object-fit: fill; /* Stretch to fill entire container */
    display: block;
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
}
/* Time indicator line - dynamically positioned */
.time-indicator {
    position: absolute;
    top: 0;
    left: 0%;
    width: 2px;
    height: 100%;
    background: #22d3ee;
    z-index: 10;
    pointer-events: none;
    opacity: 0.8;
    box-shadow: 0 0 4px rgba(34, 211, 238, 0.5);
    transition: left 1s ease;
}
/* Real-time spectrogram canvas */
.realtime-spectrogram {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.realtime-canvas {
    width: 100%;
    height: 100%;
    background: #000000;
}
/* Custom waveform icon */
#waveform-action calcite-icon {
    --calcite-ui-icon-color: currentColor;
}
/* ==================== HAMBURGER MENU STYLES ==================== */
#hamburger-menu {
    --calcite-color-background: #ffffff !important;
    --calcite-color-foreground-1: #ffffff !important;
    --calcite-color-foreground-2: #f8f9fa !important;
    --calcite-color-text-1: #151515 !important;
    --calcite-color-text-2: #374151 !important;
    --calcite-color-border-3: #e5e7eb !important;
}
#hamburger-menu .unified-menu-button {
    display: flex;
    align-items: center;
    height: 50px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
#hamburger-menu .unified-menu-button:hover {
    background: rgba(59, 130, 246, 0.1);
}
#hamburger-menu .hamburger-icon {
    width: 50px;
    height: 50px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}
#hamburger-menu .unified-menu-button:hover .hamburger-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
#hamburger-menu .app-title {
    font-size: 16px;
    font-weight: 500;
    color: #151515;
    height: 49px;
    display: flex;
    align-items: center;
    padding-left: 12px;
}
/* Force dropdown content to be white */
#hamburger-menu calcite-dropdown-group {
    background: #ffffff !important;
}
#hamburger-menu calcite-dropdown-item {
    background: #ffffff !important;
    color: #151515 !important;
    --calcite-color-background: #ffffff !important;
    --calcite-color-text-1: #151515 !important;
}
#hamburger-menu calcite-dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1) !important;
}
#waveform-action calcite-icon::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M1 8h1v1H1V8zm2-2h1v5H3V6zm2-3h1v7H5V3zm2-1h1v9H7V2zm2 1h1v7H9V3zm2 3h1v3h-1V6zm2-2h1v5h-1V4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
/* ==================== MAGNIFYING GLASS STYLES ==================== */
.magnifying-glass {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}
.magnifying-glass.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.magnifying-glass .mini-map {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.magnifying-glass-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.magnifying-glass-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}
/* ==================== MODAL STYLES ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}
.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}
.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}
.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}
/* =============================================================================
   Interactive Tutorial System Styling
   ============================================================================= */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    pointer-events: none;
}
.tutorial-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    pointer-events: auto;
    transition: clip-path 0.5s ease;
    /* Will be dynamically updated with clip-path to create spotlight cutout */
}
.tutorial-spotlight {
    position: absolute;
    background: transparent;
    border-radius: 8px;
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 10001;
    /* Remove box-shadow overlay to keep highlighted areas at full brightness */
}
.tutorial-tooltip {
    position: absolute;
    background: var(--calcite-color-foreground-1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    min-width: 300px;
    pointer-events: auto;
    z-index: 10002;
    border: 1px solid var(--calcite-color-border-3);
}
.tutorial-content {
    padding: 24px;
}
.tutorial-title {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--calcite-color-text-1);
}
.tutorial-text {
    margin: 0 0 20px 0;
    line-height: 1.5;
    color: var(--calcite-color-text-2);
}
.tutorial-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.tutorial-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tutorial-step-counter {
    font-size: 0.875rem;
    color: var(--calcite-color-text-3);
    font-weight: 500;
}
/* Responsive tutorial adjustments */
@media (max-width: 768px) {
    .tutorial-tooltip {
        max-width: 320px;
        min-width: 280px;
        width: 90vw;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .tutorial-content {
        padding: 16px;
    }
    
    .tutorial-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .tutorial-text {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 16px;
    }
    
    .tutorial-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .tutorial-controls calcite-button {
        width: 100%;
        scale: s;
    }
    
    .tutorial-progress {
        order: -1;
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .tutorial-tooltip {
        max-width: 280px;
        min-width: 260px;
        width: 85vw;
        max-height: 60vh;
    }
    
    .tutorial-content {
        padding: 12px;
    }
    
    .tutorial-title {
        font-size: 1rem;
    }

    .tutorial-text {
        font-size: 0.85rem;
    }
}
/* ==================== DOCUMENTATION MODAL ==================== */
/* Modal backdrop */
.docs-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.docs-modal-backdrop.visible {
  opacity: 1;
  visibility: visible;
}
/* Modal container */
.dropdown-docs-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 800px;
  max-width: 95vw;
  max-height: 85vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  z-index: 1001;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown-docs-panel.visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}
.docs-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
}
.docs-panel-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}
#close-dropdown-docs {
  --calcite-color-background: white !important;
  --calcite-color-foreground-1: white !important;
  --calcite-color-foreground-2: #f8f9fa !important;
  --calcite-color-text-1: #6b7280 !important;
  --calcite-color-text-2: #6b7280 !important;
  --calcite-color-border-1: #d1d5db !important;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  transition: all 0.2s ease;
}
#close-dropdown-docs:hover {
  --calcite-color-background: #f3f4f6 !important;
  --calcite-color-foreground-1: #f3f4f6 !important;
  --calcite-color-text-1: #374151 !important;
  --calcite-color-border-1: #9ca3af !important;
  border-color: #9ca3af;
}
.docs-panel-content {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(85vh - 80px);
  line-height: 1.6;
  color: #374151;
}
.docs-panel-content h1 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
  color: #1f2937;
  font-weight: 700;
}
.docs-panel-content h2 {
  margin-top: 28px;
  margin-bottom: 16px;
  font-size: 18px;
  color: #374151;
  font-weight: 600;
}
.docs-panel-content p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}
.docs-panel-content a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}
.docs-panel-content a:hover {
  text-decoration: underline;
}
.docs-panel-content .buttons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  justify-content: center;
  align-items: center;
}
.docs-panel-content .buttons form,
.docs-panel-content .buttons a {
  flex-shrink: 0;
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .dropdown-docs-panel {
    width: 95vw;
    max-height: 90vh;
  }

  .docs-panel-header {
    padding: 16px 20px;
  }

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

  .docs-panel-content {
    padding: 20px;
    max-height: calc(90vh - 70px);
  }

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

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

  .docs-panel-content p {
    font-size: 15px;
  }
}/* ==================== DOCUMENTATION STYLES ==================== */
/* Elegant, sober styling for Colombia Soundmap documentation */

:root {
    --doc-color-primary: #2c3e50;
    --doc-color-secondary: #34495e;
    --doc-color-accent: #3498db;
    --doc-color-text: #2c3e50;
    --doc-color-text-light: #7f8c8d;
    --doc-color-background: #ffffff;
    --doc-color-background-alt: #f8f9fa;
    --doc-color-border: #e9ecef;
    --doc-color-border-light: #f1f3f4;
    
    --doc-font-family: 'darkmode-on', Georgia, 'Times New Roman', Times, serif;
    --doc-font-family-mono: 'SF Mono', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    
    --doc-spacing-xs: 0.5rem;
    --doc-spacing-sm: 1rem;
    --doc-spacing-md: 1.5rem;
    --doc-spacing-lg: 2rem;
    --doc-spacing-xl: 3rem;
    
    --doc-border-radius: 0.375rem;
    --doc-shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --doc-shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Base typography */
html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: var(--doc-font-family);
    color: var(--doc-color-text);
    background-color: var(--doc-color-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main content container */
.doc-content,
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--doc-spacing-xl) var(--doc-spacing-lg);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .doc-content,
    .content-wrapper {
        padding: var(--doc-spacing-lg) var(--doc-spacing-md);
    }
}

/* Header styling */
.doc-header {
    text-align: center;
    margin-bottom: var(--doc-spacing-xl);
    padding-bottom: var(--doc-spacing-lg);
    border-bottom: 2px solid var(--doc-color-border-light);
}

.doc-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--doc-color-primary);
    margin: 0 0 var(--doc-spacing-sm) 0;
    letter-spacing: -0.025em;
}

.doc-subtitle {
    font-size: 1.125rem;
    color: var(--doc-color-text-light);
    font-weight: 400;
    margin: 0;
    font-style: italic;
}

/* Section styling */
.doc-section {
    margin-bottom: var(--doc-spacing-xl);
}

.doc-section:last-child {
    margin-bottom: 0;
}

/* Typography */
h2 {
    font-size: 1.875rem;
    font-weight: 400;
    color: var(--doc-color-primary);
    margin: var(--doc-spacing-lg) 0 var(--doc-spacing-md) 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--doc-color-secondary);
    margin: var(--doc-spacing-md) 0 var(--doc-spacing-sm) 0;
    line-height: 1.4;
}

p {
    margin: var(--doc-spacing-sm) 0;
    color: var(--doc-color-text);
    font-size: 1rem;
    line-height: 1.7;
}

/* Lists */
ul, ol {
    margin: var(--doc-spacing-sm) 0;
    padding-left: var(--doc-spacing-lg);
}

li {
    margin: var(--doc-spacing-xs) 0;
    line-height: 1.6;
}

ul li {
    list-style-type: disc;
}

/* Special list styles */
.equipment-list li {
    margin: var(--doc-spacing-sm) 0;
    padding: var(--doc-spacing-xs) 0;
}

/* Specification table */
.spec-table {
    background: var(--doc-color-background-alt);
    border: 1px solid var(--doc-color-border);
    border-radius: var(--doc-border-radius);
    padding: var(--doc-spacing-md);
    margin: var(--doc-spacing-md) 0;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--doc-spacing-xs) 0;
    border-bottom: 1px solid var(--doc-color-border-light);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 500;
    color: var(--doc-color-secondary);
    font-size: 0.9rem;
}

.spec-value {
    font-family: var(--doc-font-family-mono);
    font-size: 0.875rem;
    color: var(--doc-color-accent);
    font-weight: 500;
}

/* Tech stack grid */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--doc-spacing-lg);
    margin: var(--doc-spacing-md) 0;
}

.tech-category {
    background: var(--doc-color-background-alt);
    border: 1px solid var(--doc-color-border);
    border-radius: var(--doc-border-radius);
    padding: var(--doc-spacing-md);
}

.tech-category h3 {
    margin-top: 0;
    color: var(--doc-color-primary);
    font-size: 1.125rem;
}

.tech-category ul {
    margin-bottom: 0;
}

.tech-category li {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Contribution methods */
.contribution-methods {
    display: grid;
    gap: var(--doc-spacing-lg);
    margin: var(--doc-spacing-md) 0;
}

.contribution-item {
    background: var(--doc-color-background-alt);
    border-left: 4px solid var(--doc-color-accent);
    padding: var(--doc-spacing-md);
    border-radius: 0 var(--doc-border-radius) var(--doc-border-radius) 0;
}

.contribution-item h3 {
    margin-top: 0;
    color: var(--doc-color-primary);
    font-size: 1.125rem;
}

.contribution-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Guide items */
.guide-item {
    margin: var(--doc-spacing-lg) 0;
    padding: var(--doc-spacing-md);
    background: var(--doc-color-background-alt);
    border-radius: var(--doc-border-radius);
    border: 1px solid var(--doc-color-border);
}

.guide-item h3 {
    margin-top: 0;
    color: var(--doc-color-primary);
    font-size: 1.125rem;
}

.guide-item p:last-child,
.guide-item ul:last-child {
    margin-bottom: 0;
}

/* Contact info */
.contact-info {
    background: var(--doc-color-background-alt);
    border: 1px solid var(--doc-color-border);
    border-radius: var(--doc-border-radius);
    padding: var(--doc-spacing-md);
    margin: var(--doc-spacing-md) 0;
}

.contact-info p {
    margin: var(--doc-spacing-xs) 0;
    font-size: 0.95rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Emphasis and strong text */
strong {
    font-weight: 600;
    color: var(--doc-color-secondary);
}

em {
    font-style: italic;
    color: var(--doc-color-text-light);
}

/* Links */
a {
    color: var(--doc-color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

a:hover {
    border-bottom-color: var(--doc-color-accent);
}

/* Code elements */
code {
    font-family: var(--doc-font-family-mono);
    font-size: 0.875rem;
    background: var(--doc-color-background-alt);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    color: var(--doc-color-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .doc-header h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
    }
    
    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--doc-spacing-xs);
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .doc-content {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .doc-header {
        border-bottom: 2px solid #000;
    }
    
    h2 {
        page-break-after: avoid;
    }
    
    .doc-section {
        page-break-inside: avoid;
    }
}