jcrafts-jumpnav {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  display: block;
  margin-block-end: var(--spacing-200);
  padding-block: var(--spacing-050);
}

jcrafts-jumpnav[data-stuck] {
  background-color: var(--body-background);
  border-image: conic-gradient(var(--body-background) 0 0) fill 0//0 100vmax;
}

jcrafts-jumpnav[hidden] {
  display: none;
}

.jcrafts-jumpnav__sentinel {
  block-size: 0;
}

.jcrafts-jumpnav__spacer {
  block-size: 0;
}

jcrafts-jumpnav details {
  position: relative;
}

jcrafts-jumpnav details > * {
  padding-inline: var(--content-padding-inline-default, var(--spacing-075));
}

jcrafts-jumpnav[data-stuck] details[open] > :not(summary) {
  position: absolute;
  inset-block-start: 100%;
  inset-inline: calc(50% - 50vw + var(--jcrafts-scrollbar-width, 0px) / 2);
  padding-inline: calc(var(--spacing-100) + var(--spacing-075));
  max-block-size: 60vh;
  overflow-y: auto;
  background-color: var(--body-background);
  border-image: conic-gradient(var(--body-background) 0 0) fill 0//0 100vmax;
  margin: 0;
}

/*
  The toggle is the icon, and its wording rides along as hidden text. Hidden, never dropped: it is
  the control's accessible name, and a disclosure without one is announced as nothing but "button"
  and cannot be addressed by voice at all.

  A list, not the three bare bars of a hamburger: that icon is taken. label.hamburger in
  components/_menu.scss opens the site menu from the topbar below lg, which is the same width and
  very nearly the same place this bar sticks to, and two identical marks a few pixels apart opening
  two different navigations is worse than no icon at all.

  Drawn as a mask rather than an inline <svg>, because four layouts render this bar and each would
  have carried its own copy of the markup.
*/
jcrafts-jumpnav summary {
  inline-size: max-content;
  gap: 0;
  list-style: none;
}
jcrafts-jumpnav summary::-webkit-details-marker {
  display: none;
}
jcrafts-jumpnav summary::after {
  content: none;
}
jcrafts-jumpnav summary::before {
  content: "";
  display: inline-block;
  inline-size: var(--jcrafts-jumpnav-icon-size, 1.5rem);
  block-size: var(--jcrafts-jumpnav-icon-size, 1.5rem);
  background-color: currentcolor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='4.5' cy='6' r='1.6'/%3E%3Ccircle cx='4.5' cy='12' r='1.6'/%3E%3Ccircle cx='4.5' cy='18' r='1.6'/%3E%3Crect x='9' y='5' width='12' height='2' rx='1'/%3E%3Crect x='9' y='11' width='12' height='2' rx='1'/%3E%3Crect x='9' y='17' width='12' height='2' rx='1'/%3E%3C/svg%3E") center/contain no-repeat;
}
jcrafts-jumpnav summary {
  /*
    The ring is drawn inside the box. base/_focus.scss offsets it outwards by --focus-outline-offset,
    and the panel below opens flush against this summary's lower edge (inset-block-start: 100%), so
    an outward ring ends up half underneath it - visible on three sides and cut off on the fourth.
    Pulled in by its own width it sits on the outermost pixels of the toggle and touches nothing.
  */
}
jcrafts-jumpnav summary:focus {
  outline-offset: calc(var(--focus-outline-width) * -1);
}

/*
  In the flow there is no toggle at all. The list stands open and complete there - the script forces
  it open for every state that is not stuck (applyState/setOpen in jcrafts-jumpnav.js) - so a control
  would sit above an already-open list and switch nothing a reader wants switched.

  It appears with the sticky bar, where the list has collapsed into it, and there as the icon alone.

  Without the script nothing ever sets data-stuck, the list keeps the open attribute it is rendered
  with, and the toggle stays out of the way: the same reading, one scroll behaviour poorer.

  After the block above, not before it: the two would otherwise read as specificity running downhill,
  which is what stylelint's no-descending-specificity watches for.
*/
jcrafts-jumpnav:not([data-stuck]) summary {
  display: none;
}

.com-content-category-blog [id] {
  scroll-margin-block-start: var(--jcrafts-jumpnav-offset, 5rem);
}

jcrafts-jumpnav[data-stuck] details > summary {
  margin-inline-start: calc(50% - 50vw + var(--jcrafts-scrollbar-width, 0px) / 2 + var(--spacing-100) + var(--spacing-075));
  padding-inline-start: 0;
}

/*# sourceMappingURL=jcrafts-jumpnav.css.map */
