/* The contents control keeps its one-line label when WebKit sizes the sticky grid. */
.nr-bar[data-running-bar] .run-toc {
  flex: none;
  white-space: nowrap;
}

/* Let the browser wrap each contents label at the reader's actual font size.
   On narrow columns the tallest one sets a steady height in both scroll directions. */
.nr-bar .run-heading-measure {display: none}
@container edition-reader (max-width: 20em) {
  .nr-bar[data-running-bar] .run-heading-measure {
    display: grid;
    grid-area: 1 / 1 / 2 / -1;
    box-sizing: border-box;
    padding-block: .41em;
    padding-inline-end: 1.37em;
    font-size: .94em;
    font-weight: 550;
    line-height: 1.28;
    visibility: hidden;
    pointer-events: none;
    min-inline-size: 0;
  }
  .run-heading-measure > span {grid-area: 1 / 1; min-inline-size: 0}
}
