/* Force autosummary tables to use full width and wrap long text */
.rst-content table.docutils.autosummary {
    table-layout: fixed;
    width: 100%;
}
.rst-content table.docutils.autosummary td,
.rst-content table.docutils.autosummary th {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Expand main content container to use more horizontal space */
.wy-nav-content {
    max-width: 95% !important; 
}

/* Limit width of code blocks to prevent long horizontal copy buttons */
div.highlight, pre.literal-block {
    max-width: 80ch;  /* Or try 70ch or 60ch depending on your line lengths */
    margin-left: auto;
    margin-right: auto;
    border-radius: 6px;
}

/* Align copy button with code block instead of full content width */
div.highlight .copybtn {
    right: 0.5rem !important;
    top: 0.5rem !important;
}
