/* The formula editor reserves a 60px desktop header. Keep navigation inside
   that frame, and let the existing two-row mobile header determine its height. */
@media screen {
  .doctor-shell:has(.scale-authoring) > .doctor-topnav {
    height: auto;
    min-height: 60px;
    padding-block: 0;
  }
}

@media screen and (min-width: 960px) {
  .doctor-shell:has(.scale-authoring) > .doctor-topnav {
    height: 60px;
  }
  .doctor-shell:has(.scale-authoring) > .doctor-topnav .doctor-mode-switch,
  .doctor-shell:has(.scale-authoring) > .doctor-topnav .doctor-mode-switch button {
    height: 59px;
  }
}
