/* Custom styles for CCAT Data Center Documentation */

/* Header spacing adjustments */
.rst-content .section {
    margin-top: 20px;
}

.rst-content h1 {
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Move View page source link higher */
.rst-content .headerlink {
    position: absolute;
    right: 0;
    top: 0;
}

/* Compact header layout */
.rst-content > h1:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* Up link to main documentation - Compact inline version */
.up-link-container {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    display: inline;
    position: relative;
    top: -2px;
}

.up-link {
    display: inline;
    text-decoration: none;
    color: #6c757d;
    font-weight: 400;
    font-size: 11px;
    transition: color 0.2s ease;
    opacity: 0.7;
    margin-left: 8px;
}

.up-link:hover {
    color: #495057;
    text-decoration: none;
    opacity: 1;
}

.up-link::before {
    content: "↑ ";
    font-size: 10px;
    font-weight: normal;
}

/* Dark mode for up link */
[data-theme="dark"] .up-link-container,
.rst-content .up-link-container {
    background-color: transparent;
    border: none;
}

[data-theme="dark"] .up-link,
.rst-content .up-link {
    color: #adb5bd;
}

[data-theme="dark"] .up-link:hover,
.rst-content .up-link:hover {
    color: #f8f9fa;
}

/* Compact layout for better spacing */
.rst-content {
    line-height: 1.5;
}

.rst-content .section {
    margin-top: 15px;
}

.rst-content h1 {
    margin-top: 5px;
    margin-bottom: 10px;
}

.rst-content h2 {
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Reduce top margin for first element after title */
.rst-content > *:first-child {
    margin-top: 0;
}

/* Compact breadcrumbs */
.breadcrumbs {
    margin-bottom: 5px;
}

