/* container */
.hex-wrap{ max-width: 925px; margin: 24px auto 36px; padding: 0 16px; }
.hex-intro{ text-align:center; max-width: 68ch; margin: 0 auto 18px; }


/* grid */
.ha-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* exactly 3 across on desktop */
  gap: 20px;
  justify-items: center;
  margin-top: 1.5rem;
}

/* responsive fix — 2 per row on tablets, 1 on mobile */
@media (max-width: 900px) {
  .ha-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ha-grid {
    grid-template-columns: 1fr;
  }
}

/* card */
.ha-card {
  background: #fcfcfb;
  border-radius: 14px;
  border: 1px solid rgba(167,124,207,.18);
  box-shadow: 0 3px 10px rgba(70,56,104,.1);
  padding: 14px 10px 16px;
  text-align: center;
  width: 100%;
  max-width: 250px;   /* was 300px */
  transition: all .15s ease;
}
.ha-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(70,56,104,.14);
}

/* image */
.ha-thumb {
  background: rgba(0,0,0,.03);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 180px;  /* slightly reduced */
}
.ha-thumb img {
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}


/* text */
.ha-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 6px 0 4px;
  color: #333;
}
.madefor {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 4px 0 10px;
  font-style: italic;
}

/* pill badges */
.pill {
  display: inline-block;
  font: 700 0.72rem/1.2 "Raleway", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: 999px;
  padding: 3px 9px;
  border: 1px solid rgba(0,0,0,.1);
  background: rgba(255,255,255,.9);
  margin-bottom: 8px;
  white-space: nowrap;
}
.pill.avail {
  border-color: rgba(90,201,180,.45);
  color: #3b8e7e;
}
.pill.retired {
  border-color: rgba(167,124,207,.45);
  color: #7b5db4;
  opacity: 0.9;
}

/* expand area */
.ha-details {
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255,255,255,.6);
}
.ha-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #8a69c5;
  margin-bottom: 4px;
}
.ha-details p {
  font-size: 0.85rem;
  margin: 4px 0;
}
