html[data-theme="light"] {
    --pst-color-primary: #e90029;
    --pst-color-secondary: #e90029;
    --link-color: #891518;
}

html[data-theme="dark"] {
    --pst-color-primary: #e90029;
    --pst-color-secondary: #e90029;
    --link-color: #e90029;
}

/* style for download icon and admonition */
div.admonition.admonition-icon-download {
  border-color: #9c9c9c;
}

div.admonition.admonition-icon-download > .admonition-title {
  background-color: #e8e8e8;
  color: black;
}

div.admonition.admonition-icon-download > .admonition-title::after {
    content: "\f0ed"; /* the fa-scale icon */
    color: #9c9c9c;
}

/* custom color for note admonition */
div.admonition.admonition-blue {
    border-color: #7a99bf;
}

div.admonition.admonition-blue > .admonition-title {
    background-color: #b2c5d9;
}

div.admonition.admonition-blue > .admonition-title::after {
    color: #7a99bf;
}

html[data-theme="dark"] div.admonition.admonition-blue > .admonition-title {
  color: black;
}

/* API reference colour */
html[data-theme="light"] a.reference.internal > code.xref.py,
a.reference.internal > code.xref.py span {
    color: #891518;
}

html[data-theme="dark"] a.reference.internal > code.xref.py,
a.reference.internal > code.xref.py span {
    color: #e90029;
}

/* color of download links*/
html[data-theme="light"] a.reference.download.internal code.xref.download span.pre {
    color: #891518;
}

html[data-theme="dark"] a.reference.download.internal code.xref.download span.pre {
    color: #e90029;
}

input.form-control {
    border-color: #891518;
}

/* darker red colour for hovering on the back-to-top button */
#pst-back-to-top:hover {
    background-color: #c10427;
}

html[data-theme="dark"] #pst-back-to-top {
    color: #f3e9ea;
    background-color: #bc3236;
}

html[data-theme="dark"] #pst-back-to-top:hover {
    color: #f3e9ea;
    background-color: #891518;
}


.small-svg {
    max-width: 130px;
    height: 325px;
    background-color: transparent !important;
}

/* background color of tiles */
.sd-card {
    background-color: #ffffff !important;
}

/*Increase the width of the page contents*/
.bd-page-width {
  max-width: 120em !important;
}
.bd-main .bd-content .bd-article-container {
  max-width: 150em;
}

/*Attempt to align the plots to the left*/
.qcs_table {
    margin-left: 0 !important; /*remove center margin*/
    margin-right: auto !important; /*push it left */
    float: left;
}

.qcs_table th,
.qcs_table td {
    text-align: left !important;
}

.output_area.rendered_html > div {
    text-align: left !important;
}


/* Custom font */
/* Font stacks ------------------------------------------------- */
:root {
  /* Body text -->  Helvetica Neue 45 Light --> fallback to Arial 400 */
  --brand-font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Headlines --> Helvetica Neue Condensed --> fallback to Arial Narrow */
  --brand-font-heading: "Helvetica Neue Condensed", "Arial Narrow",
                        "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Apply to PyData theme variables ----------------------------- */
html {
  /* base text */
  --pst-font-family-base: var(--brand-font-body);

  /* headings / titles / h1–h6 */
  --pst-font-family-heading: var(--brand-font-heading);
}

/* Recommended weights ---------------------------------------- */
/* Body copy weight (Light) */
body,
p,
li,
table,
.docutils pre {
  font-weight: 300;
}

h2, h3, h4, h5, h6 {
  font-weight: 480;
  letter-spacing: 0.5px;
}

h1 {
  font-weight: 600;
  letter-spacing: 1px;
}
