/* Underbar — widoczność display dodaje PHP (media query). */

.hmm2-source {
  display: none !important;
}

.hmm2-menu,
.hmm2-toc {
  display: none;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 45px;
  margin: 0;
  padding: 0;
  background: var(--hmm2-bg, #fff);
  color: var(--hmm2-fg, inherit);
  border: 0;
  border-bottom: 1px solid var(--hmm2-border, rgba(0, 0, 0, 0.12));
  font-family: var(--hmm2-font, inherit);
}

.hmm2-menu,
.hmm2-toc {
  position: sticky;
  top: var(--hmm2-sticky-top, 0px);
  z-index: 4;
  overflow: visible;
}

.hmm2-menu {
  overflow: visible;
}

.hmm2-frame {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 45px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--hmm2-pad-l, 24px);
  padding-right: var(--hmm2-pad-r, 24px);
  overflow: hidden;
}

.hmm2-back {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 45px;
  margin: 0 7px 0 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.hmm2-back svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.hmm2-track {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  height: 45px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: none;
  touch-action: pan-x;
  scrollbar-width: none;
}

.hmm2-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.hmm2-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  height: 45px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hmm2-item {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  height: 45px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hmm2-item::before,
.hmm2-item::after,
.hmm2-link::before,
.hmm2-link::after {
  content: none !important;
  display: none !important;
}

.hmm2-link {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 45px;
  margin: 0;
  padding: 0 12px;
  color: inherit !important;
  font-family: inherit;
  font-size: var(--hmm2-size, 14px);
  font-weight: 700;
  font-style: var(--hmm2-style, normal);
  letter-spacing: var(--hmm2-tracking, normal);
  text-transform: var(--hmm2-transform, none);
  line-height: 1.2;
  text-decoration: none !important;
  background: transparent !important;
  white-space: nowrap;
}

.hmm2-menu.has-back .hmm2-item:not(.is-parent) .hmm2-link {
  font-weight: 400;
}

.hmm2-item.is-parent .hmm2-link {
  font-weight: 700;
  padding-right: 0;
}

.hmm2-sep {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  height: 45px;
  padding: 0 5px;
  font-size: var(--hmm2-size, 14px);
  font-weight: 400;
  line-height: 1.2;
  pointer-events: none;
  opacity: 0.45;
}

.hmm2-menu.has-back .hmm2-item:first-child .hmm2-link,
.hmm2-menu.has-back .hmm2-sep + .hmm2-item .hmm2-link {
  padding-left: 0;
}

.hmm2-menu:not(.has-back) .hmm2-item:first-child .hmm2-link {
  padding-left: 0;
}

.hmm2-item:last-child .hmm2-link {
  padding-right: 0;
}

.hmm2-text {
  display: inline;
  line-height: 1.2;
  padding-bottom: 0.12em;
  background-image: linear-gradient(to right, currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: left 100%;
  transition: background-size 0.2s ease;
}

.hmm2-item.is-current .hmm2-text {
  background-size: 100% 1px;
}

.hmm2-toc__bar,
.hmm2-toc__item {
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  background: transparent !important;
  background-image: none !important;
  color: inherit !important;
  border: 0;
  box-shadow: none !important;
  outline: none;
  filter: none !important;
  font-family: inherit;
  cursor: pointer;
}

.hmm2-toc__bar {
  display: flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  width: 100%;
  height: 45px;
  margin: 0;
  padding: 0 var(--hmm2-pad-r, 24px) 0 var(--hmm2-pad-l, 24px);
  overflow: hidden;
  text-align: left;
}

.hmm2-toc__label {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  line-height: 1.2;
}

.hmm2-toc__sep {
  flex-shrink: 0;
  padding: 0 5px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.45;
  pointer-events: none;
}

.hmm2-toc__current {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.hmm2-toc__current-inner {
  display: inline-block;
  white-space: nowrap;
  padding-right: 12px;
}

.hmm2-toc.is-marquee .hmm2-toc__current-inner {
  animation: hmm2-marquee var(--hmm2-marquee-dur, 8s) linear infinite;
}

.hmm2-toc.is-open .hmm2-toc__current-inner {
  animation-play-state: paused;
}

@keyframes hmm2-marquee {
  0%, 18% { transform: translateX(0); }
  82%, 100% { transform: translateX(var(--hmm2-marquee-shift, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .hmm2-toc.is-marquee .hmm2-toc__current-inner {
    animation: none;
  }
  .hmm2-toc__current {
    text-overflow: ellipsis;
  }
}

.hmm2-toc__chevron {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-left: 7px;
  stroke: currentColor;
  fill: none;
  transition: transform 0.2s ease;
}

.hmm2-toc.is-open .hmm2-toc__chevron {
  transform: rotate(180deg);
}

.hmm2-toc__panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 45px;
  z-index: 51;
  max-height: min(70vh, 420px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 4px 0;
  background: var(--hmm2-bg, #fff);
  border-bottom: 1px solid var(--hmm2-border, rgba(0, 0, 0, 0.12));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.hmm2-toc.is-open .hmm2-toc__panel {
  display: block;
}

.hmm2-toc__item {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 8px var(--hmm2-pad-r, 24px) 8px var(--hmm2-pad-l, 24px);
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.hmm2-toc__item.is-current {
  font-weight: 700;
}
