html, body {
  margin: 0;
  padding: 0;
  background-color: #FAFAFA;
  /* safety net: no single component should be able to push the page
     into horizontal scroll on small screens */
  overflow-x: hidden;
}

/* Base text */
body {
  font-size: 16px;
  line-height: 1.6;
}

/* Headings */
h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 2.5rem 0 1.25rem;
  border-bottom: 1px solid var(--bs-body-color);
  padding-bottom: 0.5rem; /* space for the border bottom */
}

h2 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 2.25rem 0 1rem;
  border-bottom: 1px solid var(--bs-body-color);
  padding-bottom: 0.5rem; /* space for the border bottom */
}

h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 2rem 0 0.75rem;
}

h4 {
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 1.5rem 0 0.5rem;
}

h5 {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 1.25rem 0 0.5rem;
}

h6 {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 1.25rem 0 0.25rem;
}

.card h6:first-child {
  margin-top: 0;
}

/* Paragraphs */
p {
  margin: 0.75rem 0 1rem;
}

/* ======================================================
  TOP BAR
====================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  z-index: 1000;

  background: #fff;
  color: #090909;

  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15),inset 0 -1px 0 rgba(255,255,255,0.15);
}
/* Same .container + px-2 wrapper the page content uses, so the logo
   lines up with the content's left edge instead of the viewport edge */
.topbar-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  align-items: center;
}
.topbar-left,
.topbar-center,
.topbar-right {
  display: flex;
  align-items: center;
  /* grid items default to min-width: auto (content's intrinsic width),
     which refuses to shrink and pushes the fixed topbar past the
     viewport edge on narrow screens */
  min-width: 0;
}
.topbar-left {
  gap: 0.5rem;
}
.topbar-center {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.topbar-right {
  justify-content: flex-end;
}

/* Icons */
.icon-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Desktop top menu */
.topbar-menu {
  display: flex;
  gap: 1.5rem;
}
.topbar-menu .navbar-nav {
  gap: 0.5rem;
}
.nav-langs {
  margin-left: 1rem;
  font-size: 0.88rem;
}


/* Logo */
.logo {
  font-weight: 400;
  font-size: 1.25rem; /* for correct alignment of 'by CaboLabs' */
}
.logo img {
  vertical-align: middle;
}
.logo span {
  font-size: 0.6rem;
  color: #0E0E0E !important;
  vertical-align: sub;
}
.logo-desktop {
}
.logo-mobile {
  display: none;
}


/* Mobile-only controls hidden by default */
.mobile-only {
  display: none;
}


.layout,
.main {
  min-height: 0;
}


/* ======================================================
  MAIN LAYOUT (DESKTOP)
====================================================== */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  padding-top: 68px; /* offset fixed header */
}

/* Left menu */
.menu {
  background-color: #FAFAFA;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;

  color: var(--bs-body-color);
  padding: 1rem;
}
.menu-body {
  overflow-y: visible;
}

/* Content + TOC */
.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 25vw;
  min-width: 0;
}

.content {
  padding: 0 2rem 4rem 1rem;
}

.bd-toc {
  background-color: #FAFAFA;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;

  padding: 1rem;
  min-width: 0;
}

/* ======================================================
  TOC (ellipsis-ready)
====================================================== */
.bd-toc nav,
.bd-toc ul,
.bd-toc li {
  min-width: 0;
}

.bd-toc ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.bd-toc a.toc-link {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.25rem 0;
  color: #000;
  text-decoration: none;
}

/* figures */
/* image with label at the bottom */
.figure {
  margin-bottom: 2rem;
  display: block !important;
}
.figure > img {
  width: 100%;
}
.figure > .label {
  text-align: center;
}

