/* Docutils styling for help pages */
.docutils {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                 "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #212529;
}

.docutils h1, .docutils h2, .docutils h3, 
.docutils h4, .docutils h5, .docutils h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #0d6efd;
}

.docutils h1 { 
    font-size: 2rem; 
    border-bottom: 2px solid #dee2e6; 
    padding-bottom: 0.5rem; 
}
.docutils h2 { font-size: 1.5rem; }
.docutils h3 { font-size: 1.25rem; }

.docutils p {
    margin-bottom: 1rem;
    text-align: justify;
}

.docutils table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
    border: 1px solid #dee2e6;
}

.docutils th,
.docutils td {
    padding: 0.75rem;
    vertical-align: top;
    border: 1px solid #dee2e6;
    text-align: left;
}

.docutils thead th {
    vertical-align: bottom;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.docutils tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.docutils tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.075);
}

.docutils code,
.docutils tt {
    font-size: 87.5%;
    color: #e83e8c;
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, 
                 "Liberation Mono", "Courier New", monospace;
}

.docutils pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    overflow-x: auto;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, 
                 "Liberation Mono", "Courier New", monospace;
    font-size: 87.5%;
    line-height: 1.45;
}

.docutils .topic {
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
}

.docutils .topic-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0d6efd;
}

.docutils .system-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

.docutils blockquote {
    margin: 0 0 1rem 0;
    padding: 0.5rem 1rem;
    border-left: 4px solid #dee2e6;
    background-color: #f8f9fa;
}

.docutils ul, .docutils ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.docutils li {
    margin-bottom: 0.25rem;
}

.docutils strong, .docutils b {
    font-weight: 600;
}

.docutils em, .docutils i {
    font-style: italic;
}

.docutils a {
    color: #0d6efd;
    text-decoration: none;
}

.docutils a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Responsive table wrapper */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .docutils table {
        font-size: 0.875rem;
    }
    
    .docutils th,
    .docutils td {
        padding: 0.5rem;
    }
}
