body {
    font-size: 1em;
    line-height: 1.25;
    /* default 1.65*/
}

/* h1 {
    font-size: 2.2em;
} */

h1,
h2,
h3,
h4 {
    line-height: 1.25;
    /* default 1.3 */
    /* color: #2c3e50; */
    /* default #2c3e50 */
    /* margin-bottom: 0.3em; */
    /* default 0.5em */
    font-weight: 600;
}

/* margin: 2.75rem 0 1.05rem */
h2 {
    /* font-size: 1.75em; */
    font-size: 1.5em;
    font-weight: 500;
    margin: 2rem 0 1.05rem;
}

h3 {
    margin-top: 0.75em;
    /* font-size: 1.35em; */
    font-size: 1.15em;
    font-weight: 500;
}

h4 {
    margin-top: 0.75em;
    font-size: 1.05em;
    font-weight: 500;
}

p {
    font-size: 0.9em;
    margin-bottom: 0.8rem;
}

/* .sd-tab{
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px; 
    margin: 1em 0; 
}
 */

 nav.bd-links p.caption{
    margin-top: 0.45rem !important;
    margin-bottom: 0.15rem !important;
 }


html[data-theme=light] {
    --sbt-color-announcement: #616161;
    /* --pst-color-primary: #176de8; */
    --pst-color-primary: #176de8;
}

.bd-sidebar-primary {
    line-height: 1.25!important;
}   

nav.bd-links li>a {
    padding: .1rem .25rem!important;
}

.bd-content .sd-tab-set>input:checked+label {
    background-color: var(--pst-color-on-background);
    border-color: var(--pst-color-primary) var(--pst-color-primary) transparent;
    border-radius: .125rem .125rem 0 0;
    border-style: solid solid none;
    border-width: .125rem .125rem 0;
    color: var(--pst-color-primary);
    transform: translateY(.125rem);
    /* border: 1px solid var(--pst-color-primary); */
}

pre {
    background-color: #f7f7f7 !important;
    color: #222 !important;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    font-size: 0.8em;
}


/* collapse & width: auto */
table.dataframe,
table {
    border-collapse: collapse !important;
    /* border-collapse: separate !important; */
    width: auto !important; 
    margin: 0 auto 1em auto !important;
}


/* table/pandas table: padding, lh, border */
.dataframe td,
.dataframe th,
table td,
table th {
    padding: 2px 6px !important;
    /* padding: 4px 6px; */
    /* padding: 3px 6px !important; */
    line-height: 1.2 !important;
    /* border-top: 1px solid #eee !important; */
    /* border: 1px solid #ddd !important; */

}

/* font size */
table td p,
table th p,
table.dataframe th,
table.dataframe td  {
    font-size: 0.8rem !important;
    /* tweak: 0.75–0.9rem */
    color: #333 !important;
}

/* Make the blue line above the header row green */
/* Header text color + weight */
table thead tr,
table.dataframe thead tr {
    color: #555 !important;
    /* soft dark gray instead of black */
    font-weight: 500 !important;
    /* medium weight instead of bold */
    background-color: #f9f9f9 !important;
    border-bottom: 2px solid #eee !important;
    /* border-bottom: 1px solid #073207 !important; */
    /* border-bottom: 2px solid #525675 !important; */
}

/* table thead labels no border!!*/
table.dataframe thead th,
table thead th {
    color: #222 !important;
    font-weight: 500 !important;
    background-color: #f9f9f9 !important;
    /* border-bottom: 2px solid #eee !important; */
}

/* index labels */
table.dataframe tbody th,
table tbody th {
    color: #222 !important;
    font-weight: 500 !important;
    /* background-color: #f9f9f9 !important; */
    border-bottom: 1px solid #eee !important;
}

/* Body row text color + weight */
table.dataframe tbody tr,
table tbody tr {
    /* color: #555 !important; */
    /* font-weight: 500 !important; */
    /* background-color: #f9f9f9 !important; */
    /* border-bottom: 1px solid #eee !important; */
    font-weight: 400 !important;
}


/* Change table row hover color to light green */
table.dataframe tbody tr:hover,
table.dataframe tbody tr th:hover,
table tbody tr:hover {
    background-color: #ebf7ee !important;
}