/* ======================================================
  MOBILE BEHAVIOR
====================================================== */
@media (max-width: 992px) {

  .topbar-inner {
    grid-template-columns: auto 1fr auto;
  }

  /* Toggle logo visibility */
  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
  }

  /* Show mobile controls */
  .mobile-only {
    display: block;
  }

  /* Hide desktop menu, revealed as a dropdown panel via menuBtn on pages
     that have no docs sidebar (#menuPanel) to open instead */
  .topbar-menu {
    display: none;
  }

  .topbar-menu.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    z-index: 1001;

    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
  }

  /* One item per row instead of Bootstrap's col-6 two-column grid */
  .topbar-menu.open .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
  .topbar-menu.open .nav-item {
    width: 100%;
  }
  .topbar-menu.open .nav-link {
    display: block;
    width: 100%;
    /* !important needed: the markup carries Bootstrap's py-2/px-0/px-lg-2
       utility classes, which set their own padding with !important */
    padding: 0.85rem 1.1rem !important;
    margin-bottom: 0.15rem;
    text-align: left;
  }

  /* Collapse layout */
  .layout {
    grid-template-columns: 1fr;
  }

  .main {
    grid-template-columns: 1fr;
  }

  /* Off-canvas panels */
  .menu,
  .bd-toc {
    position: fixed;
    top: 56px;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    overflow: auto;
    z-index: 1001;

    transform: translateX(-100%);
    transition: transform 0.25s ease;

    background-color: #fff;
  }

  .bd-toc {
    right: 0;
    left: auto;
    transform: translateX(100%);
  }

  .menu.open,
  .bd-toc.open {
    transform: translateX(0);
  }
}

/* ======================================================
  MENU CONTENT
====================================================== */
.menu ul {
}

.menu li {
}

.navbar-brand span {
  color: #0E0E0E !important;
  vertical-align: sub;
  font-size: 0.6rem;
}
.text-gray-700 {
  color: var(--bs-gray-700) !important;
}
h6.text-uppercase {
  letter-spacing: .08em;
}
a {
  text-decoration: none;
}

/* Contact us is a <button> (scrolls to the contact section, not a real
   link) styled as a .nav-link — strip native button chrome so it's
   visually identical to the other top-menu items */
button.nav-link {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

/* <div id="contact_a" class="pb" style="--pb-size: 60"> */
.pb {
  padding-bottom: calc(var(--pb-size, 0) * 1px);
}

.text-light a {
  color: #fff;
}

i { vertical-align: middle; }
.docs-menu a {
  color: #666666;
}

/* home style */
.hero img {
  border-radius: 20px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.section-header p {
  color:#666666;
  font-size: 1.1rem;
}
#governance .card {
  background-color: #FEFEFE;
}
.feature-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  color: #FFFFFF;
}

.use-case-badge {
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 5px;
  display: inline-block;
}

/* FIX background color on outline buttons to be white instead of transparent */
.btn-outline-primary {
  --bs-btn-bg: #FFFFFF
}

/* ======================================================
  CONTACT SECTION (full-bleed, two columns)
====================================================== */
.contact-section {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  padding: 4rem 0;
  margin-top: 4rem;
  scroll-margin-top: 68px;
}
.contact-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 3.5rem;
  align-items: flex-start;
}
.contact-info {
  flex: 0 0 36%;
  min-width: 0;
}
.contact-info h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  border-bottom: none;
}
.contact-info .contact-sub {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.4;
}
.contact-detail i {
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 1.1em;
  text-align: center;
}
.contact-detail strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.15rem;
}
.contact-form-wrap {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 6px;
  padding: 2rem 2.5rem;
}
.contact-form-wrap .form-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.3rem;
}
.contact-form-wrap .form-control {
  border-radius: 3px;
  font-size: 0.95rem;
}
.contact-form-wrap textarea.form-control {
  resize: vertical;
  min-height: 110px;
}
@media (max-width: 767.98px) {
  .contact-inner {
    flex-direction: column;
    gap: 2rem;
  }
  .contact-info {
    flex: 1 1 auto;
  }
}
