/* _static/custom.css */

/* Removes the scroll container that RTD wraps tables in */
.wy-table-responsive {
    overflow: visible !important;
}

/* Forces tables to use full width and wrap text */
.wy-table-responsive table {
    table-layout: fixed;      /* enables text wrapping */
    width: 100% !important;   /* ensure table stretches */
    border-collapse: collapse;
}

/* Wrap and preserve newlines in cells, not headers */
.wy-table-responsive td {
    white-space: pre-wrap !important;  /* critical: preserve \n line breaks */
    word-wrap: break-word;
    overflow-wrap: anywhere;
    padding: 0.2em 0.3em;
    vertical-align: top;
}

/* Optional: make headers stand out */
.wy-table-responsive th {
    background-color: #f8f9fa;
    font-weight: bold;
    padding: 0.2em 0.3em;
}

/* Style the table title (caption) */
.rst-content table.docutils caption,
.rst-content .wy-table-responsive caption,
.rst-content .csv-table caption {
    text-align: left !important;
    font-style: normal !important;
    font-weight: bold !important;
    font-size: 1.05em !important;
    color: #333 !important;
    margin-bottom: 0.4em;
}
