/* Make Quarto (BS5) use the exact BS4.6 stack */
:root{
  --bs-font-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                        "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans",
                        sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
                        "Segoe UI Symbol", "Noto Color Emoji";
  --bs-body-font-family: var(--bs-font-sans-serif);
}

/* Apply it site-wide */
html, body { font-family: var(--bs-body-font-family) !important; }



/* =========================
   NAVBAR — clean, single source of truth
   ========================= */

.navbar,
.navbar .nav-link,
.navbar-brand {
  font-family: inherit !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Bar look */
.navbar {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  min-height: 64px;
}

/* Brand container */
.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin-right: 1rem;
}

/* Logo — single authoritative rule (removes caps, sets size) */
.navbar .navbar-brand img,
.navbar-brand img,
img.navbar-logo {
  max-height: none !important;   /* override any theme cap */
  height: 30px !important;       /* <-- adjust here (e.g., 44–52px) */
  width: auto !important;
  display: block;
}

/* Nav labels — larger + lighter */
.navbar .nav-link {
  font-weight: 300 !important;   /* you said 300 looks closest */
  font-size: 1.08rem;            /* tweak 1.05–1.12 if needed */
  line-height: 1.2;
  letter-spacing: 0;
  color: #808080;
  padding: .55rem .8rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s ease-in-out;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #ff0000;
  text-decoration: none;
}

/* Spacing between right-side items */
.navbar .navbar-nav .nav-item + .nav-item {
  margin-left: .35rem;
}

/* “Contact Us” button styling */
.navbar .nav-link[href*="contact-us"] {
  background: #ff0000;
  color: #fff !important;
  border-radius: .5rem;
  padding: .5rem .85rem !important;
}
.navbar .nav-link[href*="contact-us"]:hover,
.navbar .nav-link[href*="contact-us"]:focus {
  background: #cc0000;
  color: #fff !important;
}

/* Mobile: scale back to avoid wrapping */
@media (max-width: 991.98px) {
  .navbar .navbar-brand img,
  .navbar-brand img,
  img.navbar-logo { height: 42px !important; }
  .navbar .nav-link { font-size: 1rem; padding: .5rem .7rem; }
}

/* Space between logo and title */
.navbar .navbar-title {
  margin-left: .6rem;         /* tweak: .5–.8rem */
  font-weight: 400;
  font-size: 1.08rem;
  color: #333;
  text-decoration: none;      /* never underline */
  cursor: default;            /* don't look like a link */
}

/* Keep the title from changing color on hover/focus */
.navbar .navbar-title:hover,
.navbar .navbar-title:focus {
  color: #333;
  text-decoration: none;
}

/* If your theme makes the TITLE itself an <a>, neutralize the click. 
   (Logo remains clickable; title behaves like plain text.) */
.navbar a.navbar-title {
  pointer-events: none;
}


/* =========================
   FOOTER — Quarto page-footer, flush-right links
   ========================= */

/* Black bar */
footer.footer {
  background: #000 !important;
  color: #fff !important;
  border-top: none !important;
}

/* Full-width row, compact padding */
footer.footer .nav-footer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;   /* we'll use the center as spacer */
  gap: 16px !important;
  padding: 6px 16px !important;
  background: #000 !important;
  color: #fff !important;
  line-height: 1.2;
  font-size: 1.02rem;
}

/* Left: content width only */
footer.footer .nav-footer-left {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Center: take up the remaining space (acts as spacer) */
footer.footer .nav-footer-center {
  flex: 1 1 auto !important;      /* <-- this fills the middle */
  min-width: 0 !important;
}

/* Right: shrink-to-fit + push to the edge */
footer.footer .nav-footer-right {
  flex: 0 0 auto !important;      /* <-- stop it from owning extra width */
  margin-left: auto !important;    /* <-- pins it to the right edge */
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

/* Links */
footer.footer .nav-footer a {
  color: #fff !important;
  text-decoration: none !important;
}
footer.footer .nav-footer a:hover,
footer.footer .nav-footer a:focus {
  color: #ff0000 !important;
  text-decoration: none !important;
}

/* “Contact Us” pill */
footer.footer .nav-footer a[href*="contact-us"] {
  background: #ff0000 !important;
  color: #fff !important;
  border-radius: .45rem !important;
  padding: .35rem .6rem !important;
  white-space: nowrap !important;
}
footer.footer .nav-footer a[href*="contact-us"]:hover,
footer.footer .nav-footer a[href*="contact-us"]:focus {
  background: #cc0000 !important;
  color: #fff !important;
}

/* Safety */
html, body { overflow-x: hidden; }

/* Make the footer link list a flex row and center items vertically */
footer.footer .nav-footer-right .footer-items,
footer.footer .nav-footer-left  .footer-items {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Ensure each list item centers its anchor */
footer.footer .nav-footer-right .footer-items li,
footer.footer .nav-footer-left  .footer-items li {
  display: flex !important;
  align-items: center !important;
}

/* Make anchors participate in vertical centering */
footer.footer .nav-footer a {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.2 !important;
}






/* Basic look/feel */
.dataTables_wrapper .dataTables_scrollHead thead th,
.dataTables_wrapper thead th {
  background: #f7f7f9;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
}
table.dataTable.compact thead th,
table.dataTable.compact tbody td { padding: 8px 10px; }
table.dataTable.stripe tbody tr:nth-child(odd) { background-color: #fcfcfd; }
table.dataTable.hover  tbody tr:hover         { background-color: #eef5ff; }

/* Filter row styling */
.dataTables_wrapper thead tr.dt-filter-row th {
  background: #f0f2f5;
  padding: 4px 6px;
}

/* Filter selects */
.dt-filter-select {
  width: 100%;
  font-size: 12px;
  line-height: 1.2;
  padding: 2px 4px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: none;
}

/* Optional text sizes */
table.dataTable tbody td                { font-size: 12px; }
table.dataTable thead tr:first-child th { font-size: 13px; }
