/* ==========================================================================
   Teledyne CARIS — PyData Sphinx Theme overrides
   Brand colours extracted from https://www.teledynecaris.com
   ========================================================================== */

/* ---------- CSS custom-property overrides ---------- */
html[data-theme="light"] {
  --pst-color-primary: #0077c0;
  --pst-color-primary-bg: #e8f4fb;
  --pst-color-link: #0077c0;
  --pst-color-link-hover: #004680;
  --pst-color-text-base: #5a5a5a;
  --pst-color-border: #d9dee3;
  --pst-font-family-base: "Segoe UI", Helvetica, Arial, sans-serif;
  --pst-font-family-heading: "Segoe UI", Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] {
  --pst-color-primary: #4db8e8;
  --pst-color-link: #4db8e8;
  --pst-color-link-hover: #8ad4f5;
}

/* ---------- Logo banner (top strip, white background) ---------- */
.caris-logo-banner {
  background-color: #fff;
  border-bottom: 1px solid #d9dee3;
  padding: 0.75rem 1.5rem;
}
.caris-logo-banner-inner {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  position: relative;
}
.caris-logo-banner img {
  max-height: 44px;
  width: auto;
}
.caris-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.caris-banner-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.25rem;
  font-weight: 600;
  color: #004680;
  white-space: nowrap;
}

/* ---------- Navbar (blue navigation bar below the logo) ---------- */
.bd-header {
  background-color: #0077c0 !important;
  border-bottom: none;
}
.bd-header .navbar-nav a.nav-link {
  color: #fff !important;
}
.bd-header .navbar-nav a.nav-link:hover,
.bd-header .navbar-nav a.nav-link:focus {
  color: #d0eaf8 !important;
}

/* Hide the default navbar logo/text since we have the banner */
.bd-header .navbar-brand {
  display: none;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5, h6 {
  color: #004680;
  font-weight: 600;
}

/* ---------- Sidebar navigation ---------- */
.bd-sidebar-primary .sidebar-primary-items__start a {
  color: #5a5a5a;
}
.bd-sidebar-primary .sidebar-primary-items__start a:hover,
.bd-sidebar-primary .sidebar-primary-items__start a.current {
  color: #0077c0;
  border-left-color: #0077c0;
}

/* ---------- Table styling (matches striped tables from CARIS site) ---------- */
table.docutils tbody tr:nth-of-type(even) {
  background-color: rgba(156, 193, 228, 0.15);
}
table.docutils thead tr {
  background-color: #0077c0;
  color: #fff;
}
table.docutils thead th {
  border-color: #0077c0;
}

/* ---------- Footer ---------- */
.bd-footer {
  background-color: #f5f5f5;
  border-top: 3px solid #0077c0;
  color: #5a5a5a;
  font-size: 0.85rem;
}

/* ---------- Code blocks ---------- */
pre {
  border: 1px solid #d9dee3;
  border-radius: 4px;
}

/* ---------- Admonitions with brand accent ---------- */
.admonition.note {
  border-left-color: #0077c0;
}
.admonition.warning {
  border-left-color: #c21045;
}

/* ---------- Sidebar widths — give more room to content ---------- */
.bd-sidebar-primary {
  flex: 0 0 15rem;
  max-width: 15rem;
}
.bd-sidebar-secondary {
  flex: 0 0 12rem;
  max-width: 12rem;
}

/* ---------- Let the content area fill the full viewport width ---------- */
.bd-page-width {
  max-width: 100%;
}
.bd-main .bd-content .bd-article-container {
  max-width: 100%;
}
.bd-content {
  flex-grow: 1;
  max-width: 100%;
}

