/* Three equal actions retain the original capsule's height and material.
   Desktop scale and the established mobile width are defined below. */
.liquid-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 350px);
  padding: 4px;
}

.liquid-nav button {
  min-width: 0;
  width: 100%;
  padding-inline: 10px;
  font-size: 12px;
  letter-spacing: .01em;
}

.liquid-nav .lens {
  width: calc((100% - 8px) / 3) !important;
}

/* v121: use viewport width directly; a percentage inside the auto-width
   contact anchor collapses to intrinsic label width. Scale all three equally. */
@media (min-width: 701px) {
  .liquid-nav {
    width: clamp(360px, 32.7vw, 560px);
  }
  .liquid-nav button {
    font-size: clamp(13px, 1vw, 17px);
  }
}

@media (max-width: 700px) {
  .liquid-nav {
    /* Preserve the established 250px mobile shell when labels change. */
    width: 250px;
  }
  .liquid-nav button {
    padding-inline: 7px;
    font-size: 11px;
    letter-spacing: 0;
  }

  /* Three equal mobile actions: the selected lens must not inherit label width. */
  .liquid-nav .lens {
    width: calc((100% - 8px) / 3) !important;
  }
}
