/* ================================================================
   Vitec brand theme for DocFX
   Vitec Blue: #171B3D | Vitec Red: #D30535 | Vitec Black: #2E2D2C
   Vitec Light Blue: #C9DDED | Vitec Light Gray: #F6F6F6
   Font: Inter (Light 300, Medium 500) — Open Font License
   ================================================================ */

/* --- Inter font via Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;500&display=swap');

/* --- Base typography - Vitec Black, Inter Light --- */
body {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 300;
    color: #2E2D2C;
}

h1, h2 {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 500;
    color: #171B3D;
}

/* h3-h6: never bold per brand guide — use color/size instead */
h3, h4, h5, h6 {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 300;
    color: #171B3D;
}

/* --- Navbar - Vitec Blue --- */
header.bg-body {
    background-color: #171B3D !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.navbar {
    background-color: #171B3D !important;
}

.navbar-brand,
.navbar-brand:hover,
.navbar-brand:focus {
    color: #ffffff !important;
}

/* Center the app title in the navbar, logo stays left */
.navbar .container-xxl {
    position: relative;
}

.navbar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff !important;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 300;
    white-space: nowrap;
    pointer-events: none;
}

/* Logo sizing */
.navbar-brand img {
    height: 22px;
    width: auto;
}

.navbar .nav-link,
.navbar .dropdown-toggle {
    color: rgba(255, 255, 255, 0.85) !important;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 300;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .dropdown-toggle:hover {
    color: #ffffff !important;
}

.navbar .nav-link.active,
.navbar .nav-link.show {
    color: #ffffff !important;
}

/* Navbar dropdown menus */
.navbar .dropdown-menu {
    background-color: #171B3D !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.85) !important;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 300;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Search bar in navbar */
.navbar .form-control,
.navbar input[type="search"] {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 300;
}

.navbar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.navbar .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: none !important;
}

.navbar .bi-search {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Hamburger icon on mobile */
.navbar .btn {
    color: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* --- Content links - Vitec Red --- */
a {
    color: #D30535;
}

a:hover,
a:focus {
    color: #a8022a;
}

/* Left sidebar TOC */
.toc a,
#toc a,
.toc .nav-link,
#toc .nav-link {
    color: #171B3D;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 300;
}

.toc a:hover,
#toc a:hover,
.toc .nav-link:hover {
    color: #D30535;
}

.toc .active,
.toc .active > a,
.toc .nav-link.active,
#toc .active {
    color: #D30535 !important;
    border-left-color: #D30535 !important;
    font-weight: 500;
}

/* Right "In this article" outline */
#affix a,
.affix a,
.sideaffix a {
    color: rgba(23, 27, 61, 0.7);
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 300;
}

#affix a:hover,
.affix a:hover,
#affix .active,
.affix .active {
    color: #D30535;
}

/* --- Code blocks - Vitec Light Gray background --- */
pre,
code {
    background-color: #F6F6F6;
    font-weight: 300;
}

pre {
    border-left: 3px solid #C9DDED;
}

/* --- Tables --- */
table {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 300;
}

thead th {
    background-color: #F6F6F6;
    color: #171B3D;
    font-weight: 500;
    border-bottom: 2px solid #C9DDED;
}

/* --- Alerts / callouts - Vitec Light Blue accent --- */
.alert-info,
.NOTE,
div[data-note] {
    border-left-color: #C9DDED !important;
    background-color: rgba(201, 221, 237, 0.15) !important;
}

/* --- Article content --- */
article {
    color: #2E2D2C;
}

/* --- Footer --- */
footer {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 300;
    color: #2E2D2C;
}

/* --- Hide top navbar menu items (already in left sidebar) --- */
.navbar-nav {
    display: none !important;
}

/* --- Hide PDF download link --- */
.pdf-link {
    display: none !important;
}

/* --- Hide theme toggle button --- */
form.icons .dropdown {
    display: none !important;
}
