/* UNC Hospital Medicine Brand Colors /
:root {
--unc-blue: #4B9CD3; / Carolina Blue /
--unc-dark-blue: #13294B; / Midnight Blue /
--unc-darkest-blue: #0A1628;
--unc-accent-blue: #7BAFD4; / Lighter Carolina Blue */
--unc-light-gray: #F4F6F8;
--unc-white: #ffffff;
--unc-black: #000000;
}

/* Material theme color overrides - the proper way */
[data-md-color-scheme="default"] {
--md-primary-fg-color: var(--unc-blue);
--md-primary-fg-color--light: var(--unc-accent-blue);
--md-primary-fg-color--dark: var(--unc-dark-blue);
--md-accent-fg-color: var(--unc-blue);
--md-accent-fg-color--transparent: rgba(75, 156, 211, 0.1);
--md-default-bg-color: var(--unc-white);
--md-code-bg-color: var(--unc-light-gray);
}

/* Custom header styling - Midnight blue */
.md-header {
background-color: var(--unc-dark-blue);
}

.md-tabs {
background-color: var(--unc-dark-blue);
}

/* Footer */
.md-footer {
background-color: var(--unc-darkest-blue);
}

/* Left sidebar - light gray background */
.md-sidebar--primary {
background-color: var(--unc-light-gray);
}

.md-sidebar--primary .md-sidebar__scrollwrap {
background-color: var(--unc-light-gray);
}

/* Add custom title to left sidebar */
.md-sidebar--primary .md-sidebar__inner::before {
content: "UNCBot Chapters";
display: block;
padding: 0.8rem 1.2rem;
font-weight: 700;
font-size: 0.9rem;
color: var(--unc-dark-blue);
border-bottom: 2px solid var(--unc-blue);
margin-bottom: 0.8rem;
background-color: var(--unc-light-gray);
}

/* Hide ALL default Material theme sidebar navigation title elements */
.md-sidebar--primary .md-nav__title {
display: none !important;
}

/* Remove any gradients/fades at top of sidebar */
.md-sidebar--primary .md-sidebar__scrollwrap::before,
.md-sidebar--primary .md-sidebar__scrollwrap::after {
display: none !important;
}

/* Ensure consistent gray background throughout */
.md-sidebar--primary .md-nav {
background-color: var(--unc-light-gray);
}

/* Override any Material default padding/margins at top */
.md-sidebar--primary .md-nav--primary {
padding-top: 0;
}

/* Right sidebar (TOC) - gray background */
.md-sidebar--secondary {
background-color: var(--unc-light-gray);
}

.md-sidebar--secondary .md-sidebar__scrollwrap {
background-color: var(--unc-light-gray);
}

/* Remove ALL gradients/fades at top of right sidebar */
.md-sidebar--secondary .md-sidebar__scrollwrap::before,
.md-sidebar--secondary .md-sidebar__scrollwrap::after,
.md-sidebar--secondary::before,
.md-sidebar--secondary::after {
display: none !important;
background: none !important;
}

/* Ensure consistent gray background throughout */
.md-sidebar--secondary .md-nav {
background-color: var(--unc-light-gray);
}

/* Override any Material default padding/margins */
.md-sidebar--secondary .md-nav--secondary {
padding-top: 0;
}

/* Change "Table of contents" to "Chapter Contents" on right sidebar */
.md-sidebar--secondary .md-nav__title {
font-weight: 700;
color: var(--unc-dark-blue);
border-bottom: 2px solid var(--unc-blue);
padding: 0.8rem 1.2rem 0.5rem 1.2rem;
margin: 0;
background-color: var(--unc-light-gray) !important;
}

.md-sidebar--secondary .md-nav__title::before {
content: "Chapter Contents";
font-weight: 700;
}

/* Hide the default "Table of contents" text */
.md-sidebar--secondary .md-nav__title {
font-size: 0;
}

.md-sidebar--secondary .md-nav__title::before {
font-size: 0.9rem;
}

/* Alternating section backgrounds */
.md-content article > section:nth-child(even) {
background-color: var(--unc-light-gray);
padding: 2rem;
margin: 2rem -2rem;
border-radius: 8px;
}

/* Code blocks with gray background */
.md-typeset code {
background-color: var(--unc-light-gray);
}

/* Tables */
.md-typeset table:not([class]) th {
background-color: var(--unc-dark-blue);
color: var(--unc-white);
}

/* Buttons and accents */
.md-button {
background-color: var(--unc-blue);
color: var(--unc-white);
border: none;
}

.md-button--primary {
background-color: var(--unc-dark-blue);
color: var(--unc-white);
}

.md-button:hover {
opacity: 0.9;
}