/* Hide 'Table of Contents' at top of ToC. */
#left-sidebar h3 {
    display: none;
}

/* Reduce top margin for heading 2*/
#content h2 {
    margin-top: 1.5rem;
}

img.align-center {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Apply brand colors to headings*/
h1 {
    color: #400080
}

h2 {
    color: #7248BD
}

h3 {
    color: #DA6254
}

h4, h5, h6 {
    color: #E18176
}

/* Apply brand color to card headings*/
.sd-card-title.sd-font-weight-bold.docutils {
    color: #400080;
}

/* Add brand colors to code line highlighter */
pre code [id^=line-] mark {
    --tw-shadow: 2px 0 #B199C8 inset;
    background-color: #FFECCC;
}

/* Remove brand colors for dark theme */
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
    color: rgb(225, 231, 239)
}

.dark #right-sidebar ul li a[data-current=true] {
    color: rgb(225, 231, 239)
}

.dark #left-sidebar a.current {
    color: inherit;
    font-weight: bold;
}

.dark .sd-card-title {
    color: white !important;
}

/* Change background color for code in dark mode */

.dark .highlight {
    background-color: #444A4F;
    position: relative;
    border-radius: 9px;
}

/* Add text wrap to ``code`` text */
.pre {
    text-wrap: wrap;
}

/* Remove extra spacing between ULs */
#content ul:not(.search) p, #content ul:not(.search)>li {
    margin-top: 0.5rem
}

/* Remove extra spacing between OLs */
#content ol p, #content ol>li {
    margin-top: 0.5rem 
}

/* Remove extra spacing between nested list items */
#content dl {
    margin-top: 0.5rem 
}

#content ul:not(.search){
    margin-top: 0.5rem 
}

/* Keep formatting on multiple line bullet points */
#content dl dt:not(.sig) {
    font-weight: inherit
}

/* Increase table heading strength */
table th {
    font-weight: 750
}

/* Set On This Page selector to brand colour */
#right-sidebar ul li a[data-current=true] {
    color: #400080
}

/* Remove On This Page selector brand color for dark theme*/
.dark #right-sidebar ul li a[data-current=true] {
    color: rgb(225, 231, 239)
}

/* Remove Table of Contents selector brand color for dark theme*/
.dark #left-sidebar a.current {
    color: inherit;
    font-weight: bold;
}

/* Give the first entry in each category in the Table of Contents the styling of a Caption */
#left-sidebar > div > div > ul > li:first-of-type {
    font-size: .875rem;
    /* font-weight: 600; */
    line-height: 1.25rem;
    margin-bottom: .25rem;
    padding: 0.5rem 0em 0rem 0rem;
}

/* Shrink padding between entries in left hand toc */
#left-sidebar a {
    padding: .2rem .5rem;
}

/* Insert 2nd level items for Table of Contents */
#left-sidebar li:nth-child(n+2):nth-child(-n+6) {
    margin-left: 25px;
}

/* Add brand colour to selected left Table of Contents */
#left-sidebar a.current {
    color: #400080;
}

/* enable in line images */

img {
    display: inline;
    margin-top: 0rem !important;
}

/* Give card hover brand colour*/
:root {
    --sd-color-card-border-hover: #62388D;
}

/* Give card icons brand colour*/
.sd-text-info, .sd-text-info>p {
    color: #7248BD !important; 
    padding-bottom: 0.25em !important;
}

/* Give call outs brand colours */ 
.warning, .important {
    background-color: #F8ADB2;
    border-color: #F25B66;
    color: #161D24;
}

.note {
    background-color: #CAD6E6;
    border-color: #A7BCD6;
    color: #161D24;
}

.hint, .tip {
    background-color: #99E7CF;
    border-color: #00C389;
    color: #161D24;
}

/* Top nav formatting */

.mr-2 {
    margin-right: .5rem;
    min-width: -webkit-fill-available;
}

.mr-6 {
    margin-right: 9.5rem;
}

/* Fix previous button */

svg.mr-2.h-4.w-4 {
    min-width: auto;
}

/* Hide 'Table of Contents' at top of ToC. */
#left-sidebar h3 {
    display: none;
}

/* Customise docsearch */

/* Brand colors for results highlighter */

.DocSearch-Hit[aria-selected=true] a {
    background-color:#EAE5F0 !important;
}

.dark .DocSearch-Hit[aria-selected=true] a {
    background-color: #444A4F !important;
}


/*  Tidy up results appearance - hidden while working on what is returned

.DocSearch-Hit-path {
    display:none
}

:root {
    --docsearch-hit-height: 35px;
}

*/










/* Testing */

redoc[spec-url] h1 {
    color: red !important;
}

redoc[spec-url] .tag-info h1 {
    color: red !important;
}
