/* ======================================================= */
/* Custom RTD Theme Overrides for Company Branding        */
/* ======================================================= */

/* ============================= */
/* 1. Import Company Font         */
/* ============================= */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@400;500;600;700&display=swap');

/* ============================= */
/* 2. Base Body Text              */
/* ============================= */
body, p, li {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 1rem;         /* readable body text */
    line-height: 1.6;        /* comfortable spacing */
    color: #333;             /* optional: default text color */
}

/* ======================================================= /
/ 3. Sidebar & Navigation Links (Branding)                /
/ ======================================================= */

/* 3.1 Sidebar & Content Backgrounds */
.wy-nav-side {
background-color: #F2F2F2 !important;    /* light gray for main nav */
}

.wy-nav-content-wrap {
background-color: #fcfcfc !important;    /* almost white area beside main content */
}

.wy-nav-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 3.2 Logo Container (The top box) */
.wy-side-nav-search {
background-color: #354882 !important;  /* company dark blue backing the logo */
padding: 20px 0 !important;
text-align: center;
}

/* 3.3 Global Fonts */
.wy-side-nav-search,
.wy-nav-side,
.wy-side-nav-search input,
.wy-menu-vertical a {
font-family: 'Barlow Semi Condensed', sans-serif !important;
font-weight: 500;
}

/* 3.4 Project Name / Home Link (White Text above the logo) */
.wy-side-nav-search > a,
.wy-side-nav-search i.fa-home,
.wy-side-nav-search .wy-dropdown > a {
color: #ffffff !important;   /* Text written in white, above the logo */
font-size: 110%;
margin-bottom: 10px;
display: block;
}

.wy-side-nav-search > a:hover {
color: #008BD2 !important;    /* hover text above the logo */
background-color: transparent !important;
}

/* 3.5 Navigation Links (The gray area links) */
.wy-menu-vertical a {
color: #333333 !important;  /* main menu options, font color darker for visibility */
background-color: transparent !important;
padding: 8px 16px;
display: block;
}

/* >>> ADDED >>> Global left padding for entire navigation tree */
.wy-menu-vertical {
    padding-left: 16px;
}

.wy-menu-vertical a:hover {
background-color: #E0E0E0 !important;    /* background hover for menu options */
color: #354882 !important;
}

/* 3.6 Active / Selected Section */
.wy-menu-vertical li.current > a {
background-color: #E0E0E0 !important;   /* selected menu option, darker background color  */
color: #354882 !important;   /* selected menu option, text in company dark blue  */
font-weight: 600;
}

/* 3.7 Nested Subsection Links */
.wy-menu-vertical li.current ul li a {
padding-left: 32px;
color: #555555 !important;  /* chosen menu option (subsections), font color darker for visibility */
}

/* ============================= */
/* 4. Sidebar Search- Logo Style */
/* ============================= */

.wy-side-nav-search {
    padding: 10px 15px;
    text-align: center;
}

.wy-side-nav-search input[type="text"] {
    box-sizing: border-box;
    width: calc(100% - 20px);   /* create space inside */
    margin: 0 10px;             /* push away from edges */
}

/* Logo image */
.wy-side-nav-search img {
    max-width: 120px;          /* logo size */
    max-height: 120px;
    width: auto; /* scales proportionally */
    height: auto; /* scales proportionally */
    display: inline-block; /* prevents inline spacing issues */
}

/* Optional: responsive adjustment for narrow sidebars */
@media (max-width: 768px) {
    .wy-side-nav-search img {
        max-width: 80px;
        max-height: 80px;
    }
}

/* ============================= */
/* 5. Custom Admonitions          */
/* ============================= */
/* Note Admonition */
.admonition.my-custom-note {
    /* Background using Light Blue at 10% opacity */
    background-color: #008BD21A !important;
    /* Border using Darker Blue (354882) */
    border: 1px solid #354882 !important;
    border-left: 5px solid #354882 !important; /* Thicker left bar for RTD style */
    padding: 15px;
    border-radius: 4px; /* Slightly rounded corners */
    margin: 1em 0; /* Vertical spacing */
}

.admonition.my-custom-note .admonition-title {
    /* Title using Light Blue */
    color: #008BD2 !important;
    background-color: transparent !important; /* Keeps it clean */
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
}

/* Warning Admonition (Red) */
.admonition.my-custom-warning {
    /* Background using Red at 10% opacity */
    background-color: #D51F311A !important;
    /* Border using Red (D51F31) */
    border: 1px solid #D51F31 !important;
    border-left: 5px solid #D51F31 !important;
    padding: 15px;
    border-radius: 4px;
    margin: 1em 0;
}

.admonition.my-custom-warning .admonition-title {
    color: #D51F31 !important;
    background-color: transparent !important;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
}

/* ============================= */
/* 6. Navigation Links at Page Bottom */
/* ============================= */
.doc-nav-links {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    font-size: 0.95em;
    font-weight: 500;
}

.doc-nav-links a {
    color: #2980b9;
    text-decoration: none;
}

.doc-nav-links a:hover {
    text-decoration: underline;
}

/* ============================= */
/* 7. Headings (Section / Sub / Subsub) */
/* ============================= */
h1 {
    font-size: 1.9rem;  /* section titles */
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.5rem;  /* subsections */
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
}

h3 {
    font-size: 1.3rem;  /* subsubsections */
    font-weight: 500;
    line-height: 1.3;
    margin-top: 1em;
    margin-bottom: 0.3em;
}

h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 0.8em;
    margin-bottom: 0.2em;
}

/* ============================= */
/* 8. Images zoom UX - removed for now */
/* ============================= */
/*
figure img {
    cursor: zoom-in;
}*/
