/*
Trying to get rid of weird bloated tables and tables
Also force tables to fit screen width instead expanding to
fit all cell content in one line.

remaining issues:

-   weird 'margin-bottom:24px' 
    that I can't target and get rid off in
    the stub-column cells (``tbody>tr>th>p``)
-   because the stub-column cells have
    the weird margin-bottom:24px that we can't
    get rid of, then we have odd cell sizes
    that cause ``vertical-align`` to not kick
    in properly.
*/

.wy-table-responsive>table.docutils>tbody>tr>*>p,
.wy-table-responsive table thead>tr>th.head>p {
    white-space: normal;
    margin-bottom: 0;
    margin-top:0;
    margin-left:0;
    margin-right:0;
    text-align: left;
    vertical-align:top;
}

.wy-table-responsive {
    margin-bottom:0;
    max-width: 100%;
    overflow: visible;
    vertical-align:top;
}

/*
add paragraph spacing to tables where there is more than 1 <p> tag,
for readability.
Also adding wildcard, but that will fall down
if CSS with higher specificity has already been added
(as is the case with the p tag)
*/

.wy-table td p+p, .wy-table td p+*,
.rst-content table.docutils td p+p, .rst-content table.docutils td p+*,
.rst-content table.field-list td p+p, .rst-content table.field-list td p+* {
    margin-top: 0.618em;
}

/*
fixes styling bug where a .. contents:: directive
would produce a weirdly spaced list with margin-bottom:12px
*/
.rst-content div.contents>ul.simple>li>p {
    margin-bottom:0;
}

/* improve readability of lists in general */
.rst-content .section ul>li:last-child {
    margin-bottom:0.75em;
}

.rst-content div.contents>ul.simple li>p {
	margin-bottom:0;
}

.rst-content ul.simple>li>p {
    margin-bottom:0 !important;
}

.wy-table-responsive table {
    margin-bottom: 1em !important;
}

.rst-content .section ol li>ol, 
.rst-content .section ol li>ul,
.rst-content .section ul li>ol,
.rst-content .section ul li>ul {
    margin-top: 0;
}

div.table-wrapper table.docutils th.stub {
  text-align: left;
}

/* Disable furo's VERY annoying 'error' when
you attempt to add a ..  contents:: directive
to your documentation.
*/

body .local.contents:not(.this-will-duplicate-information-and-it-is-still-useful-here) {
  margin: inherit !important;
  background: inherit !important;
  color: inherit !important;
}

body .local.contents:not(.this-will-duplicate-information-and-it-is-still-useful-here)::before {
  content: "" !important;
}

table.docutils th, table.docutils td {
    vertical-align: top;
    padding-top: 0.5em;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.table thead th {
    vertical-align: top;
}

code.docutils, code.literal {
    word-break: break-word;
}

/* breaks pdf formatting of inline code snippets
code.docutils > span.pre {
    white-space: break-spaces;
}
*/

ol, ul.simple, td>ul, td>ol {
    padding-left: 0;
    margin-left: 1.4em;
}

div.admonition > ul.simple, div.admonition > ol.simple {
    margin-left: 2.8em;
}

@font-face {
    font-family: "Gotham";
    src: url();
}

html {
    /*****************************************************************************
    * Font features used in this theme
    */

    --pst-font-size-base: 16px;
  
    --pst-font-size-h1: 2.25rem;
    --pst-font-size-h2: 2rem;
    --pst-font-size-h3: 1.625rem;
    --pst-font-size-h4: 1.3125rem;
    --pst-font-size-h5: 1.25rem;
    --pst-font-size-h6: 1rem;
  
    --pst-font-size-milli: 0.9rem;
  
    --pst-sidebar-font-size: 0.9rem;
    --pst-sidebar-font-size-mobile: 1.1rem;
    --pst-sidebar-header-font-size: 1.2rem;
    --pst-sidebar-header-font-weight: 600;
  
    --pst-admonition-font-weight-heading: 600;
  
    --pst-font-weight-caption: 300;
    --pst-font-weight-heading: 400;
  
    --pst-font-family-base-system: -apple-system, BlinkMacSystemFont, Segoe UI,
      "Helvetica Neue", Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji,
      Segoe UI Symbol;
    --pst-font-family-monospace-system: "SFMono-Regular", Menlo, Consolas, Monaco,
      Liberation Mono, Lucida Console, monospace;
  
    --pst-font-family-base: var(--pst-font-family-base-system);
    --pst-font-family-heading: var(--pst-font-family-base-system);
    --pst-font-family-monospace: var(--pst-font-family-monospace-system);
}
