/* Keep local exits and the shared navigation reachable throughout the menu. */
.tools-site-chrome {
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--pl-bg);
  border-block-end: 1px solid var(--pl-hair-hi);
}
.tools-site-chrome > .tools-page-nav {
  position: absolute;
  inset: 0 0 auto auto;
  gap: 4px;
  padding-block: 0;
  border: 0;
}
.tools-site-disclosure > summary {
  display: list-item;
  width: max-content;
  min-height: 44px;
  padding: 11px 8px;
  color: var(--pl-green);
  font: bold 14px/22px var(--pl-mono);
  cursor: pointer;
}
.tools-site-disclosure > summary:focus-visible {
  outline: 3px solid var(--pl-green);
  outline-offset: -3px;
}
.tools-site-chrome .tools-page-nav, .tools-site-disclosure {
  background: var(--pl-bg-alt);
}
#tools-site-header, #tools-site-header .pl-topbar-main { min-width: 0; }
html { scroll-padding-block-start: calc(var(--tools-header-height, 52px) + 6px); }
@media (max-height: 560px) {
  #tools-site-header { max-height: calc(100vh - 52px); overflow: auto; }
  #tools-site-header .pu-status-panel, #tools-site-header .pu-more-links,
  #tools-site-header .pl-theme-menu {
    position: fixed !important;
    inset: 52px 8px auto auto !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 64px) !important;
    overflow: auto;
    z-index: 90;
  }
}
@media (max-width: 760px) {
  #tools-site-header .pu-simple-nav > .pu-more-nav { position: static; }
  #tools-site-header .pu-simple-nav { position: relative; }
  #tools-site-header .pu-more-links {
    max-height: max(100px, calc(100vh - var(--tools-header-height, 260px) - 12px));
    overflow-y: auto;
  }
}
/* At phone widths the disclosure and both destinations have separate hit regions. */
@media (max-width: 480px) {
  .tools-site-chrome { --disclosure-width: 7rem; }
  .tools-site-disclosure > summary {
    box-sizing: border-box;
    width: var(--disclosure-width);
    padding-inline: 6px;
  }
  .tools-site-chrome > .tools-page-nav {
    left: var(--disclosure-width);
    justify-content: flex-end;
    align-items: stretch;
    gap: 2px;
    padding-inline: 3px;
  }
  .tools-site-chrome > .tools-page-nav a {
    min-width: 44px;
    justify-content: center;
    padding-inline: 4px;
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 280px) {
  .tools-site-chrome > .tools-page-nav { position: static; justify-content: center; }
}

/* In Full view the header is always exposed, including without JavaScript. */
html:not([data-pu-view="simplified"]) .tools-site-disclosure > summary { display: none; }
html:not([data-pu-view="simplified"]) .tools-site-chrome > .tools-page-nav {
  position: static;
  justify-content: flex-end;
}
.counter-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 1.2vw, 18px);
}
.counter-title h1 { min-width: 0; }
.counter-title img {
  display: block;
  flex: none;
  width: clamp(22px, 5.5vw, 56px);
  height: auto;
}
