/* Numeric Navigation Styles */
.numeric-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.numeric-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
}

.numeric-nav a:hover {
    background: #e9ecef;
    color: #000;
}

.numeric-nav a.active {
    background: #0d6efd;
    color: #fff;
}

.content-placeholder {
    color: #adb5bd;
    font-style: italic;
    padding: 40px 0;
}

/* Breadcrumb Styles */
.breadcrumb-nav {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.breadcrumb-nav a {
    color: inherit;
    text-decoration: none;
    transition: color 0.1s ease;
}

.breadcrumb-nav a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* Ensure global spacing between breadcrumbs and the page title */
.quarto-page-breadcrumbs,
.breadcrumb-nav {
    margin-bottom: 2.5rem !important;
}

.quarto-title-block {
    margin-top: 1rem;
}

.breadcrumb-nav .sep {
    margin: 0 0.5rem;
    color: #dee2e6;
    font-weight: 300;
}

/* Collapsible Landing Sections */
.landing-section {
    margin: 0;
    padding: 0;
    border-bottom: none;
    display: block; /* Force block to avoid list-item behavior */
}

.landing-section summary {
    list-style: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0; /* Remove all padding */
    margin: 0;
    padding-left: 0 !important; /* Force reset for any browser/framework defaults */
}

/* Hide default arrow */
.landing-section summary::-webkit-details-marker {
    display: none;
}

.landing-section summary h4 {
    margin: 0;
    padding: 0.5rem 0; /* Match vertical padding of typical headings */
    display: inline-block;
    color: #0d6efd;
    text-decoration: underline; /* Make it look like a link */
    text-decoration-color: transparent;
    transition: all 0.2s ease;
}

.landing-section summary h4:hover {
    text-decoration-color: #0d6efd;
}

/* Ensure global alignment and link styling for all section headings on landing pages */
.landing-section summary h4,
.landing-section-simple h4 {
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-top: 0;
    margin-bottom: 0;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.2s ease;
}

.landing-section-simple h4 a {
    color: #0d6efd;
    text-decoration: none;
}

.landing-section:hover summary h4,
.landing-section-simple:hover h4 {
    text-decoration-color: #0d6efd;
    color: #0a58ca;
}

.landing-section-simple:hover h4 a {
    color: #0a58ca;
}

.section-content-links {
    padding-left: 2rem;
    margin-top: 1rem;
    border-left: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.section-content-links a {
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
}

.section-content-links a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* Custom Page Navigation Footer */
.custom-page-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f3f5;
    gap: 2rem;
}

.custom-page-navigation .nav-prev,
.custom-page-navigation .nav-next {
    flex: 1;
}

.custom-page-navigation .nav-next {
    text-align: right;
}

.custom-page-navigation a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: inherit;
    transition: all 0.2s ease;
    padding: 1rem;
    border-radius: 8px;
    background: transparent;
}

.custom-page-navigation a:hover {
    background: #f8f9fa;
}

.custom-page-navigation .nav-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.custom-page-navigation .nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0d6efd;
}

.custom-page-navigation .nav-prev a:hover .nav-title,
.custom-page-navigation .nav-next a:hover .nav-title {
    text-decoration: underline;
}