/* Smooth scrolling already handled by Tailwind */
html {
  scroll-behavior: smooth;
}

/* Optional non-fixed header toggle */
.nonfixed {
  position: relative !important;
}

/* Shadows for subtle visual lift (overriding Tailwind defaults if needed) */
.shadow-md {
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.shadow-lg {
  box-shadow: 0 10px 15px rgba(0,0,0,0.15);
}

/* Tooltip speech bubble tail */
.after-arrow::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent white transparent;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: #fef9c3; /* light yellow */
  color: #222;
  text-align: left;
  border-radius: 8px;
  padding: 0.75rem;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.25s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Speech bubble tail */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%; /* bottom of tooltip box */
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #fef9c3 transparent transparent transparent;
}

.tooltip:hover .tooltiptext,
.tooltip:focus-within .tooltiptext {
  visibility: visible;
  opacity: 1;
}
