/* Floating Page Minimap - Table of Contents Navigation */

.page-minimap {
    position: fixed;
    right: 20px;
    top: 100px;
    width: 140px;
    max-height: calc(100vh - 200px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 40;
    font-size: 0.8125rem;
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: visible;
}

.minimap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.minimap-item {
    position: relative;
    margin: 0;
    padding: 0;
}

.minimap-link {
    display: block;
    padding: 0.65rem 1rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
    font-weight: 500;
    position: relative;
}

.minimap-link:hover {
    color: #183661;
    background-color: #f8fafc;
}

.minimap-link.active {
    color: #183661;
    background-color: #f0f4f8;
    border-left-color: #183661;
}

/* Arrow indicator */
.minimap-arrow {
    position: absolute;
    left: -10px;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #183661;
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.minimap-link.active .minimap-arrow {
    opacity: 1;
}

/* Responsive: hide on small screens */
@media (max-width: 1200px) {
    .page-minimap {
        display: none;
    }
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .page-minimap {
        display: none;
    }
}
