/* General Body and Text Styles */
body {
    font-family: 'Georgia', serif; /* Classic serif font for body text */
    color: #4a4a4a; /* Dark gray for text */
    background-color: #f8f4e3; /* Soft cream background */
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Headers - Titles and Subtitles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Times New Roman', serif; /* Classic serif font for headings */
    color: #6B4527; /* Rich brown color for headings */
    margin-top: 20px;
    margin-bottom: 10px;
}

h1 {
    font-size: 2.5em;
    border-bottom: 2px solid #D2B7E5; /* Light purple-gray underline, can be changed */
    padding-bottom: 10px;
}

/* Links and Navigation */
a {
    color: #B8860B; /* Muted gold for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #8B6309; /* A slightly darker gold on hover */
    text-decoration: underline;
}

/* Table Styles - for your parameter estimates table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background-color: white;
}

thead tr {
    background-color: #6B4527; /* Header row matches heading color */
    color: #ffffff; /* White text on dark header */
    text-align: left;
}

th, td {
    padding: 12px 15px;
    border: 1px solid #ddd; /* Light gray borders */
}

tbody tr {
    border-bottom: 1px solid #dddddd;
}

tbody tr:nth-of-type(even) {
    background-color: #f3f3f3; /* Zebra stripes for readability */
}

tbody tr:last-of-type {
    border-bottom: 2px solid #6B4527;
}

/* Figure and Plot Styles */
.figure {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 5px;
}

/* Styling for a general "white box" around content */
.content-box {
    background-color: #ffffff; /* White background */
    border: 1px solid #e0e0e0; /* A very light gray border */
    border-radius: 8px; /* Slightly rounded corners */
    padding: 20px; /* Space inside the box */
    margin: 20px 0; /* Space outside the box */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* A subtle shadow for depth */
}

/* Corrected Navbar Styling */
.navbar {
    background-color: #6B4527 !important; /* The bar itself is rich brown */
}
.navbar-brand, .navbar .nav-link {
    color: #f8f4e3 !important; /* Navbar links and brand are soft cream */
}
.navbar .nav-link:hover {
    color: #B8860B !important; /* Links hover to muted gold */
}

/* Styling for the search input and menu button */
.form-control, .navbar-toggler {
    background-color: #f8f4e3 !important; /* Search button/input background is cream */
    border: 1px solid #d2b7e5;
    color: #4a4a4a;
}
.navbar-toggler-icon { /* Hamburger icon color */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236B4527' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Styling for horizontally scrollable math formulas */
.math-scroll {
    overflow-x: auto;
    white-space: nowrap;
}

/* New: CSS to remove indentation from TOC headers */
.quarto-title-block + .quarto-layout-panel .quarto-sidebar-layout-panel nav#quarto-toc ul li a {
    margin-left: 0 !important;
    padding-left: 10px !important;
}

/* Fallback for nested lists in TOC if they exist */
.quarto-title-block + .quarto-layout-panel .quarto-sidebar-layout-panel nav#quarto-toc ul ul li a {
    margin-left: 0 !important;
    padding-left: 10px !important;
}