@media (min-width: 992px) {
  .navbar > .container {
    max-width: min(1760px, calc(100% - 48px));
  }

  .navbar-brand {
    flex: 0 0 auto;
    margin-right: 1.1rem;
  }

  .navbar-collapse {
    min-width: 0;
    justify-content: flex-end;
  }

  .navbar-nav {
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(.35rem, .75vw, .9rem);
  }

  .navbar-nav .nav-item {
    flex: 0 0 auto;
  }

  .navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: .28rem;
    white-space: nowrap;
    line-height: 1.05;
    padding: .45rem .25rem;
    font-size: clamp(.84rem, .82vw, .98rem);
  }

  .navbar-nav .nav-link img {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
  }
}

.sd-profile-nav-link {
  min-width: 40px;
  justify-content: center;
}

.sd-profile-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.sd-profile-avatar::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: 0;
  border-radius: 999px;
  background: url("data:image/svg+xml,%3Csvg focusable='false' height='40px' version='1.1' viewBox='0 0 40 40' width='40px' xml:space='preserve' xmlns='http://www.w3.org/2000/svg' style='opacity:1.0'%3E%3Cpath d='M4.02,28.27C2.73,25.8,2,22.98,2,20c0-2.87,0.68-5.59,1.88-8l-1.72-1.04C0.78,13.67,0,16.75,0,20c0,3.31,0.8,6.43,2.23,9.18L4.02,28.27z' fill='%23F6AD01'%3E%3C/path%3E%3Cpath d='M32.15,33.27C28.95,36.21,24.68,38,20,38c-6.95,0-12.98-3.95-15.99-9.73l-1.79,0.91C5.55,35.61,12.26,40,20,40c5.2,0,9.93-1.98,13.48-5.23L32.15,33.27z' fill='%23249A41'%3E%3C/path%3E%3Cpath d='M33.49,34.77C37.49,31.12,40,25.85,40,20c0-5.86-2.52-11.13-6.54-14.79l-1.37,1.46C35.72,9.97,38,14.72,38,20c0,5.25-2.26,9.98-5.85,13.27L33.49,34.77z' fill='%233174F1'%3E%3C/path%3E%3Cpath d='M20,2c4.65,0,8.89,1.77,12.09,4.67l1.37-1.46C29.91,1.97,25.19,0,20,0l0,0C12.21,0,5.46,4.46,2.16,10.96L3.88,12C6.83,6.08,12.95,2,20,2' fill='%23E92D18'%3E%3C/path%3E%3C/svg%3E") center / 40px 40px no-repeat;
  pointer-events: none;
}

.sd-profile-avatar img {
  position: relative;
  z-index: 1;
  display: block !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 999px;
  object-fit: cover;
}

.sd-profile-avatar-fallback {
  z-index: 1;
  background: #111827;
}

@media (min-width: 992px) and (max-width: 1360px) {
  .navbar > .container {
    max-width: calc(100% - 28px);
  }

  .navbar-brand {
    font-size: 1.16rem;
    margin-right: .65rem;
  }

  .navbar-brand img {
    width: 28px;
    height: 28px;
  }

  .navbar-nav {
    gap: .28rem;
  }

  .navbar-nav .nav-link {
    font-size: .78rem;
    letter-spacing: -.01em;
  }

  .navbar-nav .nav-link img {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .navbar > .container {
    position: relative;
  }

  .navbar-collapse.show {
    position: absolute;
    top: calc(100% + .6rem);
    left: .75rem;
    right: .75rem;
    z-index: 1000;
    padding: .75rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 1rem;
    background: rgba(17, 24, 39, .98);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .42);
  }

  .navbar-collapse.show .navbar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    width: 100%;
    margin-left: 0 !important;
  }

  .navbar-collapse.show .nav-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: .62rem .7rem;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .055);
    color: #fff;
    font-size: .88rem;
    line-height: 1.18;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }

  .navbar-collapse.show .nav-link img {
    flex: 0 0 auto;
  }
}

@media (max-width: 430px) {
  .navbar-collapse.show {
    left: .55rem;
    right: .55rem;
    padding: .6rem;
  }

  .navbar-collapse.show .navbar-nav {
    grid-template-columns: 1fr;
  }
}

header .mb-2.h1 {
  font-size: clamp(2.15rem, 5vw, 3.2rem) !important;
  max-width: 100%;
}

@media (max-width: 576px) {
  header.section {
    margin-bottom: 1.15rem;
  }

  header .mb-2.h1 {
    font-size: clamp(1.95rem, 9.4vw, 2.35rem) !important;
    line-height: 1.08;
    white-space: nowrap;
  }

  .hero-title-brand-suffix {
    display: none !important;
  }

  header .lead-sm {
    font-size: .9rem;
    line-height: 1.45;
  }
}
