/* Custom styles for SageMaker HyperPod documentation */

/* Adjust logo size and alignment */
.navbar-brand img {
    max-height: 40px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.navbar-brand .title {
    font-weight: 800;
    color: #111827;
}

/* Ensure logo container doesn't force wrapping */
.navbar-brand-box {
    width: auto;
    flex-shrink: 0;
}

/* Header styling */
header {
    background-color: white;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #111827;
}

p {
    font-size: 1.0rem;
    color: #4b5563;
}

html[data-theme="dark"] .navbar-brand .title {
    color: #f8fafc !important;
}

html[data-theme="dark"] p {
    color: #d1d5db !important;
}

.current.active>a {
    background-color: aliceblue !important;
}

.bd-sidebar-primary li.has-children .caption,
.bd-sidebar-primary li.has-children>.reference {
    margin-right: inherit;
}

nav.bd-links li>a {
    margin-right: inherit;
}

.table tbody tr:hover {
    background: none !important;
}

.wy-table-responsive table td,
.wy-table-responsive table th {
    white-space: normal;
}

.wy-table-responsive {
    margin-bottom: 24px;
    max-width: 100%;
    overflow: visible;
}

.pagination {
    display: inline-block;
}

.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
}

.pagination a.active {
    background-color: #2a80b9;
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}


dl.py.class.dt.sig.sig-object.py {
    overflow: auto;
    margin: 6px 0;
    font-size: 90%;
    line-height: normal;
    background: #e7f2fa !important;
    color: #2980b9 !important;
    border-top: 3px solid #6ab0de !important;
    padding: 6px;
    position: relative;
}

.bd-article {
    overflow: auto;
}

.sig-prename.descclassname {
    color: #000;
}

.field-list {
    display: grid !important;
    grid-template-columns: 0.5fr 2fr !important;
}

.field-list dt {
    background: transparent !important;
    word-break: normal !important;
}

.py.class dl {
    margin: 1rem 0 !important;
}

.page-toc.tocsection.onthispage svg {
    margin-right: 0.5rem;
}

.sidebar-secondary-items {
    display: block !important;
    padding: 0.5rem 0 !important;
}

.table {
    border-radius: 4px !important;
    border: 1px solid #e1e5e9 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden !important;    
}

.table tbody tr {
    background: none !important;
}

.table tbody tr:hover {
    background: none !important;
}

.table td,
.table th {
    border: none !important;
    border-bottom: 1px solid #e1e5e9 !important;
}

.table tr:last-child td {
    border-bottom: none !important;
}

.bd-toc code {
    background: transparent !important;
    border: none;
}