/* Compact, full-width top bar */
section.main-content {
  margin-left: calc(88px + 22px);
  margin-right: 22px;
    margin-top: calc(20px + clamp(52.5px, 39px + 4.5vw, 75px));
}


body[data-mobile="true"] section.main-content {
  margin-left: 20px;
  margin-right: 20px;
  margin-top: calc(20px + clamp(52.5px, 39px + 4.5vw, 75px));
}

.home-section>nav {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: clamp(0.5rem, 0.2rem + 1.6vw, 1rem) 12px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  box-sizing: border-box;

}

.home-section {
  position: fixed;
  height: clamp(52.5px, 39px + 4.5vw, 75px);
  width: 100%;
  top: 0;
  z-index: 900;
}

body[data-mobile="true"] .home-section {
  padding-left: 0 !important;
}

/* Left & right containers */
.topbar__left,
.topbar__right {
  display: flex;
}

.topbar__left {
  justify-content: start;
  margin: 0 10px;
}

.topbar__right {
  justify-content: end;
  margin: 0 10px;
}

/* Logos */
.home-section>nav img.topbar__logo {
  max-height: 40px !important;
  width: auto !important;
  display: block;
  /* removes inline-gap */
}

/* Centered title block */
.home-section>nav .topbar__title {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  font-size: clamp(0.75rem, 0.4286rem + 1.7143vw, 1.5rem);
  line-height: 1.2;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: break-word;
  text-overflow: clip;
  max-width: 80vw;
}

body[data-mobile="true"] .home-section>nav .topbar__title {
  max-width: 55vw;
}

/* Title icon next to text */
.home-section>nav .title-icon {
  height: 22px;
  width: auto;
  display: inline-block;
}

#mobile-hamburger {
  font-size: 1.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

#mobile-hamburger.open {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Small screens: tighter */
@media (max-width: 640px) {
  .home-section>nav {
    padding: 6px 10px;
  }
}