/*
Theme Name: My Blank Theme
Description: A minimal WordPress theme for custom HTML.
Version: 1.0
*/

/* ─────────────────────────────────────────────────────────────
   Sub-hub type switcher (segmented control)
   Used on the three sub-hub page templates. Real anchor links to
   sibling hubs; visually matches the tab buttons on /dosages/
   (red active pill, outlined inactive buttons).
   ──────────────────────────────────────────────────────────── */
.dosage-type-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 26px;
}

.dosage-type-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 60px;
  padding: 12px 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  color: #4a5568;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dosage-type-nav__item i {
  font-size: 1.2rem;
}

a.dosage-type-nav__item:hover {
  border-color: #3498db;
  color: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dosage-type-nav__item.is-active {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #ffffff;
  border-color: #e74c3c;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
  cursor: default;
}

@media (min-width: 640px) {
  .dosage-type-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
  }

  .dosage-type-nav__item {
    flex: 1;
    max-width: 200px;
    flex-direction: row;
    gap: 10px;
    font-size: 1rem;
    padding: 15px 20px;
  }
}
