/* Shared navigation for the overview and Cycles study pages. */
.cycle-family-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 clamp(14px, 2vw, 22px);
}

.cycle-family-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid #648c7e65;
  border-radius: 8px;
  color: inherit;
  font: 600 .82rem/1.3 Inter, "Segoe UI", sans-serif;
  text-decoration: none;
}

.cycle-family-nav a:hover {
  background: #648c7e20;
}

.cycle-family-nav a[aria-current="page"] {
  border-color: #1d604c;
  background: #1d604c;
  color: #f4fff8;
}

.general-cycles .cycle-family-nav a[aria-current="page"] {
  border-color: #a7e0ce;
  background: #a7e0ce;
  color: #143c33;
}

.cycle-family-nav a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 540px) {
  .cycle-family-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle-family-nav a { justify-content: center; text-align: center; }
}
