/* Allow table cells to wrap normally */
table.docutils td,
table.docutils th {
    white-space: normal !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Also allow long inline code to wrap */
table.docutils td code,
table.docutils th code {
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.wy-nav-content {
   max-width: 1080px;
}

.toctree-wrapper a code.literal {
    color: #404040 !important;
    font-weight: bold !important;
}

.sig.sig-object.f {
    background-color: #e7f2fa;  /* Light blue background */
    border: 1px solid #e7f2fa;  /* Light blue border */
    border-top: 3px solid #6ab0de;  /* Darker blue top border */
    padding: 6px 8px;           /* Padding around the function name */
    border-radius: 3px;         /* Rounded corners */
    color: #0077aa;             /* Blue text color for the function name */
    font-weight: bold;          /* Bold text to stand out */
}

/* Ensure the function name and keyword (e.g., "function", "subroutine") are in black */
.sig.sig-object.f .descname,   /* Function name */
.sig.sig-object.f .pre.keyword {  /* For keywords like "subroutine" */
    color: #000000;             /* Black color */
}


/* Style the remaining variable names in blue */
.sig.sig-object.f .pre:not(:first-of-type) {  
    color: #0077aa;  /* Blue for variable names */
}

/* In types, bold fields */
.sig-name.descname {
    font-weight: bold;
}

/*remove the module name from the fortran functions*/
.sig.sig-object.f .sig-prename {
    display: none;
}

/* Optional: Style the full signature block */
.sig.sig-object {
    display: inline-block;      /* Ensures the signature is styled as a block */
    padding: 2px 5px;           /* Padding for the signature block */
    background-color: #eaf5ff;  /* Same light blue background */
    border-radius: 3px;         /* Rounded corners for the signature block */
    border-top: 3px solid #005588;  /* Darker blue top border */
}

/*Wrap long words in the sidebar*/
.wy-menu-vertical .current ul li a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%; /* Adjust if needed */
}
