/* ===== 3-cell selector row ===== */
.gear-tabs{
  width: 98%;
  margin: 10px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* Buttons styled like tiles */
.gear-tab{
  border: 2px solid rgba(0,0,125,0.35);
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
  background: rgba(255,255,255,0.7);
  color: rgb(0,0,120);
  font-weight: 800;
  text-align: center;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.15);
  line-height: 1.2;
}

/* Subtitle line */
.gear-tab-sub{
  display: block;
  margin-top: 6px;
  font-weight: 600;
  font-size: 12px;
  opacity: 0.9;
}

/* Active state */
.gear-tab.is-active{
  background: rgba(0,0,120,0.85);
  color: white;
  border-color: white;
}

/* ===== Panels ===== */
/* All panels are in the HTML for SEO; only the active one is visible */
.gear-panel{
  display: none;
  width: 100%;
  margin-top: 10px;
  max-width: 100%;
  overflow-x: hidden;
}

.gear-panel.is-active{
  display: block;
}

/* Make tables behave nicely on small screens */
/* Prevent tables from overflowing on mobile */
.gear-panel table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.gear-panel th,
.gear-panel td {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}



/* Mobile: stack the three tabs */
@media (max-width: 768px){
  .gear-tabs{
    grid-template-columns: 1fr;
  }

  .gear-panel {
    padding-left: 0;
    padding-right: 0;
  }

  .gear-panel table {
    font-size: 13px;
  }

}
