/*!* Make ReadTheDocs theme more responsive and use more screen width *!*/

/* Increase max width of the main content area */
.wy-nav-content {
    max-width: 100% !important;
}

/* table & sidebar formatting in LIGHT mode */
[data-md-color-scheme="default"] table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.03);
}
[data-md-color-scheme="default"] .md-typeset table:not([class]) thead tr {
    background-color: rgba(0, 0, 0, 0.06);
}
[data-md-color-scheme="default"] .md-sidebar--primary .md-sidebar__scrollwrap {
    border-right: 1px solid rgba(0, 0, 0, 0.12);
}
[data-md-color-scheme="default"] .md-nav--primary > .md-nav__title {
    padding-bottom: 0.25em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

/* table & sidebar formatting in DARK mode */
[data-md-color-scheme="slate"] table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}
[data-md-color-scheme="slate"] .md-typeset table:not([class]) thead tr {
    background-color: rgba(255, 255, 255, 0.10);
}
[data-md-color-scheme="slate"] .md-sidebar--primary .md-sidebar__scrollwrap {
    border-right: 1px solid rgba(255, 255, 255, 0.20);
}
[data-md-color-scheme="slate"] .md-nav--primary > .md-nav__title {
    padding-bottom: 0.25em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.20);
}

/* Reduce vertical padding in table cells */
.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
    padding: 0.4em 0.8em;  /* Default is 0.9375em 1.25em */
}

/* Prevent wrapping in table cells */
table td,
table th {
  white-space: nowrap;
}

/* Center images with .center class */
img.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: min(100%, max(50%, 600px));
}

img.center75 {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: min(100%, max(75%, 600px));
}

/* Changelog version header blockquotes  */
[data-md-color-scheme="default"] .changelog .md-typeset blockquote,
[data-md-color-scheme="default"] .md-typeset .changelog blockquote {
    background-color: rgba(0, 0, 0, 0.04);
    border-left: 4px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 0.4em 0.8em;
    color: inherit;
}

[data-md-color-scheme="slate"] .changelog .md-typeset blockquote,
[data-md-color-scheme="slate"] .md-typeset .changelog blockquote {
    background-color: rgba(255, 255, 255, 0.06);
    border-left: 4px solid rgba(255, 255, 255, 0.20);
    border-radius: 4px;
    padding: 0.4em 0.8em;
    color: inherit;
}

/* Bolder h2 inside blockquotes */
.md-typeset .changelog blockquote h2 {
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 0;
}

.md-typeset .changelog blockquote :last-child {
    margin-top: 0;
    margin-bottom: 0;
}

[data-md-color-scheme="default"] .md-typeset .changelog blockquote :last-child {
    color: rgba(0, 0, 0, 0.45);
}

[data-md-color-scheme="slate"] .md-typeset .changelog blockquote :last-child {
    color: rgba(255, 255, 255, 0.45);
}

