/* Floating numeric tabs - left middle */
.fm2-floating {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

.fm2-num-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}

/* Small circular number tab */
.fm2-num-item {
  position: relative;
  width: auto;
  height: auto;
  padding: 2px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid #ffb222;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  outline: none;
  transition: background 150ms ease, transform 150ms ease;
}

/* Hover/focus visual */
.fm2-num-item:hover,
.fm2-num-item:focus {
  background: #ffb222;
  transform: translateX(4px);
}

/* the numeric text */
.fm2-num {
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  user-select: none;
  background-color: #ffb222b0;
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

/* horizontal detail panel that opens to the right */
.fm2-item-panel {
  position: absolute;
  left: 38px; /* right of the number tab */
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  min-width: 150px;
  min-width: 180px;
  background: transparent;
  color: #222;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transition: all 160ms ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
}

/* Show when parent hovered or focused (keyboard) */
.fm2-num-item:hover .fm2-item-panel,
.fm2-num-item.fm2-open .fm2-item-panel,
.fm2-num-item:focus .fm2-item-panel,
.fm2-num-item:focus-within .fm2-item-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

/* Panel content */
.fm2-item-title {
  font-weight: 700;
  color: #ffffff;
  text-decoration: none !important;
  font-size: 15px;
  text-align: left;
}
.fm2-item-title:hover {
  text-decoration: underline;
}

.fm2-item-excerpt {
  color: #cdcdcd;
  font-size: 10px;
  line-height: 1.35;
}

/* Make the panel layout horizontal on wider screens: title on left, excerpt on right */
@media (min-width: 320px) {
  .fm2-item-panel {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0px;
  }
  .fm2-item-title {
    display: inline-block;
  }
  .fm2-item-excerpt {
    flex: 1 1 auto;
  }
}

/* Small screens - allow full-width panel centered to the right edge */
@media (max-width: 600px) {
  .fm2-floating {
    left: 8px;
  }
  .fm2-item-panel {
    left: 25px;
	min-width: 120px;
	max-width: calc(100vw - 80px);
	padding: 5px 10px;
	background-color: #f4aa2161;
  }
  .fm2-item-title {
    font-size: 12px;	
  }
  .fm2-num {
    font-size: 12px;
    line-height: 20px;
    width: 20px;
    height: 20px;
  }	
}